:root {
  --bg-primary: #080f1e;
  --bg-secondary: #0d1829;
  --bg-tertiary: #111f35;
  --accent-green: #2dd4a8;
  --accent-green-dim: #20b88a;
  --accent-red: #ff4757;
  --accent-yellow: #ffd700;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #6b8299;
  --border: #1a2f4a;
  --live-red: #ff4757;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-pill: 50px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
  --nav-height: 60px;
  --ticker-height: 36px;
  --wc-groups-ticker-height: 34px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-green); }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Page shell with persistent left leagues sidebar */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 16px 0;
}

.page-with-sidebar > .page-main {
  min-width: 0;
}

.page-with-sidebar > .leagues-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 12px);
  max-height: calc(100vh - var(--nav-height) - 24px);
}

body:has(.ticker-bar) .page-with-sidebar > .leagues-sidebar,
body:has(.ticker-bar) .leagues-sidebar {
  top: calc(var(--nav-height) + var(--ticker-height) + 12px);
  max-height: calc(100vh - var(--nav-height) - var(--ticker-height) - 24px);
}

.page-with-sidebar > .leagues-sidebar .leagues-sidebar-inner {
  max-height: calc(100vh - var(--nav-height) - 24px);
}

body:has(.ticker-bar) .page-with-sidebar > .leagues-sidebar .leagues-sidebar-inner,
body:has(.ticker-bar) .leagues-sidebar-inner {
  max-height: calc(100vh - var(--nav-height) - var(--ticker-height) - 24px);
}

.leagues-sidebar-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.leagues-sidebar-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.leagues-sidebar-title-row .leagues-sidebar-title {
  padding: 0;
  border: none;
}

.container:has(.home-layout),
.container:has(.home-page-layout),
.container:has(.page-with-sidebar),
.container.leagues-page {
  max-width: 1280px;
}

/* Home page — leagues sidebar from top, content on the right */

.home-page-layout {
  display: block;
  padding-top: 16px;
}

.live-page-layout {
  display: block;
  width: 100%;
  padding-top: 16px;
}

.live-page-layout > .page-main,
.live-page-layout > .live-page-main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-width: 0;
}

.home-content {
  min-width: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Home / live layout with leagues sidebar */
.home-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 8px;
}

.home-main { min-width: 0; }

.leagues-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 12px);
  max-height: calc(100vh - var(--nav-height) - 24px);
}

.leagues-sidebar-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--nav-height) - 24px);
  overflow: hidden;
}

.leagues-mobile-panel {
  display: block;
  border: none;
}

.leagues-mobile-summary {
  display: none;
}

@media (min-width: 961px) {
  .leagues-mobile-panel .leagues-sidebar-inner {
    display: flex !important;
  }
}

.leagues-sidebar-title {
  padding: 14px 16px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.leagues-sidebar-search-wrap {
  padding: 8px 12px 4px;
  border-bottom: 1px solid var(--border);
}

.leagues-sidebar-search {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 12px;
}

.leagues-sidebar-search:focus {
  outline: none;
  border-color: var(--accent-green);
}

.leagues-nav {
  overflow-y: auto;
  flex: 1;
  padding: 6px 0;
}

.league-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}

.league-nav-item:hover,
.league-nav-item.active {
  background: var(--bg-tertiary);
  color: var(--accent-green);
}

.league-nav-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.league-nav-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leagues-view-all {
  display: block;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  border-top: 1px solid var(--border);
  color: var(--accent-green);
  text-align: center;
}

.leagues-nav-error {
  padding: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Leagues directory page */
.leagues-page-header {
  margin-bottom: 28px;
  padding-bottom: 4px;
}

.leagues-page-header h1 {
  font-size: clamp(28px, 4vw, 34px);
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.leagues-page-header .page-subtitle,
.leagues-page-header p:not(.page-meta):not(.sync-note) {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 10px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  max-width: 680px;
}

.page-meta,
.sync-note {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 16px;
}

.page-meta {
  margin-bottom: 0;
}

.sync-note a {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero .page-subtitle,
.hero > p:not(.sync-note) {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 10px;
}

.hero .sync-note {
  margin-bottom: 24px;
}

.leagues-search-wrap {
  position: relative;
  margin-bottom: 20px;
}

.leagues-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.leagues-search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
}

.leagues-search-input:focus {
  outline: none;
  border-color: var(--accent-green-dim);
}

.leagues-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.league-directory-card {
  display: grid;
  grid-template-columns: 28px 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.league-directory-card:hover {
  border-color: var(--accent-green-dim);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.league-directory-rank {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.league-directory-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.league-directory-info strong {
  font-size: 14px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-directory-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.league-directory-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

.league-directory-card--split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.league-directory-main {
  display: grid;
  grid-template-columns: 28px 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: inherit;
}

.league-directory-card--split:hover {
  transform: none;
}

.league-directory-card--split:hover .league-directory-main {
  background: var(--bg-tertiary);
}

.league-directory-standings {
  display: block;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
  text-align: center;
  transition: background var(--transition);
}

.league-directory-standings:hover {
  background: rgba(0, 255, 135, 0.06);
  color: var(--accent-green);
}

.standings-page-links {
  margin-bottom: 16px;
}

.standings-page-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
}

.standings-page-links a:hover {
  color: var(--accent-green-dim);
}

@media (max-width: 960px) {
  .page-with-sidebar,
  .home-layout,
  .home-page-layout {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-content {
    order: 1;
    min-width: 0;
    width: 100%;
  }

  .home-page-layout > .leagues-sidebar {
    order: 2;
    width: 100%;
  }

  .page-with-sidebar > .page-main,
  .page-with-sidebar > .live-page-main {
    order: 1;
    min-width: 0;
    width: 100%;
  }

  .page-with-sidebar > .leagues-sidebar {
    order: 2;
    width: 100%;
  }


  .leagues-mobile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .leagues-mobile-summary::-webkit-details-marker {
    display: none;
  }

  .leagues-mobile-summary::after {
    content: '▾';
    color: var(--text-muted);
    font-size: 12px;
    transition: transform var(--transition);
  }

  .leagues-mobile-panel[open] .leagues-mobile-summary::after {
    transform: rotate(180deg);
  }

  .leagues-mobile-panel:not([open]) .leagues-sidebar-inner {
    display: none;
  }

  .leagues-mobile-panel[open] .leagues-sidebar-inner {
    margin-top: 8px;
  }

  .page-with-sidebar > .leagues-sidebar,
  .leagues-sidebar {
    position: static;
    max-height: none;
  }

  .page-with-sidebar > .leagues-sidebar .leagues-sidebar-inner,
  .leagues-sidebar-inner {
    max-height: min(52vh, 360px);
  }

  .home-live-featured {
    grid-template-columns: 1fr;
  }

  .featured-match-card--hero .featured-match-body {
    padding: 20px 14px;
  }

  .featured-match-card--hero .featured-match-score,
.featured-match-score-wrap {
    font-size: 34px;
  }

  .wc-banner-meta {
    font-size: 11px;
    line-height: 1.45;
    padding: 0 4px;
  }

  .wc-quick-links a {
    padding: 8px 14px;
    font-size: 12px;
  }

  .wc-banner-team span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 42vw;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .home-page-layout {
    gap: 10px;
  }

  .home-content .wc-banner--in-column {
    margin-left: -8px;
    margin-right: -8px;
    width: calc(100% + 16px);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  
.wc-banner-live {
  margin: 0 auto 20px;
  max-width: 860px;
}

.wc-banner-live-meta {
  margin: -6px 0 16px;
  text-align: center;
  font-size: 13px;
}

.wc-banner-live-meta a {
  color: rgba(255, 255, 255, 0.72);
}

.wc-banner-live-meta a:hover {
  color: var(--accent-green);
}

.wc-banner-live-slot {
  margin-bottom: 4px;
}

.wc-banner-live-slot .wc-banner-live-head .live-dot {
  flex-shrink: 0;
}

#home-live-section.wc-banner-live .section-header {
  margin-bottom: 14px;
}

#home-live-section.wc-banner-live .section-title.live-header {
  color: #fff;
}

#home-live-section.wc-banner-live .home-live-national-head,
#home-live-section.wc-banner-live .home-live-regular-head {
  color: rgba(255, 255, 255, 0.72);
}

#home-live-section.wc-banner-live .home-live-featured .featured-match-card {
  background: rgba(8, 15, 30, 0.55);
  border-color: rgba(255, 71, 87, 0.45);
}


.wc-banner-inner {
    padding: 14px 8px 12px;
  }

  

  .wc-banner-panel {
    max-width: 100%;
    width: 100%;
  }

  .wc-banner-section {
    padding: 10px 8px;
  }

  .wc-banner-match-top {
    padding: 10px 8px 8px;
  }

  .wc-banner-match-foot {
    padding: 8px 8px 10px;
  }

  .wc-banner-match-top .match-card-main {
    gap: 4px 6px;
  }

  .wc-banner-match .match-card-side {
    gap: 5px;
    min-width: 0;
  }

  .wc-banner-match-top .match-card-center {
    min-width: 48px;
  }

  .wc-banner-badge {
    font-size: 10px;
    padding: 5px 10px;
    letter-spacing: 0.06em;
  }

  .wc-countdown {
    font-size: 24px;
  }

  .wc-countdown-label {
    font-size: 12px;
    text-align: center;
    width: 100%;
  }

  .match-row:not(.match-row--pro) {
    grid-template-columns: minmax(0, 1fr) minmax(72px, auto) minmax(0, 1fr);
    gap: 6px;
    padding: 10px 10px;
    font-size: 12px;
  }

  .match-card-main {
    gap: 8px;
    padding: 12px 10px;
  }

  .match-card-team-name {
    font-size: 13px;
  }

  .match-team .team-name {
    font-size: 12px;
  }

  .team-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .filter-bar {
    gap: 6px;
    margin-bottom: 14px;
  }

  .filter-btn {
    padding: 7px 12px;
    font-size: 12px;
  }

  .home-standings-grid {
    grid-template-columns: 1fr;
  }

  .leagues-directory {
    grid-template-columns: 1fr;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(8, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.nav-logo span { color: var(--accent-green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent-green); }

.nav-item-has-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-caret {
  font-size: 10px;
  opacity: 0.75;
  transition: transform var(--transition);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(12, 22, 40, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 130;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(12, 22, 40, 0.98);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  background: rgba(45, 212, 168, 0.08);
  color: var(--accent-green);
}

.nav-item-has-dropdown:hover .nav-dropdown,
.nav-item-has-dropdown:focus-within .nav-dropdown,
.nav-item-has-dropdown.is-open .nav-dropdown {
  display: block;
}

.nav-item-has-dropdown:hover .nav-caret,
.nav-item-has-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-search-form {
  position: relative;
  flex: 0 1 280px;
  min-width: 200px;
  max-width: 340px;
}

.nav-search-input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.nav-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.nav-search-form:focus-within .nav-search-input {
  border-color: rgba(45, 212, 168, 0.45);
  background: rgba(17, 31, 53, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.12);
}

.nav-search-form .search-icon-svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition);
}

.nav-search-form:focus-within .search-icon-svg {
  color: var(--accent-green);
}

.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow-y: auto;
  z-index: 120;
}

.nav-search-mobile-link {
  display: none;
}

.nav-search-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  font-size: 16px;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition);
}

.nav-search-link:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}


/* World Cup groups ticker — under main nav */
.wc-groups-ticker {
  position: sticky;
  border-top: 2px solid rgba(34, 197, 94, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  top: var(--nav-height);
  z-index: 99;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(20, 35, 55, 0.98));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: var(--wc-groups-ticker-height);
}

.wc-groups-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  padding: 7px 18px;
  font-size: 12px;
  width: max-content;
}

.wc-groups-ticker-track--marquee {
  animation: wc-groups-ticker-marquee var(--wc-ticker-duration, 95s) linear infinite;
  will-change: transform;
}

@keyframes wc-groups-ticker-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

a.wc-groups-ticker-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}
a.wc-groups-ticker-item:hover,
a.wc-groups-ticker-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.wc-groups-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wc-groups-ticker-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #22c55e);
  background: rgba(34, 197, 94, 0.14);
  padding: 2px 7px;
  border-radius: 4px;
}

.wc-groups-ticker-team {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-primary);
  font-weight: 600;
}

.wc-groups-ticker-team img {
  object-fit: contain;
  flex-shrink: 0;
}

.wc-groups-ticker-sep {
  color: var(--text-muted, rgba(255, 255, 255, 0.35));
  font-size: 10px;
  user-select: none;
  flex-shrink: 0;
}

body:has(.wc-groups-ticker) .ticker-bar {
  top: calc(var(--nav-height) + var(--wc-groups-ticker-height));
}

body:has(.wc-groups-ticker):has(.ticker-bar) .page-with-sidebar > .leagues-sidebar,
body:has(.wc-groups-ticker):has(.ticker-bar) .leagues-sidebar {
  top: calc(var(--nav-height) + var(--wc-groups-ticker-height) + var(--ticker-height) + 12px);
  max-height: calc(100vh - var(--nav-height) - var(--wc-groups-ticker-height) - var(--ticker-height) - 24px);
}

body:has(.wc-groups-ticker):has(.ticker-bar) .page-with-sidebar > .leagues-sidebar .leagues-sidebar-inner,
body:has(.wc-groups-ticker):has(.ticker-bar) .leagues-sidebar-inner {
  max-height: calc(100vh - var(--nav-height) - var(--wc-groups-ticker-height) - var(--ticker-height) - 24px);
}

body:has(.wc-groups-ticker):not(:has(.ticker-bar)) .page-with-sidebar > .leagues-sidebar,
body:has(.wc-groups-ticker):not(:has(.ticker-bar)) .leagues-sidebar {
  top: calc(var(--nav-height) + var(--wc-groups-ticker-height) + 12px);
  max-height: calc(100vh - var(--nav-height) - var(--wc-groups-ticker-height) - 24px);
}

