:root {
    color-scheme: dark;

    --page-bg: #10131a;
    --panel-bg: #191e28;
    --panel-border: #303747;
    --text-main: #f4f6fb;
    --text-muted: #aeb7c7;
    --accent: #ffb000;
    --accent-hover: #ffc64d;
    --danger: #ff6b6b;
    --success: #58d68d;
    --warning: #f5c76b;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top, #1b2331 0, var(--page-bg) 42%);
    color: var(--text-main);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

a {
    color: var(--accent);
}

button,
input {
    font: inherit;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
}

.auth-card {
    width: min(100%, 460px);
    padding: 32px;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background: rgba(25, 30, 40, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.auth-card h1 {
    margin: 0;
    font-size: 2.2rem;
}

.subtitle {
    margin-top: 4px;
    color: var(--text-muted);
}

form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

label {
    margin-top: 8px;
    font-weight: 700;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--panel-border);
    border-radius: 9px;
    outline: none;
    background: #0e1219;
    color: var(--text-main);
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.15);
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 14px;
    padding: 10px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    color: #17120a;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: var(--accent-hover);
}

.message {
    margin: 20px 0;
    padding: 14px;
    border: 1px solid var(--panel-border);
    border-radius: 9px;
}

.message ul {
    margin: 0;
    padding-left: 20px;
}

.message.error {
    border-color: rgba(255, 107, 107, 0.5);
    color: var(--danger);
}

.message.success {
    border-color: rgba(88, 214, 141, 0.5);
    color: var(--success);
}

.message.warning {
    border-color: rgba(245, 199, 107, 0.5);
    color: var(--warning);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 5%;
    border-bottom: 1px solid var(--panel-border);
    background: rgba(16, 19, 26, 0.92);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.hero {
    padding: 32px;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #1b2230, #131820);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.4rem);
}

.hero p:last-child {
    color: var(--text-muted);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading {
    margin-top: 42px;
}

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

.game-card,
.empty-state {
    padding: 24px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
}

.game-card h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.game-card p {
    color: var(--text-muted);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(88, 214, 141, 0.14);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 800;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 24px;
    }

    .site-header {
        align-items: flex-start;
        gap: 14px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-header nav {
        align-items: flex-end;
        flex-direction: column;
        gap: 4px;
    }

    .hero {
        padding: 24px;
    }
}

/* =========================================================
   NFL Predictions module
   ========================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.nfl-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.nfl-hero>div:first-child {
    max-width: 760px;
}

.nfl-season-badge {
    display: grid;
    min-width: 180px;
    padding: 18px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: rgba(14, 18, 25, 0.7);
    text-align: center;
}

.nfl-season-badge span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nfl-season-badge strong {
    margin-top: 4px;
    font-size: 1.1rem;
}

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

.stat-card {
    display: flex;
    flex-direction: column;
    min-height: 142px;
    padding: 20px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.stat-value {
    margin-top: 10px;
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    line-height: 1.1;
}

.stat-note {
    margin-top: auto;
    padding-top: 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.nfl-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.nfl-main-column,
.nfl-side-column {
    display: grid;
    align-content: start;
    gap: 20px;
}

.content-card {
    padding: 24px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.card-heading h2,
.nfl-empty-state h3 {
    margin: 0;
}

.card-heading .eyebrow {
    margin-bottom: 4px;
    font-size: 0.72rem;
}

.text-muted {
    color: var(--text-muted);
}

.next-fixture {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 24px 0;
}

.fixture-team {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    text-align: center;
}

.fixture-team strong {
    font-size: 1.05rem;
}

.fixture-team>span:last-child {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.team-logo,
.team-logo-fallback {
    width: 72px;
    height: 72px;
}

.team-logo {
    object-fit: contain;
}

.team-logo-fallback {
    display: grid;
    place-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 50%;
    background: #10151e;
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
}

.fixture-centre {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.fixture-centre>strong {
    color: var(--text-muted);
    font-size: 1.4rem;
}

.fixture-date {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.pick-state,
.result-pill {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.pick-state.complete,
.result-pill.correct {
    background: rgba(88, 214, 141, 0.14);
    color: var(--success);
}

.pick-state.pending {
    background: rgba(245, 199, 107, 0.14);
    color: var(--warning);
}

.result-pill.incorrect {
    background: rgba(255, 107, 107, 0.14);
    color: var(--danger);
}

.result-pill.neutral {
    background: rgba(174, 183, 199, 0.12);
    color: var(--text-muted);
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--panel-border);
    padding-top: 18px;
}

.button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nfl-empty-state {
    padding: 28px;
    border: 1px dashed var(--panel-border);
    border-radius: 12px;
    background: rgba(14, 18, 25, 0.4);
    text-align: center;
}

.nfl-empty-state p {
    max-width: 540px;
    margin: 8px auto 0;
    color: var(--text-muted);
}

.result-list {
    display: grid;
}

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--panel-border);
}

.result-row:first-child {
    border-top: 0;
}

.result-teams {
    display: grid;
    grid-template-columns: minmax(48px, 1fr) auto minmax(48px, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.result-teams span:first-child {
    text-align: right;
}

.result-teams strong {
    font-size: 1.15rem;
}

.result-meta {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.module-link-list {
    display: grid;
    gap: 10px;
}

.module-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
}

.module-link>span:first-child {
    display: grid;
    gap: 2px;
}

.module-link small {
    color: var(--text-muted);
}

.disabled-link {
    opacity: 0.58;
    cursor: not-allowed;
}

.coming-soon-note {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.status-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.status-list>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--panel-border);
}

.status-list>div:first-child {
    border-top: 0;
}

.status-list dt {
    color: var(--text-muted);
}

.status-list dd {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}

.status-dot.ready {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(88, 214, 141, 0.1);
}

.status-dot.waiting {
    background: var(--warning);
    box-shadow: 0 0 0 4px rgba(245, 199, 107, 0.1);
}

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

    .nfl-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .nfl-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .nfl-season-badge {
        min-width: 0;
        text-align: left;
    }

    .next-fixture {
        grid-template-columns: 1fr;
    }

    .fixture-centre {
        order: -1;
    }

    .result-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .result-meta {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 18px;
    }

    .card-heading {
        flex-direction: column;
    }
}

/* =========================================================
   NFL team importer
   ========================================================= */

.import-summary {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 2fr);
    align-items: end;
    gap: 30px;
    margin-top: 24px;
}

.import-summary form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin: 0;
}

.import-summary form label {
    grid-column: 1 / -1;
    margin: 0;
}

.import-actions {
    display: flex;
    gap: 10px;
}

.import-actions button {
    margin-top: 0;
    white-space: nowrap;
}

.secondary-button {
    border: 1px solid var(--panel-border);
    background: transparent;
    color: var(--text-main);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table-scroll {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--panel-border);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.import-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

@media (max-width: 760px) {

    .import-summary,
    .import-summary form {
        grid-template-columns: 1fr;
    }

    .import-summary form label {
        grid-column: auto;
    }

    .import-actions {
        flex-wrap: wrap;
    }
}

/* =========================================================
   NFL teams page
   ========================================================= */

.teams-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.teams-hero>div:first-child {
    max-width: 720px;
}

.teams-hero-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 10px;
    min-width: 340px;
}

.teams-hero-summary>div {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    background: rgba(14, 18, 25, 0.65);
    text-align: center;
}

.teams-hero-summary span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.teams-hero-summary strong {
    font-size: 1.55rem;
}

.conference-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.conference-jump-nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--panel-bg);
    color: var(--text-main);
    font-weight: 800;
    text-decoration: none;
}

.conference-jump-nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.conference-section {
    scroll-margin-top: 90px;
    margin-top: 34px;
}

.conference-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.conference-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.conference-heading .eyebrow {
    margin-bottom: 3px;
}

.conference-count {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.division-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.division-card {
    padding: 18px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
}

.division-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--panel-border);
}

.division-heading h3 {
    margin: 2px 0 0;
    font-size: 1.25rem;
}

.division-heading>span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.division-conference {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-list {
    display: grid;
}

.team-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 0;
    border-top: 1px solid var(--panel-border);
}

.team-card:first-child {
    border-top: 0;
}

.team-card-logo {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
}

.team-card-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.team-card-logo span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 50%;
    background: #10151e;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 900;
}

.team-card-details {
    min-width: 0;
}

.team-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.team-card-title h4 {
    overflow: hidden;
    margin: 0;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-card-title span {
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(174, 183, 199, 0.1);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.team-card-details p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.team-card-arrow {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.division-empty {
    padding: 24px 0 8px;
    color: var(--text-muted);
    text-align: center;
}

.teams-empty-state {
    margin-top: 24px;
    text-align: center;
}

.teams-empty-state h2 {
    margin-top: 0;
}

.teams-empty-state p {
    color: var(--text-muted);
}

@media (max-width: 920px) {
    .teams-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .teams-hero-summary {
        min-width: 0;
    }

    .division-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .teams-hero-summary {
        grid-template-columns: 1fr;
    }

    .teams-hero-summary>div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .conference-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .team-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .team-card-logo,
    .team-card-logo img,
    .team-card-logo span {
        width: 44px;
        height: 44px;
    }

    .team-card-arrow {
        display: none;
    }
}

/* =========================================================
   NFL season and fixture importer
   ========================================================= */

.fixture-import-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.import-fixture-form {
    margin-top: 20px;
}

.import-fixture-form form {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
}

.import-fixture-form form>div:first-child {
    display: grid;
    flex: 1 1 320px;
    gap: 8px;
}

.import-fixture-form label {
    margin: 0;
}

.import-fixture-form small {
    display: block;
}

@media (max-width: 760px) {
    .fixture-import-summary {
        grid-template-columns: 1fr;
    }

    .import-fixture-form form {
        align-items: stretch;
        flex-direction: column;
    }

    .import-actions {
        width: 100%;
    }

    .import-actions button {
        flex: 1 1 auto;
    }
}

/* =========================================================
   NFL fixtures and results page
   ========================================================= */

.fixtures-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.fixtures-hero>div:first-child {
    max-width: 760px;
}

.fixtures-season-summary {
    display: grid;
    min-width: 180px;
    padding: 18px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: rgba(14, 18, 25, 0.7);
    text-align: center;
}

.fixtures-season-summary span,
.fixtures-season-summary small {
    color: var(--text-muted);
}

.fixtures-season-summary span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fixtures-season-summary strong {
    margin: 4px 0;
    font-size: 1.6rem;
}

.fixture-filters {
    margin-top: 22px;
}

.fixture-filters form {
    display: grid;
    grid-template-columns:
        minmax(180px, 1fr) minmax(220px, 1.4fr) auto;
    align-items: end;
    gap: 14px;
    margin: 0;
}

.fixture-filter-field {
    display: grid;
    gap: 7px;
}

.fixture-filter-field label {
    margin: 0;
}

.fixture-filter-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--panel-border);
    border-radius: 9px;
    background: #0e1219;
    color: var(--text-main);
    font: inherit;
}

.fixture-filter-field select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.15);
}

.fixture-filters button {
    margin: 0;
    white-space: nowrap;
}

.week-toolbar {
    margin-top: 22px;
}

.week-toolbar-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
}

.week-toolbar-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.week-toolbar-heading p:last-child {
    margin: 5px 0 0;
    color: var(--text-muted);
}

.week-summary-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.week-summary-chips span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 8px 11px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: rgba(14, 18, 25, 0.55);
    color: var(--text-muted);
    font-size: 0.76rem;
}

.week-summary-chips strong {
    color: var(--text-main);
    font-size: 0.9rem;
}

.week-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.week-nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    border: 1px solid var(--panel-border);
    border-radius: 11px;
    background: var(--panel-bg);
    color: var(--text-main);
    text-decoration: none;
}

.week-nav-link:hover {
    border-color: var(--accent);
}

.week-nav-link>span:first-child,
.week-nav-link>span:last-child {
    font-size: 1.4rem;
}

.week-nav-link span {
    display: grid;
}

.week-nav-link small {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.week-nav-link.next {
    justify-content: flex-end;
    text-align: right;
}

.week-nav-link.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fixture-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.fixture-card {
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
}

.fixture-card-header,
.fixture-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
}

