/* ── Variables ─────────────────────────────────────────────── */
:root {
  --c-primary: #001e28;
  --c-live:    #e8004d;
  --c-win:     #1a7f5a;
  --c-text1:   #1f2937;
  --c-text2:   #4b5563;
  --c-text3:   #9ca3af;
  --c-surface: #ffffff;
  --c-surface2:#f4f5f7;
  --c-border:  #e5e7eb;
  --c-border2: #f0f1f3;
  --r-sm: 4px;
  --r-md: 6px;
  --sh-sm: 0 1px 3px rgba(0,0,0,0.07);
}

/* ── Reset ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { font-size:14px; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #eef0f2;
  color: var(--c-text1);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: inline-block; vertical-align: middle; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: #001e28;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 16px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; text-decoration: none; margin-left: 20px; }
.logo-text {
  font-weight: 900; font-size: 22px; letter-spacing: -1px;
  color: white; text-transform: uppercase;
}
.logo-badge {
  background: #e8004d; color: white;
  padding: 2px 7px; border-radius: 5px;
  margin-left: 3px; font-size: 17px; font-weight: 900;
}
.header-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.08); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.icon-btn:hover { background: rgba(255,255,255,0.15); }

/* ── Sport Nav ──────────────────────────────────────────────── */
.sport-nav {
  background: #001e28;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sport-nav-inner {
  padding-left: 40px;
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.sport-nav-inner::-webkit-scrollbar { display: none; }
.nav-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.6); white-space: nowrap;
  text-decoration: none; border: none; background: none;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.02em; text-transform: uppercase;
  flex-shrink: 0;
}
.nav-tab svg { width: 18px; height: 18px; opacity: 0.75; }
.nav-tab:hover { color: rgba(255,255,255,0.9); }
.nav-tab.active { color: white; border-bottom: 4px solid #e8004d; }
.nav-tab.active svg { opacity: 1; }
.nav-fav { color: rgba(255,255,255,0.6); }
.fav-count {
  background: #e8004d; color: white;
  font-size: 10px; font-weight: 700; border-radius: 999px;
  padding: 1px 5px; min-width: 16px; text-align: center;
}
.desktop-only { display: none; }
@media (min-width: 900px) { .desktop-only { display: flex; } .mobile-only { display: none; } }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: #001e28;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; text-decoration: none; margin-left: 20px; }
.logo-text {
  font-weight: 900; letter-spacing: -1px;
  color: white; text-transform: uppercase;
}
.logo-badge {
  background: #e8004d; color: white;
  border-radius: 6px; font-weight: 900;
  margin-left: 3px;
}
.header-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  border-radius: 10px;
  background: rgba(255,255,255,0.08); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255,255,255,0.15); }

/* ── Sport Nav ──────────────────────────────────────────────── */
.sport-nav {
  background: #001e28;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sport-nav-inner {
  padding-left: 40px;
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.sport-nav-inner::-webkit-scrollbar { display: none; }
.nav-tab {
  display: flex; align-items: center;
  color: rgba(255,255,255,0.6); white-space: nowrap;
  text-decoration: none; border: none; background: none;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  text-transform: uppercase; flex-shrink: 0;
}
.nav-tab:hover { color: rgba(255,255,255,0.9); }
.nav-tab.active { color: white; border-bottom: 4px solid #e8004d; }
.nav-tab.active .nav-icon { opacity: 1; }
.nav-icon { flex-shrink: 0; opacity: 0.75; }
.nav-fav { color: rgba(255,255,255,0.6); }
.fav-count {
  background: #e8004d; color: white;
  font-size: 10px; font-weight: 700; border-radius: 999px;
  padding: 1px 5px; min-width: 16px; text-align: center;
}

/* ── Desktop header (1024px+) ───────────────────────────────── */
@media (min-width: 1024px) {
  .header-inner { height: 88px; }
  .logo-text { font-size: 28px; }
  .logo-badge { font-size: 22px; padding: 3px 9px; }
  .icon-btn { width: 40px; height: 40px; }
  .nav-tab {
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.04em; gap: 6px;
    padding: 14px 12px;
  }
  .nav-icon { width: 22px; height: 22px; }
  .hide-mobile { display: flex; }
  .show-mobile-only { display: none; }
  .sport-nav-inner { padding-left: 30px; }
}

/* ── Mobile header (below 1024px) ───────────────────────────── */
@media (max-width: 1023px) {
  .header-inner { height: 56px; }
  .logo-text { font-size: 22px; }
  .logo-badge { font-size: 17px; padding: 2px 7px; }
  .icon-btn { width: 34px; height: 34px; }
  .nav-tab {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.03em; gap: 5px;
    padding: 8px 10px;
  }
  .nav-icon { width: 18px; height: 18px; }
  .hide-mobile { display: none; }
  .show-mobile-only { display: flex; }
}

/* ── Page Layout  ────────────────────────────────────────────── */
.page-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 10px 16px 10px 40px; display: flex; gap: 12px;
  min-height: calc(100vh - 98px);
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  width: 255px; flex-shrink: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  height: fit-content; position: sticky; top: 100px;
  overflow: hidden; display: none;
}
@media (min-width: 1024px) { .sidebar { display: block; } }
.sidebar-section { padding: 2px 0; }
.sidebar-title {
  font-size: 10px; font-weight: 800; color: var(--c-text3);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 10px 12px 5px;
  display: flex; align-items: center; gap: 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 500;
  color: var(--c-text2); text-decoration: none;
  transition: background 0.1s, color 0.1s;
}
.sidebar-link:hover { background: var(--c-surface2); color: var(--c-text1); }
.sidebar-link img { flex-shrink: 0; border-radius: 2px; }
.sidebar-hr { border: none; border-top: 1px solid var(--c-border2); margin: 3px 0; }

/* Country accordion */
.country-item { position: relative; }
.country-toggle {
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px; font-size: 12.5px; font-weight: 500;
  color: var(--c-text2); user-select: none;
  transition: background 0.1s;
}
.country-toggle:hover { background: var(--c-surface2); color: var(--c-text1); }
.country-toggle.open { color: var(--c-text1); background: var(--c-surface2); }
.country-arrow { margin-left: auto; flex-shrink: 0; transition: transform 0.2s; color: var(--c-text3); }
.country-toggle.open .country-arrow { transform: rotate(180deg); }
.country-leagues { display: none; }
.country-leagues.open { display: block; border-top: 1px solid var(--c-border2); }
.country-league-link {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 28px; font-size: 12px;
  color: var(--c-text2); text-decoration: none;
  border-bottom: 1px solid var(--c-border2);
  transition: background 0.1s, color 0.1s;
}
.country-league-link:last-child { border-bottom: none; }
.country-league-link:hover { background: var(--c-surface2); color: var(--c-text1); }
.country-league-link img { width: 14px; height: 14px; object-fit: contain; }
.country-leagues-loading { padding: 7px 12px 7px 28px; font-size: 11px; color: var(--c-text3); }

/* ── Main Content ───────────────────────────────────────────── */
.main-content { width: 710px; max-width: 710px; min-width: 0; flex-shrink: 0; }
@media (max-width: 1023px) { .main-content { width: 100%; max-width: 100%; flex: 1; } }

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
  overflow: clip;
  position: relative;
}

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--c-border2);
  flex-wrap: wrap;
}
.filter-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 14px; font-size: 12px; font-weight: 700;
  color: var(--c-text2); background: var(--c-surface2);
  border: 1.5px solid var(--c-border); border-radius: 10px;
  cursor: pointer; transition: all 0.15s;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.filter-btn:hover { background: var(--c-border); color: var(--c-text1); }
