/* BallTalk model-room visual system */

:root {
    --bt-bg: #09090d;
    --bt-surface: #101016;
    --bt-surface-raised: #15151d;
    --bt-line: #2a2935;
    --bt-line-soft: #1d1c25;
    --bt-text: #f2f0f6;
    --bt-muted: #85818f;
    --bt-dim: #5f5b69;
    --bt-indigo: #667eea;
    --bt-violet: #8a5db8;
    --bt-lilac: #b6b8ff;
    --bt-green: #63cf90;
    --bt-gold: #cbb472;
    --bt-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --bt-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body {
    background:
        linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px),
        radial-gradient(circle at 76% -20%, rgba(102, 126, 234, .13), transparent 38%),
        var(--bt-bg);
    background-size: 44px 44px, 44px 44px, auto, auto;
    color: var(--bt-text);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0 49.94%, rgba(255,255,255,.018) 50%, transparent 50.06%);
}

button,
input {
    font-family: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--bt-lilac);
    outline-offset: 3px;
}

.app {
    padding-top: 0;
}

/* Masthead */
.header {
    min-height: 92px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--bt-line);
}

.header::after {
    content: '';
    position: absolute;
    top: 91px;
    left: 0;
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, var(--bt-indigo), var(--bt-violet));
}

.header {
    position: relative;
}

