/* WAVE Radio — PURE VELOCITY design system. Edit tokens here. */
:root {
  --bg: #05060a;
  --bg-2: #0b0d14;
  --panel: #10131c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef1f7;
  --muted: #8a91a3;
  --accent: #00e5ff;      /* signal cyan */
  --accent-2: #c6ff00;    /* acid lime */
  --danger: #ff3d5a;
  --warn: #ffb020;
  --radius: 14px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --glow: 0 0 40px rgba(0, 229, 255, 0.25);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  padding-bottom: 96px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(0, 229, 255, 0.12), transparent 70%),
    radial-gradient(40% 30% at 0% 100%, rgba(198, 255, 0, 0.07), transparent 70%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--accent); }
.lime { color: var(--accent-2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(5, 6, 10, 0.7); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { display: block; width: 122px; height: auto; aspect-ratio: 400 / 72; object-fit: contain; }
.nav { display: flex; gap: 28px; }
.nav a { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.onair { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.live { background: var(--danger); box-shadow: 0 0 12px var(--danger); animation: pulse 1.6s infinite; }
.dot.ok { background: var(--accent-2); }
.dot.bad { background: var(--danger); }
.dot.warn { background: var(--warn); }
@keyframes pulse { 50% { opacity: .35; } }
/* Phone: two rows. Row 1 = logo + ON AIR, row 2 = full-width menu with large tap targets. */
@media (max-width: 720px) {
  .site-header .wrap { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand onair" "nav nav"; height: auto; row-gap: 0; column-gap: 12px; padding-top: 12px; }
  .brand { grid-area: brand; }
  .brand img { width: 120px; }
  .onair { grid-area: onair; font-size: .72rem; padding: 6px 12px; }
  .nav { grid-area: nav; justify-content: space-between; gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
  .nav a { flex: 1; text-align: center; font-size: .82rem; letter-spacing: .1em; padding: 14px 0; color: var(--text); opacity: .7; }
  .nav a.active { opacity: 1; color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
}
@media (max-width: 360px) {
  .nav a { font-size: .74rem; letter-spacing: .05em; }
}

/* Hero / now playing */
.hero { padding: 72px 0 56px; }
.kicker { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.kicker span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .25em; padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.display { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 9vw, 7.5rem); line-height: .92; letter-spacing: -0.03em; }
.display em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.tagline { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }

.now { margin-top: 48px; display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; background: linear-gradient(135deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.6); padding: 28px; box-shadow: var(--glow); }
.art { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #000 center/60% no-repeat; border: 1px solid var(--line); display: grid; place-items: center; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art img.fallback { width: 70%; height: auto; object-fit: contain; opacity: .8; }
.now h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 10px 0 6px; }
.now .artist { font-size: 1.15rem; color: var(--accent); }
.meta-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.controls { display: flex; align-items: center; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 760px) { .now { grid-template-columns: 1fr; } .art { max-width: 320px; } }

/* Buttons */
.btn-play { width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: var(--bg); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(0,229,255,.6); transition: transform .15s; }
.btn-play:hover { transform: scale(1.05); }
.btn-play.playing { animation: ring 2s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(0,229,255,.5);} 100% { box-shadow: 0 0 0 22px rgba(0,229,255,0);} }
.btn-play svg { width: 28px; height: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 600 .9rem var(--font-body); cursor: pointer; transition: background .2s, border-color .2s; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
input[type=range] { accent-color: var(--accent); width: 120px; }
select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: .85rem var(--font-body); }
.status { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }
.status.error { color: var(--danger); }
.status.playing { color: var(--accent-2); }
.status.buffering { color: var(--warn); }

/* Sections */
section.block { padding: 80px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4.5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; }
.lead { color: var(--muted); max-width: 640px; font-size: 1.08rem; }

/* History list */
.history { display: grid; gap: 2px; }
.history li { list-style: none; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 12px; border-radius: 10px; transition: background .2s; }
.history li:hover { background: var(--panel); }
.history img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #000; }
.history .t { font-weight: 600; }
.history .a { color: var(--muted); font-size: .92rem; }
.empty { color: var(--muted); padding: 24px 0; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 40px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-year { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent); line-height: 1; }
.tl-item h3 { font-size: 1.3rem; margin: 8px 0 6px; }
.tl-item p { color: var(--muted); max-width: 560px; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 14px 0 8px; }
.card p { color: var(--muted); }
.big-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--accent-2); line-height: 1; }

.person { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } }
.quote { font-family: var(--font-display); font-size: 1.6rem; }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 14px; font: 1rem var(--font-body); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form-msg { font-size: .95rem; }
.form-msg.ok { color: var(--accent-2); }
.form-msg.err { color: var(--danger); }

/* Mini player bar */
.player-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(11, 13, 20, .92); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.player-bar .wrap { display: flex; align-items: center; gap: 16px; height: 80px; }
.player-bar .btn-play { width: 48px; height: 48px; flex: none; }
.player-bar .btn-play svg { width: 20px; height: 20px; }
.player-bar .np { flex: 1; min-width: 0; }
.player-bar .np .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar .thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #000; flex: none; }
@media (max-width: 640px) { .player-bar .vol, .player-bar .src { display: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
.site-footer img { height: 18px; width: auto; opacity: .8; }
