/* ==========================================================================
   CloudMelody · Design System v2
   Paleta derivada del logotipo oficial: azul marino + cian.
   Regla: un solo acento, superficies planas, hairlines de 1px.
   ========================================================================== */

:root{
  --bg:#04090F;
  --bg-2:#061019;
  --surface:#0A1823;
  --surface-2:#0D2130;
  --surface-3:#112A3B;
  --line:rgba(168,206,224,.12);
  --line-strong:rgba(168,206,224,.24);
  --text:#EDF5F9;
  --text-2:#A2B8C5;
  --text-3:#7E97A6;
  --accent:#22D3E6;
  --accent-soft:rgba(34,211,230,.12);
  --accent-line:rgba(34,211,230,.34);
  --on-accent:#032128;
  --shadow:0 30px 70px -34px rgba(0,0,0,.9);
  --r-sm:10px;
  --r-md:14px;
  --r-lg:20px;
  --r-xl:26px;
  --ctx-h:42px;
  --bar-h:70px;
  --font:"Instrument Sans","Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --max:1180px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

[data-theme="light"]{
  --bg:#F3F7F9;
  --bg-2:#EAF0F4;
  --surface:#FFFFFF;
  --surface-2:#F7FAFB;
  --surface-3:#EDF3F6;
  --line:rgba(8,44,62,.10);
  --line-strong:rgba(8,44,62,.20);
  --text:#071A24;
  --text-2:#435E6D;
  --text-3:#5E7785;
  --accent:#067F90;
  --accent-soft:rgba(6,127,144,.10);
  --accent-line:rgba(6,127,144,.32);
  --on-accent:#FFFFFF;
  --shadow:0 30px 70px -40px rgba(7,26,36,.35);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  padding-top:var(--ctx-h);
  transition:background-color .35s var(--ease),color .35s var(--ease);
}
body.kiosk{padding-top:0}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(70% 46% at 50% -12%,rgba(34,211,230,.10),transparent 70%),
    radial-gradient(36% 30% at 96% 12%,rgba(14,90,138,.14),transparent 70%);
}
[data-theme="light"] body::before{
  background:
    radial-gradient(70% 46% at 50% -12%,rgba(6,127,144,.09),transparent 70%),
    radial-gradient(36% 30% at 96% 12%,rgba(14,90,138,.06),transparent 70%);
}
img,svg{display:block;max-width:100%}
svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
button{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
h1,h2,h3,p,ol,ul{margin:0}
ol,ul{padding:0;list-style:none}
::selection{background:var(--accent);color:var(--on-accent)}

:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.skip{
  position:fixed;left:16px;top:-80px;z-index:2000;
  background:var(--accent);color:var(--on-accent);
  padding:10px 16px;border-radius:8px;font-weight:600;font-size:13px;
  transition:top .2s var(--ease);
}
.skip:focus{top:12px}

.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
.muted{color:var(--text-3)}
.eyebrow{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--text-3);
}
.dot-sep{width:3px;height:3px;border-radius:50%;background:var(--line-strong);flex:none}

/* ---------------------------------------------------------------- icons */
.i{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;flex:none}
.i--sm{width:14px;height:14px}
.i--lg{width:22px;height:22px}

/* --------------------------------------------------------------- layout */
.wrap{width:100%;max-width:var(--max);margin:0 auto;padding:0 clamp(16px,3vw,28px)}
main{position:relative;z-index:1}
main > .wrap > * + *{margin-top:clamp(26px,3.4vw,44px)}

/* ------------------------------------------------------- context microbar */
.ctx{
  position:fixed;inset:0 0 auto 0;z-index:120;
  height:var(--ctx-h);
  display:flex;align-items:center;gap:14px;
  padding:0 clamp(12px,2.4vw,22px);
  background:color-mix(in srgb,var(--bg) 82%,transparent);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  font-size:12px;
}
.ctx__loc{display:flex;align-items:center;gap:7px;color:var(--text-2);flex:none;white-space:nowrap}
.ctx__loc svg{width:13px;height:13px;color:var(--accent)}
.ctx__loc b{color:var(--text);font-weight:600}
.ctx__pulse{
  width:5px;height:5px;border-radius:50%;background:var(--accent);flex:none;
  box-shadow:0 0 0 3px var(--accent-soft);
}
.ctx__news{
  display:flex;align-items:center;gap:10px;min-width:0;flex:1;
}
.ctx__news-label{
  font-family:var(--mono);font-size:9px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--accent);flex:none;
}
.ticker{position:relative;flex:1;min-width:0;height:20px;overflow:hidden}
.ticker__track{position:absolute;inset:0;display:flex;align-items:center;gap:0;min-width:0}
.ticker__item{
  display:inline-flex;align-items:baseline;gap:8px;min-width:0;width:100%;
  font-size:12px;color:var(--text-2);
  transition:opacity .26s var(--ease),transform .26s var(--ease);
}
.ticker__item:hover{color:var(--text)}
.ticker__item .scope{
  font-family:var(--mono);font-size:9px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-3);border:1px solid var(--line);border-radius:999px;
  padding:1px 6px;flex:none;line-height:1.5;
}
.ticker__item[data-scope="Zulia"] .scope{color:var(--accent);border-color:var(--accent-line)}
.ticker__item .txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ticker__item.is-out{opacity:0;transform:translateY(-5px)}
.ticker__item.is-in{animation:newsIn .3s var(--ease) both}
@keyframes newsIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.ticker__ctrl{display:flex;align-items:center;gap:2px;flex:none}
.tick-btn{
  width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:6px;
  background:transparent;color:var(--text-3);cursor:pointer;transition:color .2s,background .2s;
}
.tick-btn:hover{color:var(--text);background:var(--surface-2)}
.tick-btn svg{width:13px;height:13px}
.ctx__right{display:flex;align-items:center;gap:12px;flex:none;margin-left:auto}
.ctx__time{display:flex;align-items:baseline;gap:5px;color:var(--text)}
.ctx__time .mono{font-size:12px;letter-spacing:.02em}
.ctx__time span{font-family:var(--mono);font-size:9px;letter-spacing:.1em;color:var(--text-3)}
.ctx__wx{display:flex;align-items:center;gap:6px;color:var(--text-2)}
.ctx__wx svg{width:16px;height:16px;color:var(--accent)}
.ctx__wx b{color:var(--text);font-weight:600;font-size:12px}
.theme-btn{
  width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  border:1px solid var(--line);background:transparent;color:var(--text-2);
  cursor:pointer;transition:.2s var(--ease);
}
.theme-btn:hover{color:var(--text);border-color:var(--line-strong);background:var(--surface-2)}
.theme-btn svg{width:14px;height:14px}
.theme-btn .sun{display:none}
[data-theme="light"] .theme-btn .sun{display:block}
[data-theme="light"] .theme-btn .moon{display:none}

/* ---------------------------------------------------------------- appbar */
.appbar{
  position:sticky;top:var(--ctx-h);z-index:100;
  height:var(--bar-h);
  display:flex;align-items:center;gap:22px;
  padding:0 clamp(16px,3vw,28px);
  background:color-mix(in srgb,var(--bg) 78%,transparent);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
}
.brand{display:flex;align-items:center;flex:none}
.logo{height:40px;width:auto}
.logo--light{display:none}
[data-theme="light"] .logo--dark{display:none}
[data-theme="light"] .logo--light{display:block}
.nav{display:flex;align-items:center;gap:clamp(14px,2vw,26px);margin-left:8px}
.nav a{
  font-size:13px;color:var(--text-2);position:relative;padding:6px 0;
  transition:color .2s var(--ease);
}
.nav a:hover,.nav a:focus-visible{color:var(--text)}
.nav a::after{
  content:"";position:absolute;left:0;right:100%;bottom:0;height:1px;
  background:var(--accent);transition:right .25s var(--ease);
}
.nav a:hover::after{right:0}
.appbar__actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:38px;padding:0 15px;border-radius:999px;border:1px solid var(--line);
  background:transparent;color:var(--text);font-size:12.5px;font-weight:600;
  cursor:pointer;white-space:nowrap;transition:.2s var(--ease);
}
.btn:hover{border-color:var(--line-strong);background:var(--surface-2)}
.btn--accent{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn--accent:hover{filter:brightness(1.06);background:var(--accent)}
.btn svg{width:15px;height:15px}
.icon-btn{
  width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
  border:1px solid var(--line);background:transparent;color:var(--text-2);
  cursor:pointer;transition:.2s var(--ease);flex:none;
}
.icon-btn:hover:not(:disabled){color:var(--text);border-color:var(--line-strong);background:var(--surface-2)}
.icon-btn:disabled{opacity:.4;cursor:default}
.icon-btn svg{width:16px;height:16px}
.link-btn{
  border:0;background:none;padding:0;color:var(--accent);font-size:12px;font-weight:600;
  cursor:pointer;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;
}
.link-btn:hover{text-decoration:underline;text-underline-offset:3px}

/* --------------------------------------------------------------- signals */
.signals-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:14px}
.signals-head h2{font-size:clamp(18px,2vw,22px);font-weight:650;letter-spacing:-.02em}
.signals-head p{font-size:12px;color:var(--text-3)}
.signals{position:relative;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}
.signals::-webkit-scrollbar{display:none}
.signals__ind{
  position:absolute;left:0;top:0;height:100%;border-radius:999px;
  background:var(--surface-2);border:1px solid var(--line-strong);
  transition:transform .32s var(--ease),width .32s var(--ease);pointer-events:none;
}
.signal{
  position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px;
  height:40px;padding:0 16px;border:1px solid transparent;border-radius:999px;
  background:transparent;color:var(--text-3);font-size:12.5px;font-weight:600;
  cursor:pointer;white-space:nowrap;transition:color .2s var(--ease);
}
.signal:hover{color:var(--text-2)}
.signal svg{width:15px;height:15px}
.signal[aria-selected="true"]{color:var(--text)}
.signal[aria-selected="true"] svg{color:var(--accent)}
.signal__badge{
  display:none;font-family:var(--mono);font-size:8px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--accent);border:1px solid var(--accent-line);border-radius:999px;padding:1px 5px;
}
.signal.is-suggested .signal__badge{display:inline-block}
.curation{
  display:flex;align-items:center;gap:12px;margin-top:14px;
  padding:11px 14px;border:1px solid var(--line);border-radius:var(--r-md);
  background:var(--surface);
}
.curation__dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none;
  box-shadow:0 0 0 4px var(--accent-soft)}
.curation p{font-size:12.5px;color:var(--text-2);min-width:0}
.curation strong{color:var(--text);font-weight:600}
.curation em{font-style:normal;color:var(--text-3)}
.curation .link-btn{margin-left:auto}

/* ----------------------------------------------------------- player grid */
.grid{
  display:grid;
  grid-template-columns:minmax(290px,382px) minmax(0,1fr);
  gap:clamp(20px,3.2vw,40px);
  align-items:start;
}

/* player card */
.player-card{
  position:sticky;top:calc(var(--ctx-h) + var(--bar-h) + 20px);
  border:1px solid var(--line);border-radius:var(--r-xl);
  background:var(--surface);
  padding:14px;
  box-shadow:var(--shadow);
}
.player-card__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;min-height:22px}
.status{
  display:inline-flex;align-items:center;gap:7px;
  font-family:var(--mono);font-size:9px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--text-2);
}
.status__dot{width:6px;height:6px;border-radius:50%;background:var(--text-3);flex:none}
.status[data-state="live"]{color:var(--accent)}
.status[data-state="live"] .status__dot{background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft);animation:blink 2.4s infinite}
.status[data-state="reconnect"]{color:var(--text-2)}
.status[data-state="reconnect"] .status__dot{background:var(--accent);animation:blink .9s infinite}
.status[data-state="demo"]{color:var(--text-3)}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.35}}
.icon-btn--sm{width:30px;height:30px}
.icon-btn--sm svg{width:14px;height:14px}

