/*
Theme Name: ScoreZones
Theme URI: https://scorezones.net
Author: ScoreZones
Description: A dark, floodlight-inspired theme for live football score sites, built for scorezones.net. Pairs with the TZ Livescore plugin and SportsPress.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: pitchlive
*/

:root {
  --bg: #0E1512;
  --surface: #16211C;
  --surface-2: #1C2921;
  --line: #2A3830;
  --ink: #F2F5F1;
  --muted: #8FA396;
  --amber: #FFB640;
  --red: #FF4433;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}

.mono,
.score-mid,
.score-val,
.kickoff,
.badge,
.clock,
.score,
.kickoff-time {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--amber);
  color: var(--bg);
}

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

img {
  max-width: 100%;
  display: block;
}

.display {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 800;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Top utility bar ---------- */
.utility-bar {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.utility-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.utility-bar .date {
  text-transform: uppercase;
}

.utility-bar nav {
  display: flex;
  gap: 20px;
}

.utility-bar nav a {
  color: var(--muted);
  transition: color .15s ease;
}

.utility-bar nav a:hover {
  color: var(--amber);
}

/* ---------- Header ---------- */
header.site {
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 26px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.logo .accent {
  color: var(--amber);
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

/* ---------- Floodlight ticker ---------- */
.ticker-shell {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.ticker-shell::before,
.ticker-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.ticker-shell::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface), transparent);
}

.ticker-shell::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface), transparent);
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: scroll-ticker 38s linear infinite;
  width: max-content;
}

.ticker-shell:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes scroll-ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.tick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  position: relative;
}

.tick.is-live {
  background: linear-gradient(180deg, rgba(255, 182, 64, 0.06), transparent 70%);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 68, 51, 0.6);
  animation: pulse-dot 1.8s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 68, 51, 0.55);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(255, 68, 51, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 68, 51, 0);
  }
}

