/* ============================================================
   333 TV - Matches & Football Center Styles (Apple Glassmorphism)
   Results, Fixtures, Standings, Lineups & Player Stats
   ============================================================ */

/* Main Matches Section Container */
#matchesSection {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  min-height: calc(100vh - 120px);
  animation: fadeInMatches 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (min-width: 861px) {
  #matchesSection {
    margin-right: 0;
    width: 100%;
  }
}

#matchesSection.active {
  display: block;
}

@keyframes fadeInMatches {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.matches-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 16px 80px 16px;
}

/* ============================================================
   MATCH DAY LIVE HERO BANNER (Cinematic Sports UI from Reference)
   ============================================================ */
.striq-hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 22, 18, 0.94) 0%, rgba(9, 13, 10, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 22px 24px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.striq-hero-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 20%;
  width: 350px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(196, 248, 42, 0.18) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}
.striq-hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.hero-league-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}
.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ff4757;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.pulse-red-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4757;
  box-shadow: 0 0 8px #ff4757;
  animation: pulseDot 1.4s infinite;
}
.striq-hero-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.striq-hero-sub-tag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.striq-hero-big-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}
.striq-hero-big-title .volt-highlight {
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}
.striq-hero-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0;
  line-height: 1.5;
}
.striq-hero-stats-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 16px;
}
.hero-stat-chip i {
  font-size: 20px;
  color: var(--primary);
}
.hero-stat-chip .hsc-num {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.hero-stat-chip .hsc-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Leagues Section Wrap */
.leagues-section-wrap {
  margin-bottom: 18px;
}
.leagues-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.matches-back-tv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: var(--glass-blur);
}

.matches-back-tv-btn:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

/* Leagues Selector Bar (Horizontal Scrollable Pills) */
.leagues-bar-wrap {
  position: relative;
  margin-bottom: 18px;
}

.leagues-pills-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.leagues-pills-bar::-webkit-scrollbar {
  height: 4px;
}

.leagues-pills-bar::-webkit-scrollbar-thumb {
  background: rgba(196, 248, 42, 0.25);
  border-radius: 4px;
}

.league-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  height: 46px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--glass-shadow-sm);
  flex-shrink: 0;
}

.league-pill-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  border-color: rgba(196, 248, 42, 0.4);
}

.league-pill-btn.active {
  background: var(--primary-gradient) !important;
  border-color: transparent !important;
  color: #070a07 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px var(--primary-glow);
  transform: translateY(-1px);
}

.league-emblem-wrap {
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 3px;
}

.league-emblem-wrap img,
.league-pill-btn img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain !important;
  display: block !important;
}

.league-pill-flag {
  font-size: 16px;
  display: inline-flex;
}

.league-name-text {
  font-size: 13px;
  font-weight: 700;
}

/* Navigation Sub-Tabs (Fixtures / Standings / All Season) */
.matches-subtabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 6px;
  box-shadow: var(--glass-shadow-sm);
  margin-bottom: 20px;
}

.matches-subtab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.matches-subtab-btn:hover {
  color: var(--text-primary);
  background: var(--glass-bg-subtle);
}

.matches-subtab-btn.active {
  background: var(--glass-bg-elevated);
  color: var(--primary);
  box-shadow: var(--glass-shadow-sm);
}

/* Date Navigator Toolbar */
.date-nav-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--glass-shadow-sm);
  margin-bottom: 18px;
}

