@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- PREMIUM FOOTBALL PITCH THEME SYSTEM --- */
:root {
  /* HSL Tailored Colors */
  --bg-base: #0b0d10;
  --bg-surface: #15171c;
  --bg-surface-elevated: #1e2129;
  --bg-glass: rgba(21, 23, 28, 0.96);
  --border-glass: #2a2e37;
  --border-glass-hover: rgba(124, 92, 255, 0.58);
  
  --primary-neon: #7c5cff; /* Goalix Violet */
  --primary-neon-glow: rgba(124, 92, 255, 0.22);
  --accent-gold: #f59e0b; /* Amber */
  --accent-gold-glow: rgba(245, 158, 11, 0.2);
  
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --state-success: #22c55e;
  --state-warning: #f59e0b;
  --state-danger: #fb7185;
  --state-disabled: #6b7280;
  --radius-control: 12px;
  --radius-panel: 16px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  
  /* Bootstrap Overrides */
  --bs-body-bg: var(--bg-base);
  --bs-body-color: var(--text-main);
  --bs-emphasis-color: var(--text-main);
  --bs-emphasis-color-rgb: 243, 244, 246;
  --bs-tertiary-bg: var(--bg-surface);
  --bs-secondary-bg: var(--bg-surface-elevated);
  --bs-border-color: var(--border-glass);
  --bs-primary: var(--primary-neon);
  --bs-primary-rgb: 124, 92, 255;
  --bs-secondary-color: var(--text-muted);
  --bs-success: var(--state-success);
  --bs-success-rgb: 34, 197, 94;
  --bs-danger: var(--state-danger);
  --bs-danger-rgb: 251, 113, 133;
  --bs-warning: #f59e0b; /* Amber Warning */
  --bs-warning-rgb: 245, 158, 11;
  --bs-info: #06b6d4; /* Cyan Info */
  
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global resets & Scrollbar */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-base);
  background-image: none;
  color: var(--text-main);
  font-weight: 400;
  line-height: 1.6;
  padding-top: 85px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-neon);
}

a {
  color: var(--primary-neon);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: #818cf8;
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

/* AdminLTE Overrides for Top Navigation layout */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-main {
  flex: 1;
  padding-bottom: 2rem;
}
.app-sidebar {
  display: none !important; /* Hide sidebar entirely */
}
.app-header {
  border-bottom: 1px solid var(--border-glass) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4) !important;
}

/* --- GLASSMORPHIC NAVBAR --- */
.navbar-custom {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 1.5rem;
  z-index: 1030;
}

.navbar-brand-custom {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-brand-custom i {
  color: var(--primary-neon);
  -webkit-text-fill-color: var(--primary-neon);
}

.nav-link-custom {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: var(--transition-smooth);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.nav-link-custom:hover, 
.nav-link-custom.active {
  color: var(--primary-neon) !important;
  background: rgba(99, 102, 241, 0.08);
}

/* Autocomplete Search inside Header */
.search-container-custom {
  position: relative;
  max-width: 380px;
  width: 100%;
}
.search-input-custom {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-main) !important;
  border-radius: 99px !important;
  padding: 0.45rem 1rem 0.45rem 2.5rem !important;
  transition: var(--transition-smooth);
}
.search-input-custom:focus {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: var(--primary-neon) !important;
  box-shadow: 0 0 15px var(--primary-neon-glow) !important;
}
.search-icon-custom {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Suggestions Box */
.autocomplete-suggestions {
  background: var(--bg-surface-elevated) !important;
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden;
}
.autocomplete-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  background: transparent !important;
  color: var(--text-main) !important;
  transition: var(--transition-smooth) !important;
}
.autocomplete-item:hover, 
.autocomplete-item.active {
  background: rgba(99, 102, 241, 0.1) !important;
  color: var(--primary-neon) !important;
}
.autocomplete-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
}
.autocomplete-icon-fallback {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- PREMIUM FOOTBALL WIDGETS & CARDS --- */
.goalix-command {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.goalix-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: var(--transition-smooth);
}
.goalix-stat:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}
.goalix-stat span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.goalix-stat strong {
  font-size: 1.6rem;
  color: var(--primary-neon);
  font-weight: 700;
}

.card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.card-header {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid var(--border-glass) !important;
  padding: 1rem 1.25rem !important;
}
.card.bg-light,
.card-header.bg-light {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-main) !important;
}

.card.bg-light .text-muted,
.card-header.bg-light .text-muted {
  color: #cbd5e1 !important;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.auth-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass) !important;
}

.auth-card .form-label,
.auth-card .form-check-label {
  color: var(--text-main);
}

.auth-card .form-control {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass);
  color: var(--text-main);
}

.auth-card .form-control:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--primary-neon);
  color: var(--text-main);
  box-shadow: 0 0 0 0.2rem var(--primary-neon-glow);
}

/* Fixture Panel & Lists */
.fixture-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.fixture-panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
}
.fixture-filterbar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Date and Status Chips */
.date-chip, .status-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass) !important;
  color: var(--text-main) !important;
  transition: var(--transition-smooth);
}
.date-chip {
  border-radius: 10px;
  flex: 0 0 74px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}
.date-chip span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.date-chip strong {
  font-size: 0.95rem;
  font-weight: 700;
}
.date-chip:hover, .status-chip:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary-neon) !important;
  transform: translateY(-2px);
}
.date-chip.active, .status-chip.active {
  background: var(--primary-neon) !important;
  border-color: var(--primary-neon) !important;
  color: #fff !important;
  box-shadow: 0 0 15px var(--primary-neon-glow);
}
.date-chip.active span {
  color: rgba(255, 255, 255, 0.8) !important;
}

.status-chip {
  border-radius: 99px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* League strips & Match Rows */
.league-strip {
  background: rgba(99, 102, 241, 0.04);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.league-strip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.match-row {
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-main);
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 90px 24px;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  transition: var(--transition-smooth);
}
.match-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--primary-neon);
  padding-left: calc(1.25rem - 3px);
}
.match-row-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.match-row-time strong {
  font-size: 0.95rem;
}

/* Match Status Badges */
.fixture-status {
  padding: 0.25rem 0.6rem !important;
  border-radius: 6px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fixture-status-live {
  background: rgba(255, 82, 82, 0.15) !important;
  color: var(--bs-danger) !important;
  border: 1px solid rgba(255, 82, 82, 0.3);
  position: relative;
  overflow: hidden;
}
.fixture-status-live::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--bs-danger);
  border-radius: 50%;
  margin-left: 4px;
  animation: pulse-dot 1.2s infinite;
}
.fixture-status-finished {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border-glass);
}
.fixture-status-scheduled {
  background: rgba(99, 102, 241, 0.1) !important;
  color: var(--primary-neon) !important;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.match-row-teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fixture-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.fixture-team img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.match-row-score {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: right;
  color: var(--primary-neon);
}

/* --- SIDE PANEL COMPACT MATCHES --- */
.side-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem;
}
.compact-match {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}
.compact-match:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--primary-neon);
  transform: translateX(4px);
}
.compact-match-date span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.compact-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-neon);
}

