/* ============================================================
   UNTOZ SPORTS — THEME CSS
   Converted from TanStack Start / Tailwind CSS
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --yellow:           #ffde00;
  --yellow-dark:      #e6c800;
  --navy:             #001d57;
  --navy-dark:        #00153f;
  --background:       #ffffff;
  --foreground:       #001d57;
  --card:             #ffffff;
  --muted:            #f3f5fa;
  --muted-fg:         #5a6480;
  --border:           #e3e7f0;
  --radius:           1rem;
  --font-display:     'Outfit', sans-serif;
  --font-sans:        'Figtree', sans-serif;
  --max-w:            80rem;
  --px:               1.5rem;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */

/* Container */
.container-page {
  margin-inline: auto;
  width: 100%;
  max-width: var(--max-w);
  padding-inline: var(--px);
}

/* Chip / badge */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* Cards */
.card-surface {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(0, 29, 87, 0.28);
}

/* Section header eyebrow + title */
.section-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--yellow-dark);
}
.section-title {
  margin-top: 0.25rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
}

/* Page hero */
.page-hero {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--yellow);
}
.page-hero .container-page { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.page-hero .chip { margin-bottom: 0.75rem; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); color: #fff; }
.page-hero p { margin-top: 0.75rem; color: rgba(255,255,255,0.8); max-width: 42rem; font-size: 1.1rem; }

/* Category filter pills */
.cat-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cat-filter button {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--muted);
  color: var(--navy);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.cat-filter button:hover { background: var(--yellow); }
.cat-filter button.active { background: var(--navy); color: var(--yellow); }

/* ============================================================
   4. MARQUEE ANIMATION
   ============================================================ */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

/* ============================================================
   5. BREAKING TICKER
   ============================================================ */
.breaking-ticker {
  background: var(--yellow);
  color: var(--navy);
  border-bottom: 1px solid rgba(0,29,87,0.1);
}
.breaking-ticker .container-page {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.breaking-ticker__label {
  flex-shrink: 0;
  background: var(--navy);
  color: var(--yellow);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
.breaking-ticker__track {
  flex: 1;
  overflow: hidden;
}
.breaking-ticker__inner {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-size: 0.875rem;
  font-weight: 600;
}
.breaking-ticker__inner a:hover { text-decoration: underline; }

/* ============================================================
   6. SITE HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--yellow);
}
.site-header .container-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}
.site-logo img { height: 2.5rem; width: auto; }
.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  display: none;
}
.site-logo__name span { color: var(--yellow); }

@media (min-width: 480px) {
  .site-logo__name { display: block; }
}

/* Desktop nav */
.nav-primary {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .nav-primary { display: flex; }
}

.nav-primary a {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  border-radius: 0.375rem;
  transition: background 0.15s;
}
.nav-primary a:hover { background: rgba(255,255,255,0.1); }
.nav-primary a.current-menu-item,
.nav-primary a[aria-current="page"] {
  background: var(--yellow);
  color: var(--navy);
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: #fff;
  background: none;
  border: none;
}
.menu-toggle svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile.is-open { display: block; }
.nav-mobile .container-page {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}
.nav-mobile a {
  padding: 0.75rem 0;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: block;
}
.nav-mobile a:last-child { border-bottom: 0; }

/* ============================================================
   7. SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: #fff;
  margin-top: 6rem;
}
.site-footer__top {
  display: grid;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr; }
}

.site-footer__brand .site-logo__name { display: flex; }
.site-footer__brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  max-width: 28rem;
}
.site-footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__col a { font-size: 0.875rem; color: rgba(255,255,255,0.8); transition: color 0.15s; }
.site-footer__col a:hover { color: var(--yellow); }
.site-footer__col li { font-size: 0.875rem; color: rgba(255,255,255,0.8); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.site-footer__bottom .container-page {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   8. HOMEPAGE — HERO SECTION
   ============================================================ */
.hero-section {
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}
.hero-section .container-page {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .hero-section .container-page { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
}
@media (min-width: 768px) {
  .hero-section .container-page { padding-top: 3rem; padding-bottom: 3rem; }
}

/* Featured lead card */
.hero-lead {
  color: inherit;
  display: block;
}
.hero-lead__img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.hero-lead__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.hero-lead:hover .hero-lead__img-wrap img { transform: scale(1.02); }
.hero-lead__img-wrap .chip { position: absolute; top: 1rem; left: 1rem; }
.hero-lead__body { padding: 1.5rem; }
@media (min-width: 768px) { .hero-lead__body { padding: 2rem; } }
.hero-lead__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  flex-wrap: wrap;
}
.hero-lead__meta .cat { color: var(--navy); font-weight: 700; }
.hero-lead__meta .dot { opacity: 0.4; }
.hero-lead__meta .meta-item { display: inline-flex; align-items: center; gap: 0.25rem; }
.hero-lead h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--navy);
}
.hero-lead p { margin-top: 1rem; font-size: 1.0625rem; color: var(--muted-fg); }
.hero-lead__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.15s;
}
.hero-lead:hover .hero-lead__cta { color: var(--yellow-dark); }
.hero-lead__cta svg { width: 1rem; height: 1rem; }