.header-brand {
    gap: 36px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-ball {
    position: relative;
    width: 33px;
    height: 33px;
    overflow: hidden;
    border: 2px solid #aeb2ff;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102,126,234,.32), rgba(118,75,162,.1));
    box-shadow: 0 0 22px rgba(102,126,234,.16);
}

.brand-ball::before,
.brand-ball::after {
    content: '';
    position: absolute;
    inset: -4px 13px;
    border: 1px solid rgba(205,207,255,.7);
    border-radius: 50%;
    transform: rotate(28deg);
}

.brand-ball::after {
    inset: 14px -4px;
    transform: rotate(-16deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy > span {
    color: var(--bt-muted);
    font-family: var(--bt-mono);
    font-size: 8px;
    letter-spacing: .16em;
}

.header .brand-copy h1 {
    margin-top: -2px;
    background: linear-gradient(110deg, #fff 10%, #b6b8ff 58%, #8d63ba);
    background-clip: text;
    font-family: var(--bt-display);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: .95;
    text-transform: uppercase;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.primary-nav {
    gap: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.nav-view-btn {
    position: relative;
    padding: 34px 0 30px;
    border-radius: 0;
    color: var(--bt-muted);
    font-family: var(--bt-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.nav-view-btn:hover {
    color: #fff;
    background: transparent;
}

.nav-view-btn.active {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.nav-view-btn.active::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--bt-indigo);
}

.header-actions {
    gap: 14px;
}

.data-freshness {
    color: var(--bt-dim);
    font-family: var(--bt-mono);
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.refresh-btn {
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #373544;
    border-radius: 2px;
    background: #111118;
    color: #d7d6de;
    font-family: var(--bt-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.refresh-btn:hover {
    border-color: #676bba;
    background: #171721;
    box-shadow: none;
    transform: none;
}

.refresh-icon {
    color: var(--bt-lilac);
}

/* Player index */
.search-container {
    margin-bottom: 18px;
}

.search-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 9px;
}

.search-heading > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.search-heading span {
    color: var(--bt-indigo);
    font-family: var(--bt-mono);
    font-size: 8px;
    letter-spacing: .13em;
}

.search-heading strong {
    font-family: var(--bt-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.search-heading .player-index-count {
    color: var(--bt-dim);
    letter-spacing: .05em;
}

.search-wrapper {
    border-left: 3px solid var(--bt-indigo);
}

.search-glyph {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    color: var(--bt-lilac);
    font-family: var(--bt-mono);
    font-size: 22px;
    transform: translateY(-55%);
}

#playerSearch {
    height: 54px;
    padding: 14px 18px 14px 47px;
    border: 1px solid var(--bt-line);
    border-left: 0;
    border-radius: 0;
    background: rgba(16,16,22,.94);
    font-family: var(--bt-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .01em;
}

#playerSearch:focus {
    border-color: #5e6089;
    box-shadow: inset 0 -2px 0 var(--bt-indigo);
}

#playerSearch::placeholder {
    color: #5f5c69;
}

.search-results {
    top: calc(100% + 1px);
    left: -3px;
    border: 1px solid #383642;
    border-top: 0;
    border-left: 3px solid var(--bt-indigo);
    border-radius: 0;
    background: #111117;
    box-shadow: 0 18px 45px rgba(0,0,0,.42);
}

.search-result-item {
    min-height: 46px;
    padding: 10px 17px;
    border-bottom-color: var(--bt-line-soft);
}

.search-result-item:hover {
    background: #1a1923;
}

.result-name {
    font-family: var(--bt-display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.result-team {
    font-family: var(--bt-mono);
    font-size: 9px;
}

/* Player dossier */
.player-card {
    border: 1px solid var(--bt-line);
    border-radius: 2px;
    background: var(--bt-surface);
}

.player-header {
    min-height: 138px;
    padding: 28px 32px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.player-header::before {
    opacity: .24;
}

.player-header::after {
    content: '';
    position: absolute;
    top: -70px;
    right: 80px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow: inset 0 0 0 42px rgba(255,255,255,.018);
}

.player-file-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,.56);
    font-family: var(--bt-mono);
    font-size: 8px;
    letter-spacing: .15em;
}

.player-info h2 {
    margin-bottom: 4px;
    font-family: var(--bt-display);
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: .95;
    text-transform: uppercase;
}

.player-info p {
    color: rgba(255,255,255,.65);
    font-family: var(--bt-mono);
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.player-number {
    font-family: var(--bt-display);
    font-size: 88px;
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: .8;
    opacity: .25;
}

.stats-toggle {
    min-width: 155px;
    padding: 12px 0;
    border-right-color: var(--bt-line);
    background: #0b0b10;
}

.toggle-btn {
    position: relative;
    padding: 12px 19px;
    border-left-width: 2px;
    color: #686572;
    font-family: var(--bt-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.toggle-btn:hover {
    color: #d1cfda;
    background: #12121a;
}

.toggle-btn.active {
    border-left-color: var(--bt-indigo);
    background: linear-gradient(90deg, rgba(102,126,234,.14), transparent);
}

.toggle-btn.active::after {
    content: '›';
    position: absolute;
    right: 15px;
    color: var(--bt-lilac);
}

.stats-section {
    padding: 26px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    margin-bottom: 9px;
    color: #6f6b79;
    font-family: var(--bt-mono);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: .12em;
}

.section-label::after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--bt-line-soft);
}

.stats-grid {
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--bt-line-soft);
    background: var(--bt-line-soft);
}

.stats-grid + .stats-grid {
    margin-top: 1px;
}

.stat-box,
.stat-box.highlight,
.stat-box.prediction,
.stat-box.prediction.highlight {
    min-height: 76px;
    justify-content: center;
    padding: 13px 8px;
    border: 0;
    border-radius: 0;
    background: #14141a;
}

.stat-box:hover {
    background: #181820;
}

.stat-box.highlight {
    background: linear-gradient(145deg, rgba(102,126,234,.18), #171621);
    box-shadow: inset 0 -2px 0 rgba(124,130,255,.5);
}

.stat-value {
    font-family: var(--bt-mono);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.045em;
}

.stat-label {
    color: #777381;
    font-family: var(--bt-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.predictions-section {
    border-top: 1px solid #31303a;
}

.prediction-header {
    padding: 11px 0;
    border: 0;
    border-top: 2px solid var(--bt-green);
    border-bottom: 1px solid rgba(99,207,144,.22);
    border-radius: 0;
    background: transparent;
}

.prediction-title {
    display: flex;
    flex-direction: column;
    color: #e8f6ed;
}

.prediction-title small {
    color: var(--bt-green);
    font-family: var(--bt-mono);
    font-size: 7px;
    letter-spacing: .14em;
}

.prediction-title strong {
    font-family: var(--bt-display);
    font-size: 17px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.prediction-matchup {
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--bt-mono);
    font-size: 10px;
}

.prediction-label {
    color: #7fbb94 !important;
}

.stat-box.prediction,
.stat-box.prediction.highlight {
    background: #111915;
}

.stat-box.prediction.highlight {
    box-shadow: inset 0 -2px 0 rgba(99,207,144,.5);
}

.prediction-footer,
.source-player,
.source-game,
.record-item,
.onoff-box,
.starter-bench-info,
.onoff-stats-table,
.comparison-header,
.comparison-rows,
.similar-player-card,
.category-score {
    border-radius: 2px;
}

.compare-title {
    gap: 10px;
    font-family: var(--bt-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.compare-icon {
    min-width: 42px;
    padding: 3px 5px;
    border: 1px solid #444151;
    color: var(--bt-lilac);
    font-family: var(--bt-mono);
    font-size: 7px;
    letter-spacing: .08em;
    text-align: center;
}

.custom-search {
    border: 1px solid var(--bt-line);
    border-radius: 0;
    background: #131319;
    font-family: var(--bt-display);
}

.select-dropdown {
    border: 1px solid #363440;
    border-top: 0;
    border-radius: 0;
}

.similar-player-card {
    border-left: 2px solid #33323d;
    background: #141419;
}

.similar-player-card:hover {
    border-color: var(--bt-indigo);
    background: #191822;
    transform: translateX(2px);
}

.similar-rank,
.similar-rank.top-3 {
    width: 30px;
    height: 30px;
    border: 1px solid #555268;
    border-radius: 2px;
    background: transparent;
    color: #b9b7c2;
    font-family: var(--bt-mono);
    font-size: 10px;
}

.similar-rank.top-3 {
    border-color: #7872c9;
    color: var(--bt-lilac);
}

/* Predictor becomes a model board, not a dashboard */
.season-predictor {
    gap: 14px;
}

.season-hero {
    min-height: 230px;
    align-items: center;
    padding: 38px 42px;
    border: 1px solid #343241;
    border-left: 4px solid var(--bt-indigo);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
    background:
        linear-gradient(90deg, rgba(102,126,234,.16), transparent 33%),
        linear-gradient(135deg, #171622, #0f0f15 70%);
}

.season-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 7%;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(184,186,255,.1);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: inset 0 0 0 44px rgba(255,255,255,.012);
}

.season-hero::after {
    right: 7%;
    bottom: auto;
    width: 250px;
    height: 1px;
    border: 0;
    border-radius: 0;
    background: rgba(184,186,255,.09);
}

.season-board-index {
    position: absolute;
    top: 16px;
    left: 18px;
    color: #6c6878;
    font-family: var(--bt-mono);
    font-size: 7px;
    letter-spacing: .14em;
}

.season-eyebrow {
    margin-bottom: 11px;
    font-family: var(--bt-mono);
    font-size: 8px;
}

.season-hero h2 {
    max-width: 600px;
    font-family: var(--bt-display);
    font-size: clamp(42px, 7vw, 74px);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .83;
    text-transform: uppercase;
}

.season-hero p {
    max-width: 610px;
    margin-top: 14px;
    color: #96919f;
    font-size: 12px;
}

.season-hero-badge {
    min-width: 155px;
    padding: 15px 17px;
    border: 0;
    border-top: 2px solid var(--bt-lilac);
    border-radius: 0;
    background: rgba(9,9,14,.72);
    font-family: var(--bt-mono);
}

.season-hero-badge strong {
    font-family: var(--bt-display);
    font-size: 30px;
    font-weight: 800;
}

.season-hero-badge span {
    font-size: 8px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.model-strip {
    position: relative;
    grid-template-columns: 118px 118px 118px 1fr;
    padding-left: 98px;
    border-color: var(--bt-line);
    border-radius: 0;
    background: #0e0e13;
}

.model-strip::before {
    content: 'MODEL INPUTS';
    position: absolute;
    top: 50%;
    left: 17px;
    color: #777381;
    font-family: var(--bt-mono);
    font-size: 7px;
    letter-spacing: .14em;
    transform: translateY(-50%);
}

.model-strip-item,
.model-strip-note {
    min-height: 67px;
    padding: 13px 16px;
    border-right-color: var(--bt-line);
}

.model-strip-item span {
    font-family: var(--bt-mono);
    font-size: 17px;
}

.model-strip-item small,
.model-strip-note span {
    font-family: var(--bt-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.model-strip-note {
    border-left: 2px solid rgba(99,207,144,.45);
    background: #101612;
}

.model-strip-note strong {
    font-family: var(--bt-mono);
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.predictor-toolbar {
    padding: 12px 0;
    border-bottom: 1px solid var(--bt-line-soft);
}

.predictor-view-toggle {
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.predictor-view-btn,
.predictor-btn {
    border-radius: 1px;
    font-family: var(--bt-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.predictor-view-btn {
    padding: 9px 12px;
    border-bottom: 1px solid #363442;
}

.predictor-view-btn.active {
    border-bottom: 2px solid var(--bt-indigo);
    background: rgba(102,126,234,.08);
}

.predictor-btn.primary {
    background: var(--bt-indigo);
}

.predictor-btn.secondary,
.predictor-btn.ghost {
    border-color: #393745;
    background: #111118;
}

.scenario-banner {
    position: relative;
    min-height: 34px;
    padding: 8px 12px 8px 78px;
    border: 1px solid var(--bt-line-soft);
    border-radius: 0;
    background: #0d0d12;
    font-family: var(--bt-mono);
    font-size: 8px;
    letter-spacing: .025em;
}

.scenario-banner::before {
    content: 'STATUS /';
    position: absolute;
    left: 12px;
    color: var(--bt-lilac);
    letter-spacing: .09em;
}

.scenario-dot {
    display: none;
}

.standings-legend {
    font-family: var(--bt-mono);
    font-size: 8px;
}

.conference-grid {
    gap: 10px;
}

.conference-card,
.team-context-card,
.bracket-section,
.finals-card {
    border-color: var(--bt-line);
    border-radius: 1px;
    background: var(--bt-surface);
}

.conference-heading {
    position: relative;
    min-height: 64px;
    padding: 13px 16px 13px 19px;
    border-bottom-color: var(--bt-line);
    background: linear-gradient(90deg, #15141d, #0e0e13);
}

.conference-heading::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--bt-indigo);
}

.conference-heading span {
    font-family: var(--bt-mono);
    font-size: 7px;
}

.conference-heading strong {
    font-family: var(--bt-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.conference-tag {
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    font-family: var(--bt-display) !important;
    font-size: 22px !important;
    font-weight: 900;
    opacity: .72;
}

.standings-table th {
    color: #615e6b;
    font-family: var(--bt-mono);
    font-size: 7px;
}

.standings-row {
    border-top-color: var(--bt-line-soft);
}

.standings-row:hover,
.standings-row.selected {
    background: #181720;
}

.standings-row.selected {
    box-shadow: inset 2px 0 0 var(--bt-lilac);
}

.standings-row td {
    height: 50px;
    font-family: var(--bt-mono);
    font-size: 9px;
}

.seed-number {
    font-size: 10px;
}

.team-mark,
.bracket-team-code {
    border-radius: 1px;
}

.team-context-button strong {
    font-family: var(--bt-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.team-context-button small {
    font-family: var(--bt-mono);
    font-size: 7px;
}

.projection-cell strong {
    font-family: var(--bt-mono);
}

.odds-pill {
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--bt-lilac);
    font-family: var(--bt-mono);
    font-size: 9px;
}

.team-context-heading {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(102,126,234,.1), transparent 55%);
}

.team-context-logo {
    border-radius: 1px;
    font-family: var(--bt-mono);
}

.team-context-heading h3 {
    font-family: var(--bt-display);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
}

.team-context-heading > div:nth-child(2) span,
.team-context-projection span {
    font-family: var(--bt-mono);
    font-size: 7px;
    letter-spacing: .06em;
}

.team-context-projection strong {
    font-family: var(--bt-mono);
}

.factor-panel h4,
.news-panel h4 {
    font-family: var(--bt-display);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.factor-metrics > div {
    border-radius: 0;
    background: #131319;
}

.factor-metrics span,
.factor-row,
.team-news-item span,
.news-panel-heading span {
    font-family: var(--bt-mono);
}

.team-news-item strong {
    font-size: 11px;
}

.playoff-summary {
    gap: 1px;
    border: 1px solid var(--bt-line);
    background: var(--bt-line);
}

.playoff-summary > div {
    border: 0;
    border-radius: 0;
    background: #111117;
}

.playoff-summary span {
    font-family: var(--bt-mono);
    font-size: 7px;
}

.playoff-summary strong {
    font-family: var(--bt-display);
    font-size: 16px;
    text-transform: uppercase;
}

.bracket-heading {
    min-height: 54px;
    background: #121219;
}

.bracket-heading span {
    font-family: var(--bt-display);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.bracket-heading small,
.bracket-round h4 {
    font-family: var(--bt-mono);
    font-size: 7px;
    letter-spacing: .1em;
}

.bracket-round h4 {
    display: flex;
    align-items: center;
    gap: 7px;
}

.bracket-round h4::after {
    content: '';
    height: 1px;
    flex: 1;
    background: #302e39;
}

.series-card {
    border-radius: 0;
    background: #131319;
}

.series-label {
    font-family: var(--bt-mono);
}

.bracket-team {
    position: relative;
    font-family: var(--bt-mono);
}

.bracket-team.winner {
    background: linear-gradient(90deg, rgba(102,126,234,.13), transparent);
}

.bracket-team.winner::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 2px;
    background: var(--bt-indigo);
}

.bracket-team-name {
    font-family: var(--bt-display);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.finals-card {
    border-top: 3px solid var(--bt-gold);
    background:
        linear-gradient(90deg, rgba(203,180,114,.12), transparent 43%),
        #111117;
}

.finals-copy > span {
    font-family: var(--bt-mono);
}

.finals-copy h3 {
    font-family: var(--bt-display);
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
}

.predictor-sources {
    font-family: var(--bt-mono);
}

.model-sources a {
    border-radius: 0;
}

@media (max-width: 900px) {
    .header {
        padding: 16px 0;
    }

    .header::after {
        top: auto;
        bottom: -1px;
    }

    .header-brand {
        gap: 15px;
    }

    .nav-view-btn {
        padding: 8px 0;
    }

    .model-strip {
        grid-template-columns: repeat(3, 1fr);
        padding-left: 0;
    }

    .model-strip::before {
        display: none;
    }

    .model-strip-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .header-brand {
        width: 100%;
    }

    .primary-nav {
        gap: 18px;
    }

    .stats-toggle {
        border-bottom-color: var(--bt-line);
    }

    .toggle-btn {
        border-left: 0;
        border-bottom-width: 2px;
    }

    .toggle-btn.active::after {
        display: none;
    }

    .season-hero {
        min-height: 0;
        padding: 42px 24px 24px;
    }

    .season-hero::before,
    .season-hero::after {
        opacity: .5;
    }
}

@media (max-width: 520px) {
    .app {
        padding: 0 12px 18px;
    }

    .header {
        margin-bottom: 25px;
    }

    .brand-ball {
        width: 29px;
        height: 29px;
    }

    .header .brand-copy h1 {
        font-size: 28px;
    }

    .primary-nav {
        width: 100%;
    }

    .nav-view-btn {
        font-size: 12px;
    }

    .search-heading {
        align-items: flex-start;
    }

    .search-heading > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .search-heading .player-index-count {
        margin-top: 4px;
    }

    .player-header {
        min-height: 126px;
        padding: 24px 20px;
    }

    .player-number {
        font-size: 62px;
    }

    .stats-section {
        padding: 18px 14px;
    }

    .stat-box,
    .stat-box.highlight,
    .stat-box.prediction,
    .stat-box.prediction.highlight {
        min-height: 68px;
    }

    .season-hero h2 {
        font-size: 45px;
    }

    .season-hero-badge {
        width: 100%;
        text-align: left;
    }

    .predictor-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .predictor-actions .predictor-btn.primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

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