.fantasy-game-hero {
    margin-top: 16px;
    padding: 28px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, #082c47, #0b4f8a);
    border-top: 6px solid #f4b942;
}

.fantasy-game-hero h1 {
    margin: 8px 0;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.25rem);
}

.fantasy-hero-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.fantasy-hero-logos img,
.fantasy-team-header img {
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    padding: 5px;
}

.fantasy-hero-logos span,
.fantasy-eyebrow {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.fantasy-hero-matchup {
    font-size: 1.15rem;
}

.fantasy-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.fantasy-pdf-button {
    font-weight: 800;
}

.fantasy-data-notice {
    padding: 16px;
    color: #503a00;
    background: #fff7dc;
    border-left: 5px solid #d59600;
}

.fantasy-team {
    --fantasy-team: #002244;
    --fantasy-accent: #d0d5dd;
    overflow: hidden;
    border-top: 8px solid var(--fantasy-team);
}

.fantasy-team-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--fantasy-team) 10%, white), #ffffff);
    border-bottom: 2px solid var(--fantasy-accent);
}

.fantasy-team-header h2 {
    margin: 2px 0;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.fantasy-team-header p {
    margin: 2px 0;
}

.fantasy-team-header .fantasy-eyebrow {
    color: var(--fantasy-team);
}

.fantasy-team-body {
    padding: 22px;
}

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

.fantasy-team-snapshot p,
.fantasy-player-metrics p {
    margin: 0;
    padding: 12px;
    background: #f3f6f8;
    border: 1px solid #dce3e8;
    border-radius: 5px;
}

.fantasy-team-snapshot span,
.fantasy-player-metrics span {
    display: block;
    margin-bottom: 4px;
    color: #586b78;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.fantasy-team-outlook {
    margin-top: 14px;
    padding: 15px;
    background: #f8fafb;
    border-left: 4px solid var(--fantasy-team);
}

.fantasy-team-outlook p {
    margin: 5px 0 0;
    font-size: 1.02rem;
    line-height: 1.55;
}

.fantasy-section-title {
    margin: 26px 0 12px;
    padding-bottom: 7px;
    border-bottom: 3px solid var(--fantasy-team);
}

.fantasy-section-intro {
    margin: -5px 0 13px;
    color: #526572;
    font-size: .88rem;
}

.fantasy-position-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.fantasy-position-column,
.fantasy-position-group {
    min-width: 0;
}

.fantasy-position-group {
    --fantasy-position-color: var(--fantasy-team);
    margin-bottom: 12px;
}

.fantasy-position-group-qb { --fantasy-position-color: #2563eb; }
.fantasy-position-group-rb { --fantasy-position-color: #167c3a; }
.fantasy-position-group-wr { --fantasy-position-color: #7c3aed; }
.fantasy-position-group-te { --fantasy-position-color: #c2410c; }

.fantasy-position-group > h3 {
    margin: 0;
    padding: 7px 8px;
    color: #ffffff;
    background: var(--fantasy-position-color);
    border-radius: 5px 5px 0 0;
    font-size: .8rem;
    line-height: 1.2;
    letter-spacing: .01em;
}

.fantasy-position-group > h3 .fantasy-position {
    padding: 0;
    margin-right: 3px;
    background: transparent;
    font-size: .72rem;
}

.fantasy-position-group > h3 small {
    font-size: .68rem;
}

.fantasy-compact-player {
    min-width: 0;
    padding: 9px 9px 8px;
    background: #ffffff;
    border: 1px solid #d5dde3;
    border-top: 0;
    border-left: 4px solid var(--fantasy-position-color);
}

.fantasy-compact-player:last-child {
    border-radius: 0 0 5px 5px;
}

.fantasy-compact-heading {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    justify-content: space-between;
}

.fantasy-compact-heading h4 {
    min-width: 0;
    margin: 0;
    color: #172033;
    font-size: .92rem;
    line-height: 1.2;
}

.fantasy-compact-heading .fantasy-injury-badge {
    flex: 0 0 auto;
    padding: 2px 4px;
    font-size: .6rem;
}

.fantasy-compact-metrics,
.fantasy-compact-stats {
    margin: 5px 0 0;
    font-size: .72rem;
    line-height: 1.35;
}

.fantasy-compact-metrics {
    color: #30465a;
}

.fantasy-compact-stats {
    color: #61717c;
}

.fantasy-special-teams-strip {
    margin-top: 4px;
    padding: 10px 12px;
    color: #405563;
    background: #f1f5f8;
    border: 1px solid #ced9e0;
    border-left: 5px solid var(--fantasy-team);
    border-radius: 5px;
}

.fantasy-special-teams-strip p {
    margin: 4px 0;
    font-size: .8rem;
    line-height: 1.45;
}

.fantasy-player-grid,
.fantasy-watch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fantasy-watch-grid .fantasy-player-card {
    border-style: dashed;
}

.fantasy-player-card {
    min-width: 0;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #cfd9e0;
    border-left: 5px solid var(--fantasy-team);
    border-radius: 5px;
}

.fantasy-player-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.fantasy-player-heading h3 {
    margin: 0;
    font-size: 1.08rem;
}

.fantasy-player-heading p {
    margin: 2px 0 0;
    color: #61717c;
    font-size: .78rem;
}

.fantasy-position,
.fantasy-injury-badge {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.2;
}

.fantasy-position {
    color: #ffffff;
    background: var(--fantasy-team);
}

.fantasy-position-rb { background: #167c3a; }
.fantasy-position-wr { background: #8a3ea3; }
.fantasy-position-te { background: #a85b00; }
.fantasy-position-k { background: #4e6473; }

.fantasy-injury-badge {
    color: #725008;
    background: #fff1bc;
    border: 1px solid #d6a500;
}

.fantasy-injury-out {
    color: #8e1b27;
    background: #fce8eb;
    border-color: #c94655;
}

.fantasy-injury-doubtful {
    color: #86420a;
    background: #fff0e1;
    border-color: #d27a2d;
}

.fantasy-current-state {
    margin: 12px 0;
    padding: 8px 10px;
    color: #314d60;
    background: #eef5f8;
}

.fantasy-player-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.fantasy-player-metrics p {
    padding: 7px;
    font-size: .72rem;
}

.fantasy-player-metrics b {
    font-size: .9rem;
}

.fantasy-stat-line,
.fantasy-background,
.fantasy-injury-line,
.fantasy-no-injury,
.fantasy-player-note {
    margin: 10px 0 0;
    font-size: .8rem;
    line-height: 1.45;
}

.fantasy-background,
.fantasy-no-injury {
    color: #60717d;
}

.fantasy-player-note {
    padding-top: 9px;
    font-weight: 650;
    border-top: 1px solid #e0e6ea;
}

.fantasy-injury-watch {
    margin-top: 22px;
    padding: 17px;
    background: #fffaf0;
    border: 1px solid #ead7a8;
}

.fantasy-injury-watch h3 {
    margin-top: 0;
}

.fantasy-injury-watch ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.fantasy-injury-watch li {
    margin: 8px 0;
}

.fantasy-dst-note {
    margin-top: 14px;
    padding: 12px;
    color: #4d5e69;
    background: #f4f6f7;
    border-left: 4px solid #7d8d98;
}

.fantasy-sources {
    padding: 16px 20px;
    font-size: .8rem;
}

.fantasy-sources summary {
    color: #0b4f8a;
    cursor: pointer;
    font-weight: 750;
}

@media screen and (max-width: 800px) {
    .fantasy-team-snapshot,
    .fantasy-player-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fantasy-player-grid,
    .fantasy-watch-grid {
        grid-template-columns: 1fr;
    }

    .fantasy-position-columns {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 500px) {
    .fantasy-game-hero,
    .fantasy-team-body {
        padding: 17px;
    }

    .fantasy-hero-logos {
        gap: 12px;
    }

    .fantasy-hero-logos img {
        width: 58px;
        height: 58px;
    }

    .fantasy-team-header {
        align-items: flex-start;
        padding: 17px;
    }

    .fantasy-team-header img {
        width: 52px;
        height: 52px;
    }

    .fantasy-player-heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .fantasy-player-heading .fantasy-injury-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media print {
    .fantasy-game-hero {
        color: #000000;
        background: #ffffff;
        border: 2px solid #000000;
    }

    .fantasy-game-hero h1 {
        color: #000000;
    }

    .fantasy-hero-actions {
        display: none !important;
    }

    .fantasy-player-card {
        break-inside: avoid;
    }

    .fantasy-position-group,
    .fantasy-compact-player,
    .fantasy-special-teams-strip {
        break-inside: avoid;
    }
}
