/* ============================================================
   VolleyLive — Mobile-First CSS
   Version: 1.0
   ============================================================ */

/* ── CSS Variables ── */
:root {
  /* Brand colors — from logo */
  --vl-primary: #4a6cf7;         /* Blue from volleyball */
  --vl-primary-dark: #3754d0;
  --vl-primary-light: #3a5ce5;
  --vl-accent: #f7524a;          /* Red-orange from "LIVE" */
  --vl-accent-gradient: linear-gradient(135deg, #f7524a, #e040a0);
  --vl-live: #ff4757;
  --vl-live-glow: rgba(255, 71, 87, 0.25);

  /* Neutrals — Light theme */
  --vl-bg: #f4f6f9;
  --vl-bg-card: #ffffff;
  --vl-bg-card-hover: #f0f2f8;
  --vl-bg-input: #f7f8fb;
  --vl-bg-surface: #eef0f5;
  --vl-border: #dde1ea;
  --vl-border-light: #e8ebf2;

  /* Text */
  --vl-text: #1a1d2e;
  --vl-text-muted: #6b7280;
  --vl-text-dim: #9ca3af;
  --vl-text-on-primary: #fff;

  /* Status colors */
  --vl-success: #16a34a;
  --vl-warning: #d97706;
  --vl-danger: #dc2626;
  --vl-info: #2563eb;

  /* Badges */
  --vl-badge-draft: #9ca3af;
  --vl-badge-scheduled: #2563eb;
  --vl-badge-live: #dc2626;
  --vl-badge-completed: #16a34a;
  --vl-badge-delayed: #d97706;
  --vl-badge-cancelled: #6b7280;

  /* Spacing */
  --vl-gap-xs: 4px;
  --vl-gap-sm: 8px;
  --vl-gap-md: 16px;
  --vl-gap-lg: 24px;
  --vl-gap-xl: 32px;

  /* Radius */
  --vl-radius-sm: 6px;
  --vl-radius-md: 10px;
  --vl-radius-lg: 16px;
  --vl-radius-full: 999px;

  /* Shadows */
  --vl-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --vl-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --vl-shadow-lg: 0 8px 24px rgba(0,0,0,0.1);

  /* Layout */
  --vl-max-width: 480px;
  --vl-bottom-nav-h: 60px;
  --vl-header-h: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--vl-bg);
  color: var(--vl-text);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--vl-primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font: inherit; }

/* ── Typography ── */
.vl-h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.vl-h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.vl-h3 { font-size: 1rem; font-weight: 600; }
.vl-small { font-size: 0.8125rem; color: var(--vl-text-muted); }
.vl-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--vl-text-muted); }

/* ── Layout: App Shell ── */
.vl-app {
  max-width: var(--vl-max-width);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.vl-main {
  flex: 1;
  padding: var(--vl-gap-md);
  padding-bottom: calc(var(--vl-bottom-nav-h) + var(--vl-gap-lg));
}

/* ── Top Header/Bar ── */
.vl-topbar {
  display: flex;
  align-items: center;
  gap: var(--vl-gap-sm);
  padding: var(--vl-gap-sm) var(--vl-gap-md);
  height: var(--vl-header-h);
  background: var(--vl-bg-card);
  border-bottom: 1px solid var(--vl-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.vl-topbar-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--vl-radius-sm);
  color: var(--vl-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
}
.vl-topbar-back:hover { background: var(--vl-bg-card-hover); }
.vl-topbar-title {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vl-topbar-logo {
  height: 200px;
  width: auto;
  max-height: 54px;
}
.vl-topbar-actions { display: flex; gap: var(--vl-gap-xs); }

/* ── Manager Action Bar ── */
.vl-manager-bar {
  background: #1b1f3b;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  position: sticky;
  top: var(--vl-header-h);
  z-index: 99;
}
.vl-tournament-title-bar {
  background: #f0f1f5;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: calc(var(--vl-header-h) + 52px);
  z-index: 98;
}

/* ── Bottom Navigation ── */
.vl-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--vl-max-width);
  height: var(--vl-bottom-nav-h);
  background: var(--vl-bg-card);
  border-top: 1px solid var(--vl-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.vl-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--vl-text-dim);
  text-decoration: none;
  border-radius: var(--vl-radius-sm);
  transition: color 0.15s;
  position: relative;
}
.vl-nav-item:hover,
.vl-nav-item.active { color: var(--vl-primary-light); text-decoration: none; }
.vl-nav-item.active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--vl-primary);
  border-radius: 1px;
}
.vl-nav-icon { font-size: 1.25rem; line-height: 1; }