.filter-btn.active {
  background: var(--c-live);
  color: white;
}
.live-badge {
  background: var(--c-live); color: white;
  font-size: 10px; font-weight: 700; border-radius: 999px;
  padding: 1px 6px;
}
.filter-btn.active .live-badge {
  background: rgba(255,255,255,0.3);
}
.date-nav {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
}
.date-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--c-border);
  background: var(--c-surface); border-radius: 4px; cursor: pointer;
  font-size: 14px; color: var(--c-text2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.date-btn:hover { background: var(--c-surface2); }
.date-label {
  font-size: 12px; font-weight: 700; color: var(--c-text2);
  padding: 0 4px; letter-spacing: 0.02em;
}

/* ── League Header ──────────────────────────────────────────── */
.league-hdr {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  background: var(--c-surface2);
  border-top: 1px solid var(--c-border2);
  position: sticky; top: 98px; z-index: 10;
}
.league-hdr:first-child { border-top: none; }
.league-pin-btn {
  background: none; border: 1px solid transparent;
  cursor: pointer; padding: 4px 6px;
  display: flex; align-items: center;
  color: var(--c-text3); border-radius: 6px;
  transition: all 0.15s; flex-shrink: 0;
}
.league-pin-btn:hover {
  color: var(--c-primary);
  background: var(--c-surface2);
  border-color: var(--c-border);
}
.league-pin-btn.pinned {
  color: var(--c-live);
  background: rgba(232,0,77,0.06);
  border-color: rgba(232,0,77,0.2);
}
.league-pin-btn.pinned .pin-icon { fill: var(--c-live); stroke: var(--c-live); }
.pin-icon { transform: rotate(45deg); transition: transform 0.2s; }
.league-pin-btn.pinned .pin-icon { transform: rotate(0deg); }
.league-logo { border-radius: 2px; object-fit: contain; flex-shrink: 0; }
.league-hdr-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0; }
.league-name {
  font-size: 11.5px; font-weight: 800;
  color: var(--c-text1);
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.league-name:hover { color: var(--c-live); }
.league-country {
  font-size: 11.5px; font-weight: 800; color: var(--c-text1);
  text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap; margin-right: 4px;
}
.standings-link {
  font-size: 11px; font-weight: 600; color: var(--c-text3);
  transition: color 0.15s; display: none; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 2px;
}
.standings-link:hover { color: var(--c-text2); }
@media (min-width: 640px) { .standings-link { display: block; } }
.collapse-btn {
  background: none; border: none; cursor: pointer;
  color: var(--c-text3); padding: 2px; margin-left: 4px;
  display: flex; align-items: center;
  transition: transform 0.2s;
}
.collapse-btn.collapsed { transform: rotate(180deg); }

/* ── Match Row — VERTICAL STACK LAYOUT ─────────────────────── */
.match-row {
  display: grid;
  grid-template-columns: 30px 72px 1fr 34px;
  grid-template-areas: "star time teams scores";
  align-items: stretch;
  min-height: 50px;
  border-top: 1px solid var(--c-border2);
  text-decoration: none;
  transition: background 0.1s;
  cursor: pointer;
  background: var(--c-surface);
}
.match-row:first-child { border-top: none; }
.match-row:hover { background: #f7f8fa; }
.match-row.is-live { background: inherit; }
.match-row.flash { animation: goalFlash 10s ease 1; }
@keyframes goalFlash { 0%,100%{background:#fff8f9} 10%{background:#ffe0e8} 90%{background:#ffe0e8} }

/* Star */
.mr-star {
  grid-area: star;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text3); cursor: pointer;
}
.mr-star:hover svg { stroke: var(--c-live); }
.mr-star.starred svg { fill: #f59e0b; stroke: #f59e0b; }

/* Time/Status column */
.mr-time {
  grid-area: time;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 6px 4px; gap: 2px;
  border-right: 1px solid var(--c-border2);
}

/* Teams column — stacked */
.mr-teams {
  grid-area: teams;
  display: flex; flex-direction: column;
  justify-content: center; padding: 5px 8px;
  gap: 5px;
}
.mr-team-row {
  display: flex; align-items: center; gap: 6px; overflow: hidden;
}
.team-logo { flex-shrink: 0; object-fit: contain; width: 18px; height: 18px; }
.team-name {
  font-size: 13px; color: var(--c-text1); font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-name.winner { font-weight: 700; }

/* Scores column — stacked */
.mr-scores {
  grid-area: scores;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 5px 6px; gap: 5px;
  border-left: 1px solid var(--c-border2);
}
.score-num {
  font-size: 13px; font-weight: 700;
  color: var(--c-text3); line-height: 1;
  min-width: 14px; text-align: center;
}
.score-num.s-live { color: var(--c-live); font-size: 14px; font-weight: 800; }
.score-num.s-done { color: var(--c-text1); }

/* Penalty shootout: small number beside each goal (e.g. 1⁴ / 1²) */
.score-num { position: relative; }
.pen-sup {
  font-size: 9px; font-weight: 700; color: var(--c-text3);
  margin-left: 2px; vertical-align: 3px; line-height: 1;
}
.pen-sup.pen-win { color: var(--c-live); }

/* Time labels */
.t-ns  { font-size: 11.5px; color: var(--c-text3); font-weight: 500; }
.t-live { font-size: 11.5px; color: var(--c-live); font-weight: 700; }
.t-ft  { font-size: 9.5px; color: var(--c-text3); font-weight: 700; letter-spacing: 0em; text-align:center; }
.t-ht  {
  font-size: 9px; font-weight: 800; color: var(--c-live);
  background: rgba(232,0,77,0.07);
  padding: 3px 8px; border-radius: 6px;
  line-height: 1.25; text-align: center;
  letter-spacing: 0.02em; text-transform: uppercase;
}
/* Finished-after states: penalties / extra time — bold neutral pill */
.t-pen, .t-aet {
  font-size: 9px; font-weight: 800; color: var(--c-text2);
  background: var(--c-surface2);
  padding: 3px 7px; border-radius: 6px;
  line-height: 1.2; text-align: center;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.live-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--c-live);
  flex-shrink: 0; animation: pulse 1.5s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── Match Detail ────────────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700;
  color: var(--c-text2); margin-bottom: 10px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--c-text1); }
.match-hdr-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm); overflow: hidden; margin-bottom: 10px;
}
.match-league-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 12px; background: var(--c-surface2);
  border-bottom: 1px solid var(--c-border2); font-size: 12px;
}
.match-league-name { flex: 1; color: var(--c-text2); font-weight: 500; }
.match-league-time { color: var(--c-text2); font-weight: 700; }
.match-score-area {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; padding: 28px 20px;
}
.match-team {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-decoration: none; flex: 1; max-width: 180px;
}
.match-team-name {
  font-size: 14px; font-weight: 700; color: var(--c-text1);
  text-align: center; line-height: 1.3;
}
.match-score-box { text-align: center; flex-shrink: 0; }
.match-score-num {
  font-size: 44px; font-weight: 900; color: var(--c-text1);
  display: flex; align-items: center; gap: 8px;
}
.match-score-num.ns { font-size: 28px; color: var(--c-text3); }
.match-score-sep { color: var(--c-text3); font-weight: 300; }
.match-ht-score { font-size: 11px; color: var(--c-text3); margin-top: 4px; }
.match-pen-score { font-size: 12px; color: var(--c-text1); font-weight: 800; margin-top: 4px; }