/* Secondary cards column */
.hero-secondary { display: grid; gap: 1rem; }
.hero-secondary-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  color: inherit;
}
.hero-secondary-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-secondary-card__body { padding: 1rem; }
.hero-secondary-card .cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow-dark);
}
.hero-secondary-card h3 { margin-top: 0.5rem; font-size: 1.125rem; color: var(--navy); }
.hero-secondary-card .date {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Trending widget inside hero column */
.trending-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 1.25rem;
  border-radius: 1.25rem;
}
.trending-card__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}
.trending-card__label svg { width: 0.875rem; height: 0.875rem; }
.trending-list { display: flex; flex-direction: column; gap: 0.75rem; }
.trending-item { display: block; }
.trending-item .cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--yellow-dark); }
.trending-item p { font-size: 0.875rem; font-weight: 600; color: #fff; line-height: 1.35; transition: color 0.15s; }
.trending-item:hover p { color: var(--yellow); }

/* ============================================================
   9. HOMEPAGE — MAIN FEED + SIDEBAR
   ============================================================ */
.home-main {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .home-main { grid-template-columns: 1fr 320px; }
}

.home-feed { display: flex; flex-direction: column; gap: 3rem; }

/* Article cards grid */
.articles-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .articles-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.article-card { display: block; color: inherit; }
.article-card__img { aspect-ratio: 16/10; overflow: hidden; }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.article-card:hover .article-card__img img { transform: scale(1.05); }
.article-card__body { padding: 1rem; }
.article-card .cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow-dark);
}
.article-card h3 { margin-top: 0.5rem; font-size: 1.125rem; color: var(--navy); line-height: 1.3; }
.article-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__meta {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.article-card__meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.article-card__meta svg { width: 0.75rem; height: 0.75rem; }

/* More news list (small horizontal cards) */
.news-list { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .news-list { grid-template-columns: repeat(2, 1fr); }
}
.news-list-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  color: inherit;
  align-items: center;
}
.news-list-item__thumb {
  width: 6rem;
  height: 6rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
}
.news-list-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.news-list-item:hover .news-list-item__thumb img { transform: scale(1.05); }
.news-list-item__body { min-width: 0; flex: 1; }
.news-list-item .cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--yellow-dark); }
.news-list-item h4 { margin-top: 0.25rem; font-size: 1rem; color: var(--navy); line-height: 1.3; }
.news-list-item .date { margin-top: 0.375rem; font-size: 0.75rem; color: var(--muted-fg); display: inline-flex; align-items: center; gap: 0.25rem; }
.news-list-item .date svg { width: 0.75rem; height: 0.75rem; }

/* Load more button */
.load-more-wrap { text-align: center; margin-top: 1.5rem; }
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--yellow);
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.15s;
}
.btn-load-more:hover { background: var(--navy-dark); color: var(--yellow); }
.btn-load-more svg { width: 1rem; height: 1rem; }

/* ============================================================
   10. SIDEBAR & WIDGETS
   ============================================================ */
.site-sidebar { display: flex; flex-direction: column; gap: 2rem; }

.widget {
  padding: 1.25rem;
}
.widget__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.widget__icon {
  display: grid;
  place-items: center;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  flex-shrink: 0;
}
.widget__icon svg { width: 1rem; height: 1rem; }
.widget__title { font-family: var(--font-display); font-size: 1.125rem; color: var(--navy); }

/* Categories widget */
.widget-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.widget-categories a {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.15s, border-color 0.15s;
}
.widget-categories a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