/* ── Cards ── */
.vl-card {
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius-md);
  padding: var(--vl-gap-md);
  margin-bottom: var(--vl-gap-md);
}
.vl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--vl-gap-sm);
}
.vl-card-title { font-size: 0.875rem; font-weight: 600; }
.vl-card--interactive { cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.vl-card--interactive:hover {
  border-color: var(--vl-primary);
  background: var(--vl-bg-card-hover);
}

/* ── Buttons ── */
.vl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vl-gap-sm);
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--vl-radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.vl-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vl-btn--primary {
  background: var(--vl-primary);
  color: var(--vl-text-on-primary);
}
.vl-btn--primary:hover { background: var(--vl-primary-dark); text-decoration: none; }
.vl-btn--accent {
  background: var(--vl-accent-gradient);
  color: var(--vl-text-on-primary);
}
.vl-btn--accent:hover { opacity: 0.9; text-decoration: none; }
.vl-btn--outline {
  background: transparent;
  color: var(--vl-primary-light);
  border: 1px solid var(--vl-border);
}
.vl-btn--outline:hover { background: var(--vl-bg-card-hover); border-color: var(--vl-primary); text-decoration: none; }
.vl-btn--danger { background: var(--vl-danger); color: #fff; }
.vl-btn--danger:hover { background: #c0392b; text-decoration: none; }
.vl-btn--ghost {
  background: none;
  color: var(--vl-text-muted);
  padding: 6px 12px;
}
.vl-btn--ghost:hover { color: var(--vl-text); background: var(--vl-bg-card-hover); text-decoration: none; }
.vl-btn--sm { padding: 6px 14px; font-size: 0.8125rem; }
.vl-btn--lg { padding: 14px 28px; font-size: 1rem; }
.vl-btn--full { width: 100%; }
.vl-btn--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--vl-radius-sm);
}

/* ── Forms ── */
.vl-field {
  margin-bottom: var(--vl-gap-md);
}
.vl-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--vl-text-muted);
  margin-bottom: var(--vl-gap-xs);
}
.vl-field input,
.vl-field select,
.vl-field textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  background: var(--vl-bg-input);
  color: var(--vl-text);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius-sm);
  outline: none;
  transition: border-color 0.15s;
}
.vl-field input:focus,
.vl-field select:focus,
.vl-field textarea:focus {
  border-color: var(--vl-primary);
}
.vl-field input::placeholder { color: var(--vl-text-dim); }
.vl-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892a8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.vl-field textarea { min-height: 80px; resize: vertical; }
.vl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--vl-gap-md);
}
.vl-field-hint {
  font-size: 0.75rem;
  color: var(--vl-text-dim);
  margin-top: 4px;
}

.vl-checkbox {
  display: flex;
  align-items: center;
  gap: var(--vl-gap-sm);
  cursor: pointer;
  font-size: 0.9375rem;
}
.vl-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--vl-primary);
}

