/* ═══════════════════════════════════════════════════════════════════
   PSL SPOTLIGHT — BRAND STYLE ENGINE
   styles.css — Standalone companion stylesheet
   Usage: <link rel="stylesheet" href="styles.css"> in <head>
   Pair with: Tailwind CSS CDN + Google Fonts (Oswald, IBM Plex Sans,
              Source Serif 4)
════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────
   0. DESIGN TOKEN CUSTOM PROPERTIES
   All brand values in one place — change here,
   updates cascade everywhere.
─────────────────────────────────────────────── */
:root {
  /* Palette */
  --clr-navy-deep:      #071830;
  --clr-navy:           #0B2545;
  --clr-navy-light:     #132f56;
  --clr-royal:          #1557B0;
  --clr-royal-light:    #1e6fe8;
  --clr-royal-bright:   #3b9eff;
  --clr-ice:            #E8F0FE;
  --clr-ice-dim:        #b0c4e8;
  --clr-gold:           #F0B429;
  --clr-gold-dim:       #c89020;
  --clr-pitch:          #0f7b3f;
  --clr-danger:         #e03c3c;
  --clr-success:        #22c55e;
  --clr-warning:        #f97316;

  /* Typography */
  --font-display:       'Oswald', sans-serif;
  --font-body:          'IBM Plex Sans', sans-serif;
  --font-serif:         'Source Serif 4', Georgia, serif;

  /* Spacing scale */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Borders */
  --border-subtle:   1px solid rgba(255, 255, 255, 0.06);
  --border-dim:      1px solid rgba(255, 255, 255, 0.10);
  --border-royal:    1px solid rgba(59, 158, 255, 0.18);
  --border-gold:     1px solid rgba(240, 180, 41, 0.28);

  /* Shadows */
  --shadow-card:     0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-card-lg:  0 20px 48px rgba(0, 0, 0, 0.50);
  --shadow-gold:     0 0 40px rgba(240, 180, 41, 0.18);
  --shadow-royal:    0 0 32px rgba(59, 158, 255, 0.15);

  /* Radii */
  --radius-none: 0px;
  --radius-sm:   2px;
  --radius-md:   6px;
  --radius-lg:   12px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-lift:  cubic-bezier(0.22, 0.68, 0, 1.2);
  --dur-fast:   180ms;
  --dur-base:   280ms;
  --dur-slow:   480ms;

  /* Z-index stack */
  --z-base:       0;
  --z-raised:     10;
  --z-ticker:     40;
  --z-nav:        50;
  --z-modal:      80;
  --z-toast:      90;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-navy-deep);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: transparent;
}

input,
textarea {
  font-family: inherit;
}


/* ───────────────────────────────────────────────
   2. TYPOGRAPHY UTILITY CLASSES
─────────────────────────────────────────────── */

/* Font family helpers */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
.font-serif   { font-family: var(--font-serif); }

/* Display / headline sizes */
.text-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.text-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.text-subheadline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.text-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.15;
}

/* Overline / label */
.text-overline {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-royal-bright);
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-overline::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.text-overline--gold { color: var(--clr-gold); }
.text-overline--dim  { color: var(--clr-ice-dim); }

/* Body prose */
.prose {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.72;
  color: var(--clr-ice-dim);
}

.prose strong {
  font-weight: 600;
  color: #ffffff;
}


/* ───────────────────────────────────────────────
   3. COLOR UTILITY CLASSES
─────────────────────────────────────────────── */
.text-royal-bright { color: var(--clr-royal-bright); }
.text-gold         { color: var(--clr-gold); }
.text-ice          { color: var(--clr-ice); }
.text-ice-dim      { color: var(--clr-ice-dim); }
.text-danger       { color: var(--clr-danger); }
.text-success      { color: var(--clr-success); }
.text-pitch        { color: var(--clr-pitch); }

