:root {
  color-scheme: light dark;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --background: #f8fafc;
  --foreground: #0f172a;
  --muted: #475569;
  --table-border: #e2e8f0;
  --accent: #1d4ed8;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --card-background: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --hero-gradient: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.85) 70%, rgba(226, 232, 240, 0.85) 100%);
  --subheader-bg: rgba(226, 232, 240, 0.9);
  --subheader-border: rgba(148, 163, 184, 0.4);
  --subheader-link-color: var(--accent);
  --subheader-link-hover-color: #0f172a;
  --subheader-link-border: rgba(29, 78, 216, 0.35);
  --subheader-link-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.9));
  --subheader-link-hover-bg: linear-gradient(135deg, rgba(226, 232, 240, 1), rgba(255, 255, 255, 1));
  --subheader-link-hover-shadow: 0 8px 18px rgba(148, 163, 184, 0.3);
  --footer-bg: #f1f5f9;
  --footer-border: var(--table-border);
  --footer-heading: #0f172a;
  --footer-link-hover: var(--accent);
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0b1220;
  --card-background: #111c35;
  --foreground: #e5e7eb;
  --table-border: #1f2937;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.2);
  --shadow: 0 12px 32px rgba(8, 47, 73, 0.4);
  --hero-gradient: linear-gradient(180deg, rgba(11, 17, 32, 0.82) 0%, rgba(5, 9, 16, 0.9) 60%, rgba(5, 9, 16, 0.95) 100%);
  --subheader-bg: rgba(15, 23, 42, 0.9);
  --subheader-border: rgba(148, 163, 184, 0.2);
  --subheader-link-color: #e2e8f0;
  --subheader-link-hover-color: #fff;
  --subheader-link-border: rgba(59, 130, 246, 0.4);
  --subheader-link-bg: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(14, 165, 233, 0.25));
  --subheader-link-hover-bg: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(14, 165, 233, 0.5));
  --subheader-link-hover-shadow: 0 8px 18px rgba(14, 165, 233, 0.35);
  --footer-bg: rgba(15, 23, 42, 0.75);
  --footer-border: rgba(100, 116, 139, 0.3);
  --footer-heading: #e2e8f0;
  --footer-link-hover: #fff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --background: #0b1220;
    --card-background: #111c35;
    --foreground: #e5e7eb;
    --table-border: #1f2937;
    --muted: #94a3b8;
    --accent: #60a5fa;
    --accent-soft: rgba(59, 130, 246, 0.2);
    --shadow: 0 12px 32px rgba(8, 47, 73, 0.4);
    --hero-gradient: linear-gradient(180deg, rgba(11, 17, 32, 0.82) 0%, rgba(5, 9, 16, 0.9) 60%, rgba(5, 9, 16, 0.95) 100%);
    --subheader-bg: rgba(15, 23, 42, 0.9);
    --subheader-border: rgba(148, 163, 184, 0.2);
    --subheader-link-color: #e2e8f0;
    --subheader-link-hover-color: #fff;
    --subheader-link-border: rgba(59, 130, 246, 0.4);
    --subheader-link-bg: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(14, 165, 233, 0.25));
    --subheader-link-hover-bg: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(14, 165, 233, 0.5));
    --subheader-link-hover-shadow: 0 8px 18px rgba(14, 165, 233, 0.35);
    --footer-bg: rgba(15, 23, 42, 0.75);
    --footer-border: rgba(100, 116, 139, 0.3);
    --footer-heading: #e2e8f0;
    --footer-link-hover: #fff;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    var(--hero-gradient),
    url("/static/img/bg-stadium.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.topbar,
.page-footer {
  padding: 18px 32px;
  background: var(--card-background);
  border-bottom: 1px solid var(--table-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.page-footer {
  border-bottom: none;
  border-top: 1px solid var(--table-border);
  font-size: 14px;
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  padding: 40px 0 50px;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
}

.footer-columns {
  width: 60%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 32px;
  justify-items: center;
  text-align: center;
}

@media (max-width: 1100px) {
  .footer-columns {
    width: 90%;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.footer-column h3 {
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--footer-heading);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-column ul a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column ul a:hover {
  color: var(--footer-link-hover);
}

.footer-intro p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-apps .app-entry {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-apps span {
  font-size: 12px;
  color: var(--muted);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.4px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 60px;
  width: auto;
  display: block;
}

.subheader {
  background: var(--subheader-bg);
  border-bottom: 1px solid var(--subheader-border);
  padding: 10px 32px 14px;
}

.subheader-links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.subheader-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--subheader-link-border);
  color: var(--subheader-link-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  background: var(--subheader-link-bg);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.subheader-link:hover {
  color: var(--subheader-link-hover-color);
  box-shadow: var(--subheader-link-hover-shadow);
  background: var(--subheader-link-hover-bg);
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: inline-flex;
  gap: 10px;
}

.nav-link,
.nav-link:hover,
.nav-link:focus {
  text-decoration: none;
  color: inherit;
}

.nav-link {
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.nav-link.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.topbar .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  flex-wrap: wrap;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--table-border);
  background: var(--card-background);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle-icon {
  font-size: 16px;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle .moon {
  opacity: 0.5;
  transform: scale(0.85);
}

:root[data-theme="dark"] .theme-toggle .sun {
  opacity: 0.4;
  transform: scale(0.85);
}

:root[data-theme="dark"] .theme-toggle .moon {
  opacity: 1;
  transform: scale(1);
}

:root[data-theme="light"] .theme-toggle .sun {
  opacity: 1;
  transform: scale(1);
}

:root[data-theme="light"] .theme-toggle .moon {
  opacity: 0.4;
  transform: scale(0.85);
}

.auth-greeting {
  font-weight: 600;
}

.inline-form {
  margin: 0;
  display: inline-flex;
}

.muted {
  color: var(--muted);
}

.meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-title {
  font-size: 20px;
  font-weight: 700;
}

.meta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.update-button {
  padding: 8px 16px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 116, 144, 0.18));
  color: var(--foreground);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.update-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.update-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.update-status {
  min-width: 180px;
  text-align: right;
}

.update-status-error {
  color: #be123c;
  font-weight: 600;
}

.page-content {
  padding: 28px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(14, 116, 144, 0.15));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill-button.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.pill-button.secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--foreground);
}

.pill-button.danger {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(185, 28, 28, 0.3);
}

.pill-button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
}

.pill-button.small {
  padding: 6px 14px;
  font-size: 13px;
}

.pill-button.block {
  width: 100%;
}

.pill-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #38bdf8;
  cursor: pointer;
  text-decoration: underline;
}

.link-button:hover,
.link-button:focus-visible {
  color: #22d3ee;
  outline: none;
}

.sort-button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sort-button.active {
  color: #38bdf8;
  font-weight: 700;
}

.live-detail-trigger {
  font-weight: 600;
}

.score-button {
  font-variant-numeric: tabular-nums;
}

.live-match-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-team {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-vs {
  color: var(--muted);
  font-weight: 500;
}

.red-card-indicator {
  display: inline-flex;
  width: 14px;
  height: 18px;
  border-radius: 2px;
  background: #dc2626;
}

.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px 64px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-background);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--table-border);
  font-size: 15px;
}

