/* Shared current / recent / season / career player scope. */
.player-history-scope {
    display: grid;
    grid-template-columns: minmax(150px, .55fr) minmax(360px, 1.45fr) minmax(150px, .6fr);
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    padding: 9px 11px;
    border: 1px solid #2d2b34;
    background: #101016;
}

.player-history-scope.hidden { display: none; }
.player-history-copy { display: flex; min-width: 0; flex-direction: column; }
.player-history-copy span,
.player-history-status,
.player-history-season {
    color: #716d78;
    font-family: var(--bt-mono);
    font-size: 7px;
    text-transform: uppercase;
}

.player-history-copy strong {
    overflow: hidden;
    color: #d9d5de;
    font-family: var(--bt-display);
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.player-history-actions { display: flex; align-items: center; gap: 4px; }
.player-history-actions button,
.player-history-season select {
    min-height: 31px;
    padding: 7px 9px;
    border: 1px solid #36333e;
    border-radius: 0;
    background: #15151c;
    color: #8f8a96;
    font-family: var(--bt-mono);
    font-size: 7px;
    cursor: pointer;
    text-transform: uppercase;
}

.player-history-actions button.active {
    border-color: var(--sport-accent, var(--bt-indigo));
    background: var(--sport-glow, rgba(102,126,234,.1));
    color: #fff;
}

.player-history-actions button:disabled { cursor: not-allowed; opacity: .4; }
.player-history-season { display: flex; align-items: center; gap: 6px; margin-left: 5px; }
.player-history-season.hidden { display: none; }
.player-history-season select { min-width: 104px; }
.player-history-status { text-align: right; }

.player-history-panel {
    margin: 8px 0;
    border: 1px solid #2d2b34;
    background: #101016;
}

.player-history-panel.hidden { display: none; }
.player-history-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border-bottom: 1px solid #2d2b34;
    background: linear-gradient(90deg, var(--sport-glow, rgba(102,126,234,.1)), transparent 58%);
}

.player-history-heading span,
.player-history-heading > strong,
.player-history-group > div:first-child small {
    color: #77727e;
    font-family: var(--bt-mono);
    font-size: 7px;
    text-transform: uppercase;
}

.player-history-heading h3 {
    margin-top: 3px;
    font-family: var(--bt-display);
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
}

.player-history-heading > strong { color: var(--sport-accent-soft, var(--bt-lilac)); }
.player-history-groups { display: grid; gap: 1px; background: #292731; }
.player-history-group { padding: 14px 16px; background: #121218; }
.player-history-group > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.player-history-group > div:first-child strong { font-family: var(--bt-display); font-size: 15px; font-weight: 600; text-transform: uppercase; }
.player-history-metrics { border: 1px solid #292731; }
.player-history-metrics > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 7px 10px;
    border-bottom: 1px solid #292731;
    background: #15151c;
}

.player-history-metrics > div:last-child { border-bottom: 0; }
.player-history-metrics span { color: #797580; font-family: var(--bt-mono); font-size: 7px; text-transform: uppercase; }
.player-history-metrics strong { color: #e1dde4; font-family: var(--bt-mono); font-size: 9px; font-weight: 500; }
.player-history-method,
.player-history-error { padding: 10px 16px; color: #716d78; font-family: var(--bt-mono); font-size: 7px; line-height: 1.5; }
.player-history-error { color: #d69a9f; }

@media (max-width: 820px) {
    .player-history-scope { grid-template-columns: 1fr; }
    .player-history-status { text-align: left; }
    .player-history-actions { flex-wrap: wrap; }
}

@media (max-width: 520px) {
    .player-history-actions { display: grid; grid-template-columns: 1fr; }
    .player-history-actions button { width: 100%; }
    .player-history-season { margin-left: 0; }
    .player-history-season select { flex: 1; }
}
