/* /gumbo/radio/css/skin-smokeypit-v3.css
   Smokey Pit default v3
   Save as UTF-8 without BOM
*/

:root{
  --bg:#0f0f10;
  --panel:#121212;
  --accent:#f4c542;
  --muted:#cfcfcf;
  --glass: rgba(255,255,255,0.03);
  --glow: 0 0 18px rgba(244,197,66,0.08);
  --font: "Courier New", monospace;
}

/* Action modal skin styles */
.action-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 13000; background: rgba(0,0,0,0.45); }
.action-box { background: linear-gradient(180deg,#071021,#05060b); color: var(--muted, #fff); padding: 18px; border-radius: 10px; width: 380px; max-width: 94%; box-shadow: 0 20px 60px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.03); font-family: var(--font, sans-serif); }
.action-box h4 { margin: 0 0 8px 0; font-size: 16px; color: var(--accent, #ffd36b); }
.action-box p { margin: 0 0 12px 0; color: #dfe7ee; font-size: 13px; }
.action-actions { display:flex; gap:8px; justify-content:flex-end; }
.action-actions button { padding:8px 12px; border-radius:6px; cursor:pointer; border: none; font-weight:700; }
.btn-primary { background: linear-gradient(90deg,#ffb84d,#ff7a7a); color:#111; }
.btn-secondary { background: transparent; color:#cfd8e3; border:1px solid rgba(255,255,255,0.04); }

/* Premium modal styles (skin-level) */
.premium-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 13000; background: rgba(0,0,0,0.45); }
.premium-box { background: linear-gradient(180deg,#0b0b0b,#070707); color: #fff; padding: 18px; border-radius: 10px; width: 360px; max-width: 92%; box-shadow: 0 20px 60px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.04); font-family: var(--font, sans-serif); }
.premium-box h4 { margin: 0 0 8px 0; font-size: 16px; color: var(--accent, #ffd36b); }
.premium-box p { margin: 0 0 12px 0; color: #dfe7ee; font-size: 13px; }
.premium-actions { display:flex; gap:8px; justify-content:flex-end; }
.premium-actions button { padding:8px 12px; border-radius:6px; cursor:pointer; border: none; font-weight:700; }
.btn-upgrade { background: linear-gradient(90deg,#ffb84d,#ff7a7a); color:#111; }
.btn-close { background: transparent; color:#cfd8e3; border:1px solid rgba(255,255,255,0.04); }

.spr-console{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), var(--panel));
  color: var(--accent);
  font-family: var(--font);
  border-radius: 12px;
  padding: 16px;
  max-width: 720px;
  margin: 20px auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), var(--glow);
  border:1px solid rgba(255,255,255,0.02);
  position: relative;
}

.spr-top-row{ display:flex; gap:12px; align-items:center; }
.vinyl {
  width: 140px;
  height: 140px;
  min-width: 72px;
  min-height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #0b0b0b 0%, #050505 40%, #000 100%);
  box-shadow: inset 0 6px 18px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  display: inline-block;
  transform-origin: 50% 50%;
  transition: transform 0.2s linear;
  border: 2px solid rgba(255,255,255,0.03);
}
.vinyl::before {
  content: attr(data-label);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: pre-wrap;
  line-height: 1.05;
  font-size: 9px;
  font-weight: 700;
  color: #000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, #f4c542 0%, #d48900 100%);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 6px;
  box-sizing: border-box;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  overflow: hidden;
}
.vinyl.spinning { animation: spin 3s linear infinite; }
.vinyl.paused { animation-play-state: paused; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.album-art img{ width:120px; height:120px; border-radius:8px; object-fit:cover; }

/* LED row now uses grid to lock icons on the right */
.led-display{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:8px;
  background:#0b0b0b;
  border:1px solid rgba(255,255,255,0.02);
  position:relative;
}

.led-text{
  min-width:0;
  max-width:100%;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:4px;
  grid-column:1;
}
.track-title{ font-weight:700; font-size:1rem; color:var(--accent); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.track-artist{ font-size:0.85rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.track-album{ font-size:0.75rem; color:rgba(255,255,255,0.12); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Marquee */
.spr-marquee{
  grid-column:1;
  flex:1 1 auto;
  min-width:0;
  margin-left:0;
  height:2.2em;
  background:transparent;
  display:block;
  overflow:hidden;
  position:relative;
}
.spr-marquee.no-scroll { display: none !important; }
.spr-marquee.scrolling-active { display: block !important; }
.spr-marquee .marquee-track {
  position:absolute;
  left:0;
  top:0;
  height:100%;
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  will-change:transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-name: marquee-loop;
  animation-duration: var(--marquee-duration, 8s);
  transform: translateX(0);
}
.spr-marquee .marquee-copy { display:inline-flex; align-items:center; white-space:nowrap; }
.spr-marquee .marquee-item { color:var(--accent); font-weight:700; font-size:0.95rem; text-shadow:0 0 6px rgba(244,197,66,0.08); margin-right:2.5rem; }

/* Keyframes use CSS variable set by JS */
@keyframes marquee-loop { from { transform: translateX(0); } to { transform: translateX(var(--marquee-distance, -100%)); } }

/* Hide LED text while marquee is actively scrolling */
.led-display.marquee-scrolling .led-text { display: none !important; }

/* Buttons */
.favorite-btn,
.purchase-btn,
.library-btn{
  background:none;
  border:none;
  cursor:pointer;
  color:var(--accent);
  padding:6px;
  border-radius:6px;
  grid-column:2;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:5;
}
.favorite-btn .fav-icon{ color:var(--accent); }
.purchase-btn i{ color:#d48900; }
.library-btn i{ color:#d48900; }


.transport-controls{ display:flex; gap:8px; margin-top:12px; justify-content:center; }
.transport-controls button{ padding:8px 12px; border-radius:6px; background:#1a1a1a; color:var(--muted); border:1px solid rgba(255,255,255,0.02); cursor:pointer; }

.playback-strip{ display:flex; gap:12px; align-items:center; margin-top:12px; flex-wrap:wrap; }
.play-pause{ width:56px; height:56px; border-radius:10px; background:linear-gradient(180deg,#222,#111); border:1px solid rgba(255,255,255,0.02); color:var(--accent); cursor:pointer; }

.progress-bar{ display:flex; align-items:center; gap:8px; width:100%; min-width:160px; }
.progress-bar input[type="range"]{ -webkit-appearance:none; height:8px; border-radius:6px; background:#222; flex:1; border:1px solid rgba(255,255,255,0.02); }
.progress-bar input[type="range"]::-webkit-slider-thumb{ -webkit-appearance:none; width:14px; height:14px; border-radius:50%; background:var(--accent); box-shadow:0 0 12px rgba(244,197,66,0.12); }

.volume-dial input[type="range"]{ width:120px; }

.footer-label{ margin-top:12px; text-align:center; font-weight:700; color:var(--muted); font-size:12px; }

.purchase-modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:12000; }
.purchase-box{ background:linear-gradient(180deg,#0b0b0b,#070707); padding:16px; border-radius:10px; width:320px; border:1px solid rgba(255,255,255,0.02); color:var(--muted); }
.purchase-box h3{ color:var(--accent); margin:0 0 8px 0; }



.library-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.75);
    z-index: 15000; /* above all other modals */
}

.library-modal.open {
    display: flex;
}

.library-content {
    width: 92%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0b0b0b;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}
.library-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.75);
    z-index: 15000;
}

.library-modal.open {
    display: flex;
}

.library-content {
    width: 92%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0b0b0b;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--muted);
}
.library-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
}

.tab-btn.active {
    background: var(--accent);
    color: #111;
}

.library-panel {
    display: none;
}

.library-panel.active {
    display: block;
}

.library-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.library-item {
    padding: 12px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
}

.library-title {
    font-weight: 700;
    color: var(--accent);
}

.library-artist {
    font-size: 0.85rem;
    color: var(--muted);
}

.library-empty {
    padding: 20px;
    text-align: center;
    color: var(--muted);
}