/* Popular posts widget */
.widget-popular { display: flex; flex-direction: column; gap: 1rem; }
.widget-popular-item { display: flex; gap: 0.75rem; color: inherit; }
.widget-popular-item__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--yellow);
  line-height: 1;
  width: 1.75rem;
  flex-shrink: 0;
}
.widget-popular-item__body { min-width: 0; }
.widget-popular-item .cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--yellow-dark); }
.widget-popular-item h4 { font-size: 0.875rem; font-weight: 600; color: var(--navy); line-height: 1.35; margin-top: 0.125rem; transition: color 0.15s; }
.widget-popular-item:hover h4 { color: var(--yellow-dark); }
.widget-popular-item .date { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* Newsletter widget */
.widget-newsletter p { font-size: 0.875rem; color: var(--muted-fg); }
.widget-newsletter form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.widget-newsletter input[type="email"] {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: box-shadow 0.15s;
}
.widget-newsletter input[type="email"]:focus {
  box-shadow: 0 0 0 2px rgba(0,29,87,0.2);
}
.widget-newsletter button[type="submit"] {
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.widget-newsletter button[type="submit"]:hover { background: var(--yellow-dark); }

/* ============================================================
   11. HOMEPAGE — FEATURED VIDEOS BAND
   ============================================================ */
.videos-band {
  background: var(--navy);
  color: #fff;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.videos-band__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.videos-band__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}
.videos-band h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.videos-band__all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  transition: color 0.15s;
}
.videos-band__all:hover { color: #fff; }
.videos-band__all svg { width: 1rem; height: 1rem; }

.videos-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .videos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   12. VIDEO CARD
   ============================================================ */
.video-card {
  display: block;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: #fff;
}
.video-card:hover {
  border-color: rgba(255,222,0,0.5);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(0,0,0,0.4);
}
.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.video-card:hover .video-card__thumb img { transform: scale(1.05); }
.video-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,29,87,0.3);
  transition: background 0.2s;
  display: grid;
  place-items: center;
}
.video-card:hover .video-card__overlay { background: rgba(0,29,87,0.1); }
.video-card__play {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.video-card:hover .video-card__play { transform: scale(1.1); }
.video-card__play svg { width: 1.375rem; height: 1.375rem; fill: currentColor; }
.video-card__duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0,29,87,0.9);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.video-card__chip {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}
.video-card__body { padding: 1rem; }
.video-card h3 { font-size: 1.125rem; line-height: 1.3; }
.video-card .views { margin-top: 0.25rem; font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* On white backgrounds (page-videos) */
.video-card.on-light { background: var(--card); border-color: var(--border); color: var(--navy); }
.video-card.on-light .video-card__overlay { background: rgba(0,29,87,0.25); }
.video-card.on-light:hover .video-card__overlay { background: rgba(0,29,87,0.1); }
.video-card.on-light .views { color: var(--muted-fg); }

/* ============================================================
   13. RESULTS PAGE
   ============================================================ */
.results-section { padding-top: 3rem; padding-bottom: 3rem; display: flex; flex-direction: column; gap: 3rem; }

.results-league h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.results-league h2 img { width: 2rem; height: 2rem; object-fit: contain; }
.results-league__bar { display: inline-block; width: 2rem; height: 0.5rem; background: var(--yellow); border-radius: 999px; }

.results-table { overflow: hidden; }
.results-table .divide { border-top: 1px solid var(--border); }
.results-table .divide:first-child { border-top: none; }

.match-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}
.match-row__date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
  width: 7rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.match-row__date svg { width: 0.75rem; height: 0.75rem; vertical-align: middle; }
.match-row__scores {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}
.match-row__scores .team { font-weight: 600; color: var(--navy); }
.match-row__scores .team.home { text-align: right; }
.match-row__scores .team.away { text-align: left; }
.match-row__score-box {
  font-family: var(--font-display);
  font-size: 1.5rem;
  background: var(--navy);
  color: var(--yellow);
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  text-align: center;
  min-width: 5rem;
}
.match-row__status {
  width: 3rem;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-fg);
}

/* ============================================================
   14. STATS / STANDINGS PAGE
   ============================================================ */
.stats-section { padding-top: 3rem; padding-bottom: 3rem; }

