﻿.player-shell {
    display: grid;
    gap: 1.15rem;
}

.player-panel {
    padding: 1.2rem 1.2rem 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(circle at top right, rgba(98, 144, 255, 0.11), transparent 34%), linear-gradient(180deg, rgba(18,24,37,0.94), rgba(11,16,28,0.96));
    box-shadow: 0 18px 42px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.05);
}

.player-panel-alert {
    border-color: rgba(255, 185, 87, 0.18);
    background: rgba(31, 24, 12, 0.92);
}

.player-alert-title {
    font-size: 1rem;
    font-weight: 900;
    color: #fff2c9;
}

.player-alert-text {
    margin-top: 0.4rem;
    color: rgba(255, 240, 212, 0.82);
}

.player-hero {
    padding: 1.35rem;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(circle at top right, rgba(109, 162, 255, 0.16), transparent 32%), linear-gradient(180deg, rgba(16,24,39,0.98), rgba(10,15,27,0.98));
    box-shadow: 0 22px 50px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.05);
}

.player-hero-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 180px;
    gap: 1.2rem;
    align-items: start;
}

.player-portrait {
    width: 220px;
    height: 220px;
    border-radius: 28px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.10), transparent 55%), rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 26px 80px rgba(0,0,0,.50), inset 0 0 0 1px rgba(255,255,255,.05);
}

.player-headshot-xl {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}

.player-eyebrow,
.player-panel-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(170, 190, 230, 0.78);
    margin-bottom: 0.35rem;
}

.player-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.player-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -0.03em;
    color: #f8fbff;
}

.player-subtitle,
.player-panel-subtitle {
    margin-top: 0.45rem;
    color: rgba(214, 222, 244, 0.78);
    line-height: 1.55;
    max-width: 820px;
}

.player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.player-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    color: rgba(229, 234, 248, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
}

.player-chip-soft {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.player-chip-danger {
    color: #ffb3b3;
    background: rgba(186,56,56,.22);
    border-color: rgba(255,122,122,.35);
    box-shadow: 0 0 12px rgba(255,80,80,.15);
}

.player-chip-warn {
    background: rgba(255, 193, 7, .12);
    border: 1px solid rgba(255, 193, 7, .30);
    color: rgba(255,255,255,.92);
}

.player-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

    .player-hero-actions .btn {
        width: 100%;
    }

.player-reading-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.player-reading-card {
    padding: 0.95rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
}

.player-reading-index {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: rgba(171, 188, 227, 0.72);
    margin-bottom: 0.3rem;
}

.player-reading-title {
    color: #f5f8ff;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.player-reading-text {
    color: #eef3ff;
    line-height: 1.5;
}

.player-toolbar {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(18,24,37,0.94), rgba(11,16,28,0.96));
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.player-toolbar-left,
.player-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.player-toolbar-label {
    color: rgba(214, 222, 244, 0.74);
    font-size: 0.88rem;
    font-weight: 700;
}

.player-grid {
    display: grid;
    gap: 1rem;
}

.player-grid-top {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.player-grid-middle {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
}

.player-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.player-panel-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
    color: #f8fbff;
    letter-spacing: -0.02em;
}

.player-kpi-grid,
.player-injury-grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.9rem;
}

.player-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.player-injury-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-kpi-card {
    padding: 1rem 1rem 0.95rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.player-kpi-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(171, 188, 227, 0.72);
}

.player-kpi-value {
    margin-top: 0.45rem;
    font-size: 1.6rem;
    font-weight: 950;
    color: #f8fbff;
    line-height: 1;
}

.player-kpi-note {
    margin-top: 0.35rem;
    color: rgba(201, 210, 234, 0.66);
    line-height: 1.5;
    font-size: 0.86rem;
}

.player-injury-note,
.player-empty-state {
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(214, 222, 244, 0.76);
    line-height: 1.5;
}

.player-trend-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.player-trend-tab {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    color: rgba(229, 234, 248, 0.82);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

    .player-trend-tab.is-active {
        background: rgba(98, 144, 255, 0.14);
        color: #cfe1ff;
        border-color: rgba(98, 144, 255, 0.18);
    }

.player-trend-summary {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.player-trend-summary-item {
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
}

.player-trend-summary-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(171, 188, 227, 0.72);
}

.player-trend-summary-value {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.05rem;
    font-weight: 900;
    color: #f8fbff;
}

.player-trend-shell {
    margin-top: 0.95rem;
    height: 320px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
    padding: 0.9rem;
}

.player-streak-table-wrap,
.player-edge-table-wrap,
.player-log-table-wrap {
    margin-top: 0.95rem;
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
}

.player-streak-table,
.player-edge-table,
.player-log-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
}

    .player-streak-table thead th,
    .player-edge-table thead th,
    .player-log-table thead th {
        padding: 0.95rem 0.9rem;
        text-align: left;
        background: rgba(20, 28, 42, 0.97);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        color: #f4f7ff;
        font-size: 0.84rem;
        font-weight: 900;
        white-space: nowrap;
    }

    .player-streak-table tbody td,
    .player-edge-table tbody td,
    .player-log-table tbody td {
        padding: 0.9rem 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        color: #eaf0ff;
        white-space: nowrap;
    }

.player-form-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.68rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.player-form-positive {
    color: #9fe8c5;
    background: rgba(56, 201, 125, 0.11);
}

.player-form-negative {
    color: #ffb0b0;
    background: rgba(255, 88, 88, 0.12);
}

.player-form-warn {
    color: #ffcf8a;
    background: rgba(255, 161, 61, 0.12);
}

.player-form-neutral {
    color: rgba(228, 234, 248, 0.72);
    background: rgba(255,255,255,0.06);
}

.player-insights-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.95rem;
}

.player-insight-card {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
}

.player-insight-positive {
    border-color: rgba(56, 201, 125, 0.18);
}

.player-insight-negative {
    border-color: rgba(255, 88, 88, 0.18);
}

.player-insight-warn {
    border-color: rgba(255, 161, 61, 0.18);
}

.player-insight-title {
    color: #f6f9ff;
    font-weight: 900;
    margin-bottom: 0.3rem;
}

.player-insight-text {
    color: rgba(214, 222, 244, 0.78);
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .player-grid-top,
    .player-grid-middle {
        grid-template-columns: 1fr;
    }

    .player-hero-grid {
        grid-template-columns: 1fr;
    }

    .player-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

        .player-hero-actions .btn {
            width: auto;
        }
}

@media (max-width: 980px) {
    .player-reading-strip,
    .player-kpi-grid,
    .player-injury-grid,
    .player-trend-summary {
        grid-template-columns: 1fr;
    }
}

.player-edge-surface {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 18px;
    margin-top: 16px;
}

.player-edge-card {
    position: relative;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg,rgba(20,28,44,.92),rgba(12,18,31,.96));
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.player-edge-top,
.player-edge-title-row,
.player-edge-prices,
.player-edge-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.player-edge-context {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-edge-opponent {
    font-size: 1rem;
    font-weight: 700;
    color: #f4f7ff;
}

.player-edge-venue {
    font-size: .82rem;
    color: rgba(225,233,250,.66);
}

.player-edge-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.player-edge-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: .01em;
}

.player-edge-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f5f7ff;
}

.player-edge-metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
    margin-top: 10px;
}

.player-edge-metric {
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.03);
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-edge-metric-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(225,233,250,.56);
}

.player-edge-metric-value {
    font-size: 1rem;
    font-weight: 800;
    color: #f4f7ff;
}

    .player-edge-metric-value.is-positive {
        color: #68e3b4;
    }

    .player-edge-metric-value.is-negative {
        color: #ff8c8c;
    }

.player-edge-evidence {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
}

.player-edge-evidence-card {
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.025);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 88px;
}

.player-edge-evidence-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(225,233,250,.56);
}

.player-edge-evidence-title {
    font-size: .84rem;
    line-height: 1.35;
    color: #dfe7ff;
}

.player-edge-evidence-value {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: auto;
}

.player-edge-prices {
    gap: 8px;
}

.player-edge-results {
    justify-content: flex-start;
    gap: 8px;
}

.player-edge-result-pill {
    min-width: 58px;
    border-radius: 14px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,.03);
}

    .player-edge-result-pill.is-hit {
        background: rgba(98,227,179,.12);
        border-color: rgba(98,227,179,.28);
    }

    .player-edge-result-pill.is-miss {
        background: rgba(255,140,140,.12);
        border-color: rgba(255,140,140,.26);
    }

    .player-edge-result-pill.is-push {
        background: rgba(255,205,87,.10);
        border-color: rgba(255,205,87,.24);
    }

.player-edge-result-date {
    font-size: .7rem;
    color: rgba(225,233,250,.66);
}

.player-edge-result-value {
    font-size: .95rem;
    font-weight: 800;
    color: #f4f7ff;
}

@media (max-width: 980px) {
    .player-edge-metrics,
    .player-edge-evidence {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .player-edge-metrics,
    .player-edge-evidence {
        grid-template-columns: 1fr;
    }

    .player-edge-card {
        padding: 16px;
    }
}

.player-edge-signal-line {
    display: flex;
    gap: 6px;
    font-size: .78rem;
    color: rgba(225,233,250,.7);
    margin-top: 4px;
}

.grade-A {
    color: #68e3b4;
    font-weight: 700;
}

.grade-B {
    color: #7cc6ff;
    font-weight: 700;
}

.grade-C {
    color: #ffd166;
    font-weight: 700;
}

.grade-D {
    color: #ff8c8c;
    font-weight: 700;
}

.player-log-table-wrap {
    margin-top: 16px;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 22px;
    background: linear-gradient(180deg,rgba(20,28,44,.52),rgba(10,16,29,.72));
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.player-log-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 980px;
}

    .player-log-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: rgba(15,22,36,.96);
        color: #f4f7ff;
        font-size: .84rem;
        font-weight: 800;
        letter-spacing: .02em;
        text-align: left;
        padding: 16px 14px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        white-space: nowrap;
    }

    .player-log-table tbody td {
        padding: 16px 14px;
        border-bottom: 1px solid rgba(255,255,255,.06);
        color: rgba(232,238,252,.92);
        vertical-align: middle;
        white-space: nowrap;
    }

    .player-log-table tbody tr:last-child td {
        border-bottom: none;
    }

