/* vc-theme.css - Vice Captain shared theme */
:root {
  color-scheme: dark;
  --vc-bg: #0f172a;
  --vc-surface: #1e293b;
  --vc-surface2: #273449;
  --vc-surface3: #334155;
  --vc-border: #334155;
  --vc-border-soft: #475569;
  --vc-text: #f7f7f7;
  --vc-text-sub: #b0b4e0;
  --vc-text-soft: #c9ccf0;
  --vc-accent: #dbb580;
  --vc-accent-dim: #d4a872;
  --vc-gold: #fcc61d;
  --vc-light: #f7f7f7;
  --vc-green: #5fd97a;
  --vc-amber: #fcc61d;
  --vc-red: #f85149;
  --vc-badge-bg: #334155;
  --vc-shadow: 0 18px 44px rgba(5, 8, 38, 0.26);
  --vc-radius-lg: 22px;
  --vc-radius-md: 16px;
  --vc-radius-sm: 12px;
  --vc-page-radial: rgba(252, 198, 29, 0.12);
  --vc-page-grad-start: #1e293b;
  --vc-page-grad-mid: #0f172a;
  --vc-page-grad-end: #020617;
  --vc-sidebar-bg: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  --vc-sidebar-border: rgba(255, 255, 255, 0.08);
  --vc-nav-hover-bg: rgba(255, 255, 255, 0.035);
  --vc-nav-active-bg: rgba(219, 181, 128, 0.12);
  --vc-card-bg: linear-gradient(180deg, rgba(39, 52, 73, 0.96), rgba(15, 23, 42, 0.96));
  --vc-card-border: rgba(255, 255, 255, 0.07);
  --vc-hero-bg: linear-gradient(145deg, rgba(252, 198, 29, 0.12), rgba(219, 181, 128, 0.04) 28%, rgba(30, 41, 59, 0.98) 74%);
  --vc-hero-border: rgba(252, 198, 29, 0.2);
  --vc-pill-bg: rgba(255, 255, 255, 0.05);
  --vc-pill-border: rgba(255, 255, 255, 0.06);
  --vc-chip-bg: rgba(255, 255, 255, 0.06);
  --vc-chip-border: rgba(255, 255, 255, 0.08);
  --vc-table-wrap-bg: linear-gradient(180deg, rgba(39, 52, 73, 0.98), rgba(15, 23, 42, 0.98));
  --vc-table-wrap-border: rgba(255, 255, 255, 0.07);
  --vc-table-head-bg: rgba(255, 255, 255, 0.04);
  --vc-table-head-border: rgba(255, 255, 255, 0.08);
  --vc-table-row-border: rgba(255, 255, 255, 0.06);
  --vc-table-row-hover: rgba(255, 255, 255, 0.035);
  --vc-filters-bg: linear-gradient(180deg, rgba(39, 52, 73, 0.96), rgba(15, 23, 42, 0.96));
  --vc-filters-border: rgba(255, 255, 255, 0.07);
  --vc-input-bg: rgba(15, 23, 42, 0.56);
  --vc-input-border: rgba(255, 255, 255, 0.08);
  --vc-updated-bg: rgba(219, 181, 128, 0.1);
  --vc-updated-border: rgba(219, 181, 128, 0.2);
  --vc-updated-stale-bg: rgba(210, 153, 34, 0.15);
  --vc-updated-stale-border: rgba(210, 153, 34, 0.3);
  --vc-status-info-bg: var(--vc-surface2);
  --vc-status-info-border: transparent;
  --vc-gw-bar-bg: linear-gradient(90deg, rgba(252, 198, 29, 0.1), rgba(30, 41, 59, 0.98) 18%);
  --vc-gw-bar-border: rgba(252, 198, 29, 0.18);
  --vc-overlay-bg: rgba(4, 6, 22, 0.48);
  --vc-mobile-nav-bg: rgba(15, 23, 42, 0.92);
  --vc-mobile-nav-border: rgba(255, 255, 255, 0.08);
  --vc-mobile-btn-bg: rgba(255, 255, 255, 0.04);
  --vc-mobile-btn-border: rgba(255, 255, 255, 0.08);
  --vc-bottom-bar-bg: rgba(15, 23, 42, 0.9);
  --vc-bottom-bar-border: rgba(255, 255, 255, 0.08);
  --vc-theme-toggle-bg: rgba(255, 255, 255, 0.05);
  --vc-theme-toggle-border: rgba(255, 255, 255, 0.12);
  --vc-theme-toggle-hover: rgba(255, 255, 255, 0.09);
  --vc-theme-toggle-text: #f8fafc;
  --vc-theme-toggle-sub: #b0b4e0;
}

