/*
Theme Name: VN Football Live
Theme URI: https://vnfootball.live
Author: VN Football
Author URI: https://vnfootball.live
Description: Theme bóng đá trực tiếp chuyên nghiệp cho Việt Nam - Tỷ lệ kèo, trực tiếp, lịch thi đấu và kết quả
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vn-football
Tags: sports, football, dark, vietnamese, live-scores
*/

/* ─── CSS Variables ─── */
:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2128;
  --bg-hover: #21262d;
  --bg-input: #0d1117;
  --border: #30363d;
  --border-light: #21262d;

  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;

  --accent-red: #e63946;
  --accent-green: #2ea043;
  --accent-green-light: #3fb950;
  --accent-yellow: #d29922;
  --accent-blue: #388bfd;
  --accent-orange: #f0883e;

  --live-color: #2ea043;
  --live-pulse: #3fb950;

  --font-display: 'Bebas Neue', 'Black Han Sans', sans-serif;
  --font-body: 'Be Vietnam Pro', 'Noto Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
  --shadow-glow-red: 0 0 20px rgba(230,57,70,0.3);
  --shadow-glow-green: 0 0 20px rgba(46,160,67,0.3);

  --header-h: 56px;
  --sidebar-w: 220px;
  --right-sidebar-w: 280px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-red); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Layout ─── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-container {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--right-sidebar-w);
  gap: 0;
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 12px;
  gap: 12px;
}

.main-container.no-right-sidebar {
  grid-template-columns: var(--sidebar-w) 1fr;
}

.main-container.full-width {
  grid-template-columns: 1fr;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-badge {
  background: var(--accent-red);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: .5px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.logo-live-badge {
  background: var(--accent-green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 1px;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.main-nav a.truc-tiep {
  color: var(--accent-green-light);
  font-weight: 700;
}

.main-nav a.truc-tiep::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent-green-light);
  border-radius: 50%;
  display: inline-block;
  animation: livePulse 1.5s infinite;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-search {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all .2s;
}

.btn-search:hover { color: var(--text-primary); border-color: var(--text-muted); }

.btn-login {
  background: var(--accent-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}

.btn-login:hover {
  background: #c62d39;
  transform: translateY(-1px);
}

/* ─── Filter Bar ─── */
.filter-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all .2s;
  white-space: nowrap;
  cursor: pointer;
}

.filter-btn:hover { color: var(--text-primary); border-color: var(--text-muted); }

.filter-btn.active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

.filter-btn .count {
  background: rgba(255,255,255,0.15);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
}

.filter-btn.live-btn .dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green-light);
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}

/* ─── Left Sidebar ─── */
.sidebar-left {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 12px);
}

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

.league-list { padding: 4px 0; }

.league-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .2s;
  border-left: 2px solid transparent;
}

.league-item:hover {
  background: var(--bg-hover);
  border-left-color: var(--accent-red);
}

.league-item.active {
  background: var(--bg-hover);
  border-left-color: var(--accent-red);
}

.league-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.league-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
}

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

.league-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 10px;
}

.league-count.live-count {
  color: var(--accent-green-light);
  background: rgba(46,160,67,0.15);
}

/* ─── Live Match Card (Sidebar) ─── */
.live-matches-mini { padding: 4px 0 8px; }

.match-mini-card {
  padding: 8px 14px;
  cursor: pointer;
  transition: all .2s;
  border-left: 2px solid transparent;
}

.match-mini-card:hover {
  background: var(--bg-hover);
  border-left-color: var(--accent-green);
}

.match-mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.match-mini-status {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-green-light);
}

.match-mini-league {
  font-size: 10px;
  color: var(--text-muted);
}

.match-mini-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-mini-team { font-size: 12px; font-weight: 600; }

.match-mini-score {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--accent-green-light);
  letter-spacing: 2px;
}

/* ─── Main Content ─── */
.content-main { min-width: 0; }

/* ─── Match Hero (Live Page) ─── */
.match-hero {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.match-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

.league-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-datetime { color: var(--text-muted); }

.match-hero-body {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.team-logo-lg {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--bg-card);
  border-radius: 50%;
  padding: 6px;
}

.team-name-lg {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.score-block {
  text-align: center;
  flex-shrink: 0;
}

.score-display {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  letter-spacing: 8px;
  color: var(--text-primary);
}

.match-time-display {
  color: var(--accent-green-light);
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

.match-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

.match-status-badge.live {
  background: rgba(46,160,67,0.2);
  color: var(--accent-green-light);
  border: 1px solid rgba(46,160,67,0.4);
}

.match-status-badge.live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-green-light);
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}

.match-status-badge.upcoming {
  background: rgba(56,139,253,0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56,139,253,0.3);
}

.match-status-badge.finished {
  background: rgba(139,148,158,0.15);
  color: var(--text-muted);
  border: 1px solid rgba(139,148,158,0.2);
}

.match-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 24px 16px;
}

