/* ============================================
   驴酱杯 - 英雄联盟赛事主题样式（瑞士轮版）
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #010A13;
  --bg-secondary: #091428;
  --bg-card: rgba(30, 35, 40, 0.85);
  --bg-card-hover: rgba(40, 50, 60, 0.95);
  --bg-surface: #1E2328;
  --gold: #C89B3C;
  --gold-light: #F0E6D2;
  --gold-dark: #785A28;
  --blue: #0AC8B9;
  --blue-dark: #0397AB;
  --blue-glow: rgba(10, 200, 185, 0.3);
  --red: #E84057;
  --green: #1FAD6B;
  --text-primary: #F0E6D2;
  --text-secondary: #A09B8C;
  --text-muted: #5B5A56;
  --border: rgba(200, 155, 60, 0.25);
  --border-bright: rgba(200, 155, 60, 0.6);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(9,20,40,0.8) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 100%, rgba(10,200,185,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ---- Header / Nav ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(1, 10, 19, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--gold);
  font-size: 22px; font-weight: 800;
  letter-spacing: 2px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 500; font-size: 14px;
  transition: var(--transition);
  position: relative;
}
.nav a:hover, .nav a.active {
  color: var(--gold);
  background: rgba(200,155,60,0.1);
}
.nav a.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 20%; right: 20%;
  height: 2px; background: var(--gold);
  border-radius: 1px;
}

/* ---- Hero ---- */
.hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(180deg, rgba(9,20,40,0.6) 0%, transparent 100%);
}
.hero h1 {
  font-size: 64px; font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: 6px;
  text-shadow: 0 0 60px rgba(200,155,60,0.3);
}
.hero .subtitle {
  font-size: 18px; color: var(--text-secondary);
  font-weight: 300; letter-spacing: 4px;
  text-transform: uppercase;
}
.hero .season-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 24px;
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  font-size: 13px; color: var(--gold);
  letter-spacing: 2px;
  background: rgba(200,155,60,0.05);
}
.hero .format-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 28px;
  border: 1px solid rgba(10,200,185,0.3);
  border-radius: 20px;
  font-size: 14px; color: var(--blue);
  letter-spacing: 1px;
  background: rgba(10,200,185,0.05);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(10,200,185,0.1); }
  50% { box-shadow: 0 0 20px rgba(10,200,185,0.2); }
}

/* ---- Content ---- */
.content {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto;
  padding: 40px 40px 80px;
}

/* ---- Section ---- */
.section { margin-bottom: 60px; }
.section-title {
  font-size: 24px; font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 30px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::before {
  content: '';
  width: 4px; height: 24px;
  background: linear-gradient(180deg, var(--gold), var(--blue));
  border-radius: 2px;
}

/* ---- Team Grid ---- */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  opacity: 0;
  transition: var(--transition);
}
.team-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(200,155,60,0.1);
}
.team-card:hover::before { opacity: 1; }
.team-card.eliminated {
  opacity: 0.5;
  border-color: rgba(232,64,87,0.2);
}
.team-card.advanced {
  border-color: rgba(31,173,107,0.4);
  box-shadow: 0 0 20px rgba(31,173,107,0.1);
}
.team-card.advanced::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--green), var(--blue));
}
.team-card-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
}
.team-seed {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  color: var(--bg-primary);
  flex-shrink: 0;
}
.team-info { flex: 1; }
.team-info h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.team-info .team-tag { font-size: 12px; color: var(--blue); font-weight: 600; letter-spacing: 1px; }
.team-record-badge {
  padding: 6px 16px;
  background: rgba(200,155,60,0.15);
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
  flex-shrink: 0;
}
.team-members { display: flex; flex-direction: column; gap: 8px; }
.member {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  font-size: 14px;
}
.member-role {
  font-size: 11px; font-weight: 600;
  color: var(--blue); background: rgba(10,200,185,0.1);
  padding: 2px 8px; border-radius: 4px;
  min-width: 42px; text-align: center;
}
.member-name { color: var(--text-primary); font-weight: 500; }
.team-captain {
  font-size: 11px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.team-status {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12px; text-align: center;
}
.status-active { color: var(--green); }
.status-eliminated { color: var(--red); }
.status-advanced { color: var(--gold); font-weight: 700; }

/* ---- Standings Table ---- */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.standings-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.standings-table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.standings-table tbody tr:hover {
  background: rgba(200,155,60,0.05);
}
.standings-table tbody tr.st-advanced {
  background: rgba(31,173,107,0.05);
}
.standings-table tbody tr.st-eliminated {
  opacity: 0.5;
}
.standings-table td {
  padding: 14px 20px;
  font-size: 14px;
}
.rank-cell {
  font-weight: 800;
  font-size: 18px;
  color: var(--gold);
  width: 60px;
}
.team-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.team-seed-sm {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
  color: var(--bg-primary);
}
.team-name-sm {
  font-weight: 600;
  font-size: 15px;
}
.team-tag-sm {
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
  margin-left: 4px;
}
.record-cell { width: 100px; }
.record-badge {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(200,155,60,0.1);
  border: 1px solid var(--gold-dark);
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 2px;
}
.status-cell { width: 120px; }
.status-text { font-size: 13px; font-weight: 600; }
.status-text.st-advanced { color: var(--green); }
.status-text.st-eliminated { color: var(--red); }
.status-text.st-active { color: var(--blue); }
.history-cell { }
.history-win, .history-loss {
  display: inline-block;
  width: 28px; height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  margin-right: 3px;
}
.history-win {
  background: rgba(31,173,107,0.2);
  color: var(--green);
  border: 1px solid rgba(31,173,107,0.3);
}
.history-loss {
  background: rgba(232,64,87,0.15);
  color: var(--red);
  border: 1px solid rgba(232,64,87,0.2);
}
.no-history { color: var(--text-muted); font-size: 13px; }

/* ---- Swiss Round Timeline ---- */
.swiss-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.swiss-round {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.swiss-round.completed {
  border-color: rgba(31,173,107,0.3);
}
.swiss-round.ongoing {
  border-color: rgba(10,200,185,0.3);
  box-shadow: 0 0 20px rgba(10,200,185,0.08);
}
.swiss-round-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.swiss-round-header .round-icon {
  font-size: 20px;
}
.swiss-round-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-light);
}
.swiss-round-header .round-desc {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}
.swiss-round-header .round-progress {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  padding: 4px 16px;
  background: rgba(10,200,185,0.1);
  border-radius: 12px;
}
.swiss-pools {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.swiss-pool {
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius);
  padding: 16px;
  border-left: 3px solid var(--blue);
}
.swiss-pool.pool-advance {
  border-left-color: var(--green);
  background: rgba(31,173,107,0.03);
}
.swiss-pool.pool-elim {
  border-left-color: var(--red);
  background: rgba(232,64,87,0.03);
}
.pool-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pool-record {
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
}
.pool-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.pool-matches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Swiss Match Card */
.swiss-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  transition: var(--transition);
}
.swiss-match:hover {
  border-color: var(--gold-dark);
  background: var(--bg-card-hover);
}
.swiss-match.completed {
  border-color: rgba(31,173,107,0.3);
}
.swiss-match-team {
  display: flex;
  align-items: center;
  gap: 10px;
}
.swiss-match-team:last-child {
  justify-content: flex-end;
}
.swiss-team-tag {
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
}
.swiss-team-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.swiss-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 24px;
  text-align: center;
}
.swiss-match-team.winner .swiss-team-name {
  color: var(--green);
}
.swiss-match-team.winner .swiss-score {
  color: var(--green);
}
.swiss-match-team.loser {
  opacity: 0.4;
}
.swiss-vs {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 12px;
}

