:root {
  color-scheme: light;
  --bg: #f5f3ff;
  --fg: #1f1537;
  --fg-muted: #5c4b7c;
  --accent: #6435c9;
  --accent-contrast: #ffffff;
  --chip-bg: rgba(100, 53, 201, 0.08);
  --chip-bg-active: rgba(100, 53, 201, 0.18);
  --chip-border: rgba(100, 53, 201, 0.32);
  --card-bg: #ffffff;
  --border-radius: 1rem;
  --surface-border: rgba(100, 53, 201, 0.18);
  --surface-glow: rgba(133, 86, 221, 0.3);
  --header-gradient: linear-gradient(135deg, rgba(100, 53, 201, 0.95), rgba(157, 78, 221, 0.8));
  --glass-border: rgba(255, 255, 255, 0.45);
  --card-gradient: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(246, 239, 255, 0.75));
  --chip-shadow: 0 16px 25px -20px rgba(100, 53, 201, 0.6);
  --channel-logo-max-width: clamp(110px, 24vw, 180px);
  --channel-logo-max-height: 52px;
  --replacement-bg: rgba(100, 53, 201, 0.12);
  --replacement-text: #48259d;
  --replacement-border: rgba(100, 53, 201, 0.3);
  --replaced-bg: rgba(214, 45, 32, 0.12);
  --replaced-text: #b3261e;
  --replaced-border: rgba(214, 45, 32, 0.28);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070212;
  --fg: #f3eeff;
  --fg-muted: rgba(243, 238, 255, 0.72);
  --accent: #cbb6ff;
  --accent-contrast: #080312;
  --chip-bg: rgba(137, 102, 216, 0.25);
  --chip-bg-active: rgba(137, 102, 216, 0.45);
  --chip-border: rgba(203, 182, 255, 0.45);
  --card-bg: #110625;
  --surface-border: rgba(154, 124, 229, 0.35);
  --surface-glow: rgba(86, 58, 154, 0.55);
  --header-gradient: linear-gradient(135deg, #16052f, #431873 65%, #7612c3);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-gradient: linear-gradient(165deg, rgba(28, 12, 50, 0.92), rgba(7, 2, 18, 0.92));
  --chip-shadow: 0 16px 25px -20px rgba(13, 1, 36, 0.9);
  --replacement-bg: rgba(140, 121, 211, 0.22);
  --replacement-text: #e5dbff;
  --replacement-border: rgba(229, 219, 255, 0.32);
  --replaced-bg: rgba(255, 101, 101, 0.18);
  --replaced-text: #ffbaba;
  --replaced-border: rgba(255, 186, 186, 0.4);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(0px);
  z-index: -2;
}

body::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(157, 78, 221, 0.35), transparent 65%);
  top: -160px;
  left: -120px;
}

body::after {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, rgba(100, 53, 201, 0.3), transparent 70%);
  bottom: -220px;
  right: -120px;
}

:root[data-theme="dark"] body::before {
  background: radial-gradient(circle at center, rgba(118, 70, 194, 0.55), transparent 70%);
}

:root[data-theme="dark"] body::after {
  background: radial-gradient(circle at center, rgba(36, 13, 82, 0.7), transparent 70%);
}

.container {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

.page-header {
  background: var(--header-gradient);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3.25rem 0 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.32), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
  z-index: 1;
}

.header-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header-inner h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.tagline__badge {
  background: rgba(255, 255, 255, 0.22);
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.header-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  max-width: 38ch;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--accent-contrast);
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 35px -28px rgba(15, 9, 40, 0.9);
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.header-cta--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.theme-toggle {
  gap: 0.4rem;
}

.theme-toggle__icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #ffe7a1 40%, #f6b7ff 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  position: relative;
}

.theme-toggle__icon::after {
  content: "";
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #f9f9fb;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.65);
}

:root[data-theme="dark"] .theme-toggle__icon {
  background: radial-gradient(circle at 30% 30%, #59f3ff 0%, #4d2c8a 65%, #160630 100%);
  box-shadow: 0 0 12px rgba(71, 228, 255, 0.4);
}

:root[data-theme="dark"] .theme-toggle__icon::after {
  background: #050111;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

:root[data-theme="dark"] .header-cta {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--fg);
}

:root[data-theme="dark"] .header-cta--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

:root[data-theme="dark"] .header-cta:hover,
:root[data-theme="dark"] .header-cta:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
}

