/* =========================================================================
   CAPD Communications — Brand stylesheet
   -------------------------------------------------------------------------
   Palette   Navy (trust, institution)  ·  Amber (warmth, progress)
   Type      Montserrat (display — echoes the logotype) · Inter (text)
   ========================================================================= */

:root {
  /* Brand colour */
  --navy-950: #050d24;
  --navy-900: #0a1a3f;
  --navy-800: #102658;
  --navy-700: #1a3672;
  --navy-100: #e6ebf5;
  --amber-500: #e8a317;
  --amber-600: #c98a0c;
  --amber-100: #fbf0d6;
  --green-600: #1f7a4d;
  --green-100: #dff1e7;

  /* Neutrals */
  --paper: #f7f5f0;
  --white: #ffffff;
  --line: #e4e0d6;
  --text: #171c28;
  --muted: #5a6172;

  /* Type */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 63, .06), 0 1px 3px rgba(10, 26, 63, .08);
  --shadow-md: 0 10px 30px -12px rgba(10, 26, 63, .25);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy-900);
  letter-spacing: -.01em;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--amber-500); color: var(--navy-950); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-900); color: #cfd7ea; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* ---------- Section heading (amber rule echoes the logo underline) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 3px; background: currentColor; }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--amber-500); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; margin: 0; max-width: 22ch; }
.section-head p { color: var(--muted); max-width: 52ch; margin: .75rem 0 0; }
.section--navy .section-head p { color: #aab5cf; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .02em;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--amber-500); color: var(--navy-950); }
.btn--primary:hover { background: #f2b437; }
.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy-800); font-size: .92rem; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.topbar { background: var(--navy-950); color: #9aa6c4; font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar a:hover { color: var(--white); }
.topbar__social { display: flex; gap: 1.1rem; }
/* ---------- Glass navbar: a floating, centred pill ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding-top: 14px; height: var(--header-h);
  background: var(--navy-950);
  transition: background .35s var(--ease);
}
.site-header.is-scrolled { background: transparent; }
/* Homepage: floats over the hero image */
.site-header--overlay { margin-bottom: calc(-1 * var(--header-h)); background: transparent; }
.site-header > .container {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
  height: 62px; padding-inline: 1.4rem .55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.05) 55%, rgba(255,255,255,.08) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.04), 0 18px 40px -18px rgba(0,0,0,.65);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled > .container {
  background: linear-gradient(135deg, rgba(10,22,58,.78), rgba(5,13,36,.72));
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 22px 44px -16px rgba(0,0,0,.7);
}
.brand { justify-self: start; display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { justify-self: center; }
.nav__list { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 1.05rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .86rem; letter-spacing: .015em; color: rgba(255,255,255,.82);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--amber-500); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: .4rem; }
.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 1.3rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: .86rem; letter-spacing: .02em; color: #fff;
  background: linear-gradient(180deg, #ef4444 0%, #c62828 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 22px -8px rgba(229,57,53,.85);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.nav-cta:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 26px -8px rgba(229,57,53,.95); }
.nav-cta[aria-current="page"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 3px rgba(255,255,255,.18), 0 8px 22px -8px rgba(229,57,53,.85); }
.nav-cta .live-dot { background: #fff; }
.nav-cta .live-dot.is-on { animation: ringW 1.6s infinite; }
@keyframes ringW { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.nav-toggle { display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .site-header > .container { grid-template-columns: 1fr auto; padding-inline: 1.1rem .45rem; }
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    padding: .6rem; border-radius: 22px;
    background: linear-gradient(160deg, rgba(14,28,70,.9), rgba(5,13,36,.92));
    -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
    border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 48px -16px rgba(0,0,0,.7);
    opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav__link { display: flex; height: 48px; padding: 0 1.1rem; border-radius: 14px; font-size: .98rem; }
  .nav__link[aria-current="page"]::after { left: auto; right: 1.1rem; top: 50%; bottom: auto; margin: -2px 0 0; }
}
@media (max-width: 480px) {
  .nav-cta { height: 40px; padding: 0 .95rem; font-size: .8rem; }
  .brand img { height: 28px; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate;
  /* Fill the screen below the topbar + header, never taller, so the whole hero is visible without scrolling */
  height: 100vh;
  height: 100svh;
  padding-top: var(--header-h);
  min-height: 460px;
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 18s var(--ease) forwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,13,36,.75) 0%, rgba(5,13,36,0) 22%),
    linear-gradient(90deg, rgba(5,13,36,.92) 0%, rgba(5,13,36,.72) 45%, rgba(5,13,36,.25) 100%),
    linear-gradient(0deg, rgba(5,13,36,.85) 0%, rgba(5,13,36,0) 45%);
}
.hero__content { padding-block: clamp(1.5rem, 6vh, 7rem) clamp(1rem, 4vh, 3.5rem); max-width: 760px; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--amber-500); }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #d7deee; max-width: 58ch; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 4rem; padding-bottom: 2.5rem; border-top: 1px solid rgba(255,255,255,.18);
}
.stat { padding: 1.5rem 1.5rem 0 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.18); }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.4rem); color: var(--white); line-height: 1; }
.stat__label { font-size: .82rem; color: #aab5cf; margin-top: .5rem; text-transform: uppercase; letter-spacing: .1em; }
@keyframes heroZoom { to { transform: scale(1); } }
@media (max-width: 560px) {
  .stat { padding-right: .75rem; }
  .stat + .stat { padding-left: .75rem; }
  .stat__label { font-size: .7rem; letter-spacing: .06em; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900) url("../img/pattern-navy.jpg") center / cover;
  color: #cfd7ea;
  padding-block: clamp(4rem, 9vw, 6.5rem) clamp(3rem, 6vw, 4.5rem);
}
.page-hero::after {
  content: ""; position: absolute; right: -8rem; top: -8rem; width: 28rem; height: 28rem; z-index: -1;
  border-radius: 50%; border: 60px solid rgba(232, 163, 23, .09);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: .75rem; }
.page-hero p { max-width: 60ch; font-size: 1.1rem; margin: 0; color: #b8c2db; }
.breadcrumb { display: flex; gap: .5rem; font-size: .85rem; margin-bottom: 1.5rem; color: #8b97b7; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: .8rem; color: var(--muted); }
.card__title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.card__title a:hover { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--amber-500); text-underline-offset: 4px; }
.card__text { color: var(--muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__footer { margin-top: auto; padding-top: .75rem; display: flex; justify-content: space-between; align-items: center; }
.card a.card__cover { position: absolute; inset: 0; z-index: 1; }
.card { position: relative; }
.card .link-arrow, .card .card__title a { position: relative; z-index: 2; }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--navy-100); color: var(--navy-800);
}
.tag--amber { background: var(--amber-100); color: #8a5c00; }
.tag--green { background: var(--green-100); color: var(--green-600); }
.tag--green::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card__media .tag { position: absolute; left: 1rem; top: 1rem; z-index: 1; background: rgba(255,255,255,.95); }

/* Featured (lead) story */
.feature { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.feature__media { min-height: 360px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.feature__body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin: 0; }
.feature__body p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .feature { grid-template-columns: minmax(0,1fr); } .feature__media { min-height: 240px; aspect-ratio: 16/9; } }

/* ---------- Video ---------- */
.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-md); aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.live-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #c62828; color: var(--white);
  padding: .3rem .75rem; border-radius: 4px;
  font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .14em;
}
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.video-split { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2.5rem; align-items: center; }
.video-split__copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1rem; }
@media (max-width: 900px) { .video-split { grid-template-columns: 1fr; } }

