/* ==========================================================================
   İZMİR TRİBÜNLERİ — Premium Dark / Light Design System
   Brand Accent: Gold (#c5a32e / #a8881f)
   ========================================================================== */

/* ─── Light Mode Tokens (Default & [data-theme="light"]) ─── */
:root,
[data-theme="light"] {
  color-scheme: light;

  /* Backgrounds */
  --bg: #f0f4f8;
  --bg-2: #ffffff;
  --bg-3: #e4ecf4;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-subtle: #e8f0f8;

  /* Surfaces — gold tint */
  --surface: rgba(197, 163, 46, 0.06);
  --surface-2: rgba(197, 163, 46, 0.11);
  --surface-3: rgba(197, 163, 46, 0.15);
  --surface-hover: rgba(197, 163, 46, 0.09);
  --surface-subtle: #ffffff;

  /* Text */
  --text: #0d1117;
  --text-2: #1e293b;
  --text-primary: #0d1117;
  --text-secondary: #334155;
  --ink: #0d1117;
  --muted: #5a6272;
  --muted-2: #8a94a6;

  /* Brand Colors — GOLD */
  --primary: #a8881f;
  --primary-hover: #8b6e16;
  --primary-dark: #8b6e16;
  --primary-glow: rgba(197, 163, 46, 0.22);
  --on-primary: #ffffff;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.20);
  --gold: #c5a32e;
  --gold-glow: rgba(197, 163, 46, 0.22);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.20);
  --live: #ef4444;
  --live-glow: rgba(239, 68, 68, 0.20);
  --warning: #f97316;
  --success: #10b981;
  --info: #0284c7;

  /* Borders & Lines */
  --border: rgba(197, 163, 46, 0.20);
  --border-2: rgba(197, 163, 46, 0.32);
  --border-strong: rgba(197, 163, 46, 0.48);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --line: rgba(197, 163, 46, 0.20);
  --line-light: rgba(15, 23, 42, 0.06);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(197, 163, 46, 0.08);
  --shadow: 0 8px 24px rgba(197, 163, 46, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 48px rgba(197, 163, 46, 0.16), 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 4px 18px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 0 3px var(--primary-glow);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 30px;
  --r-full: 999px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Font sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.85rem;
  --fs-base: 0.95rem;
  --fs-md: 1.05rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.35rem;
  --fs-2xl: 1.75rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 350ms;
}

/* ─── Dark Mode Tokens ─── */
[data-theme="dark"] {
  color-scheme: light dark;

  /* Backgrounds */
  --bg: #080d12;
  --bg-2: #0f1923;
  --bg-3: #141f2d;
  --bg-card: rgba(15, 25, 38, 0.95);
  --bg-glass: rgba(15, 25, 38, 0.75);
  --bg-subtle: #0c1520;

  /* Surfaces — gold tint */
  --surface: rgba(197, 163, 46, 0.07);
  --surface-2: rgba(197, 163, 46, 0.12);
  --surface-3: rgba(197, 163, 46, 0.17);
  --surface-hover: rgba(197, 163, 46, 0.09);
  --surface-subtle: #141f2d;

  /* Text */
  --text: #e8dfc8;
  --text-2: #cfc7ac;
  --text-primary: #e8dfc8;
  --text-secondary: #cfc7ac;
  --ink: #e8dfc8;
  --muted: #7a6e52;
  --muted-2: #574d36;

  /* Brand Colors — GOLD */
  --primary: #c5a32e;
  --primary-hover: #e0bc3c;
  --primary-dark: #a8881f;
  --primary-glow: rgba(197, 163, 46, 0.22);
  --on-primary: #080d12;
  --accent: #34d399;
  --accent-glow: rgba(52, 211, 153, 0.18);
  --gold: #c5a32e;
  --gold-glow: rgba(197, 163, 46, 0.22);
  --danger: #f87171;
  --danger-glow: rgba(248, 113, 113, 0.18);
  --live: #f87171;
  --live-glow: rgba(248, 113, 113, 0.18);
  --warning: #f59e0b;
  --success: #34d399;
  --info: #38bdf8;

  /* Borders & Lines */
  --border: rgba(197, 163, 46, 0.18);
  --border-2: rgba(197, 163, 46, 0.28);
  --border-strong: rgba(197, 163, 46, 0.45);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --line: rgba(197, 163, 46, 0.18);
  --line-light: rgba(255, 255, 255, 0.06);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.32);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.30);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 3px rgba(197, 163, 46, 0.28);
}

/* ─── BASE RESET & TYPOGRAPHY ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  color-scheme: light dark;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

[data-theme="dark"] body {
  background-image: radial-gradient(circle at 50% -20%, #131E35 0%, #070B14 70%, #080d12 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

:root:not([data-theme="dark"]) body,
[data-theme="light"] body {
  background-image: radial-gradient(circle at 50% -20%, #e2eaf4 0%, #edf3f8 60%, #f0f4f8 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 20px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
}
.skip-link:focus {
  top: 20px;
}

/* ─── LAYOUT CONTAINERS ─── */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.page-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 40px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

/* ─── UNIFIED PAGE HEADING (ALL PAGES) ─── */
.page-heading {
  position: relative;
  margin-bottom: 22px;
  padding: 22px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md, 14px);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  transition: all var(--dur-normal) var(--ease);
}