.header-cta--ghost:hover,
.header-cta--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.header-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.header-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.header-card {
  position: relative;
  width: min(340px, 100%);
  background: var(--card-gradient);
  border-radius: 1.35rem;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 25px 60px -35px rgba(15, 9, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  color: var(--fg);
}

:root[data-theme="dark"] .header-card {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px -35px rgba(0, 0, 0, 0.7);
}

.header-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(100, 53, 201, 0.35), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.header-card__title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}

.header-card__event {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(100, 53, 201, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  color: var(--fg);
}

.header-card__event--secondary {
  background: rgba(255, 255, 255, 0.6);
}

.header-card__time {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
}

.header-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.25rem;
}

.header-card__live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(251, 191, 36, 0.9));
  color: white;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px -16px rgba(220, 38, 38, 0.7);
}

.header-card__competition {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.header-card__match {
  font-weight: 700;
  color: var(--fg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.header-card__channel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.header-card__channel-logo {
  max-height: 36px;
  width: auto;
  max-width: 200px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(31, 21, 55, 0.18));
}

.header-card__footnote {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

:root[data-theme="dark"] .header-card__event {
  background: rgba(6, 2, 18, 0.75);
  border-color: rgba(154, 124, 229, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

:root[data-theme="dark"] .header-card__event--secondary {
  background: rgba(10, 4, 24, 0.6);
}

:root[data-theme="dark"] .header-card__time {
  color: #88f9ff;
}

main.container {
  flex: 1 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: calc(var(--border-radius) + 0.5rem);
  padding: 1.75rem;
  box-shadow: 0 40px 90px -60px rgba(31, 21, 55, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.filters::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(100, 53, 201, 0.12), transparent 60%);
  pointer-events: none;
}

:root[data-theme="dark"] .filters {
  background: rgba(7, 4, 20, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 45px 80px -60px rgba(0, 0, 0, 0.9);
}

:root[data-theme="dark"] .filters::before {
  background: linear-gradient(135deg, rgba(118, 72, 194, 0.32), transparent 60%);
}

.filters__group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filters__group h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.filters__group--selects {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.filters__group--search {
  display: grid;
  gap: 0.8rem 1.25rem;
}

.filters__group--actions {
  flex-wrap: wrap;
  display: flex;
  gap: 0.75rem;
}

.select-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--fg-muted);
}

.search-label {
  gap: 0.55rem;
}

.search-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem 0.45rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(31, 21, 55, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(31, 21, 55, 0.08);
}

:root[data-theme="dark"] .search-control {
  background: rgba(11, 7, 26, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-control__icon {
  font-size: 1rem;
  opacity: 0.7;
}

.search-control__input {
  border: none;
  background: transparent;
  font: inherit;
  color: var(--fg);
  width: 100%;
  outline: none;
}

.search-control__input::placeholder {
  color: rgba(31, 21, 55, 0.45);
}

:root[data-theme="dark"] .search-control__input::placeholder {
  color: rgba(243, 238, 255, 0.5);
}

.search-control__clear {
  border: none;
  background: var(--chip-bg);
  color: var(--fg);
  font: inherit;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--chip-border);
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.search-control__clear:hover {
  background: var(--chip-bg-active);
  transform: translateY(-1px);
}

.filters__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.filters__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.7rem;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
}

.filters__meta-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 53, 201, 0.12);
}

.select-label select {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(31, 21, 55, 0.1);
  background: rgba(255, 255, 255, 0.95);
  color: var(--fg);
  box-shadow: inset 0 1px 3px rgba(31, 21, 55, 0.08);
}

:root[data-theme="dark"] .select-label select {
  background: rgba(10, 6, 28, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.channel-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.channel-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 0.85rem;
  padding: 0.9rem;
  background: rgba(100, 53, 201, 0.05);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
}

.channel-button img {
  width: min(150px, 100%);
  height: auto;
  max-height: 54px;
  display: block;
  object-fit: contain;
}

.channel-button[data-active="true"],
.channel-button:hover,
.channel-button:focus-visible {
  border-color: rgba(100, 53, 201, 0.35);
  transform: translateY(-3px);
  background: rgba(100, 53, 201, 0.12);
  box-shadow: 0 18px 35px -22px rgba(100, 53, 201, 0.7);
}

:root[data-theme="dark"] .channel-button {
  background: rgba(99, 74, 169, 0.12);
  border-color: rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .channel-button[data-active="true"],
:root[data-theme="dark"] .channel-button:hover,
:root[data-theme="dark"] .channel-button:focus-visible {
  border-color: rgba(137, 102, 216, 0.65);
  background: rgba(137, 102, 216, 0.22);
  box-shadow: 0 18px 35px -22px rgba(5, 0, 21, 0.9);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: var(--chip-bg);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.chip:hover,
.chip:focus-visible {
  transform: translateY(-2px);
  border-color: var(--chip-border);
  box-shadow: var(--chip-shadow);
}

.chip[data-active="true"] {
  background: var(--chip-bg-active);
  border-color: var(--chip-border);
  color: var(--accent);
  box-shadow: var(--chip-shadow);
}

.chip--ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(31, 21, 55, 0.18);
}

:root[data-theme="dark"] .chip {
  color: var(--fg);
}

:root[data-theme="dark"] .chip--ghost {
  background: rgba(8, 4, 24, 0.65);
  border-color: rgba(255, 255, 255, 0.12);
}

.insights {
  background: var(--card-gradient);
  border-radius: calc(var(--border-radius) + 0.25rem);
  padding: 1.5rem;
  border: 1px solid var(--surface-border);
  box-shadow: 0 28px 60px -50px rgba(31, 21, 55, 0.75);
}

.insights__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.insight-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(100, 53, 201, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 12px 30px -20px rgba(31, 21, 55, 0.75);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.insight-card--action {
  cursor: pointer;
  text-align: left;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.insight-card--action:hover,
.insight-card--action:focus-visible {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 16px 36px -22px rgba(31, 21, 55, 0.85);
  outline: none;
}

.insight-card--action:focus-visible {
  box-shadow: 0 0 0 3px rgba(100, 53, 201, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 36px -22px rgba(31, 21, 55, 0.85);
}

:root[data-theme="dark"] .insight-card {
  background: rgba(12, 8, 22, 0.9);
  border-color: rgba(203, 182, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px -32px rgba(0, 0, 0, 0.9);
}

.insight-card__label {
  font-size: 0.95rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.insight-card__value {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--fg);
}

.insight-card__note {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.schedule__status {
  font-size: 1rem;
  color: rgba(31, 21, 55, 0.65);
  text-align: center;
}

:root[data-theme="dark"] .schedule__status {
  color: rgba(243, 238, 255, 0.65);
}

.schedule__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.schedule-day {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  border-radius: calc(var(--border-radius) + 0.35rem);
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(31, 21, 55, 0.08);
  box-shadow: 0 35px 80px -60px rgba(31, 21, 55, 0.45);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.schedule-day::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(100, 53, 201, 0.08), transparent 65%);
  pointer-events: none;
}

:root[data-theme="dark"] .schedule-day {
  background: rgba(7, 3, 20, 0.92);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 35px 80px -60px rgba(0, 0, 0, 0.9);
}

:root[data-theme="dark"] .schedule-day::after {
  background: linear-gradient(140deg, rgba(118, 72, 194, 0.2), transparent 65%);
}

.schedule-day__heading {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.schedule-day__events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.schedule-event {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 0.9rem;
  row-gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 21, 55, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  --event-logo-height: clamp(34px, 5vw, 52px);
  --event-logo-max-width: clamp(96px, 30vw, 180px);
}

.schedule-event:hover,
.schedule-event:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -35px rgba(31, 21, 55, 0.45);
}

.schedule-event[data-replacement="replaces"] {
  box-shadow: 0 0 0 1px var(--replacement-border), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.schedule-event[data-replacement="replaced"] {
  opacity: 0.7;
}

:root[data-theme="dark"] .schedule-event {
  background: rgba(7, 4, 22, 0.92);
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .schedule-event:hover,
:root[data-theme="dark"] .schedule-event:focus-within {
  box-shadow: 0 25px 50px -35px rgba(0, 0, 0, 0.9);
}

.schedule-event__meta {
  display: contents;
  font-size: 0.95rem;
}

.schedule-event__logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  height: var(--event-logo-height);
  width: auto;
  max-width: var(--event-logo-max-width);
  flex-shrink: 0;
  object-fit: contain;
}

.schedule-event__meta-text {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.schedule-event__time {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.schedule-event__channel {
  color: var(--fg-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-event__live {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(251, 191, 36, 0.9));
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  box-shadow: 0 12px 18px -15px rgba(220, 38, 38, 0.6);
}

.schedule-event__body {
  grid-column: 2 / span 2;
  grid-row: 2;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.schedule-event__title {
  font-size: 1.05rem;
  font-weight: 600;
}

.schedule-event__details,
.schedule-event__added {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.schedule-event__replacement {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  word-break: break-word;
  color: var(--fg-muted);
}

.schedule-event__replacement[data-variant="replaces"] {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--replacement-bg);
  color: var(--replacement-text);
  border: 1px solid var(--replacement-border);
}

.schedule-event__replacement[data-variant="replaced"] {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--replaced-text);
}

.schedule-event__replacement-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .schedule-event__replacement-badge {
  background: rgba(94, 255, 255, 0.18);
  color: #5ff5ff;
}

.schedule-event__replacement[data-variant="replaces"] .schedule-event__replacement-badge {
  display: inline-flex;
}

.schedule-event__replacement-label {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.schedule-event__replacement[data-variant="replaced"] .schedule-event__replacement-label {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  font-weight: 600;
}

.schedule-event__replacement-detail {
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: normal;
}

.schedule-event__replacement[data-variant="replaced"] .schedule-event__replacement-detail {
  font-weight: 600;
}

.page-footer {
  border-top: 1px solid rgba(31, 21, 55, 0.1);
  padding: 1.75rem 0 2.5rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
  text-align: center;
}

:root[data-theme="dark"] .page-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.page-footer a {
  color: inherit;
  font-weight: 600;
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

  .header-visual {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .page-header {
    padding: 2.8rem 0 2.5rem;
  }

  .header-card {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .filters {
    padding: 1.25rem;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-event {
    padding: 0.85rem 1rem;
    column-gap: 0.75rem;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    --event-logo-height: clamp(32px, 12vw, 46px);
    --event-logo-max-width: clamp(96px, 50vw, 170px);
  }

  .schedule-event__logo {
    grid-row: 1;
    grid-column: 1;
  }

  .schedule-event__meta-text {
    grid-row: 2;
    grid-column: 1;
    align-items: center;
  }

  .schedule-event__live {
    grid-row: 3;
    grid-column: 1;
    justify-self: center;
  }

  .schedule-event__body {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    text-align: left;
  }
}

.live-overlay[hidden] {
  display: none;
}

.live-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 15% 20%, rgba(100, 53, 201, 0.08), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.12), transparent 32%),
    rgba(9, 5, 15, 0.78);
  backdrop-filter: blur(6px);
}

.live-overlay__backdrop {
  position: absolute;
  inset: 0;
}

.live-overlay__panel {
  position: relative;
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--surface-border);
  box-shadow: 0 40px 120px -60px rgba(0, 0, 0, 0.7);
  width: min(1100px, 100%);
  max-height: min(90vh, 100%);
  overflow: hidden;
}

.live-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-overlay__title {
  margin: 0;
  font-size: 1.5rem;
}

.live-overlay__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.live-overlay__close {
  border: 1px solid rgba(100, 53, 201, 0.3);
  background: var(--card-gradient);
  color: var(--fg);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.live-overlay__close:hover,
.live-overlay__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 53, 201, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.live-overlay__body {
  margin-top: 1.25rem;
  overflow: auto;
  max-height: calc(90vh - 4rem);
}

.live-overlay__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.live-overlay__empty {
  margin: 1rem 0 0;
  color: var(--fg-muted);
}

.live-card {
  background: var(--card-gradient);
  border-radius: 0.9rem;
  border: 1px solid rgba(100, 53, 201, 0.18);
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 22px 50px -34px rgba(31, 21, 55, 0.85);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.live-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.live-card__logo {
  width: 56px;
  height: auto;
  max-height: 56px;
}

.live-card__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.live-card__channel {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.live-card__time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.live-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  background: rgba(100, 53, 201, 0.12);
  border-radius: 999px;
  color: var(--fg);
  border: 1px solid rgba(100, 53, 201, 0.2);
  font-weight: 700;
  font-size: 0.9rem;
}