/* --- STANDINGS GRID & TABLES --- */
.table {
  --bs-table-color: var(--text-main);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--border-glass);
  --bs-table-striped-color: var(--text-main);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.025);
  --bs-table-hover-color: var(--text-main);
  --bs-table-hover-bg: rgba(99, 102, 241, 0.08);
  color: var(--text-main);
  border-color: var(--border-glass);
}

.table > :not(caption) > * > * {
  color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
  background-color: var(--bs-table-bg);
  border-bottom-color: var(--bs-table-border-color);
}

.table-light {
  --bs-table-color: var(--text-main);
  --bs-table-bg: rgba(255, 255, 255, 0.06);
  --bs-table-border-color: var(--border-glass);
}

.table-responsive.bg-white,
.table-responsive.bg-light {
  background: var(--bg-surface) !important;
  border-color: var(--border-glass) !important;
}

.table code {
  color: #c4b5fd;
}
.standings-table th {
  background: rgba(255, 255, 255, 0.02) !important;
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-glass) !important;
  padding: 0.75rem 0.5rem !important;
}
.standings-table td {
  border-bottom: 1px solid var(--border-glass) !important;
  padding: 0.85rem 0.5rem !important;
  font-size: 0.92rem;
  vertical-align: middle;
}
.standings-table tr:hover {
  background: rgba(255, 255, 255, 0.015);
}
.standings-table tr.table-primary {
  background: rgba(99, 102, 241, 0.08) !important;
}
.standings-team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Competition slot markers */
.slot-marker {
  display: block;
  width: 4px;
  height: 24px;
  border-radius: 2px;
  margin: 0 auto;
}
.slot-champions { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.slot-qualifier { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }
.slot-europa { background: #3b82f6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.6); }
.slot-conference { background: #8b5cf6; box-shadow: 0 0 8px rgba(139, 92, 246, 0.6); }
.slot-relegation { background: #f43f5e; box-shadow: 0 0 8px rgba(244, 63, 94, 0.6); }

/* Form guide dots */
.form-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.form-win { background: rgba(16, 185, 129, 0.25); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }
.form-draw { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.form-loss { background: rgba(244, 63, 94, 0.2); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.4); }
.form-empty { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

/* --- PROFILE BANNER & STADIUM WRAPPERS --- */
.profile-banner {
  height: 220px;
  position: relative;
  background: var(--bg-surface-elevated);
  overflow: hidden;
}
.profile-banner::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(6, 9, 7, 0.95) 100%);
}
.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-banner-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: linear-gradient(135deg, #111a14 0%, #060907 100%);
}
.profile-banner-fallback i {
  font-size: 2rem;
  color: var(--primary-neon);
}
.profile-banner-fallback span {
  max-width: 36rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.profile-banner.media-fallback-active {
  height: 140px;
}
.profile-banner.media-fallback-active > img {
  display: none;
}
.profile-banner.media-fallback-active .profile-banner-fallback {
  display: flex;
}
.profile-logo-container {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-left: 1.5rem;
}
.profile-logo {
  width: 90px;
  height: 90px;
  background: var(--bg-surface);
  border: 3px solid var(--border-glass-hover);
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--border-glass);
}
.profile-photo-fallback {
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
}

/* --- LEAGUE SPOTLIGHT CARD GRID --- */
.league-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition-smooth);
}
.league-item,
.league-card,
.min-w-0 {
  min-width: 0 !important;
}
.league-card:hover {
  border-color: var(--primary-neon);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
  transform: translateY(-3px);
}
.league-card-title {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.catalog-pagination {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.catalog-pagination .pagination {
  width: max-content;
  min-width: 100%;
}

.league-metrics {
  display: flex;
  gap: 8px;
}
.league-metrics span {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

/* --- MATCH DETAILS SCOREBOARD --- */
.fixture-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}
.match-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(6, 9, 7, 0.8) 0%, rgba(22, 36, 26, 0.8) 100%);
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 0 40px rgba(99, 102, 241, 0.05);
}
.match-team {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.match-team span {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.match-team img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.match-team-away {
  flex-direction: row-reverse;
  text-align: right;
}
.match-score {
  text-align: center;
  min-width: 160px;
}
.match-score .display-5 {
  font-weight: 800;
  color: var(--primary-neon);
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
  font-family: monospace;
}

/* Event timeline */
.match-timeline-item {
  display: grid;
  grid-template-columns: 50px 40px 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-glass);
}
.match-minute {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-neon);
}
.match-event-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
}

/* Team equipment / Kits */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.equipment-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: var(--transition-smooth);
}
.equipment-tile:hover {
  border-color: var(--primary-neon);
  transform: scale(1.03);
}
.equipment-image {
  height: 140px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

/* Week chip slider */
.week-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0.4rem 1rem !important;
  background: rgba(0, 0, 0, 0.15) !important;
  border-bottom: 1px solid var(--border-glass) !important;
  scroll-snap-type: x mandatory;
}
.week-chip {
  flex: 0 0 auto;
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  padding: 0.25rem 0.75rem !important;
  font-size: 0.9rem;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: var(--transition-smooth);
}
.week-chip strong {
  font-size: 0.9rem;
  font-weight: 600;
}
.week-chip span {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}
.week-chip:hover {
  color: var(--primary-neon) !important;
  transform: none !important;
}
.week-chip.active {
  background: transparent !important;
  color: var(--primary-neon) !important;
  box-shadow: none !important;
}
.week-chip.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--primary-neon);
  border-radius: 2px;
}

.slot-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* Base custom button styling */

.badge.bg-primary.text-dark {
  color: #fff !important;
}
.btn-primary {
  background-color: var(--primary-neon) !important;
  border-color: var(--primary-neon) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px var(--primary-neon-glow);
  transition: var(--transition-smooth);
}
.btn-primary:hover {
  background-color: #818cf8 !important;
  border-color: #818cf8 !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}
.btn-outline-primary {
  color: var(--primary-neon) !important;
  border-color: var(--primary-neon) !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  transition: var(--transition-smooth);
}
.btn-outline-primary:hover {
  background-color: var(--primary-neon) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px var(--primary-neon-glow);
  transform: translateY(-1px);
}
.btn-outline-primary.active,
.btn-outline-primary:active,
.btn-check:checked + .btn-outline-primary {
  background-color: var(--primary-neon) !important;
  border-color: var(--primary-neon) !important;
  color: var(--bg-base) !important;
}
.btn-outline-secondary {
  color: var(--text-muted) !important;
  border-color: var(--border-glass) !important;
  background-color: rgba(255,255,255,0.02) !important;
  border-radius: 8px !important;
}
.btn-outline-secondary:hover {
  background-color: rgba(255,255,255,0.06) !important;
  color: #fff !important;
}
.btn-outline-dark {
  color: var(--text-main) !important;
  border-color: var(--border-glass) !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-radius: 8px !important;
}
.btn-outline-dark:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}
.btn-info.text-white {
  color: var(--bg-base) !important;
  font-weight: 600;
}
.bg-dark.text-primary,
.bg-dark .text-primary {
  color: #a5b4fc !important;
}