[data-theme="dark"] .page-heading {
  background: linear-gradient(135deg, rgba(15, 25, 38, 0.95) 0%, rgba(20, 31, 45, 0.85) 100%);
  border-color: rgba(197, 163, 46, 0.16);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .page-heading {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.page-heading::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: radial-gradient(circle at top right, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.page-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.page-heading h1 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.page-heading p {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  max-width: 680px;
}

@media (max-width: 600px) {
  .page-heading {
    padding: 16px 18px;
    margin-bottom: 16px;
  }
  .page-heading h1 {
    font-size: 20px;
  }
  .page-heading p {
    font-size: 12.5px;
  }
}

/* ─── SITE HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: grid;
  place-items: center;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--text);
}

.brand-accent {
  color: var(--primary);
}

.brand-slogan {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* Global Search */
.global-search {
  position: relative;
  flex: 0 1 420px;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
}

.global-search > svg:first-child {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.global-search:focus-within > svg:first-child {
  color: var(--primary);
  transform: scale(1.08);
}

.global-search input {
  width: 100%;
  height: 42px;
  padding: 0 74px 0 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.global-search input::placeholder {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

.global-search input:hover {
  background: var(--surface-hover);
  border-color: var(--border-2);
}

.global-search input:focus {
  border-color: var(--primary);
  background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 4px 20px rgba(0, 0, 0, 0.35);
}

.global-search kbd {
  position: absolute;
  right: 42px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5px 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  font-family: inherit;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.global-search input:focus ~ kbd,
.global-search input:not(:placeholder-shown) ~ kbd {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
}

.global-search button[type="submit"] {
  position: absolute;
  right: 6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-search button[type="submit"]:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 2px 10px var(--primary-glow);
  transform: scale(1.05);
}

.global-search button[type="submit"] svg {
  position: static;
  width: 15px;
  height: 15px;
  color: inherit;
}

.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md, 14px);
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-height: 440px;
  overflow-y: auto;
}

.suggestions-title {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--primary);
  text-transform: uppercase;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--r-sm, 10px);
  color: var(--text);
  transition: all var(--dur-fast, 120ms) var(--ease);
}

.search-result:hover {
  background: var(--surface-hover);
  color: var(--primary);
  transform: translateX(2px);
}

.search-result .crest {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.search-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--primary);
  flex-shrink: 0;
}

.search-result-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-result strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result:hover strong {
  color: var(--primary);
}

.search-result small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestions-empty {
  padding: 16px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.suggestions-empty strong {
  color: var(--text);
}

/* Nav Line */
.nav-line {
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-line {
  background: rgba(0, 0, 0, 0.02);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border);
}

.main-nav a.active {
  color: var(--primary);
  background: var(--surface-2);
  border-color: var(--border-strong);
  font-weight: 800;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* Live Dot */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  animation: livePulse 1.6s infinite ease-in-out;
}

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ─── LEFT RAIL (İZMİR TAKIMLARI & LİGLER) ─── */
.left-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-label {
  padding: 10px 10px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
}

.rail-label.second {
  margin-top: 14px;
}

.rail-team, .rail-league {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.rail-team:hover, .rail-league:hover {
  background: var(--surface);
  color: var(--text);
  transform: translateX(2px);
}

.rail-team .crest {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.rail-team svg:last-child {
  margin-left: auto;
  width: 14px;
  color: var(--muted);
}

.rail-league svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* ─── PANELS & CARDS ─── */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2 {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text);
}

.page-heading {
  margin-bottom: 18px;
}

.page-heading h1 {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
}

.page-heading p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.button { color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.button:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.button.small {
  padding: 5px 12px;
  font-size: 11px;
}

.button.button-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--line);
}

.button.button-outline:hover {
  background: var(--surface-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.text-link:hover {
  color: var(--text);
}

/* ─── MATCH TOOLBAR, DATE STRIP & STATUS TABS ─── */
.match-toolbar {
  padding: 14px 18px;
}

.toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.toolbar-top h2 {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.toolbar-top h2 svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.date-picker-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-picker-form input[type="date"] {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  outline: none;
}

.date-picker-form input[type="date"]:focus {
  border-color: var(--primary);
}

/* Date Strip */
.date-strip {
  display: grid;
  grid-template-columns: 38px repeat(7, minmax(0, 1fr)) 38px;
  gap: 8px;
  align-items: stretch;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  scrollbar-width: none;
  width: 100%;
}
.date-strip::-webkit-scrollbar {
  display: none;
}

.date-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 2px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.15s ease;
  min-width: 0;
}

.date-strip-item small {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
  white-space: nowrap;
}

.date-strip-item strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.date-strip-item:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: var(--surface-hover);
}

.date-strip-item.selected { color: #ffffff !important;
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.date-strip-item.selected strong {
  color: var(--on-primary);
}

.date-strip-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  transition: all 0.15s ease;
  min-width: 0;
}

.date-strip-nav:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.date-strip-nav svg {
  width: 18px;
  height: 18px;
}

/* Status Tabs */
.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
}

.status-tab-item, .status-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  white-space: nowrap;
}

.status-tab-item:hover, .status-tabs a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.status-tab-item.selected, .status-tabs a.selected { color: #ffffff !important;
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  font-weight: 900;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* ─── LEAGUE BLOCKS & MATCH ROWS ─── */
.league-block {
  margin-bottom: 16px;
}

.league-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.league-heading > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.league-heading-link {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s ease;
}

.league-heading-link:hover h2 {
  color: var(--primary);
}

.league-heading-link h2 {
  font-size: 14px;
  font-weight: 800;
  color: inherit;
  margin: 0;
  letter-spacing: -0.2px;
}

.league-emblem {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.league-heading span {
  font-size: 11px;
  color: var(--muted);
}

/* Match Row */
.match-row {
  display: grid;
  grid-template-columns: 105px 1fr auto 1fr 105px;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s ease;
  position: relative;
  text-decoration: none;
}

.match-row::after {
  content: '';
  display: block;
  width: 105px;
}

.match-row:last-child {
  border-bottom: 0;
}

.match-row:hover {
  background: var(--surface-hover);
}

.match-row.is-live {
  background: rgba(239, 68, 68, 0.05);
  box-shadow: inset 3px 0 0 var(--live);
}

.match-row.is-live .score {
  color: var(--live);
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.match-time {
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}

.match-time span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.match-home, .match-away {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.15s ease;
}

.match-home {
  justify-content: flex-end;
  text-align: right;
}

.match-away {
  justify-content: flex-start;
  text-align: left;
}

.match-home span, .match-away span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-home.is-current-team,
.match-away.is-current-team {
  color: var(--primary);
  font-weight: 800;
}

.match-home .crest, .match-away .crest {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  min-width: 64px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-align: center;
  justify-self: center;
}

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

.score.score-vs {
  background: var(--surface);
  border-color: var(--border-subtle);
  min-width: 52px;
}

.score-vs .vs-text {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

/* Red Card Indicator */
.red-card {
  display: inline-block;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: var(--live);
  flex-shrink: 0;
}

.match-result-badge { color: #ffffff !important;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}
.match-result-badge.win { background: var(--success); }
.match-result-badge.draw { background: #64748B; }
.match-result-badge.loss { background: var(--live); }

/* ─── SCOREBOARD (MATCH DETAIL HEADER) ─── */
.match-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.match-round-pill {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

.scoreboard {
  margin-bottom: 16px;
}

.scoreboard-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
}

.scoreboard-league {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 700;
}

.scoreboard-league svg {
  width: 15px;
  color: var(--primary);
}

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

.scoreboard-date {
  color: var(--text-secondary);
}

.scoreboard-main {
  display: grid;
  grid-template-columns: 1fr minmax(130px, auto) 1fr;
  align-items: center;
  padding: 28px 24px;
  gap: 16px;
}

.scoreboard-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-profile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-crest {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.hero-crest-lg {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.crest-md {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.crest-sm {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.crest-xs {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.scoreboard-team .team-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.red-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--live);
  font-size: 10px;
  font-weight: 800;
}

.scoreboard-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-display #detail-score {
  color: var(--text);
  font-size: 38px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.score-display #detail-score span {
  color: var(--muted);
  margin: 0 4px;
}

.scoreboard-status-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.scoreboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

/* Canlı Maç (Live) */
.scoreboard-badge.is-live {
  background: rgba(239, 68, 68, 0.18);
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.28);
}

.scoreboard-badge.is-live .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  display: inline-block;
  animation: liveBadgePulse 1.4s infinite ease-in-out;
}

@keyframes liveBadgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* İlk Devre Arası (HT) */
.scoreboard-badge.is-ht {
  background: rgba(197, 163, 46, 0.16);
  border: 1.5px solid rgba(197, 163, 46, 0.45);
  color: var(--gold, #c5a32e);
  box-shadow: 0 0 10px rgba(197, 163, 46, 0.2);
}

/* Maç Sonu (Finished / MS) */
.scoreboard-badge.is-finished {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text-2, #cfc7ac);
}

/* Başlamamış / Planlanmış */
.scoreboard-badge.is-scheduled {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Ertelendi / İptal */
.scoreboard-badge.is-postponed,
.scoreboard-badge.is-cancelled {
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  color: var(--danger, #f87171);
}

.status-wrapper {
  margin-top: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
}

.status-pill.is-live {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--live);
}

.extra-time-note {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
}

.scoreboard-halftime {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.scoreboard-scorers-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
  font-size: 12px;
}

.scorers-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.scorers-home {
  align-items: flex-end;
  text-align: right;
}

.scorers-away {
  align-items: flex-start;
  text-align: left;
}

.scorer-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-weight: 600;
}

.scorer-item small {
  color: var(--primary);
  font-weight: 800;
}

.scorer-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ─── TABS COMPONENT ─── */
.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.tabs-center {
  justify-content: center;
}

.tabs button, .tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tabs button:hover, .tabs a:hover {
  color: var(--text);
}

.tabs button.selected, .tabs a.selected { color: #ffffff !important;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.tabs button svg, .tabs a svg {
  width: 14px;
  height: 14px;
}

/* ─── MATCH DETAIL TABS CONTENT ─── */
/* 1. Overview Facts Grid & MOTM */
.motm-card {
  position: relative;
  background: linear-gradient(135deg, rgba(197, 163, 46, 0.14) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 18px 22px;
  margin-bottom: 20px;
}

.motm-badge { color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.motm-badge svg {
  width: 13px;
  height: 13px;
}

.motm-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.motm-avatar img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.motm-info h3 {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.motm-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.motm-rating {
  margin-left: auto;
  text-align: right;
}

.motm-rating strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--success);
}

.motm-rating span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.match-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.fact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.fact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.fact-icon svg {
  width: 18px;
  height: 18px;
}

.fact-body {
  display: flex;
  flex-direction: column;
}

.fact-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.fact-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.fact-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

/* 2. Timeline */
.timeline-header {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  align-items: center;
  padding: 14px 20px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
}

.timeline-head-team {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.timeline-head-team.head-home { justify-content: flex-end; text-align: right; }
.timeline-head-team.head-away { justify-content: flex-start; text-align: left; }
.timeline-head-title { text-align: center; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

.match-events-timeline {
  position: relative;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.match-events-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
}

.timeline-event-row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.event-col {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.event-home { justify-content: flex-end; text-align: right; }
.event-away { justify-content: flex-start; text-align: left; }

.event-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-player {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.event-player.in { color: var(--success); }
.event-meta.out { color: var(--live); font-size: 11px; }

.event-meta { font-size: 11px; color: var(--muted); }
.event-score { font-size: 11px; font-weight: 800; color: var(--primary); }

.event-tag {
  display: inline-block;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 800;
}
.event-tag.penalty { background: rgba(16, 185, 129, 0.16); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.4); }
.event-tag.owngoal { background: rgba(239, 68, 68, 0.16); color: var(--live); border: 1px solid rgba(239, 68, 68, 0.4); }

.event-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.event-badge svg { width: 14px; height: 14px; color: var(--primary); }

.event-axis {
  display: flex;
  justify-content: center;
  align-items: center;
}

.event-minute {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.card { display: inline-block; width: 10px; height: 14px; border-radius: 2px; }
.card.yellow { background: #eab308; }
.card.red { background: var(--live); }

/* 3. Stats Rows */
.stats-list {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.stat-val {
  color: var(--text);
  font-weight: 800;
  color: var(--text);
  width: 36px;
}
.stat-val-home { text-align: left; }
.stat-val-away { text-align: right; }
.stat-label { font-weight: 600; color: var(--text-secondary); text-align: center; flex: 1; }

.stat-bar-track {
  height: 8px;
  background: var(--surface-subtle);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  gap: 2px;
}

.stat-bar-fill-home {
  background: var(--primary);
  border-radius: 4px 0 0 4px;
  transition: width 0.4s ease;
}

.stat-bar-fill-away {
  background: var(--info);
  border-radius: 0 4px 4px 0;
  transition: width 0.4s ease;
}

/* 4. Radar Frame */
.radar-container {
  padding: 12px;
}

.csb-frame {
  width: 100%;
  aspect-ratio: 600 / 438;
  height: auto;
  border: 0;
  border-radius: 12px;
  background: var(--bg-3);
}

/* Standings Table */
.table-scroll {
  overflow-x: auto;
}

.standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.standings th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.standings td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.standings tr.highlight {
  background: rgba(245, 158, 11, 0.08);
}

.standings tr.highlight td {
  color: var(--text);
  font-weight: 700;
}

.standings td strong {
  color: var(--text);
}

/* 5. SOCCER PITCH (SAHA TAKTİK DİZİLİŞİ) */
.soccer-pitch-section {
  padding: 18px;
}

.pitch-header {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.pitch-team-switcher {
  display: inline-flex;
  gap: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 12px;
}

.pitch-team-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pitch-team-btn:hover {
  color: var(--text);
}

.pitch-team-btn.active { color: #ffffff !important;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 900;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.formation-pill {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 10px;
  font-weight: 800;
}

.tactical-pitch-wrapper {
  max-width: 580px;
  margin: 0 auto;
}

.soccer-pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.45;
  background: linear-gradient(180deg, #133927 0%, #1c4e36 25%, #133927 50%, #1c4e36 75%, #133927 100%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Saha Çizgileri */
.pitch-center-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
}

.pitch-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-penalty-box {
  position: absolute;
  left: 50%;
  width: 56%;
  height: 18%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
}
.pitch-penalty-box.top { top: 0; border-top: 0; border-radius: 0 0 6px 6px; }
.pitch-penalty-box.bottom { bottom: 0; border-bottom: 0; border-radius: 6px 6px 0 0; }

.pitch-goal-area {
  position: absolute;
  left: 50%;
  width: 28%;
  height: 7%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
}
.pitch-goal-area.top { top: 0; border-top: 0; }
.pitch-goal-area.bottom { bottom: 0; border-bottom: 0; }

/* Oyuncu Formasyon Katmanı */
.pitch-team-formation {
  display: none;
  position: absolute;
  top: 25%;
  bottom: 5%;
  left: 6%;
  right: 6%;
  flex-direction: column-reverse;
  justify-content: space-between;
}

.pitch-team-formation.active {
  display: flex;
}

.pitch-line {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.pitch-player-node {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  position: relative;
}

.pitch-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary, #c5a32e);
  border: 3px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), 0 0 10px rgba(197, 163, 46, 0.5);
  display: block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

#pitch-away .pitch-dot {
  background: var(--accent, #34d399);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), 0 0 10px rgba(52, 211, 153, 0.5);
}

.pitch-player-node:hover .pitch-dot {
  transform: scale(1.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 255, 255, 0.6);
}

/* Lineups List */
.lineups-two-column {
  margin-top: 18px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lineup-formation-tag {
  padding: 8px 14px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-secondary);
}

.coach-card {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.coach-label { font-size: 9.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.coach-name {
  color: var(--text); font-size: 12.5px; font-weight: 800; color: var(--text); }

.lineup-section-title {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--primary);
  text-transform: uppercase;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.player-row:hover {
  background: var(--surface-subtle);
}

.player-row .shirt {
  width: 20px;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
}

.player-row .portrait {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.player-row span strong {
  color: var(--text);
  display: block;
  font-size: 12px;
  color: var(--text);
}

.player-row span small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.player-row .player-age {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

/* 6. H2H Cards */
.h2h-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
}

.h2h-form-card {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.form-team-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
}

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

.form-match-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--surface);
  font-size: 11.5px;
}

.form-badge { color: #ffffff !important;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  color: var(--text);
}
.form-badge.win { background: var(--success); }
.form-badge.draw { background: #64748B; }
.form-badge.loss { background: var(--live); }

.form-opp { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }
.form-score { font-weight: 800; color: var(--text); }

/* ─── TEAM DETAIL (HERO & STATS CAPSULE) ─── */
.team-hero-banner {
  padding: 24px;
  background: linear-gradient(135deg, rgba(197, 163, 46, 0.12) 0%, var(--bg-card) 100%);
  border: 1px solid var(--line);
}

.team-hero-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.team-hero-title {
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
}

.team-hero-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.hero-table-btn {
  margin-left: auto;
}

.team-stats-capsule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.stat-capsule-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}

.capsule-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.capsule-value {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
}

.next-match-spotlight {
  padding: 18px 22px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(197, 163, 46, 0.10) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.spotlight-badge { color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 9.5px;
  font-weight: 900;
  margin-bottom: 14px;
}

.spotlight-body {
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  gap: 16px;
}

.spotlight-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 120px;
}

.spotlight-team strong {
  font-size: 13px;
  font-weight: 800;
}

.spotlight-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.spotlight-vs {
  font-size: 18px;
  font-weight: 900;
  color: var(--muted);
}

.spotlight-date {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ─── NEWS CARDS (MOBİL UYGULAMA İLE BİREBİR) ─── */
.news-feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-feed-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .news-feed-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .news-feed-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.news-list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.news-list-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
}

.news-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-list-card:hover .news-img {
  transform: scale(1.03);
}

.news-cat-badge { color: #ffffff !important;
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.news-content-wrap {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--muted);
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.category-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 12px;
}

.chip {
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.chip:hover { color: var(--text); }
.chip.active { color: #ffffff !important;
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  font-weight: 900;
}

/* ─── ARTICLE DETAIL (HABER DETAY) ─── */
.article-flow {
  max-width: 820px;
  margin: 0 auto;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
}

.article-breadcrumb a { color: var(--primary); }

.article-heading h1 {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
}

.article-lead {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.article-cover-wrap {
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-body {
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  color: #E2E8F0;
  margin-bottom: 30px;
}

.article-body p { margin-bottom: 18px; }

/* ─── EMPTY STATE ─── */
.empty {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty svg {
  color: var(--muted);
  width: 42px;
  height: 42px;
}

.empty h3 {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.empty p {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 360px;
}

/* ─── SITE FOOTER ─── */
.site-footer {
  margin-top: 40px;
  padding: 30px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.footer-brand span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
}

/* ─── RESPONSIVE RULES ─── */
.mobile-bottom-nav { display: none; }
.mobile-drawer:not([open]) { display: none !important; }

.mobile-menu-trigger {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-trigger:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 12px var(--primary-glow);
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
  }
  .left-rail {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    border-bottom: 1px solid var(--border);
  }
  .header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding-top: 10px;
    padding-bottom: 12px;
    gap: 8px 0;
  }
  .header-top .brand {
    order: 1;
    max-width: calc(100% - 50px);
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .brand-mark svg {
    width: 20px;
    height: 20px;
  }
  .brand-main {
  color: var(--text);
    font-size: 16px;
  }
  .brand-slogan {
    display: none;
  }
  .mobile-menu-trigger {
    order: 2;
    display: grid;
    margin-left: auto;
    width: 38px;
    height: 38px;
  }
  .header-top .global-search {
    order: 3;
    display: flex;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 6px;
  }
  .global-search input {
    height: 42px;
    padding: 0 46px 0 38px;
    font-size: 13.5px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
  }
  .global-search input::placeholder {
    font-size: 13px;
    color: var(--muted);
  }
  .global-search kbd {
    display: none !important;
  }
  .global-search button[type="submit"] {
    right: 5px;
    width: 32px;
    height: 32px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary);
  }
  .suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 55vh;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
    z-index: 300;
  }
  .site-header .nav-line {
    display: none;
  }

  .date-strip {
    grid-template-columns: 28px repeat(7, minmax(0, 1fr)) 28px;
    gap: 4px;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .date-strip-item {
    padding: 6px 1px;
    border-radius: 8px;
  }
  .date-strip-item small {
    font-size: 9px;
  }
  .date-strip-item strong {
  color: var(--text);
    font-size: 11px;
  }
  .date-strip-nav {
    border-radius: 8px;
  }
  .date-strip-nav svg {
    width: 14px;
    height: 14px;
  }

  .scoreboard-main {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    padding: 16px 12px;
    align-items: center;
  }
  .scoreboard-team {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
    min-width: 0;
  }
  .team-profile-link {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 100%;
  }
  .hero-crest {
    width: 46px;
    height: 46px;
  }
  .scoreboard-team .team-name {
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .score-display #detail-score {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .match-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "time time time"
      "home score away";
    align-items: center;
    gap: 8px 12px;
    padding: 12px 14px;
  }

  .match-row::after {
    display: none;
  }

  .match-time {
    grid-area: time;
    justify-self: center;
    text-align: center;
    margin-bottom: 2px;
  }

  .match-time span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-2);
    background: var(--surface-2);
    padding: 2.5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
  }

  .match-time small {
    display: inline-block;
    font-size: 10px;
    color: var(--muted);
    margin-right: 4px;
  }

  .match-home {
    grid-area: home;
    justify-self: stretch;
    justify-content: flex-end;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    min-width: 0;
  }

  .match-home span,
  .match-away span {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .score {
    grid-area: score;
    justify-self: center;
    min-width: 52px;
    height: 32px;
    font-size: 14px;
    padding: 0 6px;
  }

  .score.score-vs {
    min-width: 44px;
    height: 28px;
  }

  .score-vs .vs-text {
    font-size: 11px;
  }

  .match-away {
    grid-area: away;
    justify-self: stretch;
    justify-content: flex-start;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    min-width: 0;
  }

  .match-home .crest,
  .match-away .crest {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .match-tv, .match-row > svg:last-child {
    display: none;
  }

  .two-column, .h2h-form-grid {
    grid-template-columns: 1fr;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 150;
  }

  .mobile-bottom-nav a, .mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 600;
  }

  .mobile-bottom-nav a.active {
    color: var(--primary);
    font-weight: 800;
  }

  .mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
  }

  /* Drawer */
  .mobile-drawer:not([open]) {
    display: none !important;
  }

  .mobile-drawer[open] {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0; /* Soldan açılır */
    width: min(340px, 86vw);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    background: var(--bg-2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 0;
    border-right: 1px solid var(--border);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 999;
    color: var(--text);
    outline: none;
    overflow: hidden;
    animation: drawerSlideInLeft 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .mobile-drawer.is-closing {
    animation: drawerSlideOutLeft 0.22s cubic-bezier(0.4, 0, 1, 1) forwards !important;
  }

  @keyframes drawerSlideInLeft {
    0% {
      transform: translateX(-100%);
      opacity: 0.6;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes drawerSlideOutLeft {
    0% {
      transform: translateX(0);
      opacity: 1;
    }
    100% {
      transform: translateX(-100%);
      opacity: 0;
    }
  }

  .mobile-drawer::backdrop {
    background: rgba(5, 7, 10, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: drawerBackdropFade 0.25s ease forwards;
  }

  .mobile-drawer.is-closing::backdrop {
    animation: drawerBackdropFadeOut 0.22s ease forwards;
  }

  @keyframes drawerBackdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes drawerBackdropFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }

  /* Drawer Header */
  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }

  .drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }

  .drawer-brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
    flex-shrink: 0;
  }

  .drawer-brand-copy {
    display: flex;
    flex-direction: column;
  }

  .drawer-brand-title {
  color: var(--text);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.15;
  }

  .drawer-brand-slogan {
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
  }

  .drawer-close-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
  }

  .drawer-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ff6b6b;
    transform: rotate(90deg);
  }

  /* Drawer Body */
  .drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  }

  .drawer-body::-webkit-scrollbar {
    width: 4px;
  }
  .drawer-body::-webkit-scrollbar-track {
    background: transparent;
  }
  .drawer-body::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 4px;
  }

  /* Drawer Quick Search */
  .drawer-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .drawer-search svg:first-child {
    position: absolute;
    left: 12px;
    width: 15px;
    height: 15px;
    color: var(--muted);
    pointer-events: none;
  }

  .drawer-search input {
    width: 100%;
    height: 38px;
    padding: 0 36px 0 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  }

  .drawer-search input:focus {
    border-color: var(--primary);
    background: var(--surface-2);
    box-shadow: 0 0 0 3px var(--primary-glow);
  }

  .drawer-search button[type="submit"] {
    position: absolute;
    right: 6px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
  }

  .drawer-search button[type="submit"]:hover {
    color: var(--primary);
  }

  /* Drawer Sections */
  .drawer-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .drawer-section-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--muted);
    padding: 0 6px;
    margin-bottom: 2px;
    text-transform: uppercase;
  }

  .drawer-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
    margin-bottom: 2px;
  }

  .drawer-section-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
  }
  .drawer-section-link:hover {
    text-decoration: underline;
  }

  /* Drawer Navigation Links */
  .drawer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.15s ease;
  }

  .drawer-link:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    transform: translateX(3px);
  }

  .drawer-link.active {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0.03) 100%);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--primary);
    font-weight: 800;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.1);
  }

  .drawer-link-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--surface);
    color: var(--muted);
    flex-shrink: 0;
    transition: all 0.15s ease;
  }

  .drawer-link:hover .drawer-link-icon {
    color: var(--text);
    background: var(--surface-3);
  }

  .drawer-link.active .drawer-link-icon {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 2px 10px var(--primary-glow);
  }

  .drawer-link-icon.is-live {
    color: var(--live);
  }

  .drawer-link-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .drawer-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ff6b6b;
  }

  .drawer-link-arrow {
    color: var(--muted);
    opacity: 0.4;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  .drawer-link:hover .drawer-link-arrow,
  .drawer-team-row:hover .drawer-link-arrow,
  .drawer-league-row:hover .drawer-link-arrow {
    opacity: 1;
    transform: translateX(3px);
    color: var(--primary);
  }

  /* Drawer Teams & Leagues Lists */
  .drawer-teams-list,
  .drawer-leagues-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .drawer-team-row,
  .drawer-league-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
  }

  .drawer-team-row:hover,
  .drawer-league-row:hover {
    background: var(--surface-2);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--text);
    transform: translateX(3px);
  }

  .drawer-team-crest {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
  }

  .drawer-team-crest img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .drawer-team-name,
  .drawer-league-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .drawer-league-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--surface);
    color: var(--primary);
    flex-shrink: 0;
  }

  /* Drawer Footer */
  .drawer-footer {
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
  }

  .drawer-footer-pulse {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
  }

  .drawer-footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: livePulse 2s infinite;
  }

  .drawer-copyright {
    font-size: 10px;
    color: var(--muted);
    margin: 0;
  }
}