.auth-form label {
  font-weight: 600;
  font-size: 14px;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.alert ul {
  padding-left: 20px;
  margin: 0;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.profile-page,
.admin-page {
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.profile-card,
.admin-card {
  width: 100%;
  max-width: 1100px;
  background: var(--card-background);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.stat-card {
  border: 1px solid var(--table-border);
  border-radius: 20px;
  padding: 18px;
  background: var(--subheader-link-bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
}

.stat-hint {
  font-size: 13px;
}

.stale-league-panel {
  border: 1px solid var(--table-border);
  border-radius: 20px;
  padding: 16px;
  background: var(--subheader-link-bg);
}

.stale-league-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.stale-league-table th,
.stale-league-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--table-border);
}

.analytics-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.analytics-panel {
  border: 1px solid var(--table-border);
  border-radius: 20px;
  padding: 16px;
  background: var(--subheader-link-bg);
}

.analytics-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analytics-panel li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.analytics-panel li small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.analytics-panel li strong {
  font-size: 16px;
}

.report-actions {
  margin-top: 8px;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid var(--table-border);
  border-radius: 18px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.25);
}

.admin-filters label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--muted);
  gap: 6px;
}

.admin-filters input,
.admin-filters select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--table-border);
  background: rgba(15, 23, 42, 0.65);
  color: var(--foreground);
}