/* Tab panes styling */
.nav-tabs {
  border-bottom: 1px solid var(--border-glass) !important;
  gap: 4px;
}
.nav-tabs .nav-link {
  border: none !important;
  color: var(--text-muted) !important;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border-radius: 8px 8px 0 0 !important;
}
.nav-tabs .nav-link:hover {
  color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}
.nav-tabs .nav-link.active {
  color: var(--primary-neon) !important;
  background: rgba(99, 102, 241, 0.08) !important;
  border-bottom: 2px solid var(--primary-neon) !important;
}

/* --- MISSING DEFINITIONS & UTILITIES --- */
.stadium-image {
  width: 100%;
  max-height: 220px;
  border-radius: 12px;
  object-fit: cover;
}
.venue-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}
.league-fallback {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.catalog-search {
  max-width: 220px;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.catalog-select {
  max-width: 240px;
  border-radius: 8px !important;
  box-shadow: none !important;
}

/* Accordion dark theme arrow fix */
.accordion-button::after {
  filter: invert(1) brightness(0.7);
}
.accordion-button:not(.collapsed)::after {
  filter: invert(1) brightness(1);
}
.accordion-button:focus {
  box-shadow: 0 0 0 0.15rem var(--primary-neon-glow) !important;
}

/* Team card hover effect */
.card.team-card {
  transition: var(--transition-smooth);
}
.card.team-card:hover {
  border-color: var(--primary-neon) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
  transform: translateY(-3px);
}

/* Hover utility */
.hover-light:hover {
  color: var(--primary-neon) !important;
}

/* Responsive adjustments */

/* Tablet (768-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .match-scoreboard {
    padding: 2rem 1rem;
  }
  .match-team img {
    width: 56px;
    height: 56px;
  }
  .match-team span {
    font-size: 1.15rem;
  }
  .catalog-search, .catalog-select {
    max-width: 180px;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  .fixture-logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .profile-banner {
    height: 150px;
  }
  .profile-banner.media-fallback-active {
    height: 110px;
  }
  .league-card {
    padding: 1rem;
  }

  .match-scoreboard {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  .match-team {
    justify-content: center;
  }
  .match-team-away {
    flex-direction: row;
  }
  .match-row {
    grid-template-columns: 80px minmax(0, 1fr) 60px;
  }
  .match-row-score {
    font-size: 1.1rem;
  }

  /* Navbar solid bg when open */
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    background: var(--bg-surface-elevated);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid var(--border-glass);
  }

  /* Footer stack layout */
  footer .row > div {
    text-align: center;
  }
  footer .d-flex.gap-2 {
    justify-content: center;
  }
  footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  /* Search & filter inputs full width */
  .catalog-search, .catalog-select {
    max-width: 100%;
  }

  /* Player grid reduce columns */
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Table scroll indicator */
.table-responsive {
  position: relative;
}
.table-responsive::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 100%;
  background: linear-gradient(to left, var(--bg-surface) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.table-responsive.is-scrollable::after {
  opacity: 1;
}

/* Custom focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--primary-neon) !important;
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  box-shadow: 0 0 0 3px var(--primary-neon-glow) !important;
}

/* Import operations cockpit */
.import-operations-hero {
  background: linear-gradient(135deg, #17223a, #101722 58%, #0d1117);
  border-left: 4px solid var(--bs-primary) !important;
}

.import-operation-metric {
  min-height: 72px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
}

.import-operation-metric span {
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
}

.import-operation-metric strong {
  font-size: 1.05rem;
}

.visualization-coverage {
  border-left: 4px solid #8b5cf6 !important;
  background-image: radial-gradient(circle at 96% 0%, rgba(139, 92, 246, 0.13), transparent 34%);
}

.visualization-coverage .progress {
  height: 0.55rem;
  background: rgba(148, 163, 184, 0.16);
}

.visualization-metric {
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.34);
}

.visualization-ledger > div {
  min-height: 64px;
  padding: 0.7rem;
  border-radius: 0.65rem;
  background: rgba(139, 92, 246, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.25rem;
}

.visualization-ledger span {
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
}

.visualization-ledger strong {
  font-size: 1rem;
}

.import-fixture-coverage {
  border-left: 4px solid #22c55e !important;
}

.import-fixture-coverage .progress {
  height: 0.55rem;
  background: rgba(148, 163, 184, 0.16);
}

.fixture-budget-panel {
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.46);
}

.fixture-budget-metric {
  min-height: 68px;
  padding: 0.7rem;
  border-radius: 0.65rem;
  background: rgba(148, 163, 184, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.25rem;
}

.fixture-budget-metric span {
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
}

.fixture-budget-metric strong {
  font-size: 1rem;
}
.import-provider-overview {
  border-top: 3px solid rgba(13, 110, 253, 0.32) !important;
}

.import-provider-overview .card-body {
  display: flex;
  flex-direction: column;
}

.import-provider-overview [data-provider-overview-detail] {
  flex: 1;
}

@media (max-width: 767.98px) {
  .import-operations-hero .card-body {
    padding: 1rem !important;
  }

  .import-operations-hero [data-operations-last-success] {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
/* --- GOALIX UNIFIED PRODUCT DESIGN SYSTEM --- */
h1, .h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h2, .h2, .h3 { letter-spacing: -0.025em; }
h3, .h3, .h4, .h5 { line-height: 1.3; }
small, .small { line-height: 1.45; }
.tracking-wider { letter-spacing: 0.08em; }
.text-muted { color: var(--text-muted) !important; }

.navbar-custom {
  background: rgba(11, 13, 16, 0.98) !important;
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-block: 0.65rem;
}
.navbar-custom .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.navbar-brand-custom {
  background: none;
  color: #a78bfa;
  -webkit-text-fill-color: currentColor;
  letter-spacing: -0.04em;
}
.nav-link-custom {
  border-radius: var(--radius-control);
  font-size: 0.875rem;
  font-weight: 600;
}
.nav-link-custom:hover {
  color: var(--text-main) !important;
  background: var(--bg-surface);
  text-shadow: none;
}
.nav-link-custom.active {
  color: #c4b5fd !important;
  background: rgba(124, 92, 255, 0.12);
}
.search-input-custom, .form-control, .form-select {
  min-height: 42px;
  border-radius: var(--radius-control) !important;
  font-size: 0.875rem;
  font-weight: 500;
}
.search-input-custom { border-radius: var(--radius-control) !important; }
.form-control:focus, .form-select:focus {
  border-color: var(--primary-neon) !important;
  box-shadow: 0 0 0 3px var(--primary-neon-glow) !important;
}
.btn {
  border-radius: var(--radius-control);
  font-size: 0.875rem;
  font-weight: 700;
  min-height: 40px;
}
.btn-sm { min-height: 34px; font-size: 0.8rem; }
.btn-primary {
  --bs-btn-bg: var(--primary-neon);
  --bs-btn-border-color: var(--primary-neon);
  --bs-btn-hover-bg: #6d4df2;
  --bs-btn-hover-border-color: #6d4df2;
  --bs-btn-color: #fff;
}
.btn-outline-primary {
  --bs-btn-color: #a78bfa;
  --bs-btn-border-color: rgba(124, 92, 255, 0.7);
  --bs-btn-hover-bg: rgba(124, 92, 255, 0.12);
  --bs-btn-hover-color: #ddd6fe;
  --bs-btn-hover-border-color: #8b72ff;
}

.card, .fixture-panel, .goalix-command, .league-card, .compact-match, .side-panel > .bg-dark {
  background: var(--bg-surface) !important;
  border-color: var(--border-glass) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.card, .fixture-panel, .goalix-command { border-radius: var(--radius-panel) !important; }
.card { margin-bottom: var(--space-4); }
.card-header, .fixture-panel-header, .fixture-filterbar { background: transparent !important; }
.card-header, .fixture-panel-header { padding: var(--space-4) var(--space-5) !important; }
.fixture-filterbar { padding: var(--space-3) var(--space-5); }
.league-card {
  min-height: 100%;
  padding: var(--space-4);
  border-radius: var(--radius-panel);
}
.league-card:hover, .card.team-card:hover {
  background: #181b21 !important;
  border-color: var(--border-glass-hover) !important;
  box-shadow: none;
  transform: translateY(-1px);
}
.league-strip { background: #121419; padding: 0.7rem var(--space-5); }
.match-row { padding: 0.85rem var(--space-5); }
.match-row:hover { background: #191c22; border-left-color: var(--primary-neon); }
.compact-match { padding: 0.75rem; border-radius: var(--radius-control); }
.goalix-stat { border-radius: var(--radius-control); }
.section-heading { padding-bottom: var(--space-3); border-bottom: 1px solid var(--border-glass); }

.fixture-status { border-radius: 7px !important; letter-spacing: 0.04em; }
.fixture-status-live {
  color: var(--state-success) !important;
  background: rgba(34, 197, 94, 0.1) !important;
  border-color: rgba(34, 197, 94, 0.34);
}
.fixture-status-live::after { background: var(--state-success); }
.fixture-status-scheduled {
  color: var(--state-warning) !important;
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.32);
}
.fixture-status-finished {
  color: var(--state-disabled) !important;
  background: rgba(107, 114, 128, 0.1) !important;
}
.data-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
}
.data-availability.is-available {
  color: var(--state-success);
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.28);
}
.data-availability.is-unavailable {
  color: var(--state-disabled);
  background: rgba(107, 114, 128, 0.08);
  border-color: rgba(107, 114, 128, 0.25);
}
.nav-tabs .nav-link.disabled, .nav-tabs .nav-link:disabled {
  color: var(--state-disabled) !important;
  opacity: 0.62;
  cursor: not-allowed;
}
.empty-state { padding: 3rem var(--space-5) !important; }
.empty-state > i { font-size: 2.25rem !important; opacity: 0.72; }
.alert { border-radius: var(--radius-control); border: 1px solid var(--border-glass); }
.alert-info {
  color: #c4b5fd;
  background: rgba(124, 92, 255, 0.08);
  border-color: rgba(124, 92, 255, 0.26);
}

.page-transition[hidden] { display: none; }
.page-transition {
  position: fixed;
  inset: 69px 0 0;
  z-index: 1025;
  background: var(--bg-base);
}
.page-transition-progress {
  height: 2px;
  width: 35%;
  background: var(--primary-neon);
  box-shadow: 0 0 12px var(--primary-neon-glow);
  animation: page-progress 1s ease-in-out infinite;
}
.page-transition-shell { padding-top: 2rem; }
.skeleton-panel {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
}
.skeleton-block {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #20232a 20%, #2c3039 50%, #20232a 80%);
  background-size: 240% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.skeleton-heading { width: min(18rem, 70%); height: 2rem; }
.skeleton-copy { width: min(28rem, 85%); height: 0.85rem; margin-top: 0.75rem; }
.skeleton-control { width: 100%; height: 2.75rem; }
.skeleton-row { width: 100%; height: 4.5rem; }
.skeleton-row-short { width: 72%; }

.mobile-bottom-nav { display: none; }
.mobile-search-canvas {
  --bs-offcanvas-height: min(42vh, 300px);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass) !important;
  border-radius: 20px 20px 0 0;
}
.mobile-search-canvas .offcanvas-header { padding: 1.25rem 1.25rem 0.75rem; }
.mobile-search-canvas .offcanvas-body { overflow: visible; }

@keyframes skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@keyframes page-progress {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(300%); }
}

@media (max-width: 768px) {
  body {
    padding-top: 72px;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .app-main { padding-bottom: 1rem; }
  .app-main > .container { padding-inline: 0.75rem; }
  footer { display: none; }
  .navbar-custom { padding: 0.55rem 0.75rem; }
  .navbar-brand-custom { font-size: 1.3rem; }
  .card-header, .fixture-panel-header { padding: var(--space-4) !important; }
  .fixture-filterbar { padding: var(--space-3) var(--space-4); }
  .league-strip, .match-row { padding-inline: var(--space-4); }
  .match-row:hover { padding-left: calc(var(--space-4) - 3px); }
  .mobile-bottom-nav {
    position: fixed;
    z-index: 1040;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0.4rem max(0.5rem, env(safe-area-inset-right)) calc(0.4rem + env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
    background: rgba(15, 17, 21, 0.98);
    border-top: 1px solid var(--border-glass);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.3);
  }
  .mobile-bottom-link {
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.35rem 0.15rem;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
  }
  .mobile-bottom-link i { font-size: 1.15rem; line-height: 1; }
  .mobile-bottom-link:hover, .mobile-bottom-link.active {
    color: #a78bfa;
    background: rgba(124, 92, 255, 0.1);
    text-shadow: none;
  }
  .page-transition { inset-block-start: 61px; inset-block-end: 70px; }
  .page-transition-shell { padding-top: 1.25rem; }
  .skeleton-panel { margin-top: 1.5rem; padding: var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* --- MATCH DATA VISUALIZATION --- */
.match-overview,
.match-event-summary {
  padding: 1.25rem;
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(circle at 0 0, rgba(124, 92, 255, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.018);
}
.match-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
}
.match-stat-row {
  min-width: 0;
  padding: 0.8rem 0;
}
.match-stat-values {
  display: grid;
  grid-template-columns: minmax(2.5rem, 1fr) minmax(7rem, auto) minmax(2.5rem, 1fr);
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  font-family: var(--bs-font-monospace);
}
.match-stat-value {
  color: #c7cad1;
  font-size: 1rem;
  font-weight: 700;
}
.match-stat-value.is-leading {
  color: #a78bfa;
}
.match-stat-label {
  overflow: hidden;
  color: var(--text-muted);
  font-family: var(--bs-body-font-family);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.match-stat-track,
.match-event-distribution {
  display: flex;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.match-stat-home,
.match-stat-away,
.match-event-distribution-home,
.match-event-distribution-away {
  display: block;
  min-width: 0;
  transition: width 240ms ease;
}
.match-stat-home,
.match-event-distribution-home {
  background: linear-gradient(90deg, #6d4aff, #9d82ff);
}
.match-stat-away,
.match-event-distribution-away {
  background: linear-gradient(90deg, #697080, #949cac);
}
.match-stat-row.is-incomplete .match-stat-track {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 6px, rgba(255,255,255,.025) 6px 12px);
}
.match-stat-row.is-incomplete .match-stat-home,
.match-stat-row.is-incomplete .match-stat-away {
  background: transparent;
}
.match-data-source {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}
.match-stat-group {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-glass);
}
.match-stat-group:last-child {
  border-bottom: 0;
}
.match-stat-group h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  color: #f1f2f5;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.match-stat-group h3 i {
  color: #9d82ff;
}
.match-event-summary {
  margin-bottom: 1.5rem;
}
.match-event-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}
.match-event-summary-metrics span {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.72rem;
}
.match-event-summary-metrics i {
  margin-right: 0.25rem;
  color: #a78bfa;
}
.match-event-distribution {
  height: 9px;
  margin: 1rem 0 0.65rem;
}
.match-timeline {
  position: relative;
  padding: 0.25rem 0;
}
.match-timeline::before {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(124, 92, 255, 0.4) 8%, rgba(124, 92, 255, 0.4) 92%, transparent);
  content: "";
}
.match-event-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  min-height: 96px;
}
.match-event-row .match-event-card {
  width: min(100%, 24rem);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.match-event-row.is-home .match-event-card {
  grid-column: 1;
  justify-self: end;
  border-right-color: rgba(124, 92, 255, 0.58);
  text-align: right;
}
.match-event-row.is-away .match-event-card,
.match-event-row.is-neutral .match-event-card {
  grid-column: 3;
  justify-self: start;
  border-left-color: rgba(148, 156, 172, 0.58);
}
.match-event-marker {
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.2rem;
  color: #a78bfa;
  font-family: var(--bs-font-monospace);
  font-size: 0.76rem;
}
.match-event-marker .match-event-icon {
  width: 34px;
  height: 34px;
  background: #16181e;
  box-shadow: 0 0 0 5px #111318;
}
.match-event-team {
  overflow: hidden;
  margin-bottom: 0.25rem;
  color: #9d82ff;
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .match-overview,
  .match-event-summary {
    padding: 1rem;
  }
  .match-overview-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .match-stat-values {
    grid-template-columns: minmax(2.25rem, 1fr) minmax(6.5rem, auto) minmax(2.25rem, 1fr);
    gap: 0.45rem;
  }
  .match-stat-label {
    font-size: 0.62rem;
  }
  .match-event-summary > .d-flex {
    align-items: flex-start !important;
    flex-direction: column;
  }
  .match-event-summary-metrics {
    justify-content: flex-start;
  }
  .match-timeline::before {
    inset-inline-start: 21px;
  }
  .match-event-row {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 90px;
  }
  .match-event-row .match-event-card,
  .match-event-row.is-home .match-event-card,
  .match-event-row.is-away .match-event-card,
  .match-event-row.is-neutral .match-event-card {
    grid-column: 2;
    justify-self: stretch;
    width: auto;
    text-align: left;
  }
  .match-event-marker {
    grid-column: 1;
  }
}
.match-event-team-counts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
}
.match-event-team-counts span {
  min-width: 0;
}
.match-event-team-counts span:last-child {
  text-align: right;
}

.match-substitution-players {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.match-substitution-player {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.match-event-row.is-home .match-substitution-player {
  flex-direction: row-reverse;
}
.match-substitution-player i {
  flex: 0 0 auto;
  font-size: 1rem;
}
.match-substitution-player span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.match-substitution-player small {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.match-substitution-player strong {
  overflow: hidden;
  color: #f1f2f5;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-substitution-player.is-in i {
  color: #35d07f;
}
.match-substitution-player.is-out i {
  color: #ff6174;
}

@media (max-width: 768px) {
  .match-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .match-tabs::-webkit-scrollbar {
    display: none;
  }
  .match-tabs .nav-item {
    flex: 0 0 auto;
  }
}
/* --- LINEUP AND PLAYER PERFORMANCE VISUALIZATION --- */
.lineup-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.lineup-view-switch {
  display: inline-flex;
  padding: 0.25rem;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  background: #111318;
}
.lineup-view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 7px;
  color: var(--text-muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
}
.lineup-view-switch button:hover,
.lineup-view-switch button:focus-visible {
  color: #fff;
}
.lineup-view-switch button.is-active {
  color: #fff;
  background: #292d36;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}
.lineup-pitch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.lineup-team-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-panel);
  background: #111318;
}
.lineup-team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-glass);
}
.lineup-team-name {
  overflow: hidden;
  color: #f4f5f7;
  font-size: 0.9rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lineup-team-name i {
  margin-right: 0.4rem;
  color: #a78bfa;
}
.lineup-formation {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-family: var(--bs-font-monospace);
  font-size: 0.72rem;
}
.lineup-empty {
  padding: 4rem 1rem;
  color: var(--text-muted);
  text-align: center;
}
.football-pitch {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 8px solid #173827;
  background: #1d5439;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}
.football-pitch::before,
.football-pitch::after {
  position: absolute;
  left: 50%;
  z-index: 0;
  width: 44%;
  height: 15%;
  border: 1px solid rgba(255, 255, 255, 0.43);
  content: "";
  transform: translateX(-50%);
}
.football-pitch::before {
  top: -1px;
  border-top: 0;
}
.football-pitch::after {
  bottom: -1px;
  border-bottom: 0;
}
.football-pitch-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.football-pitch-lines::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.43);
  content: "";
}
.football-pitch-lines::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.43);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}
.football-pitch-players {
  position: absolute;
  inset: 1.35rem 0.65rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.football-pitch-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  gap: 0.25rem;
  width: 100%;
}
.pitch-player {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  max-width: 88px;
  justify-items: center;
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.pitch-player-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: #fff;
  background: #6d4aff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.38);
  font-family: var(--bs-font-monospace);
  font-size: 0.76rem;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease;
}
.football-pitch.is-away .pitch-player-marker {
  background: #3d4350;
}
.pitch-player:hover .pitch-player-marker,
.pitch-player:focus-visible .pitch-player-marker {
  border-color: #fff;
  transform: translateY(-2px);
}
.pitch-player-name {
  display: block;
  overflow: hidden;
  width: 100%;
  margin-top: 0.24rem;
  padding: 0.12rem 0.22rem;
  border-radius: 4px;
  color: #fff;
  background: rgba(9, 17, 13, 0.78);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pitch-player-rating {
  margin-top: 0.15rem;
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
  color: #111318;
  background: #a7f3d0;
  font-family: var(--bs-font-monospace);
  font-size: 0.6rem;
  font-weight: 800;
}

.top-performance-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: var(--radius-panel);
  background: #171821;
}
.top-performance-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: #c4b5fd;
  background: rgba(124, 92, 255, 0.14);
  font-size: 1.1rem;
}
.top-performance-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.top-performance-copy > span {
  color: #a78bfa;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.top-performance-copy a {
  overflow: hidden;
  color: #fff;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-performance-copy small {
  color: var(--text-muted);
  font-size: 0.7rem;
}
.top-performance-hero > strong {
  color: #a7f3d0;
  font-family: var(--bs-font-monospace);
  font-size: 1.8rem;
}
.player-performance-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.player-performance-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border-glass);
  border-top: 2px solid #7c5cff;
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.02);
}
.player-performance-card.is-away {
  border-top-color: #7f8797;
}
.player-performance-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.player-performance-card header div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.player-performance-card header span {
  color: var(--text-muted);
  font-size: 0.68rem;
}
.player-performance-card header a {
  overflow: hidden;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-performance-card header > strong {
  color: #a7f3d0;
  font-family: var(--bs-font-monospace);
  font-size: 1.35rem;
}
.player-performance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.player-performance-metrics span {
  min-width: 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-glass);
}
.player-performance-metrics small {
  display: block;
  min-height: 2.2em;
  color: var(--text-muted);
  font-size: 0.59rem;
  line-height: 1.1;
}
.player-performance-metrics b {
  display: block;
  margin-top: 0.2rem;
  color: #f3f4f6;
  font-family: var(--bs-font-monospace);
  font-size: 0.88rem;
}
.performance-leaders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.performance-leaders > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  background: #14161b;
}
.performance-leaders i {
  color: #a78bfa;
}
.performance-leaders span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.performance-leaders small {
  color: var(--text-muted);
  font-size: 0.6rem;
}
.performance-leaders strong {
  overflow: hidden;
  color: #f1f2f5;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.performance-leaders b {
  color: #a7f3d0;
  font-family: var(--bs-font-monospace);
}