/* ─── PLAYER DETAIL (OYUNCU SAYFASI) ─── */
.player-profile-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(197, 163, 46, 0.12) 0%, var(--bg-card) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.p-hero__avatar-box {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
  overflow: hidden;
  background: var(--surface-subtle);
}

.p-hero__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-hero__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-hero__number {
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
  color: var(--primary);
}

.p-hero__name {
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.p-hero__fullname {
  font-size: 13px;
  color: var(--text-secondary);
}

.p-hero__tags {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.p-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.p-tag--pos {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--primary);
}

.p-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.p-info-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.p-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-subtle);
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 2px;
}

.p-info-icon svg {
  width: 16px;
  height: 16px;
}

.p-info-val {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.p-info-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

.p-career-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p-career-title {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.p-career-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.career-team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
}

.career-team-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.career-team-header img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.career-team-header h3 {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.career-table-wrap {
  overflow-x: auto;
}

.career-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.career-table th {
  padding: 10px 14px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.career-table th.stat-col {
  text-align: center;
}

.career-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.career-table td:not(:first-child) {
  text-align: center;
  font-weight: 700;
  color: var(--text);
}

.th-content {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.c-icon svg {
  width: 13px;
  height: 13px;
}

.c-icon--app { color: var(--info); }
.c-icon--goal { color: var(--primary); }
.c-icon--ast { color: var(--success); }
.c-icon--yc { color: #EAB308; }
.c-icon--rc { color: var(--live); }

.season-name {
  color: var(--text);
  display: block;
  font-weight: 800;
  color: var(--text);
}

.comp-name {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

/* ─── FORMS, FIXTURES & STANDINGS HELPERS ─── */
.button.dark {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--text);
}
.button.dark:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.filter-form, .fixture-league-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-form label, .fixture-league-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.filter-form select, .filter-form input,
.fixture-league-form select, .fixture-league-form input {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  outline: none;
}

.filter-form select:focus, .filter-form input:focus,
.fixture-league-form select:focus, .fixture-league-form input:focus {
  border-color: var(--primary);
}

.score-layout {
  display: block;
  width: 100%;
}

.score-main {
  width: 100%;
  min-width: 0;
}

.right-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.local-feature {
  position: relative;
  background: linear-gradient(135deg, rgba(197, 163, 46, 0.14) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.local-feature h2 {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.25;
  margin: 6px 0 10px;
}

.local-feature p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
}

.local-feature .stadium-art {
  position: absolute;
  right: -10px;
  bottom: -10px;
  color: rgba(245, 158, 11, 0.1);
  transform: scale(2.2);
  pointer-events: none;
}

.button.acid {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 900;
}

/* Standings Form Badges */
.standings .form {
  display: flex;
  gap: 4px;
}

.standings .form span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  color: var(--text);
}

.form-W, .form-G { background: var(--success); }
.form-D, .form-B { background: #64748B; }
.form-L, .form-M { background: var(--live); }

.notice {
  padding: 12px 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.panel-foot {
  padding: 10px 18px;
  background: var(--surface-subtle);
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

/* Fixtures Week Picker */
.week-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.week-picker h2 {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.week-picker p {
  font-size: 11px;
  color: var(--text-secondary);
}

.week-arrow {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text);
}
.week-arrow.disabled { opacity: 0.3; pointer-events: none; }

.fixture-weeks {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 18px;
}

.fixture-weeks a {
  flex: 0 0 90px;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  text-align: center;
  color: var(--text-secondary);
}
.fixture-weeks a strong { display: block; font-size: 11.5px; color: var(--text); }
.fixture-weeks a span { font-size: 10px; color: var(--muted); }
.fixture-weeks a.selected { color: #ffffff !important;
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.fixture-weeks a.selected strong, .fixture-weeks a.selected span { color: var(--on-primary); }

.fixture-day {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .score-layout {
    grid-template-columns: 1fr;
  }
  .right-rail {
    display: none;
  }
}

/* ─── TEAM GRID & SEARCH PAGE ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.45);
}

.team-card .crest {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.team-card h2 {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.team-card p {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.team-card span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

.search-page-form {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.search-page-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  outline: none;
}

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

.result-count {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 12px;
}


/* ─── THEME TOGGLE BUTTON & ACTIONS ─── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md, 12px);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--dur-fast, 120ms) var(--ease);
  position: relative;
}

.theme-toggle-btn:hover {
  background: var(--surface-2);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Visibility based on theme */
[data-theme="dark"] .theme-toggle-btn .icon-moon,
:root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle-btn .icon-moon {
  display: none !important;
}
[data-theme="dark"] .theme-toggle-btn .icon-sun,
:root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle-btn .icon-sun {
  display: block !important;
}
[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: none !important;
}
[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: block !important;
}

/* Drawer Theme Switch Row */
.drawer-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md, 12px);
  margin-bottom: 12px;
}

.drawer-theme-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-theme-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--primary);
}

[data-theme="dark"] .drawer-theme-icon .icon-moon { display: none !important; }
[data-theme="dark"] .drawer-theme-icon .icon-sun { display: block !important; }
[data-theme="light"] .drawer-theme-icon .icon-sun { display: none !important; }
[data-theme="light"] .drawer-theme-icon .icon-moon { display: block !important; }

.drawer-theme-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.drawer-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-full, 999px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.drawer-theme-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.drawer-theme-switch-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* ─── LEAGUE LOGOS & SELECTOR ─── */
.league-emblem {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
}

.league-emblem img.league-crest,
.league-emblem img.league-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.league-emblem .league-fallback-icon {
  display: none;
  color: var(--primary);
}

.league-selector-wrap {
  margin-bottom: 16px;
}

.league-chips-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.league-chips-bar::-webkit-scrollbar {
  display: none;
}

.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-full, 999px);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-2);
  transition: all var(--dur-fast, 120ms) var(--ease);
  flex-shrink: 0;
  text-decoration: none;
}

.league-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.league-chip.is-active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px var(--primary-glow);
}

.league-chip img.league-chip-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.league-dropdown-fallback {
  display: none;
}

@media (max-width: 600px) {
  .league-dropdown-fallback {
    display: none; /* Keep chips bar on mobile for native app feel */
  }
}

.league-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.league-title-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.season-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
}