/* Tabs */
.tab-bar {
  display: flex; border-bottom: 1px solid var(--c-border);
  overflow-x: auto; scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab {
  padding: 11px 16px; font-size: 12.5px; font-weight: 700;
  color: var(--c-text3); background: none; border: none;
  border-bottom: 3px solid transparent; cursor: pointer;
  white-space: nowrap; transition: all 0.15s; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.tab:hover { color: var(--c-text1); }
.tab.active { color: var(--c-primary); border-bottom-color: var(--c-live); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.loading-tab { padding: 40px; text-align: center; color: var(--c-text3); font-size: 13px; }

/* Events */
.events-list { padding: 4px 0; }
.event-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 16px; font-size: 13px; color: var(--c-text2);
  border-top: 1px solid var(--c-border2);
}
.event-row:first-child { border-top: none; }
.event-row.ev-away { flex-direction: row-reverse; }
.ev-time { font-size: 11px; font-weight: 700; color: var(--c-live); min-width: 28px; }
.ev-player { font-weight: 500; color: var(--c-text1); }
.ev-assist { color: var(--c-text3); font-size: 12px; }
.card-y { display: inline-block; width: 10px; height: 14px; background: #f59e0b; border-radius: 2px; }
.card-r { display: inline-block; width: 10px; height: 14px; background: var(--c-live); border-radius: 2px; }

/* H2H */
.h2h-row {
  display: grid; grid-template-columns: 80px 1fr 60px 1fr;
  padding: 7px 16px; font-size: 12px; gap: 8px;
  border-top: 1px solid var(--c-border2); text-decoration: none;
  color: var(--c-text2); transition: background 0.1s;
}
.h2h-row:hover { background: var(--c-surface2); }
.h2h-date { color: var(--c-text3); }
.h2h-home { text-align: right; }
.h2h-score { text-align: center; font-weight: 700; color: var(--c-text1); }

/* Odds */
.odds-row { display: flex; gap: 6px; padding: 16px; }

/* ── Odds mode — desktop ────────────────────────────────────── */
.match-row.odds-mode {
  grid-template-columns: 30px 72px minmax(0,1fr) 34px 108px;
  grid-template-areas: "star time teams scores odds";
}
.match-row.odds-mode .mr-teams { min-width: 0; overflow: hidden; }
.match-row.odds-mode .mr-team-row { overflow: hidden; }
.match-row.odds-mode .team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-odds {
  grid-area: odds;
  display: flex; align-items: center; justify-content: space-between;
  gap: 3px; padding: 0 6px; flex-shrink: 0;
}
.odd-pill {
  flex: 1; text-align: center;
  font-size: 10px; font-weight: 700;
  color: var(--c-text2);
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 3px; padding: 2px 1px;
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap; min-width: 0;
}
.odd-pill:hover { background: var(--c-primary); color: white; border-color: var(--c-primary); }
.odd-pill.best { background: rgba(22,163,74,0.1); color: #16a34a; border-color: #16a34a; }
.odd-pill.odd-high {
  background: rgba(22,163,74,0.08);
  color: #16a34a;
  border-color: #16a34a;
  font-weight: 800;
}
.odd-pill.odd-high::after { content: ''; }
.odd-pill.odd-low {
  background: rgba(232,0,77,0.06);
  color: #e8004d;
  border-color: #e8004d;
}
.odd-pill.odd-low::after { content: ''; }
.odds-header {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 108px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px;
}
.odds-header span {
  flex: 1; text-align: center;
  font-size: 10px; font-weight: 800;
  color: var(--c-text3); text-transform: uppercase;
}
.odd-item {
  flex: 1; text-align: center; background: var(--c-surface2);
  padding: 12px 8px; border-radius: 6px; border: 1px solid var(--c-border);
}
.odd-label { display: block; font-size: 11px; color: var(--c-text3); margin-bottom: 6px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.odd-val { display: block; font-size: 18px; font-weight: 800; color: var(--c-primary); }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state { padding: 48px 20px; text-align: center; }
.empty-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.4; }
.empty-title { font-size: 14px; font-weight: 700; color: var(--c-text2); margin-bottom: 6px; }
.empty-sub { font-size: 12px; color: var(--c-text3); }
.empty-icon svg { width: 64px; height: 64px; display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── SEO Snap ────────────────────────────────────────────────── */
#seo-snap { display: none; }
body.js-ready #seo-snap { display: none !important; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--c-primary); color: rgba(255,255,255,0.6);
  margin-top: 32px; padding: 36px 20px 20px;
}
.footer-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 28px; padding-bottom: 28px;
}
.footer-logo {
  display: flex; align-items: center; text-decoration: none; margin-bottom: 10px;
  font-weight: 900; font-size: 18px; color: white; letter-spacing: -0.5px;
}
.footer-badge {
  background: var(--c-live); color: white;
  padding: 1px 6px; border-radius: 4px; margin-left: 3px; font-size: 14px;
}
.footer-tagline { font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.35); }
.footer-heading { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); margin-bottom: 10px; }
.footer-link { display: block; font-size: 12.5px; color: rgba(255,255,255,0.55); margin-bottom: 7px; transition: color 0.15s; }
.footer-link:hover { color: white; }
.footer-bottom {
  max-width: 1300px; margin: 0 auto; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: center; text-align: center;
  font-size: 11px; color: rgba(255,255,255,0.25);
}


/* ══════════════════════════════════════════════════════════════
   MOBILE — full responsive overhaul (max-width: 1023px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {

  /* ── Body & base ─────────────────────────────────────── */
  html { font-size: 13px; }
  body { overflow-x: hidden; }

  /* ── Main content fills screen ───────────────────────── */
  .main-content { width: 100%; max-width: 100%; flex: 1; min-width: 0; }

  /* ── Header ──────────────────────────────────────────── */
  .header-inner { padding: 0 16px; height: 62px; }
  .logo { margin-left: 0; }
  .logo-text { font-size: 20px; letter-spacing: -0.5px; }
  .logo-badge { font-size: 15px; padding: 2px 6px; border-radius: 4px; }
  .icon-btn { width: 32px; height: 32px; border-radius: 6px; }

  /* ── Sport nav ───────────────────────────────────────── */
  .sport-nav-inner { padding: 0 6px; justify-content: space-between; }
  .nav-fav .fav-label { display: none; }
  .nav-icon { display: none; }
  .nav-tab {
    font-size: 12px; font-weight: 700;
    padding: 8px 4px; gap: 0;
    letter-spacing: 0;
  }
  .nav-fav { padding: 8px 4px; }

  /* ── Page wrap ───────────────────────────────────────── */
  .page-wrap { padding: 6px 8px; gap: 0; flex-direction: column; }
  .sidebar { display: none; }

  /* ── Card ────────────────────────────────────────────── */
  .card { border-radius: 4px; }

  /* ── Filter bar ──────────────────────────────────────── */
  .filter-bar {
    padding: 8px 10px; gap: 5px;
    flex-wrap: wrap;
    border-bottom: none;
  }
  .filter-btn {
    padding: 5px 10px; font-size: 11px; font-weight: 700;
    border-radius: 10px; white-space: nowrap; flex-shrink: 0;
  }
  .live-badge { font-size: 9px; padding: 1px 4px; }

  /* Date nav — full width row below filters */
  .date-nav { position: static; margin-left: 0; width: 100%; }
  .filter-bar {
    justify-content: center;
    flex-wrap: wrap;
  }
  .date-nav {
    width: 96%; order: 10;
    display: flex; align-items: center;
    background: var(--c-surface2);
    border: 2px solid var(--c-primary);
    border-radius: 10px;
    margin-top: 6px;
    overflow: hidden;
    gap: 0;
    align-self: center;
  }
  .date-btn {
    width: 48px; height: 40px;
    background: var(--c-surface);
    border: none;
    border-right: 2px solid var(--c-border);
    font-size: 22px; font-weight: 900;
    color: var(--c-text1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: background 0.15s;
  }
  #dateNext { border-right: none; border-left: 2px solid var(--c-border); }
  .date-btn:active { background: var(--c-border2); }
  .date-label {
    flex: 1; text-align: center;
    font-size: 13px; font-weight: 700;
    color: var(--c-text1);
    height: 40px; line-height: 40px;
    padding: 0 8px;
    display: flex; align-items: center; justify-content: center;
  }
  #dateLabel input[type="date"] {
    position: absolute; opacity: 0;
    width: 100%; height: 100%;
    top: 0; left: 0; cursor: pointer;
  }

  /* ── League header ───────────────────────────────────── */
  .league-hdr { padding: 6px 8px; top: 88px; }
  .league-name { font-size: 11px; letter-spacing: 0.02em; }
  .league-country { font-size: 9px; }
  .standings-link { display: none; }

  /* ── Match row ───────────────────────────────────────── */
  .match-row {
    grid-template-columns: 28px 46px 1fr 28px;
    min-height: 44px;
  }
  .mr-star { width: 28px; }
  .mr-time { padding: 0 2px; }
  .mr-teams { padding: 4px 6px; gap: 3px; }
  .mr-team-row { gap: 5px; }
  .team-logo { width: 14px; height: 14px; }
  .team-name { font-size: 12px; }
  .mr-scores { padding: 4px 3px; gap: 3px; border-left-width: 1px; }
  .score-num { font-size: 12px; min-width: 12px; }

  /* Status labels - compact for narrow column */
  .t-ft { font-size: 9px; }
  .t-live { font-size: 10px; }
  .t-ns { font-size: 10px; }
  .t-ht { font-size: 8px; padding: 3px 6px; }
  .t-pen, .t-aet { font-size: 7.5px; padding: 3px 5px; }
  .live-dot { width: 5px; height: 5px; margin-right: 2px; }

  /* ── Match detail ────────────────────────────────────── */
  .match-score-num { font-size: 32px; }
  .match-team img { width: 44px; height: 44px; }
  .match-team-name { font-size: 13px; }

  /* ── Odds on mobile ──────────────────────────────────── */
  .match-row.odds-mode { grid-template-columns: 28px 46px 1fr 28px 96px; }
  .mr-odds { padding: 0 4px; gap: 2px; }
  .odd-pill { width: 28px; font-size: 9px; padding: 3px 0; }
  .odds-header { width: 96px; padding: 0 4px; }
  .odds-header span { width: 28px; }

  /* ── Notifications ───────────────────────────────────── */
  .t-notify { font-size: 8px; padding: 2px 3px; }

  /* ── Footer ──────────────────────────────────────────── */
  .footer { padding: 24px 12px 16px; margin-top: 20px; }
  .footer-inner { gap: 20px; }
}