@media (max-width: 991px) {
  .lineup-pitch-grid {
    grid-template-columns: 1fr;
  }
  .football-pitch {
    min-height: 520px;
  }
}

@media (max-width: 768px) {
  .lineup-view-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .lineup-view-switch {
    align-self: flex-start;
  }
  .football-pitch {
    min-height: 410px;
    border-width: 6px;
  }
  .football-pitch-players {
    inset: 1rem 0.35rem;
  }
  .pitch-player {
    max-width: 68px;
  }
  .pitch-player-marker {
    width: 30px;
    height: 30px;
    font-size: 0.68rem;
  }
  .pitch-player-name {
    font-size: 0.56rem;
  }
  .player-performance-compare {
    grid-template-columns: 1fr;
  }
  .performance-leaders {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .football-pitch {
    min-height: 380px;
  }
  .lineup-team-header {
    padding-inline: 0.75rem;
  }
  .pitch-player-name {
    max-width: 58px;
  }
  .player-performance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* --- LIVE MATCH EXPERIENCE --- */
.live-match-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(16, 185, 129, 0.055);
}
.live-match-state {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.live-match-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.live-match-indicator i,
.live-score-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
  animation: live-match-pulse 1.8s infinite;
}
.live-match-state strong {
  color: #f4f5f7;
  font-family: var(--bs-font-monospace);
  font-size: 0.88rem;
}
.live-match-sync {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}
.live-match-sync > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.live-match-sync time {
  color: #d6d8df;
  font-weight: 700;
}
[data-live-refresh-status] {
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-glass);
  white-space: nowrap;
}
[data-live-refresh-status][data-state="updated"],
[data-live-refresh-status][data-state="current"] {
  color: #6ee7b7;
}
[data-live-refresh-status][data-state="checking"] {
  color: #c4b5fd;
}
[data-live-refresh-status][data-state="error"] {
  color: #fda4af;
}
[data-live-refresh-status][data-state="paused"] {
  color: #fbbf24;
}
.live-match-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.live-match-actions button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 0.38rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: #c9ccd4;
  background: #15171c;
  font-size: 0.7rem;
  font-weight: 700;
}
.live-match-actions button:hover,
.live-match-actions button:focus-visible {
  border-color: rgba(167, 139, 250, 0.5);
  color: #fff;
  background: #1d2027;
}
.live-match-actions button[aria-pressed="true"] {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}
.live-match-actions button.is-loading i {
  animation: live-refresh-spin 0.8s linear infinite;
}
.match-live-score-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  color: #6ee7b7;
  font-family: var(--bs-font-monospace);
  font-size: 0.82rem;
  font-weight: 800;
}