html[data-vc-theme="light"] {
  color-scheme: dark;
  --vc-bg: #0f172a;
  --vc-surface: #f8fafc;
  --vc-surface2: #eef4fb;
  --vc-surface3: #dde7f5;
  --vc-border: #d6e1ef;
  --vc-border-soft: #c5d3e6;
  --vc-text: #10213a;
  --vc-text-sub: #60728c;
  --vc-text-soft: #445672;
  --vc-accent: #3b82f6;
  --vc-accent-dim: #60a5fa;
  --vc-gold: #3b82f6;
  --vc-light: #f7f7f7;
  --vc-green: #15803d;
  --vc-amber: #b45309;
  --vc-red: #b91c1c;
  --vc-badge-bg: #edf4fb;
  --vc-shadow: 0 16px 34px rgba(9, 18, 48, 0.14);
  --vc-page-radial: rgba(252, 198, 29, 0.12);
  --vc-page-grad-start: #1e293b;
  --vc-page-grad-mid: #0f172a;
  --vc-page-grad-end: #020617;
  --vc-sidebar-bg: linear-gradient(180deg, rgba(51, 65, 85, 0.96), rgba(30, 41, 59, 0.96));
  --vc-sidebar-border: rgba(148, 163, 184, 0.18);
  --vc-nav-hover-bg: rgba(148, 163, 184, 0.14);
  --vc-nav-active-bg: rgba(219, 181, 128, 0.16);
  --vc-card-bg: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(243, 247, 252, 0.98));
  --vc-card-border: rgba(197, 211, 230, 0.9);
  --vc-hero-bg: linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(147, 197, 253, 0.08) 35%, rgba(248, 250, 252, 0.98) 78%);
  --vc-hero-border: rgba(37, 99, 235, 0.16);
  --vc-pill-bg: rgba(226, 232, 240, 0.86);
  --vc-pill-border: rgba(197, 211, 230, 0.9);
  --vc-chip-bg: rgba(226, 232, 240, 0.8);
  --vc-chip-border: rgba(197, 211, 230, 0.85);
  --vc-table-wrap-bg: linear-gradient(180deg, rgba(251, 253, 255, 0.99), rgba(244, 248, 252, 0.99));
  --vc-table-wrap-border: rgba(197, 211, 230, 0.9);
  --vc-table-head-bg: rgba(238, 244, 251, 0.96);
  --vc-table-head-border: rgba(214, 225, 239, 1);
  --vc-table-row-border: rgba(214, 225, 239, 0.92);
  --vc-table-row-hover: rgba(37, 99, 235, 0.05);
  --vc-filters-bg: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(243, 247, 252, 0.98));
  --vc-filters-border: rgba(197, 211, 230, 0.9);
  --vc-input-bg: rgba(255, 255, 255, 0.96);
  --vc-input-border: rgba(197, 211, 230, 0.92);
  --vc-updated-bg: rgba(248, 250, 252, 0.98);
  --vc-updated-border: rgba(197, 211, 230, 0.92);
  --vc-updated-stale-bg: rgba(210, 153, 34, 0.15);
  --vc-updated-stale-border: rgba(210, 153, 34, 0.3);
  --vc-status-info-bg: rgba(238, 244, 251, 0.96);
  --vc-status-info-border: rgba(197, 211, 230, 0.9);
  --vc-gw-bar-bg: linear-gradient(90deg, rgba(252, 198, 29, 0.1), rgba(51, 65, 85, 0.96) 18%);
  --vc-gw-bar-border: rgba(252, 198, 29, 0.18);
  --vc-overlay-bg: rgba(4, 6, 22, 0.48);
  --vc-mobile-nav-bg: rgba(51, 65, 85, 0.94);
  --vc-mobile-nav-border: rgba(148, 163, 184, 0.22);
  --vc-mobile-btn-bg: rgba(148, 163, 184, 0.12);
  --vc-mobile-btn-border: rgba(148, 163, 184, 0.18);
  --vc-bottom-bar-bg: rgba(51, 65, 85, 0.92);
  --vc-bottom-bar-border: rgba(148, 163, 184, 0.18);
  --vc-theme-toggle-bg: rgba(241, 245, 249, 0.92);
  --vc-theme-toggle-border: rgba(197, 211, 230, 0.92);
  --vc-theme-toggle-hover: rgba(226, 232, 240, 0.96);
  --vc-theme-toggle-text: #10213a;
  --vc-theme-toggle-sub: #60728c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at top right, var(--vc-page-radial), transparent 22%),
    linear-gradient(180deg, var(--vc-page-grad-start) 0%, var(--vc-page-grad-mid) 28%, var(--vc-page-grad-end) 100%);
  color: var(--vc-text);
  min-height: 100vh;
  direction: rtl;
}

