/* ============================================================
   333 TV - Matches & Football Center Styles (Apple Glassmorphism)
   Results, Fixtures, Standings, Lineups & Player Stats
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@100..900&display=swap');

#matchesSection, .match-modal, .player-stats-modal, .player-page-view {
  font-family: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-optical-sizing: auto;
}

/* 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;
  }
  to {
    opacity: 1;
  }
}

.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: 12px;
}

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

.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: grid;
  grid-template-columns: repeat(3, 1fr);
  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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

.matches-subtab-btn i {
  font-size: 14px;
}

.subtab-title {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.subtab-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  opacity: 0.75;
}

.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;
}

/* Rounds Navigator Chips (آخر جولة & الجولة القادمة) */
.rounds-nav-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.round-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.round-nav-chip:hover {
  background: rgba(196, 248, 42, 0.12);
  border-color: rgba(196, 248, 42, 0.35);
  color: var(--primary);
  transform: translateY(-1px);
}

.round-nav-chip.active {
  background: var(--primary) !important;
  color: #0b101b !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 14px rgba(196, 248, 42, 0.35);
}

.round-nav-chip.active i {
  color: #0b101b !important;
}

.round-indicator-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(196, 248, 42, 0.08);
  border: 1px solid rgba(196, 248, 42, 0.25);
  border-radius: 14px;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.empty-round-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-empty-round {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(196, 248, 42, 0.12);
  border: 1px solid rgba(196, 248, 42, 0.3);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-empty-round:hover {
  background: var(--primary);
  color: #0b101b;
  transform: scale(0.98);
}

.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,
.match-card::after {
  display: none !important;
  content: none !important;
}

.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.1);
}
.pitch-node-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #182232;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}
.pitch-node-label-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(10, 16, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 7px;
  border-radius: 12px;
  margin-top: 3px;
  max-width: 95px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.pitch-node-num {
  font-size: 10.5px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
}
.pitch-node-name {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.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 !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 10000005 !important; /* Above everything including bottom dock */
  background: #090d16 !important;
  display: none !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.match-modal-overlay:not(.active) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.match-modal-overlay.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: fadeInModalPage 0.2s ease-out forwards;
}

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

.match-modal-box {
  position: relative !important;
  width: 100% !important;
  max-width: 860px !important;
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100% !important;
  background: #090d16 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Dedicated Mobile App Topbar */
.match-page-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 12px !important;
  background: #0d121c !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0 !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
}

.match-page-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  background: rgba(196, 248, 42, 0.14) !important;
  border: 1px solid rgba(196, 248, 42, 0.35) !important;
  color: var(--primary) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}
.match-page-back-btn:hover,
.match-page-back-btn:active {
  background: var(--primary) !important;
  color: #070a07 !important;
  transform: scale(0.97) !important;
}
.match-page-back-btn i {
  font-size: 13px !important;
}

.match-page-topbar-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 50% !important;
  text-align: center !important;
  letter-spacing: 0.3px !important;
}

.match-page-close-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-secondary) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}
.match-page-close-icon:hover {
  background: var(--red-soft) !important;
  color: var(--red) !important;
  transform: rotate(90deg) !important;
}

/* Modal Hero Header */
.match-modal-header {
  position: relative !important;
  background: #111724 !important;
  background-image: linear-gradient(180deg, rgba(196, 248, 42, 0.10) 0%, rgba(17, 23, 36, 0.98) 100%) !important;
  padding: 16px 16px 12px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

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

.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-team-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.modal-team-side-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-team-form-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(196, 248, 42, 0.14);
  color: var(--primary);
  border: 1px solid rgba(196, 248, 42, 0.35);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 0 10px rgba(196, 248, 42, 0.15);
}

