.players-page {
    background: var(--page-bg, #070b18);
    color: var(--text, #f8fafc);
    min-height: 70vh;
}

.player-hero {
    position: relative;
    overflow: hidden;
}

.players-hero-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78) 55%, rgba(2, 6, 23, 0.42)),
        radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.16), transparent 26%),
        url("https://images.unsplash.com/photo-1556764420-e37ef4cdfa5c?w=1600&h=520&fit=crop&auto=format") center/cover no-repeat;
    opacity: 0.92;
}

.player-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78) 55%, rgba(2, 6, 23, 0.42)),
        radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.16), transparent 26%);
    opacity: 0.92;
}

.player-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.72) 18%, rgba(249, 115, 22, 0.72) 82%, transparent);
}

.player-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: 0;
    font-weight: 900;
}

.player-intro {
    max-width: 720px;
    color: #cbd5e1;
    font-size: 1rem;
}

.players-content,
.player-content {
    padding: 26px 0 54px;
}

.players-filterbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 0.8fr) minmax(180px, 0.9fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: #0e1425;
}

.players-filterbar label {
    display: block;
    margin-bottom: 7px;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.players-filterbar input,
.players-filterbar select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: #0b1020;
    color: #f8fafc;
    padding: 0 12px;
    font: inherit;
}

.players-filterbar input:focus,
.players-filterbar select:focus {
    outline: 2px solid rgba(255, 122, 26, 0.35);
    border-color: rgba(255, 122, 26, 0.55);
}

.players-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.players-filter-actions button,
.players-filter-actions a,
.players-pagination a,
.players-pagination span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
}

.players-filter-actions button {
    border: 1px solid rgba(255, 122, 26, 0.45);
    background: rgba(255, 122, 26, 0.16);
    color: #fed7aa;
    padding: 0 16px;
    cursor: pointer;
}

.players-filter-actions a {
    color: #94a3b8;
    padding: 0 8px;
}

.players-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    color: #cbd5e1;
}

.players-toolbar strong {
    color: #ffb86b;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.player-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: #0e1425;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.player-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 26, 0.55);
    background: #121a30;
}

.player-card-media {
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(180deg, #182238, #0b1020);
}

.player-card-media img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
}

.player-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.player-card-body p,
.player-kicker {
    margin: 0 0 8px;
    color: #ffb86b;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 700;
}

.player-card-body h2 {
    margin: 0;
    font-size: 1.15rem;
}

.player-card-stats,
.player-stat-grid,
.player-thresholds {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.player-card-stats {
    margin-top: auto;
    padding-top: 16px;
}

.player-card-stats div,
.player-stat,
.player-thresholds div {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.7);
}

.player-card-stats span,
.player-stat span,
.player-thresholds span {
    display: block;
    color: #94a3b8;
    font-size: .72rem;
    text-transform: uppercase;
    font-weight: 700;
}

.player-card-stats strong,
.player-stat strong,
.player-thresholds strong {
    display: block;
    margin-top: 4px;
    color: #f8fafc;
    font-size: 1.35rem;
}

[data-theme='light'] .players-hero-band::before {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78) 55%, rgba(2, 6, 23, 0.42)),
        radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.16), transparent 26%),
        url("https://images.unsplash.com/photo-1556764420-e37ef4cdfa5c?w=1600&h=520&fit=crop&auto=format") center/cover no-repeat;
}

[data-theme='light'] .player-hero::before {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78) 55%, rgba(2, 6, 23, 0.42)),
        radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.16), transparent 26%);
}

[data-theme='light'] .player-hero h1 {
    color: #fff;
}

[data-theme='light'] .players-page {
    background: #f8fafc;
    color: #0f172a;
}

[data-theme='light'] .player-intro,
[data-theme='light'] .player-note,
[data-theme='light'] .player-copy {
    color: #475569;
}

[data-theme='light'] .players-hero-band .teams-breadcrumb,
[data-theme='light'] .player-hero .teams-breadcrumb,
[data-theme='light'] .players-hero-band .teams-hero-inner > p,
[data-theme='light'] .player-hero .player-intro {
    color: rgba(148, 163, 184, 0.92);
}

[data-theme='light'] .players-toolbar strong,
[data-theme='light'] .player-card-body h2,
[data-theme='light'] .player-stat strong,
[data-theme='light'] .player-thresholds strong,
[data-theme='light'] .player-zone-list strong,
[data-theme='light'] .player-game-log strong {
    color: #0f172a;
}