.drawer-league-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
}

.drawer-league-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.drawer-league-fallback {
  display: none;
}

.league-crest {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.league-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-xs, 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
  margin-right: 10px;
}

.league-emblem .league-logo-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.scoreboard-league-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
}

.drawer-league-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ─── HIDE MATCH-TV FROM MATCH ROWS (ONLY ON MATCH DETAIL) ─── */
.match-tv {
  display: none !important;
}

/* ─── UNIFIED LEAGUE CUSTOM DROPDOWN (FIXTURES & STANDINGS) ─── */
.league-dropdown-container {
  margin-bottom: 20px;
  position: relative;
  z-index: 50;
}

.league-custom-dropdown {
  position: relative;
  width: 100%;
}

.league-custom-dropdown[open] {
  z-index: 60;
}

.league-dropdown-trigger {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md, 14px);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-normal) var(--ease);
  user-select: none;
}

.league-dropdown-trigger::-webkit-details-marker {
  display: none;
}

.league-dropdown-trigger:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.league-custom-dropdown[open] .league-dropdown-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.league-current-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.league-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.league-dropdown-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.league-current-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.league-current-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
}

.league-current-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
}

.league-dropdown-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  transition: transform 0.25s ease, color 0.2s ease, background-color 0.2s ease;
}

.league-dropdown-trigger:hover .league-dropdown-arrow {
  color: var(--primary);
}

