:root {
  --maen-focus: #6f4cff;
  --maen-gold: #ffd23f;
}

:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--maen-focus) !important;
  outline-offset: 3px !important;
}

:where(a, button):active {
  transform: scale(0.98);
}

.maen-image-error {
  min-height: 120px;
  background: linear-gradient(135deg, #f1f2f4, #fff) !important;
  object-fit: contain !important;
  opacity: 0.72;
}

#frequencies .frequency-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: var(--maen-gold) #111;
}

#frequencies .frequency-table-wrap:focus-within {
  box-shadow: 0 0 0 3px rgba(111, 76, 255, 0.28);
}

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


/* Football schedule: compact match times and broadcaster listings. */
#sports.sports-schedule-page {
  background:
    radial-gradient(circle at 88% 8%, rgba(19, 136, 255, .12), transparent 24%),
    radial-gradient(circle at 12% 22%, rgba(36, 209, 126, .09), transparent 22%),
    #f5f8fc;
}

#sports .sports-section {
  max-width: 1280px;
}

#sports .sports-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 50px);
  color: #fff;
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 20%, rgba(36, 209, 126, .24), transparent 24%),
    linear-gradient(128deg, #071322 0%, #0b2746 55%, #0c5d69 100%);
  box-shadow: 0 24px 60px rgba(5, 28, 53, .24);
  overflow: hidden;
}

#sports .sports-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  color: #071322;
  background: #ffd23f;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 1000;
}

#sports .sports-hero h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 1000;
  letter-spacing: -.8px;
}

#sports .sports-hero p {
  max-width: 650px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.85;
  font-weight: 700;
}

#sports .sports-hero-orb {
  display: grid;
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 210, 63, .3), rgba(19, 136, 255, .16) 45%, rgba(0, 0, 0, .14));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .05), 0 14px 32px rgba(0, 0, 0, .18);
}

#sports .sports-hero-orb span {
  display: block;
  font-size: 54px;
  line-height: 1;
}

#sports .sports-hero-orb small {
  display: block;
  margin-top: 8px;
  color: #b9f6da;
  font-size: 11px;
  font-weight: 1000;
}


/* The football section intentionally contains schedule and broadcaster UI only. */
/* Football matches: compact, verified broadcast listings. */
#sports .sports-matches-windows button,
#sports .sports-matches-actions button {
  min-height: 42px;
  padding: 10px 15px;
  color: #17314d;
  border: 1px solid rgba(7, 19, 34, .12);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
#sports .sports-matches-windows button:hover,
#sports .sports-matches-actions button:hover,
#sports .sports-matches-windows button.active {
  color: #fff;
  border-color: #087f8c;
  background: linear-gradient(135deg, #0b5c78, #087f8c);
}
#sports .sports-matches-windows button:active,
#sports .sports-matches-actions button:active { transform: translateY(1px); }
#sports .sports-matches-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
#sports .sports-matches-windows,
#sports .sports-matches-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#sports .sports-matches-actions { margin-inline-start: auto; }
#sports .sports-matches-actions input {
  width: min(290px, 32vw);
  min-height: 42px;
  padding: 10px 14px;
  color: #10263e;
  border: 1px solid rgba(7, 19, 34, .14);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-weight: 700;
}
#sports .sports-matches-actions input:focus {
  border-color: #1388ff;
  outline: 3px solid rgba(19, 136, 255, .16);
}
#sports .sports-matches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
#sports .sports-competition-heading {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding: 12px 14px;
  color: #0a3156;
  border-inline-start: 5px solid #d6a900;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 210, 63, .22), rgba(255, 255, 255, .74));
  font-size: 18px;
  line-height: 1.3;
}
#sports .sports-match-card {
  min-width: 0;
  padding: 16px;
  color: #10263e;
  border: 1px solid rgba(7, 19, 34, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(15, 35, 70, .08);
}
#sports .sports-match-top,
#sports .sports-match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#sports .sports-match-date {
  color: #54738a;
  font-size: 12px;
  font-weight: 900;
}
#sports .sports-match-teams {
  min-height: 52px;
  text-align: center;
}
#sports .sports-match-teams strong {
  flex: 1 1 0;
  color: #0a3156;
  font-size: 16px;
  line-height: 1.35;
}
#sports .sports-match-versus {
  flex: 0 0 auto;
  color: #b58900;
  font-size: 13px;
  font-weight: 1000;
}
#sports .sports-match-time {
  margin: 12px 0;
  padding: 9px 10px;
  color: #17314d;
  border-radius: 10px;
  background: #f1f6fa;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
#sports .sports-match-broadcast {
  padding-top: 11px;
  border-top: 1px solid rgba(7, 19, 34, .08);
}
#sports .sports-match-broadcast > strong {
  display: block;
  margin-bottom: 7px;
  color: #07546a;
  font-size: 13px;
}
#sports .sports-match-broadcast ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-inline-start: 18px;
  color: #344f69;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}