@keyframes live-match-pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}
@keyframes live-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 991px) {
  .live-match-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .live-match-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .live-match-strip {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.75rem;
  }
  .live-match-state,
  .live-match-sync,
  .live-match-actions {
    justify-content: space-between;
  }
  .live-match-sync {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }
  [data-live-refresh-status] {
    padding-left: 0;
    border-left: 0;
  }
  .live-match-actions {
    grid-column: auto;
  }
  .live-match-actions button {
    flex: 1 1 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-match-indicator i,
  .live-score-pulse,
  .live-match-actions button.is-loading i {
    animation: none;
  }
}

/* --- HOME LIVE CENTER --- */
.home-live-panel {
  margin-bottom: var(--space-4);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: var(--radius-panel);
}

.home-live-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--space-5);
  border-bottom: 1px solid var(--border-glass);
}

.home-live-heading,
.home-live-tools,
.home-live-card-top,
.home-live-card-footer,
.home-live-league {
  display: flex;
  align-items: center;
}

.home-live-heading {
  gap: 0.75rem;
}

.home-live-heading h1 {
  margin: 0;
  color: #f4f5f7;
  font-size: 1.05rem;
  font-weight: 800;
}

.home-live-heading p {
  margin: 0.12rem 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.home-live-signal {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.08);
}