.playlist { display: flex; flex-direction: column; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.playlist__item {
  display: grid; grid-template-columns: 132px 1fr; gap: 1rem; align-items: center; width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem; text-align: left; color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.playlist__item:hover { border-color: var(--navy-700); }
.playlist__item[aria-current="true"] { border-color: var(--amber-500); box-shadow: 0 0 0 1px var(--amber-500); }
.playlist__thumb { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: var(--navy-900); }
.playlist__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.playlist__thumb::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font-size: .9rem; }
.playlist__title { font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--navy-900); line-height: 1.3; }
.playlist__meta { font-size: .78rem; color: var(--muted); margin-top: .25rem; }

.video-card { padding: 0; border: 0; background: none; text-align: left; color: inherit; width: 100%; }
.video-card .card__media::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; translate: -50% -50%;
  border-radius: 50%; background: rgba(232,163,23,.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23050d24'/%3E%3C/svg%3E") center / 28px no-repeat;
  transition: transform .3s var(--ease);
}
.video-card:hover .card__media::after { transform: scale(1.1); }
.video-card .card__media::before { content: ""; position: absolute; inset: 0; background: rgba(5,13,36,.35); z-index: 0; }

/* ---------- Sectors / pillars ---------- */
.pillar { padding: 2rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: background .3s, border-color .3s; }
.pillar:hover { background: rgba(255,255,255,.07); border-color: rgba(232,163,23,.5); }
.pillar__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: rgba(232,163,23,.14); color: var(--amber-500); margin-bottom: 1.25rem; }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.pillar p { font-size: .94rem; color: #aab5cf; margin: 0; }
.section--white .pillar, .section:not(.section--navy) .pillar { background: var(--white); border-color: var(--line); }
.section:not(.section--navy) .pillar p { color: var(--muted); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.chip {
  padding: .55rem 1.15rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--navy-900);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--navy-900); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

/* ---------- Project detail rows ---------- */
.project-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: 3.5rem; border-top: 1px solid var(--line); }
.project-row:first-child { border-top: 0; padding-top: 0; }
.project-row:nth-child(even) .project-row__media { order: 2; }
.project-row__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--navy-100); }
.project-row__media button { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.project-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-row__media:hover img { transform: scale(1.04); }
.project-row h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.project-row p { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.75rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.facts dd { margin: .25rem 0 0; font-family: var(--font-display); font-weight: 700; color: var(--navy-900); font-size: .95rem; }
@media (max-width: 860px) {
  .project-row { grid-template-columns: 1fr; }
  .project-row:nth-child(even) .project-row__media { order: 0; }
}

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.gallery__item { all: unset; cursor: zoom-in; position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--navy-100); }
.gallery__item:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item span {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .85rem; color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  background: linear-gradient(0deg, rgba(5,13,36,.85), transparent);
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 13, 36, .94); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 4rem 4.5rem; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 10rem); border-radius: var(--radius-sm); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: #cfd7ea; font-size: .95rem; text-align: center; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: var(--white); font-size: 1.4rem; display: grid; place-items: center;
  transition: background .2s;
}
.lightbox__btn:hover { background: var(--amber-500); color: var(--navy-950); border-color: var(--amber-500); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1.25rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1.25rem; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) { .lightbox__inner { padding: 4rem 1rem; } .lightbox__prev, .lightbox__next { top: auto; bottom: 1.25rem; translate: none; } }

/* ---------- Article ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article__head { text-align: left; margin-bottom: 2rem; }
.article__head h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.article__meta { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; color: var(--muted); font-size: .9rem; }
.article__figure { margin: 0 0 2.5rem; border-radius: var(--radius); overflow: hidden; }
.article__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.prose { font-size: 1.12rem; line-height: 1.8; color: #2a3040; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.prose img { border-radius: var(--radius-sm); margin: 1.75rem 0; }
.prose a { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--amber-500); text-underline-offset: 3px; }
.prose blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--amber-500); background: var(--white); font-family: var(--font-display); font-weight: 600; color: var(--navy-900); }
.share { display: flex; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.share span { font-weight: 600; font-size: .9rem; margin-right: .5rem; }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--navy-900); transition: all .2s; }
.share a:hover, .share button:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.share svg { width: 18px; height: 18px; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy-800); margin-bottom: 2rem; font-size: .92rem; }
.back-link:hover { color: var(--amber-600); }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split__media::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 3px solid var(--amber-500); border-radius: var(--radius); z-index: -1; }
.split__media { isolation: isolate; }
.lead { font-size: 1.2rem; color: var(--navy-900); font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--amber-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050d24' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.values { counter-reset: v; }
.value { counter-increment: v; padding-top: 1.5rem; border-top: 3px solid var(--navy-900); }
.value::before { content: "0" counter(v); display: block; font-family: var(--font-display); font-weight: 800; color: var(--amber-600); font-size: .85rem; letter-spacing: .1em; margin-bottom: .75rem; }
.value h3 { font-size: 1.2rem; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }
.partners { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; padding: 2rem 2.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.partners img { height: 90px; width: auto; }
.partners p { margin: 0; color: var(--muted); max-width: 50ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__media img { aspect-ratio: 4/3; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--amber-500); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2.5rem, 6vw, 4rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
}
.cta::after { content: ""; position: absolute; right: -4rem; bottom: -6rem; width: 18rem; height: 18rem; border-radius: 50%; border: 48px solid rgba(10,26,63,.08); z-index: -1; }
.cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; margin: 0 0 .5rem; max-width: 20ch; }
.cta p { margin: 0; color: rgba(10,26,63,.8); max-width: 50ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9aa6c4; padding-top: 4.5rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 36ch; }
.site-footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.site-footer a:hover { color: var(--amber-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); transition: all .2s; }
.socials a:hover { background: var(--amber-500); color: var(--navy-950); border-color: var(--amber-500); }
.socials svg { width: 17px; height: 17px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.center { text-align: center; }
.empty { padding: 3rem; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   Live TV
   ========================================================================= */
.nav__link--live { display: inline-flex; align-items: center; gap: .45rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #d32f2f; flex: none; }
.live-dot.is-on { animation: ring 1.6s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(211,47,47,.6); } 70% { box-shadow: 0 0 0 8px rgba(211,47,47,0); } 100% { box-shadow: 0 0 0 0 rgba(211,47,47,0); } }
.topbar__live { display: inline-flex; align-items: center; gap: .5rem; color: var(--white); font-weight: 600; }
.topbar__live:hover { color: var(--amber-500) !important; }
@media (max-width: 600px) { .topbar__live ~ .topbar__date { display: none; } }

.live-stage { background: radial-gradient(1200px 500px at 20% -10%, #14306e 0%, var(--navy-950) 60%); color: #cfd7ea; padding-block: 3rem 4rem; }
.live-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 2rem; }
.live-head h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin: 0; }
.live-head__actions { display: flex; align-items: center; gap: 1rem; }
.text-muted-light { color: #8b97b7; font-size: .85rem; }

.live-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 960px) { .live-grid { grid-template-columns: minmax(0, 1fr); } }
.live-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.08); }
.live-player iframe, .live-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* Off-air card: sized from the player itself (container query units), so it fits a phone, a laptop and fullscreen */
.offair { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 3.5% 4%; container-type: size;
  background: linear-gradient(rgba(5,13,36,.82), rgba(5,13,36,.92)), url("../img/pattern-navy.jpg") center / cover; }
.offair__inner { width: 100%; max-width: 44em; display: flex; flex-direction: column; align-items: center; gap: .85em;
  font-size: clamp(8.5px, min(2.3cqw, 4.1cqh), 18px); }