#vc-shell {
  display: flex;
  min-height: 100vh;
}

.vc-sidebar {
  width: 330px;
  background: var(--vc-sidebar-bg);
  border-left: 1px solid var(--vc-sidebar-border);
  padding: 24px 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: hidden;
}

.vc-sidebar .brand {
  padding: 0 18px 16px;
  border-bottom: 1px solid var(--vc-sidebar-border);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vc-sidebar .brand .brand-logo-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0;
  border-right: 0;
  background: transparent;
}

.vc-sidebar .brand .brand-logo {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.22));
}

.vc-sidebar .brand .brand-league-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--vc-accent);
  text-align: center;
  width: 100%;
  line-height: 1.15;
}

.vc-sidebar .brand .brand-league-logo {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  object-fit: contain;
  flex-shrink: 0;
}

/* League switcher (sidebar header dropdown). Mutually exclusive with the
   account menu via the shared shell-menu coordinator in vc-shell.js. */
.vc-league-switch-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.vc-league-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 6px 10px;
  color: var(--vc-accent);
  font-size: 0.98rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.15;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.vc-league-switch:hover,
.vc-league-switch:focus-visible {
  background: rgba(243, 201, 137, 0.08);
  border-color: rgba(243, 201, 137, 0.18);
  outline: none;
}
.vc-league-switch .brand-league-logo {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
  border-radius: 14px;
  flex-shrink: 0;
}
.vc-league-caret {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.vc-league-switch[aria-expanded="true"] .vc-league-caret {
  transform: rotate(180deg);
}
.vc-league-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--vc-surface, #1a1f5a);
  border: 1px solid var(--vc-border, rgba(255,255,255,0.08));
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  z-index: 1200;
}
.vc-league-menu[hidden] {
  display: none;
}
.vc-league-menu li {
  margin: 0;
  padding: 0;
}
.vc-league-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--vc-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
.vc-league-menu-item:hover,
.vc-league-menu-item:focus-visible {
  background: rgba(243, 201, 137, 0.10);
  outline: none;
}
.vc-league-menu-item.is-active {
  color: var(--vc-accent);
}
.vc-league-menu-item.is-active::before {
  content: "●";
  font-size: 0.7rem;
  margin-inline-end: 2px;
  color: var(--vc-accent);
}
.vc-league-menu-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.vc-sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  color: var(--vc-text-sub);
  text-decoration: none;
  font-size: 0.94rem;
  transition: background 0.15s, color 0.15s;
  border-right: 3px solid transparent;
  white-space: nowrap;
}

.vc-sidebar .nav-icon {
  flex: 0 0 20px;
  text-align: center;
}

.vc-sidebar .nav-label {
  flex: 1;
  min-width: 0;
}

.vc-sidebar a:hover {
  background: var(--vc-nav-hover-bg);
  color: var(--vc-text);
}

.vc-sidebar a.active {
  color: var(--vc-accent);
  background: var(--vc-nav-active-bg);
  border-right-color: var(--vc-accent);
  font-weight: 600;
}

.vc-main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 40px;
}