.bg-navy-deep  { background-color: var(--clr-navy-deep); }
.bg-navy       { background-color: var(--clr-navy); }
.bg-navy-light { background-color: var(--clr-navy-light); }
.bg-royal      { background-color: var(--clr-royal); }
.bg-card       { background-color: #0d1f3c; }


/* ───────────────────────────────────────────────
   4. SCROLLBAR — PREMIUM SPORTS NETWORK STYLE
─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--clr-navy-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-royal);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-royal-bright);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--clr-royal) var(--clr-navy-deep);
}


/* ───────────────────────────────────────────────
   5. LAYOUT HELPERS
─────────────────────────────────────────────── */
.container-site {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-site { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .container-site { padding-left: 2rem; padding-right: 2rem; }
}

/* Pitch grid texture overlay */
.pitch-grid {
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 64px,
      rgba(59, 158, 255, 0.032) 64px,
      rgba(59, 158, 255, 0.032) 65px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 64px,
      rgba(59, 158, 255, 0.022) 64px,
      rgba(59, 158, 255, 0.022) 65px
    );
}

/* Decorative section divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 158, 255, 0.25) 30%,
    rgba(59, 158, 255, 0.25) 70%,
    transparent
  );
  margin: 0 auto;
}


/* ───────────────────────────────────────────────
   6. STICKY NAVBAR
─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(7, 24, 48, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: var(--border-royal);
  transition: background var(--dur-base) ease,
              box-shadow var(--dur-base) ease;
}

.navbar.scrolled {
  background: rgba(7, 24, 48, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity var(--dur-fast) ease;
}

.navbar__logo:hover { opacity: 0.85; }

.navbar__logo img {
  height: 40px;
  width: auto;
  transition: transform var(--dur-base) var(--ease-lift);
}

.navbar__logo:hover img { transform: scale(1.05); }

.navbar__brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.navbar__brand span { color: var(--clr-royal-bright); }

/* Desktop nav links */
.navbar__links {
  display: none;
  align-items: center;
  gap: 2px;
  list-style: none;
}

@media (min-width: 768px) {
  .navbar__links { display: flex; }
}

.navbar__link {
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-ice-dim);
  transition: color var(--dur-fast) ease;
}

.navbar__link:hover,
.navbar__link.active { color: var(--clr-royal-bright); }

/* Gold spotlight CTA button */
.navbar__spotlight-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold);
  border: 1px solid rgba(240, 180, 41, 0.45);
  background: transparent;
  transition: background var(--dur-fast) ease,
              color var(--dur-fast) ease,
              border-color var(--dur-fast) ease;
  margin-left: 8px;
}

.navbar__spotlight-btn:hover {
  background: var(--clr-gold);
  color: var(--clr-navy-deep);
  border-color: var(--clr-gold);
}

/* Hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
}

@media (min-width: 768px) {
  .navbar__hamburger { display: none; }
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: all var(--dur-base) ease;
}

.navbar__hamburger span:nth-child(1) { width: 24px; }
.navbar__hamburger span:nth-child(2) { width: 24px; }
.navbar__hamburger span:nth-child(3) { width: 16px; }

.navbar__hamburger.open span:nth-child(1) {
  width: 24px;
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.open span:nth-child(3) {
  width: 24px;
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown */
.navbar__mobile {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(7, 24, 48, 0.98);
  backdrop-filter: blur(18px);
  border-bottom: var(--border-royal);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur-slow) ease,
              opacity var(--dur-base) ease;
}

.navbar__mobile.open {
  max-height: 420px;
  opacity: 1;
}

.navbar__mobile-inner {
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  border-top: var(--border-subtle);
}

.navbar__mobile-link {
  padding: 12px 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-ice-dim);
  transition: color var(--dur-fast) ease;
  border-bottom: var(--border-subtle);
}

.navbar__mobile-link:last-child { border-bottom: none; }
.navbar__mobile-link:hover { color: var(--clr-royal-bright); }
.navbar__mobile-link--gold { color: var(--clr-gold); }
.navbar__mobile-link--gold:hover { color: #ffe066; }


/* ───────────────────────────────────────────────
   7. LIVE TICKER
─────────────────────────────────────────────── */
.ticker {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: var(--z-ticker);
  height: 30px;
  overflow: hidden;
  background: var(--clr-royal);
  display: flex;
  align-items: center;
}

.ticker__label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 16px;
  background: var(--clr-navy-deep);
  border-right: 1px solid rgba(59, 158, 255, 0.25);
}

.ticker__label-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}

.ticker__track-wrap {
  overflow: hidden;
  flex: 1;
  position: relative;
}

/* ✦ The scrolling belt — must contain 2× the content for seamless loop */
.ticker__track {
  display: flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 32s linear infinite;
}

