@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,600;1,700;1,800;1,900&family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Variables & Design Tokens
   ============================================ */
:root {
  /* Colors */
  --color-bg:           #F8FAFC;
  --color-bg-secondary: #F1F5F9;
  --color-bg-card:      #FFFFFF;
  --color-bg-glass:     rgba(255, 255, 255, 0.85);
  --color-border:       rgba(15, 23, 42, 0.08);
  --color-border-hover: rgba(229, 27, 36, 0.45);

  --color-primary:      #E51B24;
  --color-primary-glow: rgba(229, 27, 36, 0.12);
  --color-primary-dark: #b30f16;

  --color-accent:       #FF6B00;
  --color-accent2:      #0284C7;
  --color-accent3:      #7C3AED;

  --color-live:         #FF2A3A;
  --color-live-glow:    rgba(255, 42, 58, 0.15);
  --color-success:      #10B981;
  --color-warning:      #F59E0B;
  --color-danger:       #EF4444;

  --color-text:         #0F172A;
  --color-text-muted:   #475569;
  --color-text-dim:     #94A3B8;

  /* Gradients */
  --gradient-primary:   linear-gradient(135deg, #E51B24 0%, #FF6B00 100%);
  --gradient-bg:        linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  --gradient-card:      linear-gradient(135deg, rgba(229,27,36,0.01) 0%, rgba(2,132,199,0.01) 100%);
  --gradient-hero:      linear-gradient(180deg, rgba(248,250,252,0.6) 0%, #F8FAFC 100%);

  /* Typography */
  --font-primary:  'Outfit', sans-serif;
  --font-sports:   'Barlow Condensed', sans-serif;
  --font-mono:     'Courier New', monospace;

  /* Spacing */
  --gap-xs:  4px;
  --gap-sm:  8px;
  --gap-md:  16px;
  --gap-lg:  24px;
  --gap-xl:  32px;
  --gap-2xl: 48px;
  --gap-3xl: 64px;

  /* Border Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:    0 10px 25px -5px rgba(15,23,42,0.05), 0 8px 10px -6px rgba(15,23,42,0.05);
  --shadow-primary: 0 4px 14px rgba(229,27,36,0.2);
  --shadow-glow:    0 0 30px rgba(229,27,36,0.08);

  /* Sidebar */
  --sidebar-width: 260px;
  --topbar-height: 64px;

  /* Utilities */
  --transition:      all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { 
  scroll-behavior: smooth; 
  font-size: clamp(12px, 1vw + 10px, 16px);
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--color-accent); }

img { max-width: 100%; display: block; }

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent2); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ============================================
   Layout — Admin with Sidebar
   ============================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: var(--transition);
  overflow-y: auto;
}

.sidebar-logo {
  padding: var(--gap-lg) var(--gap-md);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.sidebar-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}
.sidebar-logo .logo-text span {
  color: var(--color-primary);
}

.sidebar-nav { padding: var(--gap-md) 0; flex: 1; }

.nav-section {
  padding: 0 var(--gap-md) var(--gap-md);
}

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-text-dim);
  padding: var(--gap-md) var(--gap-sm) var(--gap-xs);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 10px var(--gap-sm);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: rgba(255, 107, 0, 0.1);
  color: var(--color-text);
}

.nav-item.active {
  background: var(--color-primary-glow);
  color: var(--color-primary);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-primary);
  border-radius: 0 3px 3px 0;
}

.nav-item .nav-icon {
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--color-live);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  animation: pulse-badge 2s infinite;
}

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

.sidebar-footer {
  padding: var(--gap-md);
  border-top: 1px solid var(--color-border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-sm);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  margin-bottom: var(--gap-sm);
}

