/* Championships Page Styles */

/* CSS Variables */
:root {
  --champ-primary: #1a1a2e;
  --champ-secondary: #FFD700;
  --champ-accent: #e90052;
  --champ-gold: #FFD700;
  --champ-silver: #C0C0C0;
  --champ-bronze: #CD7F32;
  --champ-bg-dark: #1a1a2e;
  --champ-bg-card: rgba(26, 26, 46, 0.95);
  --champ-text: #ffffff;
  --champ-text-muted: #a0a0a0;
  --champ-border: rgba(255, 255, 255, 0.1);
  --champ-success: #27AE60;
  --champ-danger: #E74C3C;
  --champ-warning: #F39C12;
  --champ-gradient-primary: linear-gradient(135deg, rgba(55, 0, 60, 0.6) 0%, rgba(26, 26, 46, 0.8) 100%);
  --champ-gradient-card: linear-gradient(180deg, rgba(55, 0, 60, 0.3) 0%, rgba(26, 26, 46, 0.6) 100%);
}

/* Page Background - Full width override */
.championships-page {
  min-height: 100vh;
  background-color: var(--champ-bg-dark);
  background-image: url('/images/Background2.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: background-image 0.3s ease, background-color 0.3s ease;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.championships-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.championships-page.has-bg-image::before {
  opacity: 0.5;
}

.championships-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  padding-top: 80px; /* Space below fixed header */
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Page Header */
.championships-header {
  text-align: center;
  margin-bottom: 2rem;
}

.championships-header h1 {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  font-size: 2.5rem;
  color: var(--champ-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.championships-header h1 i {
  color: var(--champ-gold);
}

/* Search and Filters */
.championships-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.search-container input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--champ-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--champ-text);
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.search-container input:focus {
  outline: none;
  border-color: var(--champ-secondary);
  background: rgba(255, 255, 255, 0.1);
}

.search-container i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--champ-text-muted);
  pointer-events: none;
}

/* Filter Buttons */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--champ-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--champ-text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--champ-secondary);
}

.filter-btn.active {
  background: var(--champ-secondary);
  color: #1a1a2e;
  border-color: var(--champ-secondary);
  font-weight: 600;
}

/* Moderator Button */
.create-tournament-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--champ-accent) 0%, var(--champ-primary) 100%);
  color: var(--champ-text);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(233, 0, 82, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 100;
}

.create-tournament-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 0, 82, 0.4);
}

/* Tournament Cards Grid */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Tournament Card */
.tournament-card {
  background: var(--champ-bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--champ-border);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}

.tournament-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Tournament Card Actions Container (Moderator Only) */
.tournament-card-actions {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tournament-card:hover .tournament-card-actions {
  opacity: 1;
}

/* Edit Tournament Button (Moderator Only) */
.edit-tournament-btn,
.cancel-tournament-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.edit-tournament-btn:hover {
  background: var(--champ-secondary);
  color: var(--champ-primary);
  transform: scale(1.1);
}

.cancel-tournament-btn:hover {
  background: var(--champ-danger);
  color: white;
  transform: scale(1.1);
}

.cancel-tournament-btn.restore:hover {
  background: var(--champ-success);
  color: white;
}

.edit-tournament-btn i,
.cancel-tournament-btn i {
  font-size: 0.875rem;
}

/* Cancelled Tournament Card */
.tournament-card.cancelled {
  opacity: 0.6;
  filter: grayscale(50%);
}

.tournament-card.cancelled:hover {
  opacity: 0.8;
}

/* Cancelled Status Badge */
.status-cancelled {
  background: #666;
  color: white;
}

/* Small Modal for Confirmations */
.modal-container.modal-small {
  max-width: 400px;
}

.modal-container.modal-small .modal-body {
  text-align: center;
  padding: 2rem;
}

.modal-container.modal-small .modal-body p {
  margin-bottom: 0.5rem;
  color: #374151;
}

.modal-container.modal-small .cancel-warning {
  font-size: 0.85rem;
  color: #6b7280;
}

.modal-container.modal-small .modal-footer {
  justify-content: center;
}

.btn-danger {
  background: var(--champ-danger);
  border: none;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.btn-success {
  background: var(--champ-success);
  border: none;
  color: white;
}

.btn-success:hover {
  background: #1e8449;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.tournament-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: var(--champ-gradient-card);
  overflow: hidden;
}

.tournament-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-card-image .placeholder-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: var(--champ-text-muted);
}

/* Status Badge */
.status-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-ongoing {
  background: var(--champ-success);
  color: white;
}

.status-upcoming {
  background: var(--champ-warning);
  color: white;
}

.status-completed {
  background: var(--champ-text-muted);
  color: white;
}

/* Card Content */
.tournament-card-content {
  padding: 1rem;
}

.tournament-card-content h3 {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  font-size: 1.125rem;
  color: var(--champ-text);
  margin-bottom: 0.5rem;
}

.tournament-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.format-badge,
.type-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--champ-text-muted);
}

.tournament-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--champ-text-muted);
}

.participants {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.time-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--champ-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  color: var(--champ-gold);
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--champ-text);
}


/* ==================== Detail Page Styles ==================== */

/* Hero Header */
.championship-hero {
  position: relative;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  margin: -2rem -2rem 2rem -2rem;
  border-radius: 0 0 1rem 1rem;
  overflow: hidden;
}

.championship-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.9) 0%, rgba(26, 26, 46, 0.5) 50%, rgba(26, 26, 46, 0.3) 100%);
}

.championship-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--champ-text);
  text-decoration: none;
  margin-bottom: 1rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.back-btn:hover {
  opacity: 1;
}

.championship-hero h1 {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  font-size: 2.5rem;
  color: var(--champ-text);
  margin-bottom: 0.5rem;
}

.championship-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Tab Navigation */
.championship-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--champ-border);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--champ-text-muted);
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

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