.vc-page-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vc-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.vc-page-subtitle {
  font-size: 1rem;
  color: var(--vc-text-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}

.vc-card {
  background: var(--vc-card-bg);
  border: 1px solid var(--vc-card-border);
  border-radius: var(--vc-radius-md);
  box-shadow: var(--vc-shadow);
  padding: 24px;
  text-align: center;
}

.vc-surface-card {
  background: var(--vc-card-bg);
  border: 1px solid var(--vc-card-border);
  border-radius: var(--vc-radius-md);
  box-shadow: var(--vc-shadow);
}

.vc-hero-card {
  background: var(--vc-hero-bg);
  border: 1px solid var(--vc-hero-border);
  border-radius: var(--vc-radius-lg);
  box-shadow: 0 22px 50px rgba(8, 10, 45, 0.32);
}

.vc-section {
  margin-bottom: 26px;
}

.vc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vc-section-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--vc-light);
}

.vc-section-note {
  font-size: 0.9rem;
  color: var(--vc-text-sub);
}

.vc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

a.vc-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

a.vc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(252, 198, 29, 0.28);
  box-shadow: 0 8px 30px rgba(219, 181, 128, 0.25);
}

.vc-card .icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(252, 198, 29, 0.22) 0%, rgba(219, 181, 128, 0.16) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}

.vc-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--vc-gold);
}

.vc-card p {
  font-size: 0.95rem;
  color: var(--vc-text-sub);
  line-height: 1.6;
}

.vc-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.vc-stat-pill {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--vc-pill-bg);
  border: 1px solid var(--vc-pill-border);
}

.vc-stat-pill strong {
  display: block;
  font-size: 1.2rem;
  color: var(--vc-light);
  margin-bottom: 3px;
}

.vc-stat-pill span {
  font-size: 0.84rem;
  color: var(--vc-text-sub);
}

.vc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--vc-chip-bg);
  border: 1px solid var(--vc-chip-border);
  color: var(--vc-text-soft);
}

.vc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--vc-table-wrap-border);
  border-radius: var(--vc-radius-md);
  background: var(--vc-table-wrap-bg);
  box-shadow: var(--vc-shadow);
}

.vc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  white-space: nowrap;
}

.vc-table thead th {
  background: var(--vc-table-head-bg);
  color: var(--vc-text-soft);
  padding: 13px 12px;
  text-align: right;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--vc-table-head-border);
  position: sticky;
  top: 0;
  z-index: 2;
  transition: color 0.15s;
}

.vc-table thead th:hover {
  color: var(--vc-accent);
}

.vc-table thead th.sorted-asc::after {
  content: " ▲";
  color: var(--vc-accent);
}

.vc-table thead th.sorted-desc::after {
  content: " ▼";
  color: var(--vc-accent);
}

.vc-table tbody tr {
  border-bottom: 1px solid var(--vc-table-row-border);
  transition: background 0.1s;
}

.vc-table tbody tr:hover {
  background: var(--vc-table-row-hover);
}

.vc-table td {
  padding: 11px 12px;
  text-align: right;
  vertical-align: middle;
}

.vc-badge {
  display: inline-block;
  font-size: 0.72rem;
  border-radius: 4px;
  padding: 3px 6px;
  margin-right: 3px;
  vertical-align: middle;
  background: var(--vc-badge-bg);
  color: var(--vc-text-sub);
}

.vc-badge.suspended {
  background: #3d1a1a;
  color: #ef9a9a;
}

.vc-badge.doubtful {
  background: #3d2e0a;
  color: #ffd54f;
}

.vc-badge.pen {
  background: #1a2d3d;
  color: #4fc3f7;
}

.pos-gk {
  color: #ffcc02;
}

.pos-def {
  color: #4fc3f7;
}

.pos-mid {
  color: #81c784;
}

.pos-fwd {
  color: #ef9a9a;
}

.vc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  background: var(--vc-filters-bg);
  border: 1px solid var(--vc-filters-border);
  border-radius: var(--vc-radius-md);
  box-shadow: var(--vc-shadow);
  padding: 16px 18px;
}