/* ══════════════════════════════════════════════════════════════
   TEAM & LEAGUE PAGES
══════════════════════════════════════════════════════════════ */

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--c-text3); margin-bottom: 8px;
  padding: 0 2px;
}
.breadcrumb a { color: var(--c-text2); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--c-live); }
.bc-sep { color: var(--c-text3); }

/* Entity card (team/league header) */
.entity-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  margin-bottom: 10px;
}
.entity-header {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
}
.entity-logo {
  width: 56px; height: 56px; object-fit: contain; flex-shrink: 0;
}
.entity-info { flex: 1; min-width: 0; }
.entity-name {
  font-size: 20px; font-weight: 800; color: var(--c-text1);
  margin: 0 0 4px; letter-spacing: -0.3px;
}
.entity-meta {
  font-size: 12px; color: var(--c-text3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.entity-star {
  background: none; border: none; cursor: pointer;
  color: var(--c-text3); padding: 6px;
  transition: color 0.15s; flex-shrink: 0;
}
.entity-star:hover { color: var(--c-live); }

/* Entity tabs */
.entity-tabs {
  display: flex; border-top: 1px solid var(--c-border2);
  overflow-x: auto; scrollbar-width: none;
}
.entity-tabs::-webkit-scrollbar { display: none; }
.etab {
  padding: 11px 16px; font-size: 12.5px; font-weight: 700;
  color: var(--c-text3); background: none; border: none;
  border-bottom: 3px solid transparent; cursor: pointer;
  white-space: nowrap; transition: all 0.15s; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.etab:hover { color: var(--c-text1); }
.etab.active { color: var(--c-primary); border-bottom-color: var(--c-live); }
.etab-pane { display: none; }
.etab-pane.active { display: block; }

/* Section headers inside cards */
.section-hdr {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 11px; font-weight: 800;
  color: var(--c-text3); text-transform: uppercase;
  letter-spacing: 0.08em; border-bottom: 1px solid var(--c-border2);
  background: var(--c-surface2);
}

/* Detail match rows */
.detail-match-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--c-border2);
  text-decoration: none; transition: background 0.1s;
  min-height: 48px;
}
.detail-match-row:first-child { border-top: none; }
.detail-match-row:hover { background: #fafbfc; }

.dm-time {
  font-size: 11px; color: var(--c-text3); font-weight: 600;
  min-width: 70px; flex-shrink: 0; line-height: 1.4;
}
.dm-time.t-live { color: var(--c-live); }

.dm-teams {
  flex: 1; display: flex; align-items: center;
  gap: 8px; min-width: 0;
}
.dm-team {
  display: flex; align-items: center; gap: 6px;
  flex: 1; min-width: 0; font-size: 13px; color: var(--c-text1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-team img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.dm-team.dm-away { justify-content: flex-end; text-align: right; }
.dm-team.dm-away img { order: 2; }
.dm-team.bold { font-weight: 700; }

.dm-score {
  font-size: 14px; font-weight: 700; color: var(--c-text3);
  min-width: 44px; text-align: center; flex-shrink: 0;
}
.dm-score.done { color: var(--c-text1); }
.dm-score.live { color: var(--c-live); }

.dm-league { font-size: 11px; color: var(--c-text3); flex-shrink: 0; }

/* W/D/L badges */
.result-badge {
  width: 22px; height: 22px; border-radius: 4px;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.result-badge.win  { background: #16a34a; }
.result-badge.draw { background: #d97706; }
.result-badge.loss { background: var(--c-live); }

/* Standings table */
.standings-table { overflow-x: auto; }
.st-head, .st-row {
  display: grid;
  grid-template-columns: 32px 1fr 32px 32px 32px 32px 38px 38px;
  align-items: center; padding: 8px 14px;
  font-size: 12.5px; gap: 4px;
}
.st-head {
  font-size: 10px; font-weight: 800; color: var(--c-text3);
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--c-surface2); border-bottom: 1px solid var(--c-border2);
}
.st-row { border-top: 1px solid var(--c-border2); color: var(--c-text2); }
.st-row:hover { background: #fafbfc; }
.st-pos { color: var(--c-text3); font-size: 12px; }
.st-team {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--c-text1); overflow: hidden;
}
.st-team img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.st-num { text-align: center; color: var(--c-text2); }
.st-pts { text-align: center; color: var(--c-text1); }

/* Utility */
.mb-8 { margin-bottom: 8px; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { display:flex;align-items:center;gap:6px;font-size:12px;color:var(--c-text3);margin-bottom:10px;flex-wrap:wrap; }
.breadcrumb a { color:var(--c-text3);text-decoration:none;transition:color 0.15s; }
.breadcrumb a:hover { color:var(--c-primary); }
.bc-sep { color:var(--c-border); }

/* ── Entity Card ────────────────────────────────────────────── */
.entity-card { background:white;border-radius:var(--r-md);border:1px solid var(--c-border);box-shadow:var(--sh-sm);overflow:hidden;margin-bottom:10px; }
.entity-header { display:flex;align-items:center;gap:14px;padding:16px 16px 0; }
.entity-logo { width:64px;height:64px;object-fit:contain;flex-shrink:0; }
.entity-info { flex:1;min-width:0; }
.entity-name { font-size:22px;font-weight:900;color:var(--c-text1);letter-spacing:-0.5px;margin:0 0 4px; }
.entity-meta { font-size:12px;color:var(--c-text3); }
.entity-star { background:none;border:1px solid var(--c-border);border-radius:8px;cursor:pointer;padding:8px;color:var(--c-text3);display:flex;align-items:center;transition:all 0.15s;flex-shrink:0; }
.entity-star:hover { border-color:var(--c-live);color:var(--c-live); }

/* ── Entity Tabs ────────────────────────────────────────────── */
.entity-tabs { display:flex;border-top:1px solid var(--c-border2);margin-top:12px;overflow-x:auto;scrollbar-width:none; }
.entity-tabs::-webkit-scrollbar { display:none; }
.etab { padding:10px 14px;font-size:13px;font-weight:600;color:var(--c-text3);background:none;border:none;border-bottom:3px solid transparent;cursor:pointer;white-space:nowrap;transition:all 0.15s;flex-shrink:0;font-family:inherit; }
.etab:hover { color:var(--c-text1); }
.etab.active { color:var(--c-primary);border-bottom-color:var(--c-primary); }
.etab-pane { display:none; }
.etab-pane.active { display:block; }

/* ── Detail Match Row ───────────────────────────────────────── */
.detail-match-row { display:flex;align-items:center;gap:10px;padding:9px 14px;border-top:1px solid var(--c-border2);text-decoration:none;color:var(--c-text1);transition:background 0.1s;font-size:13px; }
.detail-match-row:first-child { border-top:none; }
.detail-match-row:hover { background:var(--c-surface2); }
.dm-time { font-size:11px;color:var(--c-text3);font-weight:500;min-width:70px;flex-shrink:0; }
.dm-teams { flex:1;display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden; }
.dm-team { display:flex;align-items:center;gap:5px;flex:1;min-width:0;overflow:hidden;font-size:12.5px;font-weight:500;white-space:nowrap;text-overflow:ellipsis; }
.dm-team img { width:18px;height:18px;object-fit:contain;flex-shrink:0; }
.dm-away { flex-direction:row-reverse;text-align:right; }
.dm-score { font-size:13px;font-weight:700;color:var(--c-text3);min-width:44px;text-align:center;flex-shrink:0; }
.dm-score.live { color:var(--c-live); }
.dm-score.done { color:var(--c-text1); }
.dm-league { font-size:11px;color:var(--c-text3);flex-shrink:0; }

/* ── Result Badge ───────────────────────────────────────────── */
.result-badge { display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:4px;font-size:10px;font-weight:800;color:white;flex-shrink:0; }
.result-badge.win { background:#16a34a; }
.result-badge.draw { background:#ca8a04; }
.result-badge.loss { background:var(--c-live); }

/* ── Section Header ─────────────────────────────────────────── */
.section-hdr { padding:8px 14px;font-size:10px;font-weight:800;color:var(--c-text3);text-transform:uppercase;letter-spacing:0.08em;background:var(--c-surface2);border-bottom:1px solid var(--c-border2); }
.mb-8 { margin-bottom:8px; }

/* ── League Detail Header ───────────────────────────────────── */
.league-detail-hdr { display:flex;align-items:center;justify-content:space-between;background:white;border-radius:var(--r-md);border:1px solid var(--c-border);box-shadow:var(--sh-sm);padding:16px;margin-bottom:10px;flex-wrap:wrap;gap:12px; }
.live-pill { background:var(--c-live);color:white;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:700; }

/* ── Standings ──────────────────────────────────────────────── */
.standings-table { width:100%;border-collapse:collapse;font-size:12.5px; }
.standings-table th { padding:8px 10px;text-align:left;font-size:10px;font-weight:700;color:var(--c-text3);text-transform:uppercase;letter-spacing:0.05em;background:#f8f9fa;border-bottom:1px solid var(--c-border); }
.standings-table td { padding:8px 10px;border-top:1px solid var(--c-border2);color:var(--c-text2); }
.standings-table tr:hover td { background:var(--c-surface2); }
.standings-table .pos { font-weight:700;color:var(--c-text1);width:28px; }
.standings-table .club { font-weight:500;color:var(--c-text1);display:flex;align-items:center;gap:7px; }
.standings-table .pts { font-weight:800;color:var(--c-text1); }
.form-badge { display:inline-block;width:16px;height:16px;border-radius:3px;font-size:9px;font-weight:700;color:white;text-align:center;line-height:16px;margin-right:2px; }
.form-W { background:#16a34a; }
.form-D { background:#ca8a04; }
.form-L { background:#dc2626; }

/* ── Scorers ────────────────────────────────────────────────── */
.scorers-row { display:grid;grid-template-columns:32px 40px 1fr 1fr 48px;align-items:center;gap:8px;padding:10px 14px;border-top:1px solid var(--c-border2);font-size:13px; }
.scorers-row:first-child { border-top:none; }
.scorers-row:hover { background:var(--c-surface2); }

/* ── Team page tab bar mobile fix ───────────────────────────── */
@media (max-width: 1023px) {
  .tab-bar {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab {
    flex-shrink: 0;
    padding: 8px 9px;
    font-size: 11px;
    white-space: nowrap;
  }
}

/* ── Static content pages (about, privacy, terms, contact, advertise) ── */
.static-page { padding: 28px 30px 40px; }
.static-title { font-size: 28px; font-weight: 900; color: var(--c-text1); margin-bottom: 6px; line-height: 1.2; }
.static-updated { font-size: 13px; color: var(--c-text3); margin-bottom: 22px; }
.static-body { color: var(--c-text2); font-size: 15px; line-height: 1.7; }
.static-body h2 { font-size: 19px; font-weight: 800; color: var(--c-text1); margin: 26px 0 10px; }
.static-body h3 { font-size: 16px; font-weight: 700; color: var(--c-text1); margin: 20px 0 8px; }
.static-body p { margin: 0 0 14px; }
.static-body ul { margin: 0 0 14px; padding-left: 22px; }
.static-body li { margin-bottom: 7px; }
.static-body a { color: var(--c-live); text-decoration: none; }
.static-body a:hover { text-decoration: underline; }
.static-body strong { color: var(--c-text1); font-weight: 700; }
@media (max-width: 1023px) { .static-page { padding: 20px 16px 32px; } .static-title { font-size: 23px; } }

/* ── More Sports dropdown ──────────────────────────────────────── */
.more-sports-wrap { position: relative; display: flex; align-items: stretch; }
.more-sports-btn  { display: flex; align-items: center; gap: 5px; }
.more-chevron     { transition: transform 0.15s; }
/* On mobile the More tab is just the caret (label hidden) — enlarge for tap/clarity */
@media (max-width: 1023px) { .more-sports-btn .more-chevron { width: 16px; height: 16px; } }
.more-sports-btn[aria-expanded="true"] .more-chevron { transform: rotate(180deg); }

.more-sports-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  min-width: 180px;
  background: var(--c-primary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 200;
  overflow: hidden;
}
.more-sports-dropdown.open { display: block; }
.msd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}
.msd-item:hover { background: rgba(255,255,255,0.08); color: white; }
.msd-item.active { color: white; background: rgba(232,0,77,0.15); }
.msd-item svg { opacity: 0.7; flex-shrink: 0; }
.msd-item.active svg { opacity: 1; }
/* Am. Football & Handball live in the bar on desktop, in this dropdown on mobile */
@media (min-width: 1024px) { .more-sports-dropdown .show-mobile-only { display: none; } }
@media (max-width: 1023px) { .more-sports-dropdown .show-mobile-only { display: flex; } }

/* ── Period scores column (basketball quarters, tennis sets) ────── */
.match-row.has-periods {
  grid-template-columns: 30px 72px 1fr 34px auto;
  grid-template-areas: "star time teams scores periods";
}
.mr-periods {
  grid-area: periods;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 5px 8px 5px 6px;
  gap: 5px;
  border-left: 1px solid var(--c-border2);
}
.period-row {
  display: flex; gap: 6px;
  justify-content: flex-start;
}
.period-num {
  font-size: 11px; font-weight: 500;
  color: var(--c-text3); line-height: 1;
  min-width: 14px; text-align: right;
}

/* Date nav <a> links same style as buttons */
a.date-btn {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}

/* Hide period column on narrow screens */
@media (max-width: 600px) {
  .match-row.has-periods {
    grid-template-columns: 30px 72px 1fr 34px;
    grid-template-areas: "star time teams scores";
  }
  .mr-periods { display: none; }
}

/* ── Sidebar extras ───────────────────────────────────────────── */
.sidebar-link-sm { font-size: 11.5px; padding: 5px 10px; gap: 7px; }
.sidebar-link-sm span { font-size: 11.5px; }
.sidebar-show-more {
  width: 100%; background: none; border: none; cursor: pointer;
  font-size: 11.5px; font-weight: 600; color: var(--c-text3);
  padding: 6px 10px; text-align: left;
  transition: color 0.15s;
}
.sidebar-show-more:hover { color: var(--c-live); }

/* ── SEO Explanations block ───────────────────────────────────── */
.extra-content {
  margin-top: 8px;
  border-radius: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  overflow: hidden;
}
.extra-content__body {
  padding: 14px 16px 0;
  font-size: 12.5px; line-height: 1.65;
  color: var(--c-text3);
  max-height: 68px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.extra-content__body.open { max-height: 600px; }
.extra-content__body strong { color: var(--c-text2); font-weight: 700; }
.extra-content__body a { color: var(--c-live); text-decoration: underline; }
.extra-content__btn {
  width: 100%; background: none; border: none; cursor: pointer;
  font-size: 11.5px; font-weight: 700; color: var(--c-text3);
  padding: 8px 16px 10px; text-align: left;
  letter-spacing: 0.02em; text-transform: uppercase;
  transition: color 0.15s;
}
.extra-content__btn:hover { color: var(--c-text1); }

/* ── SEO extra-content flat (no fold) ──── */
.extra-content {
  margin-top: 8px; padding: 12px 16px;
  border-radius: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  font-size: 12.5px; line-height: 1.65; color: var(--c-text3);
}
.extra-content strong { color: var(--c-text2); font-weight: 700; }
.extra-content a { color: var(--c-live); text-decoration: underline; }

/* ── Sport page tabs (Summary/Results/Fixtures) ─────────────── */
.tab-btn {
  padding: 11px 16px; font-size: 12.5px; font-weight: 700;
  color: var(--c-text3); background: none; border: none;
  border-bottom: 3px solid transparent; cursor: pointer;
  white-space: nowrap; transition: all 0.15s; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.03em;
  display: inline-flex; align-items: center;
}
.tab-btn:hover { color: var(--c-text1); }
.tab-btn.active { color: var(--c-primary); border-bottom-color: var(--c-live); }

/* ── Tab count badge ─────────────────────── */
.tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-surface2); color: var(--c-text3);
  font-size: 10px; font-weight: 700; border-radius: 10px;
  padding: 1px 6px; margin-left: 5px; min-width: 18px;
}
.tab-btn.active .tab-count {
  background: var(--c-live); color: white;
}

/* ── Header Hamburger Menu Panel ────────────────────────────── */
.hm-panel {
  position: fixed; top: 60px; right: 12px;
  width: 290px; max-width: calc(100vw - 24px); max-height: 80vh;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.22);
  z-index: 9999; overflow: hidden;
  display: flex; flex-direction: column;
}
.hm-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; width: 100%;
  background: none; border: none; border-bottom: 1px solid var(--c-border2);
  cursor: pointer; font-family: inherit; text-align: left;
  transition: background 0.1s; color: var(--c-text1);
}
.hm-row:last-child { border-bottom: none; }
.hm-row:hover { background: var(--c-surface2); }
.hm-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--c-text2); }
.hm-label { font-size: 15px; font-weight: 600; color: var(--c-text1); flex: 1; }
.hm-chev { color: var(--c-text3); flex-shrink: 0; }
.hm-toggle {
  width: 44px; height: 24px; border-radius: 12px; flex-shrink: 0;
  background: var(--c-border); border: none; cursor: pointer;
  position: relative; transition: background 0.2s; padding: 0;
}
.hm-toggle.on { background: var(--c-live); }
.hm-toggle-knob {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: left 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.hm-toggle.on .hm-toggle-knob { left: 22px; }
.hm-back-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--c-border2); flex-shrink: 0;
}
.hm-back-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--c-text2); font-size: 14px; font-weight: 600; font-family: inherit; padding: 0;
}
.hm-back-btn:hover { color: var(--c-text1); }
.hm-view-title { font-size: 15px; font-weight: 800; color: var(--c-text1); }
/* Active view fills the panel so its inner list can scroll (30+ languages) */
#hmMain, #hmLang, #hmSettings { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.hm-scroll { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.hm-section-title { font-size: 13px; font-weight: 800; color: var(--c-text1); margin: 0 0 10px; }
.hm-radio-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; cursor: pointer; }
.hm-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--c-border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: border-color 0.15s;
}
.hm-radio.selected { border-color: var(--c-win); }
.hm-radio.selected::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c-win); }
.hm-radio-label { font-size: 14px; color: var(--c-text2); }
.hm-foot { padding: 14px 18px; border-top: 1px solid var(--c-border2); }
.hm-save-btn {
  width: 100%; padding: 11px; background: var(--c-primary); color: #fff;
  border: none; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 700; font-family: inherit;
}
.hm-lang-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 16px; background: none; border: none; cursor: pointer;
  border-bottom: 1px solid var(--c-border2); font-family: inherit; transition: background 0.1s;
}
.hm-lang-item:hover { background: var(--c-surface2); }
.hm-lang-item.active { background: rgba(22,163,74,0.10); }
.hm-lang-name { font-size: 14px; color: var(--c-text1); flex: 1; text-align: left; }
.hm-lang-item.active .hm-lang-name { font-weight: 700; }
.hm-lang-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--c-border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hm-lang-item.active .hm-lang-radio { border-color: var(--c-win); }
.hm-lang-item.active .hm-lang-radio::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c-win); }