.league-custom-dropdown[open] .league-dropdown-arrow {
  transform: rotate(180deg);
  color: var(--primary);
  background: var(--primary-glow);
}

/* Dropdown Menu */
.league-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md, 14px);
  padding: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.league-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-sm, 10px);
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

.league-menu-item:hover {
  background: var(--surface-hover);
  color: var(--primary);
  transform: translateX(3px);
}

.league-menu-item.is-active {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--primary);
}

.league-menu-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.league-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.league-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.league-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.league-item-country {
  font-size: 11px;
  color: var(--muted);
}

.active-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--on-primary, #ffffff);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ─── MODERN COMPACT FIXTURE WEEK HERO & SELECTOR ─── */
.fixture-nav-panel {
  padding: 18px 24px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md, 14px);
  box-shadow: var(--shadow-sm);
}

.fixture-week-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fixture-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
}

.fixture-week-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fixture-hero-week {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.4px;
  margin: 0;
}

.week-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.week-direct-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 28px 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.week-direct-select:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
}

.week-direct-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.week-select-wrapper .select-arrow {
  position: absolute;
  right: 8px;
  pointer-events: none;
  color: var(--primary);
  width: 14px;
  height: 14px;
}

.fixture-hero-dates {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.fixture-hero-dates svg {
  color: var(--primary);
}

.fixture-arrow-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  text-decoration: none;
}

.fixture-arrow-btn:hover:not(.disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary, #ffffff);
  box-shadow: 0 4px 14px var(--primary-glow);
  transform: scale(1.05);
}

.fixture-arrow-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.fixture-day-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 18px 4px;
  margin: 0;
}

.fixture-day-badge svg {
  color: var(--primary);
}

/* ─── UNIFIED FILTER PANELS (TEAMS & NEWS) ─── */
.teams-filter-panel,
.news-filter-panel {
  padding: 18px 22px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md, 14px);
  box-shadow: var(--shadow-sm);
}

.teams-filter-form,
.news-filter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.teams-search-wrap,
.news-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.teams-search-icon,
.news-search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
  display: grid;
  place-items: center;
}

.teams-search-input,
.news-search-input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

.teams-search-input::placeholder,
.news-search-input::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.teams-search-input:hover,
.news-search-input:hover {
  background: var(--surface-hover);
  border-color: var(--border-2);
}

