/* IQDugout Stylesheet v2 */

:root {
    --bg: #08111d;
    --bg-secondary: #101a2d;
    --panel: #131c2e;
    --panel2: #1a2640;
    --panel-hover: #21304d;
    --accent: #0ea5e9;
    --accent2: #2563eb;
    --accent-soft: rgba(14, 165, 233, 0.16);
    --text: #f4f7fb;
    --muted: #9fb3c8;
    --border: #24324b;
    --border-bright: #355078;
    --danger: #fca5a5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-large: 0 24px 60px rgba(0, 0, 0, 0.45);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    background:
        radial-gradient(
            circle at top center,
            rgba(37, 99, 235, 0.13),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            var(--bg),
            var(--bg-secondary)
        );
    overflow-x: hidden;
}

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

button,
input {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    background: rgba(8, 17, 29, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    height: 56px;
    gap: 12px;
}

.brand,
.logo {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-iq,
.logo-iq {
    color: var(--accent);
}

.navigation,
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.navigation a,
.main-nav a {
    color: var(--muted);
    font-weight: 600;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.navigation a:hover,
.main-nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.hero {
    max-height: 320px; /* keep hero under ~300px visually */
    min-height: 180px;
    display: flex;
    align-items: center;
    padding: 28px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.hero-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-left {
    flex: 0 0 420px;
}

.hero-brand {
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-title {
    margin: 8px 0 6px;
    font-size: 2.6rem;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    margin: 0;
    color: var(--muted);
    max-width: 560px;
    font-size: 1rem;
}

.hero-search {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.hero-search-wrapper {
    width: min(700px, 92%);
    display: flex;
    gap: 12px;
    padding: 14px;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 14px;
    backdrop-filter: blur(6px) saturate(120%);
}

.hero-search-wrapper input {
    padding: 14px 16px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.03);
    color: var(--text);
    width: 100%;
    max-width: 520px;
    outline: none;
}

.hero-search-wrapper button {
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    color: #fff;
    border: none;
    font-weight: 800;
}

@media (max-width: 900px) {
    .hero-inner { flex-direction: column; align-items: stretch; gap: 18px; }
    .hero-left { flex: none; }
    .hero-title { font-size: 1.8rem; }
    .hero-search-wrapper { width: 100%; }
}


.eyebrow,
.section-label,
.feature-label,
.stats-panel-label,
.record-card-label {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0.15em 0;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--accent);
}

.hero-description {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    color: var(--muted);
    font-size: 1.1rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 0;
}

.site-header .search-wrapper {
    max-width: 580px;
    margin-left: auto;
    margin-right: 0;
    justify-content: flex-end;
    gap: 8px;
}

.search-wrapper input {
    flex: 1;
    min-width: 260px;
    max-width: 600px;
    padding: 17px 18px;
    color: #ffffff;
    background: rgba(19, 28, 46, 0.96);
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.search-wrapper input::placeholder {
    color: #71849a;
}

.search-wrapper input:focus {
    background: var(--panel);
    border-color: var(--accent);
    box-shadow:
        0 0 0 4px rgba(14, 165, 233, 0.13),
        0 12px 32px rgba(0, 0, 0, 0.25);
}

.search-wrapper button {
    padding: 16px 28px;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(
        135deg,
        var(--accent2),
        var(--accent)
    );
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.search-wrapper button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.28);
    filter: brightness(1.06);
}

.search-wrapper button:active {
    transform: translateY(0);
}

.feature-section {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(260px, 1fr)
    );
    gap: 24px;
    padding: 0 7% 70px;
}

.feature-card,
.player-section,
.team-section,
.stats-panel {
    padding: 28px;
    background: rgba(19, 28, 46, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.player-container,
.team-container {
    width: min(1200px, 94%);
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-hero,
.team-hero-content {
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 32px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.player-headshot-frame {
    position: relative;
    flex: 0 0 auto;
    width: clamp(170px, 18vw, 205px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 24%,
            rgba(248, 250, 252, 0.98),
            rgba(219, 234, 254, 0.94) 60%,
            rgba(14, 165, 233, 0.22)
        ),
        var(--panel2);
    border: 1px solid var(--border-bright);
    border-radius: 24px;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.34),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    isolation: isolate;
}

.player-headshot {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 8px 8px 0;
    object-fit: contain;
    object-position: 50% 100%;
    background: transparent;
    border: 0;
}

.player-headshot-fallback {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 10px;
    padding: 20px;
    color: #334155;
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 30%,
            #f8fafc,
            #dbeafe 62%,
            rgba(14, 165, 233, 0.3)
        );
}

.player-headshot-fallback[hidden],
.player-headshot[hidden] {
    display: none;
}

.player-headshot-fallback-mark {
    display: grid;
    place-items: center;
    width: 64px;
    aspect-ratio: 1;
    color: #0369a1;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(14, 165, 233, 0.35);
    border-radius: 50%;
}

.player-headshot-fallback-copy {
    color: #334155;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-identity {
    min-width: 0;
}

.roster-headshot {
    width: 72px;
    height: 72px;
    object-fit: contain;
    object-position: center top;
    background: #ffffff;
    border-radius: 50%;
}

.team-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.player-details,
.team-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.player-details span,
.team-details span {
    padding: 8px 14px;
    color: var(--muted);
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.stats-grid,
.team-stats-grid,
.record-secondary-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(140px, 1fr)
    );
    gap: 16px;
}

.stat-card,
.stat-box,
.record-card {
    padding: 18px;
    text-align: center;
    background: var(--panel2);
    border: 1px solid transparent;
    border-radius: 14px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.stat-card:hover,
.stat-box:hover,
.record-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-bright);
}

.stat-card strong,
.stat-box strong,
.record-main-value {
    display: block;
    margin-top: 8px;
    font-size: 1.7rem;
}

.record-main-card {
    padding: 28px;
    margin-bottom: 20px;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--accent2),
        var(--accent)
    );
    border-radius: 20px;
    box-shadow: 0 16px 35px rgba(14, 165, 233, 0.18);
}

.games-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 1000px) {
    .games-list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    /* keep cards compact on larger screens */
    .games-list {
        gap: 18px;
    }
}

.game-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 14px;
    transition:
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
    min-height: 110px;
    gap: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.game-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(125,211,252,0.12);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.game-meta { display:flex; flex-direction:column; align-items:flex-end; gap:6px; min-width:120px; }
.game-status-badge { background: rgba(14,165,233,0.08); color:var(--accent); padding:6px 10px; border-radius:999px; font-weight:700; font-size:0.85rem; border:1px solid rgba(14,165,233,0.12)}
.at-sep { color: var(--muted); font-weight:800; margin:0 8px; }
.game-score-value { font-size:1.25rem; color:var(--text); }
.game-team img { width:72px; height:72px; }


.game-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-bright);
}

.game-card-link {
    display: block;
    color: inherit;
}

.game-card-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.game-team-record {
    display: inline-block;
    margin-left: 0.45rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
}

.game-page {
    background: transparent;
}

.game-hero {
    padding: 32px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.game-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 24px;
}

.game-team-panel {
    display: grid;
    gap: 20px;
}

.game-team-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.game-team-card h3 {
    margin: 0;
}

.game-meta-list,
.game-highlight-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.game-meta-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted);
}

.game-meta-item strong {
    color: var(--text);
}

.line-score-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.line-score-table th,
.line-score-table td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.line-score-table th {
    background: rgba(14, 165, 233, 0.08);
    color: var(--accent);
    font-weight: 700;
}

.line-score-table td {
    background: var(--panel2);
}

.line-score-team {
    text-align: left;
}

.boxscore-section {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.boxscore-table {
    width: 100%;
    border-collapse: collapse;
}

.boxscore-table th,
.boxscore-table td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.boxscore-table th {
    background: rgba(14, 165, 233, 0.08);
    color: var(--accent);
}

.game-summary {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.game-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.game-summary-card {
    flex: 1 1 220px;
    padding: 18px;
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.game-summary-card strong {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--accent);
}

.game-boxscore-row {
    border-top: 1px solid var(--border);
}

.game-score-label {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.game-score-value {
    margin-top: 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
}

@media (max-width: 850px) {
    .game-hero-grid {
        grid-template-columns: 1fr;
    }

    .game-summary-row {
        flex-direction: column;
    }
}

.game-matchup,
.game-team,
.team-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.team-tabs {
    padding: 18px 0;
}

.team-tabs a {
    padding: 10px 18px;
    color: var(--muted);
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.team-tabs a:hover {
    color: #ffffff;
    background: var(--panel-hover);
    border-color: var(--accent);
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(260px, 1fr)
    );
    gap: 20px;
}

.roster-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: var(--panel2);
    border: 1px solid transparent;
    border-radius: 18px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.roster-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-bright);
}

footer {
    padding: 28px 20px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.04));
}

.empty-state {
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

.home-dashboard-performance-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min-content;
    gap: 12px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (max-width: 1000px) {
    .home-dashboard-performance-list {
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
}

.home-star-card {
    display: flex;
    flex-direction: column;
    width: 160px;
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    align-items: center;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-star-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.36);
}

.star-headshot img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 14px rgba(0,0,0,0.28);
    margin-bottom: 6px;
}

.star-content .home-dashboard-performance-name {
    display: block;
    font-weight: 800;
    color: var(--text);
}

.home-dashboard-performance-value {
    font-size: 1.15rem;
    color: var(--accent);
    display: block;
    margin-top: 6px;
}

@media (max-width: 1000px) {
    .home-dashboard-performance-list {
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .home-star-card {
        width: 160px;
    }
}

/* Player IQ notices */

.player-iq-notice {
    margin: 12px 0 0;
    padding: 12px 16px;
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(14,165,233,0.12);
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

.player-iq-notice strong {
    color: var(--accent);
}

.two-way-note {
    margin-top: 6px;
    font-weight: 700;
    color: #cfeffd;
}

/* Search results */

.search-status {
    width: min(760px, 100%);
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: left;
}

.search-results {
    display: none;
    width: min(760px, 100%);
    margin: 16px auto 0;
    overflow: hidden;
    text-align: left;
    background: rgba(19, 28, 46, 0.98);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    backdrop-filter: blur(18px);
}

.search-results.is-visible {
    display: block;
    animation: search-results-enter 0.2s ease-out;
}

@keyframes search-results-enter {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-card {
    position: relative;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    outline: none;
    transition:
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.search-result-card:last-child {
    border-bottom: none;
}

.search-result-card:hover,
.search-result-card:focus,
.search-result-card.is-selected {
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(14, 165, 233, 0.11),
            rgba(37, 99, 235, 0.05)
        ),
        var(--panel-hover);
    box-shadow: inset 3px 0 0 var(--accent);
}

.search-result-card:active {
    transform: scale(0.995);
}

.search-result-image-wrapper {
    position: relative;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    border: 2px solid rgba(159, 179, 200, 0.25);
}

/* Players are circular */

.player-result-image {
    border-radius: 50%;
    box-shadow:
        0 0 0 3px rgba(14, 165, 233, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.24);
}

.player-result-image .search-result-image {
    width: 92%;
    height: 92%;
    object-fit: contain;
    object-position: center;
}
/* Teams remain rounded squares */

.team-result-image {
    border-radius: 15px;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.06),
        0 8px 18px rgba(0, 0, 0, 0.22);
}

.team-result-image .search-result-image {
    width: 43px;
    height: 43px;
    object-fit: contain;
    object-position: center;
}

.search-result-information {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.result-type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 999px;
}

.result-type-player {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.24);
}

.result-type-team {
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.28);
}

.search-result-name {
    overflow: hidden;
    margin: 0;
    color: var(--text);
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.result-detail {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-result-arrow {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.search-result-card:hover .search-result-arrow,
.search-result-card:focus .search-result-arrow,
.search-result-card.is-selected .search-result-arrow {
    color: #7dd3fc;
    transform: translateX(4px);
}

.search-message {
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.search-message.is-error {
    color: var(--danger);
}

.search-image-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--accent2);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.player-result-image .search-image-fallback {
    color: #0369a1;
    background:
        radial-gradient(
            circle at 35% 30%,
            #ffffff,
            #e0f2fe
        );
    border-radius: 50%;
}

.team-result-image .search-image-fallback {
    color: #1d4ed8;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #dbeafe
        );
    border-radius: 13px;
}

@media (max-width: 900px) {
    .site-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .player-hero,
    .team-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .navigation,
    .main-nav {
        justify-content: center;
    }

    .game-card {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding: 14px 4%;
    }

    .navigation,
    .main-nav {
        column-gap: 13px;
        row-gap: 9px;
    }

    .navigation a,
    .main-nav a {
        font-size: 0.82rem;
    }

    .hero {
        padding: 60px 5%;
    }

    .player-headshot-frame {
        width: min(168px, 60vw);
        border-radius: 20px;
    }

    .search-wrapper {
        flex-direction: column;
    }

    .search-wrapper input,
    .search-wrapper button {
        width: 100%;
        max-width: none;
    }

    .search-status,
    .search-results {
        width: 100%;
    }

    .search-result-card {
        grid-template-columns: 54px minmax(0, 1fr) 22px;
        gap: 12px;
        min-height: 78px;
        padding: 11px 13px;
    }

    .search-result-image-wrapper {
        width: 50px;
        height: 50px;
    }

    .team-result-image {
        border-radius: 13px;
    }

    .team-result-image .search-result-image {
        width: 37px;
        height: 37px;
    }

    .search-result-name {
        font-size: 0.96rem;
    }

    .result-detail {
        font-size: 0.8rem;
    }

    .result-type {
        padding: 3px 7px;
        font-size: 0.58rem;
    }

    .search-result-arrow {
        font-size: 1.15rem;
    }
}

/* =========================================================
   Player IQ
========================================================= */

/* Hot Players and Hot Teams */
.hot-players, .hot-teams { margin-top: 18px; }
.section-header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px }
.section-header .muted { color:var(--muted); font-size:0.95rem }
.hot-players-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:12px }
.hot-player-card { display:flex; gap:12px; align-items:center; padding:10px; background:var(--panel2); border-radius:12px; border:1px solid var(--border); transition: transform 0.12s ease }
.hot-player-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,0.45) }
.hot-player-headshot-frame {
    position: relative;
    width: 64px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 30%, rgba(248, 250, 252, 0.9), rgba(219, 234, 254, 0.7) 55%, rgba(14, 165, 233, 0.2));
}
.hot-player-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
}
.hot-player-headshot-frame .hot-player-headshot-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #334155;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding: 6px;
}
.hot-player-info { display:flex; flex-direction:column; min-width:0 }
.hot-player-name { font-weight:800; line-height:1.2 }
.hot-player-team { color:var(--muted); font-size:0.9rem }
.hot-player-opponent { color:var(--muted); font-size:0.85rem }
.hot-player-score { color:var(--accent); font-weight:800; font-size:0.9rem }
.hot-player-stats { display:flex; gap:8px; color:var(--muted); font-size:0.9rem; flex-wrap:wrap }
.hot-player-links { margin-top:4px; font-size:0.78rem; font-weight:800; color:#7dd3fc }
.hot-player-links a { color:#7dd3fc }

.hot-teams-list { display:flex; flex-direction:column; gap:8px }
.hot-team-row { display:flex; align-items:center; gap:12px; padding:10px; background:var(--panel2); border-radius:10px; border:1px solid var(--border); }
.hot-team-logo { width:44px; height:44px; object-fit:contain }
.hot-team-info strong { display:block }
.hot-team-meta { margin-left:auto; color:var(--accent); font-weight:800 }

@media (max-width: 1100px) {
    .hot-players-grid { grid-template-columns: repeat(3, 1fr) }
}
@media (max-width: 800px) {
    .hot-players-grid { grid-template-columns: repeat(2, 1fr) }
    .hot-player-card { padding:8px }
}
@media (max-width: 480px) {
    .hot-players-grid { grid-template-columns: 1fr }
}



.player-iq-section {
    position: relative;
    overflow: hidden;
    padding: 34px;
    background:
        radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.14), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.14), transparent 36%),
        rgba(19, 28, 46, 0.97);
    border: 1px solid var(--border-bright);
    border-radius: 24px;
    box-shadow: var(--shadow-large);
}

.player-iq-section::before {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--accent), #60a5fa, transparent);
}

.player-iq-heading {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.player-iq-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.player-iq-season {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    color: #c9d9e8;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(8, 17, 29, 0.52);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.player-iq-season::before {
    width: 8px;
    height: 8px;
    content: "";
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.78);
}

.player-iq-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(170px, 0.72fr) minmax(170px, 0.72fr) minmax(280px, 1.35fr);
    gap: 18px;
}

.player-iq-card {
    position: relative;
    min-width: 0;
    padding: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(33, 48, 77, 0.9), rgba(19, 28, 46, 0.96));
    border: 1px solid rgba(53, 80, 120, 0.72);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.player-iq-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.72);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.player-iq-label {
    margin: 0 0 13px;
    color: var(--accent);
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.player-iq-score-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.player-iq-score-card::after {
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 145px;
    height: 145px;
    content: "";
    pointer-events: none;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 50%;
}

.player-iq-grade,
.player-iq-score {
    position: relative;
    z-index: 1;
    display: block;
    color: #ffffff;
    font-size: clamp(4rem, 7vw, 5.6rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.075em;
    text-shadow: 0 0 28px rgba(14, 165, 233, 0.2);
}

.player-iq-score {
    background: linear-gradient(180deg, #ffffff, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.player-iq-tier {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 17px;
    padding: 6px 11px;
    color: #d7efff;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.26);
    border-radius: 999px;
}

.player-iq-role-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: center;
}

.player-iq-role-card h3,
.player-iq-summary-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.player-iq-role-card p,
.player-iq-summary-card > p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.7;
}

.player-iq-role-card strong,
.player-iq-summary-card strong {
    color: #dff5ff;
}

.player-iq-summary-card {
    grid-column: 1 / -1;
    padding: 28px;
    background:
        linear-gradient(115deg, rgba(37, 99, 235, 0.17), rgba(14, 165, 233, 0.08) 42%, rgba(19, 28, 46, 0.96)),
        var(--panel);
}

.player-iq-summary-card::before {
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 0;
    width: 4px;
    content: "";
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    border-radius: 0 999px 999px 0;
}

.player-iq-summary-card > p {
    max-width: 980px;
    font-size: 1.02rem;
}

.player-iq-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    margin-top: 22px;
    color: #7890a8;
    font-size: 0.76rem;
    font-weight: 700;
    border-top: 1px solid rgba(53, 80, 120, 0.42);
}

/* =========================================================
   Scout Report
========================================================= */

.scout-report-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.scout-report-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.scout-report-card > p:not(.player-iq-label),
.scout-report-versatility-layout p:not(.player-iq-label) {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.scout-report-card .scout-report-archetype {
    color: #dff5ff;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.scout-report-score {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 12px;
}

.scout-report-score strong {
    color: #ffffff;
    font-size: clamp(2.7rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.scout-report-score span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.scout-report-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.scout-report-list li {
    padding: 8px 12px;
    color: #dff5ff;
    font-size: 0.83rem;
    font-weight: 800;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 999px;
}

.scout-report-development-list li {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
}

.scout-report-development-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
}

.scout-report-development-list li {
    padding: 15px;
    text-align: left;
    border-radius: 14px;
}

.scout-report-development-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.scout-report-development-heading strong {
    color: #fef3c7;
    font-size: 0.92rem;
}

.scout-report-context-badge {
    padding: 4px 8px;
    color: #fef3c7;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
}

.scout-report-context-badge.is-relative {
    color: #dbeafe;
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.28);
}

.scout-report-development-why {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.55;
}

.scout-report-development-why span {
    color: #e8f4ff;
    font-weight: 800;
}

.scout-report-card .scout-report-empty {
    color: #7890a8;
}

.scout-report-versatility-card {
    grid-column: 1 / -1;
}

.scout-report-versatility-layout {
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
    gap: 24px;
    align-items: center;
}

.scout-report-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.scout-report-facts div {
    padding: 14px;
    background: rgba(8, 17, 29, 0.36);
    border: 1px solid rgba(53, 80, 120, 0.45);
    border-radius: 12px;
}

.scout-report-facts .scout-report-fact-wide {
    grid-column: 1 / -1;
}

.scout-report-facts dt {
    color: #7890a8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scout-report-facts dd {
    margin: 6px 0 0;
    color: #e8f4ff;
    font-weight: 700;
}

.scout-report-note {
    position: relative;
    z-index: 1;
    padding-top: 18px;
    margin: 22px 0 0;
    color: #7890a8;
    font-size: 0.78rem;
    line-height: 1.6;
    border-top: 1px solid rgba(53, 80, 120, 0.42);
}

/* Player stat ranking badges */

.stat-ranking-context {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.stat-help {
    max-width: 18rem;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.45;
    text-align: center;
}

.stat-ranking-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.stat-ranking-prefix {
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.stat-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    margin-top: 10px;
    color: #bae6fd;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: 999px;
}

.stat-ranking-row .stat-rank {
    max-width: 100%;
    margin-top: 0;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

.stat-rank.stat-percentile {
    color: #cbd5e1;
    background: rgba(159, 179, 200, 0.08);
    border-color: rgba(159, 179, 200, 0.2);
}

.stat-rank.is-estimated {
    color: #cbd5e1;
    background: rgba(159, 179, 200, 0.06);
    border-color: rgba(159, 179, 200, 0.3);
    border-style: dashed;
}

.stat-rank.is-top-ten {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

.stat-rank.is-league-leader {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(14, 165, 233, 0.9));
    border-color: rgba(125, 211, 252, 0.55);
    box-shadow: 0 7px 20px rgba(14, 165, 233, 0.15);
}

@media (max-width: 980px) {
    .player-iq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-iq-role-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .player-iq-section {
        padding: 24px;
        border-radius: 20px;
    }

    .player-iq-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-iq-grid {
        grid-template-columns: 1fr;
    }

    .player-iq-role-card,
    .player-iq-summary-card {
        grid-column: auto;
    }

    .player-iq-score-card,
    .player-iq-role-card {
        min-height: auto;
    }

    .player-iq-grade,
    .player-iq-score {
        font-size: 4.25rem;
    }

    .scout-report-grid,
    .scout-report-versatility-layout,
    .scout-report-facts {
        grid-template-columns: 1fr;
    }

    .scout-report-versatility-card,
    .scout-report-facts .scout-report-fact-wide {
        grid-column: auto;
    }
}

/* =========================================================
   Player Career Hub
========================================================= */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
}

.career-hub-section {
    min-width: 0;
}

.career-hub-heading .player-iq-season {
    max-width: 340px;
    line-height: 1.35;
    text-align: right;
}

.career-hub-load-status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 86px;
    padding: 20px;
    color: #c9d9e8;
    background: rgba(8, 17, 29, 0.38);
    border: 1px solid rgba(53, 80, 120, 0.5);
    border-radius: 16px;
}

.career-hub-load-status.is-complete {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.career-hub-load-status.is-error {
    min-height: 0;
    padding: 10px 14px;
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.career-hub-loading-mark {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 2px solid rgba(125, 211, 252, 0.25);
    border-top-color: #7dd3fc;
    border-radius: 50%;
    animation: career-hub-spin 0.8s linear infinite;
}

@keyframes career-hub-spin {
    to {
        transform: rotate(360deg);
    }
}

.career-hub-state {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    margin-bottom: 18px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.09);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 14px;
}

.career-hub-state.is-partial,
.career-hub-state.is-error {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.career-hub-state.is-empty,
.career-hub-state.is-unavailable {
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.08);
    border-color: rgba(148, 163, 184, 0.2);
}

.career-hub-state strong,
.career-category-state strong {
    display: block;
    color: inherit;
    font-size: 0.9rem;
}

.career-hub-state p,
.career-category-state p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

.career-hub-retry {
    flex: 0 0 auto;
    padding: 9px 13px;
    color: #e0f2fe;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.35);
    border-radius: 999px;
}

.career-hub-retry:hover {
    background: rgba(14, 165, 233, 0.2);
}

.career-hub-retry:focus-visible,
.career-trend-table-wrap:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 3px;
}

.career-hub-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
}

.career-hub-panel {
    min-width: 0;
    padding: 24px;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        rgba(33, 48, 77, 0.88),
        rgba(19, 28, 46, 0.96)
    );
    border: 1px solid rgba(53, 80, 120, 0.72);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.career-hub-panel--wide {
    grid-column: 1 / -1;
}

.career-hub-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.career-hub-panel-heading h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.career-source-badge,
.career-tracking-label {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 9px;
    color: #bae6fd;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    background: rgba(14, 165, 233, 0.11);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 999px;
}

.career-discipline-group + .career-discipline-group,
.career-trend-group + .career-trend-group {
    padding-top: 24px;
    margin-top: 26px;
    border-top: 1px solid rgba(53, 80, 120, 0.48);
}

.career-discipline-group h4,
.career-trend-group h4,
.career-award-year h4 {
    margin: 0 0 14px;
    color: #dff5ff;
    font-size: 1rem;
}

.career-total-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 190px), 1fr)
    );
    gap: 13px;
}

.career-total-card {
    min-width: 0;
    padding: 16px;
    background: rgba(8, 17, 29, 0.42);
    border: 1px solid rgba(53, 80, 120, 0.48);
    border-radius: 14px;
}

.career-total-label {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.career-total-card > strong {
    display: block;
    margin-top: 7px;
    color: #ffffff;
    font-size: 1.65rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.career-thresholds-reached {
    margin-top: 14px;
}

.career-thresholds-reached > span {
    display: block;
    color: #7890a8;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.career-thresholds-reached > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.career-thresholds-reached > div span {
    padding: 3px 6px;
    color: #dbeafe;
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(37, 99, 235, 0.11);
    border-radius: 999px;
}

.career-progress-copy {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 0.67rem;
    line-height: 1.4;
}

.career-progress-copy span:first-child {
    display: flex;
    flex-direction: column;
}

.career-progress-copy strong {
    color: #dff5ff;
    font-size: 0.78rem;
}

.career-progress-copy span:last-child {
    text-align: right;
}

.career-total-card progress {
    width: 100%;
    height: 7px;
    margin-top: 7px;
    overflow: hidden;
    color: var(--accent);
    background: rgba(8, 17, 29, 0.75);
    border: 0;
    border-radius: 999px;
    accent-color: var(--accent);
}

.career-total-card progress::-webkit-progress-bar {
    background: rgba(8, 17, 29, 0.75);
    border-radius: 999px;
}

.career-total-card progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    border-radius: 999px;
}

.career-progress-equivalent {
    display: block;
    margin-top: 3px;
    color: #7890a8;
    font-size: 0.62rem;
}

.career-tracking-label {
    margin-top: 13px;
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.08);
    border-color: rgba(148, 163, 184, 0.2);
}

.career-highs-block {
    margin-top: 22px;
}

.career-highs-block h5 {
    margin: 0 0 11px;
    color: #c9d9e8;
    font-size: 0.8rem;
}

.career-highs-grid,
.career-contract-fields {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 160px), 1fr)
    );
    gap: 10px;
    margin: 0;
}

.career-highs-grid > div,
.career-contract-fields > div {
    min-width: 0;
    padding: 12px;
    background: rgba(8, 17, 29, 0.32);
    border: 1px solid rgba(53, 80, 120, 0.42);
    border-radius: 11px;
}

.career-highs-grid dt,
.career-contract-fields dt {
    color: #7890a8;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.career-highs-grid dd,
.career-contract-fields dd {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 6px 0 0;
    color: #dff5ff;
    overflow-wrap: anywhere;
}

.career-highs-grid dd span {
    color: var(--muted);
    font-size: 0.68rem;
}

.career-hub-inline-note,
.career-hub-source-note {
    color: #7890a8;
    font-size: 0.72rem;
    line-height: 1.6;
}

.career-hub-inline-note {
    padding-top: 15px;
    margin: 18px 0 0;
    border-top: 1px solid rgba(53, 80, 120, 0.4);
}

.career-hub-inline-note.is-caution {
    color: #fcd34d;
}

.career-hub-source-note {
    position: relative;
    z-index: 1;
    margin: 18px 2px 0;
}

.career-award-years {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.career-award-year {
    min-width: 0;
}

.career-award-year ul,
.career-event-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.career-award-year li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid rgba(53, 80, 120, 0.38);
}

.career-award-year li:first-child {
    border-top: 0;
}

.career-award-year li > div {
    min-width: 0;
}

.career-award-year li strong {
    display: block;
    color: #e8f4ff;
    font-size: 0.81rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.career-award-year li > div span,
.career-award-dates {
    color: var(--muted);
    font-size: 0.67rem;
}

.career-award-dates {
    flex: 0 1 185px;
    text-align: right;
    overflow-wrap: anywhere;
}

.career-category-state {
    padding: 18px;
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 13px;
}

.career-category-state.is-unavailable {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
}

.career-category-state > span {
    display: block;
    margin-top: 10px;
    color: #7890a8;
    font-size: 0.66rem;
}

.career-trend-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(53, 80, 120, 0.48);
    border-radius: 13px;
}

.career-trend-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.74rem;
    font-variant-numeric: tabular-nums;
}

.career-trend-table th,
.career-trend-table td {
    padding: 11px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(53, 80, 120, 0.34);
}

.career-trend-table thead th {
    color: #7890a8;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(8, 17, 29, 0.5);
}

.career-trend-table tbody th {
    color: #e8f4ff;
}

.career-trend-table tbody td {
    color: #c9d9e8;
}

.career-trend-table tbody tr:last-child th,
.career-trend-table tbody tr:last-child td {
    border-bottom: 0;
}

.career-season-statuses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.career-season-statuses span {
    padding: 3px 6px;
    color: #bae6fd;
    font-size: 0.57rem;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 999px;
}

.career-season-statuses .is-small-sample {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
}

.career-season-statuses .is-status-unavailable {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
}

.career-event-list {
    display: grid;
    gap: 12px;
}

.career-event-list li {
    display: grid;
    grid-template-columns: minmax(105px, 0.24fr) minmax(0, 1fr);
    gap: 18px;
    padding: 15px;
    background: rgba(8, 17, 29, 0.34);
    border: 1px solid rgba(53, 80, 120, 0.42);
    border-radius: 13px;
}

.career-event-list time {
    color: #7dd3fc;
    font-size: 0.69rem;
    font-weight: 800;
}

.career-event-list li > div {
    min-width: 0;
}

.career-event-list strong {
    color: #e8f4ff;
    overflow-wrap: anywhere;
}

.career-event-list p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.career-event-list li > div > span {
    display: inline-flex;
    margin-top: 8px;
    color: #bae6fd;
    font-size: 0.62rem;
    font-weight: 800;
}

@media (max-width: 700px) {
    .career-hub-heading .player-iq-season {
        text-align: left;
    }

    .career-hub-state,
    .career-hub-panel-heading,
    .career-award-year li {
        align-items: flex-start;
        flex-direction: column;
    }

    .career-hub-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .career-hub-panel,
    .career-hub-panel--wide {
        grid-column: auto;
        padding: 18px;
    }

    .career-award-dates {
        flex-basis: auto;
        text-align: left;
    }

    .career-trend-table-wrap {
        overflow: visible;
        border: 0;
    }

    .career-trend-table {
        min-width: 0;
    }

    .career-trend-table,
    .career-trend-table tbody {
        display: block;
        width: 100%;
    }

    .career-trend-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        white-space: nowrap;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
    }

    .career-trend-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        margin-bottom: 12px;
        overflow: hidden;
        background: rgba(8, 17, 29, 0.34);
        border: 1px solid rgba(53, 80, 120, 0.45);
        border-radius: 12px;
    }

    .career-trend-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .career-trend-table tbody th,
    .career-trend-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        min-width: 0;
        padding: 9px;
        text-align: right;
        border-right: 1px solid rgba(53, 80, 120, 0.3);
        border-bottom: 1px solid rgba(53, 80, 120, 0.3);
    }

    .career-trend-table tbody th {
        grid-column: 1 / -1;
    }

    .career-trend-table tbody th::before,
    .career-trend-table tbody td::before {
        color: #7890a8;
        font-size: 0.58rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-align: left;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .career-season-statuses {
        justify-content: flex-end;
    }

    .career-event-list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .career-hub-loading-mark {
        animation: none;
    }
}

/* Homepage live dashboard and value proposition */

.home-hero {
    min-height: 62vh;
}

.home-dashboard-section,
.home-why-section,
#scores,
#players,
#leaders {
    scroll-margin-top: 110px;
}

.home-dashboard-section {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3vw, 38px);
    background:
        radial-gradient(
            circle at 92% 0,
            rgba(14, 165, 233, 0.16),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            rgba(19, 28, 46, 0.98),
            rgba(10, 20, 35, 0.98)
        );
}

.home-dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
}

.home-dashboard-heading > div:first-child {
    min-width: 0;
}

.home-dashboard-heading h2,
.home-why-section h2 {
    margin: 7px 0 0;
    font-size: clamp(2rem, 3.4vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.home-dashboard-description,
.home-why-introduction {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.home-dashboard-meta {
    flex: 0 0 min(285px, 34%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: right;
}

.home-dashboard-meta strong {
    color: var(--text);
    font-size: 0.94rem;
}

.home-dashboard-source {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 10px;
    color: #bae6fd;
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 999px;
}

.home-dashboard-status {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 15px;
    margin-top: 24px;
    color: #dbeafe;
    font-size: 0.82rem;
    background: rgba(37, 99, 235, 0.09);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 12px;
}

.home-dashboard-status strong {
    color: #7dd3fc;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-dashboard-status.is-unavailable,
.home-dashboard-status.is-partial {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.24);
}

.home-dashboard-status.is-unavailable strong,
.home-dashboard-status.is-partial strong {
    color: #fbbf24;
}

.home-dashboard-accuracy-note {
    margin: 10px 2px 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.home-dashboard-group {
    margin-top: 34px;
}

.home-dashboard-group-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 15px;
}

.home-dashboard-group-heading h3 {
    margin: 3px 0 0;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.home-dashboard-group-heading > p {
    max-width: 410px;
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: right;
}

.home-dashboard-group-label,
.home-why-label {
    margin: 0;
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-dashboard-grid {
    display: grid;
    gap: 14px;
}

.home-dashboard-grid--leaders {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-dashboard-grid--rare {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-dashboard-card {
    min-width: 0;
    overflow: hidden;
    background: rgba(26, 38, 64, 0.76);
    border: 1px solid rgba(53, 80, 120, 0.62);
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.home-dashboard-card-heading {
    min-height: 82px;
    padding: 15px 16px 13px;
    background:
        linear-gradient(
            135deg,
            rgba(14, 165, 233, 0.1),
            transparent
        );
    border-bottom: 1px solid rgba(53, 80, 120, 0.52);
}

.home-dashboard-card-heading > span {
    display: block;
    color: #7dd3fc;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-dashboard-card-heading h4 {
    margin: 7px 0 0;
    font-size: 0.96rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.home-dashboard-leader-list,
.home-dashboard-performance-list,
.home-why-grid {
    padding: 0;
    margin: 0;
    list-style: none;
}

.home-dashboard-leader-list li,
.home-dashboard-performance-list li {
    border-bottom: 1px solid rgba(53, 80, 120, 0.42);
}

.home-dashboard-leader-list li:last-child,
.home-dashboard-performance-list li:last-child {
    border-bottom: 0;
}

.home-dashboard-leader-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) max-content;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 9px 13px;
    outline: none;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.home-dashboard-leader-row:hover,
.home-dashboard-leader-row:focus-visible,
a.home-dashboard-performance-row:hover,
a.home-dashboard-performance-row:focus-visible {
    background: rgba(14, 165, 233, 0.1);
    box-shadow: inset 3px 0 0 var(--accent);
}

.home-dashboard-leader-row:focus-visible,
a.home-dashboard-performance-row:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -3px;
}

.home-dashboard-rank {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #bae6fd;
    font-size: 0.68rem;
    font-weight: 900;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: 50%;
}

.home-dashboard-player {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-dashboard-player strong {
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.home-dashboard-player > span {
    color: var(--muted);
    font-size: 0.68rem;
}

.home-dashboard-value {
    color: #ffffff;
    font-size: 0.77rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.home-dashboard-more {
    padding: 9px 13px;
    margin: 0;
    color: var(--muted);
    font-size: 0.7rem;
    text-align: center;
    border-top: 1px solid rgba(53, 80, 120, 0.42);
}

.home-dashboard-card-empty {
    display: grid;
    place-items: center;
    min-height: 116px;
    padding: 18px;
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.home-dashboard-performance-row {
    min-height: 102px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 14px 15px;
    outline: none;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.home-dashboard-performance-name {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.home-dashboard-performance-value {
    color: #7dd3fc;
    font-size: 0.79rem;
    font-variant-numeric: tabular-nums;
}

.home-dashboard-performance-detail {
    color: var(--muted);
    font-size: 0.69rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.home-why-section {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 3.5vw, 46px);
    background:
        radial-gradient(
            circle at 8% 100%,
            rgba(37, 99, 235, 0.16),
            transparent 38%
        ),
        rgba(19, 28, 46, 0.96);
}

.home-why-introduction {
    max-width: 760px;
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.home-why-card {
    position: relative;
    min-width: 0;
    min-height: 245px;
    overflow: hidden;
    padding: 25px 22px;
    background:
        linear-gradient(
            150deg,
            rgba(26, 38, 64, 0.96),
            rgba(11, 22, 38, 0.96)
        );
    border: 1px solid rgba(53, 80, 120, 0.66);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.home-why-card::after {
    position: absolute;
    right: -36px;
    bottom: -58px;
    width: 132px;
    height: 132px;
    content: "";
    background: rgba(14, 165, 233, 0.07);
    border: 1px solid rgba(14, 165, 233, 0.13);
    border-radius: 50%;
}

.home-why-number {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 36px;
    color: rgba(125, 211, 252, 0.34);
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
}

.home-why-card h3 {
    position: relative;
    z-index: 1;
    margin: 7px 0 10px;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.home-why-card > p:last-child {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.62;
}

@media (max-width: 1200px) {
    .home-dashboard-grid--rare {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home-hero {
        min-height: 56vh;
    }

    .home-dashboard-section,
    .home-why-section,
    #scores,
    #players,
    #leaders {
        scroll-margin-top: 150px;
    }

    .home-dashboard-heading,
    .home-dashboard-group-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-dashboard-meta {
        flex-basis: auto;
        align-items: flex-start;
        text-align: left;
    }

    .home-dashboard-group-heading > p {
        text-align: left;
    }

    .home-dashboard-grid--leaders,
    .home-dashboard-grid--rare {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-dashboard-section,
    .home-why-section,
    #scores,
    #players,
    #leaders {
        scroll-margin-top: 190px;
    }

    .home-dashboard-status {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .home-dashboard-grid--leaders,
    .home-dashboard-grid--rare,
    .home-why-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-dashboard-leader-row {
        grid-template-columns: 32px minmax(0, 1fr) max-content;
        padding-right: 11px;
        padding-left: 11px;
    }

    .home-why-card {
        min-height: 225px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-dashboard-leader-row,
    .home-dashboard-performance-row {
        transition: none;
    }
}

@media (forced-colors: active) {
    .home-dashboard-leader-row:focus-visible,
    a.home-dashboard-performance-row:focus-visible {
        outline: 2px solid Highlight;
    }
}

/* =========================================================
   Homepage: Players to Watch
========================================================= */

.home-watch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.home-watch-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background:
        linear-gradient(
            160deg,
            rgba(33, 48, 77, 0.94),
            rgba(19, 28, 46, 0.98)
        );
    border: 1px solid rgba(53, 80, 120, 0.72);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.home-watch-card:hover,
.home-watch-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.78);
    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(14, 165, 233, 0.12);
}

.home-watch-card:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 3px;
}

.home-watch-visual {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 28%,
            rgba(248, 250, 252, 0.98),
            rgba(219, 234, 254, 0.94) 58%,
            rgba(14, 165, 233, 0.23)
        );
    border-bottom: 1px solid rgba(53, 80, 120, 0.55);
}

.home-watch-headshot {
    width: 100%;
    height: 205px;
    padding: 8px 8px 0;
    object-fit: contain;
    object-position: 50% 100%;
}

.home-watch-category {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    padding: 6px 9px;
    color: #e0f2fe;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: rgba(8, 17, 29, 0.78);
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.home-watch-content {
    padding: 18px;
}

.home-watch-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.home-watch-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: #bae6fd;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-watch-stat strong {
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.home-watch-arrow {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 900;
    transition: transform 0.2s ease;
}

.home-watch-card:hover .home-watch-arrow,
.home-watch-card:focus-visible .home-watch-arrow {
    transform: translateX(4px);
}

.home-watch-content h3 {
    margin: 14px 0 4px;
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.home-watch-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.home-watch-content small {
    display: block;
    margin-top: 9px;
    color: #7890a8;
    font-size: 0.72rem;
    line-height: 1.35;
}

.home-watch-link {
    display: inline-flex;
    margin-top: 15px;
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .home-watch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-watch-grid {
        grid-template-columns: 1fr;
    }

    .home-watch-visual {
        min-height: 175px;
    }

    .home-watch-headshot {
        height: 190px;
    }
}