.tick .teams {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.tick .teams strong {
  color: var(--ink);
  font-weight: 600;
}

.tick .score {
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
}

.tick .min {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
}

.tick .ft {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.ticker-empty {
  padding: 14px 26px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-label .live-dot {
  width: 6px;
  height: 6px;
}

.hero-match {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}

.hero-match::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(255, 182, 64, 0.10), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  position: relative;
}

.team-block {
  text-align: center;
}

.team-block.home {
  text-align: right;
}

.team-block.away {
  text-align: left;
}

.crest {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--muted);
  overflow: hidden;
}

.team-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.score-block {
  text-align: center;
}

.score-block .clock {
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.score-block .score {
  font-size: 56px;
  letter-spacing: 0.06em;
  color: var(--amber);
  line-height: 1;
}

.score-block .versus {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 12px;
}

.hero-comp {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 28px;
  position: relative;
}

/* ---------- Section shell ---------- */
section {
  padding: 52px 0;
}

section.bordered {
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: 26px;
  letter-spacing: 0.01em;
}

.section-head a.all {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.section-head a.all:hover {
  color: var(--amber);
}

/* ---------- Matches grid ---------- */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.match-card {
  background: var(--surface);
  padding: 20px 22px;
}

.match-card .comp {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
}

.match-row .name {
  font-weight: 500;
}

.match-row .name.win {
  font-weight: 700;
  color: var(--ink);
}

.match-row .val {
  font-weight: 700;
  color: var(--amber);
}

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
}

.table-widget {
  background: var(--surface);
  border: 1px solid var(--line);
}

.table-widget .thead {
  display: grid;
  grid-template-columns: 28px 1fr 28px 32px 32px;
  padding: 12px 16px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.table-widget .row {
  display: grid;
  grid-template-columns: 28px 1fr 28px 32px 32px;
  padding: 12px 16px;
  font-size: 13px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.table-widget .row:last-child {
  border-bottom: none;
}

.table-widget .pos {
  color: var(--muted);
  font-weight: 600;
}

.table-widget .club {
  font-weight: 500;
}

.table-widget .pts {
  font-weight: 700;
  text-align: right;
}

.table-widget .pl,
.table-widget .gd {
  color: var(--muted);
  text-align: right;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
}

.news-item:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding-left: 12px;
  padding-right: 12px;
}

.news-item.featured {
  display: block;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  transform: none;
  margin-bottom: 24px;
}

.news-item.featured:hover .news-thumb {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 255, 135, 0.15);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item:last-child {
  border-bottom: none;
}

.news-thumb {
  width: 96px;
  height: 68px;
  background: var(--surface) center/cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-tag {
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}

.news-meta {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Single post / page / archive ---------- */
.content-wrap {
  padding: 52px 0;
  max-width: 760px;
  margin: 0 auto;
}

.content-wrap h1.entry-title {
  font-size: 34px;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.entry-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.entry-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.entry-content p {
  margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  margin: 32px 0 14px;
  letter-spacing: 0.01em;
}

.entry-content img {
  border-radius: 4px;
  margin: 24px 0;
  border: 1px solid var(--line);
}

.archive-title {
  font-size: 30px;
  margin-bottom: 32px;
}

.archive-grid {
  display: flex;
  flex-direction: column;
}

/* ---------- Fixtures page ---------- */
.page-head {
  padding: 36px 0 4px;
}

.page-head h1 {
  font-size: 34px;
}

.page-head .sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.date-rail-shell {
  position: sticky;
  top: 32px;
  z-index: 5;
  background: var(--bg);
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--line);
}

.date-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.date-rail::-webkit-scrollbar {
  display: none;
}

.date-pill {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  font-family: inherit;
}

.date-pill .dow {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-pill .num {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
}

.date-pill .tag {
  font-size: 8px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.06em;
  height: 10px;
}

.date-pill:hover {
  border-color: var(--amber);
}

.date-pill[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(255, 182, 64, 0.14), rgba(255, 182, 64, 0.04));
  border-color: var(--amber);
}

.date-pill[aria-pressed="true"] .num,
.date-pill[aria-pressed="true"] .dow {
  color: var(--amber);
}

.league-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 0 30px;
}

.chip {
  padding: 9px 16px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  transition: all .15s ease;
  font-family: inherit;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--amber);
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--bg);
}

.comp-group {
  margin-bottom: 34px;
}

.comp-group.is-hidden {
  display: none;
}

.comp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.comp-badge {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.comp-head h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.comp-head .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.fixture-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.fixture-row {
  display: grid;
  grid-template-columns: 64px 1fr auto 1fr 90px;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .12s ease;
}

.fixture-row:last-child {
  border-bottom: none;
}

.fixture-row:hover {
  background: var(--surface-2);
}

.fixture-row.is-live {
  background: linear-gradient(90deg, rgba(255, 182, 64, 0.06), transparent 40%);
}

.kickoff .time {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.kickoff.is-live .time {
  display: none;
}

.live-minute {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

.kickoff.is-live .live-minute {
  display: inline-flex;
}

.kickoff .ft {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.fixture-row .team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.fixture-row .team.home {
  justify-content: flex-end;
  text-align: right;
}

.fixture-row .team.away {
  justify-content: flex-start;
}

.fixture-row .team .crest {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
}

.fixture-row .team.win {
  font-weight: 700;
  color: var(--ink);
}

.score-mid {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
  min-width: 40px;
  font-family: 'IBM Plex Mono', monospace;
}

.score-mid .vs {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  font-family: 'Barlow', sans-serif;
}

.venue {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .fixture-row {
    grid-template-columns: 52px 1fr auto 1fr;
    padding: 14px;
  }

  .venue {
    display: none;
  }

  .fixture-row .team .crest {
    width: 22px;
    height: 22px;
  }
}

.szf-date-panel {
  display: none;
}

.szf-date-panel.active {
  display: block;
}


/* ---------- Footer ---------- */
footer.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .hero-match {
    padding: 28px 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .team-block.home,
  .team-block.away {
    text-align: center;
  }

  .matches-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .news-item {
    grid-template-columns: 72px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }

  .live-dot {
    animation: none;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Crest / Logo Styles ---------- */
.crest-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
}

.crest img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.hero-crest {
  max-width: 44px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.crest-wrap img {
  display: block;
}

.match-row-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.team-info.win {
  font-weight: 700;
  color: var(--ink);
}

.team-crest-mini {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.score-val {
  font-weight: 700;
  color: var(--amber);
  font-size: 14px;
}

.match-meta-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.table-widget .club {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-crest {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* ================================================================
   STANDINGS TABLE  (page-tables.php)
   ================================================================ */

.league-tab-rail .date-pill .num {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.date-pill.active {
  background: var(--amber);
  color: var(--bg);
  border-color: var(--amber);
}

.szf-league-panel {
  display: none;
}

.szf-league-panel.active {
  display: block;
}

.standings-header {
  padding: 0 0 4px;
}

.standings-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.standings-row {
  display: grid;
  grid-template-columns: 28px 1fr 32px 32px 32px 32px 32px 32px 44px 44px 80px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  gap: 2px;
}

.standings-row:last-child {
  border-bottom: none;
}

.standings-row.thead {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}

/* Zone left-border bands */
.standings-row.zone-ucl {
  border-left: 3px solid #1a8cff;
}

.standings-row.zone-uel {
  border-left: 3px solid #ff9900;
}

.standings-row.zone-uecl {
  border-left: 3px solid #22cc66;
}

.standings-row.zone-rel {
  border-left: 3px solid var(--red);
}

.s-pos {
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.s-club {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  min-width: 0;
}

.s-club .club-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s-stat {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}

.s-pts {
  text-align: right;
  font-weight: 700;
  color: var(--ink);
}

.s-form {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
}

.gd.pos-gd {
  color: #22cc66;
}

.gd.neg-gd {
  color: var(--red);
}

/* Form dots */
.form-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.form-dot.fw {
  background: #22cc66;
}

.form-dot.fd {
  background: #8FA396;
}

.form-dot.fl {
  background: var(--red);
}

/* Legend */
.standings-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 0;
  font-size: 11px;
  color: var(--muted);
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.leg-bar {
  width: 3px;
  height: 14px;
  border-radius: 2px;
}

.leg-bar.ucl {
  background: #1a8cff;
}

.leg-bar.uel {
  background: #ff9900;
}

.leg-bar.uecl {
  background: #22cc66;
}

.leg-bar.rel {
  background: var(--red);
}

/* Responsive: hide auxiliary stat columns on small screens */
@media (max-width: 860px) {
  .standings-row {
    grid-template-columns: 24px 1fr 28px 40px 60px;
  }

  .s-stat:nth-child(n+5):nth-child(-n+9),
  .standings-row .s-form,
  .standings-row .s-stat.gd {
    display: none;
  }
}

/* ================================================================
   LEAGUE HERO BANNER  (page-league.php)
   ================================================================ */

.league-hero {
  background: linear-gradient(135deg, var(--league-color, var(--surface-2)) 0%, var(--surface) 60%);
  border-bottom: 1px solid var(--line);
  padding: 36px 0 28px;
  margin-bottom: 0;
}

.league-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.league-badge-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  flex-shrink: 0;
}

/* League-specific two-col override */
.league-two-col {
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 48px;
}

.league-matches-col,
.league-table-col {
  min-width: 0;
}

.league-matches-col .comp-group {
  border: 1px solid var(--line);
  background: var(--surface);
}

/* Date sub label under kickoff (for upcoming matches spanning multiple days) */
.match-date-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.league-two-col {
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

.match-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 40px 0 60px;
}

.hero-match-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

@media (max-width: 860px) {

  .league-two-col,
  .match-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-match-head {
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
  }

  .hero-match-head>div {
    flex: 1 1 100%;
  }

  .hero-match-head .score-block {
    flex: 1 1 100%;
    order: -1;
    margin-bottom: 20px;
  }
}