.teams-search-input:focus,
.news-search-input:focus {
  background: var(--surface-2);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.teams-clear-btn,
.news-clear-btn {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.teams-clear-btn:hover,
.news-clear-btn:hover {
  background: var(--primary);
  color: var(--on-primary, #ffffff);
  border-color: var(--primary);
}

.teams-filter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.teams-city-pills,
.news-category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.filter-pill.is-active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--on-primary, #ffffff) !important;
  font-weight: 800;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.teams-league-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.teams-league-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 38px;
  padding: 0 32px 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.teams-league-select:hover {
  border-color: var(--primary);
}

.teams-league-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.teams-league-select-wrap .select-arrow {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--muted);
}

.teams-submit-btn {
  display: none;
}

.teams-count-bar,
.news-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 14px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.teams-count-bar strong,
.news-count-bar strong {
  color: var(--text);
}

.reset-filters-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 600px) {
  .fixture-nav-panel {
    padding: 14px 16px;
  }
  .fixture-hero-week {
    font-size: 18px;
  }
  .fixture-hero-dates {
    font-size: 11.5px;
  }
  .fixture-arrow-btn {
    width: 38px;
    height: 38px;
  }
  .teams-filter-panel,
  .news-filter-panel {
    padding: 14px 16px;
  }
  .teams-filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .teams-city-pills,
  .news-category-pills {
    width: 100%;
  }
  .teams-league-select-wrap {
    width: 100%;
  }
  .teams-league-select {
    width: 100%;
  }
}

/* ─── MATCH DETAIL EVENTS & TIMELINE (SOLID OPAQUE & BEAUTIFUL CARDS) ─── */
.match-events-timeline {
  position: relative;
  padding: 18px 0;
}

.match-events-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-2);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md, 14px);
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.timeline-head-team {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 40%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-head-title {
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.timeline-event-row {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.event-axis {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

.event-minute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-2) !important;
  color: var(--gold) !important;
  border: 2px solid var(--border-strong) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3) !important;
  font-size: 13px;
  font-weight: 900;
  opacity: 1 !important;
  z-index: 4;
}

[data-theme="light"] .event-minute {
  background: #ffffff !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
}

.event-col {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.event-col.event-home {
  justify-content: flex-end;
  text-align: right;
}

.event-col.event-away {
  justify-content: flex-start;
  text-align: left;
}

.event-info {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm, 10px);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  max-width: 320px;
  transition: all var(--dur-fast, 120ms) var(--ease);
}

.event-col.event-home .event-info {
  margin-left: auto;
}

.timeline-event-row:hover .event-info {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.event-player {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.event-player.in {
  color: var(--accent);
}

.event-meta {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
}

.event-meta.out {
  color: var(--danger);
}

.event-score {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  background: var(--surface-3);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
  border: 1px solid var(--border);
}

.event-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
}

.event-tag.penalty {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.event-tag.owngoal {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.event-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-2);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  color: var(--primary);
}

.event-badge svg {
  width: 17px;
  height: 17px;
}

.event-badge .card.yellow {
  display: inline-block;
  width: 12px;
  height: 17px;
  background: #eab308;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(234, 179, 8, 0.4);
}

.event-badge .card.red {
  display: inline-block;
  width: 12px;
  height: 17px;
  background: #ef4444;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

@media (max-width: 600px) {
  .timeline-header {
    font-size: 12px;
    padding: 10px 12px;
  }
  .timeline-event-row {
    grid-template-columns: 1fr 50px 1fr;
    gap: 8px;
  }
  .event-minute {
    min-width: 38px;
    height: 28px;
    font-size: 11.5px;
    padding: 0 6px;
  }
  .event-info {
    padding: 8px 10px;
  }
  .event-player {
    font-size: 12px;
  }
  .event-badge {
    width: 28px;
    height: 28px;
  }
  .event-badge svg {
    width: 14px;
    height: 14px;
  }
}

/* ─── MATCH DETAIL: OVERVIEW (GENEL) STYLES ─── */
.overview-panel {
  margin-bottom: 20px;
  overflow: hidden;
}

.overview-tab-trigger {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--dur-fast, 120ms) var(--ease);
}
.overview-tab-trigger:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* MOTM (Player of the Match) Card */
.motm-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(197, 163, 46, 0.12) 0%, var(--bg-card) 60%);
  border: 1px solid var(--gold-glow, rgba(197, 163, 46, 0.3));
  box-shadow: 0 4px 20px rgba(197, 163, 46, 0.08);
  margin-bottom: 20px;
}

[data-theme="light"] .motm-card {
  background: linear-gradient(135deg, rgba(197, 163, 46, 0.15) 0%, #ffffff 65%);
  border-color: rgba(197, 163, 46, 0.35);
}

.motm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--gold);
  color: #080d12;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom-right-radius: 12px;
}

.motm-badge svg {
  width: 14px;
  height: 14px;
}

.motm-content {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px 20px;
}

.motm-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(197, 163, 46, 0.25);
  flex-shrink: 0;
}

.motm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motm-info {
  flex: 1;
  min-width: 0;
}

.motm-info h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}

.motm-info p {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.motm-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--gold);
  color: #080d12;
  box-shadow: 0 4px 14px rgba(197, 163, 46, 0.35);
  flex-shrink: 0;
}

.motm-rating strong {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.motm-rating span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Key Events List in Overview */
.overview-key-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.overview-key-event-item {
  display: grid;
  grid-template-columns: 48px 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md, 12px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--dur-fast, 120ms) var(--ease);
}

.overview-key-event-item:hover {
  border-color: var(--primary);
  transform: translateX(2px);
}

.overview-key-event-item.side-home {
  border-left: 3px solid var(--primary);
}

.overview-key-event-item.side-away {
  border-left: 3px solid var(--accent);
}

.key-event-minute {
  font-size: 13px;
  font-weight: 900;
  color: var(--gold);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 2px 8px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.key-event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.key-badge.badge-goal {
  background: var(--surface-2);
  color: var(--gold);
}

.key-badge.badge-red {
  background: rgba(239, 68, 68, 0.15);
}

.key-event-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.key-event-team .team-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.key-event-body {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.key-player-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.key-assist-text {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.key-event-score .score-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.overview-empty-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.overview-prematch-brief {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  padding: 16px;
}

.brief-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md, 12px);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.brief-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.brief-item strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 2px;
}

.brief-item span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* Overview Form Grid */
.overview-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
}

.overview-team-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md, 14px);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.form-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.form-card-badges {
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-matches-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-mini-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  font-size: 12.5px;
  transition: all var(--dur-fast, 120ms) var(--ease);
}

.form-mini-row:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
}

.form-mini-opp {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.form-mini-opp .opp-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: var(--text-2);
}

.form-mini-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-size: 12px;
}

/* Overview Stats Grid */
.overview-stats-grid {
  padding: 16px;
}

.overview-stats-teams-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.stat-team-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.val-highlight {
  color: var(--gold) !important;
}

/* Overview Standings Table */
.overview-standings-table {
  margin: 0;
}

.overview-standings-table tr.row-home-team {
  background: rgba(197, 163, 46, 0.08);
}

.overview-standings-table tr.row-away-team {
  background: rgba(52, 211, 153, 0.06);
}

.team-side-indicator {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px;
}

.points-val {
  color: var(--gold);
  font-weight: 900;
}

/* Match Facts Grid Refinement */
.match-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 16px;
}

.fact-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-md, 12px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--dur-fast, 120ms) var(--ease);
}

.fact-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.fact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--primary);
  flex-shrink: 0;
}

.fact-icon svg {
  width: 20px;
  height: 20px;
}

.fact-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.fact-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.fact-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.fact-sub {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 768px) {
  .overview-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
  .overview-key-events-list {
    padding: 12px;
  }
  .overview-key-event-item {
    grid-template-columns: 42px 28px 1fr auto;
    gap: 8px;
    padding: 8px 10px;
  }
  .key-event-team .team-label {
    display: none;
  }
  .match-facts-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
}
/* ==============================================================================
   CANLI PUAN DURUMU SİMÜLASYONU & SIRA DEĞİŞİMİ BİLEŞENLERİ
   ============================================================================== */