.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 (Balanced 4-Column Grid, Zero Overflow) */
.match-modal-nav {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 4px !important;
  background: #0d121c !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 6px 8px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

.match-nav-tab {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 8px 4px !important;
  border: none !important;
  background: transparent !important;
  color: var(--text-secondary) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.match-nav-tab i {
  font-size: 11.5px !important;
}

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

.match-nav-tab.active {
  background: rgba(196, 248, 42, 0.14) !important;
  color: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Modal Body Scroll Area */
.match-modal-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 14px 12px 30px 12px !important;
  background: #090d16 !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.modal-tab-pane {
  display: none;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  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 (2-Column Grid Switcher) */
.lineups-teams-toggle {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.lineups-team-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 9px 8px !important;
  border-radius: 12px !important;
  border: 1px solid var(--glass-border) !important;
  background: var(--glass-bg) !important;
  color: var(--text-secondary) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.lineups-team-btn span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
  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;
  }

  /* Subtabs on Mobile - Perfectly Balanced 3 Columns */
  .matches-subtabs-nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    padding: 4px !important;
    margin-bottom: 12px !important;
  }

  .matches-subtab-btn {
    padding: 7px 4px !important;
    gap: 2px !important;
  }

  .matches-subtab-btn i {
    font-size: 13px !important;
  }

  .subtab-title {
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .subtab-tag {
    display: none !important; /* Hide English tag on mobile to save space */
  }

  /* Date Toolbar on Mobile - Clean 3-Row Layout */
  .date-nav-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    margin-bottom: 14px !important;
  }

  .rounds-nav-chips {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .round-nav-chip {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 0 !important;
    font-size: 13px !important;
  }

  .date-nav-chips {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .date-nav-chip {
    text-align: center !important;
    padding: 7px 0 !important;
    font-size: 12.5px !important;
  }

  .date-picker-wrap {
    display: flex !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .date-custom-input {
    flex: 1 !important;
    text-align: center !important;
    font-size: 13px !important;
    height: 38px !important;
    padding: 4px 8px !important;
  }

  .matches-refresh-btn {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
  }

  /* Dedicated Full-Screen Match Page on Mobile (100% Viewport, Zero Overflow) */
  .match-modal-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #090d16 !important;
    z-index: 10000005 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .match-modal-overlay:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .match-modal-overlay.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .match-modal-box {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #090d16 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .match-page-topbar {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 10px !important;
  }

  .match-page-back-btn {
    padding: 5px 12px !important;
    font-size: 12px !important;
    gap: 6px !important;
  }

  .match-page-topbar-title {
    font-size: 12px !important;
    max-width: 48% !important;
  }

  .match-page-close-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }

  .match-modal-header {
    padding: 10px 10px 8px 10px !important;
    flex-shrink: 0 !important;
  }

  .modal-team-logo {
    width: 42px !important;
    height: 42px !important;
  }

  .modal-team-name {
    font-size: 12.5px !important;
    max-width: 100px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .modal-team-side-tag {
    font-size: 9.5px !important;
  }

  .modal-team-form-tag {
    font-size: 9.5px !important;
    padding: 1px 6px !important;
  }

  .modal-score-center {
    min-width: 80px !important;
  }

  .modal-score-numbers {
    font-size: 24px !important;
    letter-spacing: 2px !important;
  }

  .match-modal-tournament {
    font-size: 11px !important;
  }

  .match-modal-meta {
    font-size: 10.5px !important;
  }

  /* Mobile Match Sub-Tabs: Balanced 4-Column Grid */
  .match-modal-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 3px !important;
    padding: 5px 6px !important;
    background: #0d121c !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .match-nav-tab {
    padding: 7px 2px !important;
    font-size: 11px !important;
    gap: 4px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    justify-content: center !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .match-nav-tab i {
    font-size: 11px !important;
  }

  .match-modal-body {
    padding: 10px 8px 24px 8px !important;
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .lineups-teams-toggle {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
  }

  .lineups-team-btn {
    padding: 7px 4px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .tactical-pitch-card {
    padding: 8px !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
  }

  .tactical-pitch-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tactical-pitch-title {
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .tactical-formation-badge {
    font-size: 9.5px !important;
    padding: 2px 6px !important;
    flex-shrink: 0 !important;
  }

  .tactical-pitch-container {
    height: 330px !important;
    min-height: 330px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .pitch-nodes-board {
    padding: 8px 4px !important;
    min-height: 330px !important;
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: space-around !important;
  }

  .pitch-tactical-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .pitch-player-node {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 25% !important;
    gap: 2px !important;
  }

  .pitch-node-avatar-wrap {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  .pitch-node-rating-badge {
    font-size: 7.5px !important;
    padding: 1px 3px !important;
    top: -3px !important;
    left: -3px !important;
  }

  .pitch-node-circle {
    width: 24px !important;
    height: 24px !important;
    font-size: 9px !important;
  }

  .pitch-node-label-bar {
    max-width: 58px !important;
    padding: 1px 3px !important;
    margin-top: 1px !important;
    gap: 2px !important;
  }

  .pitch-node-num {
    font-size: 8px !important;
  }

  .pitch-node-name {
    font-size: 8.5px !important;
    max-width: 44px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .players-list {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 7px !important;
  }

  .player-item-card {
    padding: 7px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .player-photo,
  .player-photo-fallback {
    width: 34px !important;
    height: 34px !important;
  }

  .player-name {
    font-size: 12px !important;
  }

  .player-position-desc {
    font-size: 10.5px !important;
  }
}

/* Hide Bottom Dock when Match Modal is open */
body.match-modal-open .bottom-dock-nav,
body.match-modal-open #bottomTabbar {
  display: none !important;
}

/* ============================================================
   TACTICAL PITCH PLAYER AVATARS & RATINGS
   ============================================================ */
.pitch-player-node.clickable-node {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pitch-player-node.clickable-node:hover,
.pitch-player-node.clickable-node:active {
  transform: scale(1.12);
}

.pitch-node-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: rgba(10, 16, 26, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(196, 248, 42, 0.3);
  transition: all 0.2s ease;
  overflow: visible;
}
.pitch-player-node:hover .pitch-node-avatar-wrap {
  border-color: #ffffff;
  box-shadow: 0 6px 18px rgba(196, 248, 42, 0.7);
}

.pitch-node-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #111a24;
}

.pitch-node-circle.fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 50%;
}

.pitch-node-jersey-badge {
  position: absolute;
  bottom: -3px;
  right: -4px;
  background: #0f172a;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pitch-node-rating-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--primary);
  color: #070a07;
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 6px;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   CLICKABLE PLAYER CARDS & RATINGS
   ============================================================ */
.player-item-card.clickable-player {
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.player-item-card.clickable-player:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 248, 42, 0.35);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.player-item-card.clickable-player:active {
  transform: scale(0.98);
}

.player-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(196, 248, 42, 0.14);
  color: var(--primary);
  border: 1px solid rgba(196, 248, 42, 0.3);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  margin-right: auto;
}

.player-stats-open-hint {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  transition: all 0.18s ease;
  margin-right: auto;
}
.player-item-card.clickable-player:hover .player-stats-open-hint {
  background: var(--primary);
  color: #070a07;
  transform: scale(1.08);
}

.clickable-event-player {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 700;
  transition: all 0.18s ease;
  padding: 2px 6px;
  border-radius: 8px;
}
.clickable-event-player:hover {
  background: rgba(196, 248, 42, 0.15);
  color: var(--primary);
}

.clickable-player-row {
  cursor: pointer;
  transition: background 0.15s ease;
}
.clickable-player-row:hover {
  background: rgba(196, 248, 42, 0.09) !important;
}

.boxscore-pnum {
  display: inline-block;
  min-width: 18px;
  font-weight: 900;
  color: var(--primary);
  margin-left: 6px;
  font-size: 11.5px;
}
.boxscore-pname {
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================================
   INTEGRATED PLAYER DETAIL PAGE (Fits inside Phone Template)
   ============================================================ */
.match-player-page-view {
  position: absolute;
  inset: 0;
  z-index: 120;
  background: #0d121c;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  direction: rtl;
  animation: mppSlideIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.mpp-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(17, 23, 36, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.mpp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 248, 42, 0.12);
  border: 1px solid rgba(196, 248, 42, 0.3);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mpp-back-btn:hover,
.mpp-back-btn:active {
  background: var(--primary);
  color: #070a07;
  transform: translateX(2px);
}

.mpp-header-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mpp-scroll-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 36px 16px;
}

/* Touch optimization for player clicks on mobile */
.pitch-player-node,
.player-item-card.clickable-player,
.clickable-player-row,
.clickable-event-player {
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: rgba(196, 248, 42, 0.25) !important;
}

.pitch-node-avatar-wrap,
.pitch-node-photo,
.pitch-node-circle,
.pitch-node-label-bar,
.pitch-node-num,
.pitch-node-name {
  pointer-events: none;
}

.player-item-card.clickable-player * {
  pointer-events: none;
}

/* ============================================================
   PLAYER STATS MODAL & BOTTOM SHEET
   ============================================================ */
.player-stats-modal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2000050 !important; /* Higher than match-modal-overlay (1000005) */
  align-items: center;
  justify-content: center;
  direction: rtl;
}
.player-stats-modal:not(.active) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.player-stats-modal.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.player-stats-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(5, 8, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInModal 0.2s ease;
  z-index: 1 !important;
}

.player-stats-sheet {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 480px;
  max-height: 85vh;
  background: linear-gradient(180deg, #131b26 0%, #0c121b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px 20px;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(196, 248, 42, 0.12);
  animation: psmSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}

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

.player-stats-handle {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  margin: -8px auto 14px auto;
  display: none;
}

.player-stats-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}
.player-stats-close-btn:hover {
  background: var(--red);
  color: #ffffff;
  transform: rotate(90deg);
}

.psm-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.psm-avatar-wrap {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: #111a24;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 16px rgba(196, 248, 42, 0.25);
}
.psm-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.psm-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  background: #1e293b;
}
.psm-jersey-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 12px;
  border: 1.5px solid var(--primary);
  line-height: 1;
}

.psm-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.psm-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.psm-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.25;
}
.psm-name-num {
  font-size: 13px;
  font-weight: 900;
  color: var(--primary);
  background: rgba(196, 248, 42, 0.12);
  border: 1px solid rgba(196, 248, 42, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1;
}
.psm-role-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.psm-position-pill {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 12px;
}
.psm-status-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}
.psm-status-pill.starter {
  background: rgba(196, 248, 42, 0.15);
  color: var(--primary);
  border: 1px solid rgba(196, 248, 42, 0.3);
}
.psm-status-pill.bench {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.psm-team-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}
.psm-team-crest {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.psm-rating-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(196, 248, 42, 0.12);
  border: 1.5px solid rgba(196, 248, 42, 0.35);
  border-radius: 16px;
  padding: 6px 12px;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(196, 248, 42, 0.15);
}
.psm-rating-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.psm-rating-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

.psm-section-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.psm-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.psm-stat-card {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  padding: 8px 8px !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  min-height: 48px !important;
  transition: all 0.15s ease !important;
}
.psm-stat-card:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(196, 248, 42, 0.25) !important;
}

.psm-stat-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 8px !important;
  background: rgba(196, 248, 42, 0.1) !important;
  color: var(--primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11.5px !important;
  flex-shrink: 0 !important;
}

.psm-stat-info {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  flex: 1 !important;
  overflow: hidden !important;
}
.psm-stat-val {
  font-size: 14px !important;
  font-weight: 900 !important;
  color: var(--text-primary) !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.psm-stat-lbl {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  display: block !important;
  margin-top: 1px !important;
}

.psm-empty-stats {
  padding: 30px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Season Stats Divider & 8-Card Grid Layout */
.psm-season-divider {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 18px 0 12px 0 !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.psm-season-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 248, 42, 0.45), transparent);
}
.psm-season-divider-badge {
  position: relative;
  background: #111724;
  border: 1px solid rgba(196, 248, 42, 0.35);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.psm-season-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.psm-season-card {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  padding: 8px 8px !important;
  transition: all 0.2s ease !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}

.psm-season-card:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(196, 248, 42, 0.25) !important;
  transform: translateY(-1px) !important;
}

.psm-season-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11.5px !important;
  flex-shrink: 0 !important;
}

.psm-season-info {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  flex: 1 !important;
  overflow: hidden !important;
}

.psm-season-val {
  font-size: 14px !important;
  font-weight: 900 !important;
  color: var(--text-primary) !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.psm-season-lbl {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  display: block !important;
  margin-top: 1px !important;
}

.psm-season-card.loading .psm-season-val {
  display: inline-block;
  width: 28px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  animation: psmShimmer 1.2s infinite ease-in-out;
}

@keyframes psmShimmer {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.3; }
}

/* ============================================================
   INTEGRATED PLAYER DETAIL VIEW (100% inside Match Modal / Phone Frame)
   ============================================================ */
.match-player-page-view {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  z-index: 200 !important;
  background: #090d16 !important;
  display: none;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  animation: mppFadeIn 0.18s ease-out forwards;
}

.match-player-page-view.active {
  display: flex !important;
}

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

.mpp-header-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 10px !important;
  background: #0d121c !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0 !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.mpp-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  background: rgba(196, 248, 42, 0.14) !important;
  border: 1px solid rgba(196, 248, 42, 0.35) !important;
  color: var(--primary) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
}

.mpp-back-btn:hover,
.mpp-back-btn:active {
  background: var(--primary) !important;
  color: #0a0e17 !important;
  transform: scale(0.98);
}

.mpp-header-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 !important;
  justify-content: center !important;
  min-width: 0 !important;
}

.mpp-close-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-secondary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
}

.mpp-close-btn:hover {
  background: var(--red-soft) !important;
  color: var(--red) !important;
}

.mpp-scroll-body {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px 10px 30px 10px !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 600px) {
  .player-stats-modal {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2000050 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }
  .player-stats-modal.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .player-stats-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
  }
  .player-stats-sheet {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 440px !important;
    border-radius: 24px !important;
    max-height: 88vh !important;
    padding: 22px 18px 24px 18px !important;
    margin: auto !important;
    box-sizing: border-box !important;
    animation: scaleUpModal 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .player-stats-handle {
    display: none !important;
  }
  .pitch-node-avatar-wrap {
    width: 32px !important;
    height: 32px !important;
  }
  .psm-header {
    gap: 10px !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .psm-avatar-wrap {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
  }
  .psm-name {
    font-size: 14.5px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .psm-rating-box {
    padding: 4px 8px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
  }
  .psm-rating-val {
    font-size: 18px !important;
  }
  .psm-stats-grid,
  .psm-season-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .psm-stat-card,
  .psm-season-card {
    padding: 6px 6px !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .psm-stat-icon,
  .psm-season-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    font-size: 10.5px !important;
  }
  .psm-stat-val,
  .psm-season-val {
    font-size: 13px !important;
  }
  .psm-stat-lbl,
  .psm-season-lbl {
    font-size: 9px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