.offair__inner > * { margin: 0; }
.offair__badge { display: inline-block; padding: .4em 1em; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; font-family: var(--font-display); font-size: .7em; font-weight: 800; letter-spacing: .16em; color: #aab5cf; }
.offair .offair__label { text-transform: uppercase; letter-spacing: .16em; font-size: .74em; color: var(--amber-500); font-weight: 700; }
.offair__match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 1.1em; width: 100%; }
.offair__team { display: flex; flex-direction: column; align-items: center; gap: .55em; min-width: 0; }
.offair__team .crest { width: 4.4em; height: 4.4em; font-size: 1em; margin: 0; }
.offair__name { font-family: var(--font-display); font-weight: 800; font-size: 1.7em; line-height: 1.1; color: var(--white); text-wrap: balance; overflow-wrap: anywhere; }
.offair__vs { font-family: var(--font-display); font-weight: 800; font-size: 1em; color: var(--amber-500); letter-spacing: .06em; text-transform: uppercase; }
.offair__vs--score { font-size: 2.2em; color: var(--white); letter-spacing: 0; white-space: nowrap; }
.offair .offair__meta { color: #aab5cf; font-size: .86em; line-height: 1.45; }
.offair h2 { color: var(--white); font-size: 1.8em; font-weight: 800; }
.offair p { color: #aab5cf; font-size: .95em; }
.countdown { display: flex; justify-content: center; gap: .6em; }
.countdown div { min-width: 4.4em; padding: .6em .4em .5em; border-radius: .6em; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.countdown b { display: block; font-family: var(--font-display); font-size: 2em; color: var(--white); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: .45em; font-size: .6em; letter-spacing: .12em; text-transform: uppercase; color: #8b97b7; }
/* Short players (phones): drop the extras so the teams and countdown always fit */
@container (max-height: 300px) { .offair__badge { display: none; } .offair__inner { gap: .6em; } }
@container (max-height: 210px) { .offair__label { display: none; } .offair__team .crest { width: 3.4em; height: 3.4em; } .offair__team { gap: .35em; } }
}

.scoreboard { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 1.75rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); }
.scoreboard__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8b97b7; font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .1em; background: rgba(255,255,255,.1); color: var(--white); white-space: nowrap; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.status-pill--live { background: #d32f2f; }
.status-pill--halftime { background: var(--amber-500); color: var(--navy-950); }
.status-pill--fulltime { background: var(--white); color: var(--navy-950); }
.scoreboard__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.team { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.crest { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .04em;
  background: var(--amber-500); color: var(--navy-950); box-shadow: inset 0 0 0 4px rgba(255,255,255,.35); }
.crest--away { background: var(--white); color: var(--navy-900); box-shadow: inset 0 0 0 4px var(--navy-100); }
.crest--sm { width: 28px; height: 28px; font-size: .62rem; box-shadow: none; margin-right: .6rem; flex: none; display: inline-grid; }
.score { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.5rem); color: var(--white); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score em { font-style: normal; color: #5e6b8c; margin: 0 .2em; }
.score .vs { font-size: .5em; color: var(--amber-500); margin: 0; }
.scoreboard__meta { text-align: center; font-size: .88rem; color: #aab5cf; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }

.live-lower { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 960px) { .live-lower { grid-template-columns: minmax(0, 1fr); } }
.fixtures { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.fixture { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: .4rem 1.25rem; align-items: center; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.fixture__when { font-size: .82rem; font-weight: 600; color: var(--navy-900); grid-row: span 2; }
.fixture__when small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; margin-top: .15rem; }
.fixture__match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; font-family: var(--font-display); font-weight: 700; color: var(--navy-900); }
.fixture__team--away { text-align: right; }
.fixture__score { min-width: 64px; text-align: center; padding: .3rem .6rem; border-radius: 6px; background: var(--navy-100); font-size: .85rem; color: var(--navy-800); }
.fixture--played .fixture__score { background: var(--navy-900); color: var(--white); font-size: 1rem; }
.fixture__venue { font-size: .78rem; color: var(--muted); }
@media (max-width: 560px) { .fixture { grid-template-columns: minmax(0, 1fr); } .fixture__when { grid-row: auto; } }

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 1.25rem; }
.standings { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.standings caption { text-align: left; padding: 1rem 1.25rem .5rem; font-family: var(--font-display); font-weight: 800; color: var(--navy-900); }
.standings th { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.standings td { padding: .75rem .5rem; text-align: center; border-bottom: 1px solid var(--line); }
.standings tr:last-child td { border-bottom: 0; }
.standings abbr { text-decoration: none; cursor: help; }
@media (max-width: 420px) { .standings th, .standings td { padding-left: .3rem; padding-right: .3rem; } }
.standings .l { text-align: left; }
.standings td.l { font-weight: 600; color: var(--navy-900); white-space: nowrap; }
.standings th:first-child, .standings td:first-child { padding-left: 1.25rem; width: 2.5rem; }
.standings th:last-child, .standings td:last-child { padding-right: 1.25rem; }
.standings tr.qualify td:first-child { box-shadow: inset 4px 0 0 var(--green-600); }
.table-note { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.qualify-key { width: 4px; height: 14px; background: var(--green-600); display: inline-block; }


/* =========================================================================
   HCDT Portal components
   ========================================================================= */
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand__sub { font-family: var(--font-display); font-weight: 800; font-size: .66rem; line-height: 1.15; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-900); padding-left: .75rem; border-left: 3px solid var(--amber-500); }

/* Branded placeholder when no photo exists */
.placeholder { position: relative; width: 100%; height: 100%; min-height: 160px; display: grid; place-content: center; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--accent) 45%, transparent) 0, transparent 55%), var(--navy-900); color: var(--white); }
.placeholder::before { content: ""; position: absolute; right: -30%; bottom: -45%; width: 90%; aspect-ratio: 1; border-radius: 50%; border: 28px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.placeholder span { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: .04em; }
.placeholder small { position: relative; font-weight: 700; letter-spacing: .3em; font-size: .7rem; color: var(--accent); }
.project-row__media .placeholder { position: absolute; inset: 0; }

/* Trust chip & statuses */
.trust-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; color: var(--navy-900); position: relative; z-index: 2; }
.trust-chip::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
a.trust-chip:hover { text-decoration: underline; }
.status { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--active { background: var(--green-100); color: var(--green-600); }
.status--transferred { background: #eceff5; color: #4f5d7a; }
.tag--live { background: #fde8e8; color: #c62828; position: relative; z-index: 2; }
.tbc { color: var(--muted); font-style: italic; font-weight: 500; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .55rem; background: var(--accent); flex: none; }

/* Trust cards */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.75rem; }
.trust-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trust-card__media { aspect-ratio: 16 / 8; overflow: hidden; background: var(--navy-900); }
.trust-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.trust-card:hover .trust-card__media img { transform: scale(1.05); }
.trust-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.trust-card h3 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.trust-card h3 a { position: relative; z-index: 2; }
.trust-card__region { display: flex; gap: .45rem; align-items: flex-start; font-size: .85rem; color: var(--navy-800); font-weight: 500; margin: 0; }
.trust-card__region svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent); }
.trust-card .card__cover { position: absolute; inset: 0; z-index: 1; }
.trust-card--transferred { border-top-style: dashed; }
.trust-card--transferred .trust-card__media { filter: grayscale(.6); }

/* Compare table */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--white); font-size: .92rem; }
.compare th, .compare td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--paper); }
.compare tbody th a { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* HCDT detail */
.hcdt-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: #cfd7ea; padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 4.5rem); border-bottom: 6px solid var(--accent, var(--amber-500)); }
.hcdt-hero__media { position: absolute; inset: 0; z-index: -2; }
.hcdt-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hcdt-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,13,36,.95) 0%, rgba(5,13,36,.75) 55%, rgba(5,13,36,.35) 100%); }
.hcdt-hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; max-width: 22ch; }
.hcdt-hero p { max-width: 60ch; font-size: 1.1rem; color: #c3cce2; margin: 0; }
.hcdt-overview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .hcdt-overview { grid-template-columns: minmax(0, 1fr); } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 2rem; }
.kpi { padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent, var(--amber-500)); border-radius: var(--radius-sm); }
.kpi__value { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--navy-900); line-height: 1.1; }
.kpi__label { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.factsheet { background: var(--navy-900); color: #cfd7ea; border-radius: var(--radius); padding: 1.75rem; }
.factsheet h3 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.25rem; }
.factsheet dl { margin: 0; display: grid; gap: .9rem; }
.factsheet dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.factsheet dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.factsheet dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #8b97b7; font-weight: 600; }
.factsheet dd { margin: 0; color: var(--white); font-weight: 500; font-size: .92rem; }
.factsheet .tbc { color: #8b97b7; }
.live-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 3rem); border-radius: calc(var(--radius) * 1.4);
  background: radial-gradient(600px 300px at 90% 0%, rgba(211,47,47,.35), transparent 70%), var(--navy-950); color: #cfd7ea; }
.live-promo h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 1rem 0 .5rem; }
.live-promo p { margin: 0; max-width: 60ch; }
.live-promo strong { color: var(--amber-500); }
.other-trusts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.other-trust { display: flex; align-items: center; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 700; color: var(--navy-900); transition: border-color .2s, transform .2s; }
.other-trust:hover { border-color: var(--accent); transform: translateY(-2px); }
.other-trust__arrow { margin-left: auto; color: var(--accent); }