.live-standings-snapshot-panel {
  margin-bottom: 24px;
}
.live-standings-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.live-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.live-sim-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.live-sim-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.live-sim-card:hover {
  transform: translateY(-2px);
}
.live-sim-card.rank-up {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, var(--surface) 100%);
}
.live-sim-card.rank-down {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, var(--surface) 100%);
}
.live-sim-card.rank-same {
  border-color: var(--line);
}
.live-sim-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-sim-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.live-sim-meta strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.live-rank-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  width: fit-content;
}
.live-rank-badge.rank-up {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.live-rank-badge.rank-down {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.live-rank-badge.rank-same {
  background: rgba(148, 163, 184, 0.15);
  color: var(--muted);
}
.live-sim-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.03);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  text-align: center;
}
[data-theme="dark"] .live-sim-stats-row {
  background: rgba(255, 255, 255, 0.03);
}
.live-sim-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.live-sim-stat small {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.live-sim-stat strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.live-sim-stat strong.accent-pts {
  color: var(--primary);
}
.live-sim-stat span {
  font-size: 10.5px;
  color: var(--muted);
}
.text-success {
  color: #22c55e !important;
  font-weight: 700;
}
.rank-cell-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rank-delta-arrow {
  font-size: 9px;
  font-weight: 800;
}
.rank-delta-arrow.up {
  color: #22c55e;
}
.rank-delta-arrow.down {
  color: #ef4444;
}
.rank-delta-arrow.same {
  color: var(--muted);
  opacity: 0.5;
}
.is-live-match-team {
  background: rgba(var(--primary-rgb, 230, 0, 0), 0.08) !important;
  font-weight: 700;
}

/* ==============================================================================
   İDDAA ORANLARI BÜLTEN KARTI
   ============================================================================== */
.iddaa-bulten-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0;
}
.iddaa-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.iddaa-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.iddaa-logo-badge {
  background: #facc15;
  color: #000;
  font-weight: 900;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.iddaa-mbs-badge {
  background: rgba(148, 163, 184, 0.16);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.iddaa-king-badge {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.iddaa-update-info {
  font-size: 11px;
  color: var(--muted);
}
.iddaa-market-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.iddaa-market-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.iddaa-market-title span {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}
.iddaa-market-title small {
  font-size: 11.5px;
  color: var(--muted);
}
.iddaa-odds-grid {
  display: grid;
  gap: 8px;
}
.iddaa-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.iddaa-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.iddaa-odd-btn {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme="dark"] .iddaa-odd-btn {
  background: rgba(255, 255, 255, 0.02);
}
.iddaa-odd-btn:hover {
  background: rgba(234, 179, 8, 0.1);
  border-color: #eab308;
  transform: translateY(-1px);
}
.odd-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.odd-val {
  font-size: 14px;
  font-weight: 900;
  color: #eab308;
  margin-left: 6px;
}
.iddaa-disclaimer {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

/* ==============================================================================
   TWEET (X) KARTLARI BİLEŞENİ
   ============================================================================== */
.tweet-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tweet-card:hover {
  border-color: rgba(29, 155, 240, 0.4);
  transform: translateY(-1px);
}
.tweet-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tweet-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.tweet-avatar-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.tweet-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tweet-author-line {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tweet-author {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tweet-verified {
  color: #1d9bf0;
  display: inline-flex;
}
.tweet-handle-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.tweet-handle {
  font-weight: 500;
}
.tweet-sep {
  opacity: 0.6;
}
.tweet-date {
  font-size: 11.5px;
}
.tweet-x-logo, .tweet-x-emblem {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--text);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
}
.tweet-content {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  word-break: break-word;
}
.tweet-media-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 380px;
}
.tweet-media {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
}
.tweet-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
.tweet-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1d9bf0;
  background: rgba(29, 155, 240, 0.1);
  border: 1px solid rgba(29, 155, 240, 0.25);
  padding: 5px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.tweet-view-btn:hover {
  background: #1d9bf0;
  color: #fff;
}

/* ==============================================================================
   HABER DETAY SAYFASI & KAYNAK HAPLARI
   ============================================================================== */
.news-detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 40px;
}
.news-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
}
.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
}
.news-back-link:hover {
  color: var(--text);
}
.breadcrumb-sep {
  color: var(--muted);
}
.breadcrumb-cat {
  color: var(--primary);
  text-decoration: none;
}
.news-detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.news-hero-media {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #000;
}
.news-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.news-share-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}
.news-share-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.news-detail-body-wrapper {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-detail-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.news-tags-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-badge-category {
  background: var(--primary);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}
.news-badge-team {
  background: rgba(148, 163, 184, 0.16);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}
.news-date-views-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.news-meta-date, .news-meta-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.news-meta-dot {
  opacity: 0.6;
}
.news-detail-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--text);
  margin: 4px 0 0 0;
}
.news-lead-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 500;
  border-left: 3px solid var(--primary);
  padding-left: 14px;
  margin: 6px 0;
}
.news-prose-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin: 10px 0;
}
.news-prose-content p {
  margin-bottom: 16px;
}
.news-interactions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.news-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
}
.news-source-pill {
  flex: 1;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb, 230,0,0), 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.news-source-pill:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}
