:root {
  --bg: #0e1019;
  --ink: #f5f7fb;
  --muted: #a4adbd;
  --panel: #161a27;
  --panel-soft: #1d2332;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #24c7c9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(36, 199, 201, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(236, 45, 120, 0.13), transparent 24rem),
    linear-gradient(135deg, #050711 0%, #111626 54%, #171024 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto;
  padding: 22px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0 22px;
}

.topbar.compact {
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-actions a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.weather-widget {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.06);
}

.weather-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
}

.weather-icon svg {
  display: block;
  width: 30px;
  height: 30px;
}

.weather-copy {
  display: grid;
  gap: 1px;
  min-width: 94px;
}

.weather-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1;
}

.weather-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
}

.heat-info {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: help;
}

.heat-info::after {
  content: "High temperature: stay hydrated and stay safe.";
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 5;
  width: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #111626;
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.heat-info:hover::after,
.heat-info:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(230px, 330px);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  min-height: 280px;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 56px);
  background:
    linear-gradient(90deg, rgba(5, 7, 17, 0.82), rgba(5, 7, 17, 0.42) 48%, rgba(5, 7, 17, 0.74)),
    url("../img/banner.png") center / cover;
  color: #fff;
}

.hero-copy {
  align-self: end;
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.stage-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero p:last-child,
.stage-hero p:last-child {
  max-width: 640px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.hero-panel,
.listener-card {
  align-self: end;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: rgba(12, 16, 32, 0.72);
  backdrop-filter: blur(14px);
}

.listener-card strong {
  font-size: 2.1rem;
}

.listener-card span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.listener-card small {
  max-width: 190px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-panel-status,
.hero-panel-meta {
  display: flex;
  align-items: center;
}

.hero-panel-status {
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel-meta {
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 900;
}

.pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(36, 199, 201, 0.18);
}

.control-band,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.control-band {
  margin: 30px 0 18px;
}

.control-band h2,
.panel-heading h2,
.now-card h2,
.timetable-section h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.day-controls,
.day-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.day-tabs button,
.today-button,
select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.day-tabs button.active {
  border-color: transparent;
  background: linear-gradient(90deg, #51d2c8, #429f8d);
  color: #fff;
}

.today-button:disabled {
  opacity: 0.48;
  cursor: default;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  text-align: center;
}

.stats-grid strong {
  display: block;
  color: var(--accent);
  font-size: 1.8rem;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cancellation-notice {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr);
  gap: 24px;
  margin: 24px 0;
  border: 2px solid #e5243f;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(229, 36, 63, 0.16), rgba(12, 16, 32, 0.92)),
    var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

.cancellation-notice[hidden] {
  display: none;
}

.cancellation-media {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
}

.cancellation-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cancellation-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.02;
}

.cancellation-copy p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.58;
}

.cancellation-effective {
  margin: 14px 0 0;
  color: #fff;
  font-weight: 900;
}

.cancellation-copy ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.cancellation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cancellation-actions a {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  border-radius: 8px;
  padding: 0 14px;
  background: linear-gradient(90deg, #e5243f, #9f1239);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
}

.stage-card.cancelled {
  border-color: rgba(255, 255, 255, 0.18);
  opacity: 0.72;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stage-card,
.stream-panel,
.now-card,
.timetable-section,
.empty-state {
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.stage-card {
  --stage-color: var(--accent);
  --stage-glow: var(--accent);
  display: flex;
  flex-direction: column;
  min-height: 222px;
  padding: 16px;
  border-color: var(--stage-color);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel);
}

.stage-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stage-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  color: var(--stage-color);
  font-size: 1.25rem;
  font-weight: 900;
}

.media-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(229, 36, 63, 0.16);
  color: #ffd6dc;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-dot {
  white-space: nowrap;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.status-dot::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #76deda;
}

.status-dot.offline::before {
  background: #c7ccd8;
}

.stage-card p {
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.set-summary {
  display: grid;
  gap: 6px;
  min-height: 54px;
  border-left: 3px solid var(--stage-color);
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.82rem;
}

.set-summary strong {
  color: var(--ink);
}

.set-progress-card {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.set-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.set-progress-meta span {
  text-transform: uppercase;
}

.set-progress-meta strong {
  color: var(--ink);
  font-size: 0.74rem;
  text-align: right;
}

.set-progress-track {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.set-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #51d2c8, var(--stage-color));
}

.stage-button {
  display: grid;
  min-height: 34px;
  margin-top: auto;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(90deg, #51d2c8, #429f8d);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
}

.stage-button.disabled {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.46);
}

.stage-shell {
  min-height: calc(100vh - 56px);
}

.stage-page {
  display: grid;
  gap: 18px;
}

.stage-hero {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 260px);
  gap: 24px;
  align-items: end;
  min-height: 310px;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(10, 13, 27, 0.15), rgba(10, 13, 27, 0.78)),
    linear-gradient(135deg, var(--stage-a), var(--stage-b));
  color: #fff;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.stream-panel,
.now-card,
.timetable-section,
.empty-state {
  border-color: var(--line);
  padding: 20px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(36, 199, 201, 0.12);
  color: #84f4ef;
  font-size: 0.78rem;
  font-weight: 900;
}

audio {
  width: 100%;
  margin-top: 22px;
  accent-color: var(--accent);
}

.video-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050711;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.stream-note,
.now-card p,
.empty-state p {
  color: var(--muted);
  line-height: 1.55;
}

.progress-track {
  overflow: hidden;
  height: 12px;
  margin: 18px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #51d2c8, var(--accent));
}

.set-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.set-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.set-row.current {
  border-color: var(--accent);
  background: rgba(36, 199, 201, 0.08);
}

.set-row.finished {
  opacity: 0.62;
}

.set-row.finished strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(164, 173, 189, 0.5);
}

.set-row time,
.set-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.empty-state {
  text-align: center;
}

.empty-state.compact {
  box-shadow: none;
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 20px, 760px);
    margin: 10px auto;
    padding: 14px;
  }

  .hero,
  .stage-hero,
  .cancellation-notice,
  .player-layout {
    grid-template-columns: 1fr;
  }

  .stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar,
  .control-band,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-actions,
  .weather-widget,
  .day-controls,
  .day-tabs {
    justify-content: flex-start;
  }

  .hero,
  .stage-hero {
    min-height: 430px;
  }

  .stats-grid,
  .stage-grid {
    grid-template-columns: 1fr;
  }

  .set-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