/* ── Goal toast notification ───────────────────────────────── */
.goal-toast {
  position: fixed; left: 16px; bottom: 16px;
  background: var(--c-primary); color: #fff;
  padding: 12px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  z-index: 9999; display: flex; align-items: center; gap: 9px;
  animation: goalToastIn 0.3s ease;
  max-width: 300px;
}
.goal-toast .gt-score { color: var(--c-live); font-weight: 800; }
@keyframes goalToastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Dark mode ─────────────────────────────────────────────── */
html.dark {
  --c-text1:   #f1f5f9;
  --c-text2:   #cbd5e1;
  --c-text3:   #94a3b8;
  --c-surface: #1b2735;
  --c-surface2:#27384b;
  --c-border:  #33475c;
  --c-border2: #243343;
}
html.dark body { background: #0d141d; }
html.dark .match-row:hover,
html.dark .detail-match-row:hover,
html.dark .st-row:hover { background: var(--c-surface2); }
html.dark .entity-card,
html.dark .league-detail-hdr { background: var(--c-surface); }
html.dark .match-row.flash { animation: goalFlashDark 10s ease 1; }
@keyframes goalFlashDark { 0%,100%{background:var(--c-surface)} 10%{background:#3a1f2b} 90%{background:#3a1f2b} }
html.dark img.team-logo[src*="flagcdn"],
html.dark .league-logo { /* keep logos as-is */ }

/* ── Search modal ── */
.search-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: flex-start; justify-content: center;
}
.search-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}
.search-box {
  position: relative;
  width: 100%; max-width: 640px;
  margin: 56px 16px 16px;
  background: var(--c-surface);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 80px);
}
.search-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.search-head-title { font-size: 18px; font-weight: 800; color: var(--c-text1); }
.search-close {
  background: none; border: none; cursor: pointer;
  color: var(--c-text3); padding: 4px; display: flex; flex-shrink: 0;
  border-radius: 8px; margin: -4px -4px -4px 0;
}
.search-close:hover { background: var(--c-surface2); color: var(--c-text1); }
.search-body {
  display: flex; flex-direction: column; min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 14px;
}
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--c-border);
  border-radius: 9px;
  background: var(--c-surface2);
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.search-bar:focus-within { border-color: var(--c-live); background: var(--c-surface); }
.search-bar-icon { color: var(--c-text3); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15px; font-weight: 500; color: var(--c-text1);
  font-family: inherit; min-width: 0;
}
.search-input::placeholder { color: var(--c-text3); }
.search-sport { position: relative; flex-shrink: 0; }
.search-sport-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px 2px 4px 12px; margin-left: 4px;
  border-left: 1px solid var(--c-border);
  font-family: inherit; font-size: 12px; font-weight: 800;
  letter-spacing: 0.04em; color: var(--c-text2); white-space: nowrap;
}
.search-sport-btn:hover { color: var(--c-text1); }
.search-sport-chev { transition: transform 0.18s; flex-shrink: 0; }
.search-sport-menu.open ~ .search-sport-btn .search-sport-chev,
.search-sport-btn[aria-expanded="true"] .search-sport-chev { transform: rotate(180deg); }
.search-sport-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px; max-height: 280px; overflow-y: auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  padding: 5px; z-index: 5;
}
.search-sport-menu.open { display: block; }
.search-sport-opt {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 9px 12px; border-radius: 7px;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--c-text1);
}
.search-sport-opt:hover { background: var(--c-surface2); }
.search-sport-opt.active { color: var(--c-live); font-weight: 800; }
.search-hint {
  font-size: 12.5px; color: var(--c-text3);
  padding: 12px 2px 2px;
  flex-shrink: 0;
}
.search-results { margin: 0 -18px; }
.search-section-title {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--c-text3); text-transform: uppercase;
  padding: 14px 18px 6px;
}
.search-result-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 18px; text-decoration: none;
}
.search-result-row:hover { background: var(--c-surface2); }
.search-result-row img { border-radius: 50%; object-fit: contain; flex-shrink: 0; background: var(--c-surface2); }
.search-result-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.search-result-name {
  font-size: 14px; font-weight: 700; color: var(--c-text1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-result-sub {
  font-size: 11px; font-weight: 600; color: var(--c-text3);
  text-transform: uppercase; letter-spacing: 0.03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-no-results {
  padding: 24px 18px; text-align: center;
  font-size: 13px; color: var(--c-text3);
}
@media (max-width: 520px) {
  .search-box { margin: 0; max-width: none; height: 100%; max-height: 100%; border-radius: 0; }
  .search-modal { align-items: stretch; }
}