.date-nav-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-nav-chip {
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--glass-bg-subtle);
  border: 1px solid var(--glass-border-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-nav-chip:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.date-nav-chip.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.date-picker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-custom-input {
  background: var(--glass-input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 7px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.matches-refresh-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.matches-refresh-btn:hover {
  color: var(--primary);
  transform: rotate(45deg);
}

/* Match Cards Grid */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.match-card {
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--glass-shadow-sm);
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.match-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 248, 42, 0.4);
  box-shadow: var(--glass-shadow-hover);
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.match-card:hover::before {
  opacity: 1;
}

.match-card.is-live::before {
  opacity: 1;
  background: var(--red);
}

.match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.match-tournament-name {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.match-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
}

.match-status-badge.live {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.match-status-badge.live .live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.match-status-badge.ft {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
}

.match-status-badge.upcoming {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(196, 248, 42, 0.25);
}

/* ============================================================
   STRIQ MATCH CARD STYLING (From Reference Image)
   ============================================================ */
.striq-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  gap: 14px;
}

.striq-crest-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s ease, border-color 0.22s ease;
  flex-shrink: 0;
}
.match-card:hover .striq-crest-wrap {
  transform: scale(1.06);
  border-color: rgba(196, 248, 42, 0.4);
}

.striq-crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.striq-score-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.striq-score-digits {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  direction: ltr;
}
.striq-score-digits .colon {
  opacity: 0.35;
  margin: 0 2px;
}
.striq-score-digits .digit.winner {
  color: var(--primary) !important;
  text-shadow: 0 0 14px var(--primary-glow);
}

.striq-score-time {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1;
}

.striq-badge-sub {
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
}
.striq-badge-sub.live {
  background: rgba(239, 68, 68, 0.16);
  color: #ff4757;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.striq-badge-sub.ft {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}
.striq-badge-sub.upcoming {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(196, 248, 42, 0.25);
}

.striq-teams-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 4px 0 8px 0;
}
.striq-team-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.striq-team-text.home { text-align: right; }
.striq-team-text.away { text-align: left; }
.striq-vs-dot {
  font-size: 10px;
  color: var(--primary);
  font-weight: 900;
  opacity: 0.8;
}

.striq-venue-text {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11.5px;
}
.striq-cta-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

/* ============================================================
   TACTICAL FOOTBALL PITCH (Striq Reference UI)
   ============================================================ */
.tactical-pitch-card {
  background: rgba(14, 20, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.tactical-pitch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tactical-pitch-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tactical-formation-badge {
  background: var(--primary);
  color: #070a07;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.tactical-pitch-container {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: 16px;
  background: linear-gradient(180deg, #11261a 0%, #0d1e15 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pitch-chalk-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pitch-center-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.pitch-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pitch-penalty-area.top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 55px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top: none;
}
.pitch-penalty-area.bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 55px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-bottom: none;
}
.pitch-goal-area.top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top: none;
}
.pitch-goal-area.bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-bottom: none;
}
.pitch-nodes-board {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  min-height: 380px;
  padding: 18px 12px;
}
.pitch-tactical-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}
.pitch-player-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.pitch-player-node:hover {
  transform: scale(1.15);
}
.pitch-node-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #070a07;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px var(--primary-glow), 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 2px solid #ffffff;
}
.pitch-node-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 6px;
  border-radius: 8px;
  white-space: nowrap;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(4px);
}

.match-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

.match-venue {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.match-details-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}

/* Empty Matches State */
.matches-empty-state {
  text-align: center;
  padding: 50px 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-secondary);
}