.btn-truc-tiep {
  background: var(--accent-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  letter-spacing: .5px;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-truc-tiep:hover { background: #c62d39; color: #fff; transform: translateY(-1px); }

.btn-doi-hinh {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}

.btn-doi-hinh:hover { color: var(--text-primary); border-color: var(--text-muted); }

/* ─── Live Field Animation ─── */
.live-field-container {
  background: linear-gradient(180deg, #1a3a1a 0%, #1e4c1e 50%, #1a3a1a 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin: 0 0 12px;
  border: 1px solid var(--border);
}

#football-field {
  width: 100%;
  height: 200px;
  position: relative;
}

.field-svg {
  width: 100%;
  height: 100%;
}

.possession-bar {
  display: flex;
  height: 4px;
  margin: 0;
}

.possession-home { background: var(--accent-blue); transition: width 1s; }
.possession-away { background: var(--accent-red); transition: width 1s; }

.field-stats {
  display: flex;
  justify-content: space-around;
  padding: 8px 12px;
  background: rgba(0,0,0,0.3);
  font-size: 11px;
}

.field-stat-item { text-align: center; }
.field-stat-val { font-family: var(--font-display); font-size: 18px; }
.field-stat-lbl { color: var(--text-muted); font-size: 10px; }

/* ─── Match Event Timeline ─── */
.match-tabs {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  cursor: pointer;
}

.tab-btn.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

.tab-btn:hover { color: var(--text-primary); }

.tab-content { padding: 0; display: none; }
.tab-content.active { display: block; }

/* ─── Events List ─── */
.events-list { padding: 8px 0; }

.event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  transition: background .2s;
}

.event-item:hover { background: var(--bg-hover); }

.event-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.event-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.event-icon.goal { background: rgba(46,160,67,0.2); color: var(--accent-green-light); }
.event-icon.yellow-card { background: rgba(210,153,34,0.2); color: var(--accent-yellow); }
.event-icon.red-card { background: rgba(230,57,70,0.2); color: var(--accent-red); }
.event-icon.sub { background: rgba(56,139,253,0.2); color: var(--accent-blue); }
.event-icon.corner { background: rgba(139,148,158,0.1); color: var(--text-secondary); }
.event-icon.danger { background: rgba(240,136,62,0.2); color: var(--accent-orange); }

.event-desc { flex: 1; }
.event-player { font-size: 13px; font-weight: 600; }
.event-detail { font-size: 11px; color: var(--text-muted); }

/* ─── Stats Table ─── */
.stats-table { padding: 12px 16px; }

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

.stat-val-home, .stat-val-away {
  font-size: 13px;
  font-weight: 600;
  width: 40px;
}

.stat-val-home { text-align: right; color: var(--accent-blue); }
.stat-val-away { text-align: left; color: var(--accent-red); }

.stat-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-bar-home { height: 6px; background: var(--accent-blue); border-radius: 3px 0 0 3px; transition: width .8s; }
.stat-bar-away { height: 6px; background: var(--accent-red); border-radius: 0 3px 3px 0; transition: width .8s; }

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  min-width: 80px;
}

/* ─── Lineup ─── */
.lineup-field {
  background: linear-gradient(180deg, #1a4a1a 0%, #1e5c1e 100%);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 12px 16px;
}

.lineup-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.player-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.player-avatar {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg-primary);
  transition: transform .2s;
}

.player-avatar:hover { transform: scale(1.2); }

.player-number { font-size: 9px; color: rgba(255,255,255,0.6); }

/* ─── Right Sidebar (Odds) ─── */
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.odds-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 12px);
}

