/* ============================================================================
   NERDDSPORTS v3 — "BROADCAST PACKAGE"
   ============================================================================
   The visual language of a network sports telecast: lower-third slash motif,
   scoreboard amber for live states, condensed caps display type, mono digits
   for data. Loads AFTER the legacy inline styles and overrides the aesthetic
   layer while preserving all structure and JS behavior.

   Fonts:  Barlow Condensed (display) · Archivo (body) · IBM Plex Mono (data)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Archivo:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ============================================================
   1. TOKENS — dark (default) = arena at night
   ============================================================ */
:root {
    --primary: #E0362C;
    --primary-dark: #B5251D;
    --primary-light: #F0564A;
    --accent: #F2A71B;                 /* scoreboard amber */

    --bg-primary: #0E1319;
    --bg-secondary: #151C24;
    --bg-tertiary: #1D2733;

    --text-primary: #F4F6F2;
    --text-secondary: #C4CDD6;
    --text-muted: #7F8C99;

    --border: #27323F;
    --shadow: 0 2px 10px rgba(3, 8, 14, 0.45);
    --shadow-lg: 0 14px 34px rgba(3, 8, 14, 0.55);
    --gradient-brand: linear-gradient(102deg, #E0362C 0%, #B5251D 100%);

    --v3-display: 'Barlow Condensed', 'Oswald', sans-serif;
    --v3-body: 'Archivo', 'Inter', sans-serif;
    --v3-mono: 'IBM Plex Mono', 'Courier New', monospace;
    --v3-skew: -12deg;
    --v3-radius: 6px;
    --v3-radius-sm: 3px;
}

/* Light = pressroom paper */
[data-theme="light"] {
    --bg-primary: #F5F6F4;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #ECEFEA;
    --text-primary: #131A21;
    --text-secondary: #3D4954;
    --text-muted: #71808D;
    --border: #D9DED7;
    --shadow: 0 2px 8px rgba(19, 26, 33, 0.08);
    --shadow-lg: 0 14px 30px rgba(19, 26, 33, 0.14);
}

/* Re-map the v2 article-card tokens so ns-cards join the package */
:root, [data-theme="dark"] {
    --ns-bg: var(--bg-primary);
    --ns-bg-card: var(--bg-secondary);
    --ns-bg-raised: var(--bg-tertiary);
    --ns-border: var(--border);
    --ns-border-soft: #202A35;
    --ns-text: var(--text-primary);
    --ns-text-dim: var(--text-secondary);
    --ns-text-faint: var(--text-muted);
    --ns-accent: var(--accent);
    --ns-accent-warm: #F5BC4D;
    --ns-accent-hot: var(--primary);
}
[data-theme="light"] {
    --ns-border-soft: #E4E8E1;
}

/* ============================================================
   2. BASE
   ============================================================ */
body {
    font-family: var(--v3-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--primary); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   3. THE SLASH — signature motif
   Applied to: section titles, live bugs, chips, ticker label,
   active nav. Nothing else gets decorated.
   ============================================================ */
.section-title {
    font-family: var(--v3-display);
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-title::before {
    content: '';
    width: 12px;
    height: 26px;
    background: var(--gradient-brand);
    transform: skewX(var(--v3-skew));
    flex-shrink: 0;
}
.section-title i { color: var(--accent); font-size: 0.65em; }

.widget-title {
    font-family: var(--v3-display);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 48px; height: 3px;
    background: var(--accent);
    transform: skewX(var(--v3-skew));
}
.widget-title i { color: var(--accent); font-size: 0.75em; }

.section-link {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: var(--accent);
}
.section-link:hover { color: var(--text-primary); }

/* ============================================================
   4. TOP BAR / HEADER / NAV
   ============================================================ */
.top-bar { background: #090D12; border-bottom: 1px solid var(--border); font-family: var(--v3-mono); font-size: 12px; }
[data-theme="light"] .top-bar { background: #131A21; color: #C4CDD6; }

.header { background: var(--bg-primary); border-bottom: 1px solid var(--border); }

.logo-text {
    font-family: var(--v3-display);
    font-weight: 700;
    font-size: 34px;
    letter-spacing: 0.01em;
    font-style: italic;               /* forward lean = motion */
}
.logo-icon { color: var(--primary); }

.search-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--v3-radius-sm);
    color: var(--text-primary);
    font-family: var(--v3-body);
}
.search-input:focus { border-color: var(--accent); }

.sign-in-btn, .sign-up-btn, .newsletter-btn, .comment-submit {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    border-radius: var(--v3-radius-sm);
}
.sign-up-btn, .newsletter-btn, .comment-submit { background: var(--gradient-brand); border: none; }
.sign-up-btn:hover, .newsletter-btn:hover, .comment-submit:hover { background: var(--primary-light); }

/* Main category nav */
.nav { background: var(--bg-primary); border-bottom: 1px solid var(--border); }
.nav-item {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-secondary);
    position: relative;
}
.nav-item:hover { color: var(--text-primary); }
.nav-item.active { color: var(--text-primary); }
.nav-item.active::after {
    content: '';
    position: absolute;
    left: 10%; right: 10%; bottom: -1px;
    height: 3px;
    background: var(--accent);
    transform: skewX(var(--v3-skew));
}

/* Sports sub-nav (Scores / Standings / Schedule / Teams) */
.sports-nav { background: #090D12; border-bottom: 1px solid var(--border); }
[data-theme="light"] .sports-nav { background: #131A21; }
.sports-nav-link {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: #8B98A5;
}
.sports-nav-link:hover { color: #F4F6F2; }
.sports-nav-link.active { color: var(--accent); }

.sports-nav-live {
    font-family: var(--v3-mono);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    padding: 4px 12px;
    transform: skewX(var(--v3-skew));
}
.sports-nav-live > * { display: inline-block; transform: skewX(calc(var(--v3-skew) * -1)); }

/* ============================================================
   5. TICKER — the wire
   ============================================================ */
.ticker-container { background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.ticker-item {
    font-family: var(--v3-mono);
    font-size: 13px;
    color: var(--text-secondary);
}
.ticker-item:hover { color: var(--accent); }

.breaking-banner, .breaking-badge { background: var(--gradient-brand); }
.breaking-badge-inner, .breaking-text {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* Live bug — the broadcast corner plate */
.live, .live-pulse {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.live-dot, .live-dot-small { background: var(--accent); box-shadow: 0 0 0 0 rgba(242, 167, 27, 0.6); animation: v3pulse 1.6s infinite; }
@keyframes v3pulse {
    0% { box-shadow: 0 0 0 0 rgba(242, 167, 27, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(242, 167, 27, 0); }
    100% { box-shadow: 0 0 0 0 rgba(242, 167, 27, 0); }
}

/* ============================================================
   6. HERO — clean scrim, no red wash
   ============================================================ */
.hero-main {
    border-radius: var(--v3-radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.hero-main::before {
    background: linear-gradient(180deg, transparent 30%, rgba(6, 10, 15, 0.55) 62%, rgba(6, 10, 15, 0.92) 100%);
}
.hero-main::after { border: none; }
.hero-main:hover { box-shadow: var(--shadow-lg); }

.hero-category {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 13px;
    background: var(--accent);
    color: #131A21;
    padding: 4px 14px;
    border-radius: 0;
    transform: skewX(var(--v3-skew));
    display: inline-block;
}
.hero-main-title {
    font-family: var(--v3-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: 42px;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 14px rgba(6, 10, 15, 0.6);
}
.hero-main-excerpt { color: #D5DCE2; }
.hero-meta { font-family: var(--v3-mono); font-size: 12px; color: #AEB9C3; }

.hero-side-card {
    border-radius: var(--v3-radius);
    border: 1px solid var(--border);
    overflow: hidden;
}
.hero-side-card::before {
    background: linear-gradient(180deg, transparent 25%, rgba(6, 10, 15, 0.6) 60%, rgba(6, 10, 15, 0.94) 100%);
}
.hero-side-card::after { border: none; }
.hero-side-title { font-family: var(--v3-body); font-weight: 700; font-size: 17px; line-height: 1.28; color: #fff; }
.hero-side-reporter { font-family: var(--v3-mono); font-size: 11px; color: #AEB9C3; }

/* ============================================================
   7. ARTICLE CARDS + LISTS
   ============================================================ */
.news-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--v3-radius);
    box-shadow: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.news-card:hover { transform: translateY(-3px); border-color: var(--text-muted); box-shadow: var(--shadow); }
.news-card-title { font-family: var(--v3-body); font-weight: 700; font-size: 17px; line-height: 1.35; }
.news-card-category {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 12px;
    border-radius: 0;
    transform: skewX(var(--v3-skew));
    display: inline-block;
    padding: 2px 10px;
}
.news-card-meta, .list-article-meta { font-family: var(--v3-mono); font-size: 11px; color: var(--text-muted); }

.list-article {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--v3-radius);
}
.list-article:hover { border-color: var(--text-muted); }
.list-article-title { font-family: var(--v3-body); font-weight: 700; font-size: 19px; line-height: 1.3; }
.list-article-category {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 12px;
    border-radius: 0;
    transform: skewX(var(--v3-skew));
    display: inline-block;
    padding: 2px 10px;
}

.reading-time, .view-count { font-family: var(--v3-mono); font-size: 11px; }

/* ============================================================
   8. SIDEBAR — trending, reporters, newsletter
   ============================================================ */
.sidebar-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--v3-radius);
}
.trending-number {
    font-family: var(--v3-display);
    font-weight: 700;
    font-style: italic;
    color: var(--accent);
    font-size: 26px;
    min-width: 34px;
}
.trending-item { border-bottom: 1px solid var(--border); }
.trending-content h4 { font-family: var(--v3-body); font-weight: 600; }

.reporter-card { border-bottom: 1px solid var(--border); }
.reporter-avatar img { border: 2px solid var(--border); border-radius: 50%; }
.reporter-card:hover .reporter-avatar img { border-color: var(--accent); }
.reporter-info h4 { font-family: var(--v3-body); font-weight: 700; }
.reporter-info p { font-family: var(--v3-mono); font-size: 11px; color: var(--text-muted); }

.newsletter-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--v3-radius);
}
.newsletter-input {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--v3-radius-sm);
    color: var(--text-primary);
}

.follow-btn {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    border-radius: var(--v3-radius-sm);
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
}
.follow-btn:hover, .follow-btn.following { background: var(--accent); color: #131A21; }

/* ============================================================
   9. SCOREBOARD — mono digits, amber live
   ============================================================ */
.scoreboard-widget, .live-scoreboard-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--v3-radius);
}
.scoreboard-title, .scoreboard-header-main {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.scoreboard-tab {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    border-radius: var(--v3-radius-sm);
}
.scoreboard-tab.active { background: var(--gradient-brand); color: #fff; }

.team-score-sb, .game-card-team-score, .home-score, .away-score, .game-modal-team-score {
    font-family: var(--v3-mono);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.team-name-small, .game-card-team-name { font-family: var(--v3-body); font-weight: 600; }
.team-record-small, .game-card-team-record, .game-modal-team-record { font-family: var(--v3-mono); font-size: 11px; color: var(--text-muted); }

.game-card-status, .game-status { font-family: var(--v3-mono); font-size: 12px; }
.game-card-status.live, .game-status.live { color: var(--accent); font-weight: 600; }
.game-card-status.final, .game-status.final { color: var(--text-muted); }

.score-game-card, .scoreboard-game {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--v3-radius);
}
.score-game-card:hover, .scoreboard-game:hover { border-color: var(--accent); }
.winner, .winner-team { color: var(--text-primary); }

.date-nav-btn, .scoreboard-nav-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--v3-radius-sm);
    color: var(--text-secondary);
}
.date-nav-btn:hover, .scoreboard-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.date-nav-label { font-family: var(--v3-mono); font-size: 12px; }

.score-updated { animation: v3flash 0.9s ease; }
@keyframes v3flash {
    0% { background: rgba(242, 167, 27, 0.25); }
    100% { background: transparent; }
}

/* Game modal */
.game-modal { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--v3-radius); }
.game-modal-league {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--accent);
}
.game-modal-team-name { font-family: var(--v3-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.game-modal-vs { font-family: var(--v3-display); font-style: italic; color: var(--text-muted); }
.game-modal-status { font-family: var(--v3-mono); }
.game-modal-btn {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    border-radius: var(--v3-radius-sm);
}

/* ============================================================
   10. ARTICLE MODAL — the read
   ============================================================ */
.modal-container { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--v3-radius); }
.modal-overlay { background: rgba(6, 10, 15, 0.75); }
.modal-category {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 12px;
    background: var(--accent);
    color: #131A21;
    transform: skewX(var(--v3-skew));
    display: inline-block;
    padding: 3px 12px;
    border-radius: 0;
}
.modal-title {
    font-family: var(--v3-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: 32px;
    line-height: 1.1;
}
.modal-meta { font-family: var(--v3-mono); font-size: 12px; color: var(--text-muted); }
.modal-author-name { font-family: var(--v3-body); font-weight: 700; }
.modal-author-title { font-family: var(--v3-mono); font-size: 11px; color: var(--text-muted); }
.modal-body { font-size: 17px; line-height: 1.75; color: var(--text-secondary); }
.modal-close { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--v3-radius-sm); }
.modal-close:hover { border-color: var(--primary); color: var(--primary); }

/* Reactions + comments */
.reaction-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reaction-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 999px;             /* reactions stay round — they're human, not broadcast */
    transition: transform 0.12s ease, border-color 0.12s ease;
}
.reaction-btn:hover { transform: translateY(-2px) scale(1.05); border-color: var(--accent); }
.reaction-btn.active { border-color: var(--accent); background: rgba(242, 167, 27, 0.12); }
.reaction-btn .count { font-family: var(--v3-mono); font-size: 11px; }

.bookmark-btn { border-radius: var(--v3-radius-sm); }
.bookmark-btn.active { color: var(--accent); }

.comments-title {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.comment { border-bottom: 1px solid var(--border); }
.comment-time { font-family: var(--v3-mono); font-size: 11px; color: var(--text-muted); }
.comment-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--v3-radius-sm);
    color: var(--text-primary);
    font-family: var(--v3-body);
}
.comment-input:focus { border-color: var(--accent); }

.related-title { font-family: var(--v3-display); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.related-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--v3-radius); }
.related-card:hover { border-color: var(--accent); }
.related-card-title { font-family: var(--v3-body); font-weight: 600; }
.related-card-meta { font-family: var(--v3-mono); font-size: 11px; color: var(--text-muted); }

.share-btn { border-radius: var(--v3-radius-sm); }

/* ============================================================
   11. BOOKMARKS PANEL + DROPDOWN
   ============================================================ */
.bookmarks-panel { background: var(--bg-primary); border-left: 1px solid var(--border); }
.bookmarks-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bookmark-item { border-bottom: 1px solid var(--border); }
.bookmark-item:hover { background: var(--bg-secondary); }
.bookmark-item-title { font-family: var(--v3-body); font-weight: 600; }
.bookmark-item-meta { font-family: var(--v3-mono); font-size: 11px; color: var(--text-muted); }

.profile-dropdown { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--v3-radius); box-shadow: var(--shadow-lg); }
.dropdown-item:hover { background: var(--bg-tertiary); }
.dropdown-header { font-family: var(--v3-display); text-transform: uppercase; letter-spacing: 0.04em; }
.dropdown-badge { background: var(--primary); font-family: var(--v3-mono); }

/* ============================================================
   12. STATES, FOOTER, MISC
   ============================================================ */
.empty-state, .no-games-card, .no-games-msg { color: var(--text-muted); font-family: var(--v3-mono); }
.loading, .loading-more, .scoreboard-loading { color: var(--text-muted); font-family: var(--v3-mono); }
.end-divider { border-color: var(--border); }
.end-of-news { font-family: var(--v3-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.keep-scrolling-btn {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    background: var(--gradient-brand);
    border: none;
    border-radius: var(--v3-radius-sm);
}

.footer { background: #090D12; border-top: 1px solid var(--border); }
[data-theme="light"] .footer { background: #131A21; color: #C4CDD6; }
.footer-brand { font-family: var(--v3-display); font-weight: 700; font-style: italic; text-transform: uppercase; }
.footer-links a { color: #8B98A5; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); font-family: var(--v3-mono); font-size: 12px; color: #8B98A5; }

/* Speed panel (ticker settings) */
.speed-panel { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--v3-radius); box-shadow: var(--shadow-lg); }
.speed-panel-title { font-family: var(--v3-display); text-transform: uppercase; letter-spacing: 0.05em; }
.speed-value { font-family: var(--v3-mono); color: var(--accent); }
.speed-slider { accent-color: var(--accent); }

/* ============================================================
   13. ns-* STRUCTURED ARTICLE CARD — join the package
   ============================================================ */
.ns-card { border-radius: var(--v3-radius); border: 1px solid var(--border); }
.ns-headline {
    font-family: var(--v3-display) !important;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.08;
}
.ns-deck { font-family: var(--v3-body); }
.ns-mood-ribbon {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transform: skewX(var(--v3-skew));
}
.ns-tag { font-family: var(--v3-mono); border-radius: var(--v3-radius-sm); }
.ns-confidence, .ns-source { font-family: var(--v3-mono); }
.ns-hottake-label, .ns-prediction-label {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================
   14. RESPONSIVE POLISH
   ============================================================ */
@media (max-width: 768px) {
    .section-title { font-size: 24px; }
    .section-title::before { height: 20px; width: 9px; }
    .hero-main-title { font-size: 26px; }
    .modal-title { font-size: 24px; }
    .logo-text { font-size: 26px; }
}

/* ============================================================
   v3.1 REFINEMENTS
   ============================================================ */

/* --- Logo: one word, always. No wrap, no lean, no gap. --- */
.logo-text {
    font-style: normal;
    white-space: nowrap;
    letter-spacing: 0.005em;
    display: inline-flex;
    align-items: baseline;
}
.logo-text span { color: var(--primary); }

/* --- Single compact Login button --- */
.sign-in-btn {
    padding: 7px 16px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--v3-radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    gap: 6px;
}
.sign-in-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-tertiary); }
.sign-in-btn i { font-size: 12px; color: var(--accent); }

/* --- HERO, rebuilt ---
   Lead story: full-bleed image, strong bottom scrim, disciplined type.
   Side stories: no more text-over-image overlays — clean horizontal
   media cards with the thumbnail on the left and readable text on a
   solid card. --- */
.hero { gap: 18px; }

.hero-main { min-height: 480px; }
.hero-main-image { opacity: 1; height: 480px; }
.hero-main:hover .hero-main-image { transform: scale(1.03); opacity: 1; }
.hero-main::before {
    background: linear-gradient(180deg, rgba(6,10,15,0.05) 0%, transparent 28%, rgba(6,10,15,0.62) 62%, rgba(6,10,15,0.95) 100%);
}
.hero-main-content { padding: 30px 32px; }
.hero-category { margin-bottom: 14px; }
.hero-main-title {
    font-size: 40px;
    line-height: 1.04;
    max-width: 94%;
    margin-bottom: 12px;
}
.hero-main-excerpt {
    font-size: 15px;
    line-height: 1.55;
    max-width: 85%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

/* Side cards: overlay → media row */
.hero-side-card {
    display: flex;
    align-items: stretch;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--v3-radius);
    min-height: 0;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.hero-side-card::before { display: none; }
.hero-side-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.hero-side-card img.hero-side-image {
    position: static;
    width: 132px;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    opacity: 1;
    flex-shrink: 0;
}
.hero-side-card:hover img.hero-side-image { transform: none; opacity: 1; }
.hero-side-content {
    position: static;
    background: none;
    backdrop-filter: none;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}
.hero-side-title {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-side-reporter { color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.hero-side-reporter img { border-radius: 50%; }

@media (max-width: 992px) {
    .hero-main { min-height: 400px; }
    .hero-main-image { height: 400px; }
    .hero-sidebar .hero-side-card { min-height: 0; }
}
@media (max-width: 768px) {
    .hero-main { min-height: 300px; }
    .hero-main-image { height: 300px; }
    .hero-main-content { padding: 18px 20px; }
    .hero-main-title { font-size: 25px; max-width: 100%; }
    .hero-main-excerpt { max-width: 100%; }
    .hero-side-card img.hero-side-image { width: 104px; }
    .hero-side-title { font-size: 14px; -webkit-line-clamp: 2; }
    .logo-text { font-size: 24px; }
}

/* ============================================================
   v3.2 SHARED PAGE HEADER — scores / standings / schedule / teams
   One header component for every sub-page: real Nerddix logo,
   NerddSports wordmark, condensed nav with the slash underline.
   ============================================================ */
.pg-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.pg-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.pg-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--text-primary);
}
/* Logo containment — belt and suspenders. The img tags also carry
   width/height attributes so the mark can never render at natural size,
   even before this stylesheet loads. */
.pg-brand { flex-shrink: 0; min-width: 0; }
.pg-brand img,
.pg-logo {
    height: 38px !important;
    width: 38px !important;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.pg-logo-light { display: none !important; }
[data-theme="light"] .pg-logo-dark { display: none !important; }
[data-theme="light"] .pg-logo-light { display: block !important; }
.pg-brand .logo-text { font-size: 28px; line-height: 1; }
.pg-brand:hover .pg-logo { transform: scale(1.05); }
.pg-logo { transition: transform 0.15s ease; }

.pg-nav {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pg-nav::-webkit-scrollbar { display: none; }
.pg-nav a {
    font-family: var(--v3-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 2px;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.pg-nav a:hover { color: var(--text-primary); }
.pg-nav a.active { color: var(--text-primary); }
.pg-nav a.active::after {
    content: '';
    position: absolute;
    left: 6%; right: 6%; bottom: -13px;
    height: 3px;
    background: var(--accent);
    transform: skewX(var(--v3-skew));
}

@media (max-width: 640px) {
    .pg-header-inner { flex-direction: column; gap: 8px; padding: 10px 14px; }
    .pg-brand .logo-text { font-size: 23px; }
    .pg-brand img, .pg-logo { height: 30px !important; width: 30px !important; max-width: 30px; max-height: 30px; }
    .pg-nav { width: 100%; justify-content: flex-start; gap: 20px; }
    .pg-nav a.active::after { bottom: -4px; }
}