/* ── Badges ── */
.vl-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--vl-radius-full);
  white-space: nowrap;
}
.vl-badge--draft     { background: var(--vl-badge-draft); color: #fff; }
.vl-badge--scheduled { background: rgba(52,152,219,0.2); color: var(--vl-badge-scheduled); }
.vl-badge--live      { background: rgba(255,71,87,0.15); color: var(--vl-badge-live); animation: vl-pulse 2s infinite; }
.vl-badge--completed { background: rgba(46,204,113,0.15); color: var(--vl-badge-completed); }
.vl-badge--delayed   { background: rgba(243,156,18,0.15); color: var(--vl-badge-delayed); }
.vl-badge--cancelled { background: rgba(149,165,166,0.15); color: var(--vl-badge-cancelled); }
.vl-badge--forfeited { background: rgba(231,76,60,0.15); color: var(--vl-badge-cancelled); }

.vl-badge--pending   { background: rgba(243,156,18,0.15); color: var(--vl-warning); }
.vl-badge--confirmed { background: rgba(46,204,113,0.15); color: var(--vl-success); }
.vl-badge--withdrawn { background: rgba(149,165,166,0.15); color: #95a5a6; }

@keyframes vl-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ── Messages ── */
.vl-msg {
  padding: var(--vl-gap-sm) var(--vl-gap-md);
  border-radius: var(--vl-radius-sm);
  font-size: 0.875rem;
  margin-bottom: var(--vl-gap-md);
}
.vl-msg--success { background: rgba(46,204,113,0.12); color: var(--vl-success); border: 1px solid rgba(46,204,113,0.25); }
.vl-msg--error   { background: rgba(231,76,60,0.12); color: var(--vl-danger); border: 1px solid rgba(231,76,60,0.25); }
.vl-msg--warning { background: rgba(243,156,18,0.12); color: var(--vl-warning); border: 1px solid rgba(243,156,18,0.25); }
.vl-msg--info    { background: rgba(52,152,219,0.12); color: var(--vl-info); border: 1px solid rgba(52,152,219,0.25); }

/* ── Tables ── */
.vl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.vl-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vl-text-muted);
  border-bottom: 1px solid var(--vl-border);
}
.vl-table td {
  padding: 10px;
  border-bottom: 1px solid var(--vl-border);
}
.vl-table tr:last-child td { border-bottom: none; }
.vl-table tr:hover td { background: var(--vl-bg-card-hover); }
.vl-table .vl-col-num { text-align: center; font-variant-numeric: tabular-nums; }

/* ── Quick Action Grid ── */
.vl-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--vl-gap-sm);
  margin-bottom: var(--vl-gap-lg);
}
.vl-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--vl-gap-xs);
  padding: var(--vl-gap-md);
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius-md);
  color: var(--vl-text);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.vl-action-btn:hover {
  border-color: var(--vl-primary);
  background: var(--vl-bg-card-hover);
  text-decoration: none;
}
.vl-action-btn .vl-action-icon { font-size: 1.5rem; }
.vl-action-grid--compact { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: var(--vl-gap-md); }
.vl-action-btn--sm { padding: 8px 4px; font-size: 0.6875rem; }
.vl-action-btn--sm .vl-action-icon { font-size: 1.15rem; }

/* ── Live Match Card ── */
.vl-live-card {
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-live);
  border-radius: var(--vl-radius-md);
  padding: var(--vl-gap-md);
  margin-bottom: var(--vl-gap-md);
  position: relative;
  overflow: hidden;
}
.vl-live-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--vl-accent-gradient);
}
.vl-live-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--vl-gap-sm);
}
.vl-live-card-meta {
  font-size: 0.75rem;
  color: var(--vl-text-muted);
}
.vl-live-card-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--vl-gap-sm);
  margin-bottom: var(--vl-gap-sm);
}
.vl-live-card-team {
  flex: 1;
  text-align: center;
  font-weight: 600;
}
.vl-live-card-vs {
  font-size: 0.75rem;
  color: var(--vl-text-dim);
  padding: 0 var(--vl-gap-sm);
}

/* ── Score Display ── */
.vl-score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-variant-numeric: tabular-nums;
}
.vl-score-set-label {
  font-size: 0.8125rem;
  color: var(--vl-text-muted);
  width: 50px;
}
.vl-score-home, .vl-score-away {
  width: 40px;
  text-align: center;
  font-weight: 600;
}
.vl-score-home.winner, .vl-score-away.winner { color: var(--vl-success); }

/* ── Match List Item ── */
.vl-match-item {
  display: block;
  padding: var(--vl-gap-sm) 0;
  border-bottom: 1px solid var(--vl-border);
  text-decoration: none;
  color: var(--vl-text);
}
.vl-match-item:last-child { border-bottom: none; }
.vl-match-action-hint {
  font-size: 0.6875rem;
  color: var(--vl-primary-light);
  text-align: right;
  padding-top: 2px;
  opacity: 0.7;
}
.vl-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--vl-live, #e74c3c);
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
  animation: vl-pulse 1.5s infinite;
}
.vl-match-time {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--vl-text-muted);
  width: 50px;
  flex-shrink: 0;
}
.vl-match-info { flex: 1; min-width: 0; }
.vl-match-teams-text {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vl-match-meta {
  display: flex;
  align-items: center;
  gap: var(--vl-gap-xs);
  font-size: 0.75rem;
  color: var(--vl-text-muted);
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.vl-match-teams {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vl-match-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  font-size: 0.8125rem;
  background: rgba(0,0,0,0.015);
  border-radius: var(--vl-radius-sm);
}
.vl-match-team--winner { font-weight: 700; color: var(--vl-success); }
.vl-match-score {
  font-weight: 700;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  min-width: 18px;
  text-align: center;
}

/* ── Pool Standings Table ── */
.vl-standings {
  width: 100%;
  font-size: 0.8125rem;
}
.vl-standings th {
  text-align: center;
  padding: 6px 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--vl-text-muted);
  border-bottom: 1px solid var(--vl-border);
}
.vl-standings th:first-child { text-align: left; }
.vl-standings td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid var(--vl-border);
  font-variant-numeric: tabular-nums;
}
.vl-standings td:first-child { text-align: left; font-weight: 500; }
.vl-standings .vl-qualified { background: rgba(46,204,113,0.08); }
.vl-standings .vl-rank-cell {
  font-weight: 700;
  color: var(--vl-primary-light);
}