@media (max-width: 768px) {
  .wc-groups-ticker-track {
    gap: 20px;
    font-size: 11px;
    padding: 7px 12px;
  }
  .wc-groups-ticker-team span {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wc-groups-ticker-track--marquee {
    animation-duration: 160s !important;
  }
  .wc-groups-ticker-track:not(.wc-groups-ticker-track--marquee) {
    flex-wrap: wrap;
    white-space: normal;
    min-width: 0;
    justify-content: center;
  }
}

/* Live ticker — sits directly under the nav */
.ticker-bar {
  position: sticky;
  top: var(--nav-height);
  z-index: 99;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: var(--ticker-height, 36px);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  min-width: 200%;
  white-space: nowrap;
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 0.01em;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.ticker-item { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ticker-item.live { color: var(--live-red); font-weight: 500; }
.ticker-item .ticker-score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.ticker-item .ticker-minute {
  opacity: 0.85;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ticker-sep {
  color: var(--text-muted, rgba(255, 255, 255, 0.35));
  font-size: 16px;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ticker-track {
    gap: 36px;
    font-size: 12px;
    padding: 8px 14px;
  }
  .ticker-item .ticker-minute { font-size: 11px; }
}

/* Hero */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hero p { color: var(--text-secondary); margin-bottom: 10px; line-height: 1.65; font-size: 15px; }

.search-bar {
  max-width: 480px;
  margin: 0 auto 20px;
  position: relative;
}

.search-bar input {
  width: 100%;
  height: 48px;
  padding: 0 20px 0 48px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.search-bar input:focus {
  border-color: rgba(45, 212, 168, 0.45);
  background: rgba(17, 31, 53, 0.98);
  box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.12), 0 8px 28px rgba(0, 0, 0, 0.28);
}

.search-bar input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-icon-svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition);
}

.search-bar:focus-within .search-icon-svg {
  color: var(--accent-green);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-bar--lg {
  max-width: 720px;
}

.search-bar--lg input {
  height: 58px;
  padding: 0 24px 0 56px;
  font-size: 17px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.search-bar--lg input:focus {
  box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.14), 0 12px 40px rgba(0, 0, 0, 0.3);
}

.search-bar--lg .search-icon-svg {
  left: 20px;
  width: 22px;
  height: 22px;
}

.search-hero {
  padding: 40px 16px 36px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 255, 135, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(13, 24, 41, 0.9) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.search-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.search-hero-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.search-hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.search-hero-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.search-hero-hint {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(17, 31, 53, 0.65);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition);
}

.search-hero-hint:hover {
  border-color: rgba(0, 255, 135, 0.35);
  color: var(--accent-green);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.search-results.open { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-tertiary); }

.search-result-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.search-result-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.search-result-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-result-loading,
.search-result-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.search-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: searchSpin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes searchSpin {
  to { transform: rotate(360deg); }
}

.search-page-form {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.search-page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.search-page-results {
  margin-top: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.search-page-results .empty-state {
  padding: 48px 24px;
}

.search-page-results .search-result-loading,
.search-page-results .search-result-empty {
  padding: 32px 24px;
}

.search-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 12px 14px 6px;
}

.article-footer-note {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

.article-image figcaption,
.article-hero figcaption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.article-image figcaption a,
.article-hero figcaption a {
  color: var(--accent-green);
  text-decoration: none;
}

.article-image figcaption a:hover,
.article-hero figcaption a:hover { text-decoration: underline; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-stats span { color: var(--accent-green); font-weight: 600; }

/* Section headers */
.section { margin-bottom: 40px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title.live-header { color: var(--text-primary); }
.section-title.live-header .live-dot { background: var(--live-red); }

/* Live badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.4);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--live-red);
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-red);
  animation: live-pulse 1.2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* League card */
.league-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.league-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.league-logo { width: 22px; height: 22px; object-fit: contain; }
.league-flag { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }
.league-flag--logo { object-fit: contain; background: var(--bg-tertiary, #111f35); padding: 1px; }


.league-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.league-country { font-size: 11px; color: var(--text-muted); }

/* Score card / match row */
.match-card {
  border-bottom: 1px solid var(--border);
}

.match-card:last-child { border-bottom: none; }

/* Professional match row (compact horizontal layout) */
.match-row--pro {
  display: block;
  padding: 0;
  grid-template-columns: unset;
}

.match-row--pro:hover { background: transparent; }
.match-row--pro:hover .match-card-main { background: rgba(17, 31, 53, 0.85); }

.match-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  transition: background var(--transition);
}

.match-card-main--strip { min-height: 56px; }

.match-card-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.match-card-side--home {
  justify-content: flex-end;
  flex-direction: row;
}

.match-card-side--away { justify-content: flex-start; }

.match-card-team-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 220px);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-card-side--home .match-card-team-name { text-align: right; }
.match-card-side--away .match-card-team-name { text-align: left; }

a.match-row--pro:hover .match-card-team-name { color: var(--accent-green); }

.match-card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 0 6px;
}

.match-card-center-primary {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.match-card-center-scores.is-live { color: var(--live-red); }

.match-card-center-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.match-card-center-sub.is-live { color: var(--live-red); }

.match-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 0 16px 12px;
  border-top: 1px solid rgba(26, 47, 74, 0.55);
}

.match-card-meta--compact {
  font-size: 11px;
  color: var(--text-muted);
}

.match-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.match-card-meta-league img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.team-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--avatar-bg, var(--bg-tertiary));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.team-avatar--sm { width: 28px; height: 28px; }
.team-avatar--md { width: 36px; height: 36px; }
.team-avatar--lg { width: 44px; height: 44px; }

.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.team-avatar-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.team-avatar:has(.team-avatar-img[src]:not([src=""])) .team-avatar-initial { display: none; }

body[data-page="live"] .page-main { padding-top: 8px; }
body[data-page="live"] .section-header { margin-bottom: 8px; }
body[data-page="live"] .section-title { font-size: 22px; letter-spacing: -0.02em; }
body[data-page="live"] .live-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.03em;
}
body[data-page="live"] .sync-note {
  margin-bottom: 18px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.45;
}
body[data-page="live"] .filter-bar { margin-bottom: 16px; }
body[data-page="live"] .league-card { border-radius: 10px; margin-bottom: 14px; }
body[data-page="live"] .league-header { padding: 12px 16px; }


.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
}

.match-row:hover { background: var(--bg-tertiary); }

a.match-row.match-row--pro,
.match-row.match-row--pro {
  display: block;
  padding: 0;
  grid-template-columns: unset;
  gap: 0;
}

a.match-row.match-row--pro:hover,
.match-row.match-row--pro:hover {
  background: transparent;
}

.page-main { padding-top: 24px; padding-bottom: 40px; }

.match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.match-team.home { justify-content: flex-end; }
.match-team.away { justify-content: flex-start; }

.match-team.home .team-name { text-align: right; }

.team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-logo.lg { width: 48px; height: 48px; }
.team-logo.xl { width: 72px; height: 72px; }

.team-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-score {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 56px;
  justify-content: center;
}

.score-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.score-sep { color: var(--text-muted); font-size: 14px; }

.match-status {
  width: 44px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.match-status.live { color: var(--live-red); }
.match-status.ft { color: var(--text-muted); }
.match-status.scheduled { color: var(--text-secondary); }

.match-events-mini {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

/* Goal flash */
.goal-flash {
  animation: goalPulse 2s ease;
  color: var(--accent-green) !important;
}

@keyframes goalPulse {
  0% { transform: scale(1); color: var(--text-primary); }
  25% { transform: scale(1.4); color: var(--accent-green); }
  50% { transform: scale(1.2); color: var(--accent-green); }
  100% { transform: scale(1); color: var(--text-primary); }
}

.goal-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: block;
  background: var(--accent-green);
  color: #0a1628;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(45, 212, 168, 0.35);
  text-decoration: none;
  cursor: pointer;
}

.goal-toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45, 212, 168, 0.45);
}

.goal-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.goal-toast.visible:hover {
  transform: translateY(-2px);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius);
  padding: 12px 20px;
  box-shadow: 0 4px 24px rgba(0, 255, 135, 0.2);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  animation: toast-in 0.3s ease;
  max-width: 320px;
}

.toast.fade-out { animation: toast-out 0.3s ease forwards; }

@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* Quick league cards */
.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.league-link-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.league-link-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.league-link-card img { width: 40px; height: 40px; margin: 0 auto 8px; object-fit: contain; }
.league-link-card span { font-size: 13px; font-weight: 600; color: var(--text-primary); }

.league-link-card-wrap {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.league-link-card-wrap:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.league-link-card-wrap .league-link-card {
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.league-link-card-wrap .league-link-card:hover {
  border: none;
  transform: none;
  box-shadow: none;
}

.league-link-standings {
  display: block;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--accent-green);
}

.league-link-standings:hover {
  background: rgba(0, 255, 135, 0.06);
}

/* Article cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}

.article-card:hover {
  border-color: var(--accent-green-dim);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}

.article-card-media {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.article-img {
  height: 200px;
  background: var(--bg-tertiary);
  overflow: hidden;
  position: relative;
}

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

.article-img--crests,
.article-hero-media--crests {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b1220 0%, #111827 50%, #0f172a 100%);
}

.article-img-duo,
.article-hero-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 14px 12px;
  box-sizing: border-box;
}

.article-hero-duo {
  padding: 28px 24px;
  gap: 18px;
}

.article-crest-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.article-crest-side img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.article-hero-duo .article-crest-side img {
  width: 120px;
  height: 120px;
}

.article-crest-side span {
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-hero-duo .article-crest-side span {
  font-size: 14px;
}

.article-crest-vs {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: lowercase;
}

.article-hero-duo .article-crest-vs {
  font-size: 18px;
}

.article-hero--crests .article-hero-media--crests {
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.article-card-credit {
  padding: 7px 12px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-card-credit a {
  color: var(--text-secondary);
  text-decoration: none;
}

.article-card-credit a:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

.article-img-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 8px;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35));
}

.article-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--border));
}

.article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 16px;
  gap: 8px;
}

.article-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-green);
  background: rgba(45, 212, 168, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.18);
}

.article-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
}

.article-card:hover .article-title {
  color: var(--text-primary);
}

.article-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 4px;
}

.article-league {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
}

[data-page="news"] .article-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

[data-page="news"] .article-grid.is-loaded {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-items: stretch;
}

[data-page="news"] .article-grid.is-loaded.is-single {
  grid-template-columns: minmax(0, 420px);
}

@media (max-width: 640px) {
  .article-grid,
  [data-page="news"] .article-grid.is-loaded {
    grid-template-columns: 1fr;
  }

  [data-page="news"] .article-grid.is-loaded.is-single {
    grid-template-columns: 1fr;
  }
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--accent-green); border-bottom-color: var(--accent-green); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.wc-page-tabs .tab-btn { text-decoration: none; color: inherit; cursor: pointer; }

/* Match hero */
.match-hero {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.match-hero.live { border-color: rgba(0, 255, 135, 0.3); box-shadow: 0 4px 30px rgba(0, 255, 135, 0.1); }

.match-hero-league {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.match-hero-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.match-hero-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.match-hero-team h2 { font-size: 18px; font-weight: 700; color: var(--text-primary); }

.match-hero-score {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.match-hero-score.live { color: var(--accent-green); }

.match-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

/* Timeline */
.timeline { position: relative; padding-left: 24px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 12px 0 12px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
}

.timeline-item.home { flex-direction: row-reverse; text-align: right; }
.timeline-time { font-size: 12px; font-weight: 700; color: var(--accent-green); min-width: 36px; }
.timeline-icon { font-size: 16px; }
.timeline-text { font-size: 14px; color: var(--text-secondary); }

/* Stat bars */

.match-stats-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.match-stats-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.match-stats-team--away {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}

.match-stats-team img {
  flex-shrink: 0;
  object-fit: contain;
}

.match-stats-team-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-stats-team-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent-green);
  flex-shrink: 0;
}

.match-stats-team-dot--away {
  background: var(--accent-red);
}

.stat-metric {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 8px;
}

.stat-values--home {
  min-width: 48px;
  text-align: left;
  border-left: 3px solid var(--accent-green);
  padding-left: 8px;
}

.stat-values--away {
  min-width: 48px;
  text-align: right;
  border-right: 3px solid var(--accent-red);
  padding-right: 8px;
}


.stat-row { margin-bottom: 16px; }
.stat-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.stat-values { font-weight: 600; color: var(--text-primary); }

.stat-bar-track {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.stat-bar-home {
  background: var(--accent-green);
  transition: width var(--transition);
}

.stat-bar-away {
  background: var(--accent-red);
  transition: width var(--transition);
}

/* Lineups — spacious fresh pitch */
.match-lineups-pro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.lineups-pro-head { margin: 0; }
.lineups-pro-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.lineups-pro-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.lineup-pitch-unified {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1f14;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.lineup-pitch-band {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.lineup-pitch-band--home {
  background: linear-gradient(135deg, rgba(34, 139, 58, 0.35) 0%, rgba(15, 31, 20, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lineup-pitch-band--away {
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.3) 0%, rgba(15, 31, 20, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lineup-pitch-band__text { flex: 1; min-width: 0; }

.lineup-pitch-band__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2px;
}

.lineup-pitch-band__name {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.lineup-pitch-band__meta {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.lineup-pitch-band__rating {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  color: #0c1220;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lineup-pitch-field {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: min(52vh, 560px);
  max-height: 620px;
}

.lineup-pitch-unified--lr .lineup-pitch-band {
  flex-shrink: 0;
  border: none;
}

.lineup-pitch-unified--lr .lineup-pitch-band--home {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lineup-pitch-unified--lr .lineup-pitch-band--away {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pitch-half {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: linear-gradient(90deg, #2f7649 0%, #358252 50%, #3d8f5a 100%);
  overflow: hidden;
}

.pitch-half--away {
  background: linear-gradient(270deg, #2a6b42 0%, #2f7649 50%, #358252 100%);
}

.pitch-half-inner {
  position: relative;
  flex: 1;
  min-height: 0;
}

.pitch-midline {
  flex-shrink: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.pitch-half-lines {
  position: absolute;
  inset: 12px 8%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  pointer-events: none;
}

.pitch-box--half {
  position: absolute;
  top: 22%;
  bottom: 22%;
  width: 20%;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.pitch-half--home .pitch-box--half { left: 0; border-left: none; }
.pitch-half--away .pitch-box--half { right: 0; left: auto; border-right: none; }

.pitch-spot {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.pitch-half--home .pitch-spot { right: 20%; }
.pitch-half--away .pitch-spot { left: 20%; }

.sofa-pitch-players {
  position: absolute;
  inset: 8px 6% 12px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}



.pitch-formation-cols {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: clamp(6px, 1.5vw, 16px);
  padding: 0 4px;
}

.formation-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2.2vh, 20px);
  flex: 0 1 auto;
  min-width: 0;
  overflow: visible;
}

.pitch-player-avatar-wrap {
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

/* FotMob-style vertical lineup pitch */
.lineup-pitch-unified--vertical {
  background: #0a0f0d;
  border-radius: 18px;
  overflow: hidden;
}

.lineup-pitch-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 8px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lineup-pitch-meta__team {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lineup-pitch-meta__team:last-child { text-align: right; }

.lineup-pitch-unified--vertical .lineup-pitch-field {
  flex-direction: column;
  min-height: min(78vh, 780px);
  max-height: none;
}

.lineup-pitch-unified--vertical .pitch-midline {
  flex-shrink: 0;
  width: 100%;
  height: 2px;
  min-height: 2px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.lineup-pitch-unified--vertical .pitch-half {
  flex: 1;
  min-height: 0;
  background: #1a2f23;
}

.lineup-pitch-unified--vertical .pitch-half--away {
  background: #1a2f23;
}

.lineup-pitch-unified--vertical .pitch-half-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.lineup-pitch-unified--vertical .pitch-half-lines {
  position: absolute;
  left: 12%;
  right: 12%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  pointer-events: none;
}

.lineup-pitch-unified--vertical .pitch-half--home .pitch-half-lines {
  top: 10px;
  bottom: auto;
  height: 20%;
  border-bottom: none;
}

.lineup-pitch-unified--vertical .pitch-half--away .pitch-half-lines {
  bottom: 10px;
  top: auto;
  height: 20%;
  border-top: none;
}

.lineup-pitch-unified--vertical .pitch-box--goal {
  position: absolute;
  left: 28%;
  right: 28%;
  height: 42%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.lineup-pitch-unified--vertical .pitch-box--goal-top {
  top: 0;
  border-top: none;
}

.lineup-pitch-unified--vertical .pitch-box--goal-bottom {
  bottom: 0;
  border-bottom: none;
}

.lineup-pitch-unified--vertical .pitch-spot--penalty-top,
.lineup-pitch-unified--vertical .pitch-spot--penalty-bottom {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.lineup-pitch-unified--vertical .pitch-spot--penalty-top { top: 14%; }
.lineup-pitch-unified--vertical .pitch-spot--penalty-bottom { bottom: 14%; }

.lineup-pitch-unified--vertical .sofa-pitch-players {
  position: relative;
  inset: auto;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 6% 18px;
  min-height: 0;
}

.lineup-pitch-unified--vertical .pitch-formation-rows {
  width: 100%;
  max-width: 540px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: clamp(6px, 1.2vh, 12px);
}

.lineup-pitch-unified--vertical .formation-row {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-end;
  width: 100%;
  gap: clamp(2px, 1vw, 10px);
  flex-wrap: nowrap;
}

.lineup-pitch-unified--vertical .pitch-player-chip {
  max-width: 72px;
  gap: 4px;
}

.lineup-pitch-unified--vertical .pitch-player-avatar {
  width: 56px;
  height: 56px;
  border: 2.5px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.lineup-pitch-unified--vertical .pitch-player-name {
  max-width: 82px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
  border: none;
  border-radius: 6px;
  text-shadow: none;
  line-height: 1.2;
}

.pitch-player-badges {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 1px;
  z-index: 5;
  pointer-events: none;
}

.pitch-player-badge {
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.pitch-player-badge--yellow {
  width: 9px;
  height: 12px;
  border-radius: 2px;
  background: #f4d03f;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.pitch-player-badge--red {
  width: 9px;
  height: 12px;
  border-radius: 2px;
  background: #e74c3c;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.pitch-player-badge--sub {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pitch-player-badge--sub::before {
  content: '⇄';
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  color: #1a1a1a;
}

.pitch-player-rating-bottom {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  z-index: 4;
  min-width: 32px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #0c1220;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.92);
}

.pitch-player-rating-top {
  position: absolute;
  top: -4px;
  right: -8px;
  left: auto;
  z-index: 4;
}

.pitch-formation-rows {
  flex: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: clamp(10px, 2vh, 18px);
}

.pitch-formation-rows--home {
  justify-content: space-between;
}

.pitch-formation-rows--away {
  justify-content: space-between;
}

.formation-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(18px, 5vw, 36px);
  width: 100%;
  flex-wrap: nowrap;
}

.pitch-formation-grid {
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--pitch-cols, 5), minmax(0, 1fr));
  grid-template-rows: repeat(var(--pitch-rows, 4), minmax(0, 1fr));
  gap: clamp(14px, 3vh, 24px) clamp(10px, 2vw, 16px);
  padding: 4px 0;
  align-content: space-evenly;
  justify-items: center;
  align-items: center;
}

.pitch-formation-grid--home {
  align-content: space-between;
}

.pitch-formation-grid--away {
  align-content: space-between;
}

.pitch-grid-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  width: 100%;
  max-width: 72px;
  padding: 6px 4px 2px;
  justify-self: center;
  overflow: visible;
}

.pitch-grid-slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.pitch-grid-slot--multi .pitch-grid-slot-inner {
  gap: 6px;
}

.pitch-player-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-width: 64px;
  min-width: 0;
  margin: 0 auto;
  overflow: visible;
}

/* Legacy absolute nodes (unused) */
.pitch-player-node {
  position: static;
  transform: none;
  width: auto;
  max-width: 80px;
}

.pitch-player-rating-top {
  min-width: 30px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #0c1220;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.pitch-player-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a2d42;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.pitch-player-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pitch-player-photo.is-missing { opacity: 0; }

.pitch-player-jersey {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #2a4a62, #152535);
  pointer-events: none;
}

.pitch-player-photo:not(.is-missing) + .pitch-player-jersey { display: none; }

.pitch-player-name {
  display: block;
  width: 100%;
  max-width: 68px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(8, 14, 24, 0.88);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-elite { background: #69a7ff; }
.rating-great { background: #3ddc84; }
.rating-good { background: #8fd4a8; }
.rating-avg { background: #f4d03f; }
.rating-low { background: #f5a962; }
.rating-poor { background: #ff6b6b; color: #fff; }

.lineup-coaches-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.lineup-coaches-row .lineup-coach-away { text-align: right; }
.lineup-coaches-row strong { color: var(--text-primary); }

.lineup-benches-pro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lineup-bench-block {
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.lineup-bench-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lineup-bench-list { display: flex; flex-direction: column; gap: 6px; }

.lineup-bench-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  font-size: 13px;
}

.lineup-bench-item img { border-radius: 50%; }
.bench-rating, .pitch-team-rating {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #0c1220;
}

.sofa-lineups { width: 100%; }

@media (max-width: 768px) {
  .lineup-pitch-field { min-height: 720px; }
  .pitch-half { min-height: 320px; }
  .pitch-player-chip { flex-basis: 64px; max-width: 68px; }
  .pitch-player-avatar { width: 50px; height: 50px; }
  .lineup-benches-pro { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .lineup-pitch-field { min-height: 640px; }
  .pitch-half { min-height: 280px; }
  .sofa-pitch-players { inset: 18px 6%; }
  .pitch-player-avatar { width: 50px; height: 50px; }
  .pitch-player-name { font-size: 11px; max-width: 80px; }
}


.pitch-svg {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius);
}

.pitch-player {
  font-size: 9px;
  fill: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .sofa-pitch { min-height: 420px; }
  .pitch-player-node { width: 62px; }
  .pitch-player-photo-wrap, .pitch-player-photo { width: 44px; height: 44px; }
  .pitch-player-label { font-size: 10px; max-width: 72px; }
  .lineup-benches, .lineup-coaches-row { grid-template-columns: 1fr; }
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.data-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.data-table tbody tr:hover { background: var(--bg-tertiary); }

.data-table .pos { font-weight: 700; color: var(--text-muted); width: 32px; }
.data-table .team-cell { display: flex; align-items: center; gap: 8px; color: var(--text-primary); font-weight: 500; }
.data-table .pts { font-weight: 700; color: var(--accent-green); }

.data-table tr.cl { border-left: 3px solid #3b82f6; }
.data-table tr.relegation { border-left: 3px solid var(--accent-red); }

.form-dots { display: flex; gap: 3px; }
.form-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  font-size: 0;
}
.form-dot.W { background: var(--accent-green); }
.form-dot.D { background: var(--text-muted); }
.form-dot.L { background: var(--accent-red); }

/* Player cards */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.player-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
}

.player-card:hover { border-color: var(--accent-green-dim); }

.player-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.player-info h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.player-info p { font-size: 12px; color: var(--text-muted); }

/* Filters */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(45, 212, 168, 0.08);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-row { height: 52px; margin-bottom: 8px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 13px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .footer {
    padding: 28px 0 20px;
    margin-top: 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-brand {
    width: 100%;
    max-width: 320px;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 0;
  }

  .footer-links li {
    flex: 0 1 auto;
  }

  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
    line-height: 1.5;
  }
}

/* Team page — SofaScore-style layout */
.team-page { padding-top: 24px; padding-bottom: 40px; }

.team-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.team-hero-info h1 {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-hero-info p { color: var(--text-muted); font-size: 14px; }

.team-tabs { margin-bottom: 20px; }

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.team-main { min-width: 0; }

.team-sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-card-title {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  background: var(--bg-tertiary);
}

.team-link-more {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
  border-top: 1px solid var(--border);
}

.team-insight {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.featured-match-card {
  display: block;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.featured-match-card:hover { border-color: var(--accent-green-dim); color: inherit; }

.featured-match-card.is-live {
  border-color: rgba(255, 71, 87, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 71, 87, 0.1);
}

.featured-match-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.featured-match-date { margin-left: auto; }

.featured-match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
}

.featured-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  min-width: 0;
}

.featured-match-team span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.featured-match-team.away { order: 3; }

.featured-match-score,
.featured-match-score-wrap {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.featured-match-score.live,
.featured-match-score-wrap .match-score-split.is-live .match-score-num { color: var(--live-red); }

.featured-minute {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--live-red);
  margin-top: 4px;
}

.featured-match-foot {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.home-live-section {
  padding-top: 8px;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.home-content > #home-live-section.home-live-section:not(.wc-banner-live) {
  margin-bottom: 16px;
}



.home-live-compact {
  padding-top: 0;
  padding-bottom: 16px;
  margin-bottom: 8px;
  background: transparent;
}

.home-live-featured {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.home-live-featured .featured-match-card--hero {
  grid-column: 1 / -1;
}

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

.featured-match-card--hero .featured-match-score,
.featured-match-score-wrap {
  font-size: 48px;
}

.featured-match-card--hero .team-logo.lg {
  width: 56px;
  height: 56px;
}

.featured-match-card--hero .featured-match-team span {
  font-size: 16px;
}

.home-live-regular-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 4px 0 10px;
}

.home-live-regular-card {
  margin-bottom: 0;
}

.compact-fixtures { padding: 4px 0; }

.compact-fixture-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.compact-fixture-row:last-child { border-bottom: none; }
.compact-fixture-row:hover { background: var(--bg-tertiary); color: inherit; }

.compact-fixture-date {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.compact-fixture-teams { color: var(--text-primary); font-weight: 500; }

.compact-fixture-score {
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.compact-fixture-score.live { color: var(--live-red); }

.mini-standings { padding-bottom: 8px; }

.mini-standings-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.mini-standings-head a {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-green);
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.mini-table th,
.mini-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mini-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
}

.mini-table tr.highlight {
  background: rgba(45, 212, 168, 0.08);
}

.mini-table tr.highlight td { color: var(--text-primary); font-weight: 600; }

.mini-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mini-team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-cards.compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px;
}

.stat-cards.compact .stat-card { padding: 12px; }

.squad-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-green);
}

/* Error & empty states */
.error-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.error-icon { font-size: 32px; margin-bottom: 12px; }

.error-state p { color: var(--text-secondary); margin-bottom: 16px; }

.btn-retry {
  padding: 10px 24px;
  background: var(--accent-green);
  color: #080f1e;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-retry:hover { background: var(--accent-green-dim); }

/* Legal / static pages */
.legal-page { padding: 32px 16px 48px; max-width: 720px; }

.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 36px);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.legal-content { color: var(--text-secondary); line-height: 1.75; }

.legal-content h2 {
  color: var(--text-primary);
  font-size: 18px;
  margin: 28px 0 12px;
}

.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--accent-green); }

.contact-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-email-hero {
  max-width: 640px;
  margin: 0 auto 28px;
  padding: 28px 24px;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 135, 0.22);
  background:
    radial-gradient(ellipse 80% 80% at 50% -20%, rgba(0, 255, 135, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(17, 31, 53, 0.95) 0%, rgba(8, 15, 30, 0.98) 100%);
  text-align: center;
}

.contact-email-hero-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 10px;
}

.contact-email-link {
  display: inline-block;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  word-break: break-all;
}

.contact-email-link:hover { color: var(--accent-green); }

.contact-email-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.contact-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn-contact-email,
.btn-contact-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.btn-contact-email {
  background: var(--accent-green);
  color: #04120b;
  border: 1px solid var(--accent-green);
}

.btn-contact-email:hover {
  background: var(--accent-green-dim);
  border-color: var(--accent-green-dim);
  color: #04120b;
}

.btn-contact-copy {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-contact-copy:hover {
  border-color: rgba(0, 255, 135, 0.45);
  color: var(--accent-green);
}

.footer-email {
  margin-top: 10px;
  font-size: 14px;
}

.footer-email a {
  color: var(--accent-green);
  font-weight: 500;
}

.footer-email a:hover { color: var(--text-primary); }

/* Article page */
.article-page { max-width: 720px; margin: 0 auto; padding: 32px 16px; }
.article-page h1 { font-size: 32px; font-weight: 800; color: var(--text-primary); margin-bottom: 12px; line-height: 1.2; }
.article-hero {
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.article-hero-media {
  aspect-ratio: 16 / 9;
  max-height: 420px;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.article-hero-media img,
.article-hero img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  background: var(--bg-tertiary);
}
.article-hero figcaption,
.article-photo-credit {
  padding: 10px 14px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}
.article-photo-credit a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.article-photo-credit a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-muted);
}

.article-inline-figure {
  margin: 0 0 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}
.article-inline-figure img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  background: var(--bg-tertiary);
}
.article-inline-figure figcaption {
  padding: 10px 14px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.article-author { font-size: 14px; font-weight: 600; color: var(--accent-green); }
.article-author-role { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.article-page .article-meta { margin-bottom: 0; font-size: 13px; color: var(--text-muted); }
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.article-tag-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-green);
  background: rgba(45, 212, 168, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.18);
}
.article-content { font-size: 17px; line-height: 1.8; color: var(--text-secondary); }
.article-content p:first-of-type::first-letter {
  float: left;
  font-size: 3.5em;
  line-height: 0.85;
  padding-right: 8px;
  font-weight: 800;
  color: var(--accent-green);
}
.article-content p { margin-bottom: 16px; }
.article-content a {
  color: var(--accent-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover { color: var(--text-primary); }
.article-content h2 { color: var(--text-primary); margin: 24px 0 12px; }
.article-stats-box,
.article-read-more {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
}
.article-stats-box h2,
.article-read-more h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 14px;
}
.article-stats-box dl {
  display: grid;
  gap: 12px;
  margin: 0;
}
.article-stats-box dl div {
  display: grid;
  gap: 4px;
}
.article-stats-box dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-green);
}
.article-stats-box dd {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.article-read-more p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.article-read-more a {
  color: var(--accent-green);
  font-weight: 600;
}
.article-footer-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
}
.share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.share-buttons a {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
}
.share-buttons a:hover { border-color: var(--accent-green); color: var(--accent-green); }

/* World Cup */
.wc-banner {
  background: linear-gradient(135deg, #c8102e 0%, #003087 50%, #c8102e 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.wc-banner--home {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -30%, rgba(0, 255, 135, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 45% 50% at 0% 100%, rgba(200, 16, 46, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 45% 50% at 100% 100%, rgba(0, 48, 135, 0.22) 0%, transparent 55%),
    linear-gradient(165deg, #07111f 0%, #0c1a32 48%, #101828 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wc-banner--in-column {
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wc-banner--home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c8102e 0%, #003087 35%, #00ff87 50%, #003087 65%, #c8102e 100%);
}

.wc-banner--home::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
}

.wc-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 22px;
}

.wc-banner-head {
  text-align: center;
  margin-bottom: 22px;
}

.wc-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wc-banner-badge::before {
  content: '⚽';
  font-size: 14px;
  letter-spacing: 0;
}

.wc-banner-title {
  margin: 14px 0 0;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.wc-banner-meta {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.wc-banner-countdown {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wc-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.wc-countdown-part small {
  font-size: 0.55em;
  font-weight: 700;
  opacity: 0.85;
  margin-left: 1px;
}

.wc-countdown-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.wc-countdown--live {
  font-size: clamp(32px, 6vw, 44px);
}

.wc-banner-panel {
  margin: 0 auto;
  max-width: 860px;
}

.wc-upcoming-hero {
  display: block;
  padding: 20px 18px 22px;
  border-radius: 14px;
  background: rgba(6, 10, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  margin: 0 auto;
  max-width: 860px;
}

.wc-upcoming-hero-league {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
}

.wc-upcoming-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.wc-upcoming-hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  min-width: 0;
}

.wc-upcoming-hero-team img {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.wc-upcoming-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 110px;
  padding: 0 8px;
}

.wc-upcoming-hero-kick {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.wc-upcoming-hero-day {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.wc-upcoming-hero-countdown {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.02em;
  margin-top: 4px;
}


.wc-banner-upcoming-carousel {
  margin: 0 auto 20px;
  max-width: 860px;
}

.wc-upcoming-carousel-viewport {
  overflow: hidden;
  border-radius: 14px;
}

.wc-upcoming-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.wc-upcoming-carousel-slide:not(.is-active) {
  pointer-events: none;
  user-select: none;
}

.wc-upcoming-carousel-slide.is-active {
  pointer-events: auto;
}

.wc-upcoming-carousel-poll {
  position: relative;
  z-index: 3;
}

.match-poll.is-voting {
  opacity: 0.92;
}

.wc-upcoming-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wc-upcoming-carousel-slide .wc-upcoming-hero {
  margin: 0;
}

.wc-upcoming-carousel-poll {
  padding: 0 2px;
}

.wc-upcoming-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.wc-upcoming-carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wc-upcoming-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(0, 255, 135, 0.45);
}

.wc-upcoming-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-upcoming-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.wc-upcoming-carousel-dot.is-active {
  background: var(--accent-green);
  transform: scale(1.25);
}

.wc-banner-upcoming-carousel[hidden] {
  display: none !important;
}


.wc-banner-next {
  margin: 0 auto 18px;
  max-width: 860px;
  text-align: center;
}



.wc-banner-match-poll {
  margin: 0 auto 18px;
  max-width: 860px;
}

.wc-upcoming-carousel-poll {
  margin-top: 14px;
}

.match-poll {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.match-poll-head {
  margin-bottom: 10px;
}

.match-poll-copy {
  min-width: 0;
}

.match-poll-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.match-poll-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
}

.match-poll-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.match-poll-opt {
  position: relative;
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.match-poll-opt.is-pending {
  opacity: 0.7;
  cursor: wait;
}

.match-poll-opt:not(:disabled):hover {
  border-color: rgba(45, 212, 168, 0.55);
  background: rgba(45, 212, 168, 0.08);
  transform: translateY(-1px);
}

.match-poll--open {
  border-color: rgba(45, 212, 168, 0.24);
  box-shadow: 0 0 0 1px rgba(45, 212, 168, 0.06);
}

.match-poll--open .match-poll-sub {
  color: rgba(45, 212, 168, 0.88);
}

.match-poll--open .match-poll-opt {
  border-color: rgba(45, 212, 168, 0.42);
  background: rgba(45, 212, 168, 0.08);
  cursor: pointer;
  animation: matchPollPulse 2.8s ease-in-out infinite;
}

.match-poll--open .match-poll-opt:nth-child(2) {
  animation-delay: 0.35s;
}

.match-poll--open .match-poll-opt:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes matchPollPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 168, 0);
  }

  50% {
    box-shadow: 0 0 0 3px rgba(45, 212, 168, 0.14);
  }
}

.match-poll--open .match-poll-opt:not(:disabled):hover {
  border-color: var(--accent-green);
  background: rgba(45, 212, 168, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(45, 212, 168, 0.2);
  animation: none;
}

.match-poll--open .match-poll-fill {
  opacity: 0.32;
}

.match-poll--open .match-poll-pct {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 600;
}

.match-poll-vote-hint {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
  flex-shrink: 0;
}

.match-poll-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #0b1a14;
  background: var(--accent-green);
  flex-shrink: 0;
  line-height: 1;
}

.match-poll-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--poll-pct, 0) * 1%);
  background: linear-gradient(90deg, rgba(45, 212, 168, 0.34), rgba(45, 212, 168, 0.18));
  border-radius: 9px 0 0 9px;
  pointer-events: none;
}

.match-poll-opt-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
}

.match-poll-opt.has-result .match-poll-opt-body {
  justify-content: space-between;
  padding: 8px 12px 8px 10px;
}

.match-poll-opt img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.match-poll-draw-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1;
  flex-shrink: 0;
}

.match-poll-pct {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}


.match-poll-your-pick {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-green);
  flex-shrink: 0;
}

.match-poll--voted .match-poll-opt.is-selected {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 2px rgba(45, 212, 168, 0.45), 0 0 18px rgba(45, 212, 168, 0.22);
  opacity: 1;
  background: rgba(45, 212, 168, 0.12);
}

.match-poll--voted .match-poll-opt.is-selected .match-poll-fill {
  opacity: 1;
}

.match-poll--voted .match-poll-opt.is-selected .match-poll-pct {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.match-poll--voted .match-poll-sub {
  color: var(--accent-green);
}

.match-poll--voted .match-poll-opt:not(.is-selected) {
  opacity: 0.48;
}

.match-poll-opt.is-selected .match-poll-fill {
  background: linear-gradient(90deg, rgba(45, 212, 168, 0.52), rgba(45, 212, 168, 0.28));
}

.match-poll-options.is-voted .match-poll-opt {
  cursor: default;
}

.match-poll.is-voting {
  opacity: 0.88;
  pointer-events: none;
}

.wc-banner-match-poll[hidden] {
  display: none !important;
}

.wc-banner-next[hidden] {
  display: none !important;
}

.wc-next-match-label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.wc-banner-countdown.is-hidden {
  display: none;
}

@media (max-width: 520px) {
  .wc-upcoming-hero-body { gap: 8px; }
  .wc-upcoming-hero-kick { font-size: 22px; }
  .wc-upcoming-hero-countdown { font-size: 17px; }
  .wc-upcoming-hero-team { font-size: 13px; }
  .wc-upcoming-hero-team img { width: 32px; height: 32px; }
}


.wc-banner-results-strip {
  margin: 0 auto 18px;
  max-width: 860px;
}

.wc-banner-results-strip:empty,
.wc-banner-results-strip[hidden] {
  display: none;
}

.wc-banner-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wc-banner-results-head .wc-banner-schedule-label {
  margin-bottom: 0;
}

.wc-banner-results-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #3dd6c6);
  white-space: nowrap;
  text-decoration: none;
}

.wc-banner-results-all-link:hover {
  text-decoration: underline;
}

.wc-banner-results-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 720px) {
  .wc-banner-results-inner {
    grid-template-columns: 1fr;
  }
}

.wc-banner-skeleton {
  height: 168px;
  border-radius: 12px;
  opacity: 0.25;
}

.wc-banner-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
}

.wc-banner-schedule-label,
.wc-banner-live-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}

.wc-banner-schedule-label::before,
.wc-banner-schedule-label::after,
.wc-banner-live-head::before,
.wc-banner-live-head::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.wc-banner-live-head {
  color: #fff;
}

.wc-banner-fixtures {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wc-banner-match {
  display: grid;
  grid-template-columns: minmax(130px, 168px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(8, 15, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

/* SSR rows: teams/time on top, match info panel below */
.wc-banner-match:has(.wc-banner-match-top),
.wc-banner-match:has(.match-card-main) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.wc-banner-match-top {
  padding: 14px 16px 12px;
  min-width: 0;
}

.wc-banner-match-top .match-card-main,
.wc-banner-match:has(.match-card-main) .match-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  padding: 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
}

.wc-banner-match-top .match-card-side--home {
  justify-content: flex-end;
  justify-self: stretch;
}

.wc-banner-match-top .match-card-side--away {
  justify-content: flex-start;
  justify-self: stretch;
}

.wc-banner-match-top .match-card-center {
  justify-self: center;
  text-align: center;
  min-width: 54px;
  padding: 0 2px;
  flex-shrink: 0;
}

.wc-banner-match-top .match-card-center-primary {
  font-size: clamp(13px, 3.8vw, 18px);
}

.wc-banner-match-top .match-card-center-sub {
  font-size: 10px;
}

.wc-banner-match-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 16px 12px;
}

.wc-banner-match-foot .match-card-meta,
.wc-banner-match:has(.match-card-main) .match-card-meta {
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: none;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 8px 14px;
  color: rgba(255, 255, 255, 0.78);
}

.wc-banner-match .match-card-team-name {
  color: #fff;
  max-width: 42vw;
}

.wc-banner-match .match-card-center-primary,
.wc-banner-match .match-card-center-sub {
  color: rgba(255, 255, 255, 0.92);
}

.wc-banner-match .match-card-meta-item {
  color: rgba(255, 255, 255, 0.78);
}

.wc-banner-match-foot .big-match-badge,
.wc-banner-match-foot .wc-warmup-badge {
  flex-shrink: 0;
}

.wc-banner-match:hover {
  background: rgba(8, 15, 30, 0.72);
  border-color: rgba(0, 255, 135, 0.35);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.wc-banner-match.is-live {
  border-color: rgba(255, 71, 87, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 71, 87, 0.12), 0 8px 24px rgba(255, 71, 87, 0.08);
}

.wc-banner-match-time {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}

.wc-banner-match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wc-banner-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.wc-banner-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-banner-team img {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.wc-banner-team--home {
  justify-content: flex-end;
  text-align: right;
}

.wc-banner-team--away {
  justify-content: flex-start;
  text-align: left;
}

.wc-banner-vs {
  flex-shrink: 0;
  min-width: 36px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--accent-green);
}

.wc-banner-match-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.wc-banner-match:hover .wc-banner-match-cta {
  opacity: 1;
}

.wc-banner-live-grid {
  display: grid;
  gap: 12px;
}

.wc-banner-live-grid .featured-match-card--hero {
  background: rgba(8, 15, 30, 0.55);
  border-color: rgba(255, 71, 87, 0.45);
  border-radius: 12px;
}

.wc-banner-live-grid .featured-match-top,
.wc-banner-live-grid .featured-match-foot {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
}

.wc-banner-live-grid .featured-match-team span,
.wc-banner-live-grid .featured-match-score,
.featured-match-score-wrap {
  color: #fff;
}

.wc-banner-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  padding: 20px 12px;
}

.wc-quick-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.wc-quick-links a {
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.wc-quick-links a:hover {
  background: rgba(0, 255, 135, 0.14);
  border-color: rgba(0, 255, 135, 0.35);
  color: #fff;
}

.wc-quick-links-primary {
  background: rgba(0, 255, 135, 0.12);
  border-color: rgba(0, 255, 135, 0.28);
  color: var(--accent-green);
}


.home-wc-teams {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.home-wc-teams .section-title {
  font-size: 15px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.88);
}
.wc-team-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.wc-team-pill {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
}
.wc-team-pill:hover {
  background: rgba(0, 255, 135, 0.12);
  border-color: rgba(0, 255, 135, 0.3);
  color: #fff;
}
.home-wc-teams .section-view-all {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
}
.match-share-buttons {
  justify-content: center;
  margin-top: 14px;
}

.wc-quick-links-primary:hover {
  background: rgba(0, 255, 135, 0.22);
  color: #fff;
}

.match-squads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.match-squad-team h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.match-squad-team h3 span {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.match-squad-pos {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 14px 0 8px;
}

@media (max-width: 960px) {
  .wc-banner-inner {
    padding: 22px 14px 18px;
  }

  .wc-banner-match {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .wc-banner-match:has(.wc-banner-match-top) {
    padding: 0;
  }

  .wc-banner-panel {
    max-width: 100%;
    width: 100%;
  }

  .wc-banner-section {
    padding: 12px 10px;
  }

  .wc-banner-match-top {
    padding: 12px 12px 10px;
  }

  .wc-banner-match-top .match-card-main {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px 8px;
  }

  .wc-banner-match-top .match-card-side--home {
    justify-content: flex-end;
  }

  .wc-banner-match-top .match-card-side--away {
    justify-content: flex-start;
  }

  .wc-banner-match .match-card-team-name {
    font-size: clamp(11px, 3.4vw, 14px);
    max-width: 42vw;
    flex: 1 1 auto;
  }

  .wc-banner-match .match-card-side {
    gap: 6px;
  }

  .wc-banner-match .match-card-center {
    min-width: 58px;
    padding: 0 2px;
  }

  .wc-banner-match .match-card-center-primary {
    font-size: clamp(14px, 4vw, 18px);
  }

  .wc-banner-match-foot {
    padding: 10px 12px 12px;
  }

  .wc-banner-match-foot .match-card-meta {
    justify-content: center;
    gap: 6px 10px;
    font-size: 11px;
  }

  .wc-banner-match-time {
    font-size: 11px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .wc-banner-match-body {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .wc-banner-team {
    font-size: 13px;
  }

  .wc-banner-team--home img,
  .wc-banner-team--away img {
    width: 20px;
    height: 20px;
  }

  .wc-banner-match-cta,
  .wc-banner-match .live-badge {
    justify-self: start;
  }

  .match-squads-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wc-banner-match-top .match-card-main {
    gap: 4px 6px;
  }

  .wc-banner-match .match-card-team-name {
    max-width: 42vw;
    font-size: clamp(11px, 3.2vw, 13px);
  }

  .wc-banner-match .match-card-center {
    min-width: 52px;
  }

  .wc-banner-match-foot .match-card-meta-item {
    justify-content: center;
  }
}

.wc-banner h2 { font-size: clamp(22px, 4vw, 32px); color: #fff; margin-bottom: 8px; }
.wc-banner p { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 16px; }
.wc-hero {
  background: linear-gradient(180deg, rgba(200,16,46,0.15) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  margin-bottom: 24px;
}
.wc-hero-icon { font-size: 56px; margin-bottom: 12px; }
.wc-group-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  margin-bottom: 0;
  min-width: 0;
}

.wc-group-card--focus {
  border-color: rgba(0, 255, 135, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 255, 135, 0.12);
}

.wc-group-card .group-header {
  padding: 12px 16px;
  background: var(--bg-tertiary);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.wc-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

.group-standings-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0 0 var(--radius) var(--radius);
}

.group-standings-table {
  width: 100%;
  min-width: 340px;
  border-collapse: collapse;
  table-layout: fixed;
}

.group-standings-table .col-pos { width: 32px; }
.group-standings-table .col-team { width: auto; }
.group-standings-table .col-stat { width: 36px; }

.group-standings-table thead th {
  padding: 10px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}

.group-standings-table thead th:nth-child(2) {
  text-align: left;
  padding-left: 10px;
  padding-right: 8px;
}

.group-standings-table tbody td {
  padding: 11px 4px;
  font-size: 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}

.group-standings-table tbody td:nth-child(2) {
  text-align: left;
  padding-left: 10px;
  padding-right: 8px;
  white-space: normal;
}

.group-standings-table tbody tr:last-child td {
  border-bottom: none;
}

.group-standings-table tr.leader {
  background: rgba(255, 255, 255, 0.03);
}

.group-standings-table tr.qualified {
  background: rgba(0, 255, 135, 0.05);
}

.group-standings-table tr.qualified td:first-child {
  box-shadow: inset 3px 0 0 var(--accent-green);
}

.group-standings-table tr.highlight {
  background: rgba(45, 212, 168, 0.08);
}

.group-standings-table td.pos {
  color: var(--text-muted);
  font-weight: 600;
}

.group-standings-table td.pts {
  color: var(--accent-green);
  font-weight: 700;
}

.group-standings-table .team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.group-standings-table .team-cell img {
  flex-shrink: 0;
}

.group-standings-table .team-cell a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.wc-all-groups-title {
  margin: 24px 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wc-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

.breaking-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  margin-right: 6px;
}

.wc-team-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: all var(--transition);
}

.wc-team-card--squad { text-align: left; }
.wc-team-card-link {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.wc-team-card-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
}
.wc-squad-status {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.wc-squad-count {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 600;
}
.wc-squad-details {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.wc-squad-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.wc-squad-preview {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.wc-squad-pos h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.wc-squad-pos ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wc-squad-pos li {
  font-size: 12px;
  padding: 3px 0;
  color: var(--text-secondary);
}
.wc-squad-pos li a { color: var(--text-primary); text-decoration: none; }
.wc-squad-pos li a:hover { color: var(--accent-green); }
.wc-squad-pos li span { color: var(--text-muted); margin-left: 4px; }
.wc-squad-more { color: var(--text-muted); font-style: italic; }

.wc-team-card:hover { border-color: var(--accent-green); transform: translateY(-2px); }
.wc-team-card img { width: 48px; height: 48px; margin: 0 auto 8px; object-fit: contain; }
.wc-team-card-link img { margin-left: auto; margin-right: auto; }
.wc-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.wc-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.wc-info-card .val { font-size: 20px; font-weight: 800; color: var(--accent-green); }
.wc-info-card .lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* H2H badges */
.h2h-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.h2h-badge {
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.h2h-badge .num { font-size: 24px; font-weight: 800; color: var(--text-primary); }
.h2h-badge .lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.team-grid-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.team-grid-item:hover { border-color: var(--accent-green); }
.team-grid-item img { width: 40px; height: 40px; margin: 0 auto 8px; object-fit: contain; }
.team-grid-item span { font-size: 11px; color: var(--text-secondary); display: block; }

/* Player hero */
.player-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.player-hero-photo { width: 120px; height: 120px; border-radius: var(--radius); object-fit: cover; background: var(--bg-tertiary); }
.player-hero-info h1 { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.player-hero-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--text-muted); }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat-card .val { font-size: 28px; font-weight: 800; color: var(--accent-green); }
.stat-card .lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Mobile */
.transfer-card { margin-bottom: 8px; }
.transfer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--bg-tertiary);
}
.transfer-clubs { margin-top: 4px; }
.transfer-out { color: var(--accent-red); }
.transfer-in { color: var(--accent-green); }
.transfer-arrow { margin: 0 6px; color: var(--text-muted); }
.transfer-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 768px) {
  .nav {
    overflow: visible;
  }

  .nav-inner {
    position: relative;
  }

  .nav-toggle {
    position: relative;
    z-index: 111;
    padding: 6px 8px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 110;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }

  body:has(.wc-groups-ticker) .nav-links {
    top: calc(var(--nav-height) + var(--wc-groups-ticker-height));
  }

  body:has(.wc-groups-ticker):has(.ticker-bar) .nav-links,
  body:has(.ticker-bar) .nav-links {
    top: calc(var(--nav-height) + var(--wc-groups-ticker-height) + var(--ticker-height));
  }

  body:has(.ticker-bar):not(:has(.wc-groups-ticker)) .nav-links {
    top: calc(var(--nav-height) + var(--ticker-height));
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .nav-search-form {
    display: none;
  }

  .nav-search-mobile-link {
    display: list-item;
  }

  .nav-item-has-dropdown {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    display: none;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    background: var(--bg-tertiary);
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-item-has-dropdown.is-open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    white-space: normal;
  }

  .search-hero {
    padding: 28px 16px 24px;
  }

  .search-bar--lg input {
    height: 52px;
    font-size: 16px;
  }

  .match-row:not(.match-row--pro) {
    grid-template-columns: 1fr auto 1fr;
  }

  .match-status { grid-column: 1 / -1; text-align: center; margin-top: 4px; }

  .match-hero-teams { grid-template-columns: 1fr; gap: 12px; }
  .match-hero-score { order: -1; }

  .player-hero { flex-direction: column; text-align: center; }
  .player-hero-meta { justify-content: center; }

  .footer-inner { flex-direction: column; }

  .team-layout { grid-template-columns: 1fr; }
  .featured-match-body {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    padding: 18px 12px;
  }
  .featured-match-team.away { order: 3; }
  .featured-match-score-wrap { order: 0; }
  .featured-match-team span {
    font-size: clamp(11px, 3.2vw, 14px);
  }
  .featured-match-card--hero .featured-match-body { padding: 20px 12px; }
}

/* Match page — SofaScore-style layout */
.match-page { padding-top: 20px; padding-bottom: 48px; }

.match-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.match-breadcrumbs a { color: var(--text-secondary); }
.match-breadcrumbs a:hover { color: var(--accent-green); }
.match-breadcrumbs .sep { opacity: 0.5; }

.match-page-header {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.match-page-header.is-live {
  border-color: rgba(0, 255, 135, 0.35);
  box-shadow: 0 4px 30px rgba(0, 255, 135, 0.08);
}

.match-page-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.match-page-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.match-page-status {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.match-page-status.live { background: rgba(0, 255, 135, 0.15); color: var(--accent-green); }
.match-page-status.ft { background: rgba(255, 255, 255, 0.08); }

.match-page-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.match-page-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.match-page-team h1,
.match-page-team-name {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0;
}

.match-page-score {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  text-align: center;
}



/* Live match clock — minutes:seconds, hero size */
.match-live-clock-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 4px 0 14px;
  padding: 12px 16px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 255, 135, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid rgba(0, 255, 135, 0.15);
}

.match-live-clock-hero.is-hidden { display: none; }

.match-live-clock-phase {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.match-live-clock-time {
  font-size: clamp(44px, 10vw, 72px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-green);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 24px rgba(0, 255, 135, 0.25);
}

.match-live-clock-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-score-badge--spacer {
  visibility: hidden;
  min-width: 48px;
  padding: 0 8px;
}

.match-page-status.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-green);
  font-weight: 700;
}

.match-page-score-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-page-score-wrap.live .match-score-num,
.match-page-score.live { color: var(--accent-green); }

.match-page-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.match-page-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.match-sidebar { display: flex; flex-direction: column; gap: 14px; }

.match-sidebar .sidebar-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.match-status-card { text-align: center; }

.match-status-badge {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--bg-tertiary);
}

.match-status-badge.live { color: var(--accent-green); background: rgba(0, 255, 135, 0.12); }
.match-status-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.match-info-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.match-info-row strong,
.match-info-row a {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  text-decoration: none;
}

.match-info-row a:hover { color: var(--accent-green); }

.match-info-row small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.match-info-icon { font-size: 18px; line-height: 1.2; }

.match-team-links { display: flex; flex-direction: column; gap: 8px; }
.match-team-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue, #4da3ff);
  text-decoration: none;
}

.match-main {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 0 24px;
  overflow: hidden;
}

.match-tabs {
  padding: 0 16px;
  margin-bottom: 0;
  background: var(--bg-secondary);
}

.match-main .tab-panel {
  padding: 20px 16px 0;
}

.match-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.match-highlights-tab {
  padding: 4px 0 8px;
}

.match-highlights-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.tab-btn-highlights[hidden] {
  display: none;
}

.match-highlights-card {
  margin: 24px 16px 0;
  padding: 20px;
  border-top: 1px solid var(--border);
  background: transparent;
}

.match-highlights-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.match-highlights-source {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.match-highlights-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.match-highlights-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.match-highlights-meta {
  margin-top: 12px;
  font-size: 14px;
}

.match-highlights-meta a {
  color: var(--text-secondary);
  text-decoration: none;
}

.match-highlights-meta a:hover {
  color: var(--accent);
}

.about-match-card {
  margin: 24px 16px 0;
  padding: 20px;
  border-top: 1px solid var(--border);
  background: transparent;
}

.about-match-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.about-match-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.match-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.match-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.match-breadcrumbs a:hover {
  color: var(--accent);
}

.match-seo-title {
  width: 100%;
  margin: 12px 0 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.match-ssr-fallback + .skeleton {
  display: none;
}

.cookie-notice {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  z-index: 9999;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-notice a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-notice-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 640px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
  }
}

.about-match-extra {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.about-match-extra.open { display: block; }

.about-preview-link a {
  color: var(--accent-green);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.show-more-btn {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--accent-blue, #4da3ff);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.lineup-team-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 15px;
}

.lineup-coach,
.lineup-bench {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.standings-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 960px) {
  .match-page-layout { grid-template-columns: 1fr; }
  .match-sidebar { order: 2; }
  .match-main { order: 1; }
  .match-page-header .match-events-bar { margin: 0; }
}

.sidebar-live-score {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
}

.sidebar-rank-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sidebar-rank-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-tertiary);
}

.sidebar-rank-row strong { font-size: 18px; color: var(--text-primary); }

.season-stats-section { margin-bottom: 8px; }

.season-stats-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.season-stats-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.season-team-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.season-team-head small { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.season-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.season-stat-row {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 8px;
}

.season-stat-home,
.season-stat-away {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.season-stat-home { text-align: right; }
.season-stat-away { text-align: left; }

.season-stat-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.season-form-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.season-form-row > div { text-align: center; }
.season-form-vs { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.form-label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }

.live-match-stats {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.tab-loading {
  padding: 8px 0 20px;
}

.match-notice-loading {
  align-items: flex-start;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent, #22c55e);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
  margin-top: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.lineups-fallback {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lineups-fallback .match-notice div p {
  margin: 0 0 8px;
}

.lineups-fallback .match-notice div p:last-child {
  margin-bottom: 0;
}

.lineups-fallback-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.lineups-fallback-events {
  margin-top: 4px;
}

.lineups-fallback-timeline {
  margin-top: 8px;
}

/* ── Home media layout (70% content / 30% scores) ── */
.home-media {
  padding-bottom: 32px;
}

.home-breaking-wrap {
  padding-top: 20px;
  padding-bottom: 8px;
}

.breaking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.breaking-hero:hover {
  border-color: var(--accent-green);
  transform: translateY(-1px);
}

.breaking-hero-media {
  min-height: 280px;
  background: var(--bg-primary);
}

.breaking-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.breaking-hero-placeholder {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.breaking-hero-body {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.breaking-hero-title {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
}

.breaking-hero-excerpt {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.breaking-hero-skeleton {
  height: 280px;
  border-radius: 16px;
}

.home-articles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-body-section {
  padding-top: 8px;
}

.home-scores-section {
  border-top: none;
  padding-top: 0;
}

.home-standings-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

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

.home-standings-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.home-standings-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin: 0 0 12px;
}

.home-standings-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-standings-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.home-standings-list li span:first-child {
  width: 20px;
  color: var(--text-muted);
  font-weight: 600;
}

.home-standings-list li strong {
  margin-left: auto;
}

.home-standings-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
}

.news-page-grid {
  margin-top: 16px;
}

.news-type-filter {
  flex-wrap: wrap;
}


/* ── Home National Team section ── */
.home-national-section {
  margin-top: 8px;
}

.home-national-section .section-header {
  margin-bottom: 10px;
}

.home-national-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.home-national-card .match-card:last-child {
  border-bottom: none;
}

/* ── Home newspaper edition (latest 3) ── */
.home-news-section--newspaper {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.section-header--newspaper {
  align-items: baseline;
  border-bottom: none;
  margin-bottom: 0;
}

.np-more-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
}

.np-more-link:hover {
  color: var(--accent-green);
}

.home-newspaper-wrap {
  margin-top: 8px;
}

.home-newspaper {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.np-masthead {
  padding: 14px 20px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.np-masthead-rule {
  height: 1px;
  background: var(--border);
}

.np-masthead-rule--heavy {
  height: 3px;
  background: var(--text-primary);
  margin-top: 10px;
}

.np-masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0 8px;
}

.np-masthead-label {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.np-masthead-date {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.np-edition {
  padding: 0 20px 18px;
}

.np-story-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.np-story-link:hover .np-story-headline {
  color: var(--accent-green);
}

.np-story--lead {
  padding: 18px 0 16px;
  border-bottom: 2px solid var(--text-primary);
}

.np-story--lead .np-story-link {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.np-story--lead .np-story-headline {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 10px;
}

.np-story--lead .np-story-dek {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.np-photo {
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border);
}

.np-story--lead .np-photo {
  aspect-ratio: 16 / 10;
}

.np-story--lead .np-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.np-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  min-height: 180px;
}

.np-story-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 8px;
}

.np-story-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.np-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.np-story--secondary {
  padding: 16px 18px 14px 0;
  border-right: 1px solid var(--border);
}

.np-story--secondary:last-child {
  padding-left: 18px;
  padding-right: 0;
  border-right: none;
}

.np-story--secondary .np-story-headline {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 8px;
}

.np-story--secondary .np-story-dek {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.np-skeleton {
  height: 420px;
  border-radius: 4px;
}

.np-empty {
  padding: 32px 16px;
}

@media (max-width: 960px) {
  .breaking-hero {
    grid-template-columns: 1fr;
  }
  .breaking-hero-body {
    padding: 0 20px 20px;
  }
  .home-articles-grid,
  .home-standings-grid {
    grid-template-columns: 1fr;
  }
  .np-story--lead .np-story-link {
    grid-template-columns: 1fr;
  }
  .np-secondary-row {
    grid-template-columns: 1fr;
  }
  .np-story--secondary {
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .np-story--secondary:last-child {
    padding-left: 0;
    border-bottom: none;
  }
}


/* Split scoreboard — mockup style */
.match-score-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.match-score-split.is-live .match-score-num { color: var(--live-red); }

.match-score-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 28px;
  text-align: center;
}

.match-score-split--lg .match-score-num { font-size: 40px; min-width: 36px; }
.match-score-split--sm .match-score-num { font-size: 22px; min-width: 22px; }

.match-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.match-score-badge.is-live {
  background: rgba(255, 71, 87, 0.18);
  color: #ff8f9a;
  border-color: rgba(255, 71, 87, 0.35);
}

.match-score-badge.is-ft {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.match-score-kickoff {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.featured-match-score-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.featured-match-body .match-score-split--lg .match-score-num {
  font-size: clamp(34px, 6vw, 48px);
}

.featured-match-body .match-score-badge {
  font-size: 12px;
  padding: 6px 14px;
}

/* Horizontal events bar — home left, ball center, away right */
.match-events-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
  margin: 0 16px 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.match-score-periods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 0 16px 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.match-score-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  line-height: 1.2;
}
.match-score-period-label {
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
}
.match-score-period-value {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.match-events-bar--compact {
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: rgba(8, 14, 26, 0.55);
}

.featured-match-card .match-events-bar {
  margin: 0 16px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.match-events-bar-side {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.match-events-bar-side--home {
  align-items: flex-start;
  text-align: left;
}

.match-events-bar-side--away {
  align-items: flex-end;
  text-align: right;
}

.match-events-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  word-break: break-word;
}

.match-events-bar-icon {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
}

.match-events-bar-text {
  min-width: 0;
}

.match-events-bar-side--away .match-events-bar-item {
  flex-direction: row-reverse;
  text-align: right;
}


.match-events-bar-icon--ball {
  font-size: 14px;
  line-height: 1;
}

.match-events-bar-icon--card {
  width: 9px;
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.match-events-bar-icon--yellow {
  background: #facc15;
}

.match-events-bar-icon--red {
  background: #f87171;
}

.match-row.match-row--pro {
  display: flex;
  flex-direction: column;
}

.match-row.match-row--pro .match-card-main { order: 1; }
.match-row.match-row--pro .match-events-bar,
.match-row.match-row--pro .match-highlights-section { order: 2; width: 100%; }
.match-row.match-row--pro .match-card-meta { order: 3; }

.match-page-score-wrap.live .match-score-num,
.match-page-header.is-live .match-score-split.is-live .match-score-num {
  color: var(--live-red);
}

.match-page-header .match-highlights-section {
  width: 100%;
}

@media (max-width: 960px) {
  .match-page-header { padding: 16px; }
  .match-page-teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }
  .match-page-score-wrap { order: 0; }
  .match-page-team-name {
    font-size: clamp(11px, 3.2vw, 16px);
    line-height: 1.2;
  }
  .match-page-team .team-logo.xl {
    width: clamp(40px, 12vw, 56px);
    height: clamp(40px, 12vw, 56px);
  }
}

@media (max-width: 640px) {
  .match-page-header { padding: 14px 12px; border-radius: 12px; }
  .match-page-header-top { margin-bottom: 12px; }
  .match-page-meta {
    gap: 10px 12px;
    font-size: 11px;
    justify-content: flex-start;
  }
  .match-events-bar,
  .match-page-header .match-events-bar,
  .featured-match-card .match-events-bar {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    gap: 10px 12px;
  }
  .match-events-bar-item {
    font-size: clamp(11px, 3.1vw, 13px);
    gap: 5px;
  }
  .match-events-bar-icon--card {
    width: 8px;
    height: 12px;
  }
  .featured-match-body {
    padding: 16px 12px;
  }
  .featured-match-card .featured-match-top,
  .featured-match-card .featured-match-foot {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 380px) {
  .match-page-teams { gap: 6px; }
  .match-score-split--lg .match-score-num { font-size: 28px; }
  .match-score-badge { max-width: 72px; white-space: normal; text-align: center; line-height: 1.2; }
  .match-events-bar-side { gap: 4px; }
}

.match-events-bar-item--goal { color: #e8fff6; }
.match-events-bar-item--yellow { color: #facc15; }
.match-events-bar-item--red { color: #f87171; }

.match-highlights-section {
  margin-top: 16px;
}

.match-page-header .match-highlights-section {
  margin-top: 14px;
}

.match-page-header .match-events-bar {
  margin: 0;
}

.match-events-bar--waiting {
  min-height: 44px;
}

.match-events-bar-loading {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.featured-match-card .match-events-bar--waiting,
.match-card .match-events-bar--waiting {
  min-height: 40px;
}


.match-card .match-events-bar--compact {
  margin-top: 0;
}

@media (max-width: 640px) {
  .match-score-split {
    gap: 8px;
  }

  .match-score-num {
    font-size: 24px;
  }

  .match-score-split--lg .match-score-num {
    font-size: 32px;
  }

  .match-score-badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  .match-events-bar {
    margin: 0 12px 10px;
    padding: 10px 12px;
    gap: 8px;
  }

  .match-events-bar-item {
    font-size: 12px;
  }


  .featured-match-card .match-events-bar {
    margin: 0 12px 10px;
  }
}

@media (max-width: 420px) {
  .match-events-bar {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }

  .match-events-bar-item {
    font-size: 11px;
  }
}

/* Match event highlights — goals & cards */
.match-highlights-strip {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72));
}

.match-page-header.is-live .match-highlights-strip {
  border-color: rgba(45, 212, 168, 0.28);
  box-shadow: 0 0 0 1px rgba(45, 212, 168, 0.08);
}

.match-highlights-strip-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.match-highlights-strip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-event-chip {
  display: grid;
  grid-template-columns: 52px 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.match-event-chip--goal {
  border-color: rgba(45, 212, 168, 0.35);
  background: rgba(45, 212, 168, 0.08);
}

.match-event-chip--yellow {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.08);
}

.match-event-chip--red {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
}

.match-event-chip-time {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
}

.match-event-chip--yellow .match-event-chip-time { color: #facc15; }
.match-event-chip--red .match-event-chip-time { color: #f87171; }

.match-event-chip-icon {
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.match-event-chip-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.match-event-chip-player {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.match-event-chip-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.match-events-timeline .timeline-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.match-events-timeline .timeline-player {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.match-events-timeline .timeline-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.timeline-item--goal::before { border-color: var(--accent-green); background: rgba(45, 212, 168, 0.18); }
.timeline-item--yellow::before { border-color: #facc15; background: rgba(250, 204, 21, 0.18); }
.timeline-item--red::before { border-color: #f87171; background: rgba(248, 113, 113, 0.18); }

.match-events-live-mini,
.match-row .match-events-bar {
  grid-column: 1 / -1;
}

.match-events-live-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.match-event-mini {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.match-event-mini-time {
  flex: 0 0 auto;
  min-width: 34px;
  font-weight: 800;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
}

.match-event-mini--yellow .match-event-mini-time { color: #facc15; }
.match-event-mini--red .match-event-mini-time { color: #f87171; }

.match-event-mini-text {
  color: var(--text-secondary);
}

.match-event-mini-text strong {
  color: var(--text-primary);
}

.match-event-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: min(92vw, 420px);
  line-height: 1.35;
}

.match-event-toast-minute {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.match-event-toast-label {
  opacity: 0.92;
  font-weight: 600;
}

.match-event-toast--yellow {
  background: #facc15;
  color: #1a1400;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.35);
}

.match-event-toast--red {
  background: #f87171;
  color: #2a0707;
  box-shadow: 0 4px 20px rgba(248, 113, 113, 0.35);
}

@media (max-width: 640px) {
  .match-highlights-strip {
    padding: 12px;
  }

  .match-event-chip {
    grid-template-columns: 46px 24px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .match-event-chip-player {
    font-size: 14px;
  }

  .match-event-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .goal-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

.wc-warmup-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-bottom: 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #080f1e;
  background: linear-gradient(135deg, #00ff87, #ffd700);
}
.wc-banner-section--warmup .wc-banner-schedule-label {
  color: #00ff87;
}
.wc-banner-match--warmup,
.match-row--warmup {
  border: 1px solid rgba(0, 255, 135, 0.25);
  background: linear-gradient(180deg, rgba(0, 255, 135, 0.08), rgba(13, 24, 41, 0.2));
}

/* Big match highlighting */
.big-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.big-match-badge--big {
  background: rgba(255, 193, 7, 0.16);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.35);
}
.big-match-badge--elite {
  background: rgba(255, 87, 34, 0.18);
  color: #ff8a65;
  border: 1px solid rgba(255, 87, 34, 0.4);
}
.big-match--featured,
.match-card.big-match--featured,
.match-row.big-match--featured {
  border-color: rgba(255, 193, 7, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.12);
}
.big-match--elite,
.match-card.big-match--elite,
.match-row.big-match--elite,
.featured-match-card.big-match--elite {
  border-color: rgba(255, 87, 34, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 87, 34, 0.18), 0 8px 24px rgba(255, 87, 34, 0.08);
}
.home-big-matches-section {
  margin-bottom: 24px;
}
.home-big-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.home-big-match-card {
  display: block;
  padding: 12px;
  border-radius: 12px;
  background: var(--card-bg, rgba(255,255,255,0.03));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  text-decoration: none;
  color: inherit;
}
.home-big-match-card.is-live {
  border-color: rgba(239, 68, 68, 0.35);
}
.live-big-section {
  margin-bottom: 20px;
}
.live-regular-head {
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0 12px;
  opacity: 0.85;
}
.push-alerts-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), rgba(59, 130, 246, 0.12));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.push-alerts-bar[hidden] { display: none !important; }
.push-alerts-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}
.push-alerts-copy strong { font-size: 13px; }
.push-alerts-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  background: #22c55e;
  color: #041407;
}
.push-alerts-dismiss {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.home-live-national-block { margin-bottom: 16px; }
.home-live-national-head {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #34d399;
}
.home-live-featured--national {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.home-live-top-leagues-block { margin-top: 8px; }

.home-pinned-matches {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.home-pinned-matches .match-card {
  border-left: 3px solid #34d399;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}


/* Live match highlight — national team + homepage rows */
.match-row--live,
.match-card.match-row--live {
  position: relative;
}
.match-row--live-national,
.match-card.match-row--live-national,
.featured-match-card.is-live-national {
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35), 0 0 24px rgba(34, 197, 94, 0.12);
  border-radius: 12px;
}
.match-row--live-national::before,
.match-card.match-row--live-national::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.25);
}
.featured-match-card.is-live-national.is-live {
  animation: live-national-pulse 2.4s ease-in-out infinite;
}
@keyframes live-national-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4), 0 0 20px rgba(34, 197, 94, 0.15); }
  50% { box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.65), 0 0 32px rgba(34, 197, 94, 0.28); }
}
.home-live-section .featured-match-card.is-live-national {
  grid-column: 1 / -1;
}

/* Match page SSR audience blocks */
.match-facts-dl { display: grid; gap: 0.35rem 1rem; grid-template-columns: auto 1fr; margin: 0.5rem 0 1rem; }
.match-facts-dl dt { font-weight: 600; opacity: 0.85; }
.match-facts-dl dd { margin: 0; }
.match-ssr-fallback { margin: 1rem 0; }
.match-form-list, .match-fixtures-list { margin: 0.5rem 0 1rem; padding-left: 1.2rem; }
.match-youtube-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; margin: 0.75rem 0; }
.match-youtube-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.match-api-policy-note { font-size: 0.9rem; opacity: 0.85; }
.match-search-hint { font-size: 0.92rem; opacity: 0.9; }

/* World Cup fixtures sidebar (replaces league list) */
.wc-sidebar-fixtures-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wc-sidebar-more-link {
  display: block;
  margin-top: 8px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--accent-green);
}
.wc-sidebar-more-link:hover {
  color: var(--accent-green-dim, var(--accent-green));
}
.wc-sidebar-fixture {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 10px;
  background: var(--surface-2, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.wc-sidebar-fixture:hover {
  background: var(--surface-3, rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.14);
}
.wc-sidebar-fixture.is-live {
  border-color: rgba(239, 68, 68, 0.45);
}
.wc-sidebar-fixture-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}
.wc-sidebar-fixture-top time {
  font-weight: 600;
  white-space: nowrap;
}
.wc-sidebar-fixture-group {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent, #22c55e);
  background: rgba(34, 197, 94, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.wc-sidebar-fixture-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
.wc-sidebar-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.wc-sidebar-team--away {
  justify-content: flex-end;
  text-align: right;
}
.wc-sidebar-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-sidebar-team img {
  flex-shrink: 0;
  object-fit: contain;
}
.wc-sidebar-score {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  text-align: center;
}
.wc-sidebar-fixture.is-live .wc-sidebar-score {
  color: #f87171;
}
.wc-sidebar-live {
  font-size: 10px;
  font-weight: 700;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 4px;
}
.leagues-sidebar .wc-sidebar-fixtures-list {
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding-right: 2px;
}


/* FIFA World Cup unified banner (live + warm-ups inside) */
.wc-banner-section--fifa {
  border-color: rgba(0, 255, 135, 0.22);
  background: linear-gradient(145deg, rgba(8, 20, 40, 0.92), rgba(12, 28, 52, 0.88));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.wc-banner-subsection--warmup {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.wc-banner-subsection--warmup .wc-banner-schedule-label {
  color: rgba(255, 220, 120, 0.85);
  font-size: 10px;
}
.wc-banner-match--warmup {
  border-color: rgba(255, 200, 80, 0.25);
  background: rgba(20, 18, 8, 0.45);
}
.wc-banner-match--warmup.is-live {
  border-color: rgba(255, 200, 80, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 200, 80, 0.15), 0 8px 24px rgba(255, 180, 50, 0.1);
}

/* Homepage: big matches pinned above schedule */
.home-big-matches-section {
  margin-bottom: 20px;
}
.home-big-match-card.is-live {
  animation: live-national-pulse 2.4s ease-in-out infinite;
}

/* Today tab — inline live list */
.home-live-inline-grid {
  display: grid;
  gap: 10px;
}
.home-live-inline-grid .match-row--live,
.home-live-inline-grid .match-row--live-national {
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.45), 0 4px 20px rgba(34, 197, 94, 0.15);
}

/* General live row pulse on homepage */
#today-matches .match-row--live,
.home-live-regular-card .match-row--live {
  border-left: 3px solid var(--accent-live, #22c55e);
  background: rgba(34, 197, 94, 0.06);
}

/* Home — recent results below FIFA banner */
.home-results-section {
  margin-bottom: 20px;
}

.home-results-section .section-header {
  margin-bottom: 12px;
}

.section-header .section-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
  text-decoration: none;
  white-space: nowrap;
}

.section-header .section-view-all:hover {
  color: var(--accent-green-dim);
}

.home-results-list-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px 12px;
}

.home-results-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.home-results-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.home-results-row:hover {
  background: var(--bg-primary);
  border-color: rgba(0, 255, 135, 0.35);
}

.home-results-row.is-live {
  border-color: rgba(255, 68, 68, 0.45);
}

.home-results-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-muted);
}

.home-results-row-league {
  text-align: right;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-results-row-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.home-results-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}

.home-results-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-results-team--away {
  justify-content: flex-end;
  text-align: right;
}

.home-results-team img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.home-results-score {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
}

.home-results-ft {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.home-results-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #ff6b6b;
}

.home-results-empty {
  margin: 0;
  padding: 20px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .home-results-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .home-page-layout {
    grid-template-columns: 1fr;
  }
}

.pitch-player-fallback.visible { display: flex; }

/* Match statistics dashboard (All / 1st / 2nd) */
.match-stats-dashboard {
  margin-top: 8px;
}

.match-stats-period-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.match-stats-period-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.match-stats-period-tab:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.match-stats-period-tab.active {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.match-stats-period-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.match-stats-panes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-stats-pane[hidden] {
  display: none !important;
}

.match-stats-period-empty,
.match-stats-period-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
  text-align: center;
}

.match-stats-section {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.match-stats-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.match-stats-section-title {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.match-stats-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .match-stats-columns {
    grid-template-columns: 1fr;
  }
}

.match-stats-metric {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.match-stats-metric-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.match-stats-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  justify-self: start;
}

.match-stats-pill--home {
  background: #eab308;
  color: #111;
}

.match-stats-pill--away {
  background: transparent;
  color: var(--text-primary);
  justify-self: end;
}

.match-stats-pill--away.match-stats-pill--lead {
  background: #ef4444;
  color: #fff;
}

.match-stats-pill--capsule {
  border-radius: 999px;
  min-width: 48px;
  padding: 6px 12px;
}

.match-stats-pill--capsule em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  margin-left: 4px;
}

.match-stats-metric--pass-acc .match-stats-pill--away {
  justify-self: end;
}

.match-stats-possession {
  margin-bottom: 16px;
}

.match-stats-possession-bar {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.match-stats-possession-home,
.match-stats-possession-away {
  display: flex;
  align-items: center;
  min-width: 0;
  transition: width var(--transition);
}

.match-stats-possession-home {
  background: #eab308;
  color: #111;
  justify-content: flex-start;
  padding-left: 10px;
  font-size: 12px;
  font-weight: 700;
}

.match-stats-possession-away {
  background: #ef4444;
  color: #fff;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

.match-stats-val--home {
  color: #eab308;
  font-weight: 700;
}

.match-stats-val--away {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
}


.lineup-pitch-unified--vertical .pitch-midline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  height: 2px;
}

.pitch-center-circle {
  position: absolute;
  width: clamp(72px, 22vw, 120px);
  height: clamp(72px, 22vw, 120px);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

.lineup-pitch-unified--vertical .pitch-player-rating-top {
  display: none !important;
}

.lineup-pitch-unified--vertical .pitch-formation-rows {
  max-width: min(100%, 480px);
}

@media (max-width: 768px) {
  .lineup-pitch-unified--vertical .lineup-pitch-field {
    min-height: min(85vh, 720px);
  }
  .lineup-pitch-unified--vertical .pitch-player-avatar {
    width: 50px;
    height: 50px;
  }
  .lineup-pitch-unified--vertical .formation-row {
    gap: clamp(2px, 0.5vw, 8px);
  }
}

@media (max-width: 768px) {
  .lineup-pitch-unified--vertical .lineup-pitch-field { min-height: 700px; }
  .lineup-pitch-unified--vertical .pitch-player-avatar { width: 46px; height: 46px; }
}

/* === FotMob vertical lineup — team bars visible === */

.lineup-pitch-unified--fotmob .pitch-formation-cols,
.lineup-pitch-unified--vertical .pitch-formation-cols {
  display: none !important;
}

.lineup-pitch-unified--fotmob,
.lineup-pitch-unified--vertical {
  background: #0a0f0d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.lineup-pitch-unified--fotmob .lineup-pitch-field,
.lineup-pitch-unified--vertical .lineup-pitch-field {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-height: min(82vh, 840px) !important;
  max-height: none !important;
}

.lineup-pitch-unified--fotmob .pitch-half,
.lineup-pitch-unified--vertical .pitch-half {
  flex: 1 1 50% !important;
  min-height: 200px !important;
  width: 100% !important;
  background: #1a2f23 !important;
  overflow: visible !important;
}

.lineup-pitch-unified--fotmob .pitch-half--away,
.lineup-pitch-unified--vertical .pitch-half--away {
  background: #1a2f23 !important;
}

.lineup-pitch-unified--fotmob .pitch-midline,
.lineup-pitch-unified--vertical .pitch-midline {
  width: 100% !important;
  height: 2px !important;
  min-height: 2px !important;
  flex-shrink: 0 !important;
}

.lineup-pitch-unified--fotmob .sofa-pitch-players,
.lineup-pitch-unified--vertical .sofa-pitch-players {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.lineup-pitch-unified--fotmob .pitch-formation-rows,
.lineup-pitch-unified--vertical .pitch-formation-rows {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: min(100%, 500px) !important;
  height: 100% !important;
  justify-content: space-evenly !important;
}

.lineup-pitch-unified--fotmob .formation-row,
.lineup-pitch-unified--vertical .formation-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-evenly !important;
  width: 100% !important;
}

.lineup-pitch-unified--fotmob .pitch-player-avatar-wrap,
.lineup-pitch-unified--vertical .pitch-player-avatar-wrap {
  overflow: visible !important;
}

.lineup-pitch-unified--fotmob .pitch-player-avatar,
.lineup-pitch-unified--vertical .pitch-player-avatar {
  overflow: hidden !important;
}

.lineup-pitch-unified--fotmob .pitch-player-rating-top,
.lineup-pitch-unified--vertical .pitch-player-rating-top {
  display: none !important;
}

.lineup-pitch-unified--fotmob .pitch-player-rating-bottom,
.lineup-pitch-unified--vertical .pitch-player-rating-bottom {
  display: block !important;
}

.lineups-tab-hint { margin: 12px 0 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* FotMob-style lineup — clear home (top) / away (bottom) team bands */
.lineup-pitch-unified--fotmob .pitch-half,
.lineup-pitch-unified--vertical .pitch-half {
  display: flex !important;
  flex-direction: column !important;
}

.lineup-pitch-unified--fotmob .pitch-half-inner,
.lineup-pitch-unified--vertical .pitch-half-inner {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  position: relative !important;
}

.lineup-pitch-unified--fotmob .lineup-pitch-band,
.lineup-pitch-unified--vertical .lineup-pitch-band {
  flex-shrink: 0 !important;
  padding: 12px 18px !important;
  gap: 12px !important;
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(6px);
}

.lineup-pitch-unified--fotmob .lineup-pitch-band--home,
.lineup-pitch-unified--vertical .lineup-pitch-band--home {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.lineup-pitch-unified--fotmob .lineup-pitch-band--away,
.lineup-pitch-unified--vertical .lineup-pitch-band--away {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-top: auto !important;
}

.lineup-pitch-unified--fotmob .lineup-pitch-band__label,
.lineup-pitch-unified--vertical .lineup-pitch-band__label {
  display: none !important;
}

.lineup-pitch-unified--fotmob .lineup-pitch-band__stripe,
.lineup-pitch-unified--vertical .lineup-pitch-band__stripe {
  width: 5px;
  height: 40px;
  border-radius: 3px;
  flex-shrink: 0;
}

.lineup-pitch-unified--fotmob .lineup-pitch-band--home .lineup-pitch-band__stripe,
.lineup-pitch-unified--vertical .lineup-pitch-band--home .lineup-pitch-band__stripe {
  background: #eab308;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.45);
}

.lineup-pitch-unified--fotmob .lineup-pitch-band--away .lineup-pitch-band__stripe,
.lineup-pitch-unified--vertical .lineup-pitch-band--away .lineup-pitch-band__stripe {
  background: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

.lineup-pitch-unified--fotmob .lineup-pitch-band__logo,
.lineup-pitch-unified--vertical .lineup-pitch-band__logo {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.lineup-pitch-unified--fotmob .lineup-pitch-band__name,
.lineup-pitch-unified--vertical .lineup-pitch-band__name {
  font-size: 1.15rem !important;
  letter-spacing: 0.01em;
}

.lineup-pitch-unified--fotmob .lineup-pitch-meta,
.lineup-pitch-unified--vertical .lineup-pitch-meta {
  display: none !important;
}

.lineup-pitch-unified--fotmob .pitch-player-chip.side-home .pitch-player-name,
.lineup-pitch-unified--vertical .pitch-player-chip.side-home .pitch-player-name {
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.25);
}

.lineup-pitch-unified--fotmob .pitch-player-chip.side-away .pitch-player-name,
.lineup-pitch-unified--vertical .pitch-player-chip.side-away .pitch-player-name {
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2);
}

.lineup-pitch-unified--fotmob .formation-row,
.lineup-pitch-unified--vertical .formation-row {
  gap: clamp(4px, 1.2vw, 14px) !important;
}

.lineup-pitch-unified--fotmob .pitch-player-rating-bottom,
.lineup-pitch-unified--vertical .pitch-player-rating-bottom {
  position: absolute !important;
  left: 50% !important;
  bottom: -6px !important;
  transform: translateX(-50%) !important;
  z-index: 3 !important;
  min-width: 28px !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

.match-lineups-pro .lineups-pro-head {
  display: none;
}

.sofa-lineups.match-lineups-pro {
  padding: 0;
  background: transparent;
  border: none;
}

@media (max-width: 480px) {
  .lineup-pitch-unified--fotmob .pitch-player-avatar,
  .lineup-pitch-unified--vertical .pitch-player-avatar {
    width: 48px !important;
    height: 48px !important;
  }
  .lineup-pitch-unified--fotmob .pitch-player-chip,
  .lineup-pitch-unified--vertical .pitch-player-chip {
    max-width: 64px !important;
  }
}
/* FotMob reference — team bars outside pitch (Wales top / Ghana bottom) */
.lineup-pitch-unified--fotmob {
  display: flex !important;
  flex-direction: column !important;
  background: #121816 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.fotmob-team-bar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  background: #1a1f1d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  z-index: 5;
}

.fotmob-team-bar--away {
  border-bottom: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fotmob-team-bar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
}

.fotmob-team-bar__flag {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.fotmob-team-bar__name {
  flex: 1;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  min-width: 0;
}

.fotmob-team-bar__avg {
  flex-shrink: 0;
  min-width: 52px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
  background: #eab308;
}

.fotmob-team-bar__avg.rating-good,
.fotmob-team-bar__avg.rating-great,
.fotmob-team-bar__avg.rating-elite {
  background: #4ade80;
  color: #052e16;
}

.fotmob-team-bar__avg.rating-avg,
.fotmob-team-bar__avg.rating-low {
  background: #facc15;
  color: #422006;
}

.fotmob-team-bar__avg.rating-poor {
  background: #fb923c;
  color: #431407;
}

.lineup-pitch-unified--fotmob .lineup-pitch-field {
  flex: 1 1 auto !important;
  min-height: min(72vh, 720px) !important;
}

.lineup-pitch-unified--fotmob .lineup-pitch-band {
  display: none !important;
}

.lineup-pitch-unified--fotmob .pitch-half--home {
  border-top: 3px solid rgba(234, 179, 8, 0.35);
}

.lineup-pitch-unified--fotmob .pitch-half--away {
  border-bottom: 3px solid rgba(249, 115, 22, 0.35);
}

.lineup-pitch-unified--fotmob .pitch-midline {
  position: relative;
}

.lineup-pitch-unified--fotmob .pitch-midline::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.lineup-pitch-unified--fotmob .pitch-player-chip {
  max-width: 88px !important;
}

.lineup-pitch-unified--fotmob .pitch-player-name {
  max-width: 100px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px !important;
  padding: 4px 8px !important;
}

.lineup-pitch-unified--fotmob .pitch-player-chip.side-home .pitch-player-avatar {
  border-color: rgba(234, 179, 8, 0.85) !important;
}

.lineup-pitch-unified--fotmob .pitch-player-chip.side-away .pitch-player-avatar {
  border-color: rgba(249, 115, 22, 0.85) !important;
}

/* Match header + home featured — mobile (schedule / live / FT) */
@media (max-width: 960px) {
  .match-page-header-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .match-page-league {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 12px;
  }
  .match-page-status {
    flex-shrink: 0;
    font-size: 11px;
    padding: 4px 10px;
  }
}

@media (max-width: 640px) {
  .match-page-meta__when {
    flex: 1 1 100%;
    line-height: 1.45;
  }
  .match-page-meta span {
    flex: 1 1 auto;
    min-width: min(100%, 140px);
  }
  .match-page-header.is-scheduled .match-score-kickoff,
  .match-page-header.is-ft .match-score-badge,
  .featured-match-card:not(.is-live) .match-score-badge {
    font-size: 10px;
    padding: 4px 8px;
    max-width: 88px;
  }
  .match-page-header.is-live .match-score-split.is-live .match-score-num,
  .featured-match-card.is-live .match-score-split.is-live .match-score-num {
    font-size: clamp(28px, 9vw, 36px);
  }
  .match-page-team {
    min-width: 0;
  }
  .match-page-team-name {
    word-break: break-word;
    hyphens: auto;
  }
}

@media (max-width: 380px) {
  .match-page-league span { font-size: 11px; }
  .match-page-meta { font-size: 10px; }
}

/* Home — crawlable match links (SEO internal linking) */

.home-discover-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 14px 0 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.home-discover-hub,
.home-discover-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.home-discover-hub a,
.home-discover-articles a {
  color: var(--accent-green);
  font-weight: 600;
  font-size: 14px;
}
.home-discover-panel {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.home-discover-title {
  font-size: 14px;
  margin: 0 0 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.home-discover-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.home-discover-links a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
}
.home-discover-links a:hover {
  color: var(--accent-green);
}
@media (max-width: 640px) {
  .home-discover-panel { padding: 12px; }
  .home-discover-links { flex-direction: column; gap: 6px; }
}

.match-insights-hub {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--card-bg, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.match-insights-title {
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.match-insights-sub {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.insights-card {
  padding: 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.insights-card h3 {
  font-size: 13px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.insights-prob-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 6px;
}
.insights-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}
.insights-bar i {
  display: block;
  height: 100%;
  background: #3b82f6;
  border-radius: 4px;
}
.insights-bar--draw i {
  background: #94a3b8;
}
.insights-bar--away i {
  background: #f59e0b;
}
.insights-label {
  font-size: 11px;
  color: #22c55e;
  margin-left: 6px;
}
.insights-outlook {
  font-size: 12px;
  margin: 8px 0 0;
  color: #cbd5e1;
}
.insights-disclaimer {
  font-size: 11px;
  color: #64748b;
  margin: 10px 0 0;
}

.wc-seo-intro {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(0, 40, 104, 0.08);
  border: 1px solid rgba(0, 40, 104, 0.15);
}
.wc-seo-lead {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 10px;
  color: var(--text-primary, #0f172a);
}
.wc-seo-live {
  font-size: 14px;
  margin: 0 0 10px;
}
.wc-seo-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}
.wc-seo-quick a {
  color: #002868;
  text-decoration: none;
}
.wc-seo-h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.wc-seo-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}
.wc-seo-groups a {
  font-size: 0.875rem;
}
.wc-seo-quick a:hover {
  text-decoration: underline;
}

.wc-overview-lead, .wc-overview-section { margin: 1rem 0 1.25rem; }
.wc-featured-block { margin-bottom: 1rem; }
.wc-scorers-note { font-size: 13px; color: var(--text-muted, #64748b); margin: 0 0 12px; }
.wc-scorers-page { display: flex; flex-direction: column; gap: 28px; }
.wc-scorers-section { margin: 0; }
.wc-scorers-heading { font-size: 17px; font-weight: 700; color: var(--text-primary, #0f172a); margin: 0 0 12px; }
.wc-scorers-table-wrap { overflow-x: auto; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; background: var(--card-bg, #fff); }
.wc-scorers-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wc-scorers-table th, .wc-scorers-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border, #e2e8f0); }
.wc-scorers-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted, #64748b); background: var(--surface-muted, #f8fafc); }
.wc-scorers-table tr:last-child td { border-bottom: none; }
.wc-scorers-rank { width: 36px; color: var(--text-muted, #64748b); font-weight: 600; }
.wc-scorers-player a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 600; }
.wc-scorers-player img { border-radius: 50%; object-fit: contain; background: #fff; }
.wc-scorers-team { color: var(--text-muted, #64748b); }
.wc-scorers-stat { width: 48px; font-weight: 700; text-align: center; }
.wc-team-goals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wc-team-goals-card { border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 12px; background: var(--card-bg, #fff); }
.wc-team-goals-card > a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-weight: 600; margin-bottom: 8px; }
.wc-team-goals-card > a strong { margin-left: auto; color: var(--accent, #16a34a); }
.wc-team-goals-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.wc-team-goals-list li { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px dashed var(--border, #e2e8f0); }

.match-wc-context {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 40, 104, 0.2);
  background: linear-gradient(135deg, rgba(0, 40, 104, 0.1), rgba(200, 16, 46, 0.06));
}
.match-wc-context-title { font-size: 1.05rem; margin: 0 0 10px; }
.match-wc-table { width: 100%; font-size: 13px; border-collapse: collapse; margin: 8px 0; }
.match-wc-table th, .match-wc-table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid rgba(148,163,184,0.2); }
.match-wc-links { font-size: 13px; margin: 10px 0 0; }

/* Match analytics dashboard */
.insights-grid--analytics { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.insights-card--wide { grid-column: 1 / -1; }
.analytics-section { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(148, 163, 184, 0.15); }
.analytics-section h3 { font-size: 14px; margin: 0 0 10px; color: #e2e8f0; }
.analytics-section h4 { font-size: 12px; margin: 0 0 8px; color: #94a3b8; }
.xg-trend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .xg-trend-grid { grid-template-columns: 1fr; } }
.xg-bar-group { margin-bottom: 8px; font-size: 11px; }
.xg-bar-label { display: inline-block; min-width: 52px; color: #94a3b8; }
.xg-bar-pair { display: flex; gap: 4px; height: 6px; margin: 4px 0; }
.xg-bar { height: 100%; border-radius: 3px; min-width: 2px; }
.xg-bar--goals { background: #3b82f6; }
.xg-bar--xg { background: #a855f7; opacity: 0.85; }
.xg-bar-nums { color: #64748b; font-size: 10px; }
.analytics-compare { width: 100%; font-size: 12px; border-collapse: collapse; }
.analytics-compare th, .analytics-compare td { padding: 6px 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.12); text-align: left; }
.analytics-injury-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 12px; }
@media (max-width: 640px) { .analytics-injury-grid { grid-template-columns: 1fr; } }
.analytics-injury-grid ul { margin: 6px 0 0; padding-left: 18px; color: #cbd5e1; }
.analytics-section--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .analytics-section--split { grid-template-columns: 1fr; } }
.analytics-facts { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: #cbd5e1; }
.analytics-disclaimer, .analytics-empty, .analytics-meta { font-size: 11px; color: #64748b; }

/* Pre-match prediction engagement */
.prematch-engagement-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0f3d2e;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
}
.insights-card--api {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), transparent);
}
.insights-bar--api i {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.insights-api-pick,
.insights-api-advice,
.insights-api-meta {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
}
.insights-disclaimer--inline {
  margin-top: 10px;
  font-size: 0.75rem;
}



/* Live page — mobile: main content first, WC sidebar at bottom (like home) */
@media (max-width: 960px) {
  body[data-page="live"] .live-page-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body[data-page="live"] .live-page-layout > .page-main,
  body[data-page="live"] .live-page-layout > .live-page-main {
    order: 1;
    width: 100%;
  }

  body[data-page="live"] .live-page-layout > .leagues-sidebar {
    order: 2;
    width: 100%;
  }

  body[data-page="live"] .leagues-mobile-summary {
    display: flex;
  }
}

/* Live page — desktop full-width layout */
@media (min-width: 961px) {
  body[data-page="live"] .live-page-container,
  body[data-page="live"] .container:has(.live-page-layout) {
    max-width: min(1560px, calc(100vw - 40px));
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  body[data-page="live"] .live-page-layout {
    max-width: 1100px;
    width: 100%;
    display: block;
    padding: 20px 0 0;
    margin: 0 auto;
  }

  body[data-page="live"] .live-page-main {
    width: 100%;
    min-width: 0;
  }

  body[data-page="live"] .live-page-header {
    margin-bottom: 12px;
  }

  body[data-page="live"] .home-big-matches-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body[data-page="live"] .live-big-section,
  body[data-page="live"] .live-national-section {
    margin-bottom: 24px;
  }

  body[data-page="live"] .home-big-match-card,
  body[data-page="live"] .featured-match-card.home-big-match-card {
    width: 100%;
    border-radius: 14px;
  }

  body[data-page="live"] .home-big-match-card .match-card-main,
  body[data-page="live"] .featured-match-card.home-big-match-card .match-card-main {
    padding: 22px 28px;
    gap: 24px;
    min-height: 72px;
  }

  body[data-page="live"] .home-big-match-card .match-card-team-name,
  body[data-page="live"] .featured-match-card.home-big-match-card .match-card-team-name {
    font-size: 18px;
    max-width: min(100%, 360px);
  }

  body[data-page="live"] .home-big-match-card .team-avatar--sm,
  body[data-page="live"] .featured-match-card.home-big-match-card .team-avatar--sm {
    width: 36px;
    height: 36px;
  }

  body[data-page="live"] .home-big-match-card .match-card-center-primary,
  body[data-page="live"] .featured-match-card.home-big-match-card .match-card-center-primary {
    font-size: 34px;
  }

  body[data-page="live"] .home-big-match-card .match-card-center-sub,
  body[data-page="live"] .featured-match-card.home-big-match-card .match-card-center-sub {
    font-size: 13px;
  }

  body[data-page="live"] .home-big-match-card .match-events-bar,
  body[data-page="live"] .featured-match-card .match-events-bar,
  body[data-page="live"] .featured-match-card.home-big-match-card .match-events-bar {
    margin: 0 24px 18px;
    padding: 14px 22px;
    gap: 16px 24px;
  }

  body[data-page="live"] .home-big-match-card .match-card-meta,
  body[data-page="live"] .featured-match-card.home-big-match-card .match-card-meta {
    padding: 14px 24px 18px;
    font-size: 12px;
  }

  body[data-page="live"] .featured-match-card .featured-match-body {
    padding: 28px 32px;
    gap: 20px;
  }

  body[data-page="live"] .featured-match-card .featured-match-team span {
    font-size: 17px;
  }

  body[data-page="live"] .featured-match-card .featured-match-score-wrap .match-score-num {
    font-size: 42px;
  }

  body[data-page="live"] .featured-match-card .match-events-bar {
    margin: 0 24px 18px;
  }

  body[data-page="live"] .home-results-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
  }

  body[data-page="live"] .live-page-today,
  body[data-page="live"] .live-page-results,
  body[data-page="live"] .live-page-upcoming {
    margin-top: 8px;
  }
}

@media (min-width: 1280px) {
  body[data-page="live"] .home-results-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 961px) {
  body[data-page="live"] .leagues-mobile-summary {
    display: none;
  }

  body[data-page="live"] .leagues-mobile-panel .leagues-sidebar-inner {
    display: block !important;
    margin-top: 0;
  }

  body[data-page="live"] .leagues-mobile-panel {
    display: block;
    border: none;
  }
}


.live-schedule-day-block {
  margin-bottom: 18px;
}

.live-schedule-day-block:last-child {
  margin-bottom: 0;
}

.live-schedule-day-head {
  margin: 0 0 10px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ── Pinned floating scoreboard ── */
#pinned-score-root {
  position: fixed;
  z-index: 10050;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: visible;
}

#pinned-score-root:not([hidden]) {
  pointer-events: none;
}

#pinned-score-root .pinned-score,
#pinned-score-root .pinned-score * {
  pointer-events: auto;
}

.pinned-score {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  right: 12px;
  width: min(300px, calc(100vw - 24px));
  background: linear-gradient(145deg, rgba(18, 22, 32, 0.97), rgba(10, 14, 22, 0.98));
  border: 1px solid rgba(0, 255, 135, 0.28);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  animation: pinned-score-in 0.28s ease-out;
  touch-action: none;
  user-select: none;
}

.pinned-score--left {
  right: auto;
  left: 12px;
}

.pinned-score--collapsed {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  right: 0;
  left: auto;
  width: 46px;
  border-radius: 14px 0 0 14px;
  border-right: none;
  padding: 10px 6px;
}

.pinned-score--collapsed.pinned-score--left {
  left: 0;
  right: auto;
  border-radius: 0 14px 14px 0;
  border-right: 1px solid rgba(0, 255, 135, 0.28);
  border-left: none;
}

@keyframes pinned-score-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pinned-score--collapsed {
  animation: none;
}

.pinned-score-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

.pinned-score-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--accent-green, #00ff87);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.pinned-score-clock {
  flex: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.02em;
}

.pinned-score-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.pinned-score-actions button {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.pinned-score-actions button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pinned-score-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px;
  text-decoration: none;
  color: inherit;
}

.pinned-score-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pinned-score-team--home { justify-content: flex-start; }
.pinned-score-team--away { justify-content: flex-end; flex-direction: row-reverse; }

.pinned-score-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.pinned-score-abbr {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.03em;
}

.pinned-score-mid {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1;
}

.pinned-score-sep {
  opacity: 0.45;
  font-weight: 600;
}

.pinned-score-num.goal-flash {
  animation: pinned-goal-flash 0.6s ease;
}

@keyframes pinned-goal-flash {
  0%, 100% { color: #fff; }
  40% { color: var(--accent-green, #00ff87); transform: scale(1.12); }
}

.pinned-score-league {
  padding: 0 12px 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pinned-score-drag {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border: none;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  cursor: grab;
  padding: 0;
}

.pinned-score-drag:active { cursor: grabbing; }

.pinned-score-expand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 72px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 8px 4px;
  font: inherit;
}

.pinned-score-expand-score {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.pinned-score--left .pinned-score-expand-score {
  writing-mode: vertical-lr;
}

body.has-pinned-score .pinned-score--collapsed ~ * {
  /* no layout shift */
}

.match-page-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.pin-score-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid rgba(0, 255, 135, 0.45);
  border-radius: 10px;
  background: rgba(0, 255, 135, 0.12);
  color: var(--accent-green, #00ff87);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  flex-shrink: 0;
  white-space: nowrap;
}

.pin-score-btn:hover {
  background: rgba(0, 255, 135, 0.2);
  border-color: rgba(0, 255, 135, 0.65);
  transform: translateY(-1px);
}


.pin-score-btn.is-pinning,
.pin-score-btn:disabled {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

.pin-score-btn.is-active {
  background: rgba(0, 255, 135, 0.28);
  border-color: rgba(0, 255, 135, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 255, 135, 0.2) inset;
}

.pin-score-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.match-page-header-top {
  flex-wrap: nowrap;
  align-items: center;
}

.match-page-header-top .match-page-league {
  min-width: 0;
}

@media (max-width: 520px) {
  .pinned-score:not(.pinned-score--pill) {
    right: 8px;
    width: min(280px, calc(100vw - 16px));
  }
  .pinned-score--left { left: 8px; }
  .match-page-header-actions { gap: 8px; }
  .pin-score-btn {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }
  .pin-score-btn svg { width: 16px; height: 16px; }
}

.match-live-clock-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.match-live-clock-stoppage {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.16);
  border: 1px solid rgba(255, 196, 0, 0.45);
  color: #ffd76a;
  font-size: clamp(14px, 2.2vw, 18px);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.match-live-clock-stoppage.is-hidden {
  display: none;
}

.match-live-clock-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.pinned-score-goal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  animation: pinned-goal-pop 0.45s ease-out;
}

.pinned-score-goal[hidden] {
  display: none !important;
}

.pinned-score-goal strong {
  color: var(--accent-green, #00ff87);
}

.pinned-score--goal-celebration {
  animation: pinned-celebrate 1.2s ease-out;
  border-color: rgba(0, 255, 135, 0.75) !important;
  box-shadow: 0 0 28px rgba(0, 255, 135, 0.35), 0 12px 40px rgba(0, 0, 0, 0.55) !important;
}

@keyframes pinned-goal-pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pinned-celebrate {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.04); }
  40% { transform: scale(0.98); }
  60% { transform: scale(1.03); }
}

.pinned-score-num.goal-flash {
  animation: pinned-goal-flash 0.9s ease;
  color: var(--accent-green, #00ff87) !important;
}

/* Compact pin strip — flag · score · time · score · flag */
.pinned-score--compact:not(.pinned-score--pill) {
  width: min(240px, calc(100vw - 20px));
  min-height: 0;
  padding: 6px 8px;
  border-radius: 10px;
  animation: none !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.pinned-score--pip {
  width: 100% !important;
  max-width: none !important;
  padding: 6px 10px !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.pinned-score-strip {
  display: grid;
  grid-template-columns: 22px 28px 1fr 28px 22px;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.pinned-score-flag {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.pinned-score--compact .pinned-score-num {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1;
}

.pinned-score--compact .pinned-score-clock {
  font-size: 11px;
  font-weight: 700;
  color: #8fe8be;
  text-align: center;
  line-height: 1.1;
  padding: 0 2px;
  min-width: 0;
}

.pinned-score-unpin {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.pinned-score--compact {
  position: relative;
}

.pinned-score--compact .pinned-score-goal {
  padding: 4px 6px 2px;
  font-size: 10px;
}

@media (max-width: 520px) {
  .pinned-score--compact {
    width: min(220px, calc(100vw - 16px));
    padding: 5px 6px;
  }
  .pinned-score--compact .pinned-score-num { font-size: 14px; }
  .pinned-score--compact .pinned-score-clock { font-size: 10px; }
  .pinned-score-flag { width: 18px; height: 18px; }
  .pinned-score-strip { grid-template-columns: 18px 24px 1fr 24px 18px; gap: 3px; }
}

/* PiP desktop card — full scoreboard in floating window */
.pinned-score--pip:not(.pinned-score--compact) {
  width: 100% !important;
  max-width: none !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

.pinned-score--pip:not(.pinned-score--compact) .pinned-score-toolbar {
  padding: 6px 8px 4px;
}

.pinned-score--pip:not(.pinned-score--compact) .pinned-score-body {
  padding: 8px 10px 4px;
}

.pinned-score--pip:not(.pinned-score--compact) .pinned-score-mid {
  font-size: 20px;
}

.pinned-score--pip:not(.pinned-score--compact) .pinned-score-league {
  padding-bottom: 6px;
}

.pinned-score-strip,
.pinned-score-body {
  cursor: pointer;
}

.pinned-score-strip:hover,
.pinned-score-body:hover {
  opacity: 0.92;
}

@media (max-width: 520px) {
  .pinned-score--compact {
    width: min(220px, calc(100vw - 16px));
  }
}

/* ── Mobile pill (reference layout + PC dark theme) ── */
.pinned-score--compact.pinned-score--pill {
  width: auto;
  min-width: 0;
  max-width: min(72vw, 136px);
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none !important;
}

.pinned-score--compact .pinned-score-strip {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 12px 0 2px;
}

.pinned-score--compact .pinned-score-pill-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px;
  background: linear-gradient(145deg, rgba(18, 22, 32, 0.97), rgba(10, 14, 22, 0.98));
  border: 1px solid rgba(0, 255, 135, 0.32);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.pinned-score--compact .pinned-score-time-badge {
  position: absolute;
  top: 0;
  left: 8px;
  z-index: 2;
  padding: 2px 8px;
  background: linear-gradient(180deg, #2ee070, #18b85a);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 9px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(24, 184, 90, 0.4);
  font-variant-numeric: tabular-nums;
}

.pinned-score--compact .pinned-score-flag {
  width: 24px;
  height: 17px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}

.pinned-score--compact .pinned-score-line {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
}

.pinned-score--compact .pinned-score-line.goal-flash {
  animation: pinned-pill-goal 0.75s ease;
}

@keyframes pinned-pill-goal {
  0%, 100% { color: #fff; transform: scale(1); }
  45% { color: #00ff87; transform: scale(1.08); }
}

.pinned-score--pip.pinned-score--compact {
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.pinned-score--compact.pinned-score--pill:not(.pinned-score--placed),
#pinned-score-root .pinned-score--compact.pinned-score--pill:not(.pinned-score--placed) {
  top: 42%;
  bottom: auto !important;
  left: 12px;
  right: auto !important;
  transform: translateY(-50%);
}

.pinned-score--compact.pinned-score--pill.pinned-score--right,
#pinned-score-root .pinned-score--compact.pinned-score--pill.pinned-score--right {
  left: auto;
  right: 12px;
  transform: translateY(-50%);
}

/* ── Desktop card polish (reference: dark + green border) ── */
.pinned-score:not(.pinned-score--compact) {
  border-color: rgba(0, 255, 135, 0.35);
}

.pinned-score:not(.pinned-score--compact) .pinned-score-toolbar {
  background: rgba(0, 0, 0, 0.18);
}

.pinned-score:not(.pinned-score--compact) .pinned-score-status .live-dot {
  width: 7px;
  height: 7px;
}

@media (max-width: 520px) {
  .pinned-score--compact .pinned-score-pill-row {
    padding: 7px 14px;
    gap: 8px;
  }
  .pinned-score--compact .pinned-score-line { font-size: 15px; }
  .pinned-score--compact .pinned-score-flag { width: 22px; height: 15px; }
}

/* Mobile pill: compact dark capsule */
@media (max-width: 768px) {
  .pinned-score--compact.pinned-score--pill {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    width: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .pinned-score--compact .pinned-score-pill-row {
    padding: 6px 12px;
    gap: 7px;
  }
  .pinned-score--compact .pinned-score-line { font-size: 14px; }
  .pinned-score--compact .pinned-score-flag { width: 22px; height: 15px; }
  .pinned-score--compact .pinned-score-time-badge { font-size: 10px; padding: 2px 7px; }
}

/* Draggable mobile pill */
.pinned-score--pill {
  touch-action: none;
  cursor: grab;
  z-index: 10060;
}

.pinned-score--pill.pinned-score--dragging {
  cursor: grabbing;
  z-index: 10070;
  transition: none !important;
}

.pinned-score--pill.pinned-score--placed {
  bottom: auto !important;
  right: auto !important;
}

.pinned-score-strip[role="link"] {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.pinned-score--pill.pinned-score--dragging .pinned-score-strip[role="link"] {
  cursor: grabbing;
}


/* Drag grip handle (mobile) */
.pinned-score--pill {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.pinned-score-grip {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 14px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: #666;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: grab;
  touch-action: none;
  padding: 0;
}

.pinned-score-grip.is-dragging,
.pinned-score--dragging .pinned-score-grip {
  cursor: grabbing;
  background: #fff;
}

.pinned-score--pill .pinned-score-strip {
  flex: 1;
  min-width: 0;
}

.pinned-score--placed {
  bottom: auto !important;
  right: auto !important;
}

/* Desktop pinned toolbar — close only */
.pinned-score:not(.pinned-score--compact) .pinned-score-actions {
  min-width: 32px;
  justify-content: flex-end;
}

.pinned-score:not(.pinned-score--compact) .pinned-score-close {
  width: 28px;
  height: 28px;
}

.pinned-score-drag {
  pointer-events: none;
}


.pinned-score-toolbar-spacer {
  display: block;
  min-height: 1px;
}

.pinned-score:not(.pinned-score--compact) .pinned-score-status {
  grid-column: 1;
  justify-self: start;
}

.pinned-score:not(.pinned-score--compact) .pinned-score-clock {
  grid-column: 2;
  justify-self: center;
  flex: none;
  text-align: center;
}

.pinned-score:not(.pinned-score--compact) .pinned-score-toolbar-spacer {
  display: none;
}

.pinned-score:not(.pinned-score--compact) .pinned-score-actions {
  grid-column: 3;
  justify-self: end;
}

/* Mobile pill — clean layout (no grip) */
.pinned-score--pill {
  display: block;
}

.pinned-score--pill .pinned-score-strip {
  display: block;
}


.match-live-clock-sub.is-hidden {
  display: none !important;
}

.match-live-clock-row:has(.match-live-clock-stoppage:not(.is-hidden)) + .match-live-clock-sub {
  display: none !important;
}

/* Mobile pill unpin + persistence */
.pinned-score--compact.pinned-score--pill .pinned-score-unpin {
  position: absolute;
  top: -6px;
  right: -4px;
  z-index: 5;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(18, 22, 32, 0.95);
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pinned-score--compact.pinned-score--pill .pinned-score-unpin:hover {
  color: #fff;
  background: rgba(30, 36, 48, 0.98);
}

.pinned-score--compact.pinned-score--pill {
  position: fixed;
  overflow: visible;
}

#pinned-score-root {
  pointer-events: none;
}

#pinned-score-root:not([hidden]) .pinned-score {
  pointer-events: auto;
}



/* Mobile pin — micro pill (reference size) */
#pinned-score-root .pinned-score.pinned-score--compact.pinned-score--pill,
.pinned-score.pinned-score--compact.pinned-score--pill {

  position: fixed !important;
  display: block !important;
  width: max-content !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
  bottom: auto !important;
  right: auto !important;
  left: auto !important;
  touch-action: none;
  user-select: none;
  animation: none !important;
}

#pinned-score-root .pinned-score.pinned-score--pill .pinned-score-strip,
.pinned-score.pinned-score--pill .pinned-score-strip {
  display: block !important;
  grid-template-columns: none !important;
  padding: 6px 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
  flex: none !important;
}

#pinned-score-root .pinned-score.pinned-score--pill .pinned-score-pill-row,
.pinned-score.pinned-score--pill .pinned-score-pill-row {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px !important;
  padding: 3px 8px !important;
  background: linear-gradient(145deg, rgba(18, 22, 32, 0.98), rgba(10, 14, 22, 0.99)) !important;
  border: 1px solid rgba(0, 255, 135, 0.42) !important;
  border-radius: 999px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.38) !important;
}

#pinned-score-root .pinned-score.pinned-score--pill .pinned-score-time-badge,
.pinned-score.pinned-score--pill .pinned-score-time-badge {
  position: absolute;
  top: 0;
  left: 5px;
  z-index: 2;
  padding: 1px 5px !important;
  font-size: 8px !important;
  font-weight: 800;
  line-height: 1.15;
  border-radius: 6px;
  background: linear-gradient(180deg, #2ee070, #18b85a) !important;
  color: #fff !important;
  box-shadow: 0 1px 4px rgba(24, 184, 90, 0.4);
}

#pinned-score-root .pinned-score.pinned-score--pill .pinned-score-flag,
.pinned-score.pinned-score--pill .pinned-score-flag {
  width: 16px !important;
  height: 11px !important;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
}

#pinned-score-root .pinned-score.pinned-score--pill .pinned-score-line,
.pinned-score.pinned-score--pill .pinned-score-line {
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
  color: #fff !important;
}

#pinned-score-root .pinned-score.pinned-score--pill .pinned-score-unpin,
.pinned-score.pinned-score--pill .pinned-score-unpin {
  width: 14px !important;
  height: 14px !important;
  top: -2px !important;
  right: -2px !important;
  font-size: 11px !important;
  opacity: 0.55;
}

#pinned-score-root .pinned-score.pinned-score--pill .pinned-score-float,
.pinned-score.pinned-score--pill .pinned-score-float {
  width: 14px !important;
  height: 14px !important;
  top: -2px !important;
  left: -2px !important;
  font-size: 8px !important;
}

#pinned-score-root .pinned-score.pinned-score--pill .pinned-score-goal,
.pinned-score.pinned-score--pill .pinned-score-goal {
  display: none !important;
}

.pinned-score-grip {
  display: none !important;
}

#pinned-score-root .pinned-score.pinned-score--pill:not(.pinned-score--placed),
.pinned-score.pinned-score--pill:not(.pinned-score--placed) {
  top: 40% !important;
  left: 10px !important;
  transform: translateY(-50%) !important;
}

#pinned-score-root .pinned-score.pinned-score--pill.pinned-score--right:not(.pinned-score--placed),
.pinned-score.pinned-score--pill.pinned-score--right:not(.pinned-score--placed) {
  left: auto !important;
  right: 10px !important;
}

/* FTB pinned pill — isolated from .pinned-score card (reference micro size) */
.ftb-pinned-pill {
  position: fixed;
  z-index: 10060;
  width: max-content;
  max-width: min(72vw, 136px);
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  touch-action: none;
  user-select: none;
  overflow: visible;
}

.ftb-pinned-pill__link {
  position: relative;
  display: block;
  text-decoration: none;
  color: #171717;
  padding: 8px 0 0;
  cursor: grab;
}

.ftb-pinned-pill__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 1px 6px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.15;
  border-radius: 999px;
  background: #1e6b3a;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-variant-numeric: tabular-nums;
}

.ftb-pinned-pill__row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ftb-pinned-pill__flag {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
}

.ftb-pinned-pill__score {
  font-size: 12px;
  font-weight: 800;
  color: #171717;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ftb-pinned-pill__score.goal-flash {
  animation: pinned-pill-goal 0.75s ease;
}

.ftb-pinned-pill__unpin {
  position: absolute;
  top: -3px;
  right: -3px;
  z-index: 5;
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: rgba(18, 22, 32, 0.95);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ftb-pinned-pill:hover .ftb-pinned-pill__unpin,
.ftb-pinned-pill:focus-within .ftb-pinned-pill__unpin {
  opacity: 0.75;
}

.ftb-pinned-pill--placed,
.ftb-pinned-pill.pinned-score--placed {
  bottom: auto !important;
  right: auto !important;
}

.ftb-pinned-pill:not(.pinned-score--placed):not(.ftb-pinned-pill--placed) {
  top: 40%;
  left: 10px;
  transform: translateY(-50%);
}

.ftb-pinned-pill.pinned-score--right:not(.pinned-score--placed) {
  left: auto;
  right: 10px;
}

.ftb-pinned-pill--dragging .ftb-pinned-pill__link {
  cursor: grabbing;
}

#pinned-score-root .ftb-pinned-pill {
  pointer-events: auto;
}


/* Mobile pin — no wrapper box (match reference pill only) */
#pinned-score-root,
#pinned-score-root:not([hidden]) {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

#pinned-score-root .ftb-pinned-pill {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Mobile pinned pill — compact responsive */
@media (max-width: 520px) {
  .ftb-pinned-pill__link { padding: 4px 0 0; }
  .ftb-pinned-pill__badge { font-size: 7px; padding: 1px 5px; left: 3px; }
  .ftb-pinned-pill__row { gap: 4px; padding: 3px 8px; }
  .ftb-pinned-pill__flag { width: 14px; height: 10px; }
  .ftb-pinned-pill__score { font-size: 11px; }
  .ftb-pinned-pill__unpin { width: 12px; height: 12px; font-size: 10px; }
  .ftb-pinned-pill:not(.pinned-score--placed) { left: 8px; }
  .ftb-pinned-pill.pinned-score--right:not(.pinned-score--placed) { right: 8px; }
}

@media (max-width: 360px) {
  .ftb-pinned-pill__row { padding: 2px 7px; gap: 3px; }
  .ftb-pinned-pill__flag { width: 13px; height: 9px; }
  .ftb-pinned-pill__score { font-size: 10px; }
  .ftb-pinned-pill__badge { font-size: 6px; padding: 1px 4px; }
}


.match-highlights-video-inline {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.match-page-header .match-highlights-video-inline .match-highlights-player {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 280px;
}
.match-page-header .match-highlights-video-inline .match-highlights-source {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 6px;
}

/* News listing — filters + pagination */
a.filter-btn {
  text-decoration: none;
  display: inline-block;
  color: var(--text-secondary);
}

.news-type-filter {
  gap: 10px;
  margin-bottom: 24px;
}

.news-page-grid {
  margin-top: 8px;
  gap: 20px;
}

[data-page="news"] .article-grid.is-loaded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  [data-page="news"] .article-grid.is-loaded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  [data-page="news"] .article-grid.is-loaded {
    grid-template-columns: 1fr;
  }
}

[data-page="news"] .article-grid.is-loaded.is-single {
  grid-template-columns: minmax(0, 420px);
}

.news-page-grid .article-img--crests,
.news-page-grid .article-img--crests .article-img-duo {
  min-height: 160px;
  max-height: 180px;
}

.news-page-grid .article-crest-side img {
  width: 56px;
  height: 56px;
}

.news-page-grid .article-crest-side span {
  font-size: 10px;
}

/* GNews hero art is 1200×630 with player photo on the right — crop to photo, not the text panel */
.article-card[data-article-type="gnews"] .article-img img {
  object-position: 78% center;
}


.news-pagination {
  margin: 36px auto 8px;
  max-width: 920px;
}

.news-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(11, 18, 32, 0.98));
  box-shadow: var(--shadow);
}

.news-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

.news-page-btn:hover {
  border-color: var(--accent-green-dim);
  color: var(--accent-green) !important;
  background: rgba(45, 212, 168, 0.1);
  transform: translateY(-1px);
}

.news-page-btn.is-active {
  border-color: var(--accent-green);
  color: #04120d !important;
  background: var(--accent-green);
  box-shadow: 0 0 0 1px rgba(45, 212, 168, 0.35);
}

.news-page-btn.news-page-nav {
  min-width: auto;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.news-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 40px;
  color: var(--text-muted);
  font-weight: 700;
}

.news-pagination-meta {
  margin: 12px 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
