/* ─── Base Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { min-height: 100dvh; line-height: 1.6; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; color: var(--color-text); background: var(--color-bg); transition: background 0.3s, color 0.3s; }
img, svg { display: block; max-width: 100%; height: auto; }
img { image-rendering: auto; -webkit-image-rendering: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }
::selection { background: var(--color-primary); color: #fff; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ─── Tokens ────────────────────────────────────────────────────────────── */
:root, [data-theme="light"] {
  --color-bg: #f0f0eb; --color-surface: #fff; --color-surface-2: #f7f7f3;
  --color-surface-hover: #ededea; --color-border: #dddad3; --color-border-subtle: #e8e5df;
  --color-text: #111; --color-text-secondary: #4a4a4a; --color-text-muted: #8a8a82;
  --color-primary: #0033A0; --color-primary-hover: #002880;
  --color-accent-mls: #0033A0; --color-accent-j1: #E60012; --color-accent-k1: #00843D;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06); --shadow-md: 0 4px 16px rgba(0,0,0,0.08); --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --header-bg: rgba(255,255,255,0.92); --card-bg: #fff; --badge-bg: rgba(0,0,0,0.04);
  --field-bg: #2d8a4e; --field-line: rgba(255,255,255,0.35);
  --status-danger: #dc2626; --status-warning: #f59e0b; --status-info: #3b82f6; --status-success: #22c55e;
  --glow-mls: rgba(0,51,160,0.15); --glow-j1: rgba(230,0,18,0.15); --glow-k1: rgba(0,132,61,0.15);
}
[data-theme="dark"] {
  --color-bg: #080c10; --color-surface: #0f1419; --color-surface-2: #141a22;
  --color-surface-hover: #1a222d; --color-border: #1c2736; --color-border-subtle: #151e2a;
  --color-text: #eaeaea; --color-text-secondary: #a0a0a0; --color-text-muted: #5a5a5a;
  --color-primary: #4d8fff; --color-primary-hover: #6aa3ff;
  --color-accent-mls: #4d8fff; --color-accent-j1: #ff4d5e; --color-accent-k1: #3dcc7a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4); --shadow-md: 0 4px 16px rgba(0,0,0,0.5); --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --header-bg: rgba(8,12,16,0.92); --card-bg: #0f1419; --badge-bg: rgba(255,255,255,0.05);
  --field-bg: #0d3d1f; --field-line: rgba(255,255,255,0.15);
  --status-danger: #ef4444; --status-warning: #fbbf24; --status-info: #60a5fa; --status-success: #34d399;
  --glow-mls: rgba(77,143,255,0.12); --glow-j1: rgba(255,77,94,0.12); --glow-k1: rgba(61,204,122,0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #080c10; --color-surface: #0f1419; --color-surface-2: #141a22;
    --color-surface-hover: #1a222d; --color-border: #1c2736; --color-border-subtle: #151e2a;
    --color-text: #eaeaea; --color-text-secondary: #a0a0a0; --color-text-muted: #5a5a5a;
    --color-primary: #4d8fff; --color-primary-hover: #6aa3ff;
    --color-accent-mls: #4d8fff; --color-accent-j1: #ff4d5e; --color-accent-k1: #3dcc7a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4); --shadow-md: 0 4px 16px rgba(0,0,0,0.5); --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
    --header-bg: rgba(8,12,16,0.92); --card-bg: #0f1419; --badge-bg: rgba(255,255,255,0.05);
    --field-bg: #0d3d1f; --field-line: rgba(255,255,255,0.15);
    --status-danger: #ef4444; --status-warning: #fbbf24; --status-info: #60a5fa; --status-success: #34d399;
    --glow-mls: rgba(77,143,255,0.12); --glow-j1: rgba(255,77,94,0.12); --glow-k1: rgba(61,204,122,0.12);
  }
}

/* ─── Header ────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 1.5rem;
  height: 60px; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
/* Logo with chibi */
.logo {
  display: flex; align-items: center; gap: 0.625rem;
  color: var(--color-text); flex-shrink: 0;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }
.logo-chibi {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: contain;
  background: rgba(147,130,200,0.12);
  border: 2px solid rgba(147,130,200,0.3);
  padding: 2px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.logo:hover .logo-chibi { transform: scale(1.1) rotate(-5deg); }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-text {
  font-weight: 900; font-size: 0.9375rem;
  letter-spacing: -0.03em; text-transform: uppercase;
}
.logo-sub {
  font-size: 0.5625rem; font-weight: 600;
  color: var(--color-text-muted); letter-spacing: 0.06em;
  text-transform: uppercase; margin-top: 1px;
}
/* Nav links */
.header-nav { display: flex; align-items: center; gap: 0.125rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.75rem; font-size: 0.8125rem;
  font-weight: 600; color: var(--color-text-muted);
  border-radius: 8px; transition: all 0.18s;
  letter-spacing: -0.01em; position: relative;
}
.nav-link:hover { color: var(--color-text); background: var(--badge-bg); }
.nav-link.active {
  color: var(--color-text);
  background: rgba(255,255,255,0.06);
}
.nav-link.active::after {
  content: ''; position: absolute; bottom: -2px;
  left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 1px;
  background: #E60012;
}
/* Nav divider + league links */
.nav-divider {
  width: 1px; height: 20px;
  background: var(--color-border);
  margin: 0 0.375rem;
}
.nav-league {
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.3rem 0.625rem;
  border-radius: 6px;
}
.nav-league:hover { color: var(--nl); background: rgba(255,255,255,0.06); }
.nav-league.active { color: var(--nl); background: rgba(255,255,255,0.08); }
.nav-league.active::after { background: var(--nl); }
/* Header action buttons */
.header-actions { display: flex; align-items: center; gap: 0.25rem; }
.header-actions button {
  width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center;
  border-radius: 10px; color: var(--color-text-secondary);
  transition: all 0.18s;
}
.header-actions button:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.06);
}
.mobile-menu-toggle { display: none; }
/* Mobile menu */
.mobile-menu {
  padding: 0.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--header-bg);
  backdrop-filter: blur(24px);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-link {
  padding: 0.75rem 1rem; font-size: 0.9375rem;
  font-weight: 600; color: var(--color-text-secondary);
  border-radius: 10px; transition: all 0.18s;
}
.mobile-nav-link:hover { color: var(--color-text); background: var(--badge-bg); }