.fixture-card-header {
    border-bottom: 1px solid var(--panel-border);
}

.fixture-card-header>div {
    display: grid;
    gap: 3px;
}

.fixture-card-header span:not(.fixture-status) {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.fixture-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
}

.fixture-status.final {
    background: rgba(88, 214, 141, 0.14);
    color: var(--success);
}

.fixture-status.live {
    background: rgba(255, 107, 107, 0.14);
    color: var(--danger);
}

.fixture-status.warning {
    background: rgba(245, 199, 107, 0.14);
    color: var(--warning);
}

.fixture-status.scheduled {
    background: rgba(174, 183, 199, 0.12);
    color: var(--text-muted);
}

.fixture-matchup {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) 80px minmax(0, 1fr);
    align-items: stretch;
}

.fixture-match-team {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 24px 20px;
}

.fixture-match-team.winner {
    background: rgba(88, 214, 141, 0.06);
}

.fixture-match-logo {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
}

.fixture-match-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.fixture-match-logo span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 50%;
    background: #10151e;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
}

.fixture-match-details {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.fixture-match-details>span,
.fixture-match-details small {
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.fixture-match-details strong {
    overflow: hidden;
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fixture-score {
    min-width: 50px;
    font-size: clamp(1.8rem, 5vw, 2.7rem);
    font-weight: 900;
    text-align: right;
}

.fixture-versus {
    display: grid;
    place-items: center;
    border-right: 1px solid var(--panel-border);
    border-left: 1px solid var(--panel-border);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fixture-card-footer {
    border-top: 1px solid var(--panel-border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.fixture-winner-text {
    color: var(--success);
    font-weight: 800;
}

.fixture-pick-summary {
    display: flex;
    justify-content: flex-end;
}

.fixtures-empty {
    margin-top: 22px;
    text-align: center;
}

.fixtures-empty h2 {
    margin-top: 0;
}

.fixtures-empty p {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .fixtures-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .fixtures-season-summary {
        min-width: 0;
        text-align: left;
    }

    .fixture-filters form {
        grid-template-columns: 1fr 1fr;
    }

    .fixture-filters button {
        grid-column: 1 / -1;
    }

    .fixture-matchup {
        grid-template-columns: 1fr;
    }

    .fixture-versus {
        min-height: 38px;
        border-top: 1px solid var(--panel-border);
        border-right: 0;
        border-bottom: 1px solid var(--panel-border);
        border-left: 0;
    }
}

@media (max-width: 620px) {

    .fixture-filters form,
    .week-navigation {
        grid-template-columns: 1fr;
    }

    .fixture-filters button {
        grid-column: auto;
    }

    .week-toolbar-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .week-summary-chips {
        justify-content: flex-start;
    }

    .fixture-card-header,
    .fixture-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .fixture-match-team {
        grid-template-columns: 54px minmax(0, 1fr) auto;
        padding: 18px 14px;
    }

    .fixture-match-logo,
    .fixture-match-logo img {
        width: 48px;
        height: 48px;
    }

    .fixture-match-logo span {
        width: 46px;
        height: 46px;
    }

    .fixture-score {
        min-width: 38px;
    }

    .fixture-pick-summary {
        justify-content: flex-start;
    }
}

/* =========================================================
   Users, picks and leaderboard
   ========================================================= */

.narrow-page {
    width: min(900px, calc(100% - 32px));
}

.admin-users-hero,
.leaderboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-users-hero .button {
    flex: 0 0 auto;
}

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

.users-table-card,
.account-form-card,
.leaderboard-filter,
.weekly-leaderboard {
    margin-top: 22px;
}

.users-table td:first-child {
    display: grid;
    gap: 3px;
}

.users-table small,
.weekly-leaderboard td small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
}

.account-role {
    text-transform: capitalize;
}

.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.table-actions form {
    display: inline;
    margin: 0;
}

.small-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px 11px;
    border: 1px solid var(--panel-border);
    border-radius: 7px;
    background: transparent;
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.small-button:hover {
    border-color: var(--accent);
}

.danger-button {
    color: var(--danger);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid>div {
    display: grid;
    align-content: start;
    gap: 7px;
}

.form-grid label {
    margin: 0;
}

.form-grid select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--panel-border);
    border-radius: 9px;
    background: #0e1219;
    color: var(--text-main);
    font: inherit;
}

.full-field {
    grid-column: 1 / -1;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 15px;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    background: rgba(14, 18, 25, 0.4);
    cursor: pointer;
}

.checkbox-row input {
    width: auto;
    margin-top: 4px;
}

.checkbox-row span {
    display: grid;
    gap: 3px;
}

.checkbox-row small {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.secondary-action {
    color: var(--text-muted);
    font-weight: 700;
    text-decoration: none;
}

.pick-progress-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
}

.pick-progress-card h2 {
    margin: 0;
}

.pick-progress-card>div:last-child {
    display: grid;
    text-align: right;
}

.pick-progress-card>div:last-child strong {
    font-size: 1.8rem;
}

.pick-progress-card>div:last-child span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.pick-game-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.pick-game-card {
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
}

.pick-game-header,
.pick-game-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
}

.pick-game-header {
    border-bottom: 1px solid var(--panel-border);
}

.pick-game-footer {
    border-top: 1px solid var(--panel-border);
}

.pick-team-form {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    margin: 0;
}

.pick-team-button {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    margin: 0;
    padding: 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-main);
    text-align: left;
}

.pick-team-button:hover:not(:disabled) {
    background: rgba(255, 176, 0, 0.06);
}

.pick-team-button.selected {
    background: rgba(255, 176, 0, 0.12);
    box-shadow: inset 0 0 0 2px var(--accent);
}

.pick-team-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pick-team-button img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.pick-team-button>span {
    display: grid;
    gap: 3px;
}

.pick-team-button small {
    color: var(--text-muted);
    text-transform: uppercase;
}

.pick-team-button b {
    font-size: 2rem;
}

.pick-versus {
    display: grid;
    place-items: center;
    border-right: 1px solid var(--panel-border);
    border-left: 1px solid var(--panel-border);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.leaderboard-filter form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin: 0;
}

.leaderboard-filter .fixture-filter-field {
    flex: 1 1 auto;
}

.leaderboard-filter button {
    margin: 0;
}

.leader-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,
            minmax(280px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.leader-card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
}

.leader-position {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #17120a;
    font-weight: 900;
}

.leader-card small,
.leader-card dt,
.leader-points span {
    color: var(--text-muted);
}

.leader-card h2 {
    margin: 3px 0 18px;
}

.leader-points {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.leader-points strong {
    font-size: 3rem;
}

.leader-card dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0 0;
}

.leader-card dl>div {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    text-align: center;
}

.leader-card dd {
    margin: 0;
    font-weight: 900;
}

@media (max-width: 850px) {
    .user-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pick-team-form {
        grid-template-columns: 1fr;
    }

    .pick-versus {
        min-height: 38px;
        border-top: 1px solid var(--panel-border);
        border-right: 0;
        border-bottom: 1px solid var(--panel-border);
        border-left: 0;
    }
}

@media (max-width: 620px) {

    .admin-users-hero,
    .leaderboard-hero,
    .pick-progress-card,
    .leaderboard-filter form {
        align-items: stretch;
        flex-direction: column;
    }

    .user-summary-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-field {
        grid-column: auto;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .form-actions button {
        width: 100%;
    }

    .pick-progress-card>div:last-child {
        text-align: left;
    }

    .pick-team-button {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        padding: 16px;
    }

    .pick-team-button img {
        width: 46px;
        height: 46px;
    }

    .leader-card dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   NFL opponent-pick privacy
   ========================================================= */

.fixture-card-footer-stacked {
    display: grid;
    gap: 16px;
}

.fixture-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.player-picks-panel {
    padding-top: 14px;
    border-top: 1px solid var(--panel-border);
}

.player-picks-panel h3 {
    margin: 0 0 10px;
    font-size: 0.88rem;
}

.player-pick-list {
    display: grid;
    gap: 8px;
}

.player-pick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: rgba(14, 18, 25, 0.35);
}

.player-pick-row>div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.player-pick-row>div:last-child {
    justify-content: flex-end;
    text-align: right;
}

.your-pick-label {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 176, 0, 0.12);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
}

.player-pick-team {
    color: var(--text-main);
    font-weight: 900;
}

.hidden-pick {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-style: italic;
}

.pick-privacy-note {
    margin: 11px 0 0;
    color: var(--text-muted);
    font-size: 0.74rem;
}

@media (max-width: 620px) {

    .fixture-result-summary,
    .player-pick-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-pick-row>div:last-child {
        justify-content: flex-start;
        text-align: left;
    }
}

/* =========================================================
   Administration home
   ========================================================= */

.admin-home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.admin-home-hero>div:first-child {
    max-width: 720px;
}

.admin-role-badge {
    display: grid;
    min-width: 190px;
    padding: 18px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: rgba(14, 18, 25, 0.7);
    text-align: center;
}

.admin-role-badge span,
.admin-role-badge small {
    color: var(--text-muted);
}

.admin-role-badge span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.admin-role-badge strong {
    margin-top: 5px;
    font-size: 1.05rem;
}

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

.admin-section {
    margin-top: 34px;
}

.admin-section .section-heading {
    margin-top: 0;
}

.admin-area-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-area-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
    color: var(--text-main);
    text-decoration: none;
}

.admin-area-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.admin-area-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.admin-area-card p {
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.admin-area-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: #10151e;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 900;
}

.admin-area-arrow {
    color: var(--text-muted);
    font-size: 1.7rem;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.admin-import-list {
    display: grid;
}

.admin-import-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid var(--panel-border);
}

.admin-import-row:first-child {
    border-top: 0;
}

.admin-import-row>div:first-child {
    display: grid;
    gap: 3px;
}

.admin-import-row>div:first-child span {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.dashboard-admin-section {
    margin-top: 36px;
}

.dashboard-admin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
    color: var(--text-main);
    text-decoration: none;
}

.dashboard-admin-card:hover {
    border-color: var(--accent);
}

.dashboard-admin-card h3 {
    margin: 0;
    font-size: 1.35rem;
}

.dashboard-admin-card p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
}

.dashboard-admin-card>span {
    color: var(--text-muted);
    font-size: 2rem;
}

@media (max-width: 900px) {
    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-area-grid,
    .admin-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .admin-home-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-role-badge {
        min-width: 0;
        text-align: left;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-area-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .admin-area-icon {
        width: 44px;
        height: 44px;
    }

    .admin-area-arrow {
        display: none;
    }

    .admin-import-row,
    .dashboard-admin-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   NFL individual team page
   ========================================================= */

.team-profile-hero {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 30px;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background:
        linear-gradient(135deg,
            rgba(27, 34, 48, 0.98),
            rgba(19, 24, 32, 0.98));
}

.team-profile-logo {
    display: grid;
    width: 140px;
    height: 140px;
    place-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    background: rgba(14, 18, 25, 0.65);
}

.team-profile-logo img {
    width: 116px;
    height: 116px;
    object-fit: contain;
}

.team-profile-logo>span {
    color: var(--accent);
    font-size: 2rem;
    font-weight: 900;
}

.team-profile-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.6rem);
}

.team-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.team-profile-meta span {
    padding: 5px 10px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: rgba(14, 18, 25, 0.45);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.team-season-selector {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    align-items: end;
    gap: 8px;
    min-width: 240px;
    margin: 0;
}

.team-season-selector label {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.team-season-selector select {
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--panel-border);
    border-radius: 9px;
    background: #0e1219;
    color: var(--text-main);
    font: inherit;
}

.team-season-selector button {
    min-height: 42px;
    margin: 0;
}

.team-tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 10;
    margin-top: 20px;
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: rgba(16, 19, 26, 0.96);
}