.home-live-signal i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
  animation: live-match-pulse 1.8s infinite;
}

.home-live-tools {
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.home-live-tools button,
.home-favorite-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.72rem;
  color: #d7dae0;
  text-decoration: none;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-control);
  background: #15171c;
  font-size: 0.7rem;
  font-weight: 700;
}

.home-live-tools button:hover,
.home-live-tools button:focus-visible,
.home-favorite-button:hover,
.home-favorite-button:focus-visible {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.5);
  background: #1d2027;
}

.home-live-tools button.is-loading i {
  animation: live-refresh-spin 0.8s linear infinite;
}

[data-live-center-status][data-state="checking"] {
  color: #c4b5fd;
}

[data-live-center-status][data-state="current"] {
  color: #6ee7b7;
}

[data-live-center-status][data-state="error"] {
  color: #fda4af;
}

.home-live-empty {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem var(--space-5);
  color: var(--text-muted);
}

.home-live-empty > i {
  color: #747986;
  font-size: 1.15rem;
}

.home-live-empty div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.home-live-empty strong {
  color: #d6d8df;
  font-size: 0.82rem;
}

.home-live-empty span {
  font-size: 0.7rem;
}

.home-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-live-card {
  position: relative;
  min-width: 0;
  padding: 0.9rem var(--space-5);
  border-right: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: #121419;
  transition: background 0.16s ease;
}

