:root {
  --bg: #0b1418;
  --bg-2: #0f1d23;
  --panel: #12242c;
  --accent: #4f98a3;
  --accent-bright: #6fc3d0;
  --text: #e8f1f3;
  --text-dim: #8fa9af;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 70% -10%, #1a3540 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 110%, #142e2a 0%, transparent 55%),
    var(--bg);
}

/* ---------- Splash ---------- */

#splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1000px 500px at 50% 20%, #16323c 0%, transparent 65%),
    var(--bg);
  z-index: 10;
}

.splash-inner { text-align: center; padding: 24px; }

.logo-mark {
  font-size: 44px;
  color: var(--accent-bright);
  letter-spacing: 6px;
  margin-bottom: 8px;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

#splash h1 { font-size: clamp(34px, 6vw, 56px); margin: 0 0 10px; font-weight: 650; }
.amp { color: var(--accent-bright); }
.byz { color: var(--text-dim); font-weight: 400; }

.tagline { color: var(--text-dim); margin: 0 0 34px; font-size: 17px; }

#startBtn {
  font-size: 20px;
  padding: 16px 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #3a7480);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(79, 152, 163, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#startBtn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(79, 152, 163, 0.5); }
#startBtn:disabled { opacity: 0.5; cursor: wait; transform: none; }

.splash-note { color: var(--text-dim); font-size: 13px; margin-top: 22px; min-height: 1em; }

/* ---------- Radio layout ---------- */

#radio { max-width: 960px; margin: 0 auto; padding: 18px 20px 40px; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 2px 16px;
}

.brand { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 9px; }

.channel-link {
  display: inline-block;
  margin: 6px 0 0 19px; /* aligns with the brand text, right of the red dot */
  font-size: 13px;
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.channel-link:hover { color: var(--text); }

.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e2504c;
  box-shadow: 0 0 10px #e2504c;
  animation: pulse 1.6s ease-in-out infinite;
}

.live-pill {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent-bright);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
}

.yt-link { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.yt-link:hover { color: var(--accent-bright); }
.yt-link.small { margin-left: auto; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.subscribe-box { display: flex; align-items: center; gap: 8px; min-height: 24px; }

.subscribe-label { color: var(--text-dim); font-size: 14px; }

/* platform.js leaves its temporary 450px placeholder width on the container;
   the actual button iframe is ~145px wide */
.subscribe-box div[id^="___ytsubscribe"] { width: auto !important; }

.subscribe-fallback {
  background: #c00;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 14px;
  transition: background 0.15s ease;
}

.subscribe-fallback:hover { background: #e00; }

/* ---------- Stations ---------- */

#stations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
}

.station {
  border: 1px solid #24404a;
  background: var(--panel);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.station:hover { color: var(--text); border-color: var(--accent); }

.station.active {
  background: linear-gradient(135deg, var(--accent), #3a7480);
  border-color: transparent;
  color: #fff;
}

/* ---------- Player ---------- */

.player-wrap {
  background: var(--bg-2);
  border: 1px solid #1b333d;
  border-radius: var(--radius);
  padding: 16px;
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.now-playing { padding: 16px 4px 4px; }
.np-label { font-size: 11px; letter-spacing: 2px; color: var(--accent-bright); text-transform: uppercase; }
.np-title { font-size: 19px; font-weight: 600; margin-top: 4px; }
.np-sub { color: var(--text-dim); font-size: 13px; margin-top: 3px; }

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px 4px;
}

.ctl {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid #24404a;
  background: var(--panel);
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ctl:hover { border-color: var(--accent); color: var(--accent-bright); }

.vol { display: flex; align-items: center; gap: 8px; color: var(--text-dim); }
.vol input { accent-color: var(--accent); width: 120px; }

footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  padding-top: 26px;
}

footer a { color: var(--accent-bright); text-decoration: none; }

@media (max-width: 560px) {
  .yt-link.small { display: none; }
  .vol input { width: 80px; }
}
