
:root {
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #1a2235;
  --accent: #0ae98c;
  --accent2: #3b82f6;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(255,255,255,0.06);
  --red: #ef4444;
  --gold: #f59e0b;
  --grad: linear-gradient(135deg, #0ae98c 0%, #3b82f6 100%);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
nav, .top-nav {
  background: rgba(10,14,23,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 4px;
}
nav a, .top-nav a, .nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .15s;
  white-space: nowrap;
}
nav a:hover, .top-nav a:hover, .nav-link:hover {color: #fff; background: rgba(255,255,255,0.06)}
nav a.active, .top-nav a.active, .nav-link.active, 
nav a[href*="/transfers/"] {color: var(--accent); background: rgba(10,233,140,0.08)}
nav .brand, .top-nav .brand, .nav-brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent);
  margin-right: 16px;
  letter-spacing: -0.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-tz select, .top-nav select, nav select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.7rem;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 48px 24px 32px;
  max-width: 1080px;
  margin: 0 auto;
}
.hero .badge {
  display: inline-block;
  background: rgba(10,233,140,0.1);
  border: 1px solid rgba(10,233,140,0.2);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero h1 .gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.hero .stats-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero .stat-item {
  text-align: center;
}
.hero .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero .stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* === SPORT TABS === */
.sport-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 16px;
  margin-bottom: 20px;
}
.sport-tabs button, .sport-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  white-space: nowrap;
}
.sport-tabs button:hover, .sport-btn:hover {
  border-color: rgba(255,255,255,0.15);
  color: #fff;
  background: var(--bg-card-hover);
}
.sport-tabs button.active, .sport-btn.active {
  background: rgba(10,233,140,0.1);
  border-color: rgba(10,233,140,0.3);
  color: var(--accent);
}