.admin-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.admin-panel-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.update-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.update-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.update-window-row {
  background: var(--accent-soft);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--table-border);
}

.update-window-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.update-window-row select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--table-border);
  background: var(--card-background);
  color: var(--foreground);
  font-size: 0.9rem;
  min-width: 100px;
}

.update-button.primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.profile-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.upgrade-panel {
  border: 1px solid var(--table-border);
  border-radius: 20px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.plan-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  min-height: 170px;
}

.plan-card h3 {
  margin: 0;
  font-size: 18px;
}

.plan-price {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 0;
}

.premium-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.subscription-info {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.upgrade-hints {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.info-card {
  border: 1px solid var(--table-border);
  border-radius: 20px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.4);
}

.info-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.info-card dl {
  display: grid;
  row-gap: 10px;
  column-gap: 12px;
}

.info-card dt {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.info-card dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.profile-form input,
.user-inline-form select,
.form-field input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--table-border);
  background: rgba(15, 23, 42, 0.65);
  color: var(--foreground);
}

.help-text {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.success-note {
  display: block;
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 6px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

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

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
}

.admin-table th {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.small-text {
  font-size: 13px;
}

.user-inline-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-inline-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.user-inline-fields label {
  flex: 1 1 160px;
  min-width: 140px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-inline-fields select {
  width: 100%;
}

.user-inline-actions {
  display: flex;
  justify-content: flex-end;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-actions form {
  margin: 0;
}

.blurred-row td {
  filter: blur(4px);
  opacity: 0.35;
  pointer-events: none;
}

.upgrade-row td {
  padding: 18px;
}

.table-upgrade-host {
  position: relative;
}

.upgrade-row .upgrade-spacer {
  padding: 0;
  border: none;
}

.upgrade-callout {
  background: rgba(37, 99, 235, 0.08);
  border: 1px dashed rgba(37, 99, 235, 0.4);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upgrade-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.premium-locked {
  position: relative;
}

.premium-locked > :not(.premium-overlay) {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.premium-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.78);
  text-align: center;
  z-index: 5;
}

.premium-overlay-content {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 16px;
  padding: 20px 28px;
  max-width: 320px;
  box-shadow: 0 25px 50px rgba(2, 6, 23, 0.55);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.premium-overlay-message {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
}

.narrow-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px;
}

.info-card {
  background: var(--card-background);
  border: 1px solid var(--table-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.terms-block pre,
.terms-text {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.terms-text strong,
.terms-block .section-title {
  display: block;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}

.about-grid {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.about-grid li {
  border: 1px solid var(--table-border);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.02);
}

.about-grid .label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 6px;
}

.about-grid .value {
  display: block;
  font-weight: 600;
  color: var(--foreground);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-list li {
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(59, 130, 246, 0.06);
  color: var(--foreground);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  border-radius: 10px;
  border: 1px solid var(--table-border);
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  background: var(--background);
  color: var(--foreground);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.4);
  border-color: rgba(37, 99, 235, 0.4);
}

.contact-form label.full-width {
  grid-column: 1 / -1;
}

.contact-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.faq-sidebar {
  background: var(--card-background);
  border: 1px solid var(--table-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 20px;
}

.faq-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-sidebar a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid transparent;
}

.faq-sidebar a:hover {
  border-color: rgba(37, 99, 235, 0.45);
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.faq-item {
  border: 1px solid var(--table-border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
}

.faq-question svg {
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  border-top: 1px solid var(--table-border);
  padding: 14px 16px 16px;
  font-size: 14px;
  color: var(--muted-foreground);
}

@media (max-width: 980px) {
  .faq-container {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
  }
}


.stats-card {
  background: var(--card-background);
  border: 1px solid var(--table-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.stats-tab {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(37, 99, 235, 0.12);
  color: #cbd5f5;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
  width: auto;
}

.stats-tabs.main-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stats-tabs.main-tabs .stats-tab {
  width: 100%;
}

.stats-tabs.sub-tabs {
  justify-content: flex-start;
}

.subtab-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btts-tabs {
  margin-bottom: 12px;
}

.btts-toggle {
  margin-top: 12px;
}

.half-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.half-toggle input {
  display: none;
}

.half-toggle .slider {
  position: relative;
  width: 60px;
  height: 28px;
  background: rgba(59, 130, 246, 0.4);
  border-radius: 999px;
  cursor: pointer;
}

.half-toggle .slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.half-toggle input:checked + .slider::after {
  transform: translateX(30px);
}

@media (max-width: 900px) {
  .stats-header {
    flex-wrap: wrap;
  }
  .stats-tabs.main-tabs {
    flex: unset;
    width: 100%;
  }
  .half-toggle {
    margin-left: auto;
  }
}
.stats-tab.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  transform: translateY(-1px);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.stats-table th,
.stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--table-border);
}

.percent-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 600;
}

.stats-table th:nth-child(1),
.stats-table td:nth-child(1) {
  width: 60px;
}

.stats-table th:nth-child(2),
.stats-table td:nth-child(2) {
  width: 190px;
}

.stats-table th:nth-child(3),
.stats-table td:nth-child(3) {
  width: 170px;
}

.stats-table th:nth-child(4),
.stats-table td:nth-child(4) {
  width: 220px;
}

.stats-table th:nth-child(5),
.stats-table td:nth-child(5) {
  width: 150px;
}

.stats-table th:nth-child(6),
.stats-table td:nth-child(6) {
  width: 120px;
}

.premium-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  z-index: 40;
}

.upgrade-panel.modal-active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 640px);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 50;
  background: var(--card-background);
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.55);
  padding: 32px;
}

.upgrade-panel.modal-active .plan-grid {
  grid-template-columns: 1fr;
}

.upgrade-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 16px 0;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--table-border);
}

.separator span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tabs {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab,
.tab:hover,
.tab:focus {
  text-decoration: none;
  color: inherit;
}

.tab {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card-background);
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tab span {
  display: block;
  line-height: 1.2;
}

.tab span:first-child {
  font-weight: 600;
  font-size: 13px;
}

.tab span:last-child {
  font-size: 12px;
  color: var(--muted);
}

.tab:hover {
  border-color: var(--accent);
  color: var(--foreground);
}

.tab.active {
  background: var(--accent);
  color: #fff;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--card-background);
  border: 1px solid var(--table-border);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.filters {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.filters select,
.filters input {
  padding: 10px 12px;
  border: 1px solid var(--table-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--foreground);
  background: var(--background);
  min-width: 170px;
}

.team-filter input {
  min-width: 220px;
}

.filters .period-toggle {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 12px;
  font-size: 14px;
  color: var(--foreground);
}

.half-toggle.compact .slider {
  width: 56px;
  height: 24px;
}

.half-toggle.compact .slider::after {
  width: 20px;
  height: 20px;
  top: 2px;
  left: 3px;
}

.half-toggle.compact input:checked + .slider::after {
  transform: translateX(28px);
}

.controls-actions {
  display: flex;
  align-items: center;
}

.controls-actions button {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.leagues-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.26fr) minmax(0, 1fr);
  gap: 40px;
  padding: 40px 40px 64px;
  /* align-items: start; KALDIRILDI. Varsayılan 'stretch' ayarı kullanılacak. */
}

.league-sidebar {
  background: var(--card-background);
  border: 1px solid var(--table-border);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.league-sidebar h2 {
  margin: 0;
  font-size: 20px;
  color: var(--foreground); /* DÜZELTME 1: Başlık rengi */
}

.league-tree {
  display: flex;
  flex-direction: column;
  gap: 32px;
  /* DÜZELTME 2: Esneme ve kaydırma için */
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px 16px 6px;
  scroll-behavior: smooth;
}

.country-group {
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.55);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}

.country-group.collapsed .league-list {
  display: none;
}

.country-group.collapsed .country-header {
  opacity: 0.75;
}

.country-header {
  width: 100%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(37, 99, 235, 0.45));
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f8fafc;
  letter-spacing: 0.4px;
  font-size: 17px;
  line-height: 1.7;
}

.country-header::after {
  content: "▾";
  color: #e2e8f0;
}

.country-group.collapsed .country-header::after {
  content: "▸";
}



.league-list {
  list-style: none;
  margin: 0;
  padding: 12px 0 16px 0;
  background: rgba(15, 23, 42, 0.78);
  display: grid;
  row-gap: 12px;
}


.league-item {
  padding: 0 24px;
}

.league-button {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: #e2e8f0;
  cursor: pointer;
  padding: 6px 0;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1.6;
}

.league-button:hover,
.league-button.active {
  color: #f8fafc;
  font-weight: 600;
  transform: translateX(6px);
}

.league-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  /* DÜZELTME 4: Gereksiz minimum yükseklik kaldırıldı */
  /* min-height: calc(100vh - 260px); */
}

.league-toolbar,
.analysis-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.analysis-toolbar.filters-controls,
.analysis-toolbar.metrics-controls {
  justify-content: flex-end;
}

.analysis-toolbar .toolbar-field,
.league-toolbar .toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.league-toolbar .season-filter-label,
.analysis-toolbar .toolbar-label {
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 12px;
}

.season-filter,
.pill-select {
  min-width: 160px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.season-filter:focus,
.pill-select:focus {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.season-filter option.unavailable,
.pill-select option.unavailable {
  color: #64748b;
}

.league-tabs {
  display: inline-flex;
  gap: 10px;
  background: rgba(37, 99, 235, 0.08);
  padding: 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: var(--shadow);
}

.league-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.league-tab.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.points-subtabs {
  display: inline-flex;
  gap: 10px;
  background: rgba(37, 99, 235, 0.05);
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.points-subtab {
  background: none;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.points-subtab.active {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
  transform: translateY(-1px);
}

.points-subpanel {
  background: transparent;
}

.performance-subtabs {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 20px;
  background: rgba(56, 189, 248, 0.08);
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  flex-wrap: wrap;
}

.performance-subtab {
  background: none;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.performance-subtab.active {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  color: #fff;
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.performance-panel {
  background: transparent;
}

.goals-subtabs {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.08);
  flex-wrap: wrap;
}

.goals-subtab {
  background: none;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.goals-subtab.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.35);
  transform: translateY(-1px);
}

.performance-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.performance-filter label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.performance-filter select {
  min-width: 140px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  padding: 6px 14px;
  font-weight: 500;
}

.corners-table,
.cards-table table,
.goals-table {
  width: 100%;
  border-collapse: collapse;
}

.corners-table th,
.corners-table td,
.cards-table table th,
.cards-table table td,
.goals-table th,
.goals-table td {
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid var(--table-border);
}

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.cards-table h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

/* AI Analysis Feature Styles */
.vertical-matchup .ai-analysis-button {
  margin-top: 8px;
}

.ai-analysis-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.6;
  font-size: 15px;
}

.ai-analysis-content h3 {
  margin: 8px 0 0;
  font-size: 18px;
  color: var(--accent);
}

.ai-analysis-content strong {
  font-weight: 700;
  color: var(--foreground);
}


/* Analysis page */
.analysis-page {
  padding: 28px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.analysis-intro {
  background: var(--card-background);
  border: 1px solid var(--table-border);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.analysis-intro h1 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: 0.3px;
}

.analysis-results {
  background: var(--card-background);
  border: 1px solid var(--table-border);
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow);
}

.analysis-tab {
  background: none;
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.analysis-tab:hover {
  color: var(--foreground);
  transform: translateY(-1px);
}

.analysis-tab.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.analysis-results .panel-state {
  padding: 32px;
  text-align: center;
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow: hidden;
}

.analysis-table th,
.analysis-table td {
  border-bottom: 1px solid var(--table-border);
  padding: 16px 18px;
  vertical-align: top;
  text-align: center;
}

.analysis-table thead {
  background: rgba(37, 99, 235, 0.05);
  font-weight: 600;
}

.analysis-table th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.analysis-table th.sort-asc::after,
.analysis-table th.sort-desc::after {
  font-size: 10px;
  margin-left: 6px;
  display: inline-block;
  transform: translateY(-1px);
}

.analysis-table th.sort-asc::after {
  content: "▲";
}

.analysis-table th.sort-desc::after {
  content: "▼";
}

#analysis-table th:nth-child(3),
#analysis-table th:nth-child(4),
#analysis-table td:nth-child(3),
#analysis-table td:nth-child(4),
#performance-index-table th:nth-child(3),
#performance-index-table td:nth-child(3) {
  text-align: left;
}

.filters-description {
  margin: 0 0 16px;
}

.advanced-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.advanced-pill-high {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.advanced-pill-medium {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.advanced-pill-low {
  background: rgba(251, 191, 36, 0.18);
  color: #92400e;
}

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

.matchup .teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.matchup .meta-line {
  font-size: 13px;
}

.matchup .scenario-tag {
  color: var(--accent);
  font-weight: 600;
}

.prediction-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prediction-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prediction-label {
  font-weight: 600;
}

.prediction-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.prediction-reasons {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--foreground);
}

.prediction-reasons li + li {
  margin-top: 4px;
}

.metric-line {
  font-size: 13px;
  margin-bottom: 6px;
}

.metric-line:last-child {
  margin-bottom: 0;
}

.footnote {
  font-size: 12px;
  margin: 16px 18px 18px;
}

.legend-list {
  margin: 8px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.legend-key {
  font-weight: 600;
  margin-right: 6px;
}

.metric-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metric-pair .value {
  font-weight: 600;
}

.metric-pair .diff-positive,
.metric-pair .diff-neutral,
.metric-pair .diff-negative {
  margin-left: 0;
}

.hdcp-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hdcp-pair .label {
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hdcp-pair .value {
  font-weight: 600;
  color: var(--foreground);
}

.hdcp-pair .separator {
  color: var(--muted);
  font-weight: 600;
}

.decision-text {
  font-weight: 600;
  color: var(--foreground);
}

.confidence-value {
  font-weight: 600;
  color: var(--foreground);
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-yüksek {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.badge-orta {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.badge-düşük {
  background: rgba(251, 191, 36, 0.18);
  color: #92400e;
}

.badge-bilinmiyor {
  background: rgba(148, 163, 184, 0.18);
  color: var(--muted);
}

.diff-positive {
  color: #15803d;
  font-weight: 600;
  margin-left: 8px;
}

.diff-negative {
  color: #be123c;
  font-weight: 600;
  margin-left: 8px;
}

.diff-neutral {
  color: var(--muted);
  margin-left: 8px;
}

.league-panels {
  background: var(--card-background);
  border: 1px solid var(--table-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  min-height: 340px;
}

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

.panel-content th,
.panel-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--table-border);
  text-align: left;
  font-size: 14px;
}

.panel-content th {
  background: var(--accent-soft);
  font-weight: 600;
}

.panel-content tbody tr:nth-child(even) {
  background: rgba(37, 99, 235, 0.04);
}

.panel-content tbody tr:hover {
  background: rgba(37, 99, 235, 0.1);
}

.panel-state {
  font-size: 14px;
  color: var(--muted);
}

.homeaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.homeaway-table h3 {
  margin-top: 0;
}

.homeaway-table {
  background: var(--card-background);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--table-border);
  box-shadow: var(--shadow);
}

.week-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-background);
  border: 1px solid var(--table-border);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.week-button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--table-border);
  background: var(--card-background);
  color: var(--accent);
  cursor: pointer;
}

.week-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.week-label {
  font-size: 14px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none !important;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.modal-container {
  position: relative;
  background: var(--card-background);
  color: var(--foreground);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.38);
  max-width: 720px;
  width: min(720px, 95vw);
  max-height: 80vh;
  overflow: hidden;
  border: 1px solid var(--table-border);
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 12px;
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-body {
  overflow-y: auto;
  padding-right: 4px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--accent-soft);
  color: var(--foreground);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.modal-close:hover {
  transform: scale(1.05);
  background: var(--accent);
  color: #fff;
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--table-border);
}

.modal-section:first-of-type {
  padding-top: 0;
}

.modal-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-section h3 {
  margin: 0;
  font-size: 18px;
}

/* 3-Column Match Header */
#match-modal-subtitle .match-header-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  margin: 0 -24px;
  margin-top: -24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.header-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.header-column.left-column {
  align-items: flex-end;
}

.header-column.right-column {
  align-items: flex-start;
}

.header-column.center-column {
  align-items: center;
  gap: 12px;
}

.header-datetime {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.header-score {
  font-size: 48px;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
  letter-spacing: -1px;
}

:root[data-theme="dark"] .header-score {
  color: #ff6b6b;
}

.header-period {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#match-modal-subtitle .team-logo-card {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

#match-modal-subtitle .team-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

#match-modal-subtitle .team-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
}

#match-modal-subtitle figcaption {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  text-align: center;
  margin-top: 4px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-stat-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
}

.modal-stat-list dt {
  font-weight: 600;
}

.modal-stat-list dd {
  margin: 0;
  text-align: right;
  color: var(--foreground);
}

.stats-comparison-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.stat-row {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  gap: 12px;
  align-items: center;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: #f1f5f9;
}

.stat-left {
  text-align: left;
}

.stat-right {
  text-align: right;
}

.stat-label-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #cbd5e1;
}

.stat-bar-container {
  display: flex;
  height: 12px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar {
  height: 100%;
}

.stat-bar.home-bar {
  background: #ef4444;
}

.stat-bar.away-bar {
  background: #f1f5f9;
}

.modal-team-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.modal-team-card {
  border: 1px solid var(--table-border);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--card-background);
  box-shadow: var(--shadow);
}

.summary-section .event-timeline {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-row {
  display: flex;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.event-row.home {
  border-left: 4px solid rgba(59, 130, 246, 0.8);
}

.event-row.away {
  border-left: 4px solid rgba(248, 113, 113, 0.85);
}

.event-minute {
  font-weight: 700;
  color: #f8fafc;
  min-width: 48px;
}

.event-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.event-icon {
  font-size: 16px;
}

.event-meta {
  font-size: 13px;
  color: var(--muted);
}

.event-comments {
  font-size: 13px;
  color: #e2e8f0;
}

/* Timeline Layout Styles */
.events-timeline-section .events-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.half-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.half-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
  padding: 10px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.half-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.timeline-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-column.home .timeline-event {
  text-align: right;
  flex-direction: row-reverse;
}

.timeline-column.away .timeline-event {
  text-align: left;
}

.timeline-column.neutral {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.timeline-event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.timeline-event:hover {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(148, 163, 184, 0.4);
}

.timeline-column.home .timeline-event {
  border-left: 3px solid rgba(59, 130, 246, 0.8);
  border-right: none;
}

.timeline-column.away .timeline-event {
  border-right: 3px solid rgba(248, 113, 113, 0.85);
  border-left: none;
}

.timeline-minute {
  font-weight: 700;
  color: var(--accent);
  min-width: 36px;
  font-size: 12px;
}

.timeline-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.timeline-player {
  flex: 1;
  font-weight: 500;
  color: #f1f5f9;
}

.timeline-assist {
  font-size: 12px;
  color: var(--muted);
}

.timeline-column.neutral .timeline-event {
  border-left: none;
  border-right: none;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.lineup-section .modal-team-grid {
  gap: 14px;
}

.lineup-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lineup-formation,
.lineup-coach {
  font-size: 13px;
  color: var(--muted);
}

.lineup-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lineup-player {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-number {
  width: 26px;
  text-align: center;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.player-name {
  flex: 1;
}

.player-pos {
  font-size: 12px;
  color: var(--muted);
}

.table-upgrade-overlay {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

.table-upgrade-card {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 20px;
  padding: 18px 24px;
  box-shadow: 0 25px 45px rgba(2, 6, 23, 0.55);
  max-width: 360px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.table-upgrade-card p {
  margin: 0;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 15px;
}

.modal-team-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.modal-team-list {
  margin: 0;
}

.modal-subheading {
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.modal-metric-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.modal-metric-list li strong {
  font-weight: 600;
}

.modal-reason-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.modal-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}

.team-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.team-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.team-logo-card figcaption {
  font-size: 13px;
  color: var(--muted);
}

.team-logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent);
  font-weight: 700;
}

.logo-vs {
  font-weight: 700;
  color: var(--muted);
}

.modal-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.modal-tabs::-webkit-scrollbar {
  height: 4px;
}

.modal-tabs::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.modal-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.4);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.modal-tab-panels {
  width: 100%;
}

.modal-tab-panel {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.modal-tab-panel.active {
  display: block;
}

.prediction-percent-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.prediction-percent-card {
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.prediction-percent-card .label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.prediction-percent-card strong {
  font-size: 18px;
}

.prediction-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.prediction-comparison-table th,
.prediction-comparison-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.prediction-comparison-table th:first-child,
.prediction-comparison-table td:first-child {
  text-align: left;
}

.prediction-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

tbody tr.team-row,
tbody tr.modal-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

tbody tr.team-row:hover,
tbody tr.modal-row:hover {
  background: rgba(37, 99, 235, 0.08);
}

.hidden {
  display: none !important;
}

.table-wrapper {
  background: var(--card-background);
  border-radius: 14px;
  border: 1px solid var(--table-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.match-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.match-table th,
.match-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--table-border);
  text-align: left;
  font-size: 14px;
}

.match-table th {
  background: var(--accent-soft);
  font-weight: 600;
}

.match-table th:nth-child(1),
.match-table td:nth-child(1) {
  width: 105px;
}

.match-table th:nth-child(2),
.match-table td:nth-child(2) {
  width: 95px;
}

.match-table th:nth-child(3),
.match-table td:nth-child(3) {
  width: 130px;
}

.match-table th:nth-child(4),
.match-table td:nth-child(4) {
  width: 140px;
}

.match-table th:nth-child(5),
.match-table td:nth-child(5) {
  width: 220px;
}

.match-table th:nth-child(6),
.match-table td:nth-child(6),
.match-table th:nth-child(7),
.match-table td:nth-child(7),
.match-table th:nth-child(8),
.match-table td:nth-child(8),
.match-table th:nth-child(9),
.match-table td:nth-child(9),
.match-table th:nth-child(10),
.match-table td:nth-child(10),
.match-table th:nth-child(11),
.match-table td:nth-child(11) {
  width: 120px;
}

.match-table th.stat-header,
.match-table th.score-header {
  text-align: center;
}

.match-table tbody tr:nth-child(even) {
  background: rgba(37, 99, 235, 0.04);
}

.match-table .league-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.match-table .league-link:hover {
  text-decoration: underline;
}

.match-table td.stat-cell,
.match-table td.avg-cell,
.match-table td.score-cell {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.match-table td.avg-cell {
  font-weight: 600;
}

.match-table td.score-cell {
  font-weight: 500;
}

.match-table .cell-value {
  display: inline-block;
}

.match-table .cell-value.trend-high {
  color: #15803d;
  background: rgba(34, 197, 94, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
}

.match-table .cell-value.trend-medium {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
}

.match-table .cell-value.trend-low {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
}

.locked-header {
  opacity: 0.5;
}

.locked-cell {
  position: relative;
  overflow: hidden;
}

.locked-cell .cell-value {
  filter: blur(6px);
  opacity: 0.2;
}

.locked-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.15);
  pointer-events: none;
}

.vertical-matchup {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vertical-matchup .teams {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.vertical-matchup .match-line {
  display: inline;
  font-weight: 600;
}

.vertical-matchup .match-line.away-team {
  color: var(--muted);
}

.vertical-matchup .match-vs {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--muted);
}

.placeholder td {
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

.empty-state,
.error-state {
  padding: 16px;
  text-align: center;
  font-size: 14px;
}

.empty-state {
  color: var(--muted);
}

.error-state {
  color: #ef4444;
}

.noscript {
  margin: 16px 32px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--table-border);
  background: #fee2e2;
  color: #991b1b;
  font-size: 14px;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .topbar,
  .page-content,
  .page-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .filters {
    width: 100%;
  }

  .controls-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .week-nav {
    flex-direction: column;
    gap: 12px;
  }

  .match-table th,
  .match-table td {
    font-size: 13px;
    padding: 10px 12px;
  }

  .leagues-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 48px;
  }

  .league-sidebar {
    max-height: 280px;
    overflow-y: auto;
  }

  .league-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .homeaway-grid {
    grid-template-columns: 1fr;
  }
}
.analysis-subtabs {
  display: inline-flex;
  gap: 6px;
  padding: 12px 16px 0;
}
.advanced-controls {
  justify-content: flex-end;
}

/* League Group Headers */
tr.league-group-header {
  background: rgba(29, 78, 216, 0.08);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

:root[data-theme="dark"] tr.league-group-header {
  background: rgba(59, 130, 246, 0.15);
}

tr.league-group-header:hover {
  background: rgba(29, 78, 216, 0.15);
}

:root[data-theme="dark"] tr.league-group-header:hover {
  background: rgba(59, 130, 246, 0.25);
}

.league-group-header-cell {
  padding: 14px 16px !important;
}

.league-group-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.league-group-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: bold;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.league-group-label {
  color: var(--accent);
  font-weight: bold;
  font-size: 15px;
  display: flex;
  align-items: center;
}

/* Collapsed matches - hidden */
tr.league-group-match.collapsed {
  display: none;
}