.team-tab-navigation a {
    padding: 8px 13px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.team-tab-navigation a:hover,
.team-tab-navigation a.active {
    background: rgba(255, 176, 0, 0.12);
    color: var(--accent);
}

.team-overview-section,
.team-page-section {
    scroll-margin-top: 84px;
    margin-top: 28px;
}

.team-record-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.team-record-card {
    display: grid;
    align-content: start;
    min-height: 145px;
    padding: 20px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
}

.team-record-card.primary {
    border-color: rgba(255, 176, 0, 0.38);
    background: rgba(255, 176, 0, 0.07);
}

.team-record-card span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.team-record-card strong {
    margin-top: 10px;
    font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.team-record-card small {
    margin-top: auto;
    padding-top: 8px;
    color: var(--text-muted);
}

.team-overview-grid,
.team-schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.team-split-list {
    display: grid;
    margin: 0;
}

.team-split-list>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid var(--panel-border);
}

.team-split-list>div:first-child {
    border-top: 0;
}

.team-split-list dt {
    color: var(--text-muted);
}

.team-split-list dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.team-page-section>.section-heading {
    margin-top: 0;
}

.team-game-list {
    display: grid;
}

.team-game-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 0;
    border-top: 1px solid var(--panel-border);
}

.team-game-row:first-child {
    border-top: 0;
}

.team-game-result {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    background: rgba(174, 183, 199, 0.1);
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 900;
}

.team-game-result.w {
    background: rgba(88, 214, 141, 0.14);
    color: var(--success);
}

.team-game-result.l {
    background: rgba(255, 107, 107, 0.14);
    color: var(--danger);
}

.team-game-result.t {
    background: rgba(245, 199, 107, 0.14);
    color: var(--warning);
}

.team-game-opponent {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.team-game-opponent img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.team-game-opponent>div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.team-game-opponent small {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.team-game-opponent strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-game-score {
    font-size: 1.1rem;
    font-weight: 900;
    white-space: nowrap;
}

.team-game-date {
    max-width: 150px;
    color: var(--text-muted);
    font-size: 0.76rem;
    text-align: right;
}

.team-feature-placeholder {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px dashed var(--panel-border);
    border-radius: 14px;
    background: rgba(14, 18, 25, 0.35);
}

.team-feature-placeholder h3 {
    margin: 0;
}

.team-feature-placeholder p {
    max-width: 760px;
    margin: 6px 0 0;
    color: var(--text-muted);
}

.team-feature-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: #10151e;
    color: var(--accent);
    font-weight: 900;
}

@media (max-width: 960px) {
    .team-profile-hero {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .team-profile-logo {
        width: 112px;
        height: 112px;
    }

    .team-profile-logo img {
        width: 92px;
        height: 92px;
    }

    .team-season-selector {
        grid-column: 1 / -1;
        min-width: 0;
    }

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

    .team-overview-grid,
    .team-schedule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .team-profile-hero {
        grid-template-columns: 1fr;
    }

    .team-profile-logo {
        width: 96px;
        height: 96px;
    }

    .team-profile-logo img {
        width: 78px;
        height: 78px;
    }

    .team-record-grid {
        grid-template-columns: 1fr;
    }

    .team-tab-navigation {
        position: static;
    }

    .team-game-row {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .team-game-score,
    .team-game-date {
        grid-column: 2;
        text-align: left;
    }

    .team-feature-placeholder {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .team-feature-icon {
        width: 44px;
        height: 44px;
    }

    .team-feature-placeholder>.result-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

.team-card-link {
    color: var(--text-main);
    text-decoration: none;
}

.team-card-link:hover {
    background: rgba(255, 176, 0, 0.05);
}

.team-card-link:hover .team-card-arrow {
    color: var(--accent);
}

/* =========================================================
   NFL roster importer
   ========================================================= */

.roster-preview-player {
    display: flex;
    align-items: center;
    min-width: 210px;
    gap: 10px;
}

.roster-preview-player img,
.roster-preview-player>span {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
}

.roster-preview-player img {
    background: rgba(14, 18, 25, 0.65);
    object-fit: contain;
}

.roster-preview-player>span {
    display: grid;
    place-items: center;
    border: 1px solid var(--panel-border);
    background: #10151e;
    color: var(--accent);
    font-weight: 900;
}

.roster-preview-player>div {
    display: grid;
    gap: 2px;
}

.roster-preview-player small {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* =========================================================
   NFL team roster
   ========================================================= */

.team-roster-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.team-roster-heading .section-heading {
    margin: 0;
}

.team-roster-heading .section-heading p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
}

.team-roster-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.team-roster-summary span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--panel-bg);
    color: var(--text-muted);
    font-size: 0.76rem;
}

.team-roster-summary strong {
    color: var(--text-main);
    font-size: 0.95rem;
}

.roster-group-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: var(--panel-bg);
}

.roster-group-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.roster-group-navigation a:hover {
    background: rgba(255, 176, 0, 0.1);
    color: var(--accent);
}

.roster-group-navigation a span {
    display: grid;
    min-width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 999px;
    background: rgba(174, 183, 199, 0.1);
    color: var(--text-main);
    font-size: 0.67rem;
}

.team-roster-groups {
    display: grid;
    gap: 30px;
    margin-top: 24px;
}

.team-roster-group {
    scroll-margin-top: 100px;
}

.team-roster-group-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.team-roster-group-heading h3 {
    margin: 0;
    font-size: 1.4rem;
}

.team-roster-group-heading>span {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.team-roster-grid {
    display: grid;
    grid-template-columns: repeat(3,
            minmax(0, 1fr));
    gap: 14px;
}

.team-player-card {
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
}

.team-player-card-top {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 112px;
    padding: 14px;
}

.team-player-image {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 50%;
    background: rgba(14, 18, 25, 0.65);
}

.team-player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-player-image span {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 900;
}

.team-player-heading {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: 5px;
}

.team-player-heading>div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.team-player-heading h4 {
    overflow: hidden;
    margin: 0;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-player-number {
    color: var(--accent);
    font-size: 0.77rem;
    font-weight: 900;
}

.team-player-position {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.roster-status {
    justify-self: start;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 900;
}

.roster-status.active {
    background: rgba(88, 214, 141, 0.14);
    color: var(--success);
}

.roster-status.practice,
.roster-status.reserve {
    background: rgba(245, 199, 107, 0.14);
    color: var(--warning);
}

.roster-status.inactive {
    background: rgba(255, 107, 107, 0.14);
    color: var(--danger);
}

.roster-status.unknown {
    background: rgba(174, 183, 199, 0.12);
    color: var(--text-muted);
}

.team-player-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--panel-border);
}

.team-player-details>div {
    display: grid;
    gap: 3px;
    padding: 10px 7px;
    border-left: 1px solid var(--panel-border);
    text-align: center;
}

.team-player-details>div:first-child {
    border-left: 0;
}

.team-player-details dt {
    color: var(--text-muted);
    font-size: 0.62rem;
    text-transform: uppercase;
}

.team-player-details dd {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 900;
}

.team-player-college {
    display: grid;
    gap: 2px;
    min-height: 56px;
    padding: 10px 13px;
    border-top: 1px solid var(--panel-border);
}

.team-player-college span {
    color: var(--text-muted);
    font-size: 0.62rem;
    text-transform: uppercase;
}

.team-player-college strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-roster-admin-action {
    margin: 22px 0 0;
}

@media (max-width: 1050px) {
    .team-roster-grid {
        grid-template-columns: repeat(2,
                minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .team-roster-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .team-roster-summary {
        justify-content: flex-start;
    }

    .team-roster-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .team-player-card-top {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .team-player-image {
        width: 64px;
        height: 64px;
    }

    .team-player-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-player-details>div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--panel-border);
    }

    .team-player-details>div:nth-child(4) {
        border-top: 1px solid var(--panel-border);
    }
}

/* =========================================================
   NFL roster controls and collapsible groups
   ========================================================= */

.roster-controls {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: var(--panel-bg);
}

.roster-search-field {
    display: grid;
    gap: 7px;
}

.roster-search-field label {
    margin: 0;
    font-size: 0.78rem;
}

.roster-search-field input {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid var(--panel-border);
    border-radius: 9px;
    background: #0e1219;
    color: var(--text-main);
    font: inherit;
}

.roster-search-field input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.14);
}

.roster-status-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.roster-filter-button {
    min-height: 38px;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.roster-filter-button:hover,
.roster-filter-button.active {
    border-color: var(--accent);
    background: rgba(255, 176, 0, 0.11);
    color: var(--accent);
}

.roster-result-count {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.team-roster-group {
    scroll-margin-top: 100px;
}

.team-roster-group-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: var(--panel-bg);
    color: var(--text-main);
    text-align: left;
}

.team-roster-group-toggle:hover {
    border-color: var(--accent);
}

.team-roster-group-toggle>span:first-child {
    display: grid;
    gap: 3px;
}

.team-roster-group-toggle small {
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.team-roster-group-toggle strong {
    font-size: 1.2rem;
}

.team-roster-group-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.team-roster-group-action {
    color: var(--accent);
    font-weight: 800;
}

.team-roster-toggle-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--panel-border);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.team-roster-group.expanded .team-roster-toggle-icon {
    transform: rotate(45deg);
}

.team-roster-group-content {
    margin-top: 13px;
}

.team-player-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.team-player-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.roster-no-results {
    margin-top: 18px;
    padding: 26px;
    border: 1px dashed var(--panel-border);
    border-radius: 12px;
    text-align: center;
}

.roster-no-results p {
    margin-bottom: 0;
    color: var(--text-muted);
}

[data-roster-player][hidden],
[data-roster-group][hidden],
.team-roster-group-content[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .roster-controls {
        grid-template-columns: 1fr;
    }

    .roster-result-count {
        grid-column: auto;
    }

    .team-roster-group-toggle {
        align-items: flex-start;
        flex-direction: column;
    }

    .team-roster-group-meta {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================================================
   NFL player page
   ========================================================= */

.player-profile-hero {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 30px;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background:
        linear-gradient(135deg,
            rgba(27, 34, 48, 0.98),
            rgba(19, 24, 32, 0.98));
}

.player-profile-image {
    display: grid;
    width: 160px;
    height: 160px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 50%;
    background: rgba(14, 18, 25, 0.65);
}

.player-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.player-profile-image span {
    color: var(--accent);
    font-size: 2rem;
    font-weight: 900;
}

.player-profile-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.5rem);
}

.player-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.player-profile-meta span {
    padding: 5px 10px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.player-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.player-team-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--panel-border);
}

.player-team-summary img {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.player-team-summary>div {
    display: grid;
    gap: 4px;
}

.player-team-summary strong {
    font-size: 1.1rem;
}

.player-team-summary span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

@media (max-width: 900px) {
    .player-profile-hero {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .player-profile-image {
        width: 120px;
        height: 120px;
    }

    .player-profile-hero .team-season-selector {
        grid-column: 1 / -1;
    }

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

@media (max-width: 620px) {
    .player-profile-hero {
        grid-template-columns: 1fr;
    }

    .player-profile-image {
        width: 100px;
        height: 100px;
    }
}

.profile-data-note {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 400;
}

/* =========================================================
   NFL player biography enrichment
   ========================================================= */

.enrichment-results-table td:first-child,
.enrichment-results-table td:nth-child(2),
.enrichment-results-table td:last-child {
    min-width: 180px;
}

.enrichment-results-table td:first-child,
.enrichment-results-table td:nth-child(2),
.enrichment-results-table td:last-child {
    vertical-align: top;
}

.enrichment-results-table small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.result-pill.warning {
    background: rgba(245, 199, 107, 0.14);
    color: var(--warning);
}

/* NFL player enrichment controls */

.import-fixture-form form {
    flex-wrap: wrap;
}

.import-fixture-form form>div {
    min-width: 150px;
}

.import-fixture-form .import-actions {
    margin-left: auto;
}

/* =========================================================
   nflverse player importer
   ========================================================= */

.nflverse-refresh-option {
    display: flex;
    align-items: flex-end;
}

.nflverse-refresh-option label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.nflverse-refresh-option input {
    width: auto;
    margin: 0;
}

.nflverse-dataset-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.nflverse-dataset-summary>div {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    background: rgba(14, 18, 25, 0.35);
}

.nflverse-dataset-summary strong {
    font-size: 1rem;
}

.nflverse-dataset-summary span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

@media (max-width: 700px) {
    .nflverse-dataset-summary {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   nflverse manual candidate review
   ========================================================= */

.nflverse-review-comparison {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--panel-border);
}

.nflverse-review-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.nflverse-review-form input[type="text"] {
    width: 100%;
    min-width: 180px;
    padding: 8px 10px;
    border: 1px solid var(--panel-border);
    border-radius: 7px;
    background: var(--page-background);
    color: var(--text);
}

.nflverse-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.small-button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.72rem;
}

.danger-button {
    border-color: rgba(255, 91, 91, 0.55);
    background: rgba(255, 91, 91, 0.12);
    color: #ff7777;
}

.danger-button:hover {
    background: rgba(255, 91, 91, 0.2);
}

/* =========================================================
   NFL roster participation editor
   ========================================================= */

.nfl-participation-form {
    display: grid;
    gap: 7px;
    min-width: 210px;
}

.nfl-participation-form select,
.nfl-participation-form input {
    width: 100%;
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid var(--panel-border);
    border-radius: 7px;
    background: var(--page-background);
    color: var(--text);
    font-size: 0.74rem;
}

.nfl-participation-numbers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.nfl-participation-numbers label {
    display: grid;
    gap: 3px;
}

.nfl-participation-numbers span {
    color: var(--text-muted);
    font-size: 0.66rem;
}

.nfl-participation-form {
    margin-top: 8px;
}

/* =========================================================
   NFL team statistics
   ========================================================= */

.team-stat-season-block {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.team-stat-season-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.team-stat-season-heading h3 {
    margin: 3px 0 0;
}

.team-stat-category-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.team-stat-list {
    margin: 0;
}

.team-stat-list>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--panel-border);
}

.team-stat-list>div:last-child {
    border-bottom: 0;
}

.team-stat-list dt {
    color: var(--text-muted);
}

.team-stat-list dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

.team-stat-leaders {
    display: grid;
    gap: 14px;
}

.team-stat-leader-grid {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.team-stat-leader-card {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: var(--panel-background);
    color: inherit;
    text-decoration: none;
}

.team-stat-leader-card:hover {
    border-color: var(--accent);
}

.team-stat-leader-image {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 50%;
    background: var(--page-background);
    font-weight: 800;
}

.team-stat-leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-stat-leader-card div:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.team-stat-leader-card small,
.team-stat-leader-card span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.team-stat-leader-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .team-stat-leader-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    .team-stat-category-grid,
    .team-stat-leader-grid {
        grid-template-columns: 1fr;
    }

    .team-stat-season-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   NFL player statistics history
   ========================================================= */

.player-stat-history {
    display: grid;
    gap: 28px;
    margin-top: 20px;
}

.player-stat-season {
    display: grid;
    gap: 16px;
}

.player-stat-season-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.player-stat-season-heading h3 {
    margin: 3px 0 0;
}

.player-stat-entry {
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-background);
}

.player-stat-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid var(--panel-border);
}

.player-stat-entry-team {
    display: flex;
    align-items: center;
    gap: 13px;
}

.player-stat-entry-team img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.player-stat-entry-team div {
    display: grid;
    gap: 3px;
}

.player-stat-entry-team small,
.player-stat-entry-team span {
    color: var(--text-muted);
}

.player-stat-entry-team h4 {
    margin: 0;
    font-size: 1.15rem;
}

.player-stat-appearance-summary {
    display: flex;
    gap: 10px;
}

.player-stat-appearance-summary>div {
    display: grid;
    min-width: 80px;
    padding: 10px 13px;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    text-align: center;
}

.player-stat-appearance-summary strong {
    font-size: 1.2rem;
}

.player-stat-appearance-summary span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.player-stat-category-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--panel-border);
}

.player-stat-card {
    padding: 18px;
    background: var(--panel-background);
}

.player-stat-card h4 {
    margin: 4px 0 18px;
}

.player-stat-list {
    margin: 0;
}

.player-stat-list>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--panel-border);
}