.matches-empty-icon {
  font-size: 44px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.matches-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* ============================================================
   LEAGUE STANDINGS TABLE
   ============================================================ */
.standings-table-card {
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.standings-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
  white-space: nowrap;
}

.standings-table thead {
  background: var(--glass-bg-subtle);
  border-bottom: 1px solid var(--glass-border);
}

.standings-table th {
  padding: 12px 10px;
  font-weight: 800;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
}

.standings-table th.col-team {
  text-align: right;
  padding-right: 20px;
}

.standings-table tbody tr {
  border-bottom: 1px solid var(--glass-border-subtle);
  transition: background 0.15s ease;
}

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

.standings-table td {
  padding: 12px 10px;
  color: var(--text-primary);
  font-weight: 600;
}

.standings-table td.col-rank {
  font-weight: 800;
  width: 44px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: var(--glass-bg-subtle);
  color: var(--text-secondary);
}

.rank-ucl {
  background: rgba(37, 99, 235, 0.18);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.rank-uel {
  background: rgba(245, 158, 11, 0.18);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.rank-rel {
  background: rgba(239, 68, 68, 0.18);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.standings-team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  padding-right: 14px;
}

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

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

.col-pts {
  font-weight: 900 !important;
  color: var(--primary) !important;
  font-size: 14px !important;
  background: var(--primary-soft);
}

.standings-form-dots {
  display: inline-flex;
  gap: 4px;
}

.form-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

.form-dot.W {
  background: var(--green);
}

.form-dot.D {
  background: #94a3b8;
}

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

.standings-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--glass-border-subtle);
  background: var(--glass-bg-subtle);
  font-size: 12px;
  color: var(--text-secondary);
}

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

.legend-color-box {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

/* ============================================================
   ALL SEASON MATCHES (From First to Last Match)
   ============================================================ */
.season-browser-card {
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--glass-shadow);
  margin-bottom: 20px;
}

.season-filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.season-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.season-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.season-select {
  background: var(--glass-input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

.season-select option {
  background: var(--bg-canvas);
  color: var(--text-primary);
}

.season-stats-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--glass-bg-subtle);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ============================================================
   MATCH CENTER MODAL (Lineups, Statistics, Timeline, Player Stats)
   ============================================================ */
.match-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.22s ease-out forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.match-modal-box {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUpModal 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUpModal {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Modal Hero Header */
.match-modal-header {
  position: relative;
  background: linear-gradient(180deg, rgba(196, 248, 42, 0.12) 0%, transparent 100%);
  padding: 22px 24px 16px 24px;
  border-bottom: 1px solid var(--glass-border-subtle);
}

.match-modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.match-modal-close:hover {
  background: var(--red-soft);
  color: var(--red);
  transform: rotate(90deg);
}

.match-modal-info {
  text-align: center;
  margin-bottom: 16px;
}

.match-modal-tournament {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-modal-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.match-modal-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
}

.modal-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.modal-team-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.modal-team-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  max-width: 140px;
}

.modal-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.modal-score-numbers {
  font-size: 38px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 3px;
}

.modal-score-status {
  margin-top: 4px;
}

/* Match Center Tabs */
.match-modal-nav {
  display: flex;
  align-items: center;
  background: var(--glass-bg-subtle);
  border-bottom: 1px solid var(--glass-border);
  padding: 4px 8px;
  overflow-x: auto;
}

.match-nav-tab {
  flex: 1;
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.match-nav-tab.active {
  background: var(--glass-bg-elevated);
  color: var(--primary);
  box-shadow: var(--glass-shadow-sm);
}

/* Modal Body Scroll Area */
.match-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.modal-tab-pane {
  display: none;
  animation: fadeInPane 0.2s ease-out forwards;
}

.modal-tab-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Lineups View */
.lineups-teams-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.lineups-team-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lineups-team-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
}

.lineups-section-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-secondary);
  margin: 14px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.players-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.player-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 9px 12px;
  transition: all 0.2s ease;
}

.player-item-card:hover {
  background: var(--glass-bg-hover);
  transform: translateX(-2px);
}

.player-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--glass-bg-subtle);
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.player-photo-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.player-meta {
  flex: 1;
  min-width: 0;
}

.player-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-jersey-number {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 1px 5px;
  border-radius: 6px;
}

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

.player-position-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.player-sub-badge {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  margin-right: auto;
}

.player-sub-in {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.player-sub-out {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

/* Statistics Dual Progress Bars */
.stats-bars-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.stat-val-home {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.stat-title {
  color: var(--text-secondary);
  font-size: 12.5px;
}

.stat-val-away {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.stat-dual-track {
  height: 8px;
  border-radius: 8px;
  background: var(--glass-bg-subtle);
  display: flex;
  overflow: hidden;
}

.stat-fill-home {
  height: 100%;
  background: var(--primary);
  border-radius: 8px 0 0 8px;
  transition: width 0.5s ease-out;
}

.stat-fill-away {
  height: 100%;
  background: var(--accent);
  border-radius: 0 8px 8px 0;
  transition: width 0.5s ease-out;
}

/* Timeline Key Events */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-right: 28px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 11px;
  width: 2px;
  background: var(--glass-border);
}

.timeline-event-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 10px 14px;
}

.timeline-event-bullet {
  position: absolute;
  right: -24px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-soft);
}

.timeline-event-clock {
  font-size: 12px;
  font-weight: 900;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.timeline-event-content {
  flex: 1;
}

.timeline-event-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-event-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Individual Player Stats Table */
.player-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.player-stats-table th {
  padding: 9px 8px;
  background: var(--glass-bg-subtle);
  color: var(--text-secondary);
  font-weight: 800;
}

.player-stats-table th.col-pname {
  text-align: right;
  padding-right: 14px;
}

.player-stats-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--glass-border-subtle);
  color: var(--text-primary);
  font-weight: 600;
}

.player-stats-table td.col-pname {
  text-align: right;
  padding-right: 14px;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .matches-container {
    padding: 12px 10px 90px 10px;
  }
  
  .matches-hero-header {
    padding: 12px 14px;
  }

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

  .match-modal-box {
    max-height: 94vh;
    border-radius: 20px;
  }

  .modal-team-logo {
    width: 52px;
    height: 52px;
  }

  .modal-score-numbers {
    font-size: 28px;
  }

  .players-list {
    grid-template-columns: 1fr;
  }
}