/* ---- Champion Display ---- */
.champion-section {
  text-align: center;
  padding: 60px 20px;
  background: radial-gradient(ellipse at center, rgba(200,155,60,0.08) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.champion-section h2 {
  font-size: 20px; color: var(--text-secondary);
  font-weight: 400; letter-spacing: 4px;
  margin-bottom: 8px;
}
.champion-section .trophy { font-size: 64px; margin-bottom: 20px; }
.champion-section.hidden { display: none; }
.champion-names {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.champion-badge {
  display: inline-block;
  padding: 10px 28px;
  background: linear-gradient(135deg, rgba(200,155,60,0.15), rgba(200,155,60,0.05));
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
  animation: fadeIn 0.5s ease;
}

/* ---- Match Details ---- */
.matches-list { display: flex; flex-direction: column; gap: 16px; }
.match-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.match-detail-card:hover { border-color: var(--border-bright); }
.match-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: rgba(0,0,0,0.2);
}
.match-detail-header .round-label {
  font-size: 12px; color: var(--blue); font-weight: 600;
  letter-spacing: 1px;
}
.match-detail-header .vs-display {
  display: flex; align-items: center; gap: 20px;
  font-size: 18px; font-weight: 700;
}
.match-detail-header .vs-display .vs { color: var(--text-muted); font-size: 14px; }
.match-detail-header .match-score {
  font-size: 22px; font-weight: 800;
  color: var(--gold); letter-spacing: 2px;
}
.match-detail-header .match-status-badge {
  font-size: 11px; padding: 4px 12px;
  border-radius: 12px; font-weight: 600;
}
.match-status-badge.pending { background: rgba(160,155,140,0.15); color: var(--text-secondary); }
.match-status-badge.ongoing { background: rgba(10,200,185,0.15); color: var(--blue); }
.match-status-badge.completed { background: rgba(31,173,107,0.15); color: var(--green); }
.match-detail-body {
  padding: 0 24px 24px;
  display: none;
}
.match-detail-body.open { display: block; }
.game-tabs { display: flex; gap: 8px; margin-bottom: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.05); }
.game-tab {
  padding: 6px 16px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: var(--transition);
}
.game-tab:hover { background: rgba(200,155,60,0.1); color: var(--gold); }
.game-tab.active { background: rgba(200,155,60,0.15); color: var(--gold); border-color: var(--gold-dark); }
.game-detail {
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius);
  padding: 20px;
}
.game-detail .game-info { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: start; }
.game-detail .team-picks h4 { font-size: 13px; color: var(--gold); margin-bottom: 10px; font-weight: 600; }
.game-detail .team-picks .picks-list { display: flex; flex-direction: column; gap: 4px; }
.game-detail .team-picks .pick-item { font-size: 13px; color: var(--text-secondary); padding: 4px 0; }
.game-detail .game-center { text-align: center; }
.game-detail .game-center .duration { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.game-detail .game-center .duration-label { font-size: 11px; color: var(--text-muted); }
.game-detail .game-center .mvp-badge { margin-top: 12px; font-size: 12px; color: var(--gold); }
.game-detail .bans { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05); }
.game-detail .bans h5 { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 1px; }
.game-detail .bans-list { display: flex; gap: 6px; flex-wrap: wrap; }
.game-detail .ban-item {
  font-size: 11px; padding: 3px 10px;
  background: rgba(232,64,87,0.1); color: var(--red);
  border-radius: 4px;
}
.no-games { text-align: center; padding: 30px; color: var(--text-muted); font-size: 14px; }

/* ---- Admin ---- */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
}
.admin-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}
.admin-sidebar .sidebar-title {
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  padding: 0 12px;
  margin-bottom: 12px;
}
.admin-sidebar .sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 2px;
}
.admin-sidebar .sidebar-link:hover { background: rgba(200,155,60,0.1); color: var(--gold-light); }
.admin-sidebar .sidebar-link.active { background: rgba(200,155,60,0.15); color: var(--gold); }
.admin-main { padding: 32px 40px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel-title {
  font-size: 22px; font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,155,60,0.1);
}
.btn {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(200,155,60,0.3); }
.btn-danger { background: rgba(232,64,87,0.2); color: var(--red); }
.btn-danger:hover { background: rgba(232,64,87,0.3); }
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text-secondary); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-group { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
}
.admin-table th {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%; max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal h3 {
  font-size: 20px; font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.modal-close {
  float: right;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
.modal-close:hover { color: var(--text-primary); }

/* ---- Tabs (main page) ---- */
.tab-nav {
  display: flex; gap: 4px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  padding: 12px 28px;
  background: none; border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--gold-light); }
.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Login ---- */
.login-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(200,155,60,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(10,200,185,0.04) 0%, transparent 50%);
}
.login-overlay.hidden { display: none; }
.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 16px 64px rgba(0,0,0,0.6), 0 0 40px rgba(200,155,60,0.08);
  animation: modalIn 0.5s ease;
}
.login-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.login-box h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.login-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.login-box .form-group {
  margin-bottom: 16px;
  text-align: left;
}
.login-box input {
  text-align: center;
  font-size: 16px;
  padding: 14px;
  letter-spacing: 4px;
}
.login-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 16px;
  letter-spacing: 2px;
}
.login-error {
  color: var(--red);
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 12px;
}
.login-back {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.login-back:hover { color: var(--gold); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .hero h1 { font-size: 36px; }
  .content { padding: 20px 16px 60px; }
  .teams-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .nav { gap: 0; }
  .nav a { padding: 8px 12px; font-size: 12px; }
  .login-box { padding: 32px 24px; }
  .tab-btn { padding: 10px 14px; font-size: 13px; }
  .swiss-match { grid-template-columns: 1fr; gap: 4px; }
  .swiss-match-team:last-child { justify-content: flex-start; }
  .swiss-vs { padding: 4px 0; text-align: center; }
  .standings-table { font-size: 12px; }
  .standings-table td { padding: 10px 12px; }
  .team-cell { flex-wrap: wrap; }
}