.player-stat-list>div:last-child {
    border-bottom: 0;
}

.player-stat-list dt {
    color: var(--text-muted);
}

.player-stat-list dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

@media (max-width: 760px) {

    .player-stat-season-heading,
    .player-stat-entry-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .player-stat-appearance-summary {
        width: 100%;
    }

    .player-stat-appearance-summary>div {
        flex: 1;
    }
}

.player-stat-category-grid> :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* =========================================================
   NFL team injuries
   ========================================================= */

.team-injury-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.team-injury-updated {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 999px;
    color: var(--text-muted, #aeb9cc);
    font-size: 0.82rem;
    font-weight: 700;
}

.team-injury-summary {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(145px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-injury-summary article {
    display: grid;
    gap: 0.35rem;
    min-height: 125px;
    padding: 1rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 14px;
    background:
        var(--card-background, #171e2b);
}

.team-injury-summary span {
    color: var(--text-muted, #aeb9cc);
    font-size: 0.78rem;
    font-weight: 700;
}

.team-injury-summary strong {
    color: var(--text-color, #ffffff);
    font-size: 1.8rem;
    line-height: 1;
}

.team-injury-summary small {
    align-self: end;
    color: var(--text-muted, #aeb9cc);
}

.team-injury-summary article.danger {
    border-color: rgba(255, 96, 96, 0.42);
}

.team-injury-summary article.danger strong {
    color: #ff7777;
}

.team-injury-summary article.doubtful {
    border-color: rgba(255, 159, 67, 0.42);
}

.team-injury-summary article.doubtful strong {
    color: #ff9f43;
}

.team-injury-summary article.questionable {
    border-color: rgba(255, 193, 7, 0.42);
}

.team-injury-summary article.questionable strong {
    color: #ffc107;
}

.team-injury-list-section {
    padding: 1.25rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 16px;
    background:
        var(--card-background, #171e2b);
}

.team-injury-list {
    display: grid;
    gap: 0.75rem;
}

.team-injury-card {
    display: grid;
    grid-template-columns:
        minmax(210px, 0.9fr) minmax(360px, 1.6fr) minmax(130px, auto);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.018);
}

.team-injury-player {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

a.team-injury-player:hover strong {
    color: var(--accent-color, #ffb000);
}

.team-injury-image {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.team-injury-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-injury-image span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted, #aeb9cc);
    font-size: 0.8rem;
    font-weight: 800;
}

.team-injury-player-name {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.team-injury-player-name small {
    color: var(--text-muted, #aeb9cc);
}

.team-injury-player-name strong {
    overflow: hidden;
    color: var(--text-color, #ffffff);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-injury-details {
    display: grid;
    grid-template-columns:
        minmax(180px, 1.5fr) minmax(105px, 0.7fr) minmax(120px, 0.8fr);
    gap: 1rem;
}

.team-injury-details>div {
    display: grid;
    align-content: start;
    gap: 0.2rem;
    min-width: 0;
}

.team-injury-details span,
.team-injury-details small {
    color: var(--text-muted, #aeb9cc);
    font-size: 0.75rem;
}

.team-injury-details strong {
    color: var(--text-color, #ffffff);
}

.team-injury-details p {
    margin: 0.2rem 0 0;
    color: var(--text-muted, #aeb9cc);
    font-size: 0.8rem;
    line-height: 1.45;
}

.team-injury-status-area {
    display: grid;
    justify-items: end;
    gap: 0.4rem;
    text-align: right;
}

.team-injury-status-area small {
    color: var(--text-muted, #aeb9cc);
    font-size: 0.72rem;
}

.team-injury-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.team-injury-status.danger {
    color: #ff7777;
    background: rgba(255, 119, 119, 0.08);
}

.team-injury-status.doubtful {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.08);
}

.team-injury-status.questionable {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.08);
}

.team-injury-status.available {
    color: #5ee19a;
    background: rgba(94, 225, 154, 0.08);
}

.team-injury-status.neutral {
    color: var(--text-muted, #aeb9cc);
    background: rgba(174, 185, 204, 0.06);
}

.team-injury-clear {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(94, 225, 154, 0.35);
    border-radius: 14px;
    background: rgba(94, 225, 154, 0.04);
}

.team-injury-clear h3,
.team-injury-clear p {
    margin: 0;
}

.team-injury-clear p {
    margin-top: 0.3rem;
    color: var(--text-muted, #aeb9cc);
}

.team-injury-history {
    margin-top: 1rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 14px;
    background:
        var(--card-background, #171e2b);
}

.team-injury-history>summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
}

.team-injury-history>summary::-webkit-details-marker {
    display: none;
}

.team-injury-history>summary>span:first-child {
    display: grid;
    gap: 0.15rem;
}

.team-injury-history>summary small,
.team-injury-history>summary>span:last-child {
    color: var(--text-muted, #aeb9cc);
}

.team-injury-history-list {
    display: grid;
    padding: 0 1.15rem 1.15rem;
}

.team-injury-history-list article {
    display: grid;
    grid-template-columns:
        minmax(190px, 1fr) minmax(110px, auto) minmax(110px, auto) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 0;
    border-top: 1px solid var(--border-color, #2d3748);
}

.team-injury-history-list article>div {
    display: grid;
    gap: 0.15rem;
}

.team-injury-history-list span,
.team-injury-history-list small {
    color: var(--text-muted, #aeb9cc);
}

.team-injury-admin-action {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0 0;
}

@media (max-width: 1050px) {
    .team-injury-card {
        grid-template-columns:
            minmax(190px, 0.85fr) minmax(280px, 1.4fr);
    }

    .team-injury-status-area {
        grid-column: 1 / -1;
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 760px) {
    .team-injury-heading {
        display: grid;
    }

    .team-injury-updated {
        justify-self: start;
    }

    .team-injury-card {
        grid-template-columns: 1fr;
    }

    .team-injury-details {
        grid-template-columns: 1fr 1fr;
    }

    .team-injury-details>div:first-child {
        grid-column: 1 / -1;
    }

    .team-injury-history-list article {
        grid-template-columns: 1fr 1fr;
    }

    .team-injury-history-list article>div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .team-injury-summary {
        grid-template-columns: 1fr 1fr;
    }

    .team-injury-details {
        grid-template-columns: 1fr;
    }

    .team-injury-details>div:first-child {
        grid-column: auto;
    }

    .team-injury-history-list article {
        grid-template-columns: 1fr;
    }

    .team-injury-history-list article>div:first-child {
        grid-column: auto;
    }
}

/* Injury indicator on team roster player cards */

.roster-injury-status {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    min-height: 1.55rem;
    margin-top: 0.25rem;
    padding: 0.2rem 0.5rem;
    overflow: hidden;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roster-injury-status.danger {
    color: #ff7777;
    background: rgba(255, 119, 119, 0.08);
}

.roster-injury-status.doubtful {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.08);
}

.roster-injury-status.questionable {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.08);
}

.roster-injury-status.available {
    color: #5ee19a;
    background: rgba(94, 225, 154, 0.08);
}

.roster-injury-status.neutral {
    color: var(--text-muted, #aeb9cc);
    background: rgba(174, 185, 204, 0.06);
}

.team-injury-history-empty {
    margin: 0 1.15rem 1.15rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color, #2d3748);
    color: var(--text-muted, #aeb9cc);
}

.team-injury-history-empty strong {
    color: var(--text-color, #ffffff);
}

.team-injury-history-empty p {
    margin: 0.3rem 0 0;
}

/* =========================================================
   NFL player injuries
   ========================================================= */

.player-profile-injury {
    border: 1px solid currentColor !important;
    font-weight: 800;
}

.player-profile-injury.danger {
    color: #ff7777;
    background: rgba(255, 119, 119, 0.08);
}

.player-profile-injury.doubtful {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.08);
}

.player-profile-injury.questionable {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.08);
}

.player-profile-injury.available {
    color: #5ee19a;
    background: rgba(94, 225, 154, 0.08);
}

.player-profile-injury.neutral {
    color: var(--text-muted, #aeb9cc);
}

.player-current-injury {
    display: grid;
    grid-template-columns:
        auto minmax(260px, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1.15rem;
    border: 1px solid currentColor;
    border-radius: 16px;
    background: var(--card-background, #171e2b);
}

.player-current-injury.danger {
    color: #ff7777;
    background: rgba(255, 119, 119, 0.045);
}

.player-current-injury.doubtful {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.045);
}

.player-current-injury.questionable {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.045);
}

.player-current-injury.available {
    color: #5ee19a;
    background: rgba(94, 225, 154, 0.045);
}

.player-current-injury.neutral {
    color: var(--text-muted, #aeb9cc);
}

.player-current-injury-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 1.15rem;
    font-weight: 900;
}

.player-current-injury-main {
    min-width: 0;
}

.player-current-injury-main .eyebrow,
.player-current-injury-main h2,
.player-current-injury-main p {
    margin-top: 0;
}

.player-current-injury-main h2 {
    margin-bottom: 0.25rem;
    color: var(--text-color, #ffffff);
}

.player-current-injury-main p {
    margin-bottom: 0;
    color: var(--text-muted, #aeb9cc);
}

.player-current-injury-meta {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(90px, auto));
    gap: 1rem;
    margin: 0;
}

.player-current-injury-meta>div {
    display: grid;
    gap: 0.2rem;
}

.player-current-injury-meta dt {
    color: var(--text-muted, #aeb9cc);
    font-size: 0.72rem;
}

.player-current-injury-meta dd {
    margin: 0;
    color: var(--text-color, #ffffff);
    font-weight: 800;
}

.player-injury-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.player-injury-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.player-injury-counts span {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 999px;
    color: var(--text-muted, #aeb9cc);
    font-size: 0.78rem;
}

.player-injury-counts strong {
    color: var(--text-color, #ffffff);
}

.player-injury-active-section {
    padding: 1.2rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 16px;
    background: var(--card-background, #171e2b);
}

.player-injury-record-list {
    display: grid;
    gap: 0.75rem;
}

.player-injury-record {
    display: grid;
    grid-template-columns:
        minmax(240px, 1fr) minmax(360px, 1.4fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.018);
}

.player-injury-record-main {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.player-injury-record-main>div {
    min-width: 0;
}

.player-injury-record-main h4 {
    margin: 0;
    color: var(--text-color, #ffffff);
}

.player-injury-record-main p {
    margin: 0.3rem 0 0;
    color: var(--text-muted, #aeb9cc);
    font-size: 0.82rem;
    line-height: 1.45;
}

.player-injury-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 1.85rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.player-injury-status.danger {
    color: #ff7777;
    background: rgba(255, 119, 119, 0.08);
}

.player-injury-status.doubtful {
    color: #ff9f43;
    background: rgba(255, 159, 67, 0.08);
}

.player-injury-status.questionable {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.08);
}

.player-injury-status.available {
    color: #5ee19a;
    background: rgba(94, 225, 154, 0.08);
}

.player-injury-status.neutral {
    color: var(--text-muted, #aeb9cc);
}

.player-injury-record-meta {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(90px, 1fr));
    gap: 0.8rem;
    margin: 0;
}

.player-injury-record-meta>div {
    display: grid;
    gap: 0.15rem;
}

.player-injury-record-meta dt {
    color: var(--text-muted, #aeb9cc);
    font-size: 0.7rem;
}

.player-injury-record-meta dd {
    margin: 0;
    color: var(--text-color, #ffffff);
    font-size: 0.8rem;
    font-weight: 700;
}

.player-injury-clear {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(94, 225, 154, 0.35);
    border-radius: 12px;
    background: rgba(94, 225, 154, 0.04);
}

.player-injury-clear>span {
    color: #5ee19a;
    font-size: 1.3rem;
    font-weight: 900;
}

.player-injury-clear strong {
    color: var(--text-color, #ffffff);
}

.player-injury-clear p {
    margin: 0.2rem 0 0;
    color: var(--text-muted, #aeb9cc);
}

.player-injury-history {
    margin-top: 1rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 14px;
    background: var(--card-background, #171e2b);
}

.player-injury-history>summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
}

.player-injury-history>summary::-webkit-details-marker {
    display: none;
}

.player-injury-history>summary>span:first-child {
    display: grid;
    gap: 0.15rem;
}

.player-injury-history>summary small,
.player-injury-history>summary>span:last-child {
    color: var(--text-muted, #aeb9cc);
}

.player-injury-history-list {
    display: grid;
    padding: 0 1.15rem 1.15rem;
}

.player-injury-history-list article {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr) minmax(105px, auto) minmax(105px, auto) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border-color, #2d3748);
}

.player-injury-history-list article>div {
    display: grid;
    gap: 0.15rem;
}

.player-injury-history-list span,
.player-injury-history-list small {
    color: var(--text-muted, #aeb9cc);
}

.player-injury-history-empty {
    margin: 0 1.15rem 1.15rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color, #2d3748);
    color: var(--text-muted, #aeb9cc);
}

.player-injury-history-empty strong {
    color: var(--text-color, #ffffff);
}

.player-injury-history-empty p {
    margin: 0.3rem 0 0;
}

.player-injury-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0 0;
}

@media (max-width: 980px) {
    .player-current-injury {
        grid-template-columns: auto 1fr;
    }

    .player-current-injury-meta {
        grid-column: 1 / -1;
    }

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

@media (max-width: 720px) {
    .player-injury-section-heading {
        display: grid;
    }

    .player-injury-counts {
        justify-content: flex-start;
    }

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

    .player-current-injury-icon {
        width: 42px;
        height: 42px;
    }

    .player-current-injury-meta {
        grid-column: auto;
        grid-template-columns: 1fr 1fr;
    }

    .player-injury-record-main {
        display: grid;
    }

    .player-injury-record-meta {
        grid-template-columns: 1fr 1fr;
    }

    .player-injury-history-list article {
        grid-template-columns: 1fr 1fr;
    }

    .player-injury-history-list article>div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {

    .player-current-injury-meta,
    .player-injury-record-meta,
    .player-injury-history-list article {
        grid-template-columns: 1fr;
    }

    .player-injury-history-list article>div:first-child {
        grid-column: auto;
    }
}

/* =========================================================
   NFL news importer preview
   ========================================================= */

.nfl-news-preview-list {
    display: grid;
    gap: 0.9rem;
}

.nfl-news-preview-card {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
}

.nfl-news-preview-card:not(:has(.nfl-news-preview-image)) {
    grid-template-columns: 1fr;
}

.nfl-news-preview-image {
    min-height: 165px;
    background: rgba(255, 255, 255, 0.03);
}

.nfl-news-preview-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 165px;
    object-fit: cover;
}

.nfl-news-preview-content {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    min-width: 0;
    padding: 1rem;
}

.nfl-news-preview-meta,
.nfl-news-preview-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.65rem;
    align-items: center;
    color: var(--text-muted, #aeb9cc);
    font-size: 0.78rem;
}

.nfl-news-preview-content h3,
.nfl-news-preview-content p {
    margin: 0;
}

.nfl-news-preview-content h3 {
    color: var(--text-color, #ffffff);
    line-height: 1.25;
}

.nfl-news-preview-content p {
    color: var(--text-muted, #aeb9cc);
    line-height: 1.5;
}

.nfl-news-preview-footer a {
    font-weight: 800;
}

@media (max-width: 700px) {
    .nfl-news-preview-card {
        grid-template-columns: 1fr;
    }

    .nfl-news-preview-image {
        max-height: 220px;
    }
}

/* =========================================================
   NFL news relevance review
   ========================================================= */

.nfl-news-possible-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.65rem;
    align-items: start;
    padding: 0.8rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 12px;
    cursor: pointer;
}

.nfl-news-possible-option input {
    margin-top: 0.2rem;
}

.nfl-news-possible-option span {
    color: var(--text-color, #fff);
    font-weight: 750;
}

.nfl-news-possible-option small {
    grid-column: 2;
    color: var(--text-muted, #aeb9cc);
    line-height: 1.4;
}

.nfl-news-relevance-summary {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.nfl-news-relevance-summary article {
    display: grid;
    gap: 0.25rem;
    min-height: 105px;
    padding: 0.9rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.nfl-news-relevance-summary span,
.nfl-news-relevance-summary small {
    color: var(--text-muted, #aeb9cc);
}

.nfl-news-relevance-summary strong {
    color: var(--text-color, #fff);
    font-size: 1.55rem;
}

.nfl-news-relevance-summary article.team-match {
    border-color: rgba(94, 225, 154, 0.4);
}

.nfl-news-relevance-summary article.team-match strong {
    color: #5ee19a;
}

.nfl-news-relevance-summary article.possible-match {
    border-color: rgba(255, 193, 7, 0.4);
}

.nfl-news-relevance-summary article.possible-match strong {
    color: #ffc107;
}

.nfl-news-relevance-summary article.league-wide {
    border-color: rgba(93, 156, 236, 0.4);
}

.nfl-news-relevance-summary article.league-wide strong {
    color: #8bbcff;
}

.nfl-news-preview-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.nfl-news-relevance-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.nfl-news-relevance-badge.team-match {
    color: #5ee19a;
    background: rgba(94, 225, 154, 0.08);
}

.nfl-news-relevance-badge.possible-match {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.08);
}

.nfl-news-relevance-badge.league-wide {
    color: #8bbcff;
    background: rgba(93, 156, 236, 0.08);
}

.nfl-news-relevance-badge.not-relevant {
    color: var(--text-muted, #aeb9cc);
    background: rgba(174, 185, 204, 0.06);
}

.nfl-news-relevance-reason {
    padding: 0.55rem 0.7rem;
    border-left: 3px solid var(--border-color, #2d3748);
    background: rgba(255, 255, 255, 0.018);
    font-size: 0.76rem;
}

.nfl-news-relevance-reason strong {
    color: var(--text-color, #fff);
}

/* =========================================================
   NFL news administration
   ========================================================= */

.nfl-news-admin-filters form {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(150px, 1fr));
    gap: 0.9rem;
    align-items: end;
}

.nfl-news-admin-filters form>div {
    display: grid;
    gap: 0.35rem;
}

.nfl-news-admin-search {
    grid-column: 1 / span 3;
}

.nfl-news-admin-filter-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.nfl-news-latest-run {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(130px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.nfl-news-latest-run>div {
    display: grid;
    gap: 0.2rem;
}

.nfl-news-latest-run span {
    color: var(--text-muted, #aeb9cc);
    font-size: 0.72rem;
}

.nfl-news-latest-run strong {
    color: var(--text-color, #fff);
    font-size: 0.82rem;
}

.nfl-news-latest-run p {
    grid-column: 1 / -1;
    margin: 0;
    color: #ff8a8a;
}

.nfl-news-admin-list {
    display: grid;
    gap: 0.9rem;
}

.nfl-news-admin-card {
    display: grid;
    grid-template-columns:
        minmax(170px, 235px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
}

.nfl-news-admin-card.is-hidden {
    opacity: 0.7;
}

.nfl-news-admin-image {
    min-height: 190px;
    background: rgba(255, 255, 255, 0.035);
}

.nfl-news-admin-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.nfl-news-admin-image.placeholder {
    display: grid;
    place-items: center;
}

.nfl-news-admin-image.placeholder span {
    color: var(--accent-color, #ffb000);
    font-size: 2rem;
    font-weight: 900;
}

.nfl-news-admin-content {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    min-width: 0;
    padding: 1rem;
}

.nfl-news-admin-content h3,
.nfl-news-admin-content p {
    margin: 0;
}

.nfl-news-admin-content h3 {
    color: var(--text-color, #fff);
    line-height: 1.3;
}

.nfl-news-admin-content p {
    color: var(--text-muted, #aeb9cc);
    line-height: 1.5;
}

.nfl-news-admin-badges,
.nfl-news-admin-actions,
.nfl-news-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.nfl-news-source-badge,
.nfl-news-state-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.nfl-news-source-badge.official {
    color: #5ee19a;
}

.nfl-news-source-badge.analysis {
    color: #8bbcff;
}

.nfl-news-source-badge.social {
    color: #caa4ff;
}

.nfl-news-source-badge.news {
    color: var(--text-muted, #aeb9cc);
}

.nfl-news-state-badge.featured {
    color: #ffc107;
}

.nfl-news-state-badge.hidden {
    color: #ff8a8a;
}

.nfl-news-state-badge.visible {
    color: #5ee19a;
}

.nfl-news-admin-meta {
    color: var(--text-muted, #aeb9cc);
    font-size: 0.75rem;
}

.nfl-news-admin-meta strong {
    color: var(--text-color, #fff);
}

.nfl-news-admin-actions form {
    display: inline-flex;
    margin: 0;
}

.danger-button {
    border-color: rgba(255, 119, 119, 0.55) !important;
    color: #ff8a8a !important;
}

@media (max-width: 980px) {
    .nfl-news-admin-filters form {
        grid-template-columns:
            repeat(2, minmax(150px, 1fr));
    }

    .nfl-news-admin-search {
        grid-column: 1 / -1;
    }

    .nfl-news-latest-run {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .nfl-news-admin-filters form {
        grid-template-columns: 1fr;
    }

    .nfl-news-admin-search {
        grid-column: auto;
    }

    .nfl-news-latest-run {
        grid-template-columns: 1fr;
    }

    .nfl-news-admin-card {
        grid-template-columns: 1fr;
    }

    .nfl-news-admin-image {
        max-height: 230px;
    }
}

/* =========================================================
   NFL team news
   ========================================================= */

.team-news-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.team-news-count {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 999px;
    color: var(--text-muted, #aeb9cc);
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.team-news-featured-section,
.team-news-latest-section {
    padding: 1rem;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 15px;
    background: var(--card-background, #171e2b);
}

.team-news-latest-section {
    margin-top: 1rem;
}

.team-news-featured-grid,
.team-news-list {
    display: grid;
    gap: 0.85rem;
}

.team-news-featured-grid {
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));
}

.team-news-card {
    overflow: hidden;
    border: 1px solid var(--border-color, #2d3748);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.018);
    transition:
        border-color 0.18s ease,
        transform 0.18s ease,
        background 0.18s ease;
}

.team-news-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 176, 0, 0.48);
    background: rgba(255, 255, 255, 0.028);
}

.team-news-card.featured {
    border-color: rgba(255, 193, 7, 0.38);
}

.team-news-card-link {
    display: grid;
    grid-template-columns:
        minmax(145px, 210px) minmax(0, 1fr);
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.team-news-featured-grid .team-news-card-link {
    grid-template-columns: 1fr;
}

.team-news-image {
    display: grid;
    place-items: center;
    min-height: 170px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
}

.team-news-image>img:not(.team-news-team-logo) {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
}

.team-news-team-logo {
    display: block;
    width: min(105px, 48%);
    max-height: 105px;
    object-fit: contain;
    opacity: 0.85;
}

.team-news-image>span {
    color: var(--accent-color, #ffb000);
    font-size: 2rem;
    font-weight: 900;
}

.team-news-content {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    min-width: 0;
    padding: 1rem;
}

.team-news-content h3,
.team-news-content p {
    margin: 0;
}

.team-news-content h3 {
    color: var(--text-color, #fff);
    font-size: 1rem;
    line-height: 1.3;
}

.team-news-content p {
    color: var(--text-muted, #aeb9cc);
    font-size: 0.8rem;
    line-height: 1.5;
}

.team-news-badges,
.team-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.team-news-source,
.team-news-featured-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.18rem 0.48rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 850;
}

.team-news-source.official {
    color: #5ee19a;
    background: rgba(94, 225, 154, 0.08);
}

.team-news-source.analysis {
    color: #8bbcff;
    background: rgba(93, 156, 236, 0.08);
}

.team-news-source.social {
    color: #caa4ff;
    background: rgba(202, 164, 255, 0.08);
}

.team-news-source.news {
    color: var(--text-muted, #aeb9cc);
    background: rgba(174, 185, 204, 0.06);
}

.team-news-featured-badge {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.08);
}

.team-news-meta {
    color: var(--text-muted, #aeb9cc);
    font-size: 0.7rem;
}

.team-news-meta span {
    display: inline-flex;
    align-items: center;
}

.team-news-meta span+span::before {
    content: "•";
    margin-right: 0.45rem;
    color: rgba(174, 185, 204, 0.55);
}

.team-news-read-link {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    width: fit-content;
    color: var(--accent-color, #ffb000);
    font-size: 0.76rem;
    font-weight: 850;
}

.team-news-card:hover .team-news-read-link span {
    transform: translateX(2px);
}

.team-news-read-link span {
    transition: transform 0.18s ease;
}

.team-news-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0 0;
}

@media (max-width: 760px) {
    .team-news-heading {
        display: grid;
    }

    .team-news-card-link {
        grid-template-columns: 1fr;
    }

    .team-news-image {
        max-height: 230px;
    }
}

@media (max-width: 520px) {

    .team-news-featured-section,
    .team-news-latest-section {
        padding: 0.75rem;
    }

    .team-news-meta {
        display: grid;
    }

    .team-news-meta span+span::before {
        content: none;
    }
}

.nfl-news-official-source-note {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    border: 1px solid rgba(94, 225, 154, 0.38);
    border-radius: 12px;
    background: rgba(94, 225, 154, 0.045);
}

.nfl-news-official-source-note strong {
    color: #5ee19a;
}

.nfl-news-official-source-note small {
    color: var(--text-muted, #aeb9cc);
    line-height: 1.4;
}

/* =========================================================
   NFL player statistics comparison
   ========================================================= */

.player-stat-comparison {
    margin-top: 1.25rem;
}

.player-stat-comparison-scroll {
    overflow-x: auto;
    border: 1px solid var(--border-color, #2b3442);
    border-radius: 14px;
    background: var(--panel-color, #171e29);
    scrollbar-width: thin;
}

.player-stat-comparison-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.player-stat-comparison-table th,
.player-stat-comparison-table td {
    padding: 0.8rem 1rem;
    border-right: 1px solid var(--border-color, #2b3442);
    border-bottom: 1px solid var(--border-color, #2b3442);
}

.player-stat-comparison-table tr> :last-child {
    border-right: 0;
}

.player-stat-comparison-table tbody:last-child tr:last-child th,
.player-stat-comparison-table tbody:last-child tr:last-child td {
    border-bottom: 0;
}

.player-stat-comparison-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    vertical-align: bottom;
    background: var(--panel-color, #171e29);
}

.player-stat-comparison-table thead th:first-child {
    left: 0;
    z-index: 4;
}

.player-stat-comparison-label {
    width: 220px;
    min-width: 220px;
    text-align: left;
    color: var(--text-muted, #9ca8ba);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.player-stat-column-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    min-width: 150px;
    text-align: left;
}

.player-stat-column-heading img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
}

.player-stat-column-heading div {
    min-width: 0;
}

.player-stat-column-heading strong,
.player-stat-column-heading span,
.player-stat-column-heading small {
    display: block;
}

.player-stat-column-heading strong {
    color: var(--text-color, #f4f7fb);
    font-size: 0.82rem;
    line-height: 1.3;
}

.player-stat-column-heading span {
    margin-top: 0.2rem;
    color: var(--text-muted, #aab4c3);
    font-size: 0.76rem;
    line-height: 1.3;
}

.player-stat-column-heading small {
    margin-top: 0.18rem;
    color: var(--accent-color, #ffb000);
    font-size: 0.67rem;
    line-height: 1.3;
}

.player-stat-category-heading th {
    padding: 0.65rem 1rem;
    background: rgba(255, 176, 0, 0.08);
    color: var(--accent-color, #ffb000);
    font-size: 0.72rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.player-stat-comparison-table tbody tr:not(.player-stat-category-heading) th {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 220px;
    min-width: 220px;
    background: var(--panel-color, #171e29);
    color: var(--text-muted, #aab4c3);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
}

.player-stat-comparison-table td {
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-color, #f4f7fb);
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: right;
}

.player-stat-comparison-table tbody tr:not(.player-stat-category-heading):hover th,
.player-stat-comparison-table tbody tr:not(.player-stat-category-heading):hover td {
    background: rgba(255, 255, 255, 0.035);
}

.player-stat-comparison-note {
    margin: 0.75rem 0 0;
    color: var(--text-muted, #9ca8ba);
    font-size: 0.75rem;
    line-height: 1.5;
}

/*
 * Desktop/tablet uses the comparison table.
 * The existing stacked cards remain available for mobile.
 */
.player-stat-mobile-history {
    display: none;
}

/* =========================================================
   NFL player statistics — mobile stacked layout
   ========================================================= */

@media (max-width: 709px) {
    .player-stat-comparison {
        display: none;
    }

    .player-stat-mobile-history {
        display: block;
        margin-top: 1.25rem;
    }
}

/* =========================================================
   NFL player comparison — compact vertical season headers
   ========================================================= */

@media (min-width: 710px) {

    /*
     * Allow the comparison table to use only the width it needs,
     * rather than stretching each season column equally.
     */
    .player-stat-comparison-table {
        width: auto;
        min-width: 0;
        max-width: 100%;
        margin: 0 auto;
        table-layout: auto;
    }

    /*
     * Keep the statistic-name column readable while making it
     * narrower than the original version.
     */
    .player-stat-comparison-label,
    .player-stat-comparison-table tbody tr:not(.player-stat-category-heading) th {
        width: 170px;
        min-width: 170px;
        max-width: 170px;
    }

    /*
     * Compact season columns.
     */
    .player-stat-comparison-table thead th:not(:first-child),
    .player-stat-comparison-table tbody td {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    /*
     * Provide vertical space for the rotated season heading.
     */
    .player-stat-comparison-table thead th:not(:first-child) {
        height: 170px;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        vertical-align: bottom;
    }

    /*
     * Stack the team logo above the rotated heading.
     */
    .player-stat-column-heading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 0.35rem;
        width: 100%;
        min-width: 0;
        height: 150px;
        overflow: visible;
    }

    .player-stat-column-heading img {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        margin: 0;
        object-fit: contain;
    }

    /*
     * Rotate the season, team and season-type wording together.
     */
    .player-stat-column-heading div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        width: 125px;
        height: 58px;

        transform: rotate(-90deg);
        transform-origin: center;

        white-space: nowrap;
        text-align: left;
    }

    .player-stat-column-heading strong {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .player-stat-column-heading span {
        margin-top: 0.15rem;
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .player-stat-column-heading small {
        margin-top: 0.15rem;
        font-size: 0.62rem;
        line-height: 1.2;
    }

    /*
     * Keep values compact and consistently aligned.
     */
    .player-stat-comparison-table td {
        font-size: 0.8rem;
        text-align: center;
    }

    .player-stat-category-heading th {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }
}

/* =========================================================
   NFL team statistics comparison
   ========================================================= */

.team-stat-comparison {
    margin-top: 1.25rem;
}

/*
 * Team tables can contain many seasons. Keep the table horizontally
 * scrollable rather than crushing the season columns.
 */
@media (min-width: 710px) {
    .team-stat-comparison .player-stat-comparison-table {
        max-width: none;
    }

    .team-stat-comparison .player-stat-comparison-scroll {
        max-width: 100%;
    }
}

/* =========================================================
   NFL team statistics — desktop leaders
   ========================================================= */

.team-stat-desktop-leaders {
    margin-top: 1.5rem;
}

.team-stat-desktop-leaders .team-stat-leaders+.team-stat-leaders {
    margin-top: 1.5rem;
}

@media (max-width: 710px) {
    .team-stat-desktop-leaders {
        display: none;
    }
}

/* =========================================================
   NFL team statistics — leader placement
   ========================================================= */

.team-stat-desktop-leaders {
    margin-top: 1rem;
}

.team-stat-desktop-leaders>.section-heading {
    margin-bottom: 0.75rem;
}

.team-stat-desktop-leaders>.team-stat-leaders {
    margin-top: 0;
}

.team-stat-desktop-leaders>.team-stat-leaders+.team-stat-leaders {
    margin-top: 1rem;
}

.team-stat-desktop-leaders .team-stat-leader-grid {
    margin-top: 0.75rem;
}

@media (max-width: 710px) {
    .team-stat-desktop-leaders {
        display: none;
    }
}

/* =========================================================
   NFL section navigation
   ========================================================= */

.team-tab-navigation {
    position: sticky;
    top: 0;
    z-index: 40;

    display: flex;
    align-items: center;
    gap: 0.45rem;

    margin: 1rem 0 1.5rem;
    padding: 0.55rem;

    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;

    background: rgba(13, 18, 28, 0.96);
    border: 1px solid var(--border-colour, #2d3748);
    border-radius: 0.85rem;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.team-tab-navigation a {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0.6rem 0.85rem;

    color: var(--text-muted, #aeb7c7);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    border: 1px solid transparent;
    border-radius: 0.65rem;

    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.team-tab-navigation a:hover,
.team-tab-navigation a:focus-visible {
    color: var(--text-colour, #ffffff);
    background: rgba(255, 255, 255, 0.05);
}

.team-tab-navigation a.active,
.team-tab-navigation a[aria-current="location"] {
    color: var(--accent-colour, #ffb000);
    background: rgba(255, 176, 0, 0.13);
    border-color: rgba(255, 176, 0, 0.2);
}

.team-overview-section,
.team-page-section {
    scroll-margin-top: 84px;
}


/* =========================================================
   NFL comparison tables — stable scrolling and headings
   ========================================================= */

/*
 * The table should scroll horizontally inside its own container.
 * It must not push the complete page wider than the viewport.
 */
.player-stat-comparison,
.team-stat-comparison {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.player-stat-comparison-scroll {
    position: relative;

    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: visible;

    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

/*
 * The comparison header must scroll with the table.
 *
 * Existing sticky-position rules are what cause season headings to
 * move down into Overview, Passing and other category rows.
 */
.player-stat-comparison-table thead,
.player-stat-comparison-table thead tr,
.player-stat-comparison-table thead th {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
}

/*
 * Keep ordinary statistic labels available while scrolling sideways,
 * but do not apply this behaviour to full-width category headings.
 */
.player-stat-comparison-table tbody tr:not(.player-stat-category-heading)>th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;

    background: var(--panel-colour,
            #171e2b);
}

/*
 * A category heading spans the complete table. It must never inherit
 * the sticky first-column behaviour.
 */
.player-stat-category-heading,
.player-stat-category-heading th {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    transform: none !important;
    writing-mode: horizontal-tb !important;

    white-space: normal !important;
    text-align: left !important;
}

.player-stat-category-heading th {
    z-index: auto !important;
}


/* =========================================================
   NFL comparison tables — corrected table structure
   ========================================================= */

.player-stat-comparison-table {
    width: max-content;
    min-width: 100%;
    max-width: none;

    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.player-stat-comparison-table thead {
    display: table-header-group !important;
}

.player-stat-comparison-table tbody {
    display: table-row-group !important;
}

.player-stat-comparison-table tr {
    display: table-row !important;
}

.player-stat-comparison-table th,
.player-stat-comparison-table td {
    display: table-cell !important;
    box-sizing: border-box;
}

/*
 * Keep the category bars aligned with the complete table.
 */
.player-stat-category-heading th {
    position: static !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    padding: 0.65rem 1rem !important;

    text-align: left !important;
    white-space: normal !important;

    transform: none !important;
    writing-mode: horizontal-tb !important;
}

/*
 * Only ordinary statistic labels should remain visible while
 * horizontally scrolling.
 */
.player-stat-comparison-table tbody tr:not(.player-stat-category-heading)>th:first-child {
    position: sticky !important;
    left: 0;
    z-index: 4;

    background: var(--panel-colour, #171e2b);
}


/* =========================================================
   NFL comparison tables — season column headers
   ========================================================= */

@media (min-width: 711px) {

    /*
     * Statistic-name column.
     */
    .player-stat-comparison-label,
    .player-stat-comparison-table tbody tr:not(.player-stat-category-heading)>th:first-child {
        width: 205px;
        min-width: 205px;
        max-width: 205px;
    }

    /*
     * Individual season columns.
     */
    .player-stat-comparison-table thead th:not(:first-child),
    .player-stat-comparison-table tbody td {
        width: 104px;
        min-width: 104px;
        max-width: 104px;
    }

    /*
     * Give the rotated wording enough vertical room.
     */
    .player-stat-comparison-table thead th {
        position: static !important;
        top: auto !important;
        left: auto !important;
        z-index: auto !important;
    }

    .player-stat-comparison-table thead th:not(:first-child) {
        position: relative !important;

        height: 215px;
        padding: 0;

        overflow: visible;
        vertical-align: bottom;
    }

    .player-stat-comparison-table thead th:first-child {
        height: 215px;
        padding: 0 1rem 1rem;

        vertical-align: bottom;
        text-align: left;
    }

    /*
     * Complete header container.
     */
    .player-stat-column-heading {
        position: relative;

        display: block;

        width: 104px;
        height: 215px;
        min-width: 104px;

        padding: 0;
        overflow: visible;
    }

    /*
     * Upright team logo.
     */
    .player-stat-column-heading>img {
        position: absolute;

        top: 16px;
        left: 50%;

        width: 32px;
        height: 32px;

        margin: 0;
        object-fit: contain;

        transform: translateX(-50%);
    }

    /*
     * Rotated season wording.
     *
     * The text box is deliberately wider than the visible column.
     * Once rotated, that width becomes the vertical height.
     */
    .player-stat-column-heading>div {
        position: absolute;

        left: 50%;
        bottom: 12px;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        width: 138px;
        height: 64px;

        margin: 0;

        overflow: visible;
        white-space: nowrap;
        text-align: left;

        transform:
            translateX(-50%) rotate(-90deg);

        transform-origin: center;
    }

    .player-stat-column-heading strong,
    .player-stat-column-heading span,
    .player-stat-column-heading small {
        display: block;

        width: 134px;
        max-width: 134px;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .player-stat-column-heading strong {
        font-size: 0.76rem;
        line-height: 1.2;
    }

    .player-stat-column-heading span {
        margin-top: 0.12rem;

        font-size: 0.68rem;
        line-height: 1.2;
    }

    .player-stat-column-heading small {
        margin-top: 0.12rem;

        font-size: 0.62rem;
        line-height: 1.2;
    }

    .player-stat-comparison-table tbody td {
        padding-left: 0.55rem;
        padding-right: 0.55rem;

        font-size: 0.8rem;
        text-align: center;
    }
}


/* =========================================================
   NFL comparison tables — narrow screens
   ========================================================= */

@media (max-width: 710px) {

    /*
     * Existing behaviour: use the stacked history layout rather than
     * the wide comparison table.
     */
    .player-stat-comparison {
        display: none;
    }

    .player-stat-mobile-history {
        display: block;
        margin-top: 1.25rem;
    }

    .team-tab-navigation {
        top: 0;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding: 0.45rem;
        border-radius: 0.75rem;
    }

    .team-tab-navigation a {
        min-height: 36px;
        padding: 0.55rem 0.75rem;
        font-size: 0.86rem;
    }

    .team-overview-section,
    .team-page-section {
        scroll-margin-top: 76px;
    }
}

/*
 * Remove any inherited inset or transformed-row behaviour from older
 * comparison-table CSS.
 */
.player-stat-comparison-table tbody,
.player-stat-comparison-table tbody tr,
.player-stat-comparison-table tbody th,
.player-stat-comparison-table tbody td {
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
}

.player-stat-column-heading>div {
    position: absolute;

    left: 50%;
    bottom: 44px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    width: 138px;
    height: 64px;

    margin: 0;

    overflow: visible;
    white-space: nowrap;
    text-align: left;

    transform:
        translateX(-50%) rotate(-90deg);

    transform-origin: center;
}

.player-stat-comparison-table thead th:not(:first-child) {
    padding-bottom: 0 !important;
}

.player-stat-category-heading th {
    position: relative !important;
    z-index: 5 !important;
}

/* =========================================================
   NFL comparison tables — sticky left labels
   ========================================================= */

/*
 * Keep the Statistic heading visible while the season columns
 * are scrolled horizontally.
 */
.player-stat-comparison-table thead .player-stat-comparison-label {
    position: sticky !important;
    left: 0 !important;
    z-index: 8 !important;

    background: var(--panel-colour, #171e2b);
}

/*
 * Category rows now contain:
 *
 * 1. a sticky category-label cell;
 * 2. a normal cell spanning the season columns.
 */
.player-stat-category-heading .player-stat-category-label {
    position: sticky !important;
    left: 0 !important;
    z-index: 7 !important;

    box-sizing: border-box;

    width: 205px !important;
    min-width: 205px !important;
    max-width: 205px !important;

    padding: 0.65rem 1rem !important;

    background: #28281f;
    color: var(--accent-colour, #ffb000);

    font-size: 0.72rem;
    font-weight: 800;
    text-align: left !important;
    text-transform: uppercase;
    letter-spacing: 0.07em;

    white-space: nowrap !important;
}

/*
 * Continue the category bar across all season columns.
 */
.player-stat-category-heading .player-stat-category-fill {
    position: static !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    padding: 0 !important;

    background: #28281f;
}

/*
 * Keep the ordinary statistic names above scrolling values.
 */
.player-stat-comparison-table tbody tr:not(.player-stat-category-heading)>th:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 6 !important;

    background: var(--panel-colour, #171e2b);
}

/*
 * Prevent old category-heading rules from changing the two-cell
 * structure.
 */
.player-stat-category-heading,
.player-stat-category-heading th {
    transform: none !important;
    writing-mode: horizontal-tb !important;
}

/*
 * The first column is narrower on smaller comparison-table screens.
 */
@media (min-width: 710px) and (max-width: 900px) {

    .player-stat-comparison-label,
    .player-stat-comparison-table tbody tr:not(.player-stat-category-heading)>th:first-child,
    .player-stat-category-heading .player-stat-category-label {
        width: 185px !important;
        min-width: 185px !important;
        max-width: 185px !important;
    }
}

/* =========================================================
   NFL team honours and trophy cabinet
   ========================================================= */

.team-honours-summary {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.team-honours-count {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.team-honours-count>span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.team-honours-count>strong {
    color: var(--accent);
    font-size: 3rem;
    line-height: 1;
}

.team-honours-count>small {
    color: var(--text-muted);
}

.team-trophy-cabinet {
    display: grid;
    grid-template-columns: repeat(auto-fit,
            minmax(115px, 1fr));
    gap: 0.75rem;
}

.team-trophy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;

    padding: 1rem 0.75rem;

    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);

    text-align: center;
}

.team-trophy-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    margin-bottom: 6px;
}

.team-trophy-image img {
    display: block;
    width: auto;
    height: 60px;
    max-width: 70px;
    object-fit: contain;
}

.team-trophy>strong {
    color: var(--accent);
    font-size: 1rem;
}

.team-trophy>span,
.team-trophy>small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

@media (max-width: 710px) {
    .team-honours-summary {
        grid-template-columns: 1fr;
    }

    .team-trophy-cabinet {
        grid-template-columns: repeat(2,
                minmax(0, 1fr));
    }
}

/* =========================================================
   NFL coaching and staff
   ========================================================= */

.team-staff-groups {
    display: grid;
    gap: 1rem;
}

.team-staff-group {
    padding: 1rem;

    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--panel);
}

.team-staff-grid {
    display: grid;
    grid-template-columns: repeat(3,
            minmax(0, 1fr));
    gap: 0.75rem;
}

.team-staff-card {
    display: flex;
    min-width: 0;
    gap: 0.75rem;
    align-items: center;

    padding: 0.85rem;

    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.02);

    color: inherit;
    text-decoration: none;
}

.team-staff-card:hover {
    border-color: var(--accent);
}

.team-staff-image {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;

    place-items: center;
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--page);
}

.team-staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-staff-card-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

.team-staff-card-content>strong,
.team-staff-card-content>span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-staff-card-content>span:not(.result-pill) {
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 900px) {
    .team-staff-grid {
        grid-template-columns: repeat(2,
                minmax(0, 1fr));
    }
}

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

/* =========================================================
   NFL staff profile page
   ========================================================= */

.staff-biography-copy {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.75;
}

.staff-assignment-history {
    display: grid;
    gap: 0.75rem;
}

.staff-assignment-card {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.3fr) minmax(180px, 1fr) minmax(190px, 0.9fr) auto;
    gap: 1rem;
    align-items: center;

    padding: 1rem;

    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--panel);
}

.staff-assignment-team {
    display: flex;
    min-width: 0;
    gap: 0.75rem;
    align-items: center;
}

.staff-assignment-team img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    object-fit: contain;
}

.staff-assignment-team>div,
.staff-assignment-role {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

.staff-assignment-team small,
.staff-assignment-role small,
.staff-assignment-dates small {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.staff-assignment-team h3 {
    margin: 0;
    font-size: 1rem;
}

.staff-assignment-team h3 a {
    color: inherit;
    text-decoration: none;
}

.staff-assignment-team h3 a:hover {
    color: var(--accent);
}

.staff-assignment-team span,
.staff-assignment-role span {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.staff-assignment-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.staff-assignment-dates>div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.staff-assignment-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.staff-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 950px) {
    .staff-assignment-card {
        grid-template-columns:
            minmax(220px, 1fr) minmax(180px, 1fr);
    }

    .staff-assignment-status {
        justify-content: flex-start;
    }
}

@media (max-width: 650px) {
    .staff-assignment-card {
        grid-template-columns: 1fr;
    }

    .staff-assignment-dates {
        grid-template-columns: 1fr 1fr;
    }
}

.api-debug-output {
    max-height: 500px;
    overflow: auto;

    padding: 1rem;

    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: #0b0f17;

    color: var(--text);
    font-family: monospace;
    font-size: 0.76rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* =========================================================
   NFL staff importer
   ========================================================= */

.staff-import-text-field {
    grid-column: 1 / -1;
}

.staff-import-text-field textarea {
    width: 100%;
    min-height: 320px;
    resize: vertical;

    padding: 0.9rem;

    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: var(--page);
    color: var(--text);

    font: inherit;
    line-height: 1.55;
}

.staff-import-text-field textarea:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(255, 176, 0, 0.15);
    outline-offset: 1px;
}

.form-help {
    margin: 0.25rem 0;

    color: var(--text-muted);
    font-size: 0.78rem;
}

.staff-import-format-example {
    display: grid;
    grid-column: 1 / -1;
    gap: 0.45rem;

    padding: 0.85rem;

    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
}

.staff-import-format-example strong {
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.staff-import-format-example code {
    display: block;

    color: var(--text-muted);
    font-size: 0.76rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.staff-import-invalid-row td {
    background: rgba(255, 80, 90, 0.05);
}

/* =========================================================
   NFL staff webpage importer
   ========================================================= */

.staff-import-method {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;

    margin: 0;
    padding: 1rem;

    border: 1px solid var(--border);
    border-radius: 0.65rem;
}

.staff-import-method legend {
    padding: 0 0.35rem;

    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.staff-import-method-option {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;

    padding: 0.85rem;

    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.02);

    cursor: pointer;
}

.staff-import-method-option input {
    margin-top: 0.2rem;
}

.staff-import-method-option>span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.staff-import-method-option small {
    color: var(--text-muted);
    line-height: 1.45;
}

.staff-import-source-field {
    grid-column: 1 / -1;
}

.staff-import-source-field input {
    width: 100%;
}

@media (max-width: 710px) {
    .staff-import-method {
        grid-template-columns: 1fr;
    }
}

.team-trophy-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    margin-bottom: 6px;
}

.team-trophy-image img {
    display: block;
    width: auto;
    height: 60px;
    max-width: 70px;
    object-fit: contain;
}

.team-card-badges {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.team-card-honours {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.team-card-honours img {
    display: block;
    width: auto;
    height: 20px;
    object-fit: contain;
}

.team-card-honours strong {
    color: var(--accent);
    font-size: 0.72rem;
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand-logo {
    display: block;
    width: min(100%, 320px);
    height: auto;
    margin: 0 auto 1.25rem;
}

.login-brand h1 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1.15;
}

.login-brand-motto {
    margin: 0.65rem 0 0;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-brand-intro {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* ---------------------------------------------------------
   Dashboard branding
   --------------------------------------------------------- */

.dashboard-welcome {
    margin-bottom: 2rem;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.dashboard-welcome-brand {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.dashboard-welcome-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
}

.dashboard-welcome-copy {
    min-width: 0;
}

.dashboard-welcome-copy h1 {
    margin: 0.35rem 0 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.dashboard-motto {
    margin: 0.7rem 0 0;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dashboard-welcome-text {
    max-width: 680px;
    margin: 1rem 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.dashboard-games-section {
    margin-top: 0;
}

@media (max-width: 710px) {
    .dashboard-welcome {
        padding: 1.5rem;
    }

    .dashboard-welcome-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .dashboard-welcome-logo {
        width: 140px;
        align-self: center;
    }

    .dashboard-welcome-copy {
        width: 100%;
        text-align: center;
    }

    .dashboard-welcome-text {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---------------------------------------------------------
   Main site header branding
   --------------------------------------------------------- */

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    text-decoration: none;
    min-width: 0;
}

.site-brand-logo {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 auto;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.site-brand-text strong {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-brand-text>span {
    margin-top: 0.15rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
}

@media (max-width: 710px) {
    .site-brand-text {
        display: none;
    }

    .site-brand-logo {
        width: 44px;
        height: 44px;
    }
}

/* ---------------------------------------------------------
Global footer
--------------------------------------------------------- */

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}

.site-footer-inner {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 0.4rem;
    text-align: center;

    color: var(--text-muted);
    font-size: 0.78rem;
}

.site-footer-inner p {
    margin: 0;
}

.site-footer-motto {
    margin: 0;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
Global navigation
--------------------------------------------------------- */

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.15rem;
}

.site-nav-link {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;

    transition:
        color 0.15s ease,
        opacity 0.15s ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
    color: var(--accent);
}

.site-nav-link.is-active {
    color: var(--accent);
}

.site-nav-user {
    color: var(--text);
    font-size: 0.82rem;
    white-space: nowrap;
}

.site-nav-logout {
    color: var(--accent);
}

@media (max-width: 760px) {
    .site-nav {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .site-nav-link,
    .site-nav-user {
        font-size: 0.76rem;
    }
}

/* ---------------------------------------------------------
Login page
--------------------------------------------------------- */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem 1rem;
}

.login-card {
    width: min(100%, 620px);
    margin: 0 auto;
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: block;
    width: min(220px, 45vw);
    height: auto;
    margin: 0 auto 1.5rem;
}

.login-card h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.login-motto {
    margin: 0.5rem 0 0;
    text-align: center;

    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-intro {
    margin: 1rem 0 2rem;
    text-align: center;
    color: var(--text-muted);
}

.login-card form {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.login-card label {
    display: block;
    margin: 0 0 0.45rem;

    font-weight: 700;
}

.login-card input {
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 0.85rem;

    box-sizing: border-box;
}

.login-card form label:not(:first-of-type) {
    margin-top: 1rem;
}

.login-card button {
    width: 100%;
    min-height: 46px;
    margin-top: 1.25rem;
}

@media (max-width: 760px) {
    .login-page {
        align-items: flex-start;
        padding: 2rem 1.25rem;
    }

    .login-card {
        width: 100%;
        max-width: 520px;
    }

    .login-logo {
        width: min(180px, 42vw);
        margin-bottom: 1rem;
    }

    .login-brand {
        margin-bottom: 1.5rem;
    }

    .login-card h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.15;
    }

    .login-intro {
        margin-bottom: 1.5rem;
    }

    .login-card form {
        max-width: 100%;
    }

    .login-card input,
    .login-card button {
        min-height: 44px;
    }
}

/* ---------------------------------------------------------
Login / authentication
--------------------------------------------------------- */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem 1rem;
}

.login-card {
    width: min(100%, 620px);
    margin: 0 auto;
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand-logo {
    display: block;
    width: min(220px, 45vw);
    max-width: 100%;
    height: auto;

    margin: 0 auto 1.5rem;
}

.login-brand h1 {
    margin: 0;

    font-size: clamp(1.7rem, 4vw, 2.2rem);
    line-height: 1.15;

    text-align: center;
}

.login-brand-motto {
    margin: 0.6rem 0 0;

    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
}

.login-brand-intro {
    margin: 1rem 0 0;

    color: var(--text-muted);
    text-align: center;
}

.login-card form {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.login-card form label {
    display: block;

    margin: 0 0 0.45rem;

    font-weight: 700;
}

.login-card form label:not(:first-of-type) {
    margin-top: 1rem;
}

.login-card form input[type="text"],
.login-card form input[type="password"] {
    width: 100%;
    min-height: 46px;

    padding: 0.7rem 0.85rem;

    box-sizing: border-box;
}

.login-card form button {
    width: 100%;
    min-height: 46px;

    margin-top: 1.25rem;
}

@media (max-width: 760px) {
    .auth-page {
        min-height: 100svh;

        align-items: flex-start;

        padding: 2rem 1.25rem;
    }

    .login-card {
        width: 100%;
        max-width: 520px;
    }

    .login-brand {
        margin-bottom: 1.5rem;
    }

    .login-brand-logo {
        width: min(180px, 42vw);
        margin-bottom: 1rem;
    }

    .login-brand h1 {
        font-size: clamp(1.45rem, 5.5vw, 1.9rem);
    }

    .login-brand-motto {
        font-size: 0.78rem;
    }

    .login-brand-intro {
        margin-top: 0.8rem;
    }

    .login-card form {
        max-width: 100%;
    }

    .login-card form input[type="text"],
    .login-card form input[type="password"],
    .login-card form button {
        min-height: 44px;
    }
}

/* =========================================
   NFL TEAM W-L-D RECORDS
========================================= */

.nfl-picks-page .pick-team-button,
.nfl-fixtures-page .fixture-match-team {
    position: relative;
}

/* Position records in the lower-right corner. */

.nfl-team-wld {
    position: absolute;
    right: 14px;
    bottom: 9px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;

    color: #c5cbd5;
    pointer-events: none;
    white-space: nowrap;
}

.nfl-team-wld strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

.nfl-team-wld small {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #8996a9;
}

/* Smaller screens */

@media (max-width: 600px) {
    .nfl-team-wld {
        right: 8px;
        bottom: 6px;
    }

    .nfl-team-wld strong {
        font-size: 11px;
    }

    .nfl-team-wld small {
        font-size: 8px;
    }
}

/* =========================================
   NFL DIVISION STANDINGS
   Teams page
========================================= */

/*
 * Accommodate the new standings information
 * without changing the existing team cards.
 */

.nfl-teams-page .team-card {
    grid-template-columns:
        52px minmax(0, 1fr) auto 12px;

    gap: 10px;
}

/*
 * Position and W-L-D record.
 */

.team-division-standing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;

    gap: 3px;
    min-width: 54px;

    text-align: right;
    white-space: nowrap;
}

/*
 * Divisional position.
 */

.team-division-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;
    min-height: 22px;

    padding: 3px 6px;

    border: 1px solid var(--panel-border);
    border-radius: 6px;

    background: rgba(174, 183, 199, 0.08);
    color: var(--text-muted);

    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
}

/*
 * Highlight an undisputed division leader.
 */

.team-division-position.division-leader {
    border-color: rgba(255, 176, 0, 0.4);
    background: rgba(255, 176, 0, 0.13);
    color: var(--accent);
}

/*
 * Team's current season record.
 */

.team-division-record {
    color: var(--text-main);

    font-size: 0.78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/*
 * Maintain spacing around the arrow.
 */

.nfl-teams-page .team-card-arrow {
    justify-self: end;
}

/*
 * Mobile adjustments.
 */

@media (max-width: 560px) {

    .nfl-teams-page .team-card {
        grid-template-columns:
            44px minmax(0, 1fr) auto;

        gap: 8px;
    }

    .nfl-teams-page .team-card-arrow {
        display: none;
    }

    .team-division-standing {
        min-width: 48px;
    }

    .team-division-position {
        font-size: 0.66rem;
    }

    .team-division-record {
        font-size: 0.72rem;
    }
}