.source-label {
  font-weight: 500;
  opacity: 0.9;
}
.source-name {
  font-weight: 800;
  margin-left: 4px;
}
.source-icon {
  margin-left: auto;
}
.team-hero-twitter-link {
  color: #1d9bf0;
  text-decoration: none;
  font-weight: 700;
}
.team-hero-twitter-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .news-hero-media {
    height: 240px;
  }
  .news-detail-title {
    font-size: 20px;
  }
  .news-detail-body-wrapper {
    padding: 16px;
  }
  .news-interactions-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .news-source-pill {
    width: 100%;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   FLUTTER MOBILE 1:1 REPLICA COMPONENT STYLES (MATCH DETAIL & TEAM DETAIL)
   ══════════════════════════════════════════════════════════════════════════ */

/* Flutter design system tokens */
:root {
  --flutter-surface: #ffffff;
  --flutter-surface-subtle: #f8fafc;
  --flutter-surface-border: #e2e8f0;
  --flutter-text-pri: #0f172a;
  --flutter-text-sec: #475569;
  --flutter-text-muted: #64748b;
  --flutter-primary: #f59e0b;
  --surface-border: #e2e8f0;
}

[data-theme="dark"],
html.dark,
body.dark {
  --flutter-surface: #101217;
  --flutter-surface-subtle: #161922;
  --flutter-surface-border: #1e2638;
  --flutter-text-pri: #ffffff;
  --flutter-text-sec: #94a3b8;
  --flutter-text-muted: #64748b;
  --flutter-primary: #f59e0b;
  --surface-border: #1e2638;
}

/* Flutter Solid Panels */
.flutter-panel,
.flutter-card {
  background: var(--flutter-surface, #101217) !important;
  border: 1px solid var(--flutter-surface-border, #1e2638) !important;
  border-radius: 18px;
  color: var(--flutter-text-pri, #ffffff);
}

/* ─── 1. FLUTTER SCOREBOARD HEADER ─── */
.flutter-scoreboard-card {
  background: var(--flutter-surface, #101217) !important;
  border: 1px solid var(--flutter-surface-border, #1e2638) !important;
  border-radius: 20px;
  padding: 16px 20px;
  margin: 0 auto 14px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.flutter-scoreboard-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--flutter-text-muted, #64748b);
}

.flutter-scoreboard-top svg {
  width: 13px;
  height: 13px;
  color: var(--flutter-text-muted, #64748b);
}

.flutter-scoreboard-top .sep {
  opacity: 0.5;
}

.flutter-scoreboard-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.flutter-team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--flutter-text-pri, #ffffff) !important;
  transition: transform 0.15s ease;
}

.flutter-team-col:hover {
  transform: translateY(-2px);
}

.flutter-team-crest-box {
  width: 56px;
  height: 56px;
  padding: 6px;
  background: var(--flutter-surface-subtle, #161922);
  border: 1px solid var(--flutter-surface-border, #1e2638);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.flutter-team-crest-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flutter-team-name {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--flutter-text-pri, #ffffff) !important;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.flutter-red-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 2px 7px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #ef4444;
}

.flutter-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.flutter-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.flutter-status-badge.live {
  background: transparent;
  border: 1.2px solid #ef4444;
  color: #ef4444;
}

.flutter-status-badge.live .dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-dot 1.2s infinite;
}

.flutter-status-badge.ht {
  background: transparent;
  border: 1.2px solid #f59e0b;
  color: #f59e0b;
}

.flutter-status-badge.finished {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--flutter-text-sec, #94a3b8);
}

.flutter-status-badge.scheduled {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.flutter-score-val {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--flutter-text-pri, #ffffff) !important;
  line-height: 1;
}

.flutter-score-val .vs {
  font-size: 22px;
  color: var(--flutter-text-muted, #64748b);
  letter-spacing: 0;
}

.flutter-ht-score {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--flutter-text-muted, #64748b);
  margin-top: 6px;
}

/* ─── 2. FLUTTER PILL TAB BAR ─── */
.flutter-tabs-container {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 3px;
  background: var(--flutter-surface-subtle, #161922) !important;
  border: 1px solid var(--flutter-surface-border, #1e2638) !important;
  border-radius: 12px;
  margin: 0 auto 16px auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.flutter-tabs-container::-webkit-scrollbar {
  display: none;
}

.flutter-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--flutter-text-sec, #94a3b8) !important;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.flutter-tab-btn svg {
  width: 14px;
  height: 14px;
}

.flutter-tab-btn:hover {
  color: var(--flutter-text-pri, #ffffff) !important;
}

.flutter-tab-btn.selected {
  background: var(--flutter-primary, #f59e0b) !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

/* ─── 3. FLUTTER OVERVIEW CARD ─── */
.flutter-overview-info-card {
  background: var(--flutter-surface, #101217) !important;
  border: 1px solid var(--flutter-surface-border, #1e2638) !important;
  border-radius: 16px;
  padding: 4px 0;
  margin-bottom: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.flutter-info-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.flutter-info-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flutter-info-icon-box.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.flutter-info-icon-box.emerald { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.flutter-info-icon-box.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.flutter-info-content {
  flex: 1;
  min-width: 0;
}

.flutter-info-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--flutter-text-muted, #64748b);
  display: block;
}

.flutter-info-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--flutter-text-pri, #ffffff);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flutter-info-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.flutter-info-badge.primary {
  background: var(--flutter-primary, #f59e0b);
  color: #0f172a;
}

.flutter-info-badge.slate {
  background: var(--flutter-surface-subtle, #161922);
  border: 1px solid var(--flutter-surface-border, #1e2638);
  color: var(--flutter-text-sec, #94a3b8);
}

.flutter-info-divider {
  height: 1px;
  background: var(--flutter-surface-border, #1e2638);
  opacity: 0.6;
  margin: 0 16px 0 64px;
}

/* ─── 4. FLUTTER MVP HERO KARTI ─── */
.flutter-mvp-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, var(--flutter-surface, #101217) 100%) !important;
  border: 1.2px solid rgba(245, 158, 11, 0.4) !important;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
}

.flutter-mvp-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
  overflow: hidden;
  flex-shrink: 0;
}

.flutter-mvp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flutter-mvp-details {
  flex: 1;
}

.flutter-mvp-eyebrow {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #f59e0b;
  text-transform: uppercase;
}

.flutter-mvp-name {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
}

.flutter-mvp-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #10b981;
  font-size: 13px;
  font-weight: 900;
}

/* ─── 5. FLUTTER TV CHANNELS ─── */
.flutter-tv-card {
  background: var(--flutter-surface, #101217) !important;
  border: 1px solid var(--flutter-surface-border, #1e2638) !important;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.flutter-tv-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--flutter-text-pri, #ffffff);
  margin-bottom: 10px;
}

.flutter-tv-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flutter-tv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--flutter-surface-subtle, #161922);
  border: 1px solid var(--flutter-surface-border, #1e2638);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--flutter-text-pri, #ffffff);
}

.flutter-tv-pill .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

/* ─── 6. FLUTTER QUICK CLUB CARDS ─── */
.flutter-club-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.flutter-club-quick-card {
  background: var(--flutter-surface, #101217) !important;
  border: 1px solid var(--flutter-surface-border, #1e2638) !important;
  border-radius: 16px;
  padding: 14px 12px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.flutter-club-quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--flutter-primary, #f59e0b) !important;
}

.flutter-club-quick-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 8px;
}

.flutter-club-quick-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--flutter-text-pri, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.flutter-club-quick-link {
  font-size: 10px;
  font-weight: 700;
  color: var(--flutter-primary, #f59e0b);
  margin-top: 4px;
}

/* ─── 7. FLUTTER TIMELINE EVENTS ─── */
.flutter-timeline-wrapper {
  position: relative;
  padding: 16px 0;
}

.flutter-timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--flutter-surface-border, #1e2638);
}

.flutter-timeline-row {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  margin-bottom: 14px;
}

.flutter-timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.flutter-timeline-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--flutter-surface, #101217);
  border: 2.2px solid #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.flutter-timeline-icon-circle.goal { border-color: #10b981; }
.flutter-timeline-icon-circle.yellow { border-color: #f59e0b; }
.flutter-timeline-icon-circle.red { border-color: #ef4444; }
.flutter-timeline-icon-circle.sub { border-color: #38bdf8; }

.flutter-timeline-minute-tag {
  margin-top: 3px;
  padding: 1px 4px;
  background: var(--flutter-surface-subtle, #161922);
  border: 0.8px solid var(--flutter-surface-border, #1e2638);
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 900;
  color: var(--flutter-text-pri, #ffffff);
}

.flutter-event-card {
  background: var(--flutter-surface, #101217) !important;
  border: 1.1px solid var(--flutter-surface-border, #1e2638) !important;
  border-radius: 14px;
  padding: 9px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.flutter-timeline-row.home .flutter-event-card {
  margin-right: 10px;
  text-align: right;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

.flutter-timeline-row.away .flutter-event-card {
  margin-left: 10px;
  text-align: left;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

.flutter-event-type-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.flutter-event-score-pill {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.2);
  font-size: 10px;
  font-weight: 900;
  color: #f59e0b;
  margin: 0 4px;
}

.flutter-event-player {
  font-size: 13px;
  font-weight: 800;
  color: var(--flutter-text-pri, #ffffff);
}

.flutter-event-sub-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
}

.flutter-timeline-row.home .flutter-event-sub-row {
  justify-content: flex-end;
}

.flutter-event-sub-in { color: #10b981; }
.flutter-event-sub-out { color: #ef4444; }

/* ─── 8. FLUTTER COMPARISON (H2H) ─── */
.flutter-h2h-summary-card {
  background: var(--flutter-surface, #101217) !important;
  border: 1px solid var(--flutter-surface-border, #1e2638) !important;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.flutter-h2h-bar-container {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
  background: var(--flutter-surface-subtle, #161922);
}

.flutter-h2h-bar-home { background: var(--flutter-primary, #f59e0b); }
.flutter-h2h-bar-draw { background: #64748b; }
.flutter-h2h-bar-away { background: #38bdf8; }

.flutter-h2h-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: var(--flutter-text-pri, #ffffff);
}

/* ─── 9. FLUTTER SPOTLIGHT MATCH (TAKIM DETAY) ─── */
.flutter-spotlight-match {
  background: var(--flutter-surface, #101217) !important;
  border: 1.2px solid var(--flutter-surface-border, #1e2638) !important;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.flutter-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #0f172a;
  background: var(--flutter-primary, #f59e0b);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.flutter-spotlight-badge.live {
  background: #ef4444;
  color: #ffffff;
}

.flutter-spotlight-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.flutter-spotlight-team img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 6px;
}

.flutter-spotlight-team strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--flutter-text-pri, #ffffff);
}

.flutter-spotlight-center .score {
  font-size: 26px;
  font-weight: 900;
  color: var(--flutter-text-pri, #ffffff);
  line-height: 1;
}

.flutter-spotlight-center .kickoff {
  font-size: 12px;
  font-weight: 800;
  color: var(--flutter-text-muted, #64748b);
  margin-top: 4px;
}

.flutter-spotlight-action {
  margin-top: 14px;
  text-align: center;
}

.flutter-spotlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--flutter-surface-subtle, #161922);
  border: 1px solid var(--flutter-surface-border, #1e2638);
  border-radius: 10px;
  color: var(--flutter-text-pri, #ffffff);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.15s ease;
}

.flutter-spotlight-btn:hover {
  background: var(--flutter-primary, #f59e0b);
  color: #0f172a;
  border-color: var(--flutter-primary, #f59e0b);
}

/* ─── 10. FLUTTER STATS CAPSULE (6 STATS IN 1 ROW) ─── */
.flutter-stats-capsule-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  background: var(--flutter-surface-subtle, #161922) !important;
  border: 1px solid var(--flutter-surface-border, #1e2638) !important;
  border-radius: 14px;
  padding: 8px 6px;
  margin-bottom: 16px;
  text-align: center;
}

.flutter-capsule-stat-item .lbl {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--flutter-text-muted, #64748b);
  text-transform: uppercase;
}

.flutter-capsule-stat-item .val {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--flutter-text-pri, #ffffff);
  margin-top: 2px;
}

/* ─── 11. FLUTTER FIXTURE FILTER PILLS ─── */
.flutter-fixture-filter-bar {
  display: flex;
  background: var(--flutter-surface, #101217) !important;
  border: 1px solid var(--flutter-surface-border, #1e2638) !important;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 14px;
}

.flutter-fixture-filter-btn {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--flutter-text-sec, #94a3b8) !important;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 0;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.flutter-fixture-filter-btn.active {
  background: var(--flutter-primary, #f59e0b) !important;
  color: #0f172a !important;
  font-weight: 900 !important;
}

/* ─── 12. FLUTTER SQUAD GROUP (OYUNCU TABI) ─── */
.flutter-squad-group-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.1px;
  color: var(--flutter-text-muted, #64748b);
  text-transform: uppercase;
  margin: 16px 4px 8px 4px;
}

.flutter-player-card {
  background: var(--flutter-surface, #101217) !important;
  border: 1px solid var(--flutter-surface-border, #1e2638) !important;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.flutter-player-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--flutter-surface-subtle, #161922);
  border: 1px solid var(--flutter-surface-border, #1e2638);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--flutter-text-pri, #ffffff);
  flex-shrink: 0;
}

.flutter-player-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--flutter-surface-border, #1e2638);
  overflow: hidden;
  flex-shrink: 0;
}

.flutter-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flutter-player-info {
  flex: 1;
  min-width: 0;
}

.flutter-player-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--flutter-text-pri, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flutter-player-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--flutter-text-muted, #64748b);
}

.flutter-player-pos-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--flutter-primary, #f59e0b);
  font-size: 10.5px;
  font-weight: 800;
}

/* Ensure hidden panes stay hidden */
[hidden],
.tab-pane[hidden] {
  display: none !important;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@media (max-width: 640px) {
  .flutter-scoreboard-main {
    gap: 8px;
  }
  .flutter-team-name {
    font-size: 12px;
    max-width: 100px;
  }
  .flutter-score-val {
    font-size: 26px;
  }
  .flutter-stats-capsule-row {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 8px;
  }
}