.sidebar-user .avatar {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sidebar-user .user-info {
  min-width: 0;
}
.sidebar-user .user-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user .user-role {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.topbar {
  height: var(--topbar-height);
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 var(--gap-xl);
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 90;
}

.topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.page-content {
  padding: var(--gap-xl);
  padding-top: calc(var(--topbar-height) + var(--gap-xl));
  flex: 1;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--color-border-hover);
}

.card-glass {
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.card-header {
  padding: var(--gap-lg) var(--gap-xl);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-md);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.card-body { padding: var(--gap-xl); }
.card-body-sm { padding: var(--gap-lg); }

/* ============================================
   Stats Cards
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--stat-color);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--stat-color, var(--color-primary)) 0%, transparent 70%);
  opacity: 0.15;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.stat-card:hover::before {
  transform: scale(1.2);
  opacity: 0.25;
}

.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--color-bg-secondary);
  position: relative;
  z-index: 1;
  color: var(--stat-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.stat-card .stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-sports), sans-serif;
  letter-spacing: -0.5px;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-xs);
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(229, 27, 36, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 27, 36, 0.4);
  color: white;
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-text-muted);
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-danger {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}
.btn-danger:hover {
  background: #DC2626;
  color: white;
  transform: translateY(-1px);
}

.btn-success {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}
.btn-success:hover {
  background: #16A34A;
  color: white;
  transform: translateY(-1px);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon { padding: 8px; width: 36px; height: 36px; border-radius: var(--radius-md); }

/* ============================================
   Tables
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: var(--color-bg-secondary);
  color: var(--color-text-muted);
  font-family: var(--font-sports);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--color-border);
}

tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(229, 27, 36, 0.04); }

tbody td {
  padding: 16px 18px;
  color: var(--color-text);
  vertical-align: middle;
}

/* ============================================
   Forms
   ============================================ */
.form-group { margin-bottom: var(--gap-lg); }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-control::placeholder { color: var(--color-text-dim); }

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238899BB' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-lg);
}

.form-row {
  display: flex;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

/* ============================================
   Badges
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sports);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transform: skewX(-8deg);
}

.badge-live {
  background: rgba(229, 27, 36, 0.15);
  color: var(--color-live);
  border: 1px solid rgba(229, 27, 36, 0.45);
  animation: badge-pulse 2s infinite;
}

.badge-live::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--color-live);
  border-radius: 50%;
  display: inline-block;
  animation: blink 1s infinite;
  transform: skewX(8deg); /* Unskew the dot */
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,27,36,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(229,27,36,0); }
}

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

.badge-upcoming {
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-accent2);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.badge-finished {
  background: rgba(156, 163, 175, 0.15);
  color: var(--color-text-muted);
  border: 1px solid rgba(156, 163, 175, 0.25);
}

.badge-postponed {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-cancelled {
  background: rgba(239, 68, 110, 0.1);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 110, 0.25);
}

/* ============================================
   Match Score Card
   ============================================ */
.match-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-slow);
  position: relative;
}

.match-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.match-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.match-card:hover::after {
  background: var(--gradient-primary);
}

.match-card.is-live {
  border-color: rgba(229, 27, 36, 0.45);
  box-shadow: 0 0 25px rgba(229, 27, 36, 0.15);
}

.match-card.is-live::after {
  background: var(--color-live);
}

.match-card-header {
  padding: var(--gap-sm) var(--gap-lg);
  background: #111111;
  border-bottom: 1px solid #222222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sports);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.match-body {
  padding: var(--gap-lg);
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.match-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
  text-align: center;
}

.team-logo-sm {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 2px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition-slow);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.match-card:hover .team-logo-sm {
  transform: scale(1.08) rotate(5deg);
  border-color: var(--color-primary);
}

.team-logo-sm img { width: 100%; height: 100%; object-fit: cover; }

.match-team-name {
  font-family: var(--font-sports);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text);
  line-height: 1.2;
}

.match-score-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-xs);
  min-width: 110px;
}