.ticker__track:hover {
  animation-play-state: paused;
}

.ticker__item {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.ticker__sep {
  color: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  font-size: 10px;
}

/* Live pulsing dot */
.ticker__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-danger);
  flex-shrink: 0;
  animation: livePulse 1.4s ease infinite;
}

.ticker__dot--gold { background: var(--clr-gold); }


/* ───────────────────────────────────────────────
   8. HERO SECTION
─────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 55% at 65% 35%, rgba(21, 87, 176, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 45% 50% at 10% 75%, rgba(11, 37, 69, 0.6) 0%, transparent 60%),
    linear-gradient(162deg, #071830 0%, #0B2545 55%, #0d2f60 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #0a1628);
  pointer-events: none;
}

/* Decorative pitch rings */
.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59, 158, 255, 0.08);
  pointer-events: none;
}

.hero__ring--lg {
  width: 640px;
  height: 640px;
  bottom: -40%;
  right: -5%;
}

.hero__ring--sm {
  width: 380px;
  height: 380px;
  bottom: -20%;
  right: 8%;
}

.hero__glow {
  position: absolute;
  width: 360px;
  height: 360px;
  top: 0;
  left: -100px;
  background: rgba(21, 87, 176, 0.12);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero__content { position: relative; z-index: 2; }

/* Breaking badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-royal-bright);
  border: var(--border-royal);
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero__badge--gold {
  color: var(--clr-gold);
  border-color: rgba(240, 180, 41, 0.4);
  background: rgba(240, 180, 41, 0.06);
  animation: goldGlow 2.2s ease infinite;
}

/* Side card (cup winner / highlight) */
.hero__side-card {
  background: linear-gradient(160deg, #0d2040, #071830);
  border: var(--border-gold);
  overflow: hidden;
}

.hero__side-card-header {
  padding: 12px 20px;
  background: rgba(240, 180, 41, 0.1);
  border-bottom: var(--border-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__trophy-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: rgba(240, 180, 41, 0.1);
  border: 2px solid rgba(240, 180, 41, 0.35);
  margin: 0 auto 16px;
  animation: goldGlow 2.2s ease infinite;
}


/* ───────────────────────────────────────────────
   9. CARDS — ARTICLE / BLOG POST
─────────────────────────────────────────────── */
.card {
  position: relative;
  background: #0d1f3c;
  overflow: hidden;
}

/* Gradient border effect */
.card--bordered::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(59, 158, 255, 0.28),
    transparent 55%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* Accent colour bar on left edge */
.card__accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
}

.card__accent-bar--blue    { background: var(--clr-royal-bright); }
.card__accent-bar--gold    { background: var(--clr-gold); }
.card__accent-bar--danger  { background: var(--clr-danger); }
.card__accent-bar--green   { background: var(--clr-success); }
.card__accent-bar--purple  { background: #9333ea; }

/* Card content padding (accounts for accent bar) */
.card__body { padding: 24px 24px 24px 28px; position: relative; z-index: 1; }

/* Category badge */
.card__category {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.card__category--blue {
  color: var(--clr-royal-bright);
  background: rgba(59, 158, 255, 0.12);
  border: 1px solid rgba(59, 158, 255, 0.28);
}

.card__category--gold {
  color: var(--clr-gold);
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.28);
}

.card__category--danger {
  color: var(--clr-danger);
  background: rgba(224, 60, 60, 0.12);
  border: 1px solid rgba(224, 60, 60, 0.28);
}

.card__category--green {
  color: var(--clr-success);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.card__category--purple {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

/* Card meta line (author · date · read time) */
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(176, 196, 232, 0.5);
  margin-bottom: 10px;
}

.card__meta-sep { color: rgba(255, 255, 255, 0.12); }

/* Arrow "Read More" link */
.card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-royal-bright);
  margin-top: 16px;
  transition: color var(--dur-fast) ease, gap var(--dur-fast) ease;
}

.card__read-more::after {
  content: '→';
  transition: transform var(--dur-fast) ease;
}

.card:hover .card__read-more::after { transform: translateX(5px); }
.card:hover .card__read-more { color: #ffffff; }

/* Lift on hover */
.card-lift {
  transition:
    transform var(--dur-base) var(--ease-lift),
    box-shadow var(--dur-base) ease;
}

.card-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-lg);
}


/* ───────────────────────────────────────────────
   10. LEAGUE LOG TABLE
─────────────────────────────────────────────── */
.log-table {
  width: 100%;
  overflow: hidden;
  border: var(--border-subtle);
}

.log-table__header {
  display: grid;
  grid-template-columns: 28px 1fr 28px 34px;
  padding: 10px 12px;
  background: #0d1f3c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.log-table__th {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-ice-dim);
}

.log-table__th--center { text-align: center; }
.log-table__th--pts    { color: var(--clr-royal-bright); }

.log-table__body {
  divide-y: var(--border-subtle);
}

/* Each row */
.log-row {
  display: grid;
  grid-template-columns: 28px 1fr 28px 34px;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background var(--dur-fast) ease;
}

.log-row:hover { background: rgba(59, 158, 255, 0.055) !important; }

/* Zone colour fills */
.log-row--caf-cl    { background: rgba(34,  197, 94,  0.09); }
.log-row--caf-cc    { background: rgba(59,  130, 246, 0.09); }
.log-row--playoff   { background: rgba(249, 115, 22,  0.09); }
.log-row--relegated { background: rgba(224, 60,  60,  0.12); }

/* Position number */
.log-row__pos {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.log-row__pos--caf-cl    { color: var(--clr-success); }
.log-row__pos--caf-cc    { color: #3b82f6; }
.log-row__pos--playoff   { color: var(--clr-warning); }
.log-row__pos--relegated { color: var(--clr-danger); }
.log-row__pos--default   { color: var(--clr-ice-dim); }

/* Club cell */
.log-row__club {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.log-row__logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.log-row__name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-row__name--caf-cl    { color: #ffffff; }
.log-row__name--caf-cc    { color: var(--clr-ice); }
.log-row__name--relegated { color: var(--clr-danger); }
.log-row__name--default   { color: var(--clr-ice-dim); }

/* Played / Points cells */
.log-row__played {
  font-family: var(--font-body);
  font-size: 12px;
  text-align: center;
  color: var(--clr-ice-dim);
}

.log-row__pts {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.log-row__pts--caf-cl    { color: var(--clr-success); }
.log-row__pts--caf-cc    { color: #3b82f6; }
.log-row__pts--playoff   { color: var(--clr-warning); }
.log-row__pts--relegated { color: var(--clr-danger); }
.log-row__pts--default   { color: #ffffff; }

/* Zone legend */
.log-legend {
  background: #0d1f3c;
  border: var(--border-subtle);
  padding: 12px;
  margin-top: 10px;
}

.log-legend__title {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(176, 196, 232, 0.45);
  margin-bottom: 8px;
}

.log-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(176, 196, 232, 0.7);
  margin-bottom: 5px;
}

.log-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.log-legend__dot--caf-cl    { background: rgba(34,  197, 94,  0.3); border: 1px solid #22c55e; }
.log-legend__dot--caf-cc    { background: rgba(59,  130, 246, 0.3); border: 1px solid #3b82f6; }
.log-legend__dot--playoff   { background: rgba(249, 115, 22,  0.3); border: 1px solid #f97316; }
.log-legend__dot--relegated { background: rgba(224, 60,  60,  0.35); border: 1px solid #e03c3c; }


/* ───────────────────────────────────────────────
   11. MATCHDAY / RESULTS ZONE
─────────────────────────────────────────────── */

/* Tab strip */
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.tab-btn {
  padding-bottom: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-ice-dim);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}

.tab-btn:hover { color: #ffffff; }

.tab-btn.active {
  color: var(--clr-royal-bright);
  border-bottom-color: var(--clr-royal-bright);
}

/* Match / fixture card */
.match-card {
  background: #0d1f3c;
  border: var(--border-subtle);
  padding: 16px;
  cursor: pointer;
  transition: background var(--dur-fast) ease;
}

.match-card:hover { background: rgba(255, 255, 255, 0.04); }

.match-card--featured {
  border-color: rgba(240, 180, 41, 0.25);
  box-shadow: 0 0 20px rgba(240, 180, 41, 0.08);
}

.match-card__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.match-card__team {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  flex: 1;
}

.match-card__team--home { text-align: right; }
.match-card__team--away { text-align: left; }

.match-card__centre {
  text-align: center;
  flex-shrink: 0;
  padding: 0 12px;
}

.match-card__score {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--clr-royal-bright);
  letter-spacing: 0.06em;
  line-height: 1;
}

.match-card__vs {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-royal-bright);
}

.match-card__meta {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(176, 196, 232, 0.4);
  margin-top: 2px;
  display: block;
}

.match-card__note {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

.match-card__note--gold   { color: var(--clr-gold); }
.match-card__note--danger { color: var(--clr-danger); }


/* ───────────────────────────────────────────────
   12. PLAYER SPOTLIGHT PAGE
─────────────────────────────────────────────── */
.player-card {
  background: #0d1f3c;
  overflow: hidden;
}

.player-card__profile {
  background: linear-gradient(160deg, #134074, #071830);
  border-right: var(--border-subtle);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.player-card__avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid var(--clr-gold);
  background: var(--clr-navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: var(--shadow-gold);
  animation: goldGlow 2.2s ease infinite;
}

.player-card__club-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 14px;
  background: var(--clr-gold);
  color: var(--clr-navy-deep);
  margin-bottom: 16px;
}

.player-card__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  width: 100%;
  border-bottom: var(--border-subtle);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.player-card__meta-label { color: var(--clr-ice-dim); text-transform: uppercase; }
.player-card__meta-value { color: #ffffff; font-weight: 700; font-size: 12px; }
.player-card__meta-value--gold { color: var(--clr-gold); font-size: 16px; font-weight: 900; }

/* Stat boxes */
.stat-box {
  background: var(--clr-navy-deep);
  border: var(--border-subtle);
  padding: 16px;
  text-align: center;
}

.stat-box__value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-box__label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-ice-dim);
}

/* Skill bars */
.skill-bar { margin-bottom: 12px; }

.skill-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.skill-bar__label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-ice-dim);
}

.skill-bar__value {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.skill-bar__track {
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.2s var(--ease-lift);
}

/* Form result dots */
.form-dot {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.form-dot--w { background: var(--clr-success); }
.form-dot--d { background: #eab308; }
.form-dot--l { background: var(--clr-danger); }


/* ───────────────────────────────────────────────
   13. BUTTONS
─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition:
    background var(--dur-fast) ease,
    color var(--dur-fast) ease,
    transform var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--clr-royal);
  color: #ffffff;
}
.btn--primary:hover { background: var(--clr-royal-bright); }

.btn--ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn--ghost:hover {
  border-color: var(--clr-royal-bright);
  color: var(--clr-royal-bright);
}

.btn--gold {
  background: var(--clr-gold);
  color: var(--clr-navy-deep);
}
.btn--gold:hover { background: var(--clr-gold-dim); }

.btn--danger {
  background: var(--clr-danger);
  color: #ffffff;
}
.btn--danger:hover { background: #c42e2e; }


/* ───────────────────────────────────────────────
   14. NEWSLETTER SECTION
─────────────────────────────────────────────── */
.newsletter {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(59, 158, 255, 0.12), transparent 70%),
    linear-gradient(135deg, #0B2545, #1a3a7c, #0B2545);
  text-align: center;
  padding: 80px 16px;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  max-width: 440px;
  margin: 0 auto;
  gap: 0;
}

@media (min-width: 480px) {
  .newsletter__form { flex-direction: row; }
}

.newsletter__input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition:
    border-color var(--dur-fast) ease,
    background var(--dur-fast) ease;
}

@media (min-width: 480px) {
  .newsletter__input { border-right: none; }
}

.newsletter__input::placeholder { color: rgba(255, 255, 255, 0.3); }

.newsletter__input:focus {
  border-color: var(--clr-royal-bright);
  background: rgba(59, 158, 255, 0.08);
}

.newsletter__btn {
  padding: 14px 28px;
  background: var(--clr-gold);
  color: var(--clr-navy-deep);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.newsletter__btn:hover {
  background: var(--clr-gold-dim);
  transform: translateY(-1px);
}

.newsletter__btn--success {
  background: var(--clr-success);
  color: #ffffff;
}

.newsletter__success-msg {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--clr-success);
  margin-top: 12px;
  display: none;
}

.newsletter__success-msg.visible { display: block; }


/* ───────────────────────────────────────────────
   15. FOOTER
─────────────────────────────────────────────── */
.footer {
  background: #040e1c;
  border-top: var(--border-subtle);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--clr-ice-dim);
  margin-bottom: 10px;
  transition: color var(--dur-fast) ease;
}

.footer__link:hover { color: var(--clr-royal-bright); }

.footer__social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.footer__social-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--clr-ice-dim);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  transition:
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease;
}

.footer__social-btn:hover {
  border-color: var(--clr-royal-bright);
  color: var(--clr-royal-bright);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-top: var(--border-subtle);
}

@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
}


/* ───────────────────────────────────────────────
   16. PAGE TRANSITION SYSTEM
─────────────────────────────────────────────── */
.page {
  transition: opacity 0.3s ease;
}

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

.page.entering {
  animation: fadeIn 0.35s ease both;
}


/* ───────────────────────────────────────────────
   17. KEYFRAME ANIMATIONS
─────────────────────────────────────────────── */

/* Ticker scroll */
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Entry animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scalePop {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Pulsing live dot */
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.25; transform: scale(0.8); }
}

/* Gold glow badge */
@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 0 0   rgba(240, 180, 41, 0.45); }
  50%       { box-shadow: 0 0 0 10px rgba(240, 180, 41, 0); }
}

/* Royal glow */
@keyframes royalGlow {
  0%, 100% { box-shadow: 0 0 0 0   rgba(59, 158, 255, 0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(59, 158, 255, 0); }
}

/* Shimmer loading placeholder */
@keyframes shimmer {
  0%   { background-position: -400% 0; }
  100% { background-position:  400% 0; }
}

/* Staggered hero entry helpers */
.anim-fade-up   { animation: fadeUp  0.6s ease both; }
.anim-fade-up-2 { animation: fadeUp  0.6s 0.12s ease both; opacity: 0; animation-fill-mode: both; }
.anim-fade-up-3 { animation: fadeUp  0.6s 0.24s ease both; opacity: 0; animation-fill-mode: both; }
.anim-fade-up-4 { animation: fadeUp  0.6s 0.36s ease both; opacity: 0; animation-fill-mode: both; }
.anim-scale-pop { animation: scalepop 0.45s cubic-bezier(.22,.68,0,1.2) both; }

/* Shimmer placeholder class */
.shimmer-ph {
  background: linear-gradient(
    90deg,
    #132f56 25%,
    #1d3f70 50%,
    #132f56 75%
  );
  background-size: 400% 100%;
  animation: shimmer 3s ease infinite;
}


/* ───────────────────────────────────────────────
   18. UTILITY MICRO-CLASSES
─────────────────────────────────────────────── */

/* Gradient border wrapper */
.grad-border {
  position: relative;
}

.grad-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59, 158, 255, 0.28), transparent 55%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* Section overline with decorative line */
.section-overline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-royal-bright);
  margin-bottom: 8px;
}

.section-overline::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.section-overline--gold  { color: var(--clr-gold); }
.section-overline--white { color: var(--clr-ice-dim); }

/* Live badge */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: var(--border-royal);
  padding: 4px 12px;
  color: var(--clr-royal-bright);
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-danger);
  animation: livePulse 1.4s ease infinite;
  flex-shrink: 0;
}

/* Divider lines */
.divider        { height: 1px; background: rgba(255,255,255,0.06); }
.divider--royal { background: rgba(59,158,255,0.18); }
.divider--gold  { background: rgba(240,180,41,0.22); }

/* Responsive image cover */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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


/* ───────────────────────────────────────────────
   19. RESPONSIVE BREAKPOINTS SUMMARY
   (For reference — classes above use these)

   sm:  ≥ 640px
   md:  ≥ 768px
   lg:  ≥ 1024px
   xl:  ≥ 1280px
─────────────────────────────────────────────── */

@media (max-width: 639px) {
  .hero { padding-top: 48px; padding-bottom: 48px; }
  .match-card__score  { font-size: 20px; }
  .match-card__team   { font-size: 11px; }
  .player-card__profile { padding: 24px 16px; }
  .player-card__avatar  { width: 88px; height: 88px; font-size: 28px; }
  .log-table__header,
  .log-row { padding-left: 8px; padding-right: 8px; }
}

@media (min-width: 768px) {
  .player-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
  }
}

