/* =========================================================================
   TOKENS
   ========================================================================= */
:root{
  --bg-deep:#0e1512;
  --bg-panel:#141c19;
  --bg-panel-2:#1b2521;

  --accent:#e8a33d;      /* marigold */
  --accent-soft:rgba(232,163,61,0.14);
  --teal:#2f9e8f;

  --cream:#f4ede1;
  --cream-dim:rgba(244,237,225,0.62);
  --cream-faint:rgba(244,237,225,0.32);

  --font-display:'Baloo 2', sans-serif;
  --font-body:'Poppins', sans-serif;

  --radius-lg:20px;
  --radius-md:14px;
  --radius-pill:999px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg-deep);
  color:var(--cream);
  font-family:var(--font-body);
  overflow-x:hidden;
}

a{ color:inherit; }
code{ color:var(--accent); background:rgba(0,0,0,.3); padding:.1rem .4rem; border-radius:6px; font-size:.85em; }
button{ font-family:inherit; }

/* =========================================================================
   SCENE — full-bleed background, minimal chrome
   ========================================================================= */
/* fixed layer behind everything — the only thing that moves on cursor-move */
.bg-parallax{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(1100px 650px at 82% -8%, rgba(232,163,61,0.14), transparent 60%),
    radial-gradient(900px 600px at -5% 105%, rgba(47,158,143,0.14), transparent 55%),
    linear-gradient(180deg, rgba(12,18,16,0.88) 0%, rgba(14,21,18,0.92) 55%, rgba(10,15,13,0.55) 100%),
    url("../assets/bg/mybg.png");
  background-size:auto, auto, auto, cover;
  background-position:center, center, center, center;
  background-repeat:no-repeat, no-repeat, no-repeat, no-repeat;
  transform:scale(1.06) translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition:transform .25s ease-out;
  will-change:transform;
}

.scene{
  position:relative; z-index:1;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:1.75rem 1.75rem 2.25rem;
}
.scene::before{
  /* faint dotted texture, kept extremely subtle for a modern, non-busy feel */
  content:"";
  position:fixed; inset:0; pointer-events:none; opacity:.5; z-index:0;
  background-image:radial-gradient(rgba(244,237,225,0.045) 1px, transparent 1px);
  background-size:26px 26px;
}

/* ---- top row ---- */
.scene-top{
  position:relative; z-index:2;
  display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:1rem;
}
.clock-time{ font-family:var(--font-display); font-weight:700; font-size:clamp(1.8rem,4vw,2.4rem); line-height:1; letter-spacing:.5px; }
.clock-date{ font-size:.72rem; color:var(--cream-dim); text-transform:uppercase; letter-spacing:1.5px; margin-top:.3rem; }

.on-air-pill{
  display:inline-flex; align-items:center; background:rgba(255,255,255,0.05); border:1px solid rgba(244,237,225,0.08);
  padding:.35rem .8rem; border-radius:var(--radius-pill); font-size:.75rem; color:var(--cream-dim); backdrop-filter:blur(6px);
}
.on-air-pill .dot{
  width:7px; height:7px; border-radius:50%; background:#3fd67a; margin-right:7px; display:inline-block;
  box-shadow:0 0 0 0 rgba(63,214,122,.6); animation:pulseDot 1.8s infinite;
}
@keyframes pulseDot{
  0%{ box-shadow:0 0 0 0 rgba(63,214,122,.5); }
  70%{ box-shadow:0 0 0 7px rgba(63,214,122,0); }
  100%{ box-shadow:0 0 0 0 rgba(63,214,122,0); }
}

.top-actions{ display:flex; gap:.6rem; }
.pill-btn{
  display:inline-flex; align-items:center; gap:.5rem; background:rgba(255,255,255,0.05);
  border:1px solid rgba(244,237,225,0.1); color:var(--cream); font-size:.85rem; font-weight:500;
  padding:.55rem 1.1rem; border-radius:var(--radius-pill); backdrop-filter:blur(6px);
}
.pill-btn:hover{ background:rgba(255,255,255,0.09); border-color:rgba(244,237,225,0.2); }
.pill-btn i{ color:var(--accent); font-size:.8rem; }

/* ---- center wordmark ---- */
.scene-center{
  position:relative; z-index:2; text-align:center; margin:auto; padding:3rem 0;
}
.eyebrow{
  font-size:.8rem; letter-spacing:2px; text-transform:uppercase; color:var(--cream-dim); margin-bottom:.6rem;
}
.wordmark{
  font-family:var(--font-display); font-weight:800; font-size:clamp(3rem,10vw,6.5rem); line-height:1.3;
  margin:0; color:var(--cream);
  background:linear-gradient(180deg, var(--cream) 45%, rgba(244,237,225,0.55));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.cta-link{
  margin-top:1.6rem; background:transparent; border:none; color:var(--cream-dim); font-size:.95rem;
  display:inline-flex; align-items:center; gap:.6rem; padding:.5rem 1rem; border-radius:var(--radius-pill);
  border:1px solid rgba(244,237,225,0.12);
}
.cta-link:hover{ color:var(--cream); border-color:rgba(244,237,225,0.28); background:rgba(255,255,255,0.04); }
.cta-link i{ color:var(--accent); }

/* ---- whatsapp fab ---- */
.whatsapp-fab{
  position:fixed; left:1.5rem; bottom:1.5rem; z-index:20;
  width:48px; height:48px; border-radius:50%; background:#25D366; color:#0e2e18;
  display:flex; align-items:center; justify-content:center; font-size:1.3rem; box-shadow:0 10px 26px rgba(0,0,0,.35);
}
.whatsapp-fab:hover{ filter:brightness(1.06); color:#0e2e18; }

/* =========================================================================
   NOW PLAYING BAR
   ========================================================================= */
.now-bar{
  position:relative; z-index:2;
  max-width:760px; width:100%; margin:0 auto;
  background:rgba(20,28,25,0.72);
  border:1px solid rgba(244,237,225,0.08);
  border-radius:var(--radius-lg);
  padding:1rem 1.1rem;
  display:flex; align-items:center; gap:1rem;
  backdrop-filter:blur(14px);
  box-shadow:0 30px 60px rgba(0,0,0,.35);
}
.now-art{
  flex:none; width:56px; height:56px; border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, #12201c 0 5px, transparent 5.5px),
    repeating-radial-gradient(circle at 50% 50%, rgba(0,0,0,0.18) 0 2px, transparent 2px 6px),
    linear-gradient(135deg, var(--accent), var(--teal));
  display:flex; align-items:center; justify-content:center; color:rgba(18,32,28,0.55); font-size:1.05rem;
  box-shadow:0 4px 14px rgba(0,0,0,.35);
  animation:discSpin 2.8s linear infinite;
  animation-play-state:paused;
}
.now-art.is-playing{ animation-play-state:running; }
@keyframes discSpin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){
  .now-art{ animation:none; }
}
.now-info{ flex:1; min-width:0; }
.now-title{
  margin:0; font-weight:600; font-size:.95rem; color:var(--cream);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.now-meta{
  margin:0; font-size:.76rem; color:var(--cream-dim);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.now-progress{ display:flex; align-items:center; gap:.6rem; margin-top:.45rem; }
.now-time{ font-size:.68rem; color:var(--cream-faint); flex:none; min-width:2ch; }
.progress-track{ flex:1; height:4px; border-radius:999px; background:rgba(244,237,225,0.12); cursor:pointer; overflow:hidden; }
.progress-fill{ height:100%; width:0%; background:var(--accent); border-radius:999px; }

.now-controls{ flex:none; display:flex; align-items:center; gap:.5rem; }
.ctrl-btn{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(244,237,225,0.12); background:rgba(255,255,255,0.04);
  color:var(--cream); display:flex; align-items:center; justify-content:center; font-size:.85rem;
}
.ctrl-btn:hover{ background:rgba(255,255,255,0.09); }
.ctrl-btn-lg{
  width:46px; height:46px; font-size:1.05rem; background:var(--accent); color:#241705; border:none;
}
.ctrl-btn-lg:hover{ background:#f0b459; }

.volume-wrap{ align-items:center; gap:.4rem; color:var(--cream-dim); font-size:.75rem; margin-left:.3rem; }
.volume-wrap input[type="range"]{ width:70px; accent-color:var(--accent); }

/* =========================================================================
   LIBRARY OFF-CANVAS
   ========================================================================= */
.library-panel{
  position:fixed; inset:0; z-index:100;
  background:rgba(6,9,8,0.6); backdrop-filter:blur(4px);
  display:flex; justify-content:flex-end;
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.library-panel.is-open{ opacity:1; pointer-events:auto; }

.library-inner{
  width:min(560px, 100%); height:100%; background:var(--bg-panel);
  border-left:1px solid rgba(244,237,225,0.08);
  padding:1.5rem 1.4rem 2rem; overflow-y:auto;
  transform:translateX(24px); transition:transform .22s ease;
}
.library-panel.is-open .library-inner{ transform:translateX(0); }

.library-head{ display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.close-btn{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(244,237,225,0.12); background:transparent;
  color:var(--cream); flex:none;
}
.close-btn:hover{ background:rgba(255,255,255,0.06); }

.section-tabs{ display:flex; gap:.5rem; list-style:none; padding:0; margin:0; }
.section-tab{
  font-weight:600; font-size:.85rem; background:transparent; border:1px solid rgba(244,237,225,0.1);
  color:var(--cream-dim); padding:.5rem 1rem; border-radius:var(--radius-pill);
}
.section-tab.active{ background:var(--accent); color:#241705; border-color:var(--accent); }

.search-box{ position:relative; margin-bottom:1.1rem; }
.search-box i{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--cream-faint); font-size:.85rem; }
.search-box input{
  width:100%; background:var(--bg-panel-2); border:1px solid rgba(244,237,225,0.08); border-radius:var(--radius-pill);
  color:var(--cream); padding:.6rem 1rem .6rem 2.4rem; font-size:.9rem;
}
.search-box input:focus{ outline:none; border-color:var(--accent); }
.search-box input::placeholder{ color:var(--cream-faint); }

.song-card{
  background:var(--bg-panel-2); border:1px solid rgba(244,237,225,0.06); border-radius:var(--radius-md);
  padding:.7rem .8rem; display:flex; align-items:center; gap:.7rem; cursor:pointer; transition:border-color .15s;
}
.song-card:hover{ border-color:rgba(232,163,61,0.35); }
.song-card.is-active{ border-color:var(--accent); background:rgba(232,163,61,0.07); }

.song-poster{
  flex:none; width:40px; height:40px; border-radius:9px; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:.85rem; color:#241705;
}
.song-body{ min-width:0; flex:1; }
.song-title{ font-weight:600; font-size:.86rem; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.song-meta{ font-size:.72rem; color:var(--cream-dim); margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.song-play{
  flex:none; width:32px; height:32px; border-radius:50%; border:1px solid rgba(244,237,225,0.12);
  background:transparent; color:var(--cream); display:flex; align-items:center; justify-content:center; font-size:.75rem;
}
.song-card:hover .song-play{ background:var(--accent); border-color:var(--accent); color:#241705; }

.empty-state{ color:var(--cream-dim); padding:2.5rem 0; font-size:.9rem; }
.empty-state i{ font-size:1.8rem; color:var(--accent); margin-bottom:.6rem; display:block; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 575.98px){
  .now-bar{ flex-wrap:wrap; }
  .now-controls{ order:3; width:100%; justify-content:center; margin-top:.4rem; }
  .now-info{ order:2; width:calc(100% - 72px); }
  .volume-wrap{ display:none !important; }
  .top-actions{ width:100%; }
  .pill-btn{ flex:1; justify-content:center; }
}