.vc-filters label {
  font-size: 0.9rem;
  color: var(--vc-text-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}

.vc-filters select,
.vc-filters input[type="number"],
.vc-filters input[type="text"] {
  background: var(--vc-input-bg);
  border: 1px solid var(--vc-input-border);
  border-radius: 10px;
  color: var(--vc-text);
  font-size: 0.98rem;
  padding: 10px 12px;
}

.vc-filters input[type="checkbox"] {
  accent-color: var(--vc-accent);
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.vc-meta {
  font-size: 0.9rem;
  color: var(--vc-text-sub);
  margin-right: auto;
}

.vc-updated-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.vc-updated-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--vc-updated-bg);
  color: var(--vc-accent);
  border: 1px solid var(--vc-updated-border);
}

.vc-updated-badge.stale {
  background: var(--vc-updated-stale-bg);
  color: var(--vc-amber);
  border-color: var(--vc-updated-stale-border);
}

.vc-updated-text {
  font-size: 0.85rem;
  color: var(--vc-text-sub);
}

.vc-status {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  display: none;
}

.vc-status.info {
  background: var(--vc-status-info-bg);
  color: var(--vc-text-sub);
  border: 1px solid var(--vc-status-info-border);
  display: block;
}

.vc-status.error {
  background: #3a1f1f;
  color: #ef9a9a;
  border: 1px solid #b71c1c;
  display: block;
}

.vc-status.success {
  background: #1a3a1f;
  color: #a5d6a7;
  border: 1px solid #2e7d32;
  display: block;
}

.vc-gw-bar {
  background: var(--vc-gw-bar-bg);
  border: 1px solid var(--vc-gw-bar-border);
  border-radius: var(--vc-radius-md);
  padding: 12px 18px;
  margin-bottom: 22px;
  font-size: 0.96rem;
  color: var(--vc-text-soft);
  text-align: center;
  font-weight: 600;
  box-shadow: var(--vc-shadow);
}

.vc-gw-countdown {
  color: var(--vc-accent);
  font-weight: 600;
}

.vc-gw-live {
  color: var(--vc-red);
  font-weight: 600;
}

.vc-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--vc-border);
  border-top-color: var(--vc-accent);
  border-radius: 50%;
  animation: vc-spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes vc-spin {
  to {
    transform: rotate(360deg);
  }
}

.vc-empty {
  text-align: center;
  padding: 48px;
  color: var(--vc-text-sub);
  font-size: 1rem;
}

html[data-vc-theme="light"] .vc-page-title,
html[data-vc-theme="light"] .hero-copy .vc-page-title,
html[data-vc-theme="light"] .page-header h1,
html[data-vc-theme="light"] .vc-section-title {
  color: #f8fafc;
}

html[data-vc-theme="light"] .vc-page-subtitle,
html[data-vc-theme="light"] .hero-copy .vc-page-subtitle,
html[data-vc-theme="light"] .page-header p,
html[data-vc-theme="light"] .vc-section-note,
html[data-vc-theme="light"] .section-title,
html[data-vc-theme="light"] .vc-gw-bar {
  color: #d7e3f4;
}

html[data-vc-theme="light"] .vc-gw-countdown {
  color: #f5d08c;
}

html[data-vc-theme="light"] .vc-sidebar .brand .brand-league-name,
html[data-vc-theme="light"] .vc-league-switch,
html[data-vc-theme="light"] .vc-league-switch-label,
html[data-vc-theme="light"] .vc-mobile-nav .brand-mobile,
html[data-vc-theme="light"] .vc-mobile-nav .vc-league-switch,
html[data-vc-theme="light"] .vc-mobile-nav .vc-league-switch-mobile,
html[data-vc-theme="light"] .vc-btab.active,
html[data-vc-theme="light"] .vc-sidebar a.active {
  color: #dbb580;
}

html[data-vc-theme="light"] .vc-league-menu-item,
html[data-vc-theme="light"] .vc-league-menu-item.is-active,
html[data-vc-theme="light"] .vc-league-menu-item.is-active::before {
  color: #dbb580;
}

html[data-vc-theme="light"] .vc-sidebar a,
html[data-vc-theme="light"] .vc-btab {
  color: #d7e3f4;
}

html[data-vc-theme="light"] .vc-sidebar a.active {
  border-right-color: #dbb580;
}