.odds-header {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.odds-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.odds-tab {
  flex: 1;
  padding: 7px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}

.odds-tab.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

.odds-section { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.odds-section:last-child { border-bottom: none; }

.odds-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.odds-provider {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.odds-provider-label { font-size: 11px; color: var(--text-muted); }
.odds-provider-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  cursor: pointer;
}

.odds-row {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.odds-col {
  flex: 1;
  text-align: center;
}

.odds-team-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.odds-value-btn {
  width: 100%;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all .2s;
}

.odds-value-btn:hover {
  background: rgba(230,57,70,0.15);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.odds-value-btn.highlight {
  background: rgba(46,160,67,0.15);
  border-color: rgba(46,160,67,0.5);
  color: var(--accent-green-light);
}

.odds-handicap {
  font-size: 9px;
  color: var(--accent-orange);
  margin-top: 2px;
}

.btn-xem-them {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
}

.btn-xem-them:hover { color: var(--accent-red); background: var(--bg-hover); }

/* ─── Match Cards Grid (Homepage) ─── */
.matches-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.section-league-flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.btn-xem-tat-ca {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
}

.btn-xem-tat-ca:hover { color: var(--accent-red); border-color: var(--accent-red); }

.match-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background .2s;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.match-row:last-child { border-bottom: none; }
.match-row:hover { background: var(--bg-hover); }

.match-row-time {
  width: 45px;
  text-align: center;
  flex-shrink: 0;
}

.match-row-time .time-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.match-row-time .time-status {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-green-light);
}

.match-row-time .time-status.ht { color: var(--text-muted); }

.match-row-teams { flex: 1; min-width: 0; }

.team-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.team-line:last-child { margin-bottom: 0; }

.team-logo-sm {
  width: 18px;
  height: 18px;
  object-fit: contain;
  background: var(--bg-card);
  border-radius: 50%;
  flex-shrink: 0;
}

.team-name-sm {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-name-sm.winner { font-weight: 700; color: var(--text-primary); }

.match-row-scores { text-align: center; flex-shrink: 0; }

.score-sm {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
}

.score-sm.live { color: var(--accent-green-light); }

.match-row-odds {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.odd-chip {
  padding: 3px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  transition: all .2s;
}

.odd-chip:hover {
  background: rgba(230,57,70,0.15);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* ─── Schedule & Results Page ─── */
.date-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  min-width: 60px;
}

.date-btn .day-name { font-size: 10px; color: var(--text-muted); }
.date-btn .day-num { font-size: 16px; font-weight: 700; }
.date-btn .day-month { font-size: 10px; color: var(--text-muted); }

.date-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.date-btn.active .day-name,
.date-btn.active .day-month { color: rgba(255,255,255,0.7); }

.date-btn.today .day-num { color: var(--accent-green-light); }

/* ─── League Page ─── */
.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.standings-table th {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.standings-table td {
  padding: 8px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}

.standings-table tr:hover td { background: var(--bg-hover); }

.standings-table .rank {
  font-family: var(--font-mono);
  color: var(--text-muted);
  width: 30px;
}

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

.cl-zone { color: var(--accent-blue); font-weight: 700; }
.europa-zone { color: var(--accent-orange); font-weight: 700; }
.relegation-zone { color: var(--accent-red); font-weight: 700; }

.row-indicator {
  width: 3px;
  border-radius: 2px;
}

/* ─── Team Page ─── */
.team-hero-banner {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.team-hero-banner::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  background: var(--accent-red);
  opacity: 0.04;
  border-radius: 50%;
}

.team-logo-xl {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: var(--bg-card);
  border-radius: 50%;
  padding: 10px;
  border: 2px solid var(--border);
}

.team-hero-info { flex: 1; }
.team-name-xl { font-family: var(--font-display); font-size: 36px; letter-spacing: 1px; }
.team-meta { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }

.team-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

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

.team-stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.team-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ─── News Cards ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.news-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
}

.news-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
}

.news-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--bg-card);
}

.news-body { padding: 12px; }

.news-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* ─── News Sidebar Widget ─── */
.news-widget { display: flex; flex-direction: column; gap: 2px; }

.news-mini-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .2s;
  align-items: flex-start;
}

.news-mini-item:hover { background: var(--bg-hover); }

.news-mini-thumb {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-card);
  flex-shrink: 0;
}

.news-mini-title {
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-mini-date { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* ─── Today Schedule Widget ─── */
.schedule-widget { padding: 4px 0; }

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  cursor: pointer;
  transition: background .2s;
}

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

.schedule-time { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; }
.schedule-teams { flex: 1; padding: 0 8px; }
.schedule-league-tag { font-size: 10px; color: var(--text-muted); }

/* ─── Loading & Skeleton ─── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

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

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

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

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 32px 16px 20px;
  margin-top: 24px;
}

.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.social-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}

.social-btn:hover { border-color: var(--accent-red); color: var(--accent-red); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 12px; color: var(--text-muted); transition: color .2s; }
.footer-col ul a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1440px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-bottom .heart { color: var(--accent-red); }

/* ─── Notifications / Toast ─── */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-green);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
}

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

/* ─── Responsive ─── */
@media (max-width: 1280px) {
  .main-container {
    grid-template-columns: var(--sidebar-w) 1fr;
  }
  .sidebar-right { display: none; }
}

@media (max-width: 900px) {
  .main-container {
    grid-template-columns: 1fr;
  }
  .sidebar-left { display: none; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 12px; gap: 10px; }
  .main-nav { display: none; }
  .match-row-odds { display: none; }
  .score-display { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-stats-row { grid-template-columns: repeat(2, 1fr); }
}


/* League Filter Tabs */
.league-filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.league-tabs-inner {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
}
.league-tabs-inner::-webkit-scrollbar { display: none; }
.league-tab-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}
.league-tab-btn:hover {
    border-color: var(--accent-red);
    color: var(--text-primary);
}
.league-tab-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}
.league-tabs-arrows {
    display: flex;
    gap: 4px;
}
.tab-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.tab-arrow:hover { border-color: var(--accent-red); color: var(--text-primary); }