.match-score {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.score-num {
  font-family: var(--font-sports);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.score-separator {
  font-family: var(--font-sports);
  font-size: 2rem;
  color: var(--color-text-dim);
  font-weight: 600;
}

.set-scores {
  display: flex;
  gap: 6px;
  font-family: var(--font-sports);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.set-score {
  background: var(--color-bg-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* ============================================
   Public Navigation
   ============================================ */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #EAEAEA;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.public-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gap-xl);
  height: 72px;
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  flex-wrap: nowrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand .brand-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: var(--transition-slow);
  overflow: hidden;
  background: #fff;
}
.nav-brand .brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-brand:hover .brand-icon {
  transform: rotate(360deg) scale(1.05);
}

.nav-brand .brand-name {
  font-family: var(--font-sports);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111111;
  white-space: nowrap;
}
.nav-brand .brand-name span { color: var(--color-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-shrink: 0;
}

.nav-links a {
  color: #444444;
  font-family: var(--font-sports);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 3px;
}

.nav-links a:hover {
  color: #111111;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 60%;
}

.nav-links a.active {
  color: var(--color-primary);
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  z-index: 200;
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li {
  list-style: none;
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  color: #444444;
  font-size: 0.95rem;
  text-transform: none;
  font-weight: 600;
  border-radius: 0;
}

.nav-dropdown a::after {
  display: none; /* No underline effect for dropdown links */
}

.nav-dropdown a:hover {
  background: #F8FAFC;
  color: var(--color-primary);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  flex-shrink: 0;
}

.nav-right .btn {
  background: #F4F4F5;
  color: #111111;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-right .btn:hover {
  background: #E5E7EB;
  transform: translateY(-1px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.45) 0%, rgba(248, 250, 252, 1) 100%), url('../img/volleyball_hero_bg.png') no-repeat center center / cover;
  padding: 110px var(--gap-xl) 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(229,27,36,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  background: rgba(229,27,36,0.12);
  border: 1px solid rgba(229,27,36,0.3);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-family: var(--font-sports);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: var(--gap-lg);
  transform: skewX(-8deg);
}

.hero-eyebrow > * {
  transform: skewX(8deg); /* Unskew text */
}

.hero h1 {
  font-family: var(--font-sports);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.5px;
  line-height: 1.02;
  background: linear-gradient(135deg, #0F172A 40%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--gap-md);
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--gap-xl);
}

/* ============================================
   Team Logo / Avatar
   ============================================ */
.team-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sports);
  font-size: 1.1rem;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.team-avatar img { width: 100%; height: 100%; object-fit: contain; }

.team-row {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

/* ============================================
   Live Score Board
   ============================================ */
.scoreboard {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.scoreboard-header {
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-card));
  padding: var(--gap-md) var(--gap-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.scoreboard-body {
  padding: var(--gap-xl);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

.team-score-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
}

.team-score-logo {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  border: 3px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: var(--transition-slow);
}

.team-score-logo:hover {
  transform: scale(1.08) rotate(5deg);
  border-color: var(--color-primary);
}

.team-score-logo img { width: 100%; height: 100%; object-fit: cover; }

.team-score-name {
  font-family: var(--font-sports);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  color: var(--color-text);
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
}

.score-main {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.score-big {
  font-family: var(--font-sports);
  font-size: 5rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.current-set-score {
  font-family: var(--font-sports);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--gap-xs);
  text-align: center;
  letter-spacing: 1px;
}

.set-history {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.set-chip {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-family: var(--font-sports);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.set-chip.won {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--color-success);
}

/* Score Keeper Buttons */
.score-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-xs);
  padding: var(--gap-lg);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 90px;
}

.score-btn:hover {
  border-color: var(--color-primary);
  background: rgba(255,107,0,0.1);
  transform: scale(1.03);
}

.score-btn:active {
  transform: scale(0.97);
}

.score-btn .btn-icon-big { font-size: 1.8rem; }

.score-btn.home { border-color: rgba(255,107,0,0.3); }
.score-btn.away { border-color: rgba(0,212,255,0.3); }

/* ============================================
   Standings Table
   ============================================ */
.standings-rank {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-text-muted);
  text-align: center;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto;
}

.standings-rank.rank-1 { background: linear-gradient(135deg, #FFD700, #FDB931); color: #664d00; font-size: 1.3rem; width: 40px; height: 40px; box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4); border: 2px solid #fff; }
.standings-rank.rank-2 { background: linear-gradient(135deg, #E0E0E0, #BDBDBD); color: #333; font-size: 1.2rem; width: 36px; height: 36px; box-shadow: 0 4px 10px rgba(192, 192, 192, 0.4); border: 2px solid #fff; }
.standings-rank.rank-3 { background: linear-gradient(135deg, #E69D66, #CD7F32); color: #5a2e0c; font-size: 1.1rem; width: 32px; height: 32px; box-shadow: 0 4px 8px rgba(205, 127, 50, 0.4); border: 2px solid #fff; }

/* ============================================
   Utility Classes
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gap-xl);
}

.section { padding: var(--gap-3xl) 0; }

.grid { display: grid; gap: var(--gap-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-center { align-items: center; }
.gap-sm { gap: var(--gap-sm); }
.gap-md { gap: var(--gap-md); }
.gap-lg { gap: var(--gap-lg); }

.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mt-xl { margin-top: var(--gap-xl); }
.mb-lg { margin-bottom: var(--gap-lg); }
.mb-xl { margin-bottom: var(--gap-xl); }

.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--gap-lg) 0;
}

/* Alert */
.alert {
  padding: var(--gap-md) var(--gap-lg);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: var(--gap-lg);
}
.alert-success { background: rgba(52,199,89,0.1); border: 1px solid rgba(52,199,89,0.3); color: var(--color-success); }
.alert-danger { background: rgba(255,59,48,0.1); border: 1px solid rgba(255,59,48,0.3); color: var(--color-danger); }
.alert-info { background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.3); color: var(--color-accent2); }

/* Loading Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Page Header */
.page-header {
  margin-bottom: var(--gap-xl);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}
.page-header-left h1 { font-size: 1.6rem; margin-bottom: 4px; }
.page-header-left p { color: var(--color-text-muted); font-size: 0.88rem; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--gap-3xl) var(--gap-xl);
  color: var(--color-text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: var(--gap-md); opacity: 0.5; }
.empty-state h3 { color: var(--color-text); margin-bottom: var(--gap-sm); }

/* Progress Bar */
.progress {
  height: 4px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  animation: fadeIn 0.4s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Score Update Animation */
@keyframes scoreFlash {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); color: var(--color-primary); }
  100% { transform: scale(1); }
}
.score-flash { animation: scoreFlash 0.5s ease; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }

  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); width: 260px; }

  .main-content { margin-left: 0; }

  .page-content { padding: var(--gap-md); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .scoreboard-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .score-big { font-size: 3rem; }

  .public-nav-inner { padding: 0 var(--gap-md); gap: var(--gap-md); }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Player Details Modal Styles
   ============================================ */
.pm-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.pm-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.pm-modal {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.25s cubic-bezier(.34,1.4,.64,1);
  position: relative;
}
.pm-overlay.open .pm-modal {
  transform: translateY(0) scale(1);
}
.pm-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
}
.pm-close:hover { background: var(--color-primary); color: #fff; }

/* Header */
.pm-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 28px 0;
}
.pm-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  background: var(--color-bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.pm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pm-jersey-badge {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  border: 2px solid var(--color-bg-card);
}
.pm-info { flex: 1; min-width: 0; }
.pm-name {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}
.pm-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pm-team-logo {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  overflow: hidden;
}
.pm-team-logo img { width: 100%; height: 100%; object-fit: cover; }
.pm-pos-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(229,27,36,0.15);
  color: var(--color-primary);
  border: 1px solid rgba(229,27,36,0.3);
}
.pm-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pm-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.pm-chip .chip-icon { font-size: 0.85rem; }

/* Divider */
.pm-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  padding: 20px 28px 10px;
  border-top: 1px solid var(--color-border);
  margin-top: 20px;
}

/* Stats Grid */
.pm-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  margin: 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pm-stat-box {
  background: var(--color-bg-secondary);
  padding: 16px 12px;
  text-align: center;
}
.pm-stat-val {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-sports);
  color: var(--color-primary);
  line-height: 1;
}
.pm-stat-val.neutral { color: var(--color-text); }
.pm-stat-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pm-stat-sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Bar chart */
.pm-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 28px;
}
.pm-bar-track {
  flex: 1;
  height: 6px;
  background: var(--color-bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}
.pm-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-primary);
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}
.pm-bar-label { font-size: 0.8rem; color: var(--color-text-muted); width: 110px; flex-shrink: 0; }
.pm-bar-val { font-size: 0.8rem; font-weight: 700; color: var(--color-text); width: 44px; text-align: right; }

/* Recent matches */
.pm-matches { padding: 0 28px 28px; }
.pm-match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  transition: background 0.15s;
}
.pm-match-row:hover { background: var(--color-bg-secondary); }
.pm-match-date { color: var(--color-text-muted); width: 78px; flex-shrink: 0; }
.pm-match-teams { flex: 1; font-weight: 600; }
.pm-match-score { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.pm-match-pts {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: rgba(229,27,36,0.15);
  color: var(--color-primary);
  white-space: nowrap;
}

/* Loader */
.pm-loader {
  display: flex; align-items: center; justify-content: center;
  padding: 60px;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.pm-spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@media (max-width: 500px) {
  .pm-header { flex-direction: column; align-items: center; text-align: center; }
  .pm-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-team-row { justify-content: center; }
  .pm-meta-chips { justify-content: center; }
}

/* Homepage Leader Cards */
.leader-card {
  transition: all var(--transition);
}
.leader-card:hover {
  background: rgba(229,27,36,0.08) !important;
  border-color: rgba(229,27,36,0.25) !important;
  transform: translateY(-1px);
}

/* ============================================
   Live Score Board & Big Screen Scoreboard
   ============================================ */
@keyframes scoreUpdatedFlash {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.4); text-shadow: 0 0 15px rgba(229,27,36,0.6); }
  100% { transform: scale(1); filter: brightness(1); }
}
.score-updated-flash {
  animation: scoreUpdatedFlash 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.match-card.is-live {
  background: linear-gradient(135deg, rgba(229,27,36,0.04) 0%, rgba(2,132,199,0.02) 100%), var(--color-bg-card) !important;
  border-left: 4px solid var(--color-live) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(229,27,36,0.06), var(--shadow-card) !important;
  transition: all var(--transition);
}
.match-card.is-live::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(229,27,36,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.match-card.is-live:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(229,27,36,0.1), var(--shadow-card) !important;
}
.live-btn-group {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
}
.btn-live-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-live-action.btn-accent {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
}
.btn-live-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Big Screen Theater view overlay */
.big-score-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0B0F19 0%, #03050A 100%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  color: #fff;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
.big-score-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.big-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255,255,255,0.08);
  padding-bottom: 20px;
  margin-bottom: 30px;
}
.big-score-title {
  font-family: var(--font-sports);
  font-size: 2.2rem;
  text-transform: uppercase;
  color: #ff6b00;
  letter-spacing: 1px;
}
.big-score-court {
  font-size: 1.2rem;
  color: var(--color-text-dim);
}
.big-score-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.3rem;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
}
.big-score-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.big-score-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  gap: var(--gap-2xl);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}
.big-score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap-lg);
  min-width: 0;
}
.big-score-logo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 6px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: 0 0 50px rgba(255,255,255,0.05);
}
.big-score-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.big-score-team-name {
  font-family: var(--font-sports);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 450px;
  padding: 4px 10px;
}
.big-score-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-xl);
}
.big-score-main {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 8px 30px;
  box-shadow: inset 0 2px 15px rgba(255,255,255,0.02), 0 10px 30px rgba(0,0,0,0.3);
  margin-top: 20px;
}
.big-score-num {
  font-family: var(--font-sports);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.big-score-sep {
  font-size: 2rem;
  color: rgba(255,255,255,0.15);
}
.big-score-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 40px 80px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.7), inset 0 2px 20px rgba(255,255,255,0.05);
}
.big-score-sub-val {
  font-family: var(--font-sports);
  font-size: clamp(6rem, 10vw, 10rem);
  font-weight: 900;
  color: #ffffff;
  display: flex;
  gap: 32px;
  align-items: center;
  line-height: 1;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
  white-space: nowrap;
}
.big-score-sub-label {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  letter-spacing: 4px;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.3);
  padding: 8px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 1; }
}

@media (max-width: 900px) {
  .big-score-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--gap-xl);
  }
  .big-score-logo {
    width: 120px; height: 120px;
    font-size: 4rem;
  }
  .big-score-team-name { font-size: 2.2rem; }
  .big-score-num { font-size: 6rem; }
  .big-score-sub-val { font-size: 3rem; }
}

/* Summary Stats Cards */
.summary-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all var(--transition);
}
.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}
.summary-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.summary-val {
  font-size: 2.4rem;
  font-family: var(--font-sports);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 4px;
}
.summary-lbl {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* Serving Indicator */
.serve-indicator {
  font-size: 2.2rem;
  cursor: pointer;
  opacity: 0.15;
  transition: all var(--transition);
  display: inline-block;
  user-select: none;
}
.serve-indicator.active {
  opacity: 1;
  color: #FFD700;
  filter: drop-shadow(0 0 10px #FFD700);
  animation: pulse 1s infinite alternate;
}

/* Timeout dots */
.timeout-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  letter-spacing: 1px;
  user-select: none;
}
.timeout-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all var(--transition);
}
.timeout-dot.active {
  background: #ff2a3a;
  border-color: #ff2a3a;
  box-shadow: 0 0 10px rgba(255, 42, 58, 0.6);
}

/* Set History Score Boxes */
.set-history-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
}
.set-score-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 20px;
  font-family: var(--font-sports);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition);
}
.set-score-box.active {
  background: rgba(255, 42, 58, 0.04);
  border-color: rgba(255, 42, 58, 0.3);
  color: #ff2a3a;
  box-shadow: 0 4px 20px rgba(255, 42, 58, 0.1);
}
.set-score-box-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
}
.set-score-box.active .set-score-box-label {
  color: rgba(255, 42, 58, 0.6);
}
.set-score-box-val {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
}

/* live action banners */
.big-score-action-banner {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}
.big-score-action-banner.open {
  opacity: 1;
  pointer-events: all;
}
.action-banner-title {
  font-family: var(--font-sports);
  font-size: 8rem;
  font-weight: 900;
  font-style: italic;
  color: #ff2a3a;
  letter-spacing: 4px;
  text-shadow: 0 0 50px rgba(255, 42, 58, 0.6);
  animation: bannerPulse 1s infinite alternate;
}
.action-banner-subtitle {
  font-family: var(--font-sports);
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.action-banner-details {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  font-size: 3rem;
  font-weight: 700;
}
.sub-player-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 15px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.sub-player-card.sub-in {
  border-color: #28a745;
  color: #28a745;
  box-shadow: 0 0 30px rgba(40,167,105,0.2);
}
.sub-player-card.sub-out {
  border-color: #dc3545;
  color: #dc3545;
  box-shadow: 0 0 30px rgba(220,53,69,0.2);
}
@keyframes bannerPulse {
  from { transform: scale(0.98); }
  to { transform: scale(1.02); }
}

.action-banner-timer {
  font-family: var(--font-sports);
  font-size: 6.5rem;
  font-weight: 800;
  margin-top: 15px;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

/* ============================================
   VNL-Style Premium Player Details Modal Overrides
   ============================================ */

/* Modal Container Overrides */
.pm-overlay {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(10px) !important;
}

.pm-modal {
  max-width: 900px !important;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 10px, rgba(255,255,255,0.01) 10px, rgba(255,255,255,0.01) 20px), radial-gradient(circle at 50% 30%, #1e1e24 0%, #0c0c0e 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
  color: #ffffff !important;
}

/* Scrollbar within dark modal */
.pm-modal::-webkit-scrollbar-track {
  background: #0c0c0e !important;
}
.pm-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
}
.pm-modal::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary) !important;
}