html[data-vc-theme="light"] .vc-mobile-nav .brand-mobile-wordmark,
html[data-vc-theme="light"] .vc-sidebar a:hover,
html[data-vc-theme="light"] .vc-btab:hover,
html[data-vc-theme="light"] .vc-mobile-nav .menu-btn {
  color: #f8fafc;
}

html[data-vc-theme="light"] .vc-card .icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(125, 211, 252, 0.2) 100%);
}

html[data-vc-theme="light"] .vc-card h3,
html[data-vc-theme="light"] .contact-email,
html[data-vc-theme="light"] .contact-handle,
html[data-vc-theme="light"] .col-header,
html[data-vc-theme="light"] .playoff-placeholder strong,
html[data-vc-theme="light"] .vc-updated-badge {
  color: var(--vc-accent);
}

html[data-vc-theme="light"] .vc-updated-badge {
  background: var(--vc-updated-bg);
  border-color: var(--vc-updated-border);
  box-shadow: 0 10px 22px rgba(9, 18, 48, 0.08);
}

html[data-vc-theme="light"] .mode-toggle {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(197, 211, 230, 0.92);
  box-shadow: 0 12px 28px rgba(9, 18, 48, 0.12);
}

html[data-vc-theme="light"] .mode-toggle-btn.active {
  background: rgba(219, 181, 128, 0.15);
  border-color: #dbb580;
  color: #dbb580;
  box-shadow: 0 2px 8px rgba(219, 181, 128, 0.12);
}

html[data-vc-theme="light"] .mode-toggle-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
}

html[data-vc-theme="light"] .widget-card {
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(243, 247, 252, 0.98));
  border-color: rgba(197, 211, 230, 0.92);
  box-shadow: 0 18px 36px rgba(9, 18, 48, 0.12);
}

html[data-vc-theme="light"] .widget-card-title {
  color: #1e3a5f;
}

html[data-vc-theme="light"] .widget-card-badge {
  background: #edf4fb;
  color: #3b82f6;
  border-color: rgba(197, 211, 230, 0.92);
}

html[data-vc-theme="light"] .widget-row {
  border-bottom-color: rgba(214, 225, 239, 0.92);
}

html[data-vc-theme="light"] .players-tab.active,
html[data-vc-theme="light"] .vc-table tbody tr.selected-row,
html[data-vc-theme="light"] .ta-finder-result.is-selected,
html[data-vc-theme="light"] .xmin-pill.active {
  background: rgba(219, 181, 128, 0.12);
  border-color: #dbb580;
  color: #dbb580;
}

html[data-vc-theme="light"] .players-tab.active {
  color: #dbb580;
}

html[data-vc-theme="light"] .filter-tab.active {
  background: rgba(219, 181, 128, 0.18);
  border-color: #dbb580;
  color: #dbb580;
}

html[data-vc-theme="light"] .round-tab.active {
  background: linear-gradient(135deg, var(--vc-surface3), var(--vc-surface2));
  border-color: #dbb580;
  color: #dbb580;
}

html[data-vc-theme="light"] .round-tab.active .tab-label {
  color: rgba(219, 181, 128, 0.82);
}

html[data-vc-theme="light"] .ta-tab-btn.active {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  border-color: #3b82f6;
  color: #f8fafc;
}

html[data-vc-theme="light"] .ta-tab-btn:not(.active):hover,
html[data-vc-theme="light"] .fdr-btn-ghost:hover,
html[data-vc-theme="light"] .fdr-quick-link:hover,
html[data-vc-theme="light"] .vc-pager-btn:hover:not(:disabled),
html[data-vc-theme="light"] .close-btn:hover,
html[data-vc-theme="light"] #breakdownModal .close-btn:hover,
html[data-vc-theme="light"] #taXptsModal .close-btn:hover {
  color: #f8fafc;
}

html[data-vc-theme="light"] .page-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-vc-theme="light"] .ta-tab-sw {
  background: var(--vc-bg);
}