/* ── Filters (sticky) ── */
.vl-filters {
  display: flex;
  gap: var(--vl-gap-sm);
  padding: var(--vl-gap-sm) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--vl-gap-md);
  position: sticky;
  top: var(--vl-header-h);
  background: var(--vl-bg);
  z-index: 50;
}
.vl-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--vl-radius-full);
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-border);
  color: var(--vl-text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.vl-filter-chip:hover,
.vl-filter-chip.active {
  background: var(--vl-primary);
  color: var(--vl-text-on-primary);
  border-color: var(--vl-primary);
  text-decoration: none;
}

/* ── Filter Bar + Chips (alternate) ── */
.vl-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}
.vl-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--vl-radius-full);
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-border);
  color: var(--vl-text-muted);
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
}
.vl-chip:hover { border-color: var(--vl-primary); color: var(--vl-text); }
.vl-chip--active {
  background: var(--vl-primary);
  color: var(--vl-text-on-primary);
  border-color: var(--vl-primary);
}

/* ── Tab Bar ── */
.vl-tab-bar {
  display: flex;
  gap: 2px;
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius-md);
  padding: 3px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.vl-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--vl-text-muted);
  text-decoration: none;
  border-radius: var(--vl-radius-sm);
  transition: all 0.15s;
  white-space: nowrap;
  min-width: 0;
}
.vl-tab:hover { color: var(--vl-text); background: rgba(0,0,0,0.03); }
.vl-tab--active {
  background: var(--vl-primary);
  color: var(--vl-text-on-primary);
  font-weight: 600;
}
.vl-tab-icon { font-size: 1rem; }
.vl-tab-label { overflow: hidden; text-overflow: ellipsis; }

/* ── Auth Pages ── */
.vl-auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--vl-gap-lg);
}
.vl-auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius-lg);
  padding: var(--vl-gap-xl);
}
.vl-auth-logo {
  text-align: center;
  margin-bottom: var(--vl-gap-lg);
}
.vl-auth-logo img {
  height: 40px;
  margin: 0 auto;
}
.vl-auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--vl-gap-lg);
}
.vl-auth-footer {
  text-align: center;
  margin-top: var(--vl-gap-lg);
  font-size: 0.875rem;
  color: var(--vl-text-muted);
}
.vl-auth-footer a { color: var(--vl-primary-light); }
.vl-lang-switch {
  text-align: center;
  margin-top: var(--vl-gap-md);
  font-size: 0.75rem;
}
.vl-lang-switch a {
  color: var(--vl-text-dim);
  padding: 4px 8px;
  border-radius: var(--vl-radius-sm);
}
.vl-lang-switch a.active {
  color: var(--vl-primary-light);
  font-weight: 600;
}

/* ── Section Headers ── */
.vl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--vl-gap-md);
}
.vl-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vl-text-muted);
}

/* ── Empty States ── */
.vl-empty {
  text-align: center;
  padding: var(--vl-gap-xl) var(--vl-gap-md);
  color: var(--vl-text-muted);
}
.vl-empty-icon { font-size: 2.5rem; margin-bottom: var(--vl-gap-sm); opacity: 0.5; }
.vl-empty-text { font-size: 0.9375rem; margin-bottom: var(--vl-gap-md); }