/* Close Button Overrides */
.pm-close {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.6) !important;
}
.pm-close:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
}

/* VNL Custom Layout CSS */
.pm-vnl-layout {
  display: flex;
  gap: 32px;
  padding: 40px;
}

.pm-vnl-left {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pm-vnl-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Left Column elements */
.pm-vnl-avatar-container {
  position: relative;
  margin-bottom: 20px;
}

.pm-vnl-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: #151518;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.pm-vnl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-vnl-jersey {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-sports);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.pm-vnl-name {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 0.5px;
  font-family: var(--font-sports);
  margin-top: 8px;
}

.pm-vnl-subname {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-top: 4px;
}

/* Right Column Sections */
.pm-vnl-section-title {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sports);
}
.pm-vnl-section-title::before,
.pm-vnl-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.pm-vnl-section-title::before {
  margin-right: 16px;
}
.pm-vnl-section-title::after {
  margin-left: 16px;
}

/* Team Box */
.pm-vnl-team-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-sports);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Bio Grid */
.pm-vnl-bio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pm-vnl-bio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.pm-vnl-bio-item:last-child {
  border-right: none;
}

.pm-vnl-bio-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pm-vnl-bio-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

/* Stats Section */
.pm-vnl-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pm-vnl-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.pm-vnl-stat-box:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.pm-vnl-stat-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.pm-vnl-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.pm-vnl-stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-sports);
  margin-bottom: 8px;
  line-height: 1;
}

