/* DeLLos Radio — a late-night FM studio: midnight blue, an ON AIR sign, a glowing tuner dial. */
:root {
  --bg: #0a0b1e; --bg2: #141638; --ink: #eef0ff; --muted: #9aa0d0; --line: #262a5c;
  --mag: #ff3d9a; --cyan: #34e1ff; --amber: #ffb347;
  font-family: -apple-system, "SF Pro Display", system-ui, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg);
  -webkit-tap-highlight-color: transparent; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  background:
    radial-gradient(90% 50% at 15% 0%, rgba(255, 61, 154, .22), transparent 60%),
    radial-gradient(80% 50% at 100% 10%, rgba(52, 225, 255, .16), transparent 60%),
    linear-gradient(var(--bg2), var(--bg) 60%);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.app { max-width: 520px; margin: 0 auto; padding: calc(8px + env(safe-area-inset-top)) 16px 24px; display: grid; gap: 16px; }

.top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.back { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 2px; }
.langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.langs button { padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--muted); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* hero + ON AIR sign */
.hero { text-align: center; display: grid; justify-items: center; gap: 8px; }
.sign { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 10px; border: 2px solid #3a2340; color: #6b4a63;
  font-weight: 900; letter-spacing: .22em; font-size: 13px; background: #170d1c; transition: .4s; }
.sign .dot { width: 9px; height: 9px; border-radius: 50%; background: #4a2a3f; }
.sign.on { color: #fff; border-color: var(--mag); background: #3a0f27; box-shadow: 0 0 22px rgba(255, 61, 154, .55), inset 0 0 12px rgba(255, 61, 154, .4); text-shadow: 0 0 10px var(--mag); }
.sign.on .dot { background: var(--mag); box-shadow: 0 0 10px var(--mag); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
h1 { margin: 2px 0 0; font-size: 46px; font-weight: 900; letter-spacing: -.045em; line-height: .95; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--mag), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { margin: 0; color: var(--muted); font-size: 16px; font-weight: 600; }

/* tuner dial */
.dial { position: relative; height: 66px; border-radius: 16px; overflow: hidden; background: linear-gradient(#11133a, #0b0c24); border: 1px solid var(--line);
  box-shadow: inset 0 0 30px rgba(52, 225, 255, .08); }
.scale { position: absolute; inset: 8px 18px auto; display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; color: #6b72b0; font-variant-numeric: tabular-nums; }
.ticks { position: absolute; inset: auto 14px 10px; height: 18px; display: flex; justify-content: space-between; align-items: end; }
.ticks i { width: 1.5px; height: 8px; background: #3b4185; }
.ticks i.big { height: 16px; background: #6b72b0; }
.needle { position: absolute; top: 6px; bottom: 6px; left: 62%; width: 3px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 12px var(--amber), 0 0 26px rgba(255, 179, 71, .6); transition: left 1.2s cubic-bezier(.3, 1.4, .5, 1); }
body.playing .needle { animation: tune 7s ease-in-out infinite; }
@keyframes tune { 0%, 100% { translate: 0; } 30% { translate: -2px; } 60% { translate: 2px; } }

/* now playing */
.deck { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.cover { position: relative; width: 104px; height: 104px; flex: none; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #2a1550, #0f2a4a); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-ph { font-size: 44px; }
.now { min-width: 0; flex: 1; display: grid; gap: 3px; }
.now small { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.now b { font-size: 19px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.now > span { color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mag), var(--cyan)); border-radius: 3px; transition: width 1s linear; }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* controls */
.controls { display: flex; align-items: center; gap: 18px; }
.play { width: 92px; height: 92px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ff6db3, var(--mag) 55%, #c0186d);
  box-shadow: 0 14px 34px rgba(255, 61, 154, .5), inset 0 2px 0 rgba(255, 255, 255, .35); transition: transform .15s; }
.play:active { transform: scale(.94); }
.play:disabled { filter: grayscale(.8) brightness(.6); box-shadow: none; cursor: default; }
.ico { width: 0; height: 0; margin-left: 7px; border-style: solid; border-width: 17px 0 17px 28px; border-color: transparent transparent transparent #fff; }
body.playing .ico { margin: 0; width: 28px; height: 32px; border: 0; background: linear-gradient(90deg, #fff 0 36%, transparent 36% 64%, #fff 64%); }
body.playing .play { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 14px 44px rgba(255, 61, 154, .8), 0 0 0 10px rgba(255, 61, 154, .12), inset 0 2px 0 rgba(255, 255, 255, .35); } }
.side { flex: 1; min-width: 0; display: grid; gap: 10px; }
.eq { display: flex; align-items: end; gap: 4px; height: 26px; }
.eq i { flex: 1; height: 20%; border-radius: 2px; background: linear-gradient(var(--cyan), var(--mag)); opacity: .35; }
body.playing .eq i { opacity: 1; animation: eq .9s ease-in-out infinite alternate; }
body.playing .eq i:nth-child(2) { animation-delay: -.2s; animation-duration: .7s; } body.playing .eq i:nth-child(3) { animation-delay: -.5s; }
body.playing .eq i:nth-child(4) { animation-delay: -.1s; animation-duration: .6s; } body.playing .eq i:nth-child(5) { animation-delay: -.35s; animation-duration: .8s; }
body.playing .eq i:nth-child(6) { animation-delay: -.6s; } body.playing .eq i:nth-child(7) { animation-delay: -.25s; animation-duration: .75s; }
@keyframes eq { to { height: 100%; } }
.vol { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.vol input { flex: 1; accent-color: var(--cyan); min-width: 0; }
.row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip.on { border-color: var(--amber); color: var(--amber); background: rgba(255, 179, 71, .1); }
.status { margin: -4px 0 0; text-align: center; min-height: 20px; color: var(--muted); font-weight: 700; font-size: 14px; }

/* lists */
.lists { display: grid; gap: 12px; }
.list h2 { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.list li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .035); }
.list img, .list .ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.list .ph { display: grid; place-items: center; background: #1d2050; color: var(--muted); }
.list li div { display: grid; min-width: 0; }
.list li b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list li small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listeners { margin: 0; text-align: center; color: var(--muted); font-weight: 700; font-size: 14px; }
.ad:empty { display: none; }

.dellos-legal-dock { position: static !important; width: max-content; margin: 0 auto calc(20px + env(safe-area-inset-bottom)); }
@media (max-width: 370px) { h1 { font-size: 40px; } .play { width: 80px; height: 80px; } .cover { width: 88px; height: 88px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