/* ─── Search Modal ──────────────────────────────────────────────────────── */
.search-modal { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; padding-top: 100px; }
.search-modal[hidden] { display: none; }
.search-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); }
.search-modal-content { position: relative; width: 100%; max-width: 580px; margin: 0 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); max-height: 55vh; display: flex; flex-direction: column; }
.search-input-wrapper { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1.125rem; border-bottom: 1px solid var(--color-border); }
.search-input-wrapper svg { color: var(--color-text-muted); flex-shrink: 0; }
.search-input-wrapper input { flex: 1; background: none; border: none; font-size: 0.9375rem; color: var(--color-text); outline: none; }
.search-input-wrapper input::placeholder { color: var(--color-text-muted); }
.search-input-wrapper kbd { font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem; padding: 0.125rem 0.375rem; border: 1px solid var(--color-border); border-radius: 4px; color: var(--color-text-muted); background: var(--badge-bg); }
#search-results-preview { overflow-y: auto; padding: 0.375rem; }
.search-result-item { display: block; padding: 0.625rem 0.875rem; border-radius: 8px; transition: background 0.15s; }
.search-result-item:hover { background: var(--color-surface-hover); }
.search-result-item h4 { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.125rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.search-result-item p { font-size: 0.6875rem; color: var(--color-text-muted); }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 2.5rem 0 1.25rem; text-align: center; position: relative; }
.hero-title { font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem); color: var(--color-text-secondary); max-width: 520px; margin: 0 auto; letter-spacing: -0.01em; }
.league-pills { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.league-pill { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.875rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; border: 1.5px solid var(--color-border); transition: all 0.22s; letter-spacing: -0.01em; }
.league-pill:hover { border-color: currentColor; transform: translateY(-1px); }
.league-pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.league-pill[data-league="mls"] { color: var(--color-accent-mls); } .league-pill[data-league="mls"] .dot { background: var(--color-accent-mls); }
.league-pill[data-league="j1-league"] { color: var(--color-accent-j1); } .league-pill[data-league="j1-league"] .dot { background: var(--color-accent-j1); }
.league-pill[data-league="k-league-1"] { color: var(--color-accent-k1); } .league-pill[data-league="k-league-1"] .dot { background: var(--color-accent-k1); }

/* ─── Update Indicator ──────────────────────────────────────────────────── */
.update-indicator { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.375rem 1rem; font-size: 0.6875rem; color: var(--color-text-muted); }
.update-indicator .pulse { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ═══ J-LEAGUE STYLE HOMEPAGE ═══════════════════════════════════════════ */

/* Club Logos Ticker */
.jl-club-ticker {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  padding: 0.625rem 0;
  position: relative;
}
.jl-club-ticker::before,
.jl-club-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.jl-club-ticker::before { left: 0; background: linear-gradient(90deg, var(--color-bg) 0%, transparent 100%); }
.jl-club-ticker::after { right: 0; background: linear-gradient(-90deg, var(--color-bg) 0%, transparent 100%); }
.jl-club-ticker-inner {
  display: flex;
  gap: 1.25rem;
  animation: jl-ticker-scroll 60s linear infinite;
  width: max-content;
}
.jl-ticker-logo {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}
.jl-ticker-logo:hover { opacity: 1; transform: scale(1.2); }
.jl-ticker-logo img { width: 100%; height: 100%; object-fit: contain; }
@keyframes jl-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Carousel */
.jl-hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  max-height: 600px;
  overflow: hidden;
  background: #111;
}
.jl-hero-slides { position: relative; width: 100%; height: 100%; }
.jl-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.jl-hero-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.jl-hero-slide img:not(.jl-hero-team-logo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.jl-hero-slide.no-img {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}
.jl-hero-slide.no-img[data-league="mls"] { background: linear-gradient(135deg, #001a4d 0%, #0033A0 50%, #004dcc 100%); }
.jl-hero-slide.no-img[data-league="j1-league"] { background: linear-gradient(135deg, #4d0008 0%, #E60012 50%, #ff1a2e 100%); }
.jl-hero-slide.no-img[data-league="k-league-1"] { background: linear-gradient(135deg, #002e1a 0%, #00843D 50%, #00b359 100%); }
.jl-hero-team-logo {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0.15;
  filter: grayscale(0.5);
  z-index: 0;
}
.jl-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2.5rem 2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.05) 75%, transparent 100%);
  color: #fff;
  z-index: 2;
}
.jl-hero-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E60012;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.jl-hero-tag[data-league="mls"] { color: #4d9fff; }
.jl-hero-tag[data-league="j1-league"] { color: #ff4d5a; }
.jl-hero-tag[data-league="k-league-1"] { color: #4ddb8a; }
.jl-hero-headline {
  font-size: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jl-hero-original {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jl-hero-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.jl-hero-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.jl-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.jl-hero-arrow:hover { background: rgba(0,0,0,0.75); }
.jl-hero-prev { left: 1rem; }
.jl-hero-next { right: 1rem; }
.jl-hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}
.jl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}
.jl-dot.active { background: #fff; border-color: #fff; }
.jl-hero-skeleton {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-surface) 50%, var(--color-surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* League Quick Nav */
.jl-league-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.jl-league-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  transition: all 0.22s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.jl-league-btn:hover {
  border-color: var(--lc);
  color: var(--lc);
  transform: translateY(-1px);
}
.jl-league-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Section Headers (J-League style) */
.jl-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.jl-section-header {
  margin-bottom: 1.75rem;
}
.jl-section-title {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.jl-section-line {
  width: 100%;
  height: 3px;
  background: var(--color-border);
  position: relative;
}
.jl-section-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 60px;
  background: #E60012;
}

/* News Filters */
.jl-news-filters {
  margin-bottom: 1.5rem;
}
.jl-news-filter-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

/* Featured Article (J-League style) */
.jl-featured {
  margin-bottom: 2rem;
}
.jl-featured-skeleton {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-surface) 50%, var(--color-surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.jl-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.jl-featured-card:hover { opacity: 0.92; }
.jl-featured-img {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--color-surface-2);
}
.jl-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.jl-featured-card:hover .jl-featured-img img { transform: scale(1.03); }
.jl-featured-body {
  padding: 1.25rem 0;
}
.jl-cat-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E60012;
}
.jl-cat-underline {
  width: 32px;
  height: 3px;
  background: #E60012;
  margin: 0.5rem 0;
}
.jl-featured-title {
  font-size: clamp(1.125rem, 1rem + 1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.jl-featured-original {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jl-featured-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.jl-featured-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* News Grid (J-League 2-col) */
.jl-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* View All Button */
.jl-view-all-wrap {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}
.jl-view-all-btn {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  border: 2px solid var(--color-text);
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  transition: all 0.2s;
}
.jl-view-all-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* Stats Row (2-col) */
.jl-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.jl-stats-col {
  min-width: 0;
}

/* Trending List */
.jl-trending-list .trending-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.jl-trending-list .trending-item:last-child { border-bottom: none; }

/* J-League home responsive */
@media (max-width: 768px) {
  .jl-hero-carousel { aspect-ratio: 16/9; max-height: 360px; }
  .jl-hero-arrow { display: none; }
  .jl-hero-overlay { padding: 2rem 1.25rem 1.25rem; }
  .jl-hero-headline { font-size: 1.125rem; -webkit-line-clamp: 2; }
  .jl-league-nav { gap: 0.5rem; padding: 1rem; }
  .jl-league-btn { padding: 0.5rem 1rem; font-size: 0.75rem; }
  .jl-news-grid { grid-template-columns: 1fr; }
  .jl-stats-row { grid-template-columns: 1fr; }
  .jl-section { padding: 1.5rem 1rem; }
  .jl-featured-img { aspect-ratio: 16/9; }
  .jl-news-filter-row { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .jl-news-filter-row::-webkit-scrollbar { display: none; }
}
@media (max-width: 480px) {
  .jl-club-ticker-inner { gap: 0.75rem; }
  .jl-ticker-logo { width: 24px; height: 24px; }
  .jl-hero-carousel { aspect-ratio: 4/3; max-height: 300px; }
}

/* ─── Filter Bar ────────────────────────────────────────────────────────── */
.filter-bar { position: sticky; top: 56px; z-index: 50; background: var(--header-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--color-border); padding: 0.5rem 0; }
.filter-bar-inner { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 2px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; padding: 2px; }
.filter-btn { padding: 0.3125rem 0.625rem; font-size: 0.75rem; font-weight: 600; border-radius: 6px; color: var(--color-text-secondary); transition: all 0.18s; white-space: nowrap; }
.filter-btn:hover { color: var(--color-text); }
.filter-btn.active { background: var(--color-primary); color: #fff; }
.filter-select { padding: 0.3125rem 0.625rem; font-size: 0.75rem; font-weight: 500; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a6a6a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5rem center; padding-right: 1.5rem; min-width: 140px; }

/* ─── Content Layout ────────────────────────────────────────────────────── */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; max-width: 1320px; margin: 0 auto; padding: 1.5rem; }
.content-main { min-width: 0; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Article Cards — Pro Sports Media Style ───────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.article-card { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; transition: all 0.25s cubic-bezier(0.16,1,0.3,1); display: flex; flex-direction: column; animation: fadeIn 0.35s ease both; }
.article-card:hover { border-color: var(--color-border); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Article card image area */
.article-card-image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--color-surface-2); }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.article-card:hover .article-card-image img { transform: scale(1.05); }
.article-card-image .source-badge { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.25rem 0.5rem; font-size: 0.625rem; font-weight: 700; background: rgba(0,0,0,0.75); color: #fff; border-radius: 4px; backdrop-filter: blur(8px); letter-spacing: 0.02em; text-transform: uppercase; }

/* No-image placeholder with team gradient */
.no-image-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.no-image-placeholder.has-logo { background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface)); }
.no-image-placeholder .placeholder-logo { width: 48px; height: 48px; object-fit: contain; opacity: 0.6; filter: grayscale(20%); }
.no-image-placeholder .placeholder-league-label { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin-top: 0.5rem; }
.no-image-placeholder svg { width: 40px; height: 40px; color: var(--color-text-muted); opacity: 0.15; }

/* Article card body */
.article-card-body { padding: 1rem 1.125rem; flex: 1; display: flex; flex-direction: column; }
.article-card-meta { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.5rem; font-size: 0.6875rem; color: var(--color-text-muted); }
.article-card-meta .source-name { font-weight: 700; color: var(--color-text-secondary); }
.article-card-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--color-text-muted); }
.article-card h3 { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -0.02em; }
.article-card p { font-size: 0.8125rem; color: var(--color-text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.625rem; flex: 1; }
.article-card-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: auto; }

/* Team tags in article cards */
.team-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1875rem 0.5rem; font-size: 0.625rem; font-weight: 700; border-radius: 999px; transition: all 0.18s; }
.team-tag:hover { opacity: 0.8; transform: translateY(-1px); }
.team-tag img.tag-logo { width: 14px; height: 14px; border-radius: 50%; object-fit: contain; }
.team-tag[data-league="mls"] { color: var(--color-accent-mls); background: rgba(0,51,160,0.08); }
.team-tag[data-league="j1-league"] { color: var(--color-accent-j1); background: rgba(230,0,18,0.08); }
.team-tag[data-league="k-league-1"] { color: var(--color-accent-k1); background: rgba(0,132,61,0.08); }
[data-theme="dark"] .team-tag[data-league="mls"] { background: rgba(77,143,255,0.1); }
[data-theme="dark"] .team-tag[data-league="j1-league"] { background: rgba(255,77,94,0.1); }
[data-theme="dark"] .team-tag[data-league="k-league-1"] { background: rgba(61,204,122,0.1); }
.league-tag { display: inline-flex; padding: 0.1875rem 0.5rem; font-size: 0.625rem; font-weight: 700; border-radius: 999px; }
.league-tag[data-league="mls"] { color: var(--color-accent-mls); background: rgba(0,51,160,0.08); }
.league-tag[data-league="j1-league"] { color: var(--color-accent-j1); background: rgba(230,0,18,0.08); }
.league-tag[data-league="k-league-1"] { color: var(--color-accent-k1); background: rgba(0,132,61,0.08); }
[data-theme="dark"] .league-tag[data-league="mls"] { background: rgba(77,143,255,0.1); }
[data-theme="dark"] .league-tag[data-league="j1-league"] { background: rgba(255,77,94,0.1); }
[data-theme="dark"] .league-tag[data-league="k-league-1"] { background: rgba(61,204,122,0.1); }

/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar { position: sticky; top: calc(56px + 44px + 1.5rem); max-height: calc(100vh - 56px - 44px - 3rem); overflow-y: auto; }
.sidebar-widget { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.sidebar-widget h3 { font-size: 0.8125rem; font-weight: 800; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.375rem; letter-spacing: -0.02em; }
.trending-item { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--color-border-subtle); font-size: 0.8125rem; }
.trending-item:last-child { border-bottom: none; }
.trending-item a { font-weight: 600; display: flex; align-items: center; gap: 0.5rem; transition: color 0.15s; }
.trending-item a:hover { color: var(--color-primary); }
.trending-item a img { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; }
.trending-item .count { font-size: 0.75rem; color: var(--color-text-muted); font-weight: 700; font-family: 'JetBrains Mono', monospace; background: var(--badge-bg); padding: 0.125rem 0.5rem; border-radius: 999px; }
.league-stats-item { display: flex; align-items: center; justify-content: space-between; padding: 0.4375rem 0; }
.league-stats-item .league-name { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 600; }
.league-stats-item .league-dot { width: 8px; height: 8px; border-radius: 50%; }
.league-stats-item .league-count { font-size: 0.75rem; font-weight: 700; color: var(--color-text-secondary); font-family: 'JetBrains Mono', monospace; }

/* ─── Team Grid (League Page) ───────────────────────────────────────────── */
.teams-section { padding: 1.25rem 0; }
.teams-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; padding: 0 1.5rem; max-width: 1320px; margin-left: auto; margin-right: auto; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.team-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; transition: all 0.22s; }
.team-card:hover { border-color: var(--color-primary); background: var(--color-surface-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.team-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.team-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.team-card-info { min-width: 0; }
.team-card-info .team-name { font-size: 0.8125rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.team-card-info .team-count { font-size: 0.6875rem; color: var(--color-text-muted); font-weight: 500; }

/* ═══ UNIFIED J-LEAGUE PAGE SYSTEM ═══════════════════════════════════════ */

/* Page wrapper */
.jl-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Page Header — J-League style bold header with red accent line */
.jl-page-header {
  padding: 2.5rem 0 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.jl-page-header-title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.jl-page-header-title img {
  width: 48px; height: 48px; object-fit: contain;
}
.jl-page-header-sub {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}
.jl-page-header-line {
  width: 100%;
  height: 3px;
  background: var(--color-border);
  position: relative;
}
.jl-page-header-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 60px;
  background: #E60012;
}
/* Accent color variants */
.jl-page-header-line.accent-mls::before { background: #0033A0; }
.jl-page-header-line.accent-j1::before { background: #E60012; }
.jl-page-header-line.accent-k1::before { background: #00843D; }
.jl-page-header-line.accent-purple::before { background: #7C3AED; }
.jl-page-header-line.accent-blue::before { background: #3B82F6; }

/* Page Tabs — J-League style */
.jl-page-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.jl-page-tabs::-webkit-scrollbar { display: none; }
.jl-page-tab {
  padding: 0.875rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.18s;
  white-space: nowrap;
  position: relative;
}
.jl-page-tab:hover { color: var(--color-text-secondary); }
.jl-page-tab.active {
  color: var(--color-text);
  border-bottom-color: #E60012;
}
.jl-page-tab[data-accent="mls"].active { border-bottom-color: #0033A0; }
.jl-page-tab[data-accent="j1"].active { border-bottom-color: #E60012; }
.jl-page-tab[data-accent="k1"].active { border-bottom-color: #00843D; }

/* Page Filter pills — J-League style */
.jl-filter-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.jl-filter-pill {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--color-border);
  border-radius: 0;
  color: var(--color-text-muted);
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.jl-filter-pill:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text);
}
.jl-filter-pill.active {
  border-color: var(--color-text);
  color: var(--color-text);
  background: rgba(255,255,255,0.04);
}
.jl-filter-pill[data-color] { --fc: var(--color-text); }
.jl-filter-pill[data-color="mls"].active { border-color: #0033A0; color: #0033A0; background: rgba(0,51,160,0.06); }
.jl-filter-pill[data-color="j1"].active { border-color: #E60012; color: #E60012; background: rgba(230,0,18,0.06); }
.jl-filter-pill[data-color="k1"].active { border-color: #00843D; color: #00843D; background: rgba(0,132,61,0.06); }
[data-theme="dark"] .jl-filter-pill[data-color="mls"].active { color: #4d8fff; border-color: #4d8fff; background: rgba(77,143,255,0.08); }
[data-theme="dark"] .jl-filter-pill[data-color="j1"].active { color: #ff4d5e; border-color: #ff4d5e; background: rgba(255,77,94,0.08); }
[data-theme="dark"] .jl-filter-pill[data-color="k1"].active { color: #3dcc7a; border-color: #3dcc7a; background: rgba(61,204,122,0.08); }

/* Subsection Header */
.jl-sub-header {
  margin-bottom: 1.25rem;
}
.jl-sub-title {
  font-size: 1.125rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.jl-sub-line {
  width: 100%;
  height: 2px;
  background: var(--color-border);
  position: relative;
}
.jl-sub-line::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 40px;
  background: #E60012;
}

/* Empty state — J-League */
.jl-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}
.jl-empty svg { margin: 0 auto 1rem; opacity: 0.3; }
.jl-empty p { font-size: 0.875rem; }

/* Card grid — J-League style */
.jl-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Stat box — J-League */
.jl-stat-box {
  background: var(--card-bg);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  text-align: center;
}
.jl-stat-box-value {
  font-size: 2rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.03em;
}
.jl-stat-box-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .jl-page-header { padding-left: 1rem; padding-right: 1rem; }
  .jl-page { padding: 0 1rem; }
  .jl-page-header-title { font-size: 1.5rem; }
  .jl-page-tabs { gap: 0; }
  .jl-page-tab { padding: 0.75rem 1rem; font-size: 0.75rem; }
  .jl-filter-row { gap: 0.375rem; }
  .jl-filter-pill { padding: 0.375rem 0.875rem; font-size: 0.6875rem; }
  .jl-card-grid { grid-template-columns: 1fr; }
}

/* ─── League/Team Headers (Legacy — kept for compat) ────────────────────── */
.page-header { padding: 2rem 0 1.25rem; }
.page-header-inner { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.page-header .breadcrumb { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.page-header .breadcrumb a { color: var(--color-primary); font-weight: 500; transition: opacity 0.15s; }
.page-header .breadcrumb a:hover { opacity: 0.8; }
.page-header h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.875rem; }
.page-header h1 img { width: 52px; height: 52px; object-fit: contain; }
.page-header .meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; color: var(--color-text-secondary); flex-wrap: wrap; }
.page-header .meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.page-header .meta .stat { display: flex; align-items: center; gap: 0.25rem; font-weight: 500; }

/* ─── Tabs ──────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--color-border); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn { padding: 0.75rem 1.25rem; font-size: 0.8125rem; font-weight: 700; color: var(--color-text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.18s; white-space: nowrap; letter-spacing: -0.01em; }
.tab-btn:hover { color: var(--color-text-secondary); }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tab-panel { display: none; animation: fadeIn 0.3s ease; }
.tab-panel.active { display: block; }

/* ─── Recap Cards ───────────────────────────────────────────────────────── */
.recap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.875rem; margin-bottom: 1.5rem; }
.recap-card { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 1.125rem; text-align: center; transition: border-color 0.18s; }
.recap-card:hover { border-color: var(--color-primary); }
.recap-card .rc-value { font-size: 1.75rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.03em; }
.recap-card .rc-label { font-size: 0.6875rem; color: var(--color-text-muted); font-weight: 600; margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.recap-team-info { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; }
.recap-team-info h3 { font-size: 0.9375rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.recap-info-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.4375rem 0; font-size: 0.8125rem; border-bottom: 1px solid var(--color-border-subtle); }
.recap-info-row:last-child { border-bottom: none; }
.recap-info-row .label { color: var(--color-text-muted); min-width: 110px; font-weight: 600; text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.03em; }
.recap-info-row .value { font-weight: 600; }

/* ─── Formation / Predicted XI — Pro Style ─────────────────────────────── */
.formation-container { background: linear-gradient(180deg, #1a6b32 0%, #15572a 40%, #0f4520 100%); border-radius: 14px; padding: 1.5rem; position: relative; overflow: hidden; min-height: 440px; border: 1px solid rgba(255,255,255,0.08); }
[data-theme="light"] .formation-container,
:root:not([data-theme]) .formation-container { background: linear-gradient(180deg, #2d8a4e 0%, #247a40 40%, #1c6a34 100%); }
.formation-container::before { content: ''; position: absolute; top: 50%; left: 10%; right: 10%; height: 1px; background: var(--field-line); }
.formation-container::after { content: ''; position: absolute; top: 50%; left: 50%; width: 80px; height: 80px; border: 1px solid var(--field-line); border-radius: 50%; transform: translate(-50%, -50%); }
.formation-title { font-size: 0.9375rem; font-weight: 800; color: #fff; margin-bottom: 1rem; text-align: center; text-shadow: 0 2px 6px rgba(0,0,0,0.4); letter-spacing: -0.02em; }
.formation-grid { display: flex; flex-direction: column; gap: 0; height: 380px; position: relative; z-index: 1; }
.formation-row { display: flex; justify-content: center; gap: 0.5rem; flex: 1; align-items: center; }

/* Player dot with photo */
.player-dot { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; min-width: 60px; }
.player-dot .dot { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.95); display: flex; align-items: center; justify-content: center; font-size: 0.625rem; font-weight: 800; color: var(--field-bg); box-shadow: 0 3px 12px rgba(0,0,0,0.35); border: 2px solid rgba(255,255,255,0.4); overflow: hidden; }
.player-dot .dot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.player-dot .dot .dot-number { font-size: 0.6875rem; font-weight: 900; }
.player-dot .name { font-size: 0.5625rem; font-weight: 700; color: #fff; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,0.6); max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.formation-no-data { text-align: center; padding: 3rem; color: #fff; opacity: 0.6; }
.formation-no-data svg { width: 40px; height: 40px; margin: 0 auto 0.5rem; }

/* ─── Injury Table ──────────────────────────────────────────────────────── */
.injury-table { width: 100%; background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.injury-table table { width: 100%; border-collapse: collapse; }
.injury-table th { font-size: 0.6875rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 0.75rem 1rem; text-align: left; background: var(--color-surface-2); border-bottom: 1px solid var(--color-border); }
.injury-table td { font-size: 0.8125rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border-subtle); }
.injury-table tr:last-child td { border-bottom: none; }
.injury-table tr:hover { background: var(--color-surface-hover); }
.injury-table .player-name { font-weight: 700; }
.status-badge { display: inline-flex; padding: 0.1875rem 0.5rem; border-radius: 999px; font-size: 0.625rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.status-badge.absent { background: rgba(220,38,38,0.1); color: var(--status-danger); }
.status-badge.doubtful { background: rgba(245,158,11,0.1); color: var(--status-warning); }
.status-badge.suspended { background: rgba(59,130,246,0.1); color: var(--status-info); }
.status-badge.unavailable { background: rgba(107,114,128,0.1); color: var(--color-text-muted); }
.status-badge.probable { background: rgba(34,197,94,0.1); color: var(--status-success); }
.injury-empty { text-align: center; padding: 2.5rem 1.5rem; color: var(--color-text-muted); }
.injury-empty svg { width: 36px; height: 36px; margin: 0 auto 0.5rem; opacity: 0.4; }
.injury-empty p { font-size: 0.8125rem; }

/* ─── Standings Table ───────────────────────────────────────────────────── */
.standings-conf-title { font-size: 1rem; font-weight: 800; margin: 1.25rem 0 0.625rem; padding-left: 0.25rem; letter-spacing: -0.02em; }
.standings-table-wrap { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; margin-bottom: 1.25rem; overflow-x: auto; }
.standings-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; min-width: 520px; }
.standings-table th { font-size: 0.6875rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 0.625rem 0.625rem; text-align: center; background: var(--color-surface-2); border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.standings-table td { padding: 0.5rem 0.625rem; border-bottom: 1px solid var(--color-border-subtle); text-align: center; font-variant-numeric: tabular-nums; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; }
.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr:hover { background: var(--color-surface-hover); }
.standings-table th.col-rank, .standings-table td.col-rank { width: 2.25rem; text-align: center; font-weight: 800; color: var(--color-text-muted); }
.standings-table th.col-team, .standings-table td.col-team { text-align: left; min-width: 150px; }
.standings-table th.col-pts, .standings-table td.col-pts { font-weight: 900; color: var(--color-text); font-size: 0.8125rem; }
.standings-table .diff.positive { color: var(--status-success); }
.standings-table .diff.negative { color: var(--status-danger); }
.standings-team { display: flex; align-items: center; gap: 0.5rem; }
.standings-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }
.standings-team span { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 3px; font-size: 0.5625rem; font-weight: 700; font-family: 'Inter', sans-serif; margin-right: 2px; }
.form-dot.win { background: var(--status-success); color: #fff; }
.form-dot.draw { background: #a0a0a0; color: #fff; }
.form-dot.loss { background: var(--status-danger); color: #fff; }
.form-dot.pso-win { background: #f59e0b; color: #fff; }
.form-dot.pso-loss { background: #64748b; color: #fff; }
.form-record { display: inline-flex; gap: 0.375rem; font-size: 0.625rem; font-weight: 700; font-family: 'Inter', sans-serif; }
.form-record .fw { color: var(--status-success); }
.form-record .fd { color: #a0a0a0; }
.form-record .fl { color: var(--status-danger); }
.form-record-plain { font-size: 0.6875rem; color: var(--color-text-muted); font-family: 'JetBrains Mono', monospace; }
.standings-updated { font-size: 0.6875rem; color: var(--color-text-muted); text-align: center; margin-top: 0.5rem; }

/* ─── J1 League Special Format Banner ──────────────────────────────────── */
.j1-format-banner { background: linear-gradient(135deg, rgba(230, 0, 18, 0.12), rgba(230, 0, 18, 0.04)); border: 1px solid rgba(230, 0, 18, 0.25); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.j1-format-title { font-weight: 800; font-size: 0.875rem; color: #E60012; margin-bottom: 0.375rem; letter-spacing: -0.01em; }
.j1-format-desc { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.5rem; font-size: 0.75rem; color: var(--color-text-secondary); line-height: 1.6; }
.j1-format-rule { white-space: nowrap; }
.j1-format-sep { color: var(--color-text-muted); font-size: 0.5rem; }
.j1-table .j1-pso-win { color: #f59e0b; font-weight: 700; }
.j1-table .j1-pso-loss { color: #94a3b8; font-weight: 600; }
.j1-table { min-width: 600px; }
.hide-mobile { }

/* ─── Scorers / Stats ─────────────────────────────────────────────────── */
.scorers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1.25rem; }
.scorers-section { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.scorers-title { font-size: 0.9375rem; font-weight: 800; padding: 1rem 1.125rem 0.625rem; letter-spacing: -0.02em; }
.scorers-list { padding: 0 0.5rem 0.5rem; }
.scorer-row { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.625rem; border-radius: 8px; transition: background 0.15s; }
.scorer-row:hover { background: var(--color-surface-hover); }
.scorer-rank { width: 1.5rem; text-align: center; font-size: 0.75rem; font-weight: 800; color: var(--color-text-muted); font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
.scorer-photo-wrap { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--color-surface-2); border: 2px solid var(--color-border); }
.scorer-photo { width: 100%; height: 100%; object-fit: cover; }
.scorer-photo-placeholder { width: 100%; height: 100%; background: var(--badge-bg); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.03em; }
.scorer-info { flex: 1; min-width: 0; }
.scorer-name { display: block; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scorer-team { display: block; font-size: 0.6875rem; color: var(--color-text-muted); font-weight: 500; }
.scorer-stat { font-size: 1rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; flex-shrink: 0; min-width: 2rem; text-align: right; }

/* ─── Team Roster ─────────────────────────────────────────────────────── */
.roster-summary { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; padding: 0.75rem 1rem; background: var(--color-surface-2); border-radius: 10px; font-size: 0.875rem; font-weight: 700; color: var(--color-text-muted); }
.roster-group { margin-bottom: 1.5rem; }
.roster-group-title { font-size: 0.9375rem; font-weight: 800; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--color-border); letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.5rem; }
.roster-group-count { display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary); color: #fff; font-size: 0.6875rem; font-weight: 700; min-width: 1.375rem; height: 1.375rem; border-radius: 999px; padding: 0 0.375rem; }
.roster-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.roster-card { display: block; text-decoration: none; color: inherit; background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; text-align: center; transition: all 0.22s; cursor: pointer; }
.roster-card:hover { border-color: var(--color-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.roster-card-photo { width: 100%; aspect-ratio: 1; background: var(--color-surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.roster-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.roster-card-initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 900; color: var(--color-text-muted); background: var(--badge-bg); }
.roster-card-info { padding: 0.625rem 0.5rem 0.75rem; }
.roster-number { font-size: 0.625rem; font-weight: 800; color: var(--color-primary); font-family: 'JetBrains Mono', monospace; }
.roster-name { display: block; font-size: 0.75rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.125rem; }
.roster-meta { display: block; font-size: 0.625rem; color: var(--color-text-muted); margin-top: 0.125rem; }

/* ─── Search & Admin Pages ──────────────────────────────────────────────── */
.search-page { max-width: 780px; margin: 0 auto; padding: 1.5rem; }
.search-page h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: 1.25rem; letter-spacing: -0.03em; }
.search-page-form { position: relative; margin-bottom: 1.25rem; }
.search-page-form svg { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); }
.search-page-input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.5rem; font-size: 0.9375rem; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); color: var(--color-text); outline: none; transition: border-color 0.18s; }
.search-page-input:focus { border-color: var(--color-primary); }
.admin-page { max-width: 1320px; margin: 0 auto; padding: 1.5rem; }
.admin-page h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: 1.25rem; letter-spacing: -0.03em; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.875rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 1.125rem; }
.stat-card .stat-label { font-size: 0.6875rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; }
.charts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.chart-card { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 1.25rem; }
.chart-card h3 { font-size: 0.9375rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.02em; }

/* ─── Pagination ────────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.375rem; padding: 1.5rem 0; }
.pagination button { padding: 0.4375rem 1rem; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--color-border); border-radius: 8px; background: var(--card-bg); color: var(--color-text-secondary); transition: all 0.18s; }
.pagination button:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-primary); background: var(--badge-bg); }
.pagination button:disabled { opacity: 0.35; cursor: not-allowed; }
.pagination .page-info { font-size: 0.75rem; color: var(--color-text-muted); padding: 0 0.375rem; font-weight: 600; }

/* ─── Loading & Empty ───────────────────────────────────────────────────── */
.loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 0; color: var(--color-text-muted); gap: 0.75rem; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--color-text-secondary); }
.empty-state h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.375rem; }
.empty-state p { font-size: 0.8125rem; color: var(--color-text-muted); max-width: 380px; margin: 0 auto; }
.skeleton { background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-surface-hover) 50%, var(--color-surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.skeleton-image { aspect-ratio: 16/9; }
.skeleton-text { height: 12px; margin: 0.5rem 1rem; }
.skeleton-text.short { width: 55%; }
.skeleton-text.medium { width: 75%; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--color-border); padding: 2.5rem 0 1.25rem; margin-top: 1.5rem; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.footer-brand { margin-bottom: 1.5rem; }
.footer-logo { font-size: 0.9375rem; font-weight: 800; margin-bottom: 0.375rem; display: block; letter-spacing: -0.02em; }
.footer-desc { font-size: 0.75rem; color: var(--color-text-muted); max-width: 340px; }
.footer-links { display: flex; gap: 3rem; margin-bottom: 1.5rem; }
.footer-col h4 { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.footer-col a { display: block; font-size: 0.8125rem; color: var(--color-text-secondary); padding: 0.1875rem 0; transition: color 0.15s; font-weight: 500; }
.footer-col a:hover { color: var(--color-text); }
.footer-bottom { padding-top: 1.25rem; border-top: 1px solid var(--color-border); }
.footer-attribution { font-size: 0.6875rem; color: var(--color-text-muted); }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.875rem; }
  .sidebar-widget { margin-bottom: 0; }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .filter-bar-inner { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .filter-bar-inner::-webkit-scrollbar { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .teams-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .footer-links { flex-direction: column; gap: 1.25rem; }
  .charts-grid { grid-template-columns: 1fr; }
  .recap-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs { gap: 0; }
  .tab-btn { padding: 0.625rem 0.875rem; font-size: 0.75rem; }
  .formation-container { min-height: 380px; padding: 1rem; }
  .player-dot .dot { width: 34px; height: 34px; font-size: 0.5625rem; }
  .player-dot .name { font-size: 0.5rem; max-width: 58px; }
  .injury-table { font-size: 0.75rem; }
  .hide-mobile { display: none; }
  .standings-table { min-width: 400px; }
  .scorers-grid { grid-template-columns: 1fr; }
  .roster-cards { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .injury-table th, .injury-table td { padding: 0.625rem 0.75rem; }
}
@media (max-width: 480px) {
  .header-inner, .container, .page-header-inner, .filter-bar-inner, .content-layout, .teams-grid { padding-left: 1rem; padding-right: 1rem; }
  .logo-text { font-size: 0.875rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Fixtures Page Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Fixtures Page Container ──────────────────────────────────────────── */
.fixtures-page { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem 2rem; }
.fixtures-page-header { padding: 2rem 0 1.5rem; text-align: center; }
.fixtures-page-header h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 0.375rem; }
.fixtures-page-header p { font-size: 0.875rem; color: var(--color-text-secondary); }

/* ─── Fixtures Filter Bar ──────────────────────────────────────────────── */
.fixtures-filters { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.fixtures-league-tabs { display: flex; gap: 2px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; padding: 2px; }
.fixtures-league-tab { padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 700; border-radius: 6px; color: var(--color-text-secondary); transition: all 0.18s; white-space: nowrap; cursor: pointer; border: none; background: none; }
.fixtures-league-tab:hover { color: var(--color-text); }
.fixtures-league-tab.active { background: var(--color-primary); color: #fff; }

.fixtures-date-nav { display: flex; align-items: center; gap: 0.5rem; }
.fixtures-date-nav button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-secondary); transition: all 0.18s; cursor: pointer; }
.fixtures-date-nav button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.fixtures-date-label { font-size: 0.8125rem; font-weight: 700; min-width: 140px; text-align: center; }

/* ─── Fixture Date Group ───────────────────────────────────────────────── */
.fixture-date-group { margin-bottom: 1.25rem; }
.fixture-date-group-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); margin-bottom: 0.75rem; }
.fixture-list { display: flex; flex-direction: column; gap: 0.625rem; }

/* ─── Fixture Card ─────────────────────────────────────────────────────── */
.fixture-card { display: block; background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 1rem 1.25rem; transition: all 0.25s cubic-bezier(0.16,1,0.3,1); cursor: pointer; text-decoration: none; color: inherit; position: relative; overflow: hidden; }
.fixture-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fixture-accent, var(--color-primary)); border-radius: 3px 0 0 3px; }
.fixture-card:hover { border-color: var(--color-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.fixture-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.fixture-card-league { display: flex; align-items: center; gap: 0.375rem; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.fixture-card-league .league-dot { width: 6px; height: 6px; border-radius: 50%; }
.fixture-card-status { font-size: 0.625rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.125rem 0.5rem; border-radius: 999px; }
.fixture-card-status.scheduled { background: var(--badge-bg); color: var(--color-text-muted); }
.fixture-card-status.live { background: rgba(34,197,94,0.12); color: var(--status-success); animation: pulse 2s ease-in-out infinite; }
.fixture-card-status.finished { background: rgba(59,130,246,0.1); color: var(--status-info); }

.fixture-card-matchup { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 0.75rem; }
.fixture-card-team { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; }
.fixture-card-team.home { justify-content: flex-end; text-align: right; }
.fixture-card-team.away { justify-content: flex-start; }
.fixture-card-team img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.fixture-card-team-name { font-size: 0.875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.fixture-card-score { font-size: 1.25rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; min-width: 80px; text-align: center; letter-spacing: -0.02em; flex-shrink: 0; }
.fixture-card-score .score-divider { color: var(--color-text-muted); margin: 0 0.125rem; }
.fixture-card-time { font-size: 0.75rem; color: var(--color-text-secondary); font-weight: 600; }

.fixture-card-predictions { display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding-top: 0.625rem; border-top: 1px solid var(--color-border-subtle); }
.fixture-card-pred-item { text-align: center; }
.fixture-card-pred-item .pred-value { font-size: 0.8125rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; color: var(--color-text); }
.fixture-card-pred-item .pred-label { font-size: 0.5625rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.0625rem; }

/* ─── Fixture Detail Page ──────────────────────────────────────────────── */
.fixture-detail { max-width: 960px; margin: 0 auto; padding: 0 1.5rem 2rem; }

.fixture-detail-header { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 14px; padding: 2rem; text-align: center; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.fixture-detail-header::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--fixture-accent, var(--color-primary)); }
.fixture-detail-meta { font-size: 0.6875rem; color: var(--color-text-muted); margin-bottom: 1rem; font-weight: 600; }
.fixture-detail-meta span { margin: 0 0.375rem; }

.fixture-detail-matchup { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-bottom: 0.75rem; }
.fixture-detail-team { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; max-width: 200px; }
.fixture-detail-team img { width: 56px; height: 56px; object-fit: contain; }
.fixture-detail-team-name { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; text-align: center; }
.fixture-detail-team-record { font-size: 0.6875rem; color: var(--color-text-muted); font-weight: 600; }
.fixture-detail-score { font-size: 2.5rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.03em; min-width: 100px; }
.fixture-detail-score .vs-text { font-size: 1.25rem; color: var(--color-text-muted); font-family: 'Inter', sans-serif; font-weight: 700; }
.fixture-detail-venue { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.5rem; }

/* Back link */
.fixture-back { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 1rem; transition: color 0.15s; }
.fixture-back:hover { color: var(--color-primary); }
.fixture-back svg { width: 16px; height: 16px; }

/* ─── Fixture Tabs ─────────────────────────────────────────────────────── */
.fixture-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--color-border); margin-bottom: 1.5rem; overflow-x: auto; }
.fixture-tab-btn { padding: 0.75rem 1.25rem; font-size: 0.8125rem; font-weight: 700; color: var(--color-text-muted); border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.18s; white-space: nowrap; cursor: pointer; letter-spacing: -0.01em; }
.fixture-tab-btn:hover { color: var(--color-text-secondary); }
.fixture-tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.fixture-tab-panel { display: none; animation: fadeIn 0.3s ease; }
.fixture-tab-panel.active { display: block; }

/* ─── Prediction Grid ──────────────────────────────────────────────────── */
.prediction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.prediction-card { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 1rem; text-align: center; transition: border-color 0.18s; }
.prediction-card:hover { border-color: var(--color-primary); }
.prediction-card .pred-big { font-size: 1.75rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.03em; line-height: 1; }
.prediction-card .pred-unit { font-size: 0.875rem; font-weight: 700; color: var(--color-text-muted); }
.prediction-card .pred-title { font-size: 0.625rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.375rem; }

/* ─── Stat Compare Row ─────────────────────────────────────────────────── */
.stat-compare-section { margin-bottom: 1.5rem; }
.stat-compare-section h3 { font-size: 0.875rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.stat-compare-row { display: grid; grid-template-columns: 50px 1fr 100px 1fr 50px; align-items: center; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--color-border-subtle); }
.stat-compare-row:last-child { border-bottom: none; }
.stat-compare-row .stat-val { font-size: 0.8125rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.stat-compare-row .stat-val.home { text-align: right; }
.stat-compare-row .stat-val.away { text-align: left; }
.stat-compare-row .stat-label { text-align: center; font-size: 0.6875rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.03em; }

.stat-bar-container { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--color-surface-2); }
.stat-bar-home { height: 100%; background: var(--color-primary); border-radius: 3px 0 0 3px; transition: width 0.6s cubic-bezier(0.16,1,0.3,1); }
.stat-bar-away { height: 100%; background: var(--status-danger); border-radius: 0 3px 3px 0; transition: width 0.6s cubic-bezier(0.16,1,0.3,1); margin-left: auto; }

/* ─── H2H Section ──────────────────────────────────────────────────────── */
.h2h-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
.h2h-summary-card { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 1rem; text-align: center; }
.h2h-summary-card .h2h-num { font-size: 1.5rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; }
.h2h-summary-card .h2h-label { font-size: 0.625rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.25rem; }

.h2h-table { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.h2h-table table { width: 100%; border-collapse: collapse; }
.h2h-table th { font-size: 0.6875rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 0.625rem 1rem; text-align: left; background: var(--color-surface-2); border-bottom: 1px solid var(--color-border); }
.h2h-table td { font-size: 0.8125rem; padding: 0.625rem 1rem; border-bottom: 1px solid var(--color-border-subtle); }
.h2h-table tr:last-child td { border-bottom: none; }
.h2h-table tr:hover { background: var(--color-surface-hover); }
.h2h-table .h2h-score { font-weight: 800; font-family: 'JetBrains Mono', monospace; text-align: center; }
.h2h-table .h2h-date { color: var(--color-text-muted); font-size: 0.75rem; }

/* ─── Form Timeline ────────────────────────────────────────────────────── */
.form-timeline-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-timeline { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 1.125rem; }
.form-timeline-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.form-timeline-header img { width: 24px; height: 24px; object-fit: contain; }
.form-timeline-header span { font-size: 0.875rem; font-weight: 800; letter-spacing: -0.02em; }

.form-timeline-dots { display: flex; gap: 0.25rem; margin-bottom: 0.75rem; }
.form-dot-lg { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.625rem; font-weight: 800; color: #fff; }
.form-dot-lg.W { background: var(--status-success); }
.form-dot-lg.D { background: #a0a0a0; }
.form-dot-lg.L { background: var(--status-danger); }

.form-match-list { display: flex; flex-direction: column; gap: 0.375rem; }
.form-match-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; padding: 0.375rem 0; border-bottom: 1px solid var(--color-border-subtle); }
.form-match-item:last-child { border-bottom: none; }
.form-match-result { width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.5625rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.form-match-result.W { background: var(--status-success); }
.form-match-result.D { background: #a0a0a0; }
.form-match-result.L { background: var(--status-danger); }
.form-match-opponent { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-match-score { font-weight: 700; font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
.form-streak { font-size: 0.6875rem; color: var(--color-text-muted); font-weight: 600; margin-top: 0.5rem; }

/* ─── Prediction Bars (Over/Under, BTTS, Win) ─────────────────────────── */
.pred-bars-section { margin-bottom: 1.5rem; }
.pred-bars-section h3 { font-size: 0.875rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }

.pred-bar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.625rem; }
.pred-bar-label { font-size: 0.75rem; font-weight: 700; min-width: 60px; white-space: nowrap; }
.pred-bar-track { flex: 1; height: 24px; background: var(--color-surface-2); border-radius: 6px; overflow: hidden; position: relative; }
.pred-bar-fill { height: 100%; border-radius: 6px; transition: width 0.6s cubic-bezier(0.16,1,0.3,1); display: flex; align-items: center; justify-content: flex-end; padding-right: 0.5rem; min-width: 2rem; }
.pred-bar-fill span { font-size: 0.625rem; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.pred-bar-fill.green { background: linear-gradient(90deg, var(--status-success), #2dd36f); }
.pred-bar-fill.blue { background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover)); }
.pred-bar-fill.red { background: linear-gradient(90deg, var(--status-danger), #f87171); }
.pred-bar-fill.gray { background: linear-gradient(90deg, #6b7280, #9ca3af); }
.pred-bar-fill.amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.pred-bar-pct { font-size: 0.75rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; min-width: 36px; text-align: right; }

/* Win probability horizontal bar */
.win-prob-bar { display: flex; height: 32px; border-radius: 8px; overflow: hidden; margin-bottom: 0.5rem; background: var(--color-surface-2); }
.win-prob-segment { display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 800; color: #fff; transition: width 0.6s cubic-bezier(0.16,1,0.3,1); min-width: 2rem; }
.win-prob-segment.home { background: var(--color-primary); }
.win-prob-segment.draw { background: #6b7280; }
.win-prob-segment.away { background: var(--status-danger); }
.win-prob-labels { display: flex; justify-content: space-between; font-size: 0.6875rem; font-weight: 700; color: var(--color-text-muted); }

/* ─── BTTS Gauge ───────────────────────────────────────────────────────── */
.btts-gauge { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; margin-bottom: 1.25rem; }
.btts-gauge-circle { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.btts-gauge-circle svg { transform: rotate(-90deg); }
.btts-gauge-circle .gauge-bg { fill: none; stroke: var(--color-surface-2); stroke-width: 6; }
.btts-gauge-circle .gauge-fill { fill: none; stroke: var(--status-success); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 0.8s cubic-bezier(0.16,1,0.3,1); }
.btts-gauge-value { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.125rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; }
.btts-gauge-info .btts-title { font-size: 0.875rem; font-weight: 800; margin-bottom: 0.25rem; }
.btts-gauge-info .btts-desc { font-size: 0.75rem; color: var(--color-text-muted); line-height: 1.5; }

/* ─── Corner / Goal Timing Prediction ──────────────────────────────────── */
.pred-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.pred-info-card { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 1rem; }
.pred-info-card h4 { font-size: 0.75rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.pred-info-card .pred-info-value { font-size: 1.25rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; }
.pred-info-card .pred-info-desc { font-size: 0.6875rem; color: var(--color-text-muted); margin-top: 0.25rem; }

/* ─── No Fixtures State ────────────────────────────────────────────────── */
.fixtures-empty { text-align: center; padding: 4rem 1.5rem; color: var(--color-text-muted); }
.fixtures-empty svg { width: 48px; height: 48px; margin: 0 auto 0.75rem; opacity: 0.3; }
.fixtures-empty h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.375rem; color: var(--color-text-secondary); }
.fixtures-empty p { font-size: 0.8125rem; }

/* ─── Fixtures Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .fixture-card-matchup { gap: 0.5rem; }
  .fixture-card-team-name { font-size: 0.75rem; }
  .fixture-card-score { font-size: 1rem; min-width: 60px; }
  .fixture-card-predictions { gap: 0.75rem; flex-wrap: wrap; }
  .fixture-detail-matchup { gap: 1rem; }
  .fixture-detail-team img { width: 40px; height: 40px; }
  .fixture-detail-team-name { font-size: 0.875rem; }
  .fixture-detail-score { font-size: 1.75rem; min-width: 70px; }
  .form-timeline-section { grid-template-columns: 1fr; }
  .h2h-summary { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .prediction-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-compare-row { grid-template-columns: 40px 1fr 80px 1fr 40px; gap: 0.375rem; }
  .stat-compare-row .stat-val { font-size: 0.75rem; }
  .stat-compare-row .stat-label { font-size: 0.5625rem; }
  .fixture-tabs { gap: 0; }
  .fixture-tab-btn { padding: 0.625rem 0.875rem; font-size: 0.75rem; }
  .pred-info-grid { grid-template-columns: 1fr; }
  .fixtures-filters { flex-direction: column; align-items: stretch; }
  .fixtures-league-tabs { justify-content: center; }
  .fixtures-date-nav { justify-content: center; }
}
@media (max-width: 480px) {
  .fixture-card { padding: 0.75rem 1rem; }
  .fixture-card-team img { width: 22px; height: 22px; }
  .fixture-detail { padding: 0 1rem 2rem; }
  .fixture-detail-header { padding: 1.25rem; }
  .fixtures-page { padding: 0 1rem 2rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* SORARE PAGE */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.sorare-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  color: var(--text-primary);
}

.sorare-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.sorare-rec-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-color);
}
.sorare-rec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.sorare-rec-pos {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sorare-rec-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.1);
}
.sorare-rec-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.sorare-rec-info {
  text-align: center;
}
.sorare-rec-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.sorare-rec-club {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.sorare-rec-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  justify-content: center;
}
.sorare-score-badge {
  background: #7C3AED;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
}
.sorare-score-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Player Table */
.sorare-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.sorare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.sorare-table thead th {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sorare-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}
.sorare-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.08);
}
.sorare-table td {
  padding: 0.6rem 0.5rem;
  vertical-align: middle;
}

.rank-cell { width: 40px; text-align: center; color: var(--text-secondary); font-weight: 600; }
.photo-cell { width: 36px; }
.sorare-player-thumb { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.name-cell .player-name-main { font-weight: 600; color: var(--text-primary); }
.name-cell .player-club-sub { font-size: 0.75rem; margin-top: 1px; }
.pos-cell { width: 60px; }
.pos-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
}
.score-cell { width: 70px; text-align: center; }

.sorare-score-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}
.sorare-score-pill.big {
  font-size: 1.5rem;
  padding: 6px 18px;
}
.sorare-score-pill.score-high { background: rgba(34,197,94,0.2); color: #22c55e; }
.sorare-score-pill.score-mid { background: rgba(250,204,21,0.2); color: #facc15; }
.sorare-score-pill.score-low { background: rgba(239,68,68,0.2); color: #ef4444; }

/* Player Detail */
.sorare-player-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}
.sorare-player-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #7C3AED;
}
.sorare-player-name { font-size: 1.5rem; font-weight: 800; }
.sorare-player-meta { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.5rem; color: var(--text-secondary); }
.sorare-player-score { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }

.sorare-next-game {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--border-color);
}
.sorare-next-game h4 { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; text-transform: uppercase; }
.next-game-info { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-weight: 600; }
.vs-badge { background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; }
.next-game-date { color: var(--text-secondary); font-weight: 400; font-size: 0.85rem; }

.sorare-detail-section {
  margin: 1.5rem 0;
}
.sorare-detail-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.score-history-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.score-history-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.score-history-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.sorare-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.sorare-detail-table th {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.sorare-detail-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stat-positive { color: #22c55e; font-weight: 600; }
.stat-negative { color: #ef4444; font-weight: 600; }

.back-link {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.back-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* CALENDAR PAGE */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.calendar-team-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s;
  cursor: pointer;
}
.calendar-team-card:hover {
  transform: translateY(-2px);
}

.calendar-team-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.calendar-team-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.calendar-team-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.calendar-match-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.calendar-opponent { color: var(--text-primary); }
.calendar-date { color: var(--text-secondary); font-size: 0.8rem; }

.venue-home {
  background: rgba(34,197,94,0.2);
  color: #22c55e;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}
.venue-away {
  background: rgba(239,68,68,0.2);
  color: #ef4444;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.calendar-probas {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}
.proba-item { text-align: center; }
.proba-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; }
.proba-value { font-size: 1.1rem; font-weight: 700; margin-top: 2px; }
.proba-stars { font-size: 0.8rem; color: #facc15; margin-top: 2px; }

.result-win { color: #22c55e; font-weight: 700; }
.result-draw { color: #facc15; font-weight: 700; }
.result-loss { color: #ef4444; font-weight: 700; }

.calendar-table td { font-size: 0.85rem; }
.calendar-match-row.upcoming { background: rgba(255,255,255,0.03); }
.diff-stars { color: #facc15; font-size: 0.85rem; }

/* Mobile responsive for sorare/calendar */
@media (max-width: 640px) {
  .sorare-rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sorare-player-header {
    flex-direction: column;
    text-align: center;
  }
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  .sorare-table { font-size: 0.8rem; }
  .calendar-probas { gap: 0.5rem; }
}

/* Light mode overrides for sorare/calendar */
[data-theme="light"] .sorare-rec-photo-placeholder {
  background: rgba(0,0,0,0.08);
}
[data-theme="light"] .pos-badge {
  background: rgba(0,0,0,0.08);
}
[data-theme="light"] .vs-badge {
  background: rgba(0,0,0,0.08);
}
[data-theme="light"] .sorare-detail-table td {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="light"] .calendar-match-row.upcoming {
  background: rgba(0,0,0,0.02);
}

/* ─── Page Section & Main Content Padding ─────────────────────────────────── */
#main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-section {
  padding: 1.5rem 0;
}

.page-section .section-header {
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   STRENGTH OF SCHEDULE DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════════ */

.sos-dashboard {
  display: grid;
  grid-template-columns: 1fr 1.6fr 0.6fr;
  gap: 1rem;
  margin-top: 1rem;
}

.sos-panel {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.sos-panel-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
  margin: 0;
}

/* ─── SOS Bar Chart ───────────────────────────────────────────────────────── */
.sos-bar-container {
  padding: 0.25rem 0;
}

.sos-bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 36px;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.sos-bar-row:hover {
  background: var(--color-surface-2);
}

.sos-bar-team {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text-primary);
}

.sos-bar-track {
  height: 18px;
  background: var(--color-surface-2);
  border-radius: 3px;
  overflow: hidden;
}

.sos-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
  min-width: 4px;
  opacity: 0.85;
}

.sos-bar-value {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: right;
}

/* ─── SOS Grid (Next 5 + Home/Away) ───────────────────────────────────────── */
.sos-grid-container {
  /* no max-height so all teams show */
}

.sos-grid-header {
  display: grid;
  grid-template-columns: 170px repeat(5, 1fr);
  gap: 2px;
  padding: 6px 8px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 2;
}

.sos-grid-header > div {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
}

.sos-grid-header .sos-col-team {
  text-align: left;
}

.sos-grid-row {
  display: grid;
  grid-template-columns: 170px repeat(5, 1fr);
  gap: 2px;
  padding: 2px 8px;
  cursor: pointer;
  transition: background 0.15s;
  align-items: center;
}

.sos-grid-row:hover {
  background: var(--color-surface-2);
}

.sos-col-team {
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text-primary);
}

.sos-cell {
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  padding: 4px 2px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sos-cell-empty {
  color: var(--color-text-muted);
  background: transparent;
}

/* ─── Home/Away Badges ────────────────────────────────────────────────────── */
.sos-venue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  width: 28px;
  height: 22px;
  border-radius: 4px;
  margin: 0 auto;
}

.sos-panel-ha .sos-grid-row {
  justify-items: center;
}

/* ─── SOS Legend ──────────────────────────────────────────────────────────── */
.sos-legend {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.sos-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.sos-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

/* ─── SOS Diff Pill (detail page) ─────────────────────────────────────────── */
.sos-diff-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ─── SOS Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sos-dashboard {
    grid-template-columns: 1fr;
  }
  .sos-bar-row {
    grid-template-columns: 140px 1fr 30px;
  }
  .sos-grid-header,
  .sos-grid-row {
    grid-template-columns: 130px repeat(5, 1fr);
  }
}

@media (max-width: 600px) {
  .sos-bar-row {
    grid-template-columns: 110px 1fr 28px;
    padding: 2px 8px;
  }
  .sos-bar-team,
  .sos-col-team {
    font-size: 0.65rem;
  }
  .sos-cell {
    font-size: 0.58rem;
    padding: 3px 1px;
  }
  .sos-grid-header,
  .sos-grid-row {
    grid-template-columns: 100px repeat(5, 1fr);
    gap: 1px;
  }
  .sos-venue-badge {
    width: 22px;
    height: 18px;
    font-size: 0.58rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTYSTATS-LEVEL FIXTURE DETAIL STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Quick badges at top */
.fd-quick-badges { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; justify-content: center; flex-wrap: wrap; }
.fd-badge { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 0.875rem 1.5rem; text-align: center; min-width: 120px; }
.fd-badge-val { display: block; font-size: 1.5rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.03em; line-height: 1.2; }
.fd-badge-label { display: block; font-size: 0.625rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }

/* Form dots in header */
.fd-form-dots { display: flex; gap: 3px; justify-content: center; margin-top: 0.375rem; }
.fd-fdot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; font-size: 0.6rem; font-weight: 800; color: #fff; }
.fd-fdot.W { background: var(--status-success); }
.fd-fdot.D { background: #9ca3af; }
.fd-fdot.L { background: var(--status-danger); }

/* Sections */
.fd-section { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 14px; padding: 1.25rem; margin-bottom: 1rem; }
.fd-section-title { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.fd-section-sub { font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 1rem; }

/* Comparison table */
.fd-comp-table { width: 100%; }
.fd-comp-header { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 0.5rem; padding: 0.625rem 0.75rem; background: var(--color-surface-2); border-radius: 8px 8px 0 0; border-bottom: 1px solid var(--color-border); }
.fd-comp-header .fd-comp-stat-name { font-size: 0.6875rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fd-comp-header .fd-comp-val { font-size: 0.6875rem; font-weight: 700; color: var(--color-text-muted); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-comp-row { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 0.5rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--color-border-subtle); align-items: center; }
.fd-comp-row:last-child { border-bottom: none; }
.fd-comp-row:hover { background: var(--color-surface-hover); }
.fd-comp-row .fd-comp-stat-name { font-size: 0.8125rem; font-weight: 600; }
.fd-comp-row .fd-comp-val { font-size: 0.8125rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; text-align: center; }
.fd-comp-row .fd-comp-val.pct-high { color: var(--status-success); }
.fd-comp-row .fd-comp-val.pct-mid { color: var(--color-primary); }
.fd-comp-row .fd-comp-val.pct-low { color: #f59e0b; }
.fd-comp-row .fd-comp-val.pct-vlow { color: var(--status-danger); }

/* Dual form tables */
.fd-dual-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Form table */
.fd-form-table { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: 12px; padding: 1rem; overflow: hidden; }
.fd-ft-header { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.75rem; }
.fd-ft-header img { width: 32px; height: 32px; object-fit: contain; }
.fd-ft-name { font-size: 0.875rem; font-weight: 800; letter-spacing: -0.02em; }
.fd-ft-sub { font-size: 0.6875rem; color: var(--color-text-muted); }
.fd-ft-form-row { display: flex; gap: 3px; margin-bottom: 0.75rem; }

.fd-stat-table { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; }
.fd-stat-table:last-child { margin-bottom: 0; }
.fd-stat-table thead th { font-size: 0.625rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 0.375rem 0.5rem; text-align: center; border-bottom: 1px solid var(--color-border); }
.fd-stat-table thead th:first-child { text-align: left; }
.fd-stat-table tbody td { font-size: 0.75rem; padding: 0.375rem 0.5rem; text-align: center; border-bottom: 1px solid var(--color-border-subtle); }
.fd-stat-table tbody td:first-child { text-align: left; font-weight: 600; }
.fd-stat-table tbody tr:last-child td { border-bottom: none; }
.fd-stat-table .pct-high { color: var(--status-success); font-weight: 700; }
.fd-stat-table .pct-mid { color: var(--color-primary); font-weight: 700; }
.fd-stat-table .pct-low { color: #f59e0b; font-weight: 700; }
.fd-stat-table .pct-vlow { color: var(--status-danger); font-weight: 700; }
td.fd-mono, .fd-mono { font-family: 'JetBrains Mono', monospace; font-weight: 600; }

/* Events list */
.fd-events-list { display: flex; flex-direction: column; gap: 0.375rem; }
.fd-event-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem; border-radius: 8px; background: var(--color-surface-2); }
.fd-event-time { font-size: 0.75rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; min-width: 32px; color: var(--color-primary); }
.fd-event-icon { font-size: 0.875rem; }
.fd-event-detail { font-size: 0.8125rem; font-weight: 600; }

/* H2H hero */
.fd-h2h-hero { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.fd-h2h-team { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; flex: 1; }
.fd-h2h-team img { width: 48px; height: 48px; object-fit: contain; }
.fd-h2h-tname { font-size: 0.8125rem; font-weight: 800; text-align: center; }
.fd-h2h-tpct { font-size: 0.75rem; font-weight: 700; }
.fd-h2h-center { text-align: center; flex: 1; }
.fd-h2h-count { font-size: 2rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; line-height: 1; }
.fd-h2h-count-label { font-size: 0.625rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.fd-h2h-wdl { display: flex; gap: 0.75rem; justify-content: center; font-size: 0.75rem; font-weight: 700; }

/* H2H stat cards grid */
.fd-h2h-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.fd-h2h-stat-card { background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 0.875rem 0.5rem; text-align: center; }
.fd-h2h-stat-pct { font-size: 1.375rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; line-height: 1.2; }
.fd-h2h-stat-pct.pct-high { color: var(--status-success); }
.fd-h2h-stat-pct.pct-mid { color: var(--color-primary); }
.fd-h2h-stat-pct.pct-low { color: #f59e0b; }
.fd-h2h-stat-pct.pct-vlow { color: var(--status-danger); }
.fd-h2h-stat-label { font-size: 0.6875rem; font-weight: 700; margin-top: 0.125rem; }
.fd-h2h-stat-sub { font-size: 0.5625rem; color: var(--color-text-muted); margin-top: 0.125rem; }

/* Goals hero comparison */
.fd-goals-hero { display: flex; align-items: center; justify-content: center; gap: 2.5rem; padding: 1rem 0; }
.fd-goals-team { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.fd-goals-team img { width: 40px; height: 40px; object-fit: contain; }
.fd-goals-val { font-size: 1.75rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; line-height: 1; }
.fd-goals-sub { font-size: 0.6875rem; color: var(--color-text-muted); font-weight: 600; text-align: center; }

/* Stat hero (corners/cards big number) */
.fd-stat-hero { text-align: center; padding: 0.75rem 0 0.5rem; }
.fd-stat-hero-big { font-size: 2.5rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; line-height: 1; }
.fd-stat-hero-label { font-size: 0.6875rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }

/* Tabs scroll for many tabs */
.fixture-tabs { display: flex; gap: 0.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.25rem; }
.fixture-tabs::-webkit-scrollbar { display: none; }

/* ─── Responsive fixes for fixture detail ─── */
@media (max-width: 640px) {
  .fd-dual-tables { grid-template-columns: 1fr; }
  .fd-h2h-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .fd-comp-header, .fd-comp-row { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 0.25rem; }
  .fd-comp-header .fd-comp-val,
  .fd-comp-row .fd-comp-val { font-size: 0.6875rem; }
  .fd-comp-row .fd-comp-stat-name { font-size: 0.75rem; }
  .fd-quick-badges { gap: 0.5rem; }
  .fd-badge { padding: 0.625rem 0.75rem; min-width: 90px; }
  .fd-badge-val { font-size: 1.25rem; }
  .fd-goals-hero { gap: 1.5rem; }
  .fd-goals-val { font-size: 1.375rem; }
  .fd-h2h-hero { flex-direction: row; padding: 0.75rem 0; }
  .fd-h2h-team img { width: 36px; height: 36px; }
  .fd-h2h-tname { font-size: 0.6875rem; }
  .fd-h2h-count { font-size: 1.5rem; }
  .fd-stat-table thead th { font-size: 0.5625rem; padding: 0.25rem 0.25rem; }
  .fd-stat-table tbody td { font-size: 0.6875rem; padding: 0.25rem 0.25rem; }
  .fixture-tab-btn { font-size: 0.6875rem; padding: 0.5rem 0.75rem; white-space: nowrap; }
}

/* ─── Language Badge ─────────────────────────────────────────────────────── */
.lang-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.125rem;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  z-index: 2;
}

#language-filter .filter-btn {
  font-size: 0.6875rem;
  gap: 0.25rem;
}

/* ─── Translated Titles ───────────────────────────────────────────── */
.translated-title {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--color-text-secondary);
  margin: 0.15rem 0 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.translated-title.tr-fr {
  font-size: 0.75rem;
  margin-top: 0;
  opacity: 0.75;
}
.tr-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-surface-2);
  color: var(--color-text-tertiary);
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ─── Team Hero Section ───────────────────────────────────────────── */
.team-hero {
  padding: 2rem 0 1.5rem;
  background: linear-gradient(180deg, var(--color-surface-2) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}
.team-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.team-hero .breadcrumb {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 1rem;
}
.team-hero .breadcrumb a { color: var(--color-primary); font-weight: 500; transition: opacity 0.15s; }
.team-hero .breadcrumb a:hover { opacity: 0.8; }
.team-hero-content {
  display: flex; align-items: center; gap: 1.5rem;
}
.team-hero-badge {
  flex-shrink: 0;
}
.team-header-logo {
  width: 96px; height: 96px; object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  image-rendering: -webkit-optimize-contrast;
}
.team-hero-info h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 900; letter-spacing: -0.04em; margin-bottom: 0.375rem;
}
.team-hero-info .meta {
  display: flex; align-items: center; gap: 0.5rem 0.75rem;
  font-size: 0.8125rem; color: var(--color-text-secondary); flex-wrap: wrap;
}
.team-hero-info .meta .stat {
  display: flex; align-items: center; gap: 0.25rem; font-weight: 500;
}
.team-hero-stats {
  margin-top: 0.5rem;
  font-size: 0.8125rem; color: var(--color-text-muted);
}
.team-hero-stats .stat { font-weight: 600; }

@media (max-width: 640px) {
  .team-hero-inner { padding: 0 1rem; }
  .team-header-logo { width: 64px; height: 64px; }
  .team-hero-content { gap: 1rem; }
}

/* ─── About Tab ───────────────────────────────────────────────────── */
.about-tab { max-width: 800px; }
.about-header {
  display: flex; align-items: center; gap: 1.25rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}
.about-logo img {
  width: 88px; height: 88px; object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
.about-title h2 {
  font-size: 1.5rem; font-weight: 900; margin-bottom: 0.25rem;
}
.about-stadium-img {
  margin-bottom: 1.5rem; border-radius: 12px; overflow: hidden;
  background: var(--color-surface-2); position: relative;
}
.about-stadium-img img {
  width: 100%; max-height: 440px; object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.about-stadium-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem; font-size: 0.8125rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}
.about-info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.about-info-item {
  background: var(--card-bg); border: 1px solid var(--color-border);
  border-radius: 10px; padding: 1rem;
}
.about-info-label {
  display: block; font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-text-muted); margin-bottom: 0.25rem;
}
.about-info-value {
  display: block; font-size: 0.9375rem; font-weight: 700; color: var(--color-text);
}
.about-jersey {
  margin-bottom: 1.5rem;
}
.about-jersey h3 {
  font-size: 0.875rem; font-weight: 700; margin-bottom: 0.75rem;
}
.about-jersey img {
  max-height: 200px; object-fit: contain;
}
.about-bio {
  margin-bottom: 1.5rem;
}
.about-bio h3 {
  font-size: 0.875rem; font-weight: 700; margin-bottom: 0.75rem;
}
.about-bio p {
  font-size: 0.8125rem; line-height: 1.7; color: var(--color-text-secondary);
  white-space: pre-line;
}

/* ─── Player Profile Page ──────────────────────────────────────────── */
.player-page { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.player-page .back-link { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: var(--color-text-muted); text-decoration: none; margin-bottom: 1.25rem; transition: color 0.2s; }
.player-page .back-link:hover { color: var(--player-accent, var(--color-primary)); }

/* Hero */
.player-hero { display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.5rem; background: var(--card-bg); border: 1px solid var(--color-border); border-radius: 16px; margin-bottom: 1.5rem; }
.player-hero-photo { width: 160px; height: 160px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--color-surface-2); display: flex; align-items: center; justify-content: center; border: 3px solid var(--player-accent, var(--color-primary)); }
.player-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-hero-initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 900; color: var(--color-text-muted); }
.player-hero-info { flex: 1; min-width: 0; }
.player-hero-team { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.player-hero-team a { font-size: 0.8125rem; font-weight: 600; color: var(--color-text-muted); text-decoration: none; transition: color 0.2s; }
.player-hero-team a:hover { color: var(--player-accent, var(--color-primary)); }
.player-team-logo-sm { width: 20px; height: 20px; object-fit: contain; }
.player-hero-name { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.5rem; color: var(--color-text); }
.player-hero-meta { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.player-jersey { display: inline-flex; align-items: center; justify-content: center; background: var(--player-accent, var(--color-primary)); color: #fff; font-weight: 800; font-size: 0.875rem; padding: 0.25rem 0.625rem; border-radius: 8px; font-family: 'JetBrains Mono', monospace; }
.player-position-badge { display: inline-flex; align-items: center; padding: 0.1875rem 0.625rem; background: var(--badge-bg); border-radius: 6px; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.02em; }
.player-flag { width: 22px; height: 16px; object-fit: contain; border-radius: 2px; }
.player-espn-link { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 600; color: var(--player-accent, var(--color-primary)); text-decoration: none; padding: 0.375rem 0.75rem; border: 1px solid var(--player-accent, var(--color-primary)); border-radius: 8px; transition: all 0.2s; }
.player-espn-link:hover { background: var(--player-accent, var(--color-primary)); color: #fff; }

/* Sections */
.player-section { margin-bottom: 1.5rem; }
.player-section-title { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--color-border); letter-spacing: -0.02em; }

/* Info Grid */
.player-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.player-info-card { background: var(--color-surface-2); border-radius: 10px; padding: 0.875rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.player-info-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.player-info-value { font-size: 0.9375rem; font-weight: 700; color: var(--color-text); }

/* Career Timeline */
.career-timeline { position: relative; padding-left: 0; }
.career-entry { display: flex; position: relative; padding-left: 2rem; padding-bottom: 1.25rem; }
.career-dot { position: absolute; left: 0; top: 0.375rem; width: 12px; height: 12px; border-radius: 50%; z-index: 1; border: 2px solid var(--card-bg); box-shadow: 0 0 0 2px var(--color-border); }
.career-line { position: absolute; left: 5px; top: 1rem; bottom: 0; width: 2px; background: var(--color-border); }
.career-content { display: flex; align-items: center; gap: 0.75rem; background: var(--color-surface-2); border-radius: 10px; padding: 0.75rem 1rem; flex: 1; min-width: 0; transition: border-color 0.2s; border: 1px solid transparent; }
.career-active .career-content { border-color: var(--player-accent, var(--color-primary)); background: var(--card-bg); }
.career-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.career-logo-placeholder { width: 36px; height: 36px; background: var(--badge-bg); border-radius: 8px; flex-shrink: 0; }
.career-info { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.career-team { font-size: 0.875rem; font-weight: 700; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.career-seasons { font-size: 0.75rem; font-weight: 500; color: var(--color-text-muted); }
.career-count { font-size: 0.6875rem; color: var(--color-text-muted); }

/* Mobile */
@media (max-width: 640px) {
  .player-hero { flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 1.25rem 1rem; }
  .player-hero-photo { width: 120px; height: 120px; }
  .player-hero-name { font-size: 1.375rem; }
  .player-hero-meta { justify-content: center; }
  .player-hero-team { justify-content: center; }
  .player-info-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Article Reader Page ──────────────────────────────────────────── */
.article-reader {
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}
.reader-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.reader-back:hover { color: var(--color-primary); }

.reader-hero {
  position: relative;
  width: 100%;
  max-height: 560px;
  overflow: hidden;
  border-radius: 12px;
  margin: 1rem 0 1.5rem;
}
.reader-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.reader-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(transparent, var(--color-bg));
}

.reader-content {
  padding: 0;
}

.reader-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.reader-source {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.reader-sep { opacity: 0.4; }

.reader-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}
.reader-title-translated {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin: 0 0 1rem;
  line-height: 1.4;
  font-style: italic;
  padding-left: 0.75rem;
  border-left: 3px solid var(--color-border);
}

.reader-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.reader-team-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 0.3rem 0.65rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.reader-team-tag:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.reader-team-logo {
  width: 18px; height: 18px;
  object-fit: contain;
}

/* Language tabs */
.reader-lang-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--color-surface);
}
.reader-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.reader-tab:not(:last-child) {
  border-right: 1px solid var(--color-border);
}
.reader-tab:hover {
  background: var(--color-surface-2);
}
.reader-tab.active {
  background: var(--color-primary);
  color: #fff;
}

/* Content panels */
.reader-panel { display: none; }
.reader-panel.active { display: block; }

.reader-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
}
.reader-body p {
  margin: 0 0 1.1rem;
}
.reader-body .reader-subheading {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: var(--color-text);
}
.reader-empty {
  color: var(--color-text-tertiary);
  font-style: italic;
}

.reader-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
}
.reader-original-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  transition: all 0.2s;
}
.reader-original-link:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Loading state */
.reader-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  gap: 1rem;
  color: var(--color-text-secondary);
}
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile adjustments */
@media (max-width: 640px) {
  .reader-title { font-size: 1.35rem; }
  .reader-body { font-size: 0.95rem; }
  .reader-hero { max-height: 320px; }
}

/* ─── Details Page (Player Database) ─────────────────────────────────────── */
.details-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.details-header {
  margin-bottom: 1.5rem;
}
.details-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}
.details-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}
.details-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}
.details-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.details-search {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.25rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.details-search:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.details-search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
}
.details-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.details-select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
}
.details-select:focus {
  border-color: var(--color-primary);
}
.details-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 6px;
}
.details-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--card-bg);
}
.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  white-space: nowrap;
}
.details-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}
.details-table th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.6rem;
  border-bottom: 2px solid var(--border-color);
  text-align: left;
  user-select: none;
}
.dt-sortable {
  cursor: pointer;
  transition: color 0.2s;
}
.dt-sortable:hover {
  color: var(--text-primary);
}
.sort-icon {
  font-size: 0.65rem;
  opacity: 0.35;
  margin-left: 2px;
}
.sort-icon.active {
  opacity: 1;
  color: var(--color-primary);
}
.details-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}
.dt-row:hover {
  background: var(--bg-secondary);
}
.dt-row:nth-child(even) {
  background: rgba(128,128,128,0.03);
}
.dt-row:nth-child(even):hover {
  background: var(--bg-secondary);
}
/* Photo column */
.dt-col-photo { width: 36px; }
.dt-photo-wrap {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dt-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dt-photo-placeholder {
  font-size: 0.7rem;
}
/* Name */
.dt-player-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.dt-player-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
/* Position badge */
.dt-pos-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.pos-goalkeeper { background: rgba(241, 196, 15, 0.18); color: #f1c40f; }
.pos-defender { background: rgba(52, 152, 219, 0.18); color: #3498db; }
.pos-midfielder { background: rgba(46, 204, 113, 0.18); color: #2ecc71; }
.pos-forward { background: rgba(231, 76, 60, 0.18); color: #e74c3c; }
/* Team link */
.dt-team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}
.dt-team-link:hover {
  color: var(--color-primary);
}
.dt-team-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
/* League badge */
.dt-league-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}
/* Nationality flag */
.dt-flag {
  width: 16px;
  height: 12px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
  border-radius: 1px;
}
/* Number column */
.dt-cell-num {
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
}
/* Age */
.dt-cell-age {
  text-align: center;
  font-weight: 600;
}
/* Responsive: on mobile, table scrolls horizontally */
@media (max-width: 768px) {
  .details-page { padding: 1rem 0.5rem 2rem; }
  .details-title { font-size: 1.35rem; }
  .details-toolbar { flex-direction: column; gap: 0.5rem; }
  .details-search-wrap { width: 100%; }
  .details-filters { width: 100%; }
  .details-select { flex: 1; min-width: 0; }
  .details-table { font-size: 0.75rem; }
  .details-table th, .details-table td { padding: 0.35rem 0.4rem; }
  .dt-photo-wrap { width: 24px; height: 24px; }
}

/* ─── Data Engine Enhancements ───────────────────────────────────────────── */
.de-icon { font-size: 1.5rem; margin-right: 0.3rem; }
.de-kpi-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.de-kpi {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}
.de-kpi-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary, #3b82f6);
  line-height: 1.1;
}
.de-kpi-danger .de-kpi-val { color: #e74c3c; }
.de-kpi-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
  font-weight: 600;
}

/* XI Badge */
.de-xi-badge {
  display: inline-block;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  cursor: default;
}

/* Status badges */
.de-status-ok {
  display: inline-block;
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.de-status-out {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
}
.de-inj-type {
  display: inline-block;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.de-inj-return {
  font-size: 0.55rem;
  color: var(--text-secondary);
  padding-left: 2px;
}

/* Stat values */
.de-stat-val {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
  padding: 1px 4px;
  border-radius: 4px;
}
.de-stat-goal { color: #f1c40f; background: rgba(241, 196, 15, 0.1); }
.de-stat-assist { color: #3498db; background: rgba(52, 152, 219, 0.1); }

/* News badge */
.de-news-badge {
  display: inline-block;
  background: rgba(155, 89, 182, 0.12);
  color: #9b59b6;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.de-news-badge:hover {
  background: rgba(155, 89, 182, 0.25);
}

/* Dash placeholder */
.de-dash {
  color: var(--text-secondary);
  opacity: 0.25;
  font-size: 0.75rem;
}

/* Column sizing tweaks */
.dt-col-xi, .dt-col-stat, .dt-col-news, .dt-col-status { text-align: center; }
.dt-cell-xi, .dt-cell-stat, .dt-cell-news, .dt-cell-status { text-align: center; }

@media (max-width: 768px) {
  .de-kpi-row { gap: 0.4rem; }
  .de-kpi { padding: 0.4rem 0.6rem; min-width: 80px; }
  .de-kpi-val { font-size: 1.1rem; }
}

/* ─── Player News Section ─────────────────────────────────────────────── */
.player-news-count {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--player-accent, var(--color-primary));
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.player-news-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.player-news-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.player-news-card:hover {
  border-color: var(--player-accent, var(--color-primary));
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.player-news-img {
  width: 90px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-secondary, #1a1a2e);
}
.player-news-img-placeholder {
  width: 90px;
  height: 68px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg-secondary, #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.player-news-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.player-news-source {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.player-news-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.player-news-title-fr {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
}
.player-news-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: auto;
}
@media (max-width: 600px) {
  .player-news-img, .player-news-img-placeholder {
    width: 72px;
    height: 54px;
  }
  .player-news-title { font-size: 0.8rem; }
}

/* ═══ Twitter / X Feed Page ═══ */
/* Twitter tracking stats bar */
.twitter-tracking-stats {
  margin-top: 0.75rem;
}
.twitter-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}
.twitter-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--color-surface-secondary, rgba(255,255,255,0.08));
  color: var(--color-text-secondary, #aaa);
  border: 1px solid var(--color-border, rgba(255,255,255,0.1));
}
.twitter-stat-chip.muted {
  opacity: 0.6;
  font-size: 0.7rem;
}

.twitter-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.twitter-header {
  text-align: center;
  margin-bottom: 2rem;
}
.twitter-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.twitter-x-icon {
  color: var(--color-text);
}
.twitter-title-row h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}
.twitter-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Controls */
.twitter-controls {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.twitter-league-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.twitter-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.twitter-pill:hover {
  border-color: var(--pill-color, var(--color-primary));
  color: var(--pill-color, var(--color-primary));
}
.twitter-pill.active {
  background: var(--pill-color, var(--color-primary));
  border-color: var(--pill-color, var(--color-primary));
  color: #fff;
}

/* Source filter pills (Official / Hashtags) */
.twitter-source-pills {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  justify-content: center;
}
.twitter-src-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.twitter-src-pill:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}
.twitter-src-pill.active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}
.twitter-src-pill.active svg {
  fill: currentColor;
}

/* Source badge on post cards */
.twitter-source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}
.twitter-source-badge.hashtag {
  background: rgba(29, 155, 240, 0.15);
  color: #1D9BF0;
}

.twitter-search-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}
.twitter-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s;
}
.twitter-search-wrap:focus-within {
  border-color: var(--color-primary);
}
.twitter-search-wrap svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.twitter-search-input {
  border: none;
  background: none;
  color: var(--color-text);
  font-size: 0.9rem;
  flex: 1;
  outline: none;
}
.twitter-search-input::placeholder {
  color: var(--color-text-muted);
}
.twitter-team-select {
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  cursor: pointer;
}
.twitter-team-select:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* Feed */
.twitter-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.twitter-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}
.twitter-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}
.twitter-empty h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-text);
}
.twitter-empty p {
  font-size: 0.9rem;
}

/* Post Card */
.twitter-post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.twitter-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--color-text-muted);
}

.twitter-post-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.twitter-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg);
}
.twitter-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.twitter-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.twitter-post-author {
  flex: 1;
  min-width: 0;
}
.twitter-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-text);
}
.twitter-verified {
  flex-shrink: 0;
}
.twitter-author-handle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.twitter-post-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}
.twitter-league-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.twitter-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.twitter-post-content {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  word-break: break-word;
}
.twitter-link {
  color: #1D9BF0;
  text-decoration: none;
}
.twitter-link:hover {
  text-decoration: underline;
}
.twitter-hashtag {
  color: #1D9BF0;
  font-weight: 500;
}
.twitter-mention {
  color: #1D9BF0;
  text-decoration: none;
  font-weight: 500;
}
.twitter-mention:hover {
  text-decoration: underline;
}

.twitter-post-media {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  max-height: 320px;
  position: relative;
}
.twitter-post-media img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.twitter-video-thumb {
  background: var(--color-bg);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.twitter-play-overlay {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.twitter-post-stats {
  display: flex;
  gap: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}
.twitter-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.twitter-stat svg {
  opacity: 0.7;
}

/* Pagination */
.twitter-pagination {
  margin-top: 1.5rem;
}
.twitter-pag-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.twitter-pag-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s;
}
.twitter-pag-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.twitter-pag-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.twitter-pag-info {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-left: 0.75rem;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .twitter-page {
    padding: 1rem 0.75rem;
  }
  .twitter-title-row h1 {
    font-size: 1.3rem;
  }
  .twitter-search-row {
    flex-direction: column;
  }
  .twitter-team-select {
    min-width: 100%;
  }
  .twitter-post-header {
    flex-wrap: wrap;
  }
  .twitter-post-meta {
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-top: 0.25rem;
    padding-left: 56px;
  }
  .twitter-post-stats {
    gap: 0.75rem;
  }
}