.tab-btn.active {
  color: var(--champ-secondary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--champ-secondary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ==================== Bracket Styles ==================== */

.bracket-container {
  overflow-x: auto;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 100%);
  border-radius: 12px;
}

.bracket {
  display: flex;
  gap: 60px;
  min-width: max-content;
  padding: 20px;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  min-width: 220px;
}

.bracket-round-title {
  text-align: center;
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  color: var(--champ-secondary);
  padding: 10px 16px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bracket-matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  gap: 16px;
}

.bracket-match {
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.95) 0%, rgba(20, 20, 35, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: visible;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bracket-match:active {
  transform: scale(0.98);
}

.bracket-match:hover {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Bye match styling */
.bracket-match.bye-match {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(20, 20, 35, 0.6);
}

.bracket-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 48px;
}

.bracket-team:last-child {
  border-bottom: none;
}

.bracket-team.empty {
  opacity: 0.5;
}

.bracket-team.winner {
  background: linear-gradient(90deg, rgba(39, 174, 96, 0.15) 0%, transparent 100%);
}

.bracket-team.winner .team-name {
  color: var(--champ-success);
  font-weight: 700;
}

.bracket-team.user-team .team-name {
  color: var(--champ-secondary);
  font-weight: 600;
}

/* Team logo/avatar in bracket */
.bracket-team-logo,
.bracket-team-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bracket-team-avatar {
  border-radius: 50%;
}

.team-name {
  color: var(--champ-text);
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-score {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  font-size: 14px;
  color: var(--champ-text);
  min-width: 24px;
  text-align: center;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-left: auto;
}

/* TBD slot styling */
.bracket-team .team-name.tbd {
  color: var(--champ-text-muted);
  font-style: italic;
  opacity: 0.6;
}

/* BYE slot styling */
.bracket-team .team-name.bye-text {
  color: var(--champ-secondary);
  font-style: italic;
  opacity: 0.8;
  font-weight: 600;
}

.bracket-team.bye-slot {
  opacity: 0.6;
  background: rgba(255, 215, 0, 0.05);
}

/* Match with bye winner (one team waiting for opponent) */
.bracket-match.has-bye-winner {
  border-color: rgba(255, 215, 0, 0.3);
  background: linear-gradient(145deg, rgba(40, 35, 50, 0.95) 0%, rgba(25, 22, 38, 0.98) 100%);
}

/* Bracket Connectors - SVG based (drawn by JavaScript) */
.bracket-connector {
  display: none;
}

.bracket-connectors-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bracket-connectors-svg line {
  stroke: var(--champ-secondary);
  stroke-width: 2;
  opacity: 0.5;
}

.bracket {
  position: relative;
}

.bracket-round:not(:last-child) .bracket-match {
  position: relative;
}

/* Responsive bracket */
@media (max-width: 1200px) {
  .bracket {
    gap: 40px;
  }
  
  .bracket-round {
    min-width: 180px;
  }
  
  .bracket-round:not(:last-child) .bracket-match::after {
    right: -20px;
    width: 20px;
  }
  
  .bracket-round:not(:last-child) .bracket-match:nth-child(odd)::before,
  .bracket-round:not(:last-child) .bracket-match:nth-child(even)::before {
    right: -20px;
  }
}

/* Champion Display */
.champion-display {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  border: 1px solid var(--champ-gold);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.champion-display i {
  font-size: 3rem;
  color: var(--champ-gold);
  margin-bottom: 1rem;
}

.champion-display h2 {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  color: var(--champ-gold);
  font-size: 1.5rem;
}

/* ==================== League Table Styles ==================== */

.league-table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(25, 25, 40, 0.98);
}

.league-table {
  width: 100%;
  border-collapse: collapse;
}

.league-table th,
.league-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.league-table thead tr {
  background: rgba(0, 0, 0, 0.3);
}

.league-table th {
  color: var(--champ-text-muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.league-table th.col-pos { width: 56px; text-align: center; }
.league-table th.col-team { text-align: left; }
.league-table th.col-stat { width: 48px; text-align: center; }
.league-table th.col-pts { color: var(--champ-secondary); }

.league-table td {
  color: var(--champ-text);
  font-size: 14px;
}

.league-table td.col-pos { text-align: center; }
.league-table td.col-team { text-align: left; }
.league-table td.col-stat { text-align: center; }

/* W/D/L stat colors for league table */
.league-table td.stat-win { color: #27ae60; }
.league-table td.stat-draw { color: #F39C12; }
.league-table td.stat-loss { color: #e74c3c; }

.league-table tbody tr {
  transition: background 0.2s ease;
}

.league-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.league-table tbody tr:last-child td {
  border-bottom: none;
}

/* Zone highlighting */
.league-table tbody tr.top-zone {
  background: rgba(39, 174, 96, 0.08);
}

.league-table tbody tr.top-zone:hover {
  background: rgba(39, 174, 96, 0.12);
}

.league-table tbody tr.bottom-zone {
  background: rgba(231, 76, 60, 0.08);
}

.league-table tbody tr.bottom-zone:hover {
  background: rgba(231, 76, 60, 0.12);
}

/* Team cell with logo */
.team-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-cell .team-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.team-cell .team-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champ-text-muted);
  font-size: 14px;
}

.team-cell .team-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-cell .team-name {
  font-weight: 600;
  color: var(--champ-text);
  font-size: 14px;
}

.team-cell .team-abbr {
  font-size: 11px;
  color: var(--champ-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Stat colors */
.stat-muted { color: var(--champ-text-muted); }
.stat-win { color: #27AE60; font-weight: 600; }
.stat-draw { color: #F39C12; font-weight: 600; }
.stat-loss { color: #E74C3C; font-weight: 600; }

/* Points column */
.col-pts .points-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 8px;
  background: rgba(255, 215, 0, 0.15);
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--champ-secondary);
}

/* Position Badges */
.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--champ-text);
}

.pos-badge.gold {
  background: linear-gradient(135deg, #FFD700 0%, #e6c200 100%);
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.pos-badge.silver {
  background: linear-gradient(135deg, #C0C0C0 0%, #a8a8a8 100%);
  color: #1a1a2e;
}

.pos-badge.bronze {
  background: linear-gradient(135deg, #CD7F32 0%, #b8722d 100%);
  color: #1a1a2e;
}

/* Leader row - special styling for 1st place */
.league-table tbody tr.leader-row {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 50%, transparent 100%);
  border-left: 3px solid var(--champ-gold);
}

.league-table tbody tr.leader-row:hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.08) 50%, rgba(255, 255, 255, 0.04) 100%);
}

.league-table tbody tr.leader-row .team-name {
  color: var(--champ-gold);
  font-weight: 700;
}

.league-table tbody tr.leader-row .pos-badge.gold {
  font-size: 14px;
}

.league-table tbody tr.leader-row .points-value {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.15) 100%);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

/* User's team row in standings */
.league-table tbody tr.user-team-row {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.04) 50%, transparent 100%);
  border-left: 3px solid var(--champ-secondary);
}

.league-table tbody tr.user-team-row:hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.18) 0%, rgba(255, 215, 0, 0.08) 50%, rgba(255, 255, 255, 0.04) 100%);
}

.league-table tbody tr.user-team-row .team-name {
  color: var(--champ-secondary);
  font-weight: 600;
}

/* Form column */
.league-table th.col-form { 
  min-width: 140px; 
  text-align: center; 
}

.league-table td.col-form { 
  text-align: center; 
}

.form-badges {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.form-badge.form-W {
  background: linear-gradient(135deg, #27AE60 0%, #1e8449 100%);
}

.form-badge.form-D {
  background: linear-gradient(135deg, #F39C12 0%, #d68910 100%);
  color: #1a1a2e;
}

.form-badge.form-L {
  background: linear-gradient(135deg, #E74C3C 0%, #c0392b 100%);
}

.form-empty {
  color: var(--champ-text-muted);
  font-size: 12px;
}

/* Goal Difference (legacy) */
.gd-positive, .positive {
  color: var(--champ-success);
}

.gd-negative, .negative {
  color: var(--champ-danger);
}

.gd-negative {
  color: var(--champ-danger);
}

.gd-neutral {
  color: var(--champ-text-muted);
}

/* Form Badges */
.form-container {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.form-badge {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  color: white;
}

.form-win {
  background: var(--champ-success);
}

.form-draw {
  background: var(--champ-text-muted);
}

.form-loss {
  background: var(--champ-danger);
}

/* ==================== Match Schedule Styles ==================== */

.schedule-section {
  margin-bottom: 2rem;
}

.schedule-section h3 {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  color: var(--champ-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--champ-bg-card);
  border: 1px solid var(--champ-border);
  border-radius: 8px;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.match-team.home {
  justify-content: flex-end;
  text-align: right;
}

.match-team.away {
  justify-content: flex-start;
}

.match-team.winner .team-name {
  color: var(--champ-success);
  font-weight: 600;
}

.match-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  font-size: 1.25rem;
  color: var(--champ-text);
}

.match-vs {
  color: var(--champ-text-muted);
  font-size: 0.875rem;
}

.match-time {
  color: var(--champ-text-muted);
  font-size: 0.75rem;
}

.live-indicator {
  background: var(--champ-danger);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

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

/* ==================== Stats Leaderboard Styles ==================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stats-card {
  background: var(--champ-bg-card);
  border: 1px solid var(--champ-border);
  border-radius: 8px;
  overflow: hidden;
}

.stats-card-header {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--champ-border);
}

.stats-card-header h4 {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  color: var(--champ-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-list {
  padding: 0.5rem 0;
}

.stats-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  gap: 0.75rem;
}

.stats-item:first-child {
  background: rgba(255, 215, 0, 0.05);
}

.stats-item .position-badge {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}

.stats-item .player-info {
  flex: 1;
}

.stats-item .player-name {
  color: var(--champ-text);
  font-size: 0.875rem;
}

.stats-item .player-team {
  color: var(--champ-text-muted);
  font-size: 0.75rem;
}

.stats-item .stat-value {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  font-size: 1.125rem;
  color: var(--champ-gold);
}

/* ==================== Modal Styles ==================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  padding-top: 100px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  margin-bottom: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 16px 16px 0 0;
}

.modal-header h2 {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  color: #1f2937;
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-header h2 i {
  color: var(--champ-gold);
}

.modal-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.75rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.modal-close:hover {
  color: #1f2937;
  background: #e5e7eb;
}

.modal-body {
  padding: 2rem;
  overflow-x: hidden;
}

/* Form Section Headers */
.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.form-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  max-width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group select {
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.image-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #f9fafb;
}

.image-upload-area:hover {
  border-color: #10b981;
  background: #ecfdf5;
}

.image-upload-area i {
  font-size: 2rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
  display: block;
}

.image-upload-area p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
}

.image-upload-area .image-requirements {
  color: #9ca3af;
  font-size: 0.75rem;
  margin: 0;
}

.image-preview {
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Color Picker Styling */
.color-picker-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group input[type="color"] {
  width: 40px;
  height: 40px;
  padding: 2px;
  border-radius: 6px;
  cursor: pointer;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: #f9fafb;
  border-radius: 0 0 16px 16px;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
}

.btn-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.btn-primary {
  background: #10b981;
  border: none;
  color: #ffffff;
  font-weight: 600;
}

.btn-primary:hover {
  background: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ==================== New Detail Page Styles ==================== */

.detail-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.detail-bg-blur {
  position: fixed;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  z-index: -2;
}

.detail-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.85);
  z-index: -1;
}

.detail-header {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--champ-text-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--champ-text);
}

.detail-hero {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  background: rgba(30, 30, 50, 0.9);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

/* Status badge positioned at top-right of hero */
.detail-hero > .status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.detail-hero-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

.detail-hero-action .btn-register {
  background: var(--champ-secondary);
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.detail-hero-action .btn-register:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.detail-hero-action .btn-register:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
}

.detail-hero-action .btn-leave {
  background: transparent;
  color: var(--champ-danger);
  border: 1px solid var(--champ-danger);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.detail-hero-action .btn-leave:hover {
  background: var(--champ-danger);
  color: white;
}

.detail-hero-action .registered-badge {
  background: rgba(39, 174, 96, 0.2);
  color: var(--champ-success);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--champ-success);
}

.detail-hero-action .team-select {
  background: rgba(255, 255, 255, 0.1);
  color: var(--champ-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 150px;
}

.detail-hero-action .team-select:focus {
  outline: none;
  border-color: var(--champ-secondary);
}

.detail-hero-image {
  flex-shrink: 0;
  width: 280px;
  height: 158px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champ-primary);
  font-size: 3rem;
}

.detail-hero-info {
  flex: 1;
}

.detail-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Override absolute positioning for badges in detail page */
.detail-badges .status-badge,
.detail-badges .format-badge,
.detail-badges .type-badge {
  position: static;
}

.detail-title {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  font-size: 2rem;
  color: var(--champ-text);
  margin-bottom: 0.5rem;
}

.detail-description {
  color: var(--champ-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.detail-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--champ-text-muted);
  font-size: 0.9rem;
}

.meta-item i {
  color: inherit;
}

.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.detail-content {
  min-height: 300px;
}

/* Table styles */
.table-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.standings-table th,
.standings-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.standings-table th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--champ-text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.standings-table td {
  color: var(--champ-text);
}

.standings-table td:nth-child(2) {
  text-align: left;
}

.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
}

.pos-badge.gold { background: #FFD700; color: #000; }
.pos-badge.silver { background: #C0C0C0; color: #000; }
.pos-badge.bronze { background: #CD7F32; color: #000; }

.positive { color: #10b981; }
.negative { color: #ef4444; }

/* ==================== Schedule Tab Styles (Premier League Style) ==================== */

/* Schedule container */
.schedule-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Matchday section */
.matchday-section {
  margin-bottom: 1.5rem;
  background: #1e1e2f;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Completed matchday styling */
.matchday-section.all-completed {
  border: 2px dashed rgba(39, 174, 96, 0.5);
}

.matchday-section.all-completed .matchday-header {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.15) 0%, rgba(26, 26, 46, 0.9) 100%);
}

.matchday-section.all-completed .matchday-title i {
  color: #27ae60;
}

.matchday-section.all-completed .match-count {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

.matchday-section.all-completed .match-count::after {
  content: ' ✓';
}

/* Matchday header */
.matchday-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #252540 0%, #1a1a2e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s ease;
}

.matchday-header:hover {
  background: linear-gradient(135deg, #2a2a4a 0%, #1e1e35 100%);
}

.matchday-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.matchday-title h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  font-family: 'PremierLeagueW01-Bold', sans-serif;
}

.matchday-title i {
  color: #ffd700;
  font-size: 1rem;
}

.matchday-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.match-count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.matchday-toggle {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease;
}

.matchday-section.collapsed .matchday-toggle {
  transform: rotate(-90deg);
}

/* Matchday content */
.matchday-content {
  padding: 0;
}

.matchday-section.collapsed .matchday-content {
  display: none;
}

/* Match list */
.match-list {
  display: flex;
  flex-direction: column;
}

/* Match card - symmetric layout */
.match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #1e1e2f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.match-card:last-child {
  border-bottom: none;
}

.match-card:hover {
  background: #252540;
}

.match-card.completed {
  background: #1a1a28;
}

/* Team sections - symmetric */
.match-team-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.match-team-section.home {
  justify-content: flex-start;
}

.match-team-section.away {
  justify-content: flex-end;
}

.match-team-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
}

.match-team-logo.player-avatar {
  border-radius: 50%;
}

.match-team-name {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.match-team-section.winner .match-team-name {
  color: #ffd700;
  font-weight: 600;
}

/* Score/VS section - center */
.match-score-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 0 1rem;
}

.match-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-family: 'PremierLeagueW01-Bold', monospace;
}

.match-vs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Group indicator for group stage matches */
.match-group-badge {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 215, 0, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

/* Empty state */
.schedule-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: #1e1e2f;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-empty i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.schedule-empty h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.schedule-empty p {
  color: rgba(255, 255, 255, 0.5);
}

/* ==================== Schedule Tab V2 Styles (Redesigned) ==================== */

/* Match list v2 */
.match-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

/* Match card v2 - Bigger, more detailed */
.match-card-v2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(145deg, #252540 0%, #1e1e35 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
}

.match-card-v2:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 215, 0, 0.15);
  background: linear-gradient(145deg, #2a2a4a 0%, #222240 100%);
}

.match-card-v2:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.match-card-v2.completed {
  background: linear-gradient(145deg, #1a1a2e 0%, #151525 100%);
}

.match-card-v2.completed:hover {
  background: linear-gradient(145deg, #1f1f38 0%, #1a1a30 100%);
}

.match-card-v2.live {
  border-color: rgba(231, 76, 60, 0.5);
  animation: livePulse 2s infinite;
}

.match-card-v2.live:hover {
  border-color: rgba(231, 76, 60, 0.7);
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
  50% { box-shadow: 0 0 20px 0 rgba(231, 76, 60, 0.2); }
}

/* Live badge */
.match-live-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #e74c3c;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Team section v2 */
.match-team-v2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.match-team-v2.home {
  justify-content: flex-start;
}

.match-team-v2.away {
  justify-content: flex-end;
}

/* Team logo wrapper */
.team-logo-wrapper {
  flex-shrink: 0;
}

.team-logo-v2 {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease;
}

.team-logo-v2.player-avatar {
  border-radius: 50%;
}

.match-team-v2.winner .team-logo-v2 {
  border-color: #ffd700;
}

/* Team info v2 */
.team-info-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.match-team-v2.home .team-info-v2 {
  align-items: flex-start;
}

.match-team-v2.away .team-info-v2 {
  align-items: flex-end;
}

.team-name-v2 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.match-team-v2.winner .team-name-v2 {
  color: #ffd700;
}

.team-tag-v2 {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Match center v2 */
.match-center-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 100px;
}

/* Score display v2 */
.score-display-v2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.score-display-v2.live {
  background: rgba(231, 76, 60, 0.2);
}

.score-home, .score-away {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-family: 'PremierLeagueW01-Bold', monospace;
  min-width: 28px;
  text-align: center;
}

.score-home.winning, .score-away.winning {
  color: #ffd700;
}

.score-separator {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* VS display v2 */
.vs-display-v2 {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Match status text */
.match-status-text {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-status-text.live {
  color: #e74c3c;
  font-weight: 600;
}

/* Responsive adjustments for v2 */
@media (max-width: 768px) {
  .match-card-v2 {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .team-logo-v2 {
    width: 40px;
    height: 40px;
  }
  
  .team-name-v2 {
    font-size: 0.9rem;
    max-width: 120px;
  }
  
  .score-home, .score-away {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .match-list-v2 {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .match-card-v2 {
    padding: 0.75rem;
  }
  
  .team-logo-v2 {
    width: 32px;
    height: 32px;
  }
  
  .team-name-v2 {
    font-size: 0.8rem;
    max-width: 80px;
  }
  
  .team-tag-v2 {
    display: none;
  }
  
  .match-center-v2 {
    min-width: 70px;
  }
}

/* Legacy schedule styles (for backwards compatibility) */
.schedule-section {
  margin-bottom: 2rem;
}

.schedule-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--champ-text);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.matches-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.match-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: #1e1e2f;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-team {
  color: var(--champ-text);
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-team:first-child { 
  text-align: right;
  justify-content: flex-end;
}
.match-team:last-child { 
  text-align: left;
  justify-content: flex-start;
}

.schedule-team-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.match-team.winner {
  color: var(--champ-primary);
  font-weight: 600;
}

/* Stats styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.stats-card {
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.95) 0%, rgba(20, 20, 35, 0.98) 100%);
  border-radius: 16px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.stats-card:hover {
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stats-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--champ-text);
  margin: 0;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.03) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 700;
}

.stats-card h4 i {
  color: var(--champ-secondary);
  font-size: 18px;
}

.stats-list {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.stat-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.stat-row:first-child {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
  border-radius: 8px;
}

.stat-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: var(--champ-text);
}

.stat-pos.gold { 
  background: linear-gradient(135deg, #FFD700 0%, #e6c200 100%); 
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}
.stat-pos.silver { 
  background: linear-gradient(135deg, #C0C0C0 0%, #a8a8a8 100%); 
  color: #1a1a2e; 
}
.stat-pos.bronze { 
  background: linear-gradient(135deg, #CD7F32 0%, #b8722d 100%); 
  color: #1a1a2e; 
}

.stat-name {
  flex: 1;
  color: var(--champ-text);
  font-size: 14px;
  font-weight: 500;
}

.stat-value {
  font-weight: 600;
  color: var(--champ-gold);
}

/* ==================== Modern Stats Tab - Dark Blue/Purple Theme ==================== */

/* Stats Grid - 4 columns in a row */
.stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Modern Stats Card - Glassmorphism Design */
.stats-card-modern {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 15, 35, 0.9) 0%, rgba(26, 27, 61, 0.85) 100%);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 125, 255, 0.5), transparent);
}

.stats-card-modern:hover {
  transform: translateY(-8px);
  border-color: rgba(199, 125, 255, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(157, 78, 221, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Glow effect behind card */
.stats-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.stats-card-modern:hover .stats-card-glow {
  opacity: 1;
}

/* Card Header */
.stats-card-header-modern {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(90deg, rgba(157, 78, 221, 0.15) 0%, rgba(26, 27, 61, 0.3) 100%);
  border-bottom: 1px solid rgba(157, 78, 221, 0.15);
}

.stats-card-header-modern h4 {
  margin: 0;
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Icon Wrapper with category-specific colors */
.stats-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.stats-icon-wrapper.goals {
  background: linear-gradient(135deg, #e040fb 0%, #9d4edd 100%);
  box-shadow: 0 4px 15px rgba(224, 64, 251, 0.4);
}

.stats-icon-wrapper.assists {
  background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

.stats-icon-wrapper.hattricks {
  background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.stats-icon-wrapper.cleansheets {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
}

.stats-icon-wrapper i {
  color: #fff;
}

.stats-card-modern:hover .stats-icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
}

/* Stats List */
.stats-list-modern {
  padding: 8px 0;
}

/* Stat Row - Modern Link Style */
.stat-row-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  border-left: 3px solid transparent;
}

.stat-row-modern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(157, 78, 221, 0.1), transparent);
}

.stat-row-modern:last-child::after {
  display: none;
}

.stat-row-modern:hover {
  background: linear-gradient(90deg, rgba(157, 78, 221, 0.12) 0%, transparent 100%);
  border-left-color: #c77dff;
}

/* Top Player Row - Special styling */
.stat-row-modern.top-player {
  background: linear-gradient(90deg, rgba(224, 64, 251, 0.1) 0%, transparent 60%);
  border-left-color: #e040fb;
}

.stat-row-modern.top-player:hover {
  background: linear-gradient(90deg, rgba(224, 64, 251, 0.18) 0%, transparent 60%);
}

/* Rank Badge */
.stat-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.stat-rank.gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
  color: #1a1a2e;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.stat-rank.silver {
  background: linear-gradient(135deg, #e8e8e8 0%, #b8b8b8 100%);
  color: #1a1a2e;
  box-shadow: 0 4px 12px rgba(200, 200, 200, 0.3);
}

.stat-rank.bronze {
  background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3);
}

/* Player Info Container */
.stat-player-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Player Avatar */
.stat-avatar-modern {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(157, 78, 221, 0.3);
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-row-modern:hover .stat-avatar-modern {
  border-color: #c77dff;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(199, 125, 255, 0.3);
}

.stat-row-modern.top-player .stat-avatar-modern {
  border-color: #e040fb;
  box-shadow: 0 0 20px rgba(224, 64, 251, 0.4);
}

/* Player Info */
.stat-info-modern {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Name Row with Flag */
.stat-name-row-modern {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Country Flag */
.stat-flag-modern {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Player Name */
.stat-player-name-modern {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.stat-row-modern:hover .stat-player-name-modern {
  color: #c77dff;
}

.stat-row-modern.top-player .stat-player-name-modern {
  color: #e040fb;
  font-weight: 700;
}

/* Team Info */
.stat-team-modern {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.stat-team-logo-modern {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Team Logo Mini (next to abbreviation) */
.stat-team-logo-mini {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Team Abbreviation Box */
.stat-team-abbr-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-row-modern:hover .stat-team-abbr-box {
  background: rgba(199, 125, 255, 0.2);
  border-color: rgba(199, 125, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.stat-row-modern.top-player .stat-team-abbr-box {
  background: rgba(224, 64, 251, 0.15);
  border-color: rgba(224, 64, 251, 0.3);
}

/* Stat Value - Big Number */
.stat-value-modern {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  min-width: 36px;
  text-align: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.2) 0%, rgba(26, 27, 61, 0.4) 100%);
  border-radius: 10px;
  margin-left: auto;
  transition: all 0.3s ease;
  border: 1px solid rgba(157, 78, 221, 0.2);
}

.stat-row-modern:hover .stat-value-modern {
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.3) 0%, rgba(157, 78, 221, 0.2) 100%);
  border-color: rgba(199, 125, 255, 0.4);
  box-shadow: 0 0 15px rgba(199, 125, 255, 0.2);
}

.stat-row-modern.top-player .stat-value-modern {
  background: linear-gradient(135deg, rgba(224, 64, 251, 0.3) 0%, rgba(157, 78, 221, 0.2) 100%);
  color: #e040fb;
  border-color: rgba(224, 64, 251, 0.4);
  box-shadow: 0 0 20px rgba(224, 64, 251, 0.3);
}

/* No Data State */
.no-data-modern {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  text-align: center;
  padding: 40px 20px;
  font-style: italic;
}

/* Responsive - 2 columns on tablet */
@media (max-width: 1200px) {
  .stats-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive - 1 column on mobile */
@media (max-width: 768px) {
  .stats-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .stats-card-modern:hover {
    transform: translateY(-4px);
  }
  
  .stat-avatar-modern {
    width: 36px;
    height: 36px;
  }
  
  .stat-value-modern {
    font-size: 18px;
    padding: 5px 10px;
  }
}

/* ==================== Legacy Stats Tab Styles (kept for compatibility) ==================== */

/* Stats Grid - 2x2 layout */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Stats Card - Premium Design */
.stats-card {
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.95) 0%, rgba(20, 20, 35, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stats-card:hover {
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.stats-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  margin: 0;
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  font-size: 1rem;
  color: var(--champ-text);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-card h4 i {
  color: var(--champ-gold);
  font-size: 1.1rem;
}

.stats-list {
  padding: 8px 0;
}

/* Stat Row Link */
.stat-row-link {
  text-decoration: none;
  display: block;
}

/* Enhanced Stat Row */
.stat-row.enhanced {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-left: 3px solid transparent;
}

.stat-row.enhanced:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
  border-left-color: var(--champ-gold);
}

/* Position Badge - Numbered Circle */
.stat-row.enhanced .stat-pos {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--champ-text);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.stat-row.enhanced .stat-pos.gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a1a2e;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.stat-row.enhanced .stat-pos.silver {
  background: linear-gradient(135deg, #E8E8E8 0%, #B8B8B8 100%);
  color: #1a1a2e;
  box-shadow: 0 4px 12px rgba(200, 200, 200, 0.3);
}

.stat-row.enhanced .stat-pos.bronze {
  background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3);
}

/* Player Info Container */
.stat-player-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

/* Player Avatar - Premium Style */
.stat-player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-row-link:hover .stat-player-avatar {
  border-color: var(--champ-gold);
  transform: scale(1.05);
}

/* Gold row avatar special */
.stat-row-link:first-child .stat-player-avatar {
  border-color: var(--champ-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Player Details */
.stat-player-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

/* Player Name Row with Flag */
.stat-player-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Country Flag - Flat style like premier.html */
.stat-country-flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Player Name */
.stat-row.enhanced .stat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--champ-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.stat-row-link:hover .stat-row.enhanced .stat-name {
  color: var(--champ-gold);
}

/* Gold row name */
.stat-row-link:first-child .stat-row.enhanced .stat-name {
  color: var(--champ-gold);
  font-weight: 700;
}

/* Team Row */
.stat-team-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Team Logo */
.stat-team-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Team Name */
.stat-team {
  font-size: 12px;
  color: var(--champ-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stat Value - Big Number */
.stat-row.enhanced .stat-value {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--champ-text);
  min-width: 40px;
  text-align: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-left: auto;
  transition: all 0.2s ease;
}

/* Gold row value - Special styling */
.stat-row-link:first-child .stat-row.enhanced .stat-value {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.15) 100%);
  color: var(--champ-gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Silver row value */
.stat-row-link:nth-child(2) .stat-row.enhanced .stat-value {
  color: #E8E8E8;
}

/* Bronze row value */
.stat-row-link:nth-child(3) .stat-row.enhanced .stat-value {
  color: #CD7F32;
}

/* First row special background */
.stat-row-link:first-child .stat-row.enhanced {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
  border-left-color: var(--champ-gold);
}

/* No Data State */
.stats-card .no-data {
  color: var(--champ-text-muted);
  font-size: 13px;
  text-align: center;
  padding: 40px 20px;
  font-style: italic;
  opacity: 0.7;
}

.no-data {
  color: var(--champ-text-muted);
  font-size: 13px;
  text-align: center;
  padding: 24px 16px;
  font-style: italic;
  opacity: 0.7;
}

/* ==================== Responsive Styles ==================== */

@media (max-width: 768px) {
  .detail-hero {
    flex-direction: column;
  }
  
  .detail-hero-image {
    width: 100%;
    height: 180px;
  }
  
  .detail-hero-action {
    width: 100%;
    align-items: stretch;
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .detail-hero-action .btn-register,
  .detail-hero-action .btn-leave {
    justify-content: center;
  }
  
  .detail-title {
    font-size: 1.5rem;
  }
  
  .championships-content {
    padding: 1rem;
  }

  .championships-header h1 {
    font-size: 1.75rem;
  }

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

  .create-tournament-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .championship-hero {
    min-height: 200px;
    margin: -1rem -1rem 1rem -1rem;
    padding: 1rem;
  }

  .championship-hero h1 {
    font-size: 1.5rem;
  }

  .championship-tabs {
    overflow-x: auto;
  }

  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .bracket {
    gap: 1rem;
  }

  .bracket-round {
    min-width: 200px;
  }

  .league-table th,
  .league-table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }

  .match-card {
    flex-direction: column;
    gap: 0.5rem;
  }

  .match-teams {
    flex-direction: column;
    width: 100%;
  }

  .match-team {
    justify-content: center !important;
    text-align: center !important;
  }

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

  /* Enhanced Stats Mobile Styles */
  .stats-card h4 {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
  
  .stat-row.enhanced {
    padding: 12px 16px;
    gap: 12px;
  }
  
  .stat-row.enhanced .stat-pos {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .stat-player-avatar {
    width: 38px;
    height: 38px;
  }
  
  .stat-row.enhanced .stat-name {
    font-size: 13px;
  }
  
  .stat-team {
    font-size: 11px;
  }
  
  .stat-row.enhanced .stat-value {
    font-size: 18px;
    padding: 4px 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-container {
    margin: 1rem;
  }
}


/* ==================== Registration Section ==================== */
.registration-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  margin-bottom: 20px;
  background: rgba(26, 26, 46, 0.8);
  border-radius: 12px;
  border: 1px solid var(--champ-border);
}

.registration-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.registration-status.registered {
  background: rgba(39, 174, 96, 0.2);
  color: var(--champ-success);
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.registration-status.registered i {
  font-size: 18px;
}

.registration-status.closed,
.registration-status.no-team,
.registration-status.login-required {
  background: rgba(255, 255, 255, 0.05);
  color: var(--champ-text-muted);
  border: 1px solid var(--champ-border);
}

.registration-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-select {
  padding: 10px 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--champ-border);
  color: var(--champ-text);
  font-size: 14px;
  min-width: 200px;
  cursor: pointer;
}

.team-select:focus {
  outline: none;
  border-color: var(--champ-secondary);
}

.team-select option {
  background: var(--champ-bg-dark);
  color: var(--champ-text);
}

.btn-register {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--champ-secondary) 0%, #e6c200 100%);
  color: #1a1a2e;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-register:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-register:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-withdraw {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(231, 76, 60, 0.2);
  color: var(--champ-danger);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 15px;
}

.btn-withdraw:hover {
  background: rgba(231, 76, 60, 0.3);
}

/* ==================== Participants Tab ==================== */
.participants-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--champ-border);
}

.participants-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--champ-text);
}

.participants-header h3 i {
  color: var(--champ-secondary);
  font-size: 22px;
}

.participants-count {
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  color: var(--champ-secondary);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.participants-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
  contain: layout style;
}

.participant-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: rgba(25, 25, 40, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  /* Use will-change for GPU acceleration on hover */
  will-change: border-color;
}

.participant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--champ-secondary);
  opacity: 0;
}

.participant-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
}

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

/* User team highlighting removed - only badge needed */

/* Registration order badge - hidden */
.participant-order {
  display: none;
}

.participant-logo,
.participant-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.participant-logo img,
.participant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.participant-avatar {
  border-radius: 50%;
}

.default-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.1) 100%);
  color: var(--champ-secondary);
  font-size: 26px;
}

.participant-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.participant-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--champ-text);
  letter-spacing: 0.3px;
}

.participant-abbr {
  font-size: 13px;
  color: var(--champ-text-muted);
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.participant-country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--champ-text-muted);
  margin-top: 2px;
}

.participant-country .country-flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Mini country flag for group standings */
.country-flag-mini {
  width: 14px;
  height: 10px;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  margin-right: 4px;
  flex-shrink: 0;
}

/* Player avatar styling in group tables */
.team-logo-mini.player-avatar,
.group-team-logo.player-avatar {
  border-radius: 50%;
}

.participant-registered-by {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--champ-text-muted);
  margin-top: 4px;
}

.participant-registered-by .registered-by-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.participant-registered-by .registered-by-default-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.participant-registered-by .registered-by-default-avatar i {
  font-size: 10px;
  color: var(--champ-text-muted);
}

.participant-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}

.participant-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--champ-text-muted);
  white-space: nowrap;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.participant-date i {
  color: var(--champ-secondary);
  font-size: 12px;
}

.btn-remove-participant {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231, 76, 60, 0.12);
  color: var(--champ-danger);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.25s ease;
}

.participant-card:hover .btn-remove-participant {
  opacity: 1;
}

.btn-remove-participant:hover {
  background: rgba(231, 76, 60, 0.25);
  border-color: rgba(231, 76, 60, 0.4);
  transform: scale(1.05);
}

/* Team-specific card enhancements */
.participant-card.team-card {
  padding-left: 28px;
}

.participant-card.team-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--team-color, var(--champ-secondary));
  border-radius: 16px 0 0 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .registration-section {
    flex-direction: column;
    text-align: center;
  }
  
  .registration-action {
    flex-direction: column;
    width: 100%;
  }
  
  .team-select {
    width: 100%;
  }
  
  .btn-register {
    width: 100%;
    justify-content: center;
  }
  
  .registration-status.registered {
    flex-direction: column;
  }
  
  .btn-withdraw {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .participants-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .participant-card {
    flex-wrap: wrap;
    padding: 16px 18px;
    padding-left: 22px;
  }
  
  .participant-card.team-card {
    padding-left: 22px;
  }
  
  .participant-order {
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  
  .participant-logo,
  .participant-avatar {
    width: 52px;
    height: 52px;
  }
  
  .participant-name {
    font-size: 15px;
  }
  
  .participant-meta {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .btn-remove-participant {
    opacity: 1;
  }
}

/* ==================== Moderator Controls ==================== */
.moderator-controls {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-mod-start,
.btn-mod-end,
.btn-mod-restart,
.btn-mod-bracket,
.btn-mod-shuffle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-mod-start {
  background: linear-gradient(135deg, var(--champ-success) 0%, #1e8449 100%);
  color: white;
}

.btn-mod-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-mod-end {
  background: linear-gradient(135deg, var(--champ-danger) 0%, #c0392b 100%);
  color: white;
}

.btn-mod-end:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-mod-reopen {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
}

.btn-mod-reopen:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-mod-restart {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
}

.btn-mod-restart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-mod-bracket {
  background: linear-gradient(135deg, var(--champ-secondary) 0%, #e6c200 100%);
  color: #1a1a2e;
}

.btn-mod-bracket:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-mod-shuffle {
  background: rgba(255, 255, 255, 0.1);
  color: var(--champ-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-mod-shuffle:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--champ-secondary);
  transform: translateY(-2px);
}

/* Disabled moderator buttons */
.btn-mod-shuffle.disabled,
.btn-mod-groups.disabled,
.btn-mod-bracket.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Status badge improvements */
.status-badge.status-upcoming {
  background: var(--champ-warning);
  color: white;
}

.status-badge.status-ongoing {
  background: var(--champ-success);
  color: white;
}

.status-badge.status-completed {
  background: var(--champ-text-muted);
  color: white;
}

@media (max-width: 768px) {
  .moderator-controls {
    width: 100%;
    justify-content: center;
  }
  
  .btn-mod-start,
  .btn-mod-end,
  .btn-mod-restart,
  .btn-mod-bracket,
  .btn-mod-shuffle {
    flex: 1;
    justify-content: center;
    min-width: 140px;
  }
}

/* Form hint text */
.form-hint {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* ==================== Group Stage Styles ==================== */

/* Groups Container */
.groups-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 20px 0;
}

/* Group Card */
.group-card {
  background: rgba(26, 26, 46, 0.95);
  border-radius: 12px;
  border: 1px solid var(--champ-border);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.group-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.group-card.drag-over {
  border-color: var(--champ-secondary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.group-card.locked {
  opacity: 0.9;
}

.group-card.locked .group-team-item {
  cursor: default;
}

/* Group Header */
.group-header {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(26, 26, 46, 0.8) 100%);
  padding: 16px 20px;
  border-bottom: 1px solid var(--champ-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--champ-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-name i {
  font-size: 1rem;
}

.group-team-count {
  font-size: 0.875rem;
  color: var(--champ-text-muted);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}

/* Group Teams List */
.group-teams-list {
  padding: 12px;
  min-height: 100px;
}

.group-team-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: grab;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

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

.group-team-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--champ-border);
}

.group-team-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.group-team-item.drag-preview {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--champ-secondary);
}

.group-team-item.locked {
  cursor: default;
}

.group-team-item.user-team {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--champ-secondary);
}

.group-team-item.user-team .group-team-name {
  color: var(--champ-secondary);
  font-weight: 600;
}

.group-team-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
}

.group-team-info {
  flex: 1;
  min-width: 0;
}

.group-team-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--champ-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-team-abbr {
  font-size: 0.75rem;
  color: var(--champ-text-muted);
  margin-left: 6px;
}

.group-team-drag-handle {
  color: var(--champ-text-muted);
  font-size: 1rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.group-team-item:hover .group-team-drag-handle {
  opacity: 1;
}

.group-team-item.locked .group-team-drag-handle {
  display: none;
}

/* Mini League Table in Group */
.group-standings {
  padding: 0 12px 12px;
}

.group-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.group-standings-table th {
  padding: 8px 4px;
  text-align: center;
  color: var(--champ-text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--champ-border);
}

.group-standings-table th:first-child,
.group-standings-table td:first-child {
  text-align: left;
  padding-left: 8px;
}

.group-standings-table td {
  padding: 8px 4px;
  text-align: center;
  color: var(--champ-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.group-standings-table tr:last-child td {
  border-bottom: none;
}

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

.group-standings-table .team-logo-small {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

.group-standings-table .pts-cell {
  font-weight: 700;
  color: var(--champ-secondary);
}

/* Drop Zone Indicator */
.group-drop-zone {
  border: 2px dashed var(--champ-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: var(--champ-text-muted);
  margin: 8px 0;
  transition: all 0.2s ease;
  display: none;
}

.group-card.drag-over .group-drop-zone {
  display: block;
  border-color: var(--champ-secondary);
  background: rgba(255, 215, 0, 0.05);
  color: var(--champ-secondary);
}

/* Empty Group State */
.group-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--champ-text-muted);
}

.group-empty i {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* Groups Locked Notice */
.groups-locked-notice {
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--champ-warning);
}

.groups-locked-notice i {
  font-size: 1.25rem;
}

/* Generate/Shuffle Groups Buttons */
.btn-mod-groups {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-mod-groups:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

.btn-mod-shuffle-groups {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.btn-mod-shuffle-groups:hover {
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Groups Tab Content */
#groups-tab {
  padding: 20px 0;
}

.groups-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Responsive Group Styles */
@media (max-width: 768px) {
  .groups-container {
    grid-template-columns: 1fr;
  }
  
  .group-team-item {
    padding: 8px 10px;
  }
  
  .group-team-logo {
    width: 30px;
    height: 30px;
  }
  
  .group-standings-table {
    font-size: 0.75rem;
  }
}

/* ==================== Group Finalization Styles ==================== */

/* Finalize Groups Button */
.btn-mod-finalize {
  background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-mod-finalize:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

/* Groups Finalized Notice */
.groups-finalized-notice {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #27ae60;
}

.groups-finalized-notice i {
  font-size: 1.25rem;
}

/* Groups Info Notice */
.groups-info-notice {
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3498db;
}

.groups-info-notice i {
  font-size: 1.25rem;
}

/* Mini League Table within Group Cards */
.group-standings-table {
  padding: 0;
}

.mini-league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mini-league-table thead {
  background: rgba(0, 0, 0, 0.3);
}

.mini-league-table th {
  padding: 12px 10px;
  text-align: center;
  font-weight: 600;
  color: var(--champ-text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-league-table th.col-team {
  text-align: left;
}

.mini-league-table th.col-pts {
  color: var(--champ-secondary);
}

.mini-league-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--champ-text);
}

.mini-league-table td.col-team {
  text-align: left;
}

.mini-league-table tbody tr {
  transition: background 0.2s ease;
}

.mini-league-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mini-league-table tbody tr:last-child td {
  border-bottom: none;
}

.mini-league-table .team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-league-table .team-logo-mini {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
}

.mini-league-table .team-logo-placeholder-mini {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--champ-text-muted);
}

.mini-league-table .team-name-mini {
  font-weight: 500;
  color: var(--champ-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.mini-league-table .pos-badge {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: var(--champ-text);
}

.mini-league-table .pos-badge.gold {
  background: linear-gradient(135deg, #FFD700 0%, #e6c200 100%);
  color: #1a1a2e;
}

.mini-league-table .pos-badge.silver {
  background: linear-gradient(135deg, #C0C0C0 0%, #a8a8a8 100%);
  color: #1a1a2e;
}

.mini-league-table .pos-badge.qualifying {
  background: rgba(39, 174, 96, 0.2);
  border: 1px solid rgba(39, 174, 96, 0.5);
  color: #27ae60;
}

.mini-league-table .qualifying-row {
  background: rgba(39, 174, 96, 0.05);
}

.mini-league-table .qualifying-row td {
  border-bottom-color: rgba(39, 174, 96, 0.2);
}

.mini-league-table .stat-win {
  color: #27ae60;
  font-weight: 600;
}

.mini-league-table .stat-draw {
  color: #F39C12;
  font-weight: 600;
}

.mini-league-table .stat-loss {
  color: #e74c3c;
  font-weight: 600;
}

.mini-league-table .stat-muted {
  color: var(--champ-text-muted);
}

.mini-league-table .points-value {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--champ-secondary);
}

.mini-league-table .col-form {
  min-width: 100px;
}

.mini-league-table .form-badges {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.mini-league-table .form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
}

.mini-league-table .form-badge.form-W {
  background: linear-gradient(135deg, #27AE60 0%, #1e8449 100%);
}

.mini-league-table .form-badge.form-D {
  background: linear-gradient(135deg, #F39C12 0%, #d68910 100%);
  color: #1a1a2e;
}

.mini-league-table .form-badge.form-L {
  background: linear-gradient(135deg, #E74C3C 0%, #c0392b 100%);
}

.mini-league-table .form-empty {
  color: var(--champ-text-muted);
  font-size: 0.75rem;
}

.mini-league-table .user-team-row {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.04) 50%, transparent 100%);
  border-left: 3px solid var(--champ-secondary);
}

.mini-league-table .user-team-row .team-name-mini {
  color: var(--champ-secondary);
  font-weight: 600;
}

/* Playoffs Tab Styles */
#playoffs-tab {
  padding: 20px 0;
}

.playoffs-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.playoffs-hint {
  color: #f39c12;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.playoffs-hint i {
  font-size: 0.9rem;
}

.btn-mod-playoffs {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-mod-playoffs:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.btn-mod-playoffs.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Finalized Groups Container */
.groups-container.finalized .group-card {
  cursor: default;
}

.groups-container.finalized .group-card:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Mini League Table */
@media (max-width: 768px) {
  .mini-league-table {
    font-size: 0.7rem;
  }
  
  .mini-league-table th,
  .mini-league-table td {
    padding: 6px 4px;
  }
  
  .mini-league-table .team-name-mini {
    max-width: 80px;
  }
  
  .mini-league-table .team-logo-mini {
    width: 18px;
    height: 18px;
  }
}

/* ==================== Rosters Tab Styles ==================== */
#rosters-tab {
  padding: 20px 0;
}

.rosters-header {
  margin-bottom: 24px;
}

.rosters-header h3 {
  color: var(--champ-text);
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rosters-header h3 i {
  color: var(--champ-secondary);
}

.transfer-rules-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.transfer-badge {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rule-badge {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.roster-notice {
  color: var(--champ-text-muted);
  font-size: 0.9rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.roster-notice i {
  color: var(--champ-secondary);
}

.rosters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  contain: layout style;
}

.roster-card {
  background: rgba(25, 25, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  will-change: border-color;
  position: relative;
}

.roster-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
}

/* YOUR TEAM Badge - inline with team name */
.roster-card-header {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roster-team-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roster-team-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.roster-team-details {
  display: flex;
  flex-direction: column;
}

.roster-team-name {
  font-weight: 600;
  color: var(--champ-text);
  font-size: 1rem;
}

.roster-team-abbr {
  color: var(--champ-text-muted);
  font-size: 0.8rem;
}

.roster-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.roster-player-count {
  color: var(--champ-text-muted);
  font-size: 0.85rem;
}

.roster-transfers-used {
  color: #27ae60;
  font-size: 0.8rem;
  font-weight: 500;
}

.roster-transfers-used.exhausted {
  color: #e74c3c;
}

.roster-players-list {
  padding: 12px 16px;
}

.roster-player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.roster-player-item:last-child {
  margin-bottom: 0;
}

.roster-player-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.roster-player-item.locked {
  opacity: 0.7;
}

.roster-player-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roster-player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.roster-player-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champ-text-muted);
  font-size: 0.9rem;
}

.roster-player-details {
  display: flex;
  flex-direction: column;
}

.roster-player-name {
  font-weight: 500;
  color: var(--champ-text);
  font-size: 0.95rem;
}

.roster-player-role {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 2px;
  width: fit-content;
}

.roster-player-role.Captain {
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
}

.roster-player-role.Vice\ Captain,
.roster-player-role[class*="Vice"] {
  background: rgba(192, 192, 192, 0.2);
  color: #C0C0C0;
}

.roster-player-role.Player {
  background: rgba(255, 255, 255, 0.1);
  color: var(--champ-text-muted);
}



.roster-empty {
  text-align: center;
  padding: 20px;
  color: var(--champ-text-muted);
}

/* Empty roster slot styles */
.roster-player-item.empty-slot {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  opacity: 0.5;
}

.roster-player-item.empty-slot:hover {
  background: rgba(255, 255, 255, 0.02);
}

.roster-player-avatar-placeholder.empty {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.2);
}

.roster-player-name.empty {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  font-weight: 400;
}

/* Player transfer status badges (in roster list) */
.player-transfer-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.player-transfer-badge.transfer-in {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.player-transfer-badge.transfer-out,
.roster-player-name .player-transfer-badge.transfer-out {
  background: rgba(231, 76, 60, 0.2) !important;
  color: #e74c3c !important;
  border: 1px solid rgba(231, 76, 60, 0.3) !important;
}

.player-transfer-badge i {
  font-size: 0.55rem;
}

/* Transferred in player styling */
.roster-player-item.transferred-in {
  background: rgba(39, 174, 96, 0.05);
  border-left: 2px solid #27ae60;
}

/* Transferred out player styling */
.roster-player-item.transferred-out {
  background: rgba(231, 76, 60, 0.05);
  border-left: 2px solid #e74c3c;
  opacity: 0.6;
}

.roster-player-item.transferred-out .roster-player-avatar {
  filter: grayscale(50%);
}

.roster-player-item.transferred-out .roster-player-role {
  color: #e74c3c;
}

/* Pending transfer request slot styling */
.roster-player-item.pending-slot {
  background: rgba(52, 152, 219, 0.08);
  border-left: 2px solid #3498db;
  border: 1px dashed rgba(52, 152, 219, 0.4);
}

.roster-player-item.pending-slot:hover {
  background: rgba(52, 152, 219, 0.12);
}

.roster-player-avatar-placeholder.pending {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

.roster-player-avatar.pending-avatar {
  opacity: 0.7;
  border: 2px dashed rgba(52, 152, 219, 0.5);
}

.roster-player-name.pending {
  color: #aaa;
}

.roster-player-role.pending {
  color: #3498db;
  font-style: italic;
}

.player-transfer-badge.transfer-pending {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.player-transfer-badge.transfer-pending i {
  font-size: 0.55rem;
}

.roster-card-actions {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
}

.btn-roster-edit,
.btn-roster-transfer {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-roster-edit {
  background: rgba(255, 215, 0, 0.15);
  color: var(--champ-secondary);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.btn-roster-edit:hover {
  background: rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.5);
}

.btn-roster-transfer {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-roster-transfer:hover {
  background: rgba(231, 76, 60, 0.25);
  border-color: rgba(231, 76, 60, 0.5);
}

/* Responsive Rosters */
@media (max-width: 768px) {
  .rosters-grid {
    grid-template-columns: 1fr;
  }
  
  .roster-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .roster-meta {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }
}


/* ==================== Transfer Invites Section ==================== */
.transfer-invites-section {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.15) 0%, rgba(26, 26, 46, 0.95) 100%);
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.transfer-invites-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.transfer-invites-header i {
  font-size: 1.5rem;
  color: #27ae60;
}

.transfer-invites-header h3 {
  margin: 0;
  color: var(--champ-text);
  font-size: 1.1rem;
  font-weight: 600;
}

.invite-count {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: auto;
}

.transfer-invites-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.transfer-invite-card {
  background: rgba(25, 25, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
  min-width: 280px;
  flex: 1;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.transfer-invite-card:hover {
  border-color: rgba(39, 174, 96, 0.4);
  transform: translateY(-2px);
}

.invite-team-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invite-team-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.invite-team-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.invite-team-name {
  font-weight: 600;
  color: var(--champ-text);
  font-size: 1rem;
}

.invite-captain {
  color: var(--champ-text-muted);
  font-size: 0.85rem;
}

.invite-date {
  color: var(--champ-text-muted);
  font-size: 0.75rem;
  opacity: 0.7;
}

.invite-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-accept-invite,
.btn-reject-invite {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  border: none;
}

.btn-accept-invite {
  background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
  color: white;
}

.btn-accept-invite:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-reject-invite {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-reject-invite:hover {
  background: rgba(231, 76, 60, 0.25);
  border-color: rgba(231, 76, 60, 0.5);
}

/* Responsive Transfer Invites */
@media (max-width: 768px) {
  .transfer-invites-list {
    flex-direction: column;
  }
  
  .transfer-invite-card {
    max-width: 100%;
  }
  
  .transfer-invites-header {
    flex-wrap: wrap;
  }
  
  .invite-count {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }
}


/* No Transfers Notice */
.no-transfers-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  color: #e74c3c;
  font-size: 0.9rem;
}

.no-transfers-notice i {
  font-size: 1.1rem;
}


/* Transfer Confirm Modal Button Styles */
.champ-modal-btn.btn-success {
  background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
  color: white;
  border: none;
}

.champ-modal-btn.btn-success:hover {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.champ-modal-btn.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
}

.champ-modal-btn.btn-danger:hover {
  background: linear-gradient(135deg, #ec7063 0%, #e74c3c 100%);
}

.champ-modal-btn.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--champ-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.champ-modal-btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}


/* ==================== Tournament Countdown Timer ==================== */
.tournament-countdown {
  margin-top: 20px;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 165, 233, 0.08) 50%, rgba(26, 26, 46, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.countdown-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #7dd3fc;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.countdown-label i {
  color: #38bdf8;
  font-size: 1rem;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-value {
  font-family: 'PremierLeagueW01-Bold', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 10px 18px;
  border-radius: 10px;
  min-width: 55px;
  text-align: center;
  line-height: 1;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.countdown-text {
  font-size: 0.7rem;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  font-weight: 500;
}

.countdown-separator {
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(56, 189, 248, 0.5);
  margin-bottom: 24px;
}

/* Countdown finished state */
.tournament-countdown.finished {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.15) 0%, rgba(26, 26, 46, 0.95) 100%);
  border-color: rgba(39, 174, 96, 0.4);
}

.tournament-countdown.finished .countdown-label {
  color: #4ade80;
}

.tournament-countdown.finished .countdown-label i {
  color: #22c55e;
}

.tournament-countdown.finished .countdown-value {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.25);
}

.tournament-countdown.finished .countdown-text {
  color: #4ade80;
}

.tournament-countdown.finished .countdown-separator {
  color: rgba(34, 197, 94, 0.5);
}

/* Responsive countdown */
@media (max-width: 768px) {
  .tournament-countdown {
    padding: 16px 18px;
  }
  
  .countdown-value {
    font-size: 1.6rem;
    padding: 8px 14px;
    min-width: 45px;
  }
  
  .countdown-unit {
    min-width: 55px;
  }
  
  .countdown-separator {
    font-size: 1.3rem;
    margin-bottom: 18px;
  }
  
  .countdown-timer {
    gap: 8px;
  }
}