.standings-table { overflow-x: auto; }
.standings-table table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.standings-table thead { background: var(--navy); color: var(--yellow); }
.standings-table th {
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.standings-table th.left { text-align: left; }
.standings-table th.center { text-align: center; }
.standings-table tbody tr { border-top: 1px solid var(--border); }
.standings-table tbody tr:hover { background: var(--muted); }
.standings-table td {
  padding: 0.75rem;
  text-align: center;
  color: var(--navy);
  white-space: nowrap;
}
.standings-table td.left { text-align: left; }
.standings-table td.points { font-family: var(--font-display); font-size: 1.125rem; }
.standings-table td.pos-badge {
  padding-left: 0.75rem;
  padding-right: 0.5rem;
}
.pos-badge {
  display: inline-grid;
  place-items: center;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 0.25rem;
  font-weight: 700;
  font-size: 0.75rem;
  background: transparent;
  color: var(--navy);
}
.pos-badge.ucl { background: var(--yellow); color: var(--navy); }
.pos-badge.uel { background: rgba(0,29,87,0.1); color: var(--navy); }

.team-cell { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.team-cell img { height: 1.25rem; width: 1.25rem; object-fit: contain; flex-shrink: 0; }
.team-cell span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.form-pills { display: flex; gap: 2px; }
.form-pill {
  display: inline-grid;
  place-items: center;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
}
.form-pill.w { background: #16a34a; }
.form-pill.d { background: #9ca3af; }
.form-pill.l { background: #dc2626; }

.gd-pos { color: #15803d; }
.gd-neg { color: #dc2626; }

.standings-meta {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.standings-season {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}

.data-credit {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 2rem;
}

/* ============================================================
   15. NEWS ARCHIVE PAGE
   ============================================================ */
.news-archive-grid {
  display: grid;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) { .news-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-archive-grid { grid-template-columns: repeat(3, 1fr); } }

.news-archive-card { display: block; color: inherit; }
.news-archive-card__img { aspect-ratio: 16/10; overflow: hidden; }
.news-archive-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.news-archive-card:hover .news-archive-card__img img { transform: scale(1.05); }
.news-archive-card__body { padding: 1.25rem; }
.news-archive-card h3 { margin-top: 0.75rem; font-size: 1.25rem; color: var(--navy); line-height: 1.3; }
.news-archive-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-fg); }
.news-archive-card .date { margin-top: 0.75rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-fg); }

.no-posts { text-align: center; padding: 3rem 0; color: var(--muted-fg); }

/* ============================================================
   16. SINGLE POST
   ============================================================ */
.post-hero-img {
  aspect-ratio: 16/7;
  overflow: hidden;
  border-radius: 0 0 1.5rem 1.5rem;
}
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.post-body {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .post-body { grid-template-columns: 1fr 320px; align-items: start; }
}

.post-header { margin-bottom: 2rem; }
.post-header .cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow-dark);
}
.post-header h1 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--navy);
}
.post-header .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  align-items: center;
}
.post-header .post-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.post-header .post-meta svg { width: 0.875rem; height: 0.875rem; }

.post-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--foreground);
  max-width: 70ch;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content h2 { font-size: 1.75rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--navy); }
.post-content h3 { font-size: 1.375rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--navy); }
.post-content blockquote {
  border-left: 4px solid var(--yellow);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted-fg);
}
.post-content a { color: var(--navy); text-decoration: underline; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.5rem; }

/* ============================================================
   17. 404 PAGE
   ============================================================ */
.error-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.error-404__inner { max-width: 28rem; text-align: center; }
.error-404 .num { font-family: var(--font-display); font-size: 8rem; line-height: 1; color: var(--navy); }
.error-404 h2 { font-size: 1.25rem; margin-top: 1rem; color: var(--navy); }
.error-404 p { margin-top: 0.5rem; color: var(--muted-fg); font-size: 0.875rem; }
.error-404 .btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  border-radius: 0.375rem;
  background: var(--yellow);
  color: var(--navy);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.15s;
}
.error-404 .btn-home:hover { background: var(--yellow-dark); }

/* ============================================================
   18. GENERIC PAGE
   ============================================================ */
.page-content-wrap { padding-top: 2.5rem; padding-bottom: 3rem; }
.page-content-wrap .page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.page-content-wrap .entry-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 70ch;
  color: var(--foreground);
}
.page-content-wrap .entry-content p { margin-bottom: 1.25rem; }
.page-content-wrap .entry-content a { color: var(--navy); text-decoration: underline; }

/* ============================================================
   19. PAGINATION
   ============================================================ */
.posts-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.posts-pagination a,
.posts-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--navy);
  transition: background 0.15s, border-color 0.15s;
}
.posts-pagination a:hover { background: var(--muted); }
.posts-pagination .current { background: var(--navy); color: var(--yellow); border-color: var(--navy); }
.posts-pagination .prev, .posts-pagination .next { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================================
   20. SEARCH
   ============================================================ */
.search-results-info { margin-bottom: 1.5rem; font-size: 0.875rem; color: var(--muted-fg); }
.search-results-info strong { color: var(--navy); }

/* ============================================================
   21. LOADING / ERROR STATES
   ============================================================ */
.data-loading {
  padding: 5rem 0;
  text-align: center;
  color: var(--muted-fg);
  font-size: 1rem;
}
.data-error {
  padding: 5rem 0;
  text-align: center;
}
.data-error h1 { font-size: 1.75rem; color: var(--navy); }
.data-error p { margin-top: 0.75rem; color: var(--muted-fg); }

/* ============================================================
   22. MISC HELPERS
   ============================================================ */
.text-navy { color: var(--navy); }
.text-yellow { color: var(--yellow); }
.text-muted { color: var(--muted-fg); }
.bg-navy { background: var(--navy); }
.bg-yellow { background: var(--yellow); }
.bg-muted { background: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* wp-align classes */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--muted-fg); margin-top: 0.375rem; }

/* Tabs for stats */
.league-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.league-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--muted);
  color: var(--navy);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.league-tab:hover { background: rgba(255,222,0,0.4); }
.league-tab.active { background: var(--navy); color: var(--yellow); }

.league-panel { display: none; }
.league-panel.active { display: block; }
