        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { font-size: 16px; -webkit-text-size-adjust: 100%; }
        body {
            font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg);
            color: var(--ink);
            line-height: 1.5;
            min-height: 100vh;
            min-height: 100dvh;
            padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        button { font-family: inherit; cursor: pointer; }
        a { color: inherit; text-decoration: none; }

        /* ─── Header ───
           padding-top reserves the iOS PWA status-bar zone so SOS/signal/battery
           don't overlap header content (and don't eat taps on header controls). */
        /* v238: dropped backdrop-filter — opaque --surface, blur was bleeding into iOS status icons */
        .app-header {
            position: sticky; top: 0; z-index: 80;
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            padding:
                calc(14px + env(safe-area-inset-top, 0px))
                calc(20px + env(safe-area-inset-right, 0px))
                14px
                calc(20px + env(safe-area-inset-left, 0px));
            display: flex; align-items: center; justify-content: space-between; gap: 12px;
        }
        .app-header-brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
        .app-header-logo { height: 28px; width: auto; display: block; flex-shrink: 0; }
        .app-header-brand .divider { width: 1px; height: 22px; background: var(--border-strong); flex-shrink: 0; }
        /* Athlete switcher styles — see athlete/css/athlete-switcher.css. */
        .app-header-actions { display: flex; align-items: center; gap: 6px; }
        .header-icon-btn {
            width: 38px; height: 38px; border-radius: 50%;
            background: transparent; border: 1px solid transparent;
            color: var(--ink-muted);
            display: inline-flex; align-items: center; justify-content: center;
            transition: all 0.15s ease;
            position: relative;
        }
        .header-icon-btn:hover { background: #f4f4f5; color: var(--ink); }
        .header-icon-btn svg { width: 20px; height: 20px; stroke-width: 2; }
        /* v251: unified bell dot — matches every athlete page. */
        .header-bell-dot {
            position: absolute; top: 7px; right: 7px;
            width: 9px; height: 9px; border-radius: 50%;
            background: var(--live);
            border: 2px solid var(--surface);
            box-shadow: 0 0 0 1px rgba(239,68,68,0.20);
            pointer-events: none;
        }

        /* ─── Container ─── */
        .container { max-width: 720px; margin: 0 auto; padding: 0 0 40px; }

        /* ─── Hero portrait card — full-bleed editorial ─── */
        .hero-portrait {
            position: relative;
            background: linear-gradient(180deg, var(--team-primary) 0%, color-mix(in srgb, var(--team-primary), black 35%) 100%);
            padding: 36px 24px 32px;
            overflow: hidden;
            color: #ffffff;
        }
        /* Top-edge accent stripe in team secondary color */
        .hero-portrait::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--team-secondary), var(--team-primary), var(--team-secondary));
        }
        /* Giant background number — broadcast-grade depth */
        .hero-portrait::after {
            content: attr(data-jersey);
            position: absolute;
            top: -20px;
            right: -20px;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 320px;
            font-weight: 900;
            line-height: 0.85;
            color: rgba(255,255,255,0.06);
            letter-spacing: -6px;
            pointer-events: none;
            user-select: none;
        }
        .hero-portrait-row {
            display: flex;
            align-items: center;
            gap: 22px;
            position: relative;
            z-index: 2;
        }
        .hero-portrait-photo {
            position: relative;
            width: 108px; height: 108px;
            border-radius: 50%;
            border: 3px solid #ffffff;
            box-shadow: 0 10px 30px rgba(0,0,0,0.25);
            background: #fff;
            display: flex; align-items: center; justify-content: center;
            /* v239: was overflow:hidden which clipped the jersey pill INSIDE
               the circle. Now overflow:visible so the pill sits on top of
               the circle's edge. The img inside gets border-radius:inherit
               below so it still rounds correctly. */
            overflow: visible;
            flex-shrink: 0;
        }
        .hero-portrait-photo img {
            width: 100%; height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 50%;
        }
        .hero-portrait-photo-fallback {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 38px; font-weight: 800;
            color: var(--team-primary);
            letter-spacing: 0.3px;
        }
        .hero-portrait-jersey-pill {
            position: absolute;
            bottom: -4px; right: -4px;
            min-width: 32px; height: 32px;
            padding: 0 7px;
            background: #ffffff;
            color: var(--team-primary);
            border-radius: 999px;
            display: inline-flex; align-items: center; justify-content: center;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 14px; font-weight: 800;
            font-variant-numeric: tabular-nums;
            border: 2px solid var(--team-primary);
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        }
        .hero-portrait-info { flex: 1; min-width: 0; }
        .hero-portrait-eyebrow {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 11px; font-weight: 700;
            letter-spacing: 2.6px;
            color: rgba(255,255,255,0.7);
            text-transform: uppercase;
            margin-bottom: 6px;
        }
        .hero-portrait-name {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 30px; font-weight: 800;
            letter-spacing: 0.4px;
            line-height: 1;
            text-transform: uppercase;
            color: #ffffff;
        }
        .hero-portrait-meta {
            display: inline-flex; align-items: center; gap: 8px;
            margin-top: 8px;
            font-family: 'Oswald', sans-serif;
            font-size: 12px; font-weight: 500;
            color: rgba(255,255,255,0.78);
            letter-spacing: 1.6px;
            text-transform: uppercase;
        }
        .hero-portrait-meta .dot {
            width: 3px; height: 3px;
            border-radius: 50%;
            background: rgba(255,255,255,0.45);
        }
        /* ─── Hero edit button — top-right pencil overlay ──────────────── */
        .hero-edit-btn {
            position: absolute;
            top: 12px; right: 12px;
            width: 36px; height: 36px;
            display: inline-flex; align-items: center; justify-content: center;
            background: rgba(0,0,0,0.22);
            border: 1px solid rgba(255,255,255,0.18);
            border-radius: 999px;
            color: #ffffff;
            cursor: pointer;
            z-index: 3;
            transition: background 0.15s ease, transform 0.12s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .hero-edit-btn:hover  { background: rgba(0,0,0,0.36); }
        .hero-edit-btn:active { transform: scale(0.94); }
        .hero-edit-btn svg    { width: 16px; height: 16px; }

        /* ─── Edit profile modal — bottom sheet, same architecture as
               push prompt + paywall modals ─────────────────────────── */
        .sc-edit-profile-backdrop {
            position: fixed; inset: 0; z-index: 9450;
            background: rgba(10, 13, 20, 0.72); /* solid scrim — blur removed (iPad tap-stall), May 29 2026 touch audit */
            display: flex; align-items: flex-end; justify-content: center;
            opacity: 0; transition: opacity 0.22s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .sc-edit-profile-backdrop.is-open { opacity: 1; }
        @media (min-width: 640px) {
            .sc-edit-profile-backdrop { align-items: center; padding: 20px; }
        }
        .sc-edit-profile-card {
            position: relative; width: 100%; max-width: 540px;
            background: var(--surface);
            color: var(--ink);
            border-radius: 22px 22px 0 0;
            padding: 28px 24px 24px;
            box-shadow: 0 -24px 60px rgba(0,0,0,0.42);
            transform: translateY(40px);
            transition: transform 0.30s cubic-bezier(0.22, 0.61, 0.36, 1);
            font-family: 'Manrope', system-ui, sans-serif;
            max-height: 86vh; overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        @media (min-width: 640px) {
            .sc-edit-profile-card { border-radius: 22px; padding: 32px 30px 28px; }
        }
        .sc-edit-profile-backdrop.is-open .sc-edit-profile-card { transform: translateY(0); }
        .sc-edit-profile-card::before {
            content: ''; display: block; width: 44px; height: 5px;
            background: var(--border-strong);
            border-radius: 3px;
            margin: -16px auto 18px;
        }
        @media (min-width: 640px) { .sc-edit-profile-card::before { display: none; } }
        .sc-edit-profile-card .ep-close {
            position: absolute; top: 14px; right: 14px;
            width: 36px; height: 36px;
            background: transparent; border: 0;
            color: var(--ink-faint);
            border-radius: 50%;
            display: inline-flex; align-items: center; justify-content: center;
            cursor: pointer; -webkit-tap-highlight-color: transparent;
        }
        .sc-edit-profile-card .ep-close:hover { background: var(--bg); color: var(--ink); }
        .sc-edit-profile-card .ep-close svg { width: 18px; height: 18px; stroke-width: 2.4; }
        .sc-edit-profile-card .ep-title {
            font-family: 'Saira Condensed', system-ui, sans-serif;
            font-size: 26px; font-weight: 900;
            letter-spacing: -0.2px; line-height: 1.1;
            color: var(--ink);
            margin: 0 0 4px;
        }
        .sc-edit-profile-card .ep-sub {
            font-family: 'Manrope', system-ui, sans-serif;
            font-size: 13px; color: var(--ink-muted);
            margin: 0 0 22px;
        }
        /* Avatar picker — circle preview + "Change photo" link */
        .sc-edit-profile-card .ep-avatar {
            display: flex; align-items: center; gap: 14px;
            margin-bottom: 22px;
        }
        .sc-edit-profile-card .ep-avatar-preview {
            width: 72px; height: 72px;
            border-radius: 50%;
            background: var(--bg);
            border: 2px solid var(--border);
            display: flex; align-items: center; justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }
        .sc-edit-profile-card .ep-avatar-preview img {
            width: 100%; height: 100%; object-fit: cover;
        }
        .sc-edit-profile-card .ep-avatar-fallback {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 22px; font-weight: 800; color: var(--ink-muted);
        }
        .sc-edit-profile-card .ep-avatar-actions {
            display: flex; flex-direction: column; gap: 4px;
        }
        .sc-edit-profile-card .ep-avatar-pick {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 12px; font-weight: 800;
            letter-spacing: 1.4px; text-transform: uppercase;
            color: var(--team-primary);
            background: transparent; border: 0;
            padding: 0; cursor: pointer;
            text-align: left;
            -webkit-tap-highlight-color: transparent;
        }
        .sc-edit-profile-card .ep-avatar-pick:active { opacity: 0.6; }
        .sc-edit-profile-card .ep-avatar-hint {
            font-size: 11.5px; color: var(--ink-faint);
            font-weight: 500;
        }
        .sc-edit-profile-card .ep-avatar input[type="file"] { display: none; }
        /* Field rows */
        .sc-edit-profile-card .ep-row {
            display: flex; gap: 10px;
            margin-bottom: 14px;
        }
        .sc-edit-profile-card .ep-row.solo > .ep-field { flex: 1; }
        .sc-edit-profile-card .ep-row > .ep-field { flex: 1; min-width: 0; }
        .sc-edit-profile-card .ep-row > .ep-field.short { flex: 0 0 96px; }
        .sc-edit-profile-card .ep-label {
            display: block;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 11px; font-weight: 800;
            letter-spacing: 1.8px; text-transform: uppercase;
            color: var(--ink-muted);
            margin-bottom: 6px;
        }
        .sc-edit-profile-card .ep-input {
            width: 100%;
            font-family: 'Manrope', system-ui, sans-serif;
            font-size: 15px; font-weight: 500;
            padding: 12px 14px;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            color: var(--ink);
            -webkit-appearance: none;
            outline: none;
            transition: border-color 0.15s ease, background 0.15s ease;
        }
        .sc-edit-profile-card .ep-input:focus {
            border-color: var(--team-primary);
            background: var(--surface);
        }
        /* Save + Cancel */
        .sc-edit-profile-card .ep-save {
            display: flex; align-items: center; justify-content: center;
            width: 100%; height: 54px;
            border: 0;
            background: linear-gradient(135deg, var(--team-primary), var(--team-secondary));
            color: #ffffff;
            border-radius: 999px;
            font-family: 'Saira Condensed', system-ui, sans-serif;
            font-size: 15px; font-weight: 800;
            letter-spacing: 2px; text-transform: uppercase;
            cursor: pointer; margin-top: 8px;
            box-shadow: 0 8px 24px color-mix(in srgb, var(--team-primary, #1d4ed8) 30%, transparent);
            transition: transform 0.12s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .sc-edit-profile-card .ep-save:active   { transform: scale(0.98); }
        .sc-edit-profile-card .ep-save:disabled { opacity: 0.65; cursor: wait; transform: none; }
        .sc-edit-profile-card .ep-cancel {
            display: block; margin: 14px auto 0; padding: 10px;
            background: transparent; border: 0;
            color: var(--ink-faint);
            font-family: 'Manrope', system-ui, sans-serif;
            font-size: 14px; font-weight: 600;
            cursor: pointer; -webkit-tap-highlight-color: transparent;
        }
        .sc-edit-profile-card .ep-cancel:hover { color: var(--ink-muted); }

        /* Hero stat ribbon — three big season numbers ON the team-color hero */
        .hero-stat-ribbon {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0;
            margin-top: 22px;
            padding-top: 18px;
            border-top: 1px solid rgba(255,255,255,0.18);
        }
        .hpr-stat {
            display: flex; flex-direction: column; align-items: flex-start;
            padding: 0 14px;
        }
        .hpr-stat + .hpr-stat { border-left: 1px solid rgba(255,255,255,0.14); }
        .hpr-stat:first-child { padding-left: 0; }
        .hpr-stat:last-child { padding-right: 0; }
        .hpr-stat-num {
            /* Orbitron for scoreboard/stat-card density — matches scoreboard.html.
               Tabular-nums keeps wider digits column-aligned across the three
               cells. Negative letter-spacing removed: Orbitron is geometric and
               tightens itself; -0.5px on Saira Condensed was masking width. */
            font-family: 'Orbitron', 'Saira Condensed', sans-serif;
            font-size: 36px; font-weight: 800;
            color: #ffffff;
            line-height: 1;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0;
        }
        .hpr-stat-label {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 10px; font-weight: 600;
            letter-spacing: 1.6px;
            color: rgba(255,255,255,0.65);
            text-transform: uppercase;
            margin-top: 5px;
        }

        /* ─── Body ─── */
        .body-pad { padding: 0 16px; }

        /* Section title */
        .section-title {
            display: flex; align-items: baseline; justify-content: space-between;
            margin: 28px 4px 14px;
        }
        .section-title h2 {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 18px; font-weight: 800;
            letter-spacing: 1.4px;
            text-transform: uppercase;
            color: var(--ink);
        }
        .section-title a {
            font-family: 'Manrope', sans-serif;
            font-size: 12px; font-weight: 600;
            color: var(--ink-muted);
            letter-spacing: 0.4px;
            text-transform: uppercase;
        }
        .section-title a:hover { color: var(--team-primary); }

        /* (Skills section intentionally removed — coach-only per product rule.
           Parents/players don't see numeric per-skill ratings.) */

        /* ─── Stat block (passing/rushing/receiving/defense) ─── */
        .stat-block {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
        }
        .stat-block + .stat-block { margin-top: 12px; }
        .stat-block-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 14px 18px;
            border-bottom: 1px solid var(--border);
            background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
        }
        .stat-block-title {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 14px; font-weight: 800;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--ink);
        }
        .stat-block-games {
            font-family: 'Manrope', sans-serif;
            font-size: 11px; font-weight: 600;
            letter-spacing: 0.4px;
            color: var(--ink-faint);
        }
        .stat-block-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
        }
        .stat-cell {
            padding: 18px 14px;
            text-align: left;
        }
        .stat-cell + .stat-cell { border-left: 1px solid var(--border); }
        .stat-cell-num {
            /* Orbitron numerics — see .hpr-stat-num for rationale. The cell
               labels below stay Saira Condensed so the typographic hierarchy
               is unmistakable: stat number is the hero, label is the eyebrow. */
            font-family: 'Orbitron', 'Saira Condensed', sans-serif;
            font-size: 30px; font-weight: 800;
            color: var(--ink);
            line-height: 1;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0;
        }
        .stat-cell-label {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 10px; font-weight: 600;
            letter-spacing: 1.6px;
            text-transform: uppercase;
            color: var(--ink-muted);
            margin-top: 6px;
        }

        /* ─── Highlights grid ─── */
        .highlights-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        /* v245: toolbar (per-kid / all-team toggle) + stale banner span full
           grid width. Stays above the actual clip tiles. */
        .hl-toolbar {
            grid-column: 1 / -1;
            display: inline-flex;
            gap: 6px;
            margin-bottom: 4px;
        }
        .hl-tab {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--ink-muted);
            font-family: 'Saira Condensed', sans-serif;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 1.4px;
            text-transform: uppercase;
            padding: 6px 14px;
            border-radius: 999px;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
        }
        .hl-tab.is-active {
            background: var(--ink);
            color: var(--surface);
            border-color: var(--ink);
        }
        .hl-stale-banner {
            grid-column: 1 / -1;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            background: rgba(245, 158, 11, 0.10);
            color: #b45309;
            border: 1px solid rgba(245, 158, 11, 0.30);
            border-radius: 10px;
            font-family: 'Manrope', sans-serif;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 4px;
        }
        .hl-stale-banner svg { flex-shrink: 0; }
        /* v241: real highlights wiring. Clip thumbnails, skeleton loader,
           empty state. Tap a highlight → game.html?id={id}. */
        .highlight {
            display: block;
            text-decoration: none;
            color: inherit;
            border-radius: 14px;
            overflow: hidden;
            background: var(--surface);
            box-shadow: var(--shadow-sm);
            transition: transform 160ms ease, box-shadow 160ms ease;
        }
        .highlight:active { transform: scale(0.98); }
        .highlight-thumb {
            position: relative;
            aspect-ratio: 16 / 9;
            background: linear-gradient(135deg, #1a1d2e, #0a0d14);
            overflow: hidden;
        }
        .hl-thumb-img {
            width: 100%; height: 100%;
            object-fit: cover;
            display: block;
        }
        .hl-thumb-fallback {
            position: absolute; inset: 0;
            display: flex; align-items: center; justify-content: center;
            color: rgba(255,255,255,0.45);
            background:
                linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.5) 100%),
                repeating-linear-gradient(90deg, #1e3a14 0px, #1e3a14 20px, #1a3211 20px, #1a3211 40px),
                linear-gradient(180deg, #14260b 0%, #1f3a0d 100%);
        }
        .hl-thumb-fallback svg { width: 32px; height: 32px; }
        .hl-play-overlay {
            position: absolute; inset: 0;
            display: flex; align-items: center; justify-content: center;
            background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.4) 100%);
            transition: background 160ms ease;
        }
        .hl-play-overlay::before {
            content: '';
            width: 44px; height: 44px;
            border-radius: 50%;
            background: rgba(255,255,255,0.92);
            box-shadow: 0 4px 14px rgba(0,0,0,0.35);
        }
        .hl-play-overlay svg {
            width: 18px; height: 18px;
            color: #0e1218;
            margin-left: 3px;
            position: absolute;
            z-index: 1;
            filter: none;
        }
        .highlight:hover .hl-play-overlay { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.2) 100%); }
        /* Metadata footer — dark broadcast-style strip below the thumbnail */
        .hl-meta {
            padding: 10px 12px 11px;
            background: #0e1218;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .hl-meta-title {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.6px;
            text-transform: uppercase;
            color: #fff;
            line-height: 1.15;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .hl-meta-line {
            font-family: 'Manrope', sans-serif;
            font-size: 11px;
            font-weight: 500;
            color: rgba(255,255,255,0.55);
            display: flex;
            align-items: center;
            gap: 6px;
            line-height: 1.2;
        }
        .hl-meta-line .hl-yard {
            display: inline-flex;
            align-items: center;
            padding: 2px 6px 1px;
            border-radius: 3px;
            background: rgba(255,255,255,0.10);
            color: #fff;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 10px; font-weight: 800;
            letter-spacing: 1px; text-transform: uppercase;
            line-height: 1;
            margin-left: auto;  /* push to right side of meta line */
        }
        .hl-meta-line .hl-arrow {
            opacity: 0.5;
            font-size: 9px;
        }
        /* Light-mode footer */
        html[data-theme="light"] .highlight,
        html[data-theme="light"] .hl-meta { background: #1a1f2b; }
        /* Skeleton loading tiles */
        .hl-skel {
            aspect-ratio: 16 / 9;
            border-radius: 14px;
            background: linear-gradient(90deg, var(--surface) 0%, var(--border) 50%, var(--surface) 100%);
            background-size: 200% 100%;
            animation: hl-skel-shimmer 1.4s linear infinite;
        }
        @keyframes hl-skel-shimmer {
            from { background-position: 200% 0; }
            to   { background-position: -200% 0; }
        }
        /* Empty state — spans both grid columns */
        .hl-empty {
            grid-column: 1 / -1;
            padding: 28px 18px;
            background: var(--surface);
            border: 1px dashed var(--border-strong, var(--border));
            border-radius: 14px;
            text-align: center;
        }
        .hl-empty-glyph {
            font-size: 30px;
            opacity: 0.55;
            margin-bottom: 8px;
        }
        .hl-empty-title {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 16px; font-weight: 800;
            letter-spacing: 0.5px; text-transform: uppercase;
            color: var(--ink);
        }
        .hl-empty-sub {
            font-family: 'Manrope', sans-serif;
            font-size: 13px; font-weight: 500;
            color: var(--ink-muted);
            margin-top: 6px;
            line-height: 1.45;
        }
        /* Inline clip lightbox — ported from athlete/game.html so tapping a
           thumbnail plays the clip without navigating away from the profile. */
        .hl-player-backdrop {
            position: fixed; inset: 0;
            background: rgba(0, 0, 0, 0.88);
            z-index: 9700;
            display: flex; align-items: center; justify-content: center;
            opacity: 0;
            transition: opacity 220ms ease;
        }
        .hl-player-backdrop.is-open { opacity: 1; }
        .hl-player-frame {
            position: relative;
            width: 100%;
            max-width: 1200px;
            padding: 0 14px;
            box-sizing: border-box;
        }
        /* Video element with explicit 16:9 + max-height that adapts to
           orientation via dvh. In landscape the max-height shrinks → width
           also shrinks via aspect-ratio. object-fit:contain letterboxes
           anything that doesn't match exactly. */
        .hl-player-video {
            width: 100%;
            aspect-ratio: 16/9;
            max-height: calc(100vh - 80px);
            max-height: calc(100dvh - 80px);
            border-radius: 14px;
            background: #000;
            display: block;
            object-fit: contain;
        }
        /* In landscape on phone: limit width by remaining height so the
           video stays 16:9 instead of getting cropped vertically. Also
           pull the action row inside the video corner (no room above). */
        @media (orientation: landscape) and (max-height: 600px) {
            .hl-player-frame { max-width: calc((100dvh - 40px) * 16 / 9 + 28px); padding: 0 4px; }
            .hl-player-actions { top: 6px; right: 10px; z-index: 2; }
            .hl-player-action {
                width: 32px; height: 32px;
                background: rgba(0,0,0,0.55);
                border-color: rgba(255,255,255,0.25);
            }
            .hl-player-caption { display: none; }
            .hl-player-video { max-height: calc(100dvh - 16px); border-radius: 8px; }
        }
        /* Action row above the video — share / download / close.
           Pinned to the top of the frame; in portrait sits ABOVE the
           video, in landscape collapses into the top-right corner. */
        .hl-player-actions {
            position: absolute;
            top: -50px; right: 14px;
            display: flex; gap: 10px;
            align-items: center;
        }
        .hl-player-action {
            width: 38px; height: 38px;
            border-radius: 50%;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.18);
            color: #fff;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
            transition: background 160ms ease, transform 120ms ease;
        }
        .hl-player-action:hover { background: rgba(255,255,255,0.20); }
        .hl-player-action:active { transform: scale(0.92); }
        .hl-player-action svg { width: 17px; height: 17px; }
        /* Toast inside the action row — confirms "Link copied" / "Downloaded" */
        .hl-player-toast {
            position: absolute;
            top: 100%; right: 0;
            margin-top: 6px;
            padding: 6px 10px;
            background: rgba(0,0,0,0.85);
            color: #fff;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 11px; font-weight: 700;
            letter-spacing: 1px; text-transform: uppercase;
            border-radius: 999px;
            white-space: nowrap;
            pointer-events: none;
            transition: opacity 240ms ease;
        }
        /* Legacy single-close button — kept for any caller that still
           expects it (defensive — current code uses .hl-player-actions). */
        .hl-player-close {
            position: absolute;
            top: -44px; right: 18px;
            width: 36px; height: 36px;
            border-radius: 50%;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.18);
            color: #fff;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }
        .hl-player-close svg { width: 18px; height: 18px; }
        .hl-player-caption {
            margin-top: 12px;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.4px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.7);
            text-align: center;
        }
        /* Surfaces if iOS rejects video.play() — gives user a tap target */
        .hl-player-tap-hint {
            position: absolute;
            top: 50%; left: 50%; transform: translate(-50%, -50%);
            background: rgba(0,0,0,0.7);
            color: #fff;
            padding: 14px 22px;
            border-radius: 999px;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 13px; font-weight: 800;
            letter-spacing: 1.4px; text-transform: uppercase;
            pointer-events: none;
            border: 1px solid rgba(255,255,255,0.2);
        }
        /* ───────── HIGHLIGHT CARD (v262 — ESPN/Hudl-style broadcast card) ─────────
           Was: forced 9/12 portrait box with 16:9 thumbnail crammed in the top
           half and ~50% empty gray below. Now: content-sized card with
           16:9 thumbnail strip + dark metadata footer below. Same vibe as
           Hudl / ESPN game highlight cards. */
        .highlight {
            position: relative;
            border-radius: var(--radius-sm);
            overflow: hidden;
            background: #0e1218;
            cursor: pointer;
            /* Reset button defaults */
            border: 0;
            padding: 0;
            margin: 0;
            text-align: left;
            font: inherit;
            color: inherit;
            -webkit-tap-highlight-color: transparent;
            display: block;
            width: 100%;
            transition: transform 180ms ease, box-shadow 180ms ease;
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }
        .highlight:active { transform: scale(0.985); }
        .highlight:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
        .highlight-thumb {
            position: relative;
            aspect-ratio: 16/9;
            overflow: hidden;
            background: linear-gradient(135deg, #1a1d2e, #0a0d14);
        }
        /* Tiny chip in the corner — "Q1" badge — broadcast scoreboard feel */
        .hl-chip {
            position: absolute;
            top: 8px; left: 8px;
            padding: 3px 7px 2px;
            border-radius: 4px;
            background: rgba(0,0,0,0.65);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            color: #fff;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 10px; font-weight: 800;
            letter-spacing: 1.4px; text-transform: uppercase;
            line-height: 1;
            z-index: 2;
            pointer-events: none;
        }
        .hl-chip.td {
            top: 8px; right: 8px; left: auto;
            background: #dc2626;
            color: #fff;
            box-shadow: 0 2px 6px rgba(220,38,38,0.4);
        }

        /* ─── Game-by-game line ─── */
        /* v242: REC cam-pill — surfaces on game-log rows that have at least
           one camera session, so parents know which games have video they
           can revisit. Coach Dave gets a real "this one is on tape" cue. */
        .gbg-cam-pill {
            display: inline-flex; align-items: center; gap: 4px;
            margin-left: 8px;
            padding: 2px 7px;
            border-radius: 999px;
            background: rgba(239,68,68,0.10);
            color: var(--accent-red, #ef4444);
            font-family: 'Saira Condensed', sans-serif;
            font-size: 10px; font-weight: 800;
            letter-spacing: 1.4px; text-transform: uppercase;
            vertical-align: middle;
            line-height: 1;
        }
        .gbg-cam-pill svg { width: 11px; height: 11px; }
        .gbg-cam-pill-dot {
            width: 5px; height: 5px; border-radius: 50%;
            background: var(--accent-red, #ef4444);
            box-shadow: 0 0 0 2px rgba(239,68,68,0.20);
        }
        .gbg-row {
            display: grid;
            grid-template-columns: 60px 1fr 90px;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
        }
        .gbg-row + .gbg-row { margin-top: 8px; }
        .gbg-date {
            text-align: center;
        }
        .gbg-date-month {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 11px; font-weight: 700;
            letter-spacing: 1.6px;
            text-transform: uppercase;
            color: var(--ink-faint);
        }
        .gbg-date-day {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 22px; font-weight: 800;
            color: var(--ink);
            line-height: 1;
            margin-top: 2px;
        }
        .gbg-opp {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 14px; font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            color: var(--ink);
        }
        .gbg-line {
            font-family: 'Manrope', sans-serif;
            font-size: 13px; font-weight: 500;
            color: var(--ink-muted);
            margin-top: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .gbg-score-chip {
            justify-self: end;
            display: inline-flex; align-items: baseline; gap: 5px;
            padding: 6px 12px;
            background: #ffffff;
            border: 1.5px solid var(--team-color, var(--ink));
            border-radius: 999px;
            /* Score digits in Orbitron for scoreboard feel; the .tag span inside
               (W/L/T) stays Saira Condensed via its own rule below so the
               wide-and-narrow contrast reads as "score · result". */
            font-family: 'Orbitron', 'Saira Condensed', sans-serif;
            font-size: 14px; font-weight: 800;
            color: var(--team-color, var(--ink));
            font-variant-numeric: tabular-nums;
            letter-spacing: 0;
        }
        .gbg-score-chip .tag {
            font-family: 'Saira Condensed', sans-serif;
        }
        .gbg-score-chip.win  { --team-color: var(--accent-green); }
        .gbg-score-chip.loss { --team-color: var(--accent-red); }
        .gbg-score-chip.tie  { --team-color: var(--accent-amber); }
        .gbg-score-chip .tag {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1.4px;
            text-transform: uppercase;
        }

        /* ─── Bottom Nav ─── */
        /* v246: opaque + no backdrop-filter — bleed-into-home-indicator fix */
        .bottom-nav {
            position: fixed; bottom: 0; left: 0; right: 0;
            background: var(--surface);
            border-top: 1px solid var(--border);
            height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
            padding-bottom: env(safe-area-inset-bottom, 0px);
            display: flex; align-items: stretch;
            z-index: 100;
        }
        .bn-item {
            flex: 1;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            gap: 6px;
            color: var(--ink-muted);
            transition: color 0.15s ease;
            position: relative;
            padding: 10px 4px;
            margin: 8px 5px;
            border-radius: 16px;
        }
        /* Bottom nav icons — high-specificity rules (no !important) so they win
           cleanly over any cascading rule that may have crept in. Explicit display
           keeps iOS Safari from collapsing an unstyled <svg> in flex column layout. */
        nav.bottom-nav .bn-item svg {
            display: block;
            width: 26px;
            height: 26px;
            stroke-width: 2;
            stroke: currentColor;
            fill: none;
            flex-shrink: 0;
        }
        nav.bottom-nav .bn-item { color: #a1a1aa; }
        nav.bottom-nav .bn-item svg { stroke-width: 1.8; }
        nav.bottom-nav .bn-item.active { color: #ffffff; }
        nav.bottom-nav .bn-item.active svg { stroke-width: 2.4; }
        .bn-label {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 12px; font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }
        .bn-item.active {
            background: linear-gradient(135deg, var(--team-primary), var(--team-secondary));
            color: #ffffff;
            box-shadow: 0 4px 14px color-mix(in srgb, var(--team-primary) 28%, transparent),
                        inset 0 1px 0 rgba(255,255,255,0.18);
        }

        /* Small screen */
        @media (max-width: 380px) {
            .hero-portrait-name { font-size: 24px; }
            .hpr-stat-num { font-size: 28px; }
            .stat-cell-num { font-size: 24px; }
            .skill-row { grid-template-columns: 80px 1fr 36px; }
        }
    