:root{
  --bg1:#071325;
  --bg2:#0a1b2f;
  --text:#eaf1ff;
  --muted:#a9bbdd;

  --accent:#3b82f6;
  --accent2:#60a5fa;

  --shadow: 0 16px 44px rgba(0,0,0,.45);
  --radius: 18px;
  --border: rgba(255,255,255,.10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  padding-bottom: 86px;
  background:
    radial-gradient(900px 520px at 18% 10%, rgba(96,165,250,.12), transparent 62%),
    radial-gradient(800px 520px at 82% 22%, rgba(59,130,246,.10), transparent 58%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
}

a{color:var(--accent2); text-decoration:none}
a:hover{text-decoration:underline}

.container{width:min(1120px, 92vw); margin:0 auto}

/* a11y */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.ico{width:18px; height:18px; fill: currentColor; flex:0 0 auto}

/* Header */
.header{
  position:sticky; top:0; z-index:20;
  background: rgba(6,14,28,.60);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{display:flex; gap:12px; align-items:center; text-decoration:none}
.brand__logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--accent), rgba(255,255,255,.06));
  box-shadow: var(--shadow);
  font-weight:900;
  color:#fff;
}
.brand__name{font-weight:900; letter-spacing:.2px; color:var(--text)}
.brand__tag{color:var(--muted); font-size:13px}

.nav{display:flex; gap:8px; flex-wrap:wrap}
.nav a{
  color:var(--text);
  opacity:.92;
  padding:8px 10px;
  border-radius:12px;
}
.nav a:hover{
  opacity:1;
  background: rgba(255,255,255,.05);
}

/* Hero */
.hero{padding:34px 0 10px}

.badge{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  font-size:12px;
  letter-spacing:.4px;
  margin-bottom:10px;
}

.liveDot{
  width:10px; height:10px; border-radius:999px;
  background:#ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.18);
}

/* pulse când cântă */
body.is-playing .liveDot{
  animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse{
  0%{ box-shadow: 0 0 0 4px rgba(239,68,68,.16); }
  50%{ box-shadow: 0 0 0 9px rgba(239,68,68,.05); }
  100%{ box-shadow: 0 0 0 4px rgba(239,68,68,.16); }
}

h1{font-size: clamp(28px, 3.2vw, 46px); line-height:1.05; margin:0 0 10px}
h2{font-size: 26px; margin:0}
p{margin:0 0 10px}
.muted{color:var(--muted)}
.small{font-size:13px}

/* Buttons */
.cta{display:flex; gap:10px; margin:14px 0 10px; flex-wrap:wrap}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:12px 14px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.22)}
.btn:active{transform: translateY(0)}
.btn--primary{
  background: linear-gradient(135deg, var(--accent), rgba(255,255,255,.06));
  border-color: rgba(59,130,246,.55);
}
.btn--accent{
  background: linear-gradient(135deg, var(--accent2), rgba(255,255,255,.06));
  border-color: rgba(96,165,250,.55);
}
.btn--ghost{background: rgba(255,255,255,.04)}
.btn--small{padding:10px 12px; border-radius: 12px}

/* Status + volume */
.now{display:flex; gap:10px; flex-wrap:wrap; margin:10px 0}
.pill{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius:999px;
  padding:8px 10px;
  font-size:13px;
}
.volume{display:flex; gap:10px; align-items:center; margin:8px 0 10px}
input[type="range"]{width:260px; max-width: 100%}

/* Notice */
.notice{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 13px;
}

/* Sections */
.section{padding: 22px 0 26px}
.section__head{margin: 0 0 14px}

/* 2-col layout for Dedicatii + Chat sections */
.twoCol{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap:14px;
  align-items:start;
}
@media (max-width: 920px){
  .twoCol{grid-template-columns:1fr}
}

.sideStack{
  display:grid;
  gap:14px;
}

/* Generic grids */
.grid2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 920px){
  .grid2,.grid3{grid-template-columns:1fr}
}

/* Cards */
.card{
  background: rgba(10, 18, 34, .52);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(12px);
}
.card.soft{background: rgba(10, 18, 34, .44)}
.card__title{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px;
  font-weight:900;
  background: rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.titleIcon{
  width:28px; height:28px;
  border-radius:12px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.card__body{padding: 12px 14px}

.frameCard iframe{
  width:100%;
  height: clamp(460px, 60vh, 680px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.2);
}

/* Lists */
.list{list-style:none; padding:0; margin:0; display:grid; gap:10px}
.list li{
  display:grid;
  grid-template-columns: 70px 1fr;
  gap:14px;
  align-items:center;
}
.list span{color:var(--muted); font-variant-numeric: tabular-nums}

.bullets{margin:0; padding-left: 18px; display:grid; gap:8px}
.bullets li{opacity:.95}

/* Footer */
.footer{
  margin-top: 18px;
  padding: 16px 0 6px;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* Sticky player bar */
.playerBar{
  position: fixed;
  left:0; right:0; bottom:0;
  background: rgba(6,14,28,.72);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.08);
  z-index:50;
}
.playerBar__inner{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 10px 0;
}
.playerBar__meta{flex:1; min-width: 0}
.playerBar__title{font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.playerBar__status{font-size:12px}
.playerBar__vol{width: 180px}

@media (max-width: 520px){
  .nav{display:none}
  .playerBar__vol{width: 130px}
}

/* ---------------------------
   NOW PLAYING CARD + EQ
--------------------------- */
.nowPlayingCard{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;

  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
}

.npLeft{display:flex; align-items:center; gap:12px; min-width:0}
.npText{min-width:0}
.npLabel{
  font-size:12px;
  letter-spacing:.35px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom:2px;
}

.npMeta{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 62vw;
}
@media (max-width: 520px){
  .npMeta{max-width: 72vw;}
}

/* Equalizer */
.eq{
  width: 34px;
  height: 26px;
  display:flex;
  align-items:flex-end;
  gap:4px;
}
.eq span{
  width: 4px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.85);
  opacity: .55;
}

/* când e PLAYING, animăm barele */
body.is-playing .eq span{
  opacity: .9;
  animation: eqMove 900ms ease-in-out infinite;
}
body.is-playing .eq span:nth-child(2){animation-duration: 760ms}
body.is-playing .eq span:nth-child(3){animation-duration: 1020ms}
body.is-playing .eq span:nth-child(4){animation-duration: 840ms}
body.is-playing .eq span:nth-child(5){animation-duration: 980ms}

@keyframes eqMove{
  0%{height: 6px}
  20%{height: 18px}
  50%{height: 10px}
  80%{height: 22px}
  100%{height: 6px}
}

/* ---------------------------
   PRO MAX MARQUEE
   - start după 1.2s
   - pauză 1.2s la început și la final
   - distanță din JS (var --marqueeX)
--------------------------- */
.npTitle{
  font-weight:900;
  font-size:16px;
  white-space:nowrap;
  overflow:hidden;
  position: relative;
  max-width: 62vw;
}

.npTitle::before,
.npTitle::after{
  content:"";
  position:absolute; top:0; bottom:0;
  width:22px;
  pointer-events:none;
  z-index:2;
}
.npTitle::before{ left:0; background: linear-gradient(90deg, rgba(10,18,34,.65), transparent); }
.npTitle::after { right:0; background: linear-gradient(270deg, rgba(10,18,34,.65), transparent); }

#npTitle{
  display:inline-block;
  padding-right: 24px;
  will-change: transform;
  transition: opacity .18s ease;
}

/* când e overflow, JS pune clasa marquee și setează var + duration */
.npTitle.marquee #npTitle{
  animation-name: rafmMarquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--marqueeDur, 12s);
}

@keyframes rafmMarquee{
  /* pauză la început */
  0%   { transform: translateX(0); }
  10%  { transform: translateX(0); }

  /* scroll */
  75%  { transform: translateX(calc(var(--marqueeX, 0px) * -1)); }

  /* pauză la final */
  90%  { transform: translateX(calc(var(--marqueeX, 0px) * -1)); }
  100% { transform: translateX(0); }
}

#npMeta{
  transition: opacity .18s ease;
}