/* ═══════════════════════════════════════════════════════════════
   MUGA LEAGUE — Static site stylesheet
   Calm editorial layout · cream palette · MUGA orange accents
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg: #EFE9DD;
    --bg-warm: #F2EAD8;
    --bg-card: #ECE5D6;
    --ink: #1F1A14;
    --ink-soft: #4A413A;
    --mute: #8A8278;
    --line: #D8D1C4;
    --orange: #E85D04;
    --orange-soft: #F48C06;

    --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }

/* ─── Pill Nav ─────────────────────────────────────────────── */
.pill-nav {
    position: fixed; top: 18px; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: center;
    pointer-events: none;
}
.pill-nav-inner {
    pointer-events: auto;
    display: flex; align-items: center; gap: 28px;
    padding: 6px 8px 6px 18px;
    background: rgba(40, 32, 22, 0.42);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: background 0.4s ease;
    max-width: calc(100vw - 24px);
}
.pill-nav.scrolled .pill-nav-inner { background: rgba(31, 26, 20, 0.78); }

.pill-nav-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 6px;
}
.pill-nav-logo img {
    width: 34px; height: 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.pill-nav-mark {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.25rem;
    color: #F5EFE3;
    letter-spacing: -0.01em;
    line-height: 1;
}

.pill-nav-links { display: flex; align-items: center; gap: 4px; }
.pill-nav-link {
    padding: 10px 16px;
    font-size: 0.92rem;
    font-weight: 400;
    color: rgba(245, 239, 227, 0.82);
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}
.pill-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.pill-nav-link.active { color: #fff; }

.pill-nav-cta {
    padding: 10px 22px;
    background: #14110D;
    color: #F5EFE3;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}
.pill-nav-cta:hover { background: var(--orange); color: #fff; }

.pill-nav-toggle {
    display: none; background: none; border: none; padding: 10px;
    color: #F5EFE3;
}
.pill-nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; border-radius: 2px; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hm-hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #14110D;
}
/* YouTube embed sized to cover the hero, no controls visible */
.hm-hero-yt {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.hm-hero-yt iframe {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    border: 0;
    pointer-events: none;
}
/* invisible overlay to block any YouTube control interaction */
.hm-hero-shield {
    position: absolute; inset: 0; z-index: 1;
    cursor: default;
}
.hm-hero-vignette {
    position: absolute; inset: 0; z-index: 2;
    background:
        radial-gradient(ellipse at center, rgba(20,17,13,0.45) 0%, rgba(20,17,13,0.88) 100%);
    pointer-events: none;
}
.hm-hero-text {
    position: relative; z-index: 3;
    text-align: center;
    padding: 0 24px;
    max-width: 1100px;
}
.hm-hero-mark {
    font-family: var(--sans);
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(2.6rem, 8vw, 6.4rem);
    line-height: 1;
    letter-spacing: 0.06em;
    color: #F5EFE3;
    text-shadow: 0 4px 40px rgba(0,0,0,0.65);
    margin: 0 0 22px;
}
.hm-hero-sub {
    font-family: var(--serif);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1.3rem, 3vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #F5EFE3;
    text-shadow: 0 2px 24px rgba(0,0,0,0.7);
    opacity: 0.95;
    margin: 0;
}
.hm-hero-sub em { font-style: italic; font-weight: 400; }
.hm-scroll-cue {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    z-index: 3;
    width: 36px; height: 4px; border-radius: 2px;
    background: rgba(245,239,227,0.55);
    pointer-events: none;
}

/* ─── Section base ─────────────────────────────────────────── */
.hm-section { position: relative; padding: 9vh 0; }
.hm-wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ─── Intro hook ───────────────────────────────────────────── */
.hm-intro { padding: 14vh 0 6vh; }
.hm-intro-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: start;
}
.hm-intro-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.hm-intro-title em { font-style: italic; }
.hm-intro-body {
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 360px;
    padding-top: 14px;
}

/* ─── Cross-fade parallax stack ────────────────────────────── */
.px-stack {
    position: relative;
    height: 400vh; /* 4 slides × 100vh of scroll */
}
.px-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
}
.px-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 48px;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.px-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.px-text {
    max-width: 720px;
    text-align: center;
}
.px-title {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.06; letter-spacing: -0.02em; color: var(--ink);
    margin-bottom: 24px;
}
.px-title em { font-style: italic; }
.px-body {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Intro overlay (logo flies to navbar, light reveals) ──── */
/* Defaults are inert — animations only run once JS adds .ready
   (after it has computed the FLIP target). */
@property --reveal {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
}

.intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #14110D;
    pointer-events: none;
    overflow: hidden;
    --tx: 0px;
    --ty: 0px;
    --ts: 0.25;
    --shine-cx: 50%;
    --shine-cy: 50%;
    --reveal: 0%;
    /* Razor-thin wipe edge: a ~0.4% gap between transparent and opaque
       so the leading edge of the ray reads as a clean line rather than
       a soft halo. */
    -webkit-mask: radial-gradient(
        circle at var(--shine-cx) var(--shine-cy),
        transparent calc(var(--reveal) - 0.4%),
        #000 var(--reveal)
    );
            mask: radial-gradient(
        circle at var(--shine-cx) var(--shine-cy),
        transparent calc(var(--reveal) - 0.4%),
        #000 var(--reveal)
    );
}
.intro.ready {
    animation: introWipe 1.4s 2.3s cubic-bezier(0.45, 0.05, 0.2, 1) forwards;
}
@keyframes introWipe {
    0%   { --reveal: 0%; }
    100% { --reveal: 160%; }
}
.no-intro .intro,
body.no-intro .intro { display: none !important; }

.intro-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    box-shadow: 0 0 80px rgba(255, 220, 170, 0.45),
                0 0 160px rgba(232, 93, 4, 0.15);
    will-change: transform, opacity;
}
.intro.ready .intro-logo {
    animation: introLogo 3.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes introLogo {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
    14%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    40%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    70%  { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(var(--ts)); }
    100% { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(var(--ts)); }
}

/* The shine element is no longer needed — the radial mask wipe
   above handles the ray + reveal in one motion. Kept in markup for
   backwards compatibility but hidden. */
.intro-shine { display: none; }

body.intro-active { overflow: hidden; }

.hm-placeholder-img {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(245,239,227,0.45);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px),
        linear-gradient(135deg, #3A2D1E, #1F1810);
}

/* ─── Two big cards w/ overlay text ────────────────────────── */
.hm-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 4vh 0 2vh;
}
.hm-duo-card {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--ink);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 40px;
    transition: border-color 0.2s ease, transform 0.3s ease;
}
.hm-duo-card:hover {
    border-color: rgba(232, 93, 4, 0.35);
    transform: translateY(-3px);
}
.hm-duo-content {}
.hm-duo-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 14px;
}
.hm-duo-title em { font-style: italic; }
.hm-duo-body {
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 360px;
}
.hm-duo-cta {
    align-self: flex-start;
    padding: 10px 22px;
    background: var(--ink);
    color: #F5EFE3;
    border-radius: 999px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}
.hm-duo-cta:hover { background: var(--orange); }

/* ─── Centered title ───────────────────────────────────────── */
.hm-centered-title { text-align: center; padding: 8vh 0 4vh; }
.hm-centered-title h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08; letter-spacing: -0.02em; color: var(--ink);
}
.hm-centered-title h2 em { font-style: italic; }
.hm-centered-title p {
    margin-top: 18px; font-size: 1rem; line-height: 1.6;
    color: var(--ink-soft); max-width: 620px; margin-left: auto; margin-right: auto;
}

/* ─── Article cards (3-up) ─────────────────────────────────── */
.hm-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 2vh 0 6vh; }
.hm-article-card { display: flex; flex-direction: column; }
.hm-article-thumb {
    position: relative; aspect-ratio: 16 / 11;
    border-radius: 14px; overflow: hidden;
    background: #2A2218; margin-bottom: 18px;
}
.hm-article-thumb .hm-placeholder-img { border-radius: inherit; }
.hm-article-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.hm-article-card p { font-size: 0.94rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: 18px; max-width: 360px; }
.hm-pill-link {
    align-self: flex-start;
    padding: 9px 22px; border: 1px solid var(--ink); border-radius: 999px;
    color: var(--ink); font-size: 0.88rem; background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}
.hm-pill-link:hover { background: var(--ink); color: #F5EFE3; }

/* ─── 50K donations stat ───────────────────────────────────── */
.hm-stat {
    text-align: center;
    padding: 14vh 24px 12vh;
}
.hm-stat-tag {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 28px;
}
.hm-stat-num {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(7rem, 22vw, 18rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: var(--ink);
    display: inline-flex;
    align-items: flex-start;
    gap: 0.18em;
}
.hm-stat-unit {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.13em;
    letter-spacing: 0.18em;
    color: var(--mute);
    text-transform: uppercase;
    margin-top: 0.6em;
    line-height: 1;
}
.hm-stat-sub {
    margin-top: 28px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    line-height: 1.2;
    color: var(--ink-soft);
}
.hm-stat-sub em { font-style: italic; }

/* ─── Manifesto gradient ───────────────────────────────────── */
.hm-manifesto {
    background: linear-gradient(180deg, #EFE9DD 0%, #F4ECD4 60%, #F8E9C8 100%);
    padding: 14vh 0 16vh;
}
.hm-manifesto-grid {
    display: grid; grid-template-columns: 0.9fr 2.2fr; gap: 80px;
    align-items: start; max-width: 1180px; margin: 0 auto; padding: 0 48px;
}
.hm-manifesto-tag {
    font-family: var(--mono); font-size: 0.75rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-soft); line-height: 1.7; padding-top: 10px;
}
.hm-manifesto-body {
    font-size: clamp(1.3rem, 2.1vw, 1.85rem);
    line-height: 1.45; color: var(--mute);
    font-weight: 400; letter-spacing: -0.01em;
}
.hm-manifesto-body strong { color: var(--ink); font-weight: 500; }
.hm-manifesto-cta {
    display: inline-block; margin-top: 36px;
    padding: 14px 28px; border: 1px solid var(--ink);
    border-radius: 999px; color: var(--ink); font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.hm-manifesto-cta:hover { background: var(--ink); color: #F5EFE3; }

/* ─── Testimonials ─────────────────────────────────────────── */
.hm-testimonials { padding: 10vh 0 4vh; }
.hm-testi-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1280px; margin: 0 auto; padding: 0 48px;
}
.hm-testi {
    padding: 36px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
/* No right border on last column; no bottom border on last row */
.hm-testi:nth-child(3n) { border-right: none; }
.hm-testi:nth-last-child(-n+3) { border-bottom: none; }
.hm-testi-quote { font-size: 1.02rem; line-height: 1.5; color: var(--mute); margin-bottom: 32px; max-width: 320px; }
.hm-testi-quote strong { color: var(--ink); font-weight: 500; }
.hm-testi-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #D8C8A8, #B8A488);
    margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(31,26,20,0.4); font-family: var(--mono); font-size: 0.7rem;
    overflow: hidden;
}
.hm-testi-name {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 4px;
}
.hm-testi-role {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--mute);
}

/* ─── Final CTA ────────────────────────────────────────────── */
.hm-final { text-align: center; padding: 8vh 0 14vh; }
.hm-final-cta {
    display: inline-block; padding: 14px 32px;
    border: 1px solid var(--ink); border-radius: 999px;
    color: var(--ink); font-size: 0.95rem; margin-bottom: 48px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hm-final-cta:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.hm-final-tagline {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    line-height: 1.15; letter-spacing: -0.02em; color: var(--ink);
}
.hm-final-tagline em { font-style: italic; }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-warm);
    border-top: 1px solid var(--line);
    padding: 70px 0 40px;
}
.site-footer-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 48px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.site-footer-mark {
    font-family: var(--serif); font-style: italic;
    font-size: 1.6rem; color: var(--ink); margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px;
}
.site-footer-mark img { width: 32px; height: 32px; border-radius: 50%; }
.site-footer p { color: var(--ink-soft); max-width: 360px; font-size: 0.94rem; }
.site-footer h4 {
    font-family: var(--mono); font-size: 0.74rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink); margin-bottom: 16px;
}
.site-footer a.foot-link {
    display: block; padding: 4px 0;
    color: var(--ink-soft); font-size: 0.94rem;
    transition: color 0.2s ease;
}
.site-footer a.foot-link:hover { color: var(--orange); }
.site-footer-bottom {
    max-width: 1280px; margin: 50px auto 0; padding: 24px 48px 0;
    border-top: 1px solid var(--line);
    color: var(--mute); font-size: 0.82rem;
    font-family: var(--mono); letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   Inner pages — page header, players grid, leaderboard, media
   ═══════════════════════════════════════════════════════════════ */

.page {
    padding: 22vh 0 6vh;
}
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.page-tag {
    font-family: var(--mono); font-size: 0.74rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--mute); margin-bottom: 18px;
}
.page-title {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
    line-height: 1.05; letter-spacing: -0.02em; color: var(--ink);
}
.page-title em { font-style: italic; }
.page-sub {
    margin-top: 18px; max-width: 560px;
    color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55;
}

/* ─── Players grid ─────────────────────────────────────────── */
.players-section { padding: 6vh 0 12vh; }
.player-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px; max-width: 1280px; margin: 0 auto; padding: 0 48px;
}
.player-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    transition: transform 0.4s cubic-bezier(0.2,0.6,0.2,1), border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column; gap: 16px;
    cursor: pointer;
    position: relative;
}
.player-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232,93,4,0.35);
    box-shadow: 0 18px 50px rgba(40,30,15,0.10);
}
.player-card-photo {
    width: 100%; aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: linear-gradient(135deg, #D8C8A8, #A89476);
    display: flex; align-items: center; justify-content: center;
    color: rgba(31,26,20,0.35);
    font-family: var(--mono); font-size: 0.7rem;
    letter-spacing: 0.14em;
    overflow: hidden;
}
.player-card-photo .jersey {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: 4.2rem; color: rgba(31,26,20,0.55);
}
.player-card-name {
    font-family: var(--serif); font-weight: 400;
    font-size: 1.55rem; line-height: 1.05; letter-spacing: -0.01em;
    color: var(--ink);
}
.player-card-name em { font-style: italic; }
.player-card-meta {
    display: flex; gap: 10px; align-items: center;
    font-family: var(--mono); font-size: 0.72rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--mute);
}
.player-card-meta .pos {
    background: rgba(232,93,4,0.12);
    color: var(--orange);
    padding: 3px 8px; border-radius: 4px;
}
.player-card-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; padding-top: 12px;
    border-top: 1px solid var(--line);
}
.player-card-stats .stat-num {
    font-family: var(--serif); font-weight: 400;
    font-size: 1.45rem; line-height: 1; color: var(--ink);
}
.player-card-stats .stat-lbl {
    display: block; margin-top: 4px;
    font-family: var(--mono); font-size: 0.66rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--mute);
}

/* ─── Leaderboard ──────────────────────────────────────────── */
.lb-section { padding: 6vh 0 12vh; }
.lb-wrap { max-width: 920px; margin: 0 auto; padding: 0 48px; }
.lb-table {
    border-top: 1px solid var(--line);
}
.lb-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    align-items: center;
    padding: 22px 8px;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}
.lb-row:hover { background: rgba(232,93,4,0.04); }
.lb-row.head {
    border-bottom: 1px solid var(--ink);
    font-family: var(--mono); font-size: 0.74rem;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute);
}
.lb-row.head:hover { background: transparent; }
.lb-rank {
    font-family: var(--serif); font-weight: 400;
    font-size: 1.6rem; color: var(--ink); display: flex; align-items: center; gap: 10px;
}
.lb-row.head .lb-rank, .lb-row.head .lb-name, .lb-row.head .lb-pts {
    font-family: var(--mono); font-size: 0.74rem;
    color: var(--mute); font-weight: 500;
}
.lb-rank .medal {
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 0.7rem; color: #fff;
}
.lb-rank .medal.gold   { background: linear-gradient(135deg, #E8B22A, #B6831F); }
.lb-rank .medal.silver { background: linear-gradient(135deg, #C9C9C9, #8F8F8F); }
.lb-rank .medal.bronze { background: linear-gradient(135deg, #C77C44, #8C5527); }
.lb-name {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: 1.45rem; color: var(--ink);
}
.lb-row:not(.top-3) .lb-name { font-style: normal; font-family: var(--sans); font-size: 1.05rem; font-weight: 500; }
.lb-pts {
    text-align: right;
    font-family: var(--mono); font-size: 1rem;
    color: var(--ink); letter-spacing: 0.04em;
}

/* ─── Media (videos + photos) ──────────────────────────────── */
.media-section { padding: 6vh 0 12vh; }
.media-wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.media-block { margin-bottom: 80px; }
.media-block-title {
    font-family: var(--mono); font-size: 0.74rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--mute); margin-bottom: 22px;
    padding-bottom: 14px; border-bottom: 1px solid var(--line);
}

.video-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}
.video-card {
    border-radius: 14px; overflow: hidden;
    background: #14110D;
    box-shadow: 0 12px 40px rgba(40,30,15,0.10);
    transition: transform 0.4s cubic-bezier(0.2,0.6,0.2,1);
}
.video-card:hover { transform: translateY(-4px); }
.video-frame {
    position: relative; aspect-ratio: 16 / 9;
    background: #14110D;
}
.video-frame iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-meta {
    padding: 18px 20px;
    background: var(--bg-card);
}
.video-meta h4 {
    font-family: var(--serif); font-weight: 400; font-size: 1.1rem;
    color: var(--ink); margin-bottom: 4px;
}
.video-meta span {
    font-family: var(--mono); font-size: 0.7rem; color: var(--mute);
    letter-spacing: 0.12em; text-transform: uppercase;
}

.photo-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.photo-tile {
    aspect-ratio: 4 / 5; border-radius: 12px;
    overflow: hidden; position: relative;
    background: #2A2218; cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.2,0.6,0.2,1);
}
.photo-tile:hover { transform: scale(1.02); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .hm-placeholder-img { font-size: 0.7rem; }
.photo-tile-caption {
    position: absolute; left: 14px; right: 14px; bottom: 12px;
    color: #F5EFE3; font-family: var(--mono); font-size: 0.7rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    z-index: 2;
}
.photo-tile::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5));
    pointer-events: none;
}

/* Match cards on media page */
.match-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    transition: border-color 0.2s ease, transform 0.3s ease;
}
.match-card:hover { border-color: rgba(232,93,4,0.35); transform: translateY(-3px); }
.match-teams {
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 12px; align-items: center; margin-bottom: 14px;
}
.match-team {
    font-family: var(--serif); font-weight: 400; font-size: 1.05rem; color: var(--ink-soft);
}
.match-team.win { color: var(--ink); font-style: italic; }
.match-team:last-child { text-align: right; }
.match-score {
    font-family: var(--mono); font-size: 1.4rem; color: var(--ink);
    letter-spacing: 0.04em;
}
.match-meta {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 12px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 0.7rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
}
.match-meta .badge.final    { color: var(--ink); }
.match-meta .badge.upcoming { color: var(--orange); }

/* ─── Empty state ──────────────────────────────────────────── */
.empty-state {
    max-width: 560px;
    margin: 6vh auto 12vh;
    padding: 0 48px;
    text-align: center;
}
.empty-state-tag {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 18px;
}
.empty-state-text {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--ink-soft);
}