/* === DATE PICKER === */
.date-picker-trigger {
  display: block;
  margin: 0 auto 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.date-picker-trigger:hover {border-color: rgba(255,255,255,0.15); background: var(--bg-card-hover)}

/* === MATCH CARDS === */
.sport-content {margin: 0 auto; padding: 0 16px}
.match-list {display: flex; flex-direction: column; gap: 6px}
.match-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .15s;
  flex-wrap: wrap;
}
.match-item:hover {background: var(--bg-card-hover); border-color: rgba(255,255,255,0.1); transform: translateY(-1px); box-shadow: var(--shadow)}
.match-time {
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.match-league {
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 80px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.match-teams {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.match-teams .home-side {text-align: right; flex: 1; color: #fff}
.match-teams .away-side {text-align: left; flex: 1; color: #fff}
.vs-badge {
  background: rgba(255,255,255,0.08);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.match-status {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-ft {background: rgba(255,255,255,0.05); color: var(--muted)}
.status-live {background: rgba(239,68,68,0.15); color: var(--red); animation: pulse 2s infinite}
.status-upcoming {background: rgba(59,130,246,0.1); color: var(--accent2)}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.5}}

.watch-btn {
  background: var(--grad);
  color: #000 !important;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
  letter-spacing: 0.3px;
  border: none;
  box-shadow: 0 2px 8px rgba(10,233,140,0.25);
}
.watch-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10,233,140,0.4);
  color: #000 !important;
}
.match-actions {display:flex;gap:8px;align-items:center}
.match-details-btn,.watch-guide-btn {border-radius:8px;padding:7px 12px;font-size:.72rem;font-weight:800;white-space:nowrap;cursor:pointer;text-decoration:none}
.match-details-btn {border:0;color:#001b10;background:var(--grad);box-shadow:0 2px 8px rgba(10,233,140,.22)}
.watch-guide-btn {color:var(--text)!important;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.045)}
.match-details-btn:hover,.watch-guide-btn:hover {transform:translateY(-1px)}
.match-dialog {
  position:fixed;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  width:min(92vw,560px);
  max-height:min(86vh,720px);
  margin:0;
  padding:0;
  overflow:auto;
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  color:var(--text);
  background:#101722;
  box-shadow:0 24px 80px rgba(0,0,0,.6);
}
.match-dialog::backdrop {background:rgba(2,6,12,.78);backdrop-filter:blur(5px)}
.match-dialog-card {position:relative;padding:28px}
.match-dialog-close {position:absolute;right:14px;top:12px;border:0;background:transparent;color:var(--muted);font-size:1.8rem;cursor:pointer}
.match-dialog-kicker {margin:0 0 8px;color:var(--accent);font-size:.7rem;font-weight:900;letter-spacing:1.5px}
.match-dialog-title {margin:0;font-size:clamp(1.2rem,4vw,1.75rem)}
.match-dialog-score {margin:18px 0;font-size:2rem;font-weight:900;color:var(--accent)}
.match-dialog-meta {display:grid;gap:10px;margin:0 0 18px}
.match-dialog-meta div {display:grid;grid-template-columns:110px 1fr;gap:12px}
.match-dialog-meta dt {color:var(--muted);font-size:.76rem}
.match-dialog-meta dd {margin:0;font-size:.82rem;font-weight:700}
.match-dialog-note {color:var(--muted);font-size:.74rem;line-height:1.6}
.match-dialog-guide {display:inline-flex;margin-top:8px}

/* === SECTION HEADERS === */
.date-group {margin-bottom: 24px}
.date-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.date-header::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.live-header {color: var(--red)}
.live-header::before {background: var(--red); animation: pulse 2s infinite}
.upcoming-header {color: var(--accent2)}
.upcoming-header::before {background: var(--accent2)}
.finished-header {color: var(--muted)}
.finished-header::before {background: var(--muted)}

.team-badge {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
  vertical-align: middle;
}

/* === CALENDAR MODAL === */
.cal-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  justify-content: center;
  align-items: center;
}
.cal-modal.show {display: flex}
.cal-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  width: 300px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cal-nav {display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px}
.cal-nav button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-nav button:hover {background: var(--bg-card-hover)}
.cal-nav .cal-month {font-weight: 700; font-size: 0.9rem}
.cal-grid {display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; text-align: center}
.cal-grid .day-name {color: var(--muted); font-size: 0.65rem; padding: 4px 0; font-weight: 600}
.cal-grid button {
  background: none;
  border: none;
  color: var(--text);
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-family: inherit;
  position: relative;
}
.cal-grid button:hover {background: rgba(255,255,255,0.06)}
.cal-grid button.today {border: 2px solid var(--accent); font-weight: 700}
.cal-grid button.has-events::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.cal-grid button.selected {background: var(--accent); color: #000; font-weight: 700}
.cal-grid button.other-month {color: rgba(255,255,255,0.15)}

/* === SEO / FAQ === */
.seo-section {margin: 48px auto; padding: 0 24px; max-width: 1080px}
.seo-section h2, .seo-section h3 {
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.3px;
}
.seo-section h2 {font-size: 1.4rem; color: #fff}
.seo-section h3 {font-size: 1rem; color: var(--accent); margin-top: 24px}
.seo-section p, .seo-section li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.seo-section ul {padding-left: 20px; margin-bottom: 16px}
.seo-section strong {color: #fff}
.seo-section .faq-item {margin-bottom: 16px}
.seo-section .faq-q {font-weight: 700; color: #fff; font-size: 0.9rem; margin-bottom: 4px}
.seo-section .faq-a {color: var(--muted); font-size: 0.85rem; line-height: 1.7}

/* === FOOTER === */
footer, .footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
footer, footer a, .footer, .footer a {
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  text-decoration: none;
}
footer a:hover, .footer a:hover {color: var(--muted)}

/* === LOADING === */
.loading, .empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
.loading::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .match-actions {width:100%;margin-top:4px}
  .match-details-btn,.watch-guide-btn {flex:1;text-align:center;padding:10px 8px}
  .match-dialog-card {padding:24px 20px}
  .hero h1 {font-size: 1.6rem}
  .hero .stats-row {gap: 20px}
  .hero .stat-num {font-size: 1.3rem}
  .match-item {padding: 10px 12px; gap: 8px}
  .match-teams {font-size: 0.8rem; min-width: 0}
  .match-league {display: none}
  .sport-tabs button {padding: 6px 12px; font-size: 0.72rem}
  .watch-btn {padding: 6px 12px; font-size: 0.68rem}
}
@media (max-width: 480px) {
  .hero {padding: 32px 16px 24px}
  .hero h1 {font-size: 1.35rem}
  .match-item {gap: 6px}
  .match-time {font-size: 0.7rem; min-width: 32px}
  .vs-badge {padding: 2px 6px; font-size: 0.65rem}
  .match-status {font-size: 0.6rem; padding: 2px 6px}
}

/* ═══ NAV LAYOUT FIX ═══ */
.nav-inner {
  display: flex;
  align-items: center;
  height: 52px;
  margin: 0 auto;
  padding: 0 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-brand {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-tz { margin-left: 16px; }

/* ═══ BODY MAX-WIDTH ═══ */
.container, .page-container, main, .content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.sport-tabs, .cal-wrapper, #sportContent, .match-list-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Content width constraints */
html { overflow-x: hidden; }


/* Sport tabs bar */
.sport-tabs{display:flex;justify-content:center;gap:4px;padding:8px 0;flex-wrap:wrap;margin:0 auto}

/* ═══ ZONE 8: PL COUNTDOWN TIMER ═══ */
.pl-countdown-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
}
.pl-countdown-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  min-width: 90px;
}
.pl-countdown-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.pl-countdown-label {
  font-size: 0.75rem;
  color: #8892B0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.pl-countdown-sep {
  font-size: 2rem;
  color: rgba(255,255,255,0.2);
  font-weight: 300;
}

/* ═══ ZONE 9: PL BLOG ARTICLE CARDS ═══ */
.pl-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.pl-article-card {
  background: #101624;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.pl-article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,107,0,0.3);
}
.pl-article-card.featured {
  border-color: rgba(255,107,0,0.3);
  background: linear-gradient(135deg, rgba(255,107,0,0.06), #101624);
}
.pl-article-badge {
  display: inline-block;
  background: #FF6B00;
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.pl-article-body {
  padding: 20px;
}
.pl-article-body h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
}
.pl-article-body p {
  font-size: 0.82rem;
  color: #8892B0;
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pl-article-cta {
  color: #FF6B00;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.pl-article-cta:hover {
  color: #FF8F3D;
}

/* ═══ ZONE 10: PL HERO OVERRIDE ═══ */
.hero.pl-hero {
  background: linear-gradient(135deg, #1a0533 0%, #0d1b3e 50%, #080D17 100%);
}
.hero.pl-hero .hero-badge {
  background: #9B59B6;
}
.pl-hero-subtitle {
  color: #8892B0;
  font-size: 1rem;
  max-width: 550px;
  margin: 8px auto 0;
}
.pl-hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.pl-hero-cta-primary {
  background: linear-gradient(135deg, #FF6B00, #E05A00);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pl-hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255,107,0,0.35);
}
.pl-hero-cta-secondary {
  background: rgba(255,255,255,0.08);
  color: #E2E8F0;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s;
}
.pl-hero-cta-secondary:hover {
  background: rgba(255,255,255,0.14);
}

/* SEO-visible page introduction and data provenance */
.page-intro {
  max-width: 920px;
  margin: 24px auto 18px;
  padding: 0 20px;
  text-align: center;
}
.page-intro h1 {
  color: #f8fafc;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 10px;
}
.page-intro p {
  color: #a7b0c0;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 760px;
}
.data-freshness {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 6px 11px;
  border: 1px solid rgba(109, 179, 242, 0.25);
  border-radius: 999px;
  background: rgba(109, 179, 242, 0.08);
  color: #a8c9e8;
  font-size: 0.78rem;
}
.data-freshness::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6db3f2;
}

/* ═══ ZONE 11: RESPONSIVE (640px) ═══ */
@media (max-width: 640px) {
  .pl-articles-grid {
    grid-template-columns: 1fr;
  }
  .pl-countdown-num {
    font-size: 2rem;
  }
  .pl-countdown-box {
    padding: 12px 16px;
    min-width: 70px;
  }
  .pl-hero-cta-row {
    flex-direction: column;
    align-items: center;
  }
}