#sports .sports-match-broadcaster { padding-inline-start: 2px; }
#sports .sports-match-broadcaster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#sports .sports-match-broadcaster-name { color: #17314d; }
#sports .sports-match-access {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1.1;
}
#sports .sports-match-access-fta { color: #17633c; background: #e2f5e8; }
#sports .sports-match-access-encrypted { color: #7a3e19; background: #fff0d7; }
#sports .sports-match-access-unknown { color: #5c5f69; background: #edf0f4; }
#sports .sports-match-no-broadcast {
  margin: 0;
  color: #7b6b59;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 700;
}
@media (max-width: 900px) {
  #sports .sports-matches-toolbar { align-items: stretch; flex-direction: column; }
  #sports .sports-matches-windows,
  #sports .sports-matches-actions { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  #sports .sports-matches-windows::-webkit-scrollbar,
  #sports .sports-matches-actions::-webkit-scrollbar { display: none; }
  #sports .sports-matches-windows button,
  #sports .sports-matches-actions button { flex: 0 0 auto; }
  #sports .sports-matches-actions input { width: 100%; min-width: 210px; }
  #sports .sports-matches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 560px) {
  #sports .sports-matches-grid { grid-template-columns: 1fr; }
  #sports .sports-match-card { padding: 14px; }
  #sports .sports-match-teams strong { font-size: 15px; }
}
body.lang-en #sports .sports-competition-heading { text-align: left; border-inline-start: 0; border-inline-end: 5px solid #d6a900; }
body.lang-en #sports .sports-match-card { text-align: left; }
body.lang-en #sports .sports-match-teams { direction: ltr; }
body.lang-en #sports .sports-match-broadcast ul { padding-inline-start: 18px; }
body.lang-en #sports .sports-matches-actions { margin-inline-start: auto; }

/* League cards: each competition owns its own time window. */
#sports .sports-competition-card {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(7, 19, 34, .1);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,248,251,.9));
  box-shadow: 0 14px 30px rgba(15, 35, 70, .08);
}
#sports .sports-competition-card-header,
#sports .sports-competition-windows {
  display: flex;
  align-items: center;
  gap: 10px;
}
#sports .sports-competition-card-header {
  width: 100%;
  justify-content: space-between;
  margin: 0;
  padding: 4px 2px 12px;
  color: #10263e;
  border: 0;
  border-bottom: 1px solid rgba(7, 19, 34, .08);
  background: transparent;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
#sports .sports-competition-card-header:hover .sports-competition-heading { color: #087f8c; }
#sports .sports-competition-card-header:focus-visible { outline: 3px solid rgba(19, 136, 255, .2); outline-offset: 3px; border-radius: 10px; }
#sports .sports-competition-card .sports-competition-heading {
  grid-column: auto;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  color: #0a3156;
  border: 0;
  background: transparent;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 1000;
  text-align: start;
}
#sports .sports-competition-card-meta { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
#sports .sports-competition-toggle-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b5c78, #087f8c);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}
#sports .sports-competition-total {
  flex: 0 0 auto;
  color: #54738a;
  font-size: 12px;
  font-weight: 900;
}
#sports .sports-competition-windows {
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(7, 19, 34, .08);
}
#sports .sports-competition-window,
#sports .sports-competition-more {
  min-height: 36px;
  padding: 8px 12px;
  color: #17314d;
  border: 1px solid rgba(7, 19, 34, .12);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
#sports .sports-competition-window:hover,
#sports .sports-competition-window.active,
#sports .sports-competition-more:hover {
  color: #fff;
  border-color: #087f8c;
  background: linear-gradient(135deg, #0b5c78, #087f8c);
}
#sports .sports-competition-window:active,
#sports .sports-competition-more:active { transform: translateY(1px); }
#sports .sports-competition-matches {
  display: grid;
  padding-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#sports .sports-competition-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #7b6b59;
  font-size: 13px;
  font-weight: 800;
}
#sports .sports-competition-more { display: block; margin: 14px auto 0; }
@media (max-width: 900px) {
  #sports .sports-competition-matches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #sports .sports-competition-card { padding: 14px; border-radius: 18px; }
  #sports .sports-competition-card-header { align-items: flex-start; flex-direction: column; gap: 4px; }
  #sports .sports-competition-windows { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  #sports .sports-competition-windows::-webkit-scrollbar { display: none; }
  #sports .sports-competition-window { flex: 0 0 auto; }
  #sports .sports-competition-matches { grid-template-columns: 1fr; }
}
body.lang-en #sports .sports-competition-card .sports-competition-heading { text-align: left; border: 0; }
body.lang-en #sports .sports-competition-card-header { text-align: left; }

/* Compact competition tiles: choose one league, then show only its schedule. */
#sports .sports-matches-grid { display: block; }
#sports .sports-competition-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
#sports .sports-competition-tile {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  color: #0a3156;
  border: 1px solid rgba(7, 19, 34, .12);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #edf6f8);
  box-shadow: 0 8px 18px rgba(15, 35, 70, .06);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
#sports .sports-competition-tile:hover,
#sports .sports-competition-tile.active {
  color: #fff;
  border-color: #087f8c;
  background: linear-gradient(135deg, #0b5c78, #087f8c);
  box-shadow: 0 10px 22px rgba(8, 127, 140, .22);
}
#sports .sports-competition-tile:active { transform: scale(.98); }
#sports .sports-competition-tile:focus-visible { outline: 3px solid rgba(19, 136, 255, .2); outline-offset: 3px; }
#sports .sports-competition-tile strong { font-size: clamp(13px, 1.2vw, 16px); line-height: 1.3; }
#sports .sports-competition-tile span { opacity: .8; font-size: 11px; font-weight: 800; }
#sports .sports-selected-competition {
  padding: 18px;
  border: 1px solid rgba(7, 19, 34, .1);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,248,251,.9));
  box-shadow: 0 14px 30px rgba(15, 35, 70, .08);
}
#sports .sports-selected-competition-title {
  margin: 0 0 12px;
  padding-bottom: 12px;
  color: #0a3156;
  border-bottom: 1px solid rgba(7, 19, 34, .08);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 1000;
}
#sports .sports-selected-competition .sports-competition-matches { padding-top: 0; }
@media (max-width: 700px) {
  #sports .sports-competition-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  #sports .sports-competition-tile { min-height: 68px; border-radius: 13px; }
  #sports .sports-selected-competition { padding: 13px; border-radius: 18px; }
}