.home-live-card:nth-child(2n) {
  border-right: 0;
}

.home-live-card:hover {
  background: #191c22;
}

.home-live-card-link {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.home-live-card-top,
.home-live-card-footer {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}

.home-live-league {
  min-width: 0;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.home-live-league img,
.home-live-scoreline img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}

.home-live-league span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-live-minute {
  flex: 0 0 auto;
  color: #6ee7b7;
  font-family: var(--bs-font-monospace);
  font-size: 0.75rem;
  font-weight: 800;
}

.home-live-scoreline {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0;
  pointer-events: none;
}

.home-live-scoreline > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
}

.home-live-scoreline > span:last-child {
  flex-direction: row-reverse;
  text-align: right;
}

.home-live-scoreline strong {
  overflow: visible;
  color: #f4f5f7;
  font-size: 0.82rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.home-live-scoreline b {
  color: #a78bfa;
  font-family: var(--bs-font-monospace);
  font-size: 1rem;
  white-space: nowrap;
}

.home-live-card-footer time {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.home-favorite-form,
.home-favorite-button {
  position: relative;
  z-index: 3;
  margin: 0;
  pointer-events: auto;
}

.home-favorite-button {
  min-height: 30px;
  padding: 0.3rem 0.55rem;
}

.home-favorite-button.is-active {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(251, 191, 36, 0.06);
}

@media (max-width: 768px) {
  .home-live-header {
    align-items: flex-start;
    padding: 0.8rem var(--space-4);
  }

  .home-live-tools {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 0.35rem;
  }

  .home-live-grid {
    grid-template-columns: 1fr;
  }

  .home-live-card,
  .home-live-card:nth-child(2n) {
    padding-inline: var(--space-4);
    border-right: 0;
  }
}

@media (max-width: 480px) {
  .home-live-heading p,
  [data-live-center-status] {
    display: none;
  }

  .home-live-scoreline {
    gap: 0.45rem;
  }

  .home-live-card-footer time {
    max-width: 48%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-live-signal i,
  .home-live-tools button.is-loading i {
    animation: none;
  }
}
/* User follows and notification center */
.match-header-actions,
.engagement-page-header,
.engagement-summary,
.engagement-panel-heading,
.favorite-match-main,
.favorite-team-main,
.favorite-team-main > a,
.notification-row button,
.notification-row-copy,
.notification-dropdown-header,
.notification-dropdown-item button {
  display: flex;
  align-items: center;
}

.match-header-actions {
  gap: 0.65rem;
}

.follow-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.follow-button:hover,
.follow-button.is-active {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}

.engagement-page {
  display: grid;
  gap: 1.25rem;
}

.engagement-page-header {
  justify-content: space-between;
  gap: 1rem;
}

.engagement-page-header h1 {
  margin: 0 0 0.3rem;
  color: var(--text-main);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.engagement-page-header p {
  margin: 0;
  color: var(--text-muted);
}

.engagement-summary {
  gap: 0.65rem;
  flex-wrap: wrap;
}

.engagement-summary span {
  padding: 0.55rem 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
}

.engagement-summary strong {
  color: var(--text-main);
}

.engagement-panel {
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.engagement-panel-heading {
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border-glass);
}

.engagement-panel-heading h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 1rem;
}

.engagement-panel-heading span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.engagement-empty {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.engagement-empty i {
  color: var(--primary);
  font-size: 1.5rem;
}

.engagement-empty strong {
  color: var(--text-main);
}

.engagement-empty.compact {
  padding-block: 1.5rem;
}

.favorite-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.favorite-match-main {
  min-width: 0;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.favorite-match-main time {
  flex: 0 0 70px;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.favorite-match-teams {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0.1rem;
}

.favorite-match-teams span {
  overflow: hidden;
  color: var(--text-main);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-match-teams strong {
  color: var(--primary);
  font-family: var(--bs-font-monospace);
}

.notification-preferences {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.notification-preferences label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.notification-preferences button,
.favorite-remove {
  padding: 0.3rem 0.45rem;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  border-radius: 0.45rem;
  background: transparent;
  font-size: 0.68rem;
}

.notification-preferences button:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.favorite-remove {
  color: #fbbf24;
}

.favorite-team-card {
  padding: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.favorite-team-main {
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.favorite-team-main > a {
  min-width: 0;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.favorite-team-main img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.favorite-team-main span {
  display: grid;
}

.favorite-team-main strong {
  color: var(--text-main);
  font-size: 0.82rem;
}

.favorite-team-main small {
  color: var(--text-muted);
}

.notification-preferences.stack {
  display: grid;
  align-items: stretch;
}

.notification-row {
  margin: 0;
  border-bottom: 1px solid var(--border-glass);
}

.notification-row button,
.notification-dropdown-item button {
  width: 100%;
  color: inherit;
  border: 0;
  background: transparent;
  text-align: left;
}

.notification-row button {
  gap: 0.8rem;
  padding: 1rem 1.1rem;
}

.notification-row.is-unread {
  background: rgba(167, 139, 250, 0.07);
}

.notification-row-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--primary);
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.12);
}

.notification-row-copy {
  min-width: 0;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
}

.notification-row-copy strong {
  color: var(--text-main);
}

.notification-row-copy span,
.notification-row time {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.notification-menu {
  position: relative;
}

.notification-menu-toggle {
  position: relative;
  min-width: 38px;
  justify-content: center;
  border: 0;
  background: transparent;
}

.notification-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  padding: 0 4px;
  color: #140c24;
  border-radius: 999px;
  background: #fbbf24;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 17px;
}

.notification-dropdown {
  width: min(360px, calc(100vw - 2rem));
  padding: 0;
  overflow: hidden;
}

.notification-dropdown-header {
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border-glass);
}

.notification-dropdown-header a {
  font-size: 0.7rem;
}

.notification-dropdown-empty {
  padding: 1.25rem;
  color: var(--text-muted);
  text-align: center;
}

.notification-dropdown-item {
  margin: 0;
  border-bottom: 1px solid var(--border-glass);
}

.notification-dropdown-item.is-unread {
  background: rgba(167, 139, 250, 0.08);
}

.notification-dropdown-item button {
  display: grid;
  gap: 0.12rem;
  padding: 0.75rem 0.9rem;
}

.notification-dropdown-item strong {
  color: var(--text-main);
  font-size: 0.76rem;
}

.notification-dropdown-item span,
.notification-dropdown-item time {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .favorite-match-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .notification-preferences {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .engagement-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .favorite-match-main {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .favorite-match-main time {
    flex-basis: auto;
  }

  .favorite-match-teams {
    flex-basis: calc(100% - 70px);
  }

  .notification-row button {
    align-items: flex-start;
  }

  .notification-row time {
    display: none;
  }

  .match-header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Data visibility: valuation, form and match comparison */
.market-value-change {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.market-value-change.is-positive {
  color: #34d399;
  background: rgba(52, 211, 153, 0.09);
}

.market-value-change.is-negative {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.09);
}

.market-value-chart {
  overflow-x: auto;
  padding: 0.7rem 0.7rem 0.35rem;
  border: 1px solid var(--border-glass);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(129, 140, 248, 0.1), transparent 48%),
    rgba(8, 13, 29, 0.48);
}

.market-value-chart svg {
  display: block;
  width: 100%;
  min-width: 560px;
  height: auto;
}

.market-chart-grid {
  stroke: rgba(148, 163, 184, 0.16);
  stroke-width: 1;
  stroke-dasharray: 5 7;
}

.market-chart-axis {
  fill: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.market-chart-line {
  fill: none;
  stroke: #a5b4fc;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.35));
}

.market-chart-point {
  fill: #111827;
  stroke: #c7d2fe;
  stroke-width: 3;
  transition: r 150ms ease, fill 150ms ease;
}

.market-chart-point-link:hover .market-chart-point,
.market-chart-point-link:focus .market-chart-point {
  r: 8;
  fill: #818cf8;
  outline: none;
}

.market-chart-dates {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.market-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.market-chart-summary > div {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-glass);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.025);
}

.market-chart-summary span,
.market-chart-summary strong {
  display: block;
}

.market-chart-summary span {
  margin-bottom: 0.22rem;
  color: var(--text-muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.market-chart-summary strong {
  color: var(--text-main);
  font-size: 0.86rem;
}

.team-form-panel {
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 90% 0%, rgba(16, 185, 129, 0.1), transparent 36%),
    rgba(8, 13, 29, 0.5);
}

.team-form-header,
.team-form-record,
.team-form-kpis,
.team-form-legend {
  display: flex;
  align-items: center;
}

.team-form-header {
  justify-content: space-between;
  gap: 1rem;
}

.team-form-record {
  gap: 0.35rem;
}

.team-form-record span {
  min-width: 42px;
  padding: 0.35rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.team-form-record .is-win,
.team-form-result.is-win,
.team-form-legend i.is-win {
  color: #34d399;
}

.team-form-record .is-draw,
.team-form-result.is-draw,
.team-form-legend i.is-draw {
  color: #fbbf24;
}

.team-form-record .is-loss,
.team-form-result.is-loss,
.team-form-legend i.is-loss {
  color: #fb7185;
}

.team-form-kpis {
  gap: 0.65rem;
  margin: 1rem 0;
}

.team-form-kpis > div {
  min-width: 130px;
  padding: 0.55rem 0.7rem;
  border-left: 2px solid rgba(129, 140, 248, 0.55);
  background: rgba(255, 255, 255, 0.025);
}

.team-form-kpis span,
.team-form-kpis strong {
  display: block;
}

.team-form-kpis span {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.team-form-kpis strong {
  margin-top: 0.15rem;
  color: var(--text-main);
  font-size: 0.92rem;
}

.team-form-chart {
  display: grid;
  grid-template-columns: repeat(10, minmax(42px, 1fr));
  gap: clamp(0.35rem, 1vw, 0.75rem);
  min-width: 520px;
  min-height: 185px;
  padding: 0.8rem 0.4rem 0.25rem;
  border-bottom: 1px solid var(--border-glass);
}

.team-form-panel:has(.team-form-chart) {
  overflow-x: auto;
}

.team-form-match {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 0.28rem;
  min-width: 0;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.team-form-score,
.team-form-date {
  color: var(--text-muted);
  font-size: 0.67rem;
}

.team-form-bar-zone {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 96px;
}

.team-form-bar {
  width: min(26px, 55%);
  min-height: 10px;
  border-radius: 7px 7px 2px 2px;
  transition: filter 150ms ease, transform 150ms ease;
}

.team-form-match.is-win .team-form-bar {
  background: linear-gradient(180deg, #34d399, #059669);
}

.team-form-match.is-draw .team-form-bar {
  background: linear-gradient(180deg, #fbbf24, #d97706);
}

.team-form-match.is-loss .team-form-bar {
  background: linear-gradient(180deg, #fb7185, #be123c);
}

.team-form-match:hover .team-form-bar,
.team-form-match:focus .team-form-bar {
  filter: brightness(1.2);
  transform: scaleX(1.12);
}

.team-form-result {
  font-size: 0.78rem;
  font-weight: 900;
}

.team-form-legend {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.67rem;
}

.team-form-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.2rem;
  border-radius: 50%;
  background: currentColor;
}

.match-comparison-scorecard {
  max-width: 940px;
  margin: 0 auto 1.3rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.09), rgba(15, 23, 42, 0.45));
}

.match-comparison-heading,
.match-comparison-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.match-comparison-teams {
  margin: 1rem 0 0.85rem;
}

.match-comparison-teams > div:not(.match-comparison-balance) {
  display: grid;
  flex: 0 0 min(180px, 25%);
}

.match-comparison-teams > .is-away {
  text-align: right;
}

.match-comparison-teams span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.match-comparison-teams strong {
  color: var(--text-main);
  font-size: 1.8rem;
  line-height: 1.1;
}

.match-comparison-teams small {
  color: var(--text-muted);
  font-size: 0.62rem;
}

.match-comparison-balance {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  height: 14px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.match-comparison-balance > span {
  height: 100%;
}

.match-comparison-balance > span.is-home {
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #4f46e5, #818cf8);
}

.match-comparison-balance > span.is-away {
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #64748b, #cbd5e1);
}

.match-comparison-balance b {
  position: absolute;
  top: 20px;
  left: 50%;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  transform: translateX(-50%);
  white-space: nowrap;
}

@media (max-width: 576px) {
  .market-chart-summary {
    grid-template-columns: 1fr;
  }

  .team-form-header,
  .match-comparison-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-form-kpis {
    align-items: stretch;
    flex-direction: column;
  }

  .match-comparison-teams {
    gap: 0.55rem;
  }

  .match-comparison-teams > div:not(.match-comparison-balance) {
    flex-basis: 28%;
  }

  .match-comparison-teams strong {
    font-size: 1.35rem;
  }
}

/* League grouping and personalization priority in the live center. */
.home-live-league-group + .home-live-league-group {
  border-top: 1px solid var(--border-glass);
}

.home-live-league-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem var(--space-5);
  background: rgba(255, 255, 255, 0.025);
}

.home-live-league-header .home-live-league {
  flex: 1;
}

.home-live-league-header small {
  color: var(--text-muted);
}

.home-live-league-count,
.engagement-priority {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fbbf24;
  font-size: 0.66rem;
  font-weight: 700;
}

.home-live-league-count {
  color: var(--text-muted);
}

.home-live-card.is-prioritized {
  box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.7);
}

@media (max-width: 576px) {
  .home-live-league-header {
    padding-inline: var(--space-4);
  }

  .home-live-league-header small,
  .home-live-league-header > .engagement-priority {
    display: none;
  }

  .home-live-scoreline strong {
    overflow: visible;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .catalog-pagination .pagination {
    justify-content: flex-start !important;
  }
}

@media (max-width: 360px) {
  .league-filter-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: var(--radius-control) !important;
    gap: 0.25rem;
  }

  .league-filter-group .btn {
    margin-left: 0 !important;
    padding-inline: 0.5rem !important;
  }
}