[data-theme='light'] .players-filterbar,
[data-theme='light'] .player-card,
[data-theme='light'] .player-panel {
    background: #ffffff;
    border-color: rgba(203, 213, 225, 0.9);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .players-filterbar label,
[data-theme='light'] .players-filter-actions a,
[data-theme='light'] .player-card-stats span,
[data-theme='light'] .player-stat span,
[data-theme='light'] .player-thresholds span,
[data-theme='light'] .player-zone-list span,
[data-theme='light'] .player-game-log span {
    color: #64748b;
}

[data-theme='light'] .players-filterbar input,
[data-theme='light'] .players-filterbar select {
    background: #f8fafc;
    color: #0f172a;
    border-color: rgba(203, 213, 225, 0.95);
}

[data-theme='light'] .players-filter-actions button {
    background: #fff7ed;
    color: #9a3412;
    border-color: rgba(249, 115, 22, 0.42);
}

[data-theme='light'] .player-card:hover {
    background: #fff7ed;
    border-color: rgba(249, 115, 22, 0.48);
}

[data-theme='light'] .player-card-media {
    background: linear-gradient(180deg, #e2e8f0, #f8fafc);
}

[data-theme='light'] .player-card-stats div,
[data-theme='light'] .player-stat,
[data-theme='light'] .player-thresholds div {
    background: #f8fafc;
    border-color: rgba(203, 213, 225, 0.9);
}

[data-theme='light'] .player-card-stats strong,
[data-theme='light'] .player-thresholds strong {
    color: #0f172a;
}

[data-theme='light'] .player-headshot {
    background: rgba(248, 250, 252, 0.88);
    border-color: rgba(249, 115, 22, 0.42);
}

[data-theme='light'] .player-meta > span,
[data-theme='light'] .player-meta > a {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(148, 163, 184, 0.32);
    color: #0f172a;
}

[data-theme='light'] .player-zone-list div,
[data-theme='light'] .player-game-log div {
    border-bottom-color: rgba(203, 213, 225, 0.85);
}

[data-theme='light'] .player-zone-list em,
[data-theme='light'] .player-game-log em,
[data-theme='light'] .player-card-body p,
[data-theme='light'] .player-kicker {
    color: #ea580c;
}

.players-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.players-pagination a,
.players-pagination span {
    min-width: 42px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #0e1425;
    color: #cbd5e1;
}

.players-pagination a:hover {
    border-color: rgba(255, 122, 26, 0.55);
    color: #fff;
}

.players-pagination .is-active {
    border-color: rgba(255, 122, 26, 0.55);
    background: rgba(255, 122, 26, 0.16);
    color: #fed7aa;
}

.players-pagination .is-disabled {
    pointer-events: none;
    opacity: .45;
}

[data-theme='light'] .players-pagination a,
[data-theme='light'] .players-pagination span {
    background: #ffffff;
    color: #475569;
    border-color: rgba(203, 213, 225, 0.9);
}

[data-theme='light'] .players-pagination a:hover,
[data-theme='light'] .players-pagination .is-active {
    background: #fff7ed;
    border-color: rgba(249, 115, 22, 0.48);
    color: #9a3412;
}

.player-hero-media {
    position: absolute;
    inset: 0;
    opacity: .3;
    z-index: 0;
}

.player-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-hero-inner {
    position: relative;
    z-index: 2;
}

.player-identity {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-top: 22px;
}

.player-headshot {
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .82);
    border: 1px solid rgba(255, 122, 26, .38);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.player-headshot img {
    width: 250px;
    max-width: none;
    max-height: 250px;
    object-fit: contain;
}

.player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.player-meta > span,
.player-meta > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #dbeafe;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 999px;
    padding: 7px 11px;
    text-decoration: none;
    font-weight: 700;
    font-size: .82rem;
}

.player-team-chip span {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.player-team-chip img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 40px;
}

.player-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 22px;
}

.player-stat.is-highlight {
    border-color: rgba(255, 122, 26, .55);
    background: rgba(255, 122, 26, .09);
}

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

.player-panel {
    background: #0e1425;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 8px;
    padding: 22px;
}

.player-related-news {
    margin-top: 18px;
}

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

.player-note,
.player-copy {
    color: #cbd5e1;
    line-height: 1.7;
}

.player-zone-list,
.player-game-log {
    display: grid;
    gap: 10px;
}

.player-zone-list div,
.player-game-log div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
    padding: 10px 0;
}

.player-game-log div {
    grid-template-columns: minmax(90px, 0.7fr) minmax(100px, auto) minmax(74px, auto);
}

.player-zone-list span,
.player-game-log span {
    color: #94a3b8;
}

.player-zone-list strong,
.player-game-log strong {
    color: #f8fafc;
}

.player-game-log strong {
    justify-self: end;
}

.player-zone-list em,
.player-game-log em {
    color: #ffb86b;
    font-style: normal;
    font-weight: 800;
}

.player-game-log em {
    justify-self: end;
}

@media (max-width: 760px) {
    .players-filterbar {
        grid-template-columns: 1fr;
    }

    .players-filter-actions {
        justify-content: space-between;
    }

    .players-toolbar,
    .player-identity {
        display: block;
    }

    .player-headshot {
        width: 160px;
        height: 160px;
        margin-bottom: 18px;
    }

    .player-headshot img {
        width: 190px;
        max-height: 190px;
    }

    .player-stat-grid,
    .player-panels,
    .player-related-grid {
        grid-template-columns: 1fr;
    }
}