.player-log-row {
    transition: background .18s ease, transform .18s ease;
}

    .player-log-row:hover {
        background: rgba(255,255,255,.025);
    }

.player-log-date {
    color: rgba(225,233,250,.80);
    font-weight: 600;
}

.player-log-opponent-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-log-opponent-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 24px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.24));
}

.player-log-opponent-text {
    color: #f5f7ff;
    font-weight: 700;
    letter-spacing: .01em;
}

.player-log-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .03em;
    border: 1px solid rgba(255,255,255,.08);
}

    .player-log-result.is-win {
        color: #7df0b6;
        background: rgba(27,163,96,.14);
        border-color: rgba(73,214,144,.30);
        box-shadow: inset 0 0 0 1px rgba(125,240,182,.06);
    }

    .player-log-result.is-loss {
        color: #ff9a9a;
        background: rgba(186,56,56,.14);
        border-color: rgba(255,122,122,.26);
        box-shadow: inset 0 0 0 1px rgba(255,154,154,.05);
    }

    .player-log-result.is-neutral {
        color: rgba(225,233,250,.75);
        background: rgba(255,255,255,.04);
        border-color: rgba(255,255,255,.08);
    }

.player-log-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.08);
}

    .player-log-start.is-start {
        color: #dff1ff;
        background: rgba(90,150,255,.14);
        border-color: rgba(126,173,255,.24);
    }

    .player-log-start.is-bench {
        color: rgba(225,233,250,.76);
        background: rgba(255,255,255,.04);
        border-color: rgba(255,255,255,.08);
    }

.player-log-number {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #f4f7ff;
}

.player-log-number-strong {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,.04);
}

.player-log-ts {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.08);
    font-variant-numeric: tabular-nums;
}

    .player-log-ts.is-elite {
        color: #7df0b6;
        background: rgba(27,163,96,.14);
        border-color: rgba(73,214,144,.30);
    }

    .player-log-ts.is-good {
        color: #9ec9ff;
        background: rgba(67,118,220,.16);
        border-color: rgba(126,173,255,.24);
    }

    .player-log-ts.is-mid {
        color: #ffd88f;
        background: rgba(173,124,28,.14);
        border-color: rgba(255,208,110,.22);
    }

    .player-log-ts.is-low {
        color: #ff9f9f;
        background: rgba(185,66,66,.14);
        border-color: rgba(255,140,140,.22);
    }

.player-injury-panel {
    border: 1px solid rgba(255,255,255,.08);
    background: radial-gradient(circle at top right, rgba(130,70,255,.10), transparent 28%), linear-gradient(180deg, rgba(22,28,44,.94), rgba(10,16,29,.98));
    box-shadow: 0 16px 36px rgba(0,0,0,.24);
}

.player-injury-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.player-injury-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    margin-top: 18px;
}

.player-injury-note-card {
    margin-top: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    border-radius: 18px;
    padding: 16px 18px;
}

.player-injury-note-title {
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(225,233,250,.70);
    margin-bottom: 10px;
}

.player-injury-note-text {
    color: #eef3ff;
    line-height: 1.6;
    font-size: .98rem;
}

.player-injury-note-text-long {
    margin-top: 10px;
    color: rgba(225,233,250,.82);
}

.player-injury-footer {
    margin-top: 14px;
    font-size: .82rem;
    color: rgba(225,233,250,.62);
}

@media (max-width: 900px) {
    .player-injury-grid {
        grid-template-columns: 1fr;
    }
}

.player-injury-impact {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    color: #ffd88f;
    background: rgba(173,124,28,.14);
    border: 1px solid rgba(255,208,110,.22);
}

.player-injury-bar {
    margin-top: 10px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    overflow: hidden;
}

.player-injury-bar-fill {
    height: 100%;
    background: linear-gradient(90deg,#ff7b7b,#ffb3b3);
}

    .player-injury-bar-fill.is-high {
        background: linear-gradient(90deg,#59e1a8,#9ff0c8);
    }

    .player-injury-bar-fill.is-mid {
        background: linear-gradient(90deg,#ffd88f,#ffe7b8);
    }

    .player-injury-bar-fill.is-low {
        background: linear-gradient(90deg,#ff7b7b,#ffb3b3);
    }

    .player-injury-bar-fill.is-danger {
        background: linear-gradient(90deg,#ff6b6b,#ff9a9a);
        box-shadow: 0 0 10px rgba(255,90,90,.25);
    }

.player-chip-danger {
    font-weight: 800;
    letter-spacing: .02em;
    background: linear-gradient(135deg, rgba(186,56,56,.25), rgba(120,30,30,.25));
}

.player-injury-bar-label {
    font-size: .72rem;
    color: rgba(225,233,250,.55);
    margin-top: 2px;
}

.player-injury-note-text strong {
    color: #ffffff;
    font-weight: 700;
}