/* Livegen Radio home: the minimal "app" look (owner-approved design v3, built into the real site 2 Nov 2026).
   One phone column. A slow studio light behind a calm player. Listener-chosen colour (red default) and a calm switch. */
:root {
  --outer: #07090d;
  --text: #fff4f2;
  --c1: rgba(255, 56, 56, .60); --c2: rgba(255, 132, 48, .38); --c3: rgba(196, 22, 78, .50);
  --accent: #ff4d4d; --accent2: #ff8c8c; --accent-soft: rgba(255, 77, 77, .18);
  --bgTop: #2a0710; --bgMid: #1a050a; --bgBot: #100306; --navbg: rgba(22, 4, 9, .92);
  --surface: rgba(48, 12, 20, .72); --line: #5a2230; --muted: #c9a0a8; --stageTop: #2a0b12; --stageBot: #0c0306;
  --silver: linear-gradient(135deg, #f6eeee 0%, #9b8c90 42%, #ece2e3 100%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
.app[data-look="blue"] { --c1: rgba(62,140,255,.55); --c2: rgba(120,200,255,.30); --c3: rgba(60,70,220,.45); --accent: #4da6ff; --accent2: #8cc6ff; --accent-soft: rgba(77,166,255,.18);
  --bgTop: #0b1a34; --bgMid: #07101f; --bgBot: #050a14; --navbg: rgba(6,14,28,.92); --surface: rgba(14,30,58,.72); --line: #24406a; --muted: #9db3d0; --stageTop: #0d1f3d; --stageBot: #040a16; }
.app[data-look="green"] { --c1: rgba(40,200,120,.50); --c2: rgba(190,230,60,.30); --c3: rgba(10,140,110,.50); --accent: #2fd47e; --accent2: #8ff0b8; --accent-soft: rgba(47,212,126,.18);
  --bgTop: #082a1c; --bgMid: #061a12; --bgBot: #03100a; --navbg: rgba(4,20,14,.92); --surface: rgba(10,48,34,.72); --line: #1f5a40; --muted: #9cc4b0; --stageTop: #0b2d1f; --stageBot: #030f09; }
.app[data-look="purple"] { --c1: rgba(160,80,255,.55); --c2: rgba(255,90,200,.32); --c3: rgba(90,50,210,.50); --accent: #a566ff; --accent2: #cfa6ff; --accent-soft: rgba(165,102,255,.18);
  --bgTop: #1c0a36; --bgMid: #12072a; --bgBot: #0a041a; --navbg: rgba(14,6,30,.92); --surface: rgba(40,16,76,.72); --line: #4a2a82; --muted: #b6a2d6; --stageTop: #230d48; --stageBot: #0a0418; }
.app[data-look="gold"] { --c1: rgba(255,190,50,.50); --c2: rgba(255,120,40,.32); --c3: rgba(200,140,20,.45); --accent: #ffbf3a; --accent2: #ffd98a; --accent-soft: rgba(255,191,58,.18);
  --bgTop: #2a1c06; --bgMid: #1a1104; --bgBot: #0e0a02; --navbg: rgba(22,14,4,.92); --surface: rgba(54,38,10,.72); --line: #6a4c1a; --muted: #d1bd96; --stageTop: #2e1f08; --stageBot: #0c0802; }
.app[data-look="silver"] { --c1: rgba(200,210,225,.38); --c2: rgba(130,150,180,.30); --c3: rgba(90,100,125,.40); --accent: #d5dcea; --accent2: #eef2f8; --accent-soft: rgba(213,220,234,.16);
  --bgTop: #1c212b; --bgMid: #12161d; --bgBot: #0a0d12; --navbg: rgba(12,15,20,.92); --surface: rgba(32,38,50,.72); --line: #3c4558; --muted: #a9b3c4; --stageTop: #232a37; --stageBot: #080a0e; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--outer); color: var(--text); font-family: var(--font); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }

.app { position: relative; width: 100%; max-width: 430px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bgTop) 0%, var(--bgMid) 50%, var(--bgBot) 100%);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.app > header, .app > .view, .app > footer { position: relative; z-index: 1; }
.app > nav { z-index: 2; }

.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow i { position: absolute; border-radius: 50%; filter: blur(64px); will-change: transform; }
.glow .b1 { width: 80%; aspect-ratio: 1; left: -20%; top: -6%; background: var(--c1); animation: d1 15s ease-in-out infinite alternate; }
.glow .b2 { width: 70%; aspect-ratio: 1; right: -24%; top: 34%; background: var(--c2); animation: d2 21s ease-in-out infinite alternate; }
.glow .b3 { width: 78%; aspect-ratio: 1; left: 6%; bottom: -16%; background: var(--c3); animation: d3 18s ease-in-out infinite alternate; }
.glow .rings { position: absolute; left: 50%; top: 74%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; filter: none;
  background: repeating-radial-gradient(circle, transparent 0 46px, rgba(255, 255, 255, .08) 47px 48px); animation: ripple 7s ease-in-out infinite; }
@keyframes d1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(46%, 38%) scale(1.25); } }
@keyframes d2 { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-52%, -30%) scale(.9); } }
@keyframes d3 { from { transform: translate(0, 0) scale(.95); } to { transform: translate(38%, -42%) scale(1.2); } }
@keyframes ripple { 0%, 100% { transform: translate(-50%, -50%) scale(.92); opacity: .55; } 50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } }

.pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

header { display: flex; align-items: center; gap: 12px; padding-block: 14px 10px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; text-decoration: none; }
.logo svg { width: 30px; height: 26px; flex: none; }
.logo b { font-weight: 800; letter-spacing: .06em; font-size: 15px; line-height: 1; display: block; }
.logo small { display: block; font-weight: 600; letter-spacing: .32em; font-size: 8.5px; color: var(--muted); margin-top: 4px; }
.pill { font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.pill:hover { border-color: var(--accent); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.icon-btn:hover { color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }

.view { flex: 1; display: none; flex-direction: column; gap: 16px; padding-block: 6px 16px; }
.view.on { display: flex; }

.stage-wrap { background: var(--silver); padding: 1px; border-radius: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.stage { position: relative; aspect-ratio: 1 / 1; max-height: 52vh; width: 100%; border-radius: 21px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 38%, var(--stageTop) 0%, var(--stageBot) 72%); }
.live { position: absolute; top: 14px; left: 16px; display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.bars { width: 46%; height: 46%; display: flex; align-items: center; justify-content: space-between; gap: 4%; }
.bars span { flex: 1; height: 100%; border-radius: 999px; background: linear-gradient(180deg, #fff, #cdb4b8); transform: scaleY(var(--h)); animation: bar 1.15s ease-in-out infinite alternate; animation-delay: var(--d); }
/* bars always move (owner 11 Nov): the old "paused when not playing" rule was removed */
@keyframes bar { from { transform: scaleY(calc(var(--h) * .45)); } to { transform: scaleY(var(--h)); } }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 15px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8)); font-size: 13px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; min-height: 52px; }
.ticker em { font-style: normal; font-size: 10px; letter-spacing: .16em; color: var(--accent2); font-weight: 700; white-space: nowrap; }
.ticker span, .ticker em { transition: opacity .35s ease; }
.ticker.fade span, .ticker.fade em { opacity: 0; }

.strip { display: flex; align-items: center; gap: 12px; }
.strip .meta { min-width: 0; margin-right: auto; }
.strip h1 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip p { margin: 4px 0 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip p b { color: var(--text); font-weight: 600; }
.ctl { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); flex: none; }
.ctl:hover { border-color: var(--accent); }
.ctl svg { width: 20px; height: 20px; }
.ctl.main { background: var(--text); color: #14090c; border-color: var(--text); }
[hidden] { display: none !important; }

.ad { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); margin-top: auto; backdrop-filter: blur(6px); text-decoration: none; }
.ad small { font-size: 9px; letter-spacing: .18em; font-weight: 700; color: var(--muted); }
.ad span { font-size: 13px; font-weight: 600; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent2); white-space: nowrap; }

.h { margin: 4px 0 0; font-size: 22px; font-weight: 800; }
.sub { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; max-width: 40ch; }
.list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); backdrop-filter: blur(6px); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; width: 100%; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
button.row:hover { background: rgba(255, 255, 255, .04); }
.row time { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; width: 46px; color: var(--muted); }
.row .tx { min-width: 0; margin-right: auto; }
.row b { display: block; font-size: 15px; font-weight: 600; }
.row small { color: var(--muted); font-size: 12.5px; }
.badge { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; padding: 5px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent2); white-space: nowrap; }
.badge.quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.row[aria-pressed="true"] { background: var(--accent-soft); }
.row.soon { opacity: .72; }
.cta { align-self: flex-start; font-size: 14px; font-weight: 700; padding: 12px 20px; border-radius: 999px; background: var(--text); color: #1a050a; text-decoration: none; }
.cta.off { background: var(--surface); color: var(--muted); border: 1px solid var(--line); cursor: default; }

nav { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navbg); border-top: 1px solid var(--line); padding-top: 8px; padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); backdrop-filter: blur(8px); }
nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 4px 0; }
nav button svg { width: 24px; height: 24px; }
nav button[aria-selected="true"] { color: var(--accent2); }
footer { padding-block: 14px 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--muted); }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }

.app.calm .glow i, .app.calm .glow .rings { animation: none; }
.look { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 60px; z-index: 6; width: min(290px, calc(100% - 32px)); padding: 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.look h3 { margin: 0 0 4px; font-size: 15px; }
.look p { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.sw { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sw button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.sw button[aria-pressed="true"] { border-color: var(--text); }
.calmrow { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.calmrow input { width: 18px; height: 18px; accent-color: var(--accent); }
.look .acct { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent2); }
@media (prefers-reduced-motion: reduce) {
  .glow i, .glow .rings { animation: none; }
  .bars span { animation: none; transform: scaleY(var(--h)); }
  .ticker span, .ticker em { transition: none; }
}

/* Discover: collapsible sections, all closed at first */
.acc{border:1px solid var(--line);border-radius:16px;background:var(--surface);backdrop-filter:blur(6px);overflow:hidden}
.acc>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px}
.acc>summary::-webkit-details-marker{display:none}
.acc>summary::after{content:"";width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s;flex:none;margin-right:4px}
.acc[open]>summary::after{transform:rotate(-135deg)}
.acc>summary b{display:block;font-size:16px;font-weight:700}
.acc>summary small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.acc>.list{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.acc>.sub{padding:12px 16px 0}

/* "About & legal": one compact button at the bottom instead of a row of links */
footer.pad{padding-block:6px 14px;display:block}
.more>summary{padding:11px 16px}
.more>summary .bk{width:22px;height:22px;display:grid;place-items:center;margin-right:2px;color:var(--accent2);flex:none}
.more>summary .bk svg{width:20px;height:20px}
.more>summary{justify-content:flex-start}
.more>summary::after{margin-left:auto}
.more>summary b{font-size:14px}
.more .list a.row{text-decoration:none;color:inherit;padding:11px 16px}
.more .list a.row:hover{background:rgba(255,255,255,.04)}

nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 4px 0; text-decoration: none; }
nav a svg { width: 24px; height: 24px; }
nav a:hover { color: var(--text); }