/* Sources */
.sources { margin-top: 2.5rem; padding: 1.5rem 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sources h4 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.sources ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .88rem; }
.sources a { color: var(--navy-800); }
.sources a:hover { color: var(--amber-600); text-decoration: underline; }
.sources svg { width: 12px; height: 12px; vertical-align: -1px; }
.project-src { font-size: .8rem; color: var(--muted); margin-top: 1rem; }
.project-src a { color: var(--navy-800); text-decoration: underline; text-decoration-color: var(--amber-500); }
.filter-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); margin-bottom: .6rem; }
.filters--tight { margin-bottom: 1.25rem; }

/* PIA page */
.pia-steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.75rem 1.25rem; }
.pia-step { counter-increment: s; position: relative; padding: 1.75rem 1.5rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.pia-step::before { content: counter(s); position: absolute; top: -16px; left: 1.5rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-500); color: var(--navy-950); font-family: var(--font-display); font-weight: 800; }
.pia-step h3 { font-size: 1.05rem; margin-top: .5rem; }
.pia-step p { color: var(--muted); font-size: .92rem; margin: 0; }
.split-bar { display: flex; height: 54px; border-radius: var(--radius-sm); overflow: hidden; font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: .9rem; }
.split-bar div { display: flex; align-items: center; justify-content: center; }
.split-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.split-legend div { font-size: .9rem; color: #aab5cf; }
.split-legend strong { display: block; color: var(--white); font-family: var(--font-display); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 2.5rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 4px solid var(--amber-500); }
.timeline time { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-600); }
.timeline h3 { font-size: 1.1rem; margin: .3rem 0 .35rem; }
.timeline p { color: var(--muted); margin: 0; font-size: .95rem; }
.honours { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.honour { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.honour__year { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--amber-600); line-height: 1; }
.honour h3 { font-size: 1rem; margin: 0 0 .25rem; }
.honour p { font-size: .82rem; color: var(--muted); margin: 0; }
.honour a { font-size: .78rem; color: var(--navy-800); text-decoration: underline; }

.live-sub { margin: .6rem 0 0; color: #aab5cf; font-size: .95rem; }
.live-head .eyebrow a:hover { color: var(--white); }

/* ---------- Live TV: player shell + our control bar for YouTube ---------- */
.player-shell { display: flex; flex-direction: column; min-width: 0; }
.player-shell.has-bar .live-player { border-radius: var(--radius) var(--radius) 0 0; }
.player-bar { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; background: #0b1530; border: 1px solid rgba(255,255,255,.08); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); color: #fff; flex-wrap: wrap; }
.pb-btn { display: inline-flex; align-items: center; gap: .45rem; height: 38px; min-width: 38px; padding: 0 .55rem; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; font-weight: 600; font-size: .85rem; }
.pb-btn:hover { background: rgba(255,255,255,.1); }
.pb-btn svg { width: 20px; height: 20px; flex: none; }
.pb-text { border: 1px solid rgba(255,255,255,.2); }
.player-bar .i-play, .player-bar.is-playing .i-pause { display: block; }
.player-bar .i-pause, .player-bar.is-playing .i-play { display: none; }
.player-bar .i-muted, .player-bar.is-muted .i-sound { display: none; }
.player-bar .i-sound, .player-bar.is-muted .i-muted { display: block; }
.player-bar.is-muted .pb-unmute { background: var(--amber-500); color: var(--navy-950); animation: nudge 2.4s ease-in-out 3; }
.player-bar:not(.is-muted) .pb-label { display: none; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.05); } }
.pb-volume { width: 90px; accent-color: var(--amber-500); }
.pb-live { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .12em; color: #ff6b6b; margin-left: .25rem; }
.pb-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.pb-spacer { flex: 1; }
@media (max-width: 560px) { .pb-volume, .pb-text { display: none; } }

/* Fullscreen (and the iPhone fallback) */
.player-shell:fullscreen { background: #000; justify-content: center; }
.player-shell:fullscreen .live-player { flex: 1; aspect-ratio: auto; border-radius: 0; border: 0; }
.player-shell:fullscreen .player-bar { border-radius: 0; }
.player-shell.is-theater { position: fixed; inset: 0; z-index: 300; background: #000; justify-content: center; }
.player-shell.is-theater .live-player { flex: 1; aspect-ratio: auto; border-radius: 0; }
.player-shell.is-theater .player-bar { border-radius: 0; }
.player-bar[hidden] { display: none; }

/* ---------- Home hero slider (events) ---------- */
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--navy-950); }
.hero--slider .hero__media { opacity: 0; transition: opacity 1s var(--ease); }
.hero--slider .hero__media.is-active { opacity: 1; }
.hero--slider .hero__media img { animation: none; transform: scale(1.06); transition: transform 9s linear; }
.hero--slider .hero__media.is-active img { transform: scale(1); }
.hero__fallback { position: absolute; inset: 0; background: var(--navy-900) url("../img/pattern-navy.jpg") center / cover; }
.hero--slider .hero__slides { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; }
.hero--slider .hero__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.hero--slider .hero__slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease) .15s, transform .7s var(--ease) .15s, visibility 0s; }
.hero--slider .hero__content { padding-bottom: clamp(.75rem, 2.5vh, 1.75rem); }
.hero > .container { max-height: 100%; }
/* Short screens: tighten type and spacing so every part of the slide stays on screen */
@media (max-height: 760px) {
  .hero h1, .hero__title { font-size: clamp(1.8rem, 6.2vh, 3.2rem); margin-bottom: .6rem; }
  .hero__lede { font-size: 1rem; margin-bottom: 1.1rem; }
  .hero__meta { margin-bottom: .75rem; }
  .hero__crests { margin: 0 0 .75rem; }
  .hero__crests .crest { width: 60px; height: 60px; }
  .hero__controls { margin-bottom: .9rem; }
}
@media (max-height: 600px) {
  .hero__lede { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero__crests { display: none; }
}
.hero__title { color: var(--white); font-size: clamp(2.1rem, 5.2vw, 3.75rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 1rem; }
.hero__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; padding: 0; margin: 0 0 1.25rem; color: #e3e8f4; font-weight: 500; }
.hero__meta li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta svg { width: 18px; height: 18px; color: var(--amber-500); flex: none; }
.hero__when { margin-left: .4rem; padding: .15rem .55rem; border-radius: 999px; background: var(--amber-500); color: var(--navy-950); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.hero__controls { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; }
.hero__controls[hidden] { display: none; }
.hero__arrow { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(5,13,36,.35); color: #fff; cursor: pointer; transition: background .2s, border-color .2s, color .2s; backdrop-filter: blur(4px); }
.hero__arrow:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.hero__arrow svg { width: 20px; height: 20px; }
.hero__arrow[hidden] { display: none; }
.hero__pause .i-play, .hero__pause.is-paused .i-pause { display: none; }
.hero__pause.is-paused .i-play { display: block; }
.hero__dots { display: flex; gap: .4rem; margin: 0 .3rem; }
.hero__dot { position: relative; width: 34px; height: 42px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dot::before, .hero__dot i { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.hero__dot::before { right: 0; background: rgba(255,255,255,.3); }
.hero__dot i { width: 0; background: var(--amber-500); }
.hero__dot[aria-current="true"] i { width: 100%; }
.hero__dot.is-running i { width: 0; animation: heroDot var(--slide-ms, 7s) linear forwards; }
@keyframes heroDot { to { width: 100%; } }
.hero--slider .hero__stats { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero--slider .hero__slide, .hero--slider .hero__media, .hero--slider .hero__media img { transition: none; transform: none; }
}

/* ---------- Reels (match highlights) ---------- */
.section--reels { background: var(--navy-950); color: #cfd7ea; overflow: hidden; }
.section--reels h2 { color: var(--white); }
.section--reels .eyebrow { color: var(--amber-500); }
.section--reels .section-head p { color: #aab5cf; }
.live-stage + .section--reels { padding-top: 0; }
.reels-nav { display: flex; align-items: center; gap: .6rem; }
.reels-nav .btn { margin-left: .4rem; }
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 21vw, 230px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: .5rem .25rem 1rem; margin: -.5rem -.25rem 0;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.reels::-webkit-scrollbar { height: 6px; }
.reels::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 6px; }
.reels__empty { grid-column: 1 / -1; margin: 0; padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed rgba(255,255,255,.2); border-radius: var(--radius); color: #aab5cf; }
.reel {
  position: relative; display: block; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-800); color: #fff; text-align: left; cursor: pointer; scroll-snap-align: start; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.reel:hover, .reel:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); }
.reel:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; }
.reel__media, .reel__media img, .reel__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__media img + video { opacity: 0; transition: opacity .3s; }
.reel.is-previewing .reel__media video { opacity: 1; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,13,36,.55) 0%, rgba(5,13,36,0) 28%, rgba(5,13,36,0) 50%, rgba(5,13,36,.92) 100%); }
.reel__tag { position: absolute; top: .75rem; left: .75rem; padding: .25rem .6rem; border-radius: 999px; background: var(--amber-500); color: var(--navy-950); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.reel__play { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(6px); transition: transform .3s var(--ease), opacity .3s; }
.reel__play svg { width: 22px; height: 22px; margin-left: 3px; }
.reel:hover .reel__play { transform: scale(1.1); }
.reel.is-previewing .reel__play { opacity: 0; }
.reel__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem .9rem; display: flex; flex-direction: column; gap: .25rem; }
.reel__title { font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel__match { font-size: .8rem; color: var(--amber-500); font-weight: 600; }
.reel__date { font-size: .74rem; color: #aab5cf; }
@media (max-width: 560px) { .reels { grid-auto-columns: 62vw; } .reels-nav [data-scroll] { display: none; } }

/* Reel viewer */
.reel-viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: transparent; color: #fff; }
.reel-viewer[open] { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.reel-viewer::backdrop { background: rgba(3, 8, 22, .95); }
.reel-viewer__stage { position: relative; height: min(92dvh, 860px); aspect-ratio: 9 / 16; max-width: calc(100vw - 6rem); border-radius: var(--radius); overflow: hidden; background: #000; }
.reel-viewer__frame, .reel-viewer__frame video, .reel-viewer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.reel-viewer__info { position: absolute; left: 0; right: 0; top: 0; padding: 1rem 1.1rem 2.5rem; background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,0)); pointer-events: none; }
.reel-viewer__info .reel__tag { position: static; display: inline-block; margin-bottom: .5rem; }
.reel-viewer__info h3 { color: #fff; font-size: 1.05rem; margin: 0 0 .2rem; }
.reel-viewer__info p { margin: 0; font-size: .82rem; color: #cfd7ea; }
.reel-viewer__progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255,255,255,.2); z-index: 2; }
.reel-viewer__progress i { display: block; height: 100%; width: 0; background: var(--amber-500); }
.reel-viewer__rail { display: flex; flex-direction: column; gap: .75rem; }
.reel-viewer__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .2s; }
.reel-viewer__btn:hover { background: rgba(255,255,255,.25); }
.reel-viewer__btn svg { width: 22px; height: 22px; }
.reel-viewer__btn[hidden] { display: none; }
.reel-viewer__btn.is-done { background: var(--green-600); }
@media (max-width: 640px) {
  .reel-viewer[open] { display: block; }
  .reel-viewer__stage { height: 100dvh; width: 100vw; max-width: 100vw; aspect-ratio: auto; border-radius: 0; }
  .reel-viewer__rail { position: absolute; right: .75rem; bottom: 5.5rem; z-index: 3; }
  .reel-viewer__btn { width: 44px; height: 44px; background: rgba(0,0,0,.45); }
  .reel-viewer__info { padding-right: 4rem; }
}
.section--reels { scroll-margin-top: var(--header-h); }

/* ---------- Hero: automatic Live TV slide ---------- */
.hero__fallback--pitch {
  background:
    radial-gradient(900px 420px at 75% 30%, rgba(31,122,77,.55), rgba(5,13,36,0) 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 90px, rgba(255,255,255,0) 90px 180px),
    var(--navy-950);
}
.hero__fallback--pitch::after { content: ""; position: absolute; right: 12%; top: 50%; width: 260px; height: 260px; margin-top: -130px; border: 2px solid rgba(255,255,255,.12); border-radius: 50%; }
.hero__when--live { margin-left: 0; background: #d32f2f; color: #fff; }
.hero .eyebrow .live-dot { display: inline-block; margin-right: .5rem; vertical-align: middle; }

/* ---------- Live TV layout with chat ---------- */
.live-main { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.live-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.live-grid.has-chat .live-side { contain: size; min-height: 640px; }
.live-side .scoreboard { flex: none; gap: 1rem; padding: 1.25rem 1.4rem; }
.live-side .crest { width: 54px; height: 54px; font-size: .9rem; }
.live-side .team { font-size: .95rem; gap: .5rem; }
.live-side .score { font-size: clamp(2.2rem, 3.6vw, 2.9rem); }
.live-side .scoreboard__meta { padding-top: .9rem; font-size: .82rem; }
@media (max-width: 960px) { .live-grid.has-chat .live-side, .live-side { contain: none; min-height: 0; } .live-chat .thread__list { height: 360px; flex: none; } }

/* Engagement bar under the player */
.engage-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.engage-bar:empty { display: none; }
.eng-like, .eng-stat {
  display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font-weight: 600; font-size: .9rem;
}
.eng-like { cursor: pointer; transition: background .2s, border-color .2s; }
.eng-like:hover { background: rgba(255,255,255,.12); }
.eng-like svg, .eng-stat svg { width: 20px; height: 20px; flex: none; }
.eng-like svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.eng-like[aria-pressed="true"] { background: rgba(229,57,53,.16); border-color: rgba(229,57,53,.55); }
.eng-like[aria-pressed="true"] svg { fill: #ff4d4f; stroke: #ff4d4f; }
.eng-like.pop svg { animation: likePop .45s var(--ease); }
.eng-like b, .eng-stat b { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.eng-label { color: #aab5cf; font-weight: 500; }
.eng-stat { color: #fff; }
a.eng-stat:hover { background: rgba(255,255,255,.12); }
.eng-dot { width: 8px; height: 8px; border-radius: 50%; background: #d32f2f; animation: ring 1.6s infinite; }
.eng-viewers[hidden], .eng-like[hidden] { display: none; }
@media (max-width: 560px) { .eng-like, .eng-stat { height: 40px; padding: 0 .8rem; font-size: .85rem; } .eng-stat .eng-label { display: none; } }
@keyframes likePop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Floating hearts */
.eng-hearts { position: absolute; left: 1.4rem; bottom: 100%; width: 1px; height: 1px; pointer-events: none; z-index: 5; }
.eng-hearts--reel { position: fixed; left: auto; right: max(1rem, calc(50vw - 260px)); bottom: 30%; }
.heart-float { position: absolute; left: 0; bottom: 0; width: 26px; height: 26px; color: #ff4d4f; opacity: 0; animation: heartUp 2s var(--ease) var(--d, 0ms) forwards; }
.heart-float svg { width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
@keyframes heartUp {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: 1; transform: translate(calc(var(--x) * .3), -30px) scale(1.1); }
  100% { opacity: 0; transform: translate(var(--x), -220px) scale(.9); }
}

/* Live chat panel */
.live-chat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); }
.live-chat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.live-chat__head h2 { display: flex; align-items: center; gap: .55rem; margin: 0; color: #fff; font-size: 1rem; }
.live-chat__count { font-size: .78rem; color: #8b97b7; }
.live-chat .thread { flex: 1 1 auto; min-height: 0; }

/* Comment thread (shared by live chat and reel comments; dark theme) */
.thread { position: relative; display: flex; flex-direction: column; min-height: 0; color: #e3e8f4; }
.thread__list { flex: 1 1 0; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: .75rem 1rem; display: flex; flex-direction: column; gap: .7rem;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; overscroll-behavior: contain; }
.thread__item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .6rem; font-size: .9rem; line-height: 1.4; animation: msgIn .3s var(--ease); }
.thread__item b { color: #fff; font-weight: 700; margin-right: .45rem; }
.thread__item time { font-size: .72rem; color: #7d89a8; }
.thread__item p { margin: .1rem 0 0; color: #d7deee; overflow-wrap: anywhere; }
.thread__item.is-mine b { color: var(--amber-500); }
.thread__avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-700); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .8rem; }
.thread__item.is-mine .thread__avatar { background: var(--amber-500); color: var(--navy-950); }
.thread__empty { margin: auto; text-align: center; color: #8b97b7; font-size: .88rem; padding: 1.5rem .5rem; }
.thread__jump { position: absolute; left: 50%; bottom: 6.5rem; transform: translateX(-50%); padding: .35rem .85rem; border: 0; border-radius: 999px; background: var(--amber-500); color: var(--navy-950); font-weight: 700; font-size: .78rem; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.thread__jump[hidden] { display: none; }
.thread__form { display: grid; gap: .5rem; padding: .75rem 1rem .9rem; border-top: 1px solid rgba(255,255,255,.1); }
.thread__form input { width: 100%; height: 42px; padding: 0 .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.25); color: #fff; font: inherit; font-size: .9rem; }
.thread__form input::placeholder { color: #7d89a8; }
.thread__form input:focus { outline: none; border-color: var(--amber-500); }
.thread__form input[hidden] { display: none; }
.thread__row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: .5rem; }
.thread__send { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--amber-500); color: var(--navy-950); cursor: pointer; }
.thread__send svg { width: 18px; height: 18px; }
.thread__send:disabled { opacity: .5; cursor: not-allowed; }
.thread__who { font-size: .78rem; color: #8b97b7; }
.thread__who[hidden] { display: none; }
.linkish { padding: 0; border: 0; background: none; color: var(--amber-500); font: inherit; cursor: pointer; text-decoration: underline; }
.thread__note { margin: 0; min-height: 1em; font-size: .78rem; color: #ffb4a9; }
.thread__note:empty { display: none; }
.thread__form.is-closed input { opacity: .5; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Reels: counters on cards ---------- */
.reel__stats { position: absolute; top: .75rem; right: .75rem; display: flex; flex-direction: column; align-items: center; gap: .55rem; font-size: .72rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.reel__stats span { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.reel__stats svg { width: 20px; height: 20px; fill: rgba(255,255,255,.18); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.reel__stats span:last-child svg { fill: none; }
.reel__stats .is-liked svg { fill: #ff4d4f; stroke: #ff4d4f; }

/* Reel viewer: like/comment buttons + comments panel */
.reel-viewer__btn--count { height: auto; min-height: 48px; padding: .55rem 0 .4rem; border-radius: 28px; display: flex; flex-direction: column; gap: .15rem; }
.reel-viewer__btn--count b { font-size: .72rem; font-family: var(--font-display); }
.reel-viewer__btn[data-act="like"] svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.reel-viewer__btn[data-act="like"][aria-pressed="true"] svg { fill: #ff4d4f; stroke: #ff4d4f; }
.reel-viewer__btn.pop svg { animation: likePop .45s var(--ease); }
.reel-viewer__btn[aria-expanded="true"] { background: var(--amber-500); color: var(--navy-950); }
.reel-comments { width: min(380px, 92vw); height: min(92dvh, 860px); display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #0b1530; border: 1px solid rgba(255,255,255,.1); }
.reel-comments[hidden] { display: none; }
.reel-comments header { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.reel-comments h3 { margin: 0; color: #fff; font-size: 1rem; }
.reel-comments__close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.reel-comments .thread { flex: 1 1 auto; }
@media (max-width: 900px) {
  .reel-viewer.has-comments .reel-comments { position: fixed; left: 0; right: 0; bottom: 0; width: 100vw; height: 62dvh; border-radius: 18px 18px 0 0; z-index: 5; }
}
.eng-note { flex-basis: 100%; font-size: .8rem; color: #ffb4a9; }
.eng-note:empty { display: none; }
.eng-like:disabled { cursor: default; opacity: .75; }
.dev-notice { position: sticky; top: 0; z-index: 400; padding: .7rem 1rem; background: #fff3cd; color: #5c4400; border-bottom: 2px solid var(--amber-500); font-size: .9rem; text-align: center; }
.dev-notice code { background: rgba(0,0,0,.08); padding: .1rem .35rem; border-radius: 4px; }
.dev-notice a { color: #5c4400; font-weight: 700; text-decoration: underline; }

/* ---------- Team logos (CMS → Teams) ---------- */
/* Club crests are shields/badges with their own shape: show them whole, no circle or backdrop */
.crest--logo, .crest--logo.crest--away { background: none; color: transparent; padding: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.crest--logo img { filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); }
.crest--logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.crest--logo.crest--sm img, .crest--logo.crest--xs img { filter: none; }
.crest--xs { width: 26px; height: 26px; font-size: .58rem; box-shadow: none; display: inline-grid; vertical-align: middle; flex: none; }
.fixture__team { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.fixture__team--away { justify-content: flex-end; }
.standings td.l .crest--sm { vertical-align: middle; }
.hero__content:has(.hero__title--match) { max-width: none; }
.hero__title { font-size: clamp(1.8rem, min(5.2vw, 7.5vh), 3.75rem); }
.hero__title:not(.hero__title--match) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero h1 { font-size: clamp(2rem, min(6vw, 8vh), 4.25rem); }
.hero--slider .hero__lede { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero__title--match { display: flex; flex-wrap: wrap; align-items: center; gap: .35em .5em; }
.hero__team { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }
.hero__team .crest { width: 1.35em; height: 1.35em; font-size: .3em; flex: none; }
.hero__team .crest--logo { font-size: inherit; }
.hero__vs { color: var(--amber-500); font-size: .55em; }
.hero__crests { display: flex; align-items: center; gap: 1rem; margin: .25rem 0 1.25rem; }
.hero__crests .crest { width: 84px; height: 84px; font-size: 1.1rem; }
.hero__crests span:not(.crest) { font-family: var(--font-display); font-weight: 800; color: var(--amber-500); font-size: 1.1rem; }
@media (max-width: 560px) { .hero__crests .crest { width: 58px; height: 58px; } }

/* ---------- Live TV: YouTube-style watch layout ---------- */
.live-stage { padding-block: 1.5rem 3rem; }
.live-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.live-grid.has-chat { align-items: stretch; }
@media (max-width: 1100px) { .live-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 960px) { .live-grid { grid-template-columns: minmax(0, 1fr); } }
.live-main { gap: .75rem; }
.watch-title { color: #fff; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; line-height: 1.3; margin: .35rem 0 0; letter-spacing: -.01em; }
.watch-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.watch-channel { display: inline-flex; align-items: center; gap: .75rem; color: #fff; min-width: 0; }
.watch-channel > span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.watch-channel b { font-family: var(--font-display); font-size: .98rem; }
.watch-channel:hover b { color: var(--amber-500); }
.watch-channel__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-900); border: 1px solid rgba(255,255,255,.15); flex: none; object-fit: cover; }
.watch-channel__sub { font-size: .8rem; color: #8b97b7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.watch-actions .engage-bar { gap: .5rem; }
.watch-actions .eng-viewers { display: none !important; }
.eng-like, .eng-stat { height: 40px; font-size: .88rem; }
button.eng-stat { cursor: pointer; font: inherit; font-weight: 600; font-size: .88rem; transition: background .2s, border-color .2s; }
button.eng-stat:hover { background: rgba(255,255,255,.14); }
.eng-chat[aria-expanded="true"] { background: rgba(232,163,23,.16); border-color: rgba(232,163,23,.6); }
.eng-share svg { width: 18px; height: 18px; }
.watch-desc { padding: .85rem 1rem; border-radius: 12px; background: rgba(255,255,255,.06); font-size: .9rem; color: #cfd7ea; }
.watch-desc p { margin: 0; }
.watch-desc p + p { margin-top: .3rem; }
.watch-desc p:empty { display: none; }
.watch-desc__meta strong { color: #fff; }
.watch-desc__meta span { color: #8b97b7; font-size: .82rem; }
.live-chat[hidden] { display: none; }
.live-chat__head { gap: .75rem; }
.live-chat__count { margin-left: auto; }
.live-chat__close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: #cfd7ea; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.live-chat__close:hover { background: rgba(255,255,255,.1); color: #fff; }
.live-side .scoreboard { order: 2; }
@media (max-width: 560px) { .watch-actions .eng-stat .eng-label { display: none; } .eng-chat .eng-label { display: none; } }

/* Up next (beside the player, hidden while the chat is open on desktop) */
.up-next { order: 3; border-radius: var(--radius); padding: .9rem 1rem; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); }
.up-next[hidden] { display: none; }
.up-next__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .5rem; }
.up-next__head h2 { margin: 0; color: #fff; font-size: 1rem; }
.up-next__head a { font-size: .8rem; color: var(--amber-500); }
.up-next__list { list-style: none; margin: 0; padding: 0; }
.up-next__item { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.07); }
.up-next__item:first-child { border-top: 0; }
.up-next__crests { display: inline-flex; flex: none; }
.up-next__crests .crest + .crest { margin-left: -6px; }
.up-next__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.up-next__body b { color: #fff; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-next__body small { color: #8b97b7; font-size: .76rem; }
@media (min-width: 961px) { .live-grid.has-chat .up-next { display: none; } }
.live-side .up-next .crest { width: 30px; height: 30px; font-size: .55rem; }

/* Live TV button "beeps": a red glow ring pulses out from the button and the dot blinks */
.nav-cta { position: relative; isolation: isolate; animation: ctaBeat 1.6s ease-in-out infinite; }
.nav-cta::before, .nav-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(239,68,68,.75); animation: ctaPing 1.6s cubic-bezier(.2,.6,.4,1) infinite;
}
.nav-cta::after { animation-delay: .8s; }
.nav-cta .live-dot { animation: ctaBlink 1.6s steps(1, end) infinite !important; }
@keyframes ctaPing { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.75); } 100% { box-shadow: 0 0 0 14px rgba(239,68,68,0); } }
@keyframes ctaBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.06); } 24% { transform: scale(1); } 36% { transform: scale(1.04); } 48% { transform: scale(1); } }
@keyframes ctaBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
.nav-cta:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .nav-cta, .nav-cta::before, .nav-cta::after, .nav-cta .live-dot { animation: none !important; }
}

/* Live TV page: reels on a very light ash background, set apart from the dark TV area and the cream sections */
body[data-page="live"] .section--reels { background: #eceef1; color: var(--ink, #1c2333); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid #dfe2e7; border-bottom: 1px solid #dfe2e7; }
body[data-page="live"] .section--reels h2 { color: var(--navy-900); }
body[data-page="live"] .section--reels .eyebrow { color: var(--amber-600); }
body[data-page="live"] .section--reels .hero__arrow { background: #fff; color: var(--navy-900); border-color: #d5d9e0; backdrop-filter: none; }
body[data-page="live"] .section--reels .hero__arrow:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
body[data-page="live"] .reels::-webkit-scrollbar-thumb { background: rgba(10,26,63,.2); }
body[data-page="live"] .reels { scrollbar-color: rgba(10,26,63,.25) transparent; }
body[data-page="live"] .reels__empty { border-color: #c9ced6; color: #5b6478; background: rgba(255,255,255,.5); }
body[data-page="live"] .reel { box-shadow: 0 14px 30px -18px rgba(10,26,63,.45); }
body[data-page="live"] .reel:hover, body[data-page="live"] .reel:focus-visible { box-shadow: 0 22px 40px -18px rgba(10,26,63,.55); }

/* Live TV page: no navy band behind the floating navbar; the stage runs up underneath it */
body[data-page="live"] .site-header { background: transparent; margin-bottom: calc(-1 * var(--header-h)); }
body[data-page="live"] .live-stage { padding-top: calc(var(--header-h) + 1.5rem); }

/* ---------- Off-air programme (adverts + flashing countdown) ---------- */
.ontv { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: #000; transition: opacity .5s var(--ease); }
.ontv.is-leaving { opacity: 0; pointer-events: none; }
.ontv__next[hidden] { display: none; }
.stream-layer { position: absolute; inset: 0; z-index: 1; }
.ontv__watch { position: absolute; z-index: 6; left: 50%; bottom: 4.2rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.3rem; border: 0; border-radius: 999px; background: var(--red-500, #e5322d); color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: countFlash .9s var(--ease) 1; }
.ontv__watch span { font-size: .8em; }
.ontv__ad, .ontv__ad > a { position: absolute; inset: 0; display: block; }
.ontv__ad > video, .ontv__ad > img, .ontv__ad > a > video, .ontv__ad > a > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.ontv__blur { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(28px) brightness(.55); }
.ontv__count { position: absolute; inset: 0; z-index: 5; opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.ontv.is-count .ontv__count { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s; animation: countFlash .9s var(--ease) 1; }
@keyframes countFlash { 0% { filter: brightness(2.2); } 100% { filter: none; } }
.ontv__bug { position: absolute; z-index: 3; top: .9rem; left: .9rem; display: flex; align-items: center; gap: .5rem; }
.ontv__chip { padding: .3rem .65rem; border-radius: 6px; background: rgba(5,13,36,.75); border: 1px solid rgba(255,255,255,.2); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .68rem; letter-spacing: .14em; backdrop-filter: blur(6px); }
.ontv__label { padding: .3rem .6rem; border-radius: 6px; background: var(--amber-500); color: var(--navy-950); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ontv__label:empty { display: none; }
.ontv__sound { position: absolute; z-index: 3; top: .8rem; right: .8rem; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(5,13,36,.55); color: #fff; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s; }
.ontv__sound:hover { background: rgba(5,13,36,.85); }
.ontv__sound svg { width: 18px; height: 18px; }
.ontv__sound:not(.is-on) { animation: soundNudge 2.4s ease-in-out 3; }
@keyframes soundNudge { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.12); } 90% { transform: scale(.96); } }
.ontv__next { position: absolute; z-index: 3; left: .9rem; right: .9rem; bottom: .9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; border-radius: 10px;
  background: linear-gradient(90deg, rgba(5,13,36,.88), rgba(5,13,36,.6)); border: 1px solid rgba(255,255,255,.14); color: #cfd7ea; font-size: .85rem; backdrop-filter: blur(6px); }
.ontv__next b { color: #fff; }
.ontv__mini { font-family: var(--font-display); font-weight: 800; color: var(--amber-500); font-variant-numeric: tabular-nums; letter-spacing: .04em; white-space: nowrap; }
.ontv.is-count .ontv__bug, .ontv.is-count .ontv__sound, .ontv.is-count .ontv__next { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .ontv__next > span:first-child { display: none; } .ontv__next { justify-content: center; left: auto; } }
.ontv__ad { background: radial-gradient(900px 500px at 50% 40%, #14306e 0%, var(--navy-950) 70%); }

/* ---------- On-screen slates (broadcast-style cards between adverts) ---------- */
.slate { position: absolute; inset: 0; overflow: hidden; container-type: size; display: grid; place-items: center; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 15% 10%, #1b3a86 0%, #0a1a3f 45%, #040a1d 100%); }
.slate__photo { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .35; filter: saturate(1.1); animation: slateZoom 10s linear forwards; }
.slate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,10,29,.2), rgba(4,10,29,.75)); pointer-events: none; }
.slate__sweep { position: absolute; z-index: 1; top: -20%; bottom: -20%; left: -30%; width: 38%; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent), transparent); opacity: .55; animation: slateSweep 2.4s cubic-bezier(.6,0,.2,1) .1s both; }
.slate__sweep--2 { width: 14%; opacity: .9; background: var(--accent); animation-name: slateSweep2; animation-delay: .25s; animation-duration: 1.6s; }
@keyframes slateSweep2 { 0% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(1100%) skewX(-18deg); } }
.slate__inner { position: relative; z-index: 2; max-width: 86%; display: flex; flex-direction: column; align-items: center; gap: clamp(.4rem, 1.4cqw, .9rem); }
.slate__kicker { display: inline-block; padding: .35em .9em; background: var(--accent); color: #07122e; font-family: var(--font-display); font-weight: 800; font-size: clamp(.6rem, 1.3cqw, .85rem); letter-spacing: .22em; text-transform: uppercase;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); animation: slateIn .6s cubic-bezier(.2,.8,.2,1) .35s both; }
.slate__kicker:empty { display: none; }
.slate__headline { margin: 0; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 4.4cqw, 3.3rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 6px 30px rgba(0,0,0,.45); animation: slateUp .7s cubic-bezier(.2,.8,.2,1) .55s both; }
.slate__sub { margin: 0; color: #d7deee; font-size: clamp(.75rem, 1.6cqw, 1.1rem); font-weight: 500; animation: slateUp .7s cubic-bezier(.2,.8,.2,1) .75s both; }
.slate__crests { display: flex; align-items: center; gap: clamp(.8rem, 3cqw, 2rem); animation: slateUp .7s cubic-bezier(.2,.8,.2,1) .45s both; }
.slate__crests .crest { width: clamp(48px, 9cqw, 96px); height: clamp(48px, 9cqw, 96px); }
.slate__crests span { font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: clamp(.9rem, 2cqw, 1.4rem); }
.slate__logo { max-width: min(46%, 320px); max-height: 30%; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,.4)); animation: slateUp .7s cubic-bezier(.2,.8,.2,1) .5s both; }
.slate--sponsor .slate__headline { font-size: clamp(1.4rem, 5cqw, 3.6rem); }
.slate--stay-tuned .slate__headline { font-size: clamp(1.2rem, 3.6cqw, 2.7rem); }
.slate--announcement { background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--accent) 45%, #0a1a3f) 0%, #0a1a3f 50%, #040a1d 100%); }
.slate--promo .slate__headline { font-style: italic; }
.slate__foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; background: linear-gradient(0deg, rgba(4,10,29,.85), transparent); }
.slate__brand { font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .18em; color: #fff; white-space: nowrap; }
.slate__brand b { color: var(--accent); }
.slate__bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.slate__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; animation: slateBar linear both; }
@keyframes slateSweep { 0% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(420%) skewX(-18deg); } }
@keyframes slateIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes slateUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes slateZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes slateBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ontv.is-slate .ontv__sound, .ontv.is-slate .ontv__bug { opacity: 0; pointer-events: none; }
.ontv.is-slate .ontv__next { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .slate *, .slate__photo { animation: none !important; } .slate__sweep { display: none; } }

/* TV logo bug (top-left) */
.ontv__logo { height: 22px; width: auto; padding: 5px 9px; box-sizing: content-box; border-radius: 6px; background: rgba(5,13,36,.6); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
@media (max-width: 560px) { .ontv__logo { height: 16px; padding: 4px 7px; } }

/* Channel avatar: OML58 competition logo on white */
.watch-channel__avatar { background: #fff; padding: 3px; box-sizing: border-box; object-fit: contain; }

/* Neat fullscreen button, top-right of the player; fades in on hover, always visible on touch screens */
.player-shell { position: relative; }
.player-fs { position: absolute; z-index: 20; right: .8rem; top: .8rem; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(5,13,36,.55); color: #fff; cursor: pointer; backdrop-filter: blur(8px);
  opacity: 0; transform: scale(.92); transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s; }
.player-fs svg { width: 18px; height: 18px; }
.player-fs .i-exit, .player-fs.is-on .i-enter { display: none; }
.player-fs.is-on .i-exit { display: block; }
.player-shell:hover .player-fs, .player-fs:focus-visible, .player-fs.is-on { opacity: 1; transform: none; }
.player-fs:hover { background: rgba(5,13,36,.85); }
@media (hover: none) { .player-fs { opacity: .85; transform: none; } }
.player-shell.has-bar .player-fs { display: none; }
/* while an advert shows its sound button top-right, sit the fullscreen button just below it */
.player-shell:has(.ontv:not(.is-count):not(.is-slate)) .player-fs { right: calc(.8rem + 38px + .45rem); }

/* Smaller top-right TV icons (sound + fullscreen) */
.ontv__sound, .player-fs { width: 30px; height: 30px; border-radius: 8px; top: .65rem; }
.ontv__sound { right: .65rem; }
.player-fs { right: .65rem; }
.ontv__sound svg, .player-fs svg { width: 14px; height: 14px; }
.player-shell:has(.ontv:not(.is-count):not(.is-slate)) .player-fs { right: calc(.65rem + 30px + .35rem); }

/* Engagement row: icons with counts only (like, chat, viewers) + icon-only share */
.watch-actions .eng-viewers { display: inline-flex !important; }
.watch-actions .eng-viewers[hidden] { display: none !important; }
.watch-actions .eng-like, .watch-actions .eng-stat { gap: .45rem; padding: 0 .9rem; }
.watch-actions .eng-viewers { cursor: default; }
.watch-actions .eng-viewers svg { width: 19px; height: 19px; }
.eng-share { width: 40px; padding: 0 !important; justify-content: center; }
.eng-share.is-done { background: rgba(46,160,67,.25); border-color: rgba(46,160,67,.6); }
