:root {
  --red: #e83947;
  --red-dark: #c92b38;
  --ink: #141414;
  --muted: #6c6c72;
  --line: #e9e9eb;
  --soft: #f5f5f6;
  --card: #fff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .7rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 8px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(20,20,20,.08);
  backdrop-filter: blur(16px);
}
.brand { display: block; width: 76px; }
.brand img { width: 100%; height: 58px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.live-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.live-pill { display: flex; align-items: center; gap: 7px; padding: 8px 11px; background: #f3f3f3; }
.live-pill i { width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 5px rgba(232,57,71,.13); }

.app-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 125px; }
.view { animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
.eyebrow, .section-kicker { color: var(--red); font-size: 12px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 26px; height: 3px; background: var(--red); }
.view > h1, .section-header h1 {
  margin: 12px 0 14px;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 780;
  line-height: .94;
  letter-spacing: -.065em;
}
.view > h1 em { color: var(--red); font-style: normal; }
.intro { max-width: 690px; margin: 0 0 34px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); }

.player {
  display: grid;
  grid-template-columns: minmax(280px, 43%) 1fr;
  min-height: 430px;
  overflow: hidden;
  color: #fff;
  background: #111;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.artwork-wrap { position: relative; min-height: 100%; background: #292929; }
.artwork { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.artwork-live { position: absolute; left: 18px; bottom: 18px; padding: 6px 10px; color: #fff; background: var(--red); border-radius: 999px; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.player-body { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 38px 42px 34px; background: radial-gradient(circle at 100% 0, rgba(232,57,71,.24), transparent 38%), linear-gradient(140deg,#171717,#111 70%); }
.station-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.station-row > div { display: flex; flex-direction: column; }
.station-label { color: #aaa; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.station-row strong { margin-top: 3px; font-size: 16px; }
.signal { display: flex; align-items: end; gap: 3px; height: 22px; }
.signal i { display: block; width: 3px; background: var(--red); border-radius: 4px; animation: signal .8s ease-in-out infinite alternate; }
.signal i:nth-child(1) { height: 7px; }.signal i:nth-child(2) { height: 12px; animation-delay: -.2s; }.signal i:nth-child(3) { height: 17px; animation-delay: -.4s; }.signal i:nth-child(4) { height: 22px; animation-delay: -.6s; }
@keyframes signal { to { height: 6px; opacity: .55; } }
.track-copy { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 32px 0; }
.track-copy h2 { margin: 0; max-width: 640px; font-size: clamp(29px, 4vw, 48px); font-weight: 720; line-height: 1.03; letter-spacing: -.045em; overflow-wrap: anywhere; }
.track-copy p { margin: 12px 0 0; color: #bdbdbd; font-size: 15px; }
.player-controls { display: grid; grid-template-columns: 64px minmax(0,1fr) 46px; align-items: center; gap: 16px; }
.play-button, .round-button, .mute-button { display: grid; place-items: center; padding: 0; color: #fff; border: 0; cursor: pointer; }
.play-button { width: 64px; height: 64px; background: var(--red); border-radius: 50%; box-shadow: 0 10px 24px rgba(232,57,71,.28); }
.play-button:hover { background: var(--red-dark); }
.play-button svg { width: 27px; height: 27px; fill: currentColor; }
.icon-pause { display: none; }
.player.is-playing .icon-play { display: none; }
.player.is-playing .icon-pause { display: block; }
.audio-status { min-width: 0; display: flex; flex-direction: column; }
.audio-status strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.audio-status span { color: #8e8e93; font-size: 12px; }
.round-button { width: 46px; height: 46px; background: #292929; border: 1px solid #3c3c3c; border-radius: 50%; }
.round-button svg, .mute-button svg { width: 21px; height: 21px; fill: currentColor; }
.volume-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.mute-button { flex: 0 0 30px; width: 30px; height: 30px; background: transparent; }
input[type="range"] { width: 100%; height: 4px; accent-color: var(--red); cursor: pointer; }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.quick-actions a { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; padding: 17px 18px; text-decoration: none; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; transition: transform .2s, border-color .2s; }
.quick-actions a:hover { transform: translateY(-2px); border-color: #ccc; }
.quick-icon { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: var(--ink); border-radius: 13px; font-size: 22px; }
.quick-actions strong, .quick-actions small { display: block; }
.quick-actions strong { font-size: 15px; }
.quick-actions small { color: var(--muted); font-size: 12px; }
.quick-actions b { color: var(--red); font-size: 20px; }

.listen-elsewhere { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--line); }
.listen-elsewhere h2 { margin: 6px 0 0; font-size: clamp(25px, 3vw, 34px); line-height: 1; letter-spacing: -.035em; }
.platforms { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.platforms a { padding: 8px 13px; color: #353535; border: 1px solid #d8d8da; border-radius: 999px; font-size: 13px; font-weight: 750; text-decoration: none; }
.platforms a:hover { color: var(--red); border-color: var(--red); }

.section-header { max-width: 760px; margin-bottom: 34px; }
.section-header h1 { font-size: clamp(42px, 6vw, 68px); }
.section-header p { margin: 0; color: var(--muted); font-size: 17px; }
.history-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.history-item { display: grid; grid-template-columns: 58px 58px minmax(0,1fr); align-items: center; gap: 15px; min-height: 82px; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.history-time { color: #888; font-size: 13px; font-variant-numeric: tabular-nums; }
.history-cover { width: 58px; height: 58px; object-fit: cover; background: var(--soft); border-radius: 9px; }
.history-meta { min-width: 0; }
.history-track { display: block; font-size: 15px; font-weight: 760; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-album { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-state { padding: 30px 0; color: var(--muted); }

.shows-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px 16px; }
.show-card { text-decoration: none; }
.show-image { aspect-ratio: 1; overflow: hidden; background: var(--soft); border-radius: 17px; }
.show-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.show-card:hover img { transform: scale(1.025); }
.show-card strong { display: block; margin-top: 10px; font-size: 16px; line-height: 1.2; }
.show-card span { color: var(--muted); font-size: 13px; }

.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px 18px; }
.news-card { text-decoration: none; }
.news-image { aspect-ratio: 16/9; overflow: hidden; background: var(--soft); border-radius: 15px; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover img { transform: scale(1.02); }
.news-card time { display: block; margin-top: 10px; color: var(--red); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.news-card h2 { margin: 5px 0 0; font-size: clamp(17px,2vw,21px); line-height: 1.15; letter-spacing: -.025em; }
.primary-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 38px; padding: 13px 18px; color: #fff; background: var(--red); border-radius: 999px; font-weight: 800; text-decoration: none; }

.bottom-nav { position: fixed; left: 50%; bottom: max(14px, var(--safe-bottom)); z-index: 30; display: grid; grid-template-columns: repeat(4,1fr); width: min(520px, calc(100% - 28px)); padding: 7px; color: #fff; background: rgba(17,17,17,.95); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; box-shadow: 0 14px 40px rgba(0,0,0,.25); backdrop-filter: blur(16px); transform: translateX(-50%); }
.bottom-nav button { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; height: 54px; padding: 0 9px; color: #aaa; background: transparent; border: 0; border-radius: 16px; cursor: pointer; font-size: 12px; font-weight: 760; }
.bottom-nav button.is-active { color: #fff; background: var(--red); }
.bottom-nav svg { width: 20px; height: 20px; fill: currentColor; }

.toast { position: fixed; left: 50%; bottom: 100px; z-index: 50; max-width: calc(100% - 40px); padding: 10px 15px; color: #fff; background: #111; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.2); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 760px) {
  .app-header { min-height: 64px; padding: 6px 18px; }
  .brand { width: 66px; }.brand img { height: 50px; }
  .app-shell { width: min(100% - 28px, 620px); padding-top: 34px; padding-bottom: 112px; }
  .view > h1 { font-size: clamp(43px,14vw,66px); }
  .intro { margin-bottom: 24px; font-size: 16px; }
  .player { grid-template-columns: 1fr; min-height: 0; border-radius: 22px; }
  .artwork-wrap { min-height: 0; aspect-ratio: 1; }
  .player-body { min-height: 350px; padding: 24px 22px 22px; }
  .track-copy { padding: 28px 0; }
  .track-copy h2 { font-size: clamp(27px,8vw,38px); }
  .quick-actions { grid-template-columns: 1fr; }
  .listen-elsewhere { align-items: flex-start; flex-direction: column; margin-top: 40px; }
  .platforms { justify-content: flex-start; }
  .shows-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .news-grid { grid-template-columns: 1fr; gap: 26px; }
  .news-card h2 { font-size: 20px; }
  .bottom-nav { bottom: max(8px,var(--safe-bottom)); }
  .bottom-nav button { flex-direction: column; gap: 2px; height: 56px; font-size: 10px; }
  .bottom-nav svg { width: 19px; height: 19px; }
}

@media (max-width: 390px) {
  .live-pill { display: none; }
  .player-controls { grid-template-columns: 58px minmax(0,1fr) 42px; gap: 12px; }
  .play-button { width: 58px; height: 58px; }
  .round-button { width: 42px; height: 42px; }
  .history-item { grid-template-columns: 46px 52px minmax(0,1fr); gap: 10px; padding-inline: 0; }
  .history-cover { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
