:root {
  color-scheme: dark;
  --bg: #21150d;
  --bg-2: #2f1d10;
  --card: #3a2617;
  --card-2: #4a301b;
  --paper: #f2d69b;
  --paper-soft: #d9b878;
  --ink: #fff0cf;
  --muted: #d6bd8d;
  --line: rgb(242 214 155 / 0.24);
  --line-strong: rgb(242 214 155 / 0.48);
  --orange: #e46f24;
  --red: #b43a22;
  --yellow: #f2bd45;
  --brown: #160d08;
  --shadow: rgb(0 0 0 / 0.46);
  --radius-lg: 1.55rem;
  --radius-md: 1rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgb(228 111 36 / 0.28), transparent 23rem),
    radial-gradient(circle at 84% 4%, rgb(242 189 69 / 0.17), transparent 30rem),
    radial-gradient(circle at 58% 72%, rgb(180 58 34 / 0.28), transparent 34rem),
    linear-gradient(180deg, #2b1a0e, #160d08 58%, #100804);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(90deg, rgb(242 214 155 / 0.08) 1px, transparent 1px),
    linear-gradient(rgb(242 214 155 / 0.06) 1px, transparent 1px),
    repeating-radial-gradient(circle at 20% 20%, transparent 0 5px, rgb(242 214 155 / 0.05) 6px 7px);
  background-size: 38px 38px, 38px 38px, 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

button, input, select, audio { font: inherit; }
button, .primary, .secondary {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 2.8rem;
  padding: 0.68rem 1rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
button:disabled { opacity: 0.55; cursor: not-allowed; }
button:hover, .primary:hover, .secondary:hover { transform: translateY(-1px) rotate(-0.2deg); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgb(242 189 69 / 0.45); outline-offset: 3px; }

.shell { position: relative; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 3rem; }
.hero, .player-card, .notice, .sync-status, .controls, .station-card {
  border: 1px solid var(--line);
  box-shadow: 0 28px 100px var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.82fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  min-height: 520px;
  padding: clamp(1.25rem, 4vw, 3.2rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgb(228 111 36 / 0.22), transparent 42%),
    linear-gradient(315deg, rgb(242 189 69 / 0.15), transparent 48%),
    rgb(47 29 16 / 0.84);
}
.hero::after {
  content: "RON! FLON! FLON!";
  position: absolute;
  right: -0.18em;
  bottom: -0.18em;
  color: transparent;
  -webkit-text-stroke: 1px rgb(242 214 155 / 0.16);
  font-size: clamp(3.4rem, 11vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
  pointer-events: none;
  transform: rotate(-2deg);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0; color: var(--yellow); letter-spacing: 0.13em; font-size: 0.75rem; font-weight: 900; text-transform: uppercase; }
h1 {
  max-width: 11ch;
  margin: 0.55rem 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: -0.065em;
  text-wrap: balance;
  text-shadow: 0 8px 0 rgb(0 0 0 / 0.18);
}
.intro { max-width: 62ch; margin: 1.15rem 0 0; color: var(--paper); font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.65; }
.statusbar { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: 1.7rem; color: var(--muted); }
.statusbar span { padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 240 207 / 0.06); }
.statusbar button { margin-left: auto; }

.hero-art { position: relative; z-index: 1; margin: 0; isolation: isolate; transform: rotate(1.3deg); }
.hero-art::before {
  content: "";
  position: absolute;
  inset: -1rem;
  z-index: -1;
  border-radius: 2rem;
  background: conic-gradient(from 160deg, var(--yellow), var(--orange), var(--red), var(--yellow));
  filter: blur(18px);
  opacity: 0.54;
}
.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 6px solid rgb(242 214 155 / 0.88);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.58);
}
.hero-art figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.62rem 0.8rem;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgb(22 13 8 / 0.78);
  border: 1px solid rgb(242 214 155 / 0.22);
  border-radius: 999px;
}

.player-card {
  display: grid;
  gap: 1.1rem;
  margin: 1.15rem 0;
  padding: clamp(1rem, 3vw, 1.7rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(100deg, rgb(180 58 34 / 0.16), transparent 38%),
    linear-gradient(260deg, rgb(242 189 69 / 0.12), transparent 42%),
    rgb(58 38 23 / 0.86);
}
.now-playing { display: grid; gap: 0.45rem; }
.now-playing h2 { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.7rem, 4vw, 3.35rem); line-height: 1.02; letter-spacing: -0.04em; }
.muted, .description { margin: 0; color: var(--muted); line-height: 1.55; }
.description { max-width: 88ch; }
.links-row, .transport { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
#radioAudio { width: 100%; min-height: 52px; accent-color: var(--orange); }
.primary { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--yellow), #ffd97a); border-color: transparent; color: #21150d; font-weight: 900; text-decoration: none; box-shadow: 0 12px 34px rgb(242 189 69 / 0.22); }
.secondary, button { background: rgb(255 240 207 / 0.06); color: var(--ink); }
.secondary:hover, button:hover { border-color: var(--yellow); box-shadow: 0 10px 30px rgb(242 189 69 / 0.12); }

.notice, .sync-status { margin: 1rem 0; padding: 0.9rem 1rem; border-radius: var(--radius-md); background: rgb(58 38 23 / 0.86); color: var(--muted); line-height: 1.5; }
.sync-status { color: var(--yellow); }

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(140px, 0.8fr) minmax(150px, 0.8fr);
  gap: 0.9rem;
  align-items: end;
  margin: 1.4rem 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgb(33 21 13 / 0.68);
}
.controls label { display: grid; gap: 0.45rem; color: var(--muted); font-size: 0.85rem; font-weight: 800; }
.controls input, .controls select {
  width: 100%;
  color: var(--ink);
  background: rgb(255 240 207 / 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 2.9rem;
  padding: 0.65rem 0.9rem;
}
.controls input::placeholder { color: rgb(217 184 120 / 0.72); }

.station-list { display: grid; gap: 0.72rem; }
.station-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(90deg, rgb(255 240 207 / 0.08), rgb(255 240 207 / 0.035));
  border-radius: 1.05rem;
}
.station-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--yellow), var(--orange), var(--red));
  opacity: 0.66;
}
.station-card[data-active="true"] { border-color: var(--line-strong); box-shadow: inset 0 0 0 1px rgb(242 189 69 / 0.22), 0 18px 55px rgb(242 189 69 / 0.1); }
.station-card[data-active="true"]::before { opacity: 1; width: 6px; }
.station-play { min-width: 4.7rem; color: #21150d; background: linear-gradient(135deg, var(--orange), var(--yellow)); border-color: transparent; font-weight: 900; }
.episode-date { margin: 0; color: var(--yellow); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.episode-title { margin: 0.25rem 0 0; font-size: 1.06rem; line-height: 1.25; }
.episode-meta { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.88rem; }
.empty { padding: 2rem; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 0.8rem; }
footer { margin-top: 2rem; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
a { color: var(--yellow); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { max-width: 560px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 1rem, 1180px); padding: 0.6rem 0 2rem; }
  .hero, .player-card { border-radius: 1.1rem; }
  .controls { grid-template-columns: 1fr; }
  .statusbar button { margin-left: 0; }
  .transport > *, .links-row > * { flex: 1 1 140px; }
  .station-card { grid-template-columns: 1fr; }
  .hero-art { transform: none; }
  .hero-art figcaption { position: static; margin-top: 0.7rem; }
}