/* ── Alert Banner ── */
.vl-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--vl-gap-sm);
  padding: var(--vl-gap-sm) var(--vl-gap-md);
  background: rgba(243,156,18,0.1);
  border: 1px solid rgba(243,156,18,0.25);
  border-radius: var(--vl-radius-sm);
  margin-bottom: var(--vl-gap-sm);
  font-size: 0.8125rem;
  color: var(--vl-warning);
}
.vl-alert--danger {
  background: rgba(231,76,60,0.1);
  border-color: rgba(231,76,60,0.25);
  color: var(--vl-danger);
}

/* ── Bracket (basic mobile) ── */
.vl-bracket-round {
  margin-bottom: var(--vl-gap-lg);
}
.vl-bracket-round-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vl-text-muted);
  margin-bottom: var(--vl-gap-sm);
}
.vl-bracket-match {
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius-sm);
  margin-bottom: var(--vl-gap-sm);
  overflow: hidden;
}
.vl-bracket-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.875rem;
}
.vl-bracket-team + .vl-bracket-team {
  border-top: 1px solid var(--vl-border);
}
.vl-bracket-team.winner {
  background: rgba(46,204,113,0.08);
  font-weight: 600;
}
.vl-bracket-seed {
  font-size: 0.75rem;
  color: var(--vl-text-dim);
  margin-right: var(--vl-gap-sm);
}
.vl-bracket-score { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Score Entry Form ── */
.vl-score-entry {
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius-md);
  padding: var(--vl-gap-md);
}
.vl-score-entry-header {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: var(--vl-gap-sm);
  align-items: center;
  margin-bottom: var(--vl-gap-md);
  padding-bottom: var(--vl-gap-sm);
  border-bottom: 1px solid var(--vl-border);
}
.vl-score-team-label { font-size: 0.75rem; color: var(--vl-text-dim); }
.vl-score-team-name {
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vl-score-set-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: var(--vl-gap-sm);
  align-items: center;
  margin-bottom: var(--vl-gap-sm);
}
.vl-score-set-row label {
  font-size: 0.8125rem;
  color: var(--vl-text-muted);
  font-weight: 500;
}
.vl-score-input,
.vl-score-set-row input {
  width: 100%;
  padding: 10px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--vl-bg-input);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius-sm);
  color: var(--vl-text);
  outline: none;
  font-variant-numeric: tabular-nums;
}
.vl-score-input:focus,
.vl-score-set-row input:focus { border-color: var(--vl-primary); }
.vl-score-running {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--vl-gap-sm);
  padding: var(--vl-gap-md) 0 var(--vl-gap-sm);
  border-top: 1px solid var(--vl-border);
  margin-top: var(--vl-gap-sm);
}
.vl-score-running-label { font-size: 0.75rem; color: var(--vl-text-muted); text-transform: uppercase; }
.vl-score-running-num { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.vl-score-running-sep { font-size: 1.25rem; color: var(--vl-text-dim); }
.vl-score-outcome {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 1.5rem;
  padding-top: var(--vl-gap-xs);
}
.vl-score-outcome--winner { color: var(--vl-success); }
.vl-flex-1 { flex: 1; }

/* ── Live Score Card ── */
.vl-live-score-card {
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius-md);
  padding: var(--vl-gap-md);
}
.vl-live-teams-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--vl-gap-md);
  padding-bottom: var(--vl-gap-sm);
  border-bottom: 1px solid var(--vl-border);
}
.vl-live-team-name {
  flex: 1;
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vl-live-team-name.team-home { color: #1d4ed8; }
.vl-live-team-name.team-away { color: #b91c1c; }
.vl-live-swap-btn {
  background: none;
  border: 2px solid var(--vl-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vl-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.vl-live-swap-btn:hover { background: var(--vl-bg-card-hover); border-color: var(--vl-primary); }
.vl-live-swap-btn:active { background: var(--vl-primary); color: #fff; }
.vl-live-set-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.vl-live-set-label {
  width: 44px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vl-text-muted);
  text-transform: uppercase;
  flex-shrink: 0;
}
.vl-live-score-cells {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}
.vl-live-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 120px;
  gap: 4px;
}
.vl-live-score-tap {
  width: 100%;
  text-align: center;
  padding: 14px 0;
  background: var(--vl-bg-input);
  border: 2px solid var(--vl-border);
  border-radius: var(--vl-radius-sm);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.1s, border-color 0.1s;
}
.vl-live-minus-btn {
  width: 32px;
  height: 24px;
  border: 1px solid var(--vl-border);
  border-radius: 4px;
  background: var(--vl-bg-card);
  color: var(--vl-text-muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.1s, border-color 0.1s;
  padding: 0;
}
.vl-live-score-col[data-side="home"] .vl-live-minus-btn,
.vl-live-minus-btn[data-side="home"] { border-color: #93c5fd; color: #2563eb; }
.vl-live-minus-btn[data-side="home"]:active { background: #dbeafe; }
.vl-live-score-col[data-side="away"] .vl-live-minus-btn,
.vl-live-minus-btn[data-side="away"] { border-color: #fca5a5; color: #dc2626; }
.vl-live-minus-btn[data-side="away"]:active { background: #fecaca; }
.vl-live-set-row.vl-set-locked { opacity: 0.35; pointer-events: none; }
.vl-live-score-tap[data-side="home"] { background: #eff6ff; border-color: #93c5fd; }
.vl-live-score-tap[data-side="away"] { background: #fef2f2; border-color: #fca5a5; }
.vl-live-score-tap[data-side="home"]:active { background: #dbeafe; border-color: #2563eb; }
.vl-live-score-tap[data-side="away"]:active { background: #fecaca; border-color: #dc2626; }
.vl-live-score-tap[data-side="home"].vl-live-tap-flash { background: #dbeafe !important; border-color: #2563eb !important; }
.vl-live-score-tap[data-side="away"].vl-live-tap-flash { background: #fecaca !important; border-color: #dc2626 !important; }
.vl-live-score-num {
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
}
.vl-live-set-sep {
  font-size: 1.1rem;
  color: var(--vl-text-dim);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.vl-live-sets-won {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--vl-gap-sm);
  padding: var(--vl-gap-sm) 0 4px;
  border-top: 1px solid var(--vl-border);
  margin-top: var(--vl-gap-sm);
}
.vl-live-sets-label { font-size: 0.75rem; color: var(--vl-text-muted); text-transform: uppercase; font-weight: 600; }
.vl-live-sets-num { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.vl-live-sets-num.sets-home { color: #1d4ed8; }
.vl-live-sets-num.sets-away { color: #b91c1c; }
.vl-live-sets-sep { font-size: 1.25rem; color: var(--vl-text-dim); }

/* ── Standings Table ── */
.vl-standings-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vl-standings-table { width: 100%; font-variant-numeric: tabular-nums; }
.vl-standings-table th { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.vl-standings-table td { font-size: 0.8125rem; white-space: nowrap; }
.vl-standings-rank { width: 36px; text-align: center; }
.vl-standings-team { text-align: left; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.vl-standings-q {
  display: inline-block;
  width: 14px; height: 14px;
  line-height: 14px;
  text-align: center;
  font-size: 0.5625rem;
  font-weight: 700;
  background: var(--vl-success);
  color: #fff;
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: middle;
}
.vl-standings-qualified td:first-child { border-left: 3px solid var(--vl-success); }

/* ── NHL-Style Bracket ── */
.vl-bracket-container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--vl-gap-sm) 0;
  position: relative;
}
.vl-bracket-col {
  flex: 0 0 auto;
  min-width: 140px;
  display: flex;
  flex-direction: column;
}
.vl-bracket-col--pools { min-width: 130px; }
.vl-bracket-col--champion { min-width: 80px; align-items: center; justify-content: center; }
.vl-bracket-col-title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vl-text-dim);
  text-align: center;
  margin-bottom: var(--vl-gap-sm);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--vl-border);
}
.vl-bracket-col-matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  gap: var(--vl-gap-md);
}

/* Pool mini-card in bracket */
.vl-bracket-pool-card {
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius-sm);
  margin-bottom: var(--vl-gap-sm);
  overflow: hidden;
}
.vl-bracket-pool-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vl-primary-light);
  padding: 4px 8px;
  background: rgba(74,108,247,0.08);
  border-bottom: 1px solid var(--vl-border);
}
.vl-bracket-pool-team {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--vl-border);
}
.vl-bracket-pool-team:last-child { border-bottom: none; }
.vl-bracket-pool-team--q { background: rgba(46,204,113,0.06); }
.vl-bracket-pool-seed {
  min-width: 14px;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--vl-text-dim);
}
.vl-bracket-pool-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-bracket-pool-record {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--vl-text-muted);
  font-variant-numeric: tabular-nums;
}

/* NHL match card */
.vl-nhl-match {
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius-sm);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.vl-nhl-match--live { border-color: var(--vl-live); box-shadow: 0 0 8px var(--vl-live-glow); }
.vl-nhl-match--done { opacity: 0.9; }
.vl-nhl-live-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: var(--vl-live);
  border-radius: 50%;
  animation: vl-pulse 1.5s infinite;
}
@keyframes vl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.vl-nhl-team {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  font-size: 0.75rem;
  gap: 4px;
  transition: background 0.15s;
}
.vl-nhl-team + .vl-nhl-team { border-top: 1px solid var(--vl-border); }
.vl-nhl-team--winner {
  background: rgba(46,204,113,0.1);
  font-weight: 700;
}
.vl-nhl-team--loser {
  opacity: 0.5;
}
.vl-nhl-seed {
  min-width: 14px;
  text-align: center;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--vl-text-dim);
  background: rgba(0,0,0,0.03);
  border-radius: 2px;
  padding: 1px 2px;
}
.vl-nhl-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vl-nhl-score {
  min-width: 16px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
}
.vl-nhl-label {
  font-size: 0.5625rem;
  color: var(--vl-text-dim);
  text-align: center;
  padding: 1px 4px 2px;
  background: rgba(0,0,0,0.02);
  border-top: 1px solid var(--vl-border);
}
.vl-nhl-champion {
  text-align: center;
  padding: var(--vl-gap-md);
}
.vl-nhl-champion-trophy { font-size: 2rem; margin-bottom: var(--vl-gap-xs); }
.vl-nhl-champion-name {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--vl-success);
  text-transform: uppercase;
}

/* Bracket SVG overlay */
.vl-bracket-svg { position: absolute; top: 0; left: 0; pointer-events: none; }

/* ── Schedule ── */
.vl-schedule-match {
  display: flex;
  gap: var(--vl-gap-sm);
  background: var(--vl-bg-card);
  border: 1px solid var(--vl-border);
  border-radius: var(--vl-radius-sm);
  margin-bottom: var(--vl-gap-xs, 6px);
  overflow: hidden;
}
.vl-schedule-match-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 6px;
  background: rgba(74,108,247,0.08);
  border-right: 2px solid var(--vl-primary);
}
.vl-schedule-time-start {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--vl-primary-light);
}
.vl-schedule-time-end {
  font-size: 0.6875rem;
  color: var(--vl-text-dim);
  font-variant-numeric: tabular-nums;
}
.vl-schedule-match-body {
  flex: 1;
  padding: 8px 10px;
  min-width: 0;
}
.vl-schedule-match-header {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  margin-bottom: 4px;
}
.vl-schedule-match-teams {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.vl-schedule-team {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.vl-schedule-vs {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--vl-text-dim);
  text-transform: uppercase;
}
.vl-form-inline {
  display: flex;
  flex-direction: column;
  gap: var(--vl-gap-md);
}
.vl-form-actions {
  display: flex;
  gap: var(--vl-gap-sm);
  flex-wrap: wrap;
}

/* ── Utilities ── */
.vl-flex { display: flex; }
.vl-flex-center { display: flex; align-items: center; }
.vl-flex-between { display: flex; align-items: center; justify-content: space-between; }
.vl-gap-sm { gap: var(--vl-gap-sm); }
.vl-gap-md { gap: var(--vl-gap-md); }
.vl-mt-sm { margin-top: var(--vl-gap-sm); }
.vl-mt-md { margin-top: var(--vl-gap-md); }
.vl-mt-lg { margin-top: var(--vl-gap-lg); }
.vl-mb-sm { margin-bottom: var(--vl-gap-sm); }
.vl-mb-md { margin-bottom: var(--vl-gap-md); }
.vl-mb-lg { margin-bottom: var(--vl-gap-lg); }
.vl-text-center { text-align: center; }
.vl-text-right { text-align: right; }
.vl-text-muted { color: var(--vl-text-muted); }
.vl-text-success { color: var(--vl-success); }
.vl-text-danger { color: var(--vl-danger); }
.vl-text-warning { color: var(--vl-warning); }
.vl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.vl-hide { display: none !important; }

/* ── Responsive ── */
@media (min-width: 768px) {
  :root {
    --vl-max-width: 600px;
  }
}