.pm-vnl-stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.pm-vnl-stat-row-item {
  display: flex;
  justify-content: center;
  gap: 5px;
  font-size: 0.75rem;
  line-height: 1.2;
}

.pm-vnl-stat-row-label {
  color: rgba(255, 255, 255, 0.4);
}

.pm-vnl-stat-row-value {
  color: #ffffff;
  font-weight: 700;
}

/* Matches */
.pm-vnl-matches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pm-vnl-match-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.pm-vnl-match-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pm-vnl-match-date {
  color: rgba(255, 255, 255, 0.4);
  width: 80px;
  flex-shrink: 0;
}

.pm-vnl-match-teams {
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.pm-vnl-match-score {
  font-weight: 800;
  color: #ffffff;
  font-size: 0.95rem;
  text-align: center;
  min-width: 60px;
}

.pm-vnl-match-pts {
  background: rgba(229, 27, 36, 0.12);
  border: 1px solid rgba(229, 27, 36, 0.25);
  color: var(--color-primary);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 70px;
  text-align: center;
}

/* Responsiveness */
@media (max-width: 768px) {
  .pm-modal {
    max-height: 95vh !important;
  }
  .pm-vnl-layout {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }
  .pm-vnl-left {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 24px;
  }
  .pm-vnl-bio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
  }
  .pm-vnl-bio-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
  }
  .pm-vnl-bio-item:nth-child(3) ~ .pm-vnl-bio-item,
  .pm-vnl-bio-item:nth-child(3) {
    border-bottom: none;
  }
  .pm-vnl-bio-item:nth-child(3) {
    border-right: none;
  }
  .pm-vnl-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .pm-vnl-bio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pm-vnl-bio-item {
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .pm-vnl-bio-item:nth-child(4) ~ .pm-vnl-bio-item,
  .pm-vnl-bio-item:nth-child(4) {
    border-bottom: none;
  }
  .pm-vnl-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}





/* Hide text on mobile for nav buttons */
.hide-mobile { display: inline-block; }
@media (max-width: 576px) { .hide-mobile { display: none !important; } }


/* Dashboard Styles */
.dashboard-bottom-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 1024px) { .dashboard-bottom-grid { grid-template-columns: 1fr; } }
.quick-action-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 16px; padding: 20px 16px; color: var(--color-text); text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); gap: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); text-align: center; font-weight: 600; font-size: 0.9rem; }
.quick-action-btn:hover { background: var(--color-bg-card); border-color: var(--color-primary); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); color: var(--color-primary); }
.quick-action-btn .btn-icon-big { font-size: 2rem; margin-bottom: 4px; transition: transform 0.3s; }
.quick-action-btn:hover .btn-icon-big { transform: scale(1.15) rotate(5deg); }
.dashboard-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: 20px; box-shadow: 0 8px 30px rgba(0,0,0,0.04); display: flex; flex-direction: column; }
.dashboard-card .card-header { padding: 20px 24px; border-bottom: 1px solid var(--color-border); background: rgba(0,0,0,0.01); display: flex; justify-content: space-between; align-items: center; }