@media (max-width: 768px) {
  body {
    padding-top: calc(58px + 58px + env(safe-area-inset-top, 0px));
  }

  .vc-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    border: 0;
    background: var(--vc-overlay-bg);
    z-index: 1250;
    cursor: pointer;
  }

  body.vc-sidebar-open .vc-sidebar-backdrop {
    display: block;
  }

  .vc-sidebar {
    display: none;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(330px, 86vw);
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-top: calc(env(safe-area-inset-top, 0px) + 20px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    z-index: 1300 !important;
  }

  .vc-sidebar-close-row {
    display: flex;
    justify-content: flex-start;
    padding: 0 16px 8px;
  }

  .vc-sidebar-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--vc-theme-toggle-border);
    border-radius: 12px;
    background: var(--vc-theme-toggle-bg);
    color: var(--vc-theme-toggle-text);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
  }

  .vc-main {
    padding: 18px 14px 32px;
  }

  .vc-mobile-nav {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    z-index: 1100;
    backdrop-filter: blur(18px);
    background: var(--vc-mobile-nav-bg);
    border-bottom: 1px solid var(--vc-mobile-nav-border);
    padding: 12px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-direction: row-reverse;
  }

  .vc-mobile-nav .brand-mobile-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    position: relative;
  }

  .vc-mobile-nav .brand-mobile {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--vc-accent);
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    min-width: 0;
  }

  .vc-mobile-nav .brand-mobile-logo {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    object-fit: contain;
    flex-shrink: 0;
  }

  .vc-mobile-nav .brand-mobile-wordmark {
    color: var(--vc-light);
    font-size: 0.96rem;
    line-height: 1.1;
  }

  /* Mobile-specific league switcher placement. The button sits as a sibling
     of brand-mobile inside .brand-mobile-row; the menu absolute-positions
     below the row, RTL-aware via inset-inline-start. */
  .vc-mobile-nav .vc-league-switch-mobile {
    padding: 4px 8px;
    font-size: 0.78rem;
    font-weight: 600;
  }
  .vc-mobile-nav .vc-league-switch-mobile .brand-league-logo {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px;
  }
  .vc-mobile-nav .vc-league-menu-mobile {
    inset-inline-start: 0;
    left: 0;
    right: auto;
    transform: none;
    top: calc(100% + 6px);
    min-width: 160px;
    z-index: 1200;
  }
  .vc-mobile-nav .vc-league-menu-mobile .vc-league-menu-item {
    font-size: 0.88rem;
    padding: 8px 10px;
  }

  .vc-mobile-nav .menu-btn {
    background: var(--vc-mobile-btn-bg);
    border: 1px solid var(--vc-mobile-btn-border);
    border-radius: 12px;
    color: var(--vc-text);
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .vc-card-grid {
    grid-template-columns: 1fr;
  }

  .vc-page-title {
    font-size: 1.52rem;
    margin-bottom: 10px;
  }

  .vc-page-subtitle {
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .vc-card,
  .vc-filters,
  .vc-table-wrap,
  .vc-gw-bar {
    border-radius: 18px;
  }

  .vc-card {
    padding: 18px;
  }

  .vc-section {
    margin-bottom: 22px;
  }

  .vc-section-title {
    font-size: 1rem;
  }

  .vc-chip {
    font-size: 0.8rem;
  }

  .vc-filters {
    padding: 14px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .vc-filters label {
    display: grid;
    gap: 6px;
    align-items: start;
  }

  .vc-filters select,
  .vc-filters input[type="number"],
  .vc-filters input[type="text"] {
    width: 100%;
  }

  .vc-meta {
    margin-right: 0;
  }

  .vc-table {
    font-size: 0.9rem;
  }

  .vc-table thead th,
  .vc-table td {
    padding: 12px 10px;
  }

  .vc-updated-row {
    align-items: flex-start;
  }
}

@media (min-width: 769px) {
  .vc-mobile-nav {
    display: none !important;
  }

  .vc-sidebar-backdrop {
    display: none !important;
  }

  .vc-sidebar-close-row {
    display: none !important;
  }

  .vc-bottom-bar {
    display: none !important;
  }
}

.vc-bottom-bar {
  display: none;
  position: fixed !important;
  top: calc(58px + env(safe-area-inset-top, 0px) + 8px) !important;
  right: 14px !important;
  left: 14px !important;
  bottom: auto !important;
  margin: 0;
  direction: ltr;
  background: var(--vc-bottom-bar-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--vc-bottom-bar-border);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(5, 8, 38, 0.24);
  z-index: 998;
  justify-content: space-around;
  padding: 8px 8px 10px;
}

@media (max-width: 768px) {
  .vc-bottom-bar {
    display: flex !important;
  }
}

.vc-theme-toggle-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.vc-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--vc-theme-toggle-border);
  background: var(--vc-theme-toggle-bg);
  color: var(--vc-theme-toggle-text);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.vc-theme-toggle:hover {
  background: var(--vc-theme-toggle-hover);
}

.vc-theme-toggle:active {
  transform: translateY(1px);
}

.vc-theme-toggle-icon {
  font-size: 0.88rem;
  line-height: 1;
}

.vc-theme-toggle-label {
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.vc-theme-toggle-mobile {
  min-width: 44px;
  justify-content: center;
  padding: 10px;
}

.vc-theme-toggle-mobile .vc-theme-toggle-label {
  display: none;
}

/* --- Account badge (desktop sidebar + mobile header) -------------- */
.vc-account-slot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--vc-sidebar-border);
  display: flex;
  justify-content: center;
}