/* ─── Lightbox ─────────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(20,17,13,0.92);
    display: none; align-items: center; justify-content: center;
    cursor: zoom-out; backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw; max-height: 90vh;
    border-radius: 8px; object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-caption {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    font-family: var(--mono); font-size: 0.78rem;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(245,239,227,0.7);
}

/* ─── Reveal animation ─────────────────────────────────────── */
.hm-reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 1.1s cubic-bezier(0.2,0.6,0.2,1), transform 1.1s cubic-bezier(0.2,0.6,0.2,1);
    will-change: opacity, transform;
}
.hm-reveal.in { opacity: 1; transform: none; }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
    .pill-nav-links .pill-nav-link { display: none; }
    .pill-nav-inner { padding: 6px 6px 6px 14px; gap: 10px; }
    .hm-wrap, .hm-manifesto-grid, .hm-testi-grid,
    .page-wrap, .player-grid, .lb-wrap, .media-wrap,
    .site-footer-inner, .site-footer-bottom {
        padding-left: 24px; padding-right: 24px;
    }
    .hm-intro-grid { grid-template-columns: 1fr; gap: 24px; }
    .px-stack { height: auto; }
    .px-stage {
        position: static; height: auto;
        overflow: visible;
    }
    .px-slide {
        position: static;
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 8vh 24px;
        opacity: 1;
        pointer-events: auto;
    }
    .px-slide[data-side="right"] .px-image,
    .px-slide[data-side="right"] .px-text { order: 0; }
    .px-image { max-height: none; min-height: 380px; }
    .intro-logo { width: 110px; height: 110px; }
    .hm-duo, .hm-articles { grid-template-columns: 1fr; }
    .hm-manifesto-grid { grid-template-columns: 1fr; gap: 12px; }
    .hm-testi-grid { grid-template-columns: 1fr; }
    .hm-testi,
    .hm-testi:nth-child(3n),
    .hm-testi:nth-last-child(-n+3) {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 28px 0;
    }
    .hm-testi:last-child { border-bottom: none; }
    .hm-hero { padding-bottom: 14vh; }
    .site-footer-inner { grid-template-columns: 1fr; }
    .lb-row { grid-template-columns: 60px 1fr 80px; padding: 16px 4px; }
    .lb-name { font-size: 1.1rem !important; }
    .page { padding: 18vh 0 6vh; }
}