.cover{
  position:relative;aspect-ratio:1;border-radius:18px;overflow:hidden;
  background:
    radial-gradient(120% 90% at 20% 0%,#123a52 0%,transparent 60%),
    linear-gradient(160deg,#0b2130 0%,#061420 55%,#0a2a3a 100%);
  border:1px solid var(--line);
  isolation:isolate;
}
.cover img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .4s var(--ease)}
.cover img.is-loaded{opacity:1}
.cover__fallback{
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:14px;
  transition:opacity .35s var(--ease);
}
.cover__fallback.is-hidden{opacity:0;pointer-events:none}
.cover__initials{
  font-size:clamp(38px,7vw,54px);font-weight:650;letter-spacing:-.04em;
  color:var(--accent);opacity:.9;
}
.cover__wave{width:64%;height:26px;opacity:.5}
.cover__wave path{stroke:var(--accent);stroke-width:2;fill:none;stroke-linecap:round}
.cover__kbps{
  position:absolute;left:10px;bottom:10px;z-index:2;
  font-family:var(--mono);font-size:9px;letter-spacing:.06em;
  padding:3px 7px;border-radius:5px;
  background:rgba(3,9,15,.62);color:#dfeef5;border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(6px);
}
[data-theme="light"] .cover__kbps{background:rgba(3,16,24,.55);color:#f2f8fa}

.eq{
  display:flex;align-items:flex-end;justify-content:center;gap:3px;
  height:30px;margin:14px 0 12px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
}
.eq span{
  width:2px;height:100%;border-radius:2px;background:var(--accent);
  transform:scaleY(.1);transform-origin:bottom;opacity:.35;
  transition:opacity .3s var(--ease);
}
.eq.is-active span{opacity:.9}

.transport{display:flex;align-items:center;justify-content:center;gap:16px;margin:2px 0 14px}
.play{
  width:58px;height:58px;border-radius:50%;border:0;cursor:pointer;
  display:grid;place-items:center;background:var(--accent);color:var(--on-accent);
  transition:transform .18s var(--ease),filter .2s var(--ease),box-shadow .2s var(--ease);
  box-shadow:0 10px 30px -12px var(--accent-line);
}
.play:hover{transform:scale(1.04);filter:brightness(1.05)}
.play:active{transform:scale(.97)}
.play svg{width:22px;height:22px;stroke-width:1.8}
.play .i--pause{display:none}
.play[aria-pressed="true"] .i--play{display:none}
.play[aria-pressed="true"] .i--pause{display:block}

.volume{display:flex;align-items:center;gap:10px;padding:0 2px}
.volume svg{width:16px;height:16px;color:var(--text-3);flex:none}
.volume .mono{font-size:10px;color:var(--text-3);width:24px;text-align:right;flex:none}
input[type="range"]{
  -webkit-appearance:none;appearance:none;width:100%;height:3px;border-radius:99px;
  background:var(--surface-3);cursor:pointer;outline-offset:6px;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;width:12px;height:12px;border-radius:50%;
  background:var(--accent);border:0;box-shadow:0 0 0 3px var(--bg);
}
input[type="range"]::-moz-range-thumb{
  width:12px;height:12px;border-radius:50%;background:var(--accent);border:0;
}
.player-card__foot{
  display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:12px;
  border-top:1px solid var(--line);
  font-size:10.5px;color:var(--text-3);
}
.player-card__foot .mono{font-size:10.5px}

/* ------------------------------------------------------------- now block */
.now{border-top:1px solid var(--line);padding-top:18px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.now__artist{
  font-size:clamp(14px,1.5vw,17px);font-weight:600;color:var(--accent);
  letter-spacing:.01em;
}
.now__title{
  font-size:clamp(30px,4.6vw,56px);font-weight:650;letter-spacing:-.035em;
  line-height:1.03;margin:2px 0 12px;text-wrap:balance;
  overflow-wrap:anywhere;
}
.now__tags{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.chip{
  display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;
  border-radius:999px;border:1px solid var(--accent-line);background:var(--accent-soft);
  color:var(--accent);font-size:10.5px;font-weight:600;white-space:nowrap;
}
.chip--ghost{border-color:var(--line);background:transparent;color:var(--text-3);font-weight:500}
.chip svg{width:11px;height:11px}

/* ---------------------------------------------------------------- lists */
.lists{display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,2.4vw,26px);margin-top:clamp(24px,3vw,34px)}
.list-card{min-width:0}
.list-card > header{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding-bottom:10px;border-bottom:1px solid var(--line-strong);
}
.list-card h3{font-size:12px;font-weight:600;letter-spacing:.01em}
.list-card header .mono{font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}
.tracks{min-width:0}
.track{
  display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;
  align-items:center;padding:9px 0;border-bottom:1px solid var(--line);
}
.track:last-child{border-bottom:0}
.track time{font-family:var(--mono);font-size:10px;color:var(--text-3);letter-spacing:-.01em}
.track__title{
  font-size:12.5px;font-weight:600;color:var(--text);line-height:1.3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.track__artist{
  font-size:10.5px;color:var(--text-3);line-height:1.4;margin-top:1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.track__eta{font-family:var(--mono);font-size:9.5px;color:var(--accent);white-space:nowrap}
.track--id .track__title{color:var(--text-2);font-style:italic}

/* ------------------------------------------------------------------- ads */
.ad-section{margin-top:clamp(24px,3vw,34px)}
.ad{
  position:relative;border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;background:var(--surface-2);aspect-ratio:1584/672;
}
.ad__slides{position:absolute;inset:0}
.ad__slide{
  position:absolute;inset:0;opacity:0;transition:opacity .5s var(--ease);
  pointer-events:none;display:block;
}
.ad__slide.is-on{opacity:1;pointer-events:auto}
.ad__slide img{width:100%;height:100%;object-fit:cover}
.ad__tag{
  position:absolute;left:10px;top:10px;z-index:3;
  font-family:var(--mono);font-size:8px;letter-spacing:.14em;text-transform:uppercase;
  color:#eaf6fa;background:rgba(3,9,15,.62);border:1px solid rgba(255,255,255,.18);
  padding:3px 6px;border-radius:4px;backdrop-filter:blur(6px);pointer-events:none;
}
.ad__dots{display:flex;justify-content:center;gap:6px;margin-top:10px}
.ad__dot{
  width:18px;height:3px;border-radius:99px;border:0;background:var(--line-strong);
  cursor:pointer;padding:0;transition:background .2s,width .2s;
}
.ad__dot[aria-selected="true"]{background:var(--accent);width:26px}

/* creative de casa (sin imagen) */
.creative{
  width:100%;height:100%;padding:clamp(14px,3vw,30px);
  display:flex;flex-direction:column;justify-content:center;gap:6px;
  background:
    radial-gradient(90% 140% at 100% 0%,rgba(34,211,230,.16),transparent 60%),
    linear-gradient(120deg,#082334 0%,#051521 70%);
  color:#eaf6fa;position:relative;overflow:hidden;
}
.creative::after{
  content:"";position:absolute;right:-8%;bottom:-40%;width:52%;height:110%;
  border-radius:50%;border:1px solid rgba(34,211,230,.22);
  box-shadow:0 0 0 22px rgba(34,211,230,.05),0 0 0 46px rgba(34,211,230,.03);
}
.creative__k{font-family:var(--mono);font-size:8.5px;letter-spacing:.18em;text-transform:uppercase;color:#22D3E6}
.creative__t{font-size:clamp(17px,3vw,26px);font-weight:650;letter-spacing:-.02em;line-height:1.05;max-width:80%}
.creative__c{font-size:clamp(10px,1.4vw,12px);color:#a9c0cc;max-width:66%}
.creative__wave{display:flex;align-items:flex-end;gap:3px;height:18px;margin-top:6px}
.creative__wave i{width:2px;background:#22D3E6;opacity:.55;border-radius:2px;display:block}

/* -------------------------------------------------------------- CMI band */
.band{
  display:flex;align-items:center;justify-content:space-between;gap:clamp(18px,4vw,48px);
  border:1px solid var(--line);border-radius:var(--r-xl);background:var(--surface);
  padding:clamp(20px,3.4vw,34px);flex-wrap:wrap;
}
.band h2{font-size:clamp(19px,2.4vw,27px);font-weight:650;letter-spacing:-.025em;margin:6px 0 6px}
.band p{font-size:12.5px;color:var(--text-2);max-width:48ch}
.band__acts{display:flex;gap:10px;flex-wrap:wrap}

/* --------------------------------------------------------------- footer */
.footer{
  border-top:1px solid var(--line);margin-top:clamp(34px,5vw,64px);
  padding:28px 0 34px;
}
.footer__inner{
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  font-size:11.5px;color:var(--text-3);
}
.footer__brand{display:flex;align-items:center;gap:10px}
.footer__brand img{height:30px;width:auto}
.footer__links{display:flex;gap:16px;flex-wrap:wrap}
.footer__links a:hover{color:var(--text)}
.footer .mono{font-size:10px;letter-spacing:.06em}

/* ----------------------------------------------------------- mini player */
.mini{
  position:fixed;left:50%;bottom:18px;z-index:130;
  width:min(660px,calc(100vw - 24px));
  transform:translate(-50%,140%);
  display:flex;align-items:center;gap:12px;
  padding:9px 10px 9px 9px;border-radius:16px;
  border:1px solid var(--line-strong);background:color-mix(in srgb,var(--surface) 84%,transparent);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  box-shadow:0 24px 50px -24px rgba(0,0,0,.7);
  transition:transform .38s var(--ease);
}
body.mini-on .mini{transform:translate(-50%,0)}
.mini__thumb{
  width:44px;height:44px;border-radius:10px;overflow:hidden;flex:none;
  background:linear-gradient(150deg,#0d2a3c,#061420);border:1px solid var(--line);
  display:grid;place-items:center;font-size:12px;font-weight:650;color:var(--accent);
}
.mini__thumb img{width:100%;height:100%;object-fit:cover}
.mini__meta{min-width:0;flex:1}
.mini__title{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini__artist{font-size:10.5px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini__bars{display:flex;align-items:flex-end;gap:2px;height:16px;flex:none}
.mini__bars i{width:2px;background:var(--accent);border-radius:2px;height:30%;opacity:.5}
body.is-playing .mini__bars i{animation:miniBar 1s infinite ease-in-out;opacity:.9}
body.is-playing .mini__bars i:nth-child(2){animation-delay:.15s}
body.is-playing .mini__bars i:nth-child(3){animation-delay:.3s}
body.is-playing .mini__bars i:nth-child(4){animation-delay:.45s}
@keyframes miniBar{0%,100%{height:25%}50%{height:100%}}
.mini .icon-btn{width:34px;height:34px}
.mini .icon-btn svg{width:15px;height:15px}
.mini__play{
  width:38px;height:38px;border-radius:50%;border:0;background:var(--accent);
  color:var(--on-accent);display:grid;place-items:center;cursor:pointer;flex:none;
}
.mini__play svg{width:16px;height:16px}
.mini__play .i--pause{display:none}
body.is-playing .mini__play .i--play{display:none}
body.is-playing .mini__play .i--pause{display:block}

/* ----------------------------------------------------------------- kiosk */
.kiosk{
  position:fixed;inset:0;z-index:1000;background:var(--bg);
  display:none;flex-direction:column;justify-content:space-between;
  padding:clamp(22px,3.6vw,54px);
  cursor:none;
}
body.kiosk .kiosk{display:flex}
body.kiosk{overflow:hidden}
.kiosk__top{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.kiosk__logo{height:clamp(34px,4.4vw,56px);width:auto}
.kiosk__clock{
  font-family:var(--mono);font-size:clamp(26px,4.2vw,54px);line-height:1;letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;text-align:right;
}
.kiosk__date{display:block;font-size:clamp(10px,1.1vw,13px);color:var(--text-3);margin-top:8px;text-align:right}
.kiosk__wx{
  display:flex;align-items:center;justify-content:flex-end;gap:10px;
  margin-top:12px;color:var(--text-2);font-size:clamp(11px,1.2vw,14px);
}
.kiosk__wx svg{width:clamp(20px,2.4vw,30px);height:clamp(20px,2.4vw,30px);color:var(--accent)}
.kiosk__wx b{font-size:clamp(15px,2vw,24px);color:var(--text);font-weight:650}
.kiosk__main{max-width:1100px}
.kiosk__eyebrow{color:var(--accent);font-family:var(--mono);font-size:clamp(10px,1.1vw,13px);letter-spacing:.18em;text-transform:uppercase}
.kiosk__artist{font-size:clamp(16px,2.4vw,30px);font-weight:600;color:var(--text-2);margin-top:clamp(10px,1.6vw,20px)}
.kiosk__title{
  font-size:clamp(34px,7vw,96px);font-weight:650;letter-spacing:-.04em;line-height:.98;
  margin-top:6px;max-width:18ch;overflow-wrap:anywhere;
}
.kiosk__eq{display:flex;align-items:flex-end;gap:4px;height:clamp(24px,4vw,48px);margin-top:clamp(20px,3vw,40px)}
.kiosk__eq span{width:3px;height:100%;background:var(--accent);border-radius:2px;transform:scaleY(.12);transform-origin:bottom;opacity:.6}
.kiosk__bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.kiosk__brand{font-size:clamp(14px,1.8vw,20px);font-weight:650;letter-spacing:-.02em}
.kiosk__slogan{font-family:var(--mono);font-size:clamp(9px,1vw,11px);letter-spacing:.18em;text-transform:uppercase;color:var(--text-3);margin-top:4px}
.kiosk__qr{display:flex;align-items:center;gap:12px}
.kiosk__qr img{width:clamp(64px,7vw,96px);height:auto;border-radius:6px;background:#fff;padding:5px}
.kiosk__qr span{font-family:var(--mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-3);max-width:7ch}
.kiosk__exit{
  position:fixed;right:18px;bottom:18px;z-index:1001;
  font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;
  padding:8px 12px;border-radius:999px;border:1px solid var(--line);
  background:var(--surface);color:var(--text-3);cursor:pointer;opacity:0;
  transition:opacity .25s var(--ease),color .2s;
}
body.kiosk:hover .kiosk__exit,body.kiosk .kiosk__exit:focus-visible{opacity:1;color:var(--text)}

/* ---------------------------------------------------------------- dialog */
dialog{
  border:1px solid var(--line-strong);border-radius:var(--r-lg);
  background:var(--surface);color:var(--text);padding:0;width:min(560px,calc(100vw - 28px));
  box-shadow:var(--shadow);
}
dialog::backdrop{background:rgba(2,7,11,.72);backdrop-filter:blur(6px)}
.dialog__head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:16px 18px;border-bottom:1px solid var(--line);
}
.dialog__head h2{font-size:14px;font-weight:650}
.dialog__body{padding:8px 18px 18px;max-height:60vh;overflow:auto}
.dialog__body img{width:100%;height:auto;border-radius:10px;border:1px solid var(--line)}
.newsp{display:flex;gap:9px;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--line);font-size:12.5px;color:var(--text-2)}
.newsp:last-child{border:0}
.newsp a:hover{color:var(--text)}
.newsp .scope{font-family:var(--mono);font-size:8.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);flex:none}
.dialog__note{font-size:11px;color:var(--text-3);padding:12px 18px 18px;border-top:1px solid var(--line)}

/* ----------------------------------------------------------------- toast */
.toast{
  position:fixed;left:50%;bottom:22px;z-index:1500;
  transform:translate(-50%,20px);opacity:0;pointer-events:none;
  background:var(--surface-3);color:var(--text);border:1px solid var(--line-strong);
  padding:9px 14px;border-radius:999px;font-size:12px;box-shadow:var(--shadow);
  transition:opacity .25s var(--ease),transform .25s var(--ease);
  max-width:calc(100vw - 32px);text-align:center;
}
.toast.is-on{opacity:1;transform:translate(-50%,0)}

/* ------------------------------------------------------------ responsive */
@media (max-width:1024px){
  .grid{grid-template-columns:1fr}
  .player-card{position:static;max-width:440px;margin:0 auto;width:100%}
  .now{border-top:0;padding-top:0}
  .nav{display:none}
}
@media (max-width:860px){
  .lists{grid-template-columns:1fr}
  .signals-head{align-items:flex-start;flex-direction:column;gap:6px}
  .ctx__news-label{display:none}
  .logo{height:34px}
}
@media (max-width:720px){
  :root{--ctx-h:82px;--bar-h:62px}
  .ctx{flex-wrap:wrap;height:auto;padding-top:0;padding-bottom:0;row-gap:0;gap:0}
  .ctx__loc{padding:8px 0;flex:1}
  .ctx__right{padding:8px 0}
  .ctx__news{
    order:3;flex-basis:100%;padding:5px 0 6px;
    border-top:1px solid var(--line);gap:8px;
  }
  .ctx__news-label{display:inline}
  .appbar{position:sticky;top:var(--ctx-h);gap:12px}
  .appbar__actions .btn span{display:none}
  .appbar__actions .btn{width:38px;padding:0}
  .signals{gap:2px}
  .signal{padding:0 12px;font-size:12px}
  .curation{align-items:flex-start;flex-wrap:wrap;gap:8px}
  .curation .link-btn{margin-left:0}
  .now__title{font-size:clamp(27px,8vw,40px)}
  .ad{aspect-ratio:1584/760}
  .band{padding:20px}
  .band__acts{width:100%}
  .band__acts .btn{flex:1}
  .footer__inner{flex-direction:column;align-items:flex-start}
  .kiosk__bottom{align-items:flex-end}
}
@media (max-width:420px){
  .ctx__time span{display:none}
  .ctx__wx b{font-size:11px}
  .theme-btn{display:none}
  .logo{height:30px}
  .player-card{padding:11px;border-radius:22px}
  .track{grid-template-columns:36px minmax(0,1fr) auto}
  .creative__c{display:none}
}

/* -------------------------------------------------------- accessibility */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;animation-iteration-count:1 !important;
    transition-duration:.001ms !important;scroll-behavior:auto !important;
  }
}