.vc-account-slot:empty {
  display: none;
}

.vc-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--vc-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
}

.vc-account-btn:hover {
  filter: brightness(1.08);
}

.vc-account-btn:active {
  transform: translateY(1px);
}

.vc-account-btn-icon {
  font-size: 0.92rem;
  line-height: 1;
}

.vc-account-user {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.vc-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--vc-theme-toggle-border);
  background: var(--vc-theme-toggle-bg);
  color: var(--vc-theme-toggle-text);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  max-width: 100%;
  transition: background 0.15s;
}

.vc-account-trigger:hover {
  background: var(--vc-theme-toggle-hover);
}

.vc-account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--vc-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  line-height: 1;
  text-transform: uppercase;
}

.vc-account-email {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
}

.vc-account-caret {
  font-size: 0.68rem;
  opacity: 0.7;
  line-height: 1;
}

.vc-account-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--vc-surface);
  border: 1px solid var(--vc-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(10, 16, 40, 0.28);
  padding: 6px;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vc-account-menu[hidden] {
  display: none;
}

/* Higher specificity than .vc-sidebar a and its light-theme override, so
   our menu items read their color from --vc-text and flip correctly. */
.vc-sidebar .vc-account-menu .vc-account-menu-item,
.vc-sidebar a.vc-account-menu-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  text-align: right;
  text-decoration: none;
  color: var(--vc-text);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.12s;
}

.vc-sidebar .vc-account-menu .vc-account-menu-item:hover,
.vc-sidebar a.vc-account-menu-item:hover,
.vc-sidebar .vc-account-menu .vc-account-menu-item:focus-visible {
  background: var(--vc-nav-hover-bg);
  color: var(--vc-text);
}

.vc-sidebar .vc-account-menu .vc-account-logout,
.vc-sidebar a.vc-account-logout {
  color: #e11d48;
}

.vc-sidebar .vc-account-menu .vc-account-logout:hover {
  color: #e11d48;
}

.vc-account-menu-error {
  padding: 6px 12px;
  font-size: 0.78rem;
  color: #e11d48;
}

.vc-account-menu-error[hidden] {
  display: none;
}

.vc-account-mobile {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vc-theme-toggle-border);
  background: var(--vc-theme-toggle-bg);
  border-radius: 12px;
  cursor: pointer;
  color: var(--vc-theme-toggle-text);
}

.vc-account-mobile:hover {
  background: var(--vc-theme-toggle-hover);
}

.vc-account-mobile .vc-account-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.86rem;
}

.vc-account-mobile-icon {
  font-size: 1.12rem;
  line-height: 1;
}

.vc-btab {
  display: flex;
  flex-direction: column;
  align-items: center;
  direction: rtl;
  text-decoration: none;
  color: var(--vc-text-sub);
  font-size: 0.69rem;
  padding: 10px 2px 2px;
  flex: 1;
  transition: color 0.15s;
  min-width: 0;
}

.vc-btab.active {
  color: var(--vc-accent);
}

.vc-btab:hover {
  color: var(--vc-text);
}

.vc-btab-icon {
  font-size: 1.18rem;
  line-height: 1;
  margin-bottom: 4px;
}

.vc-btab-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
