:root {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-tertiary: #2c2c2e;
    --bg-elevated: #3a3a3c;
    --bg-glass: rgba(28, 28, 30, 0.72);
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --green: #30d158;
    --orange: #ff9f0a;
    --red: #ff453a;
    --yellow: #ffd60a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: dark;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    min-height: 100vh;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: var(--bg-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.nav-brand {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    color: var(--text-secondary);
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-trigger:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-trigger.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-trigger .chevron {
    font-size: 0.625rem;
    transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-trigger .chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-dropdown-menu a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-menu a.active {
    color: var(--accent);
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ── Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 76px 24px 48px;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 76px 24px 48px;
}

/* ── Typography ── */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 32px;
}

h2 {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

/* ── Cards ── */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.card-clickable {
    cursor: pointer;
}

.card-clickable:hover {
    transform: translateY(-1px);
}

/* ── Player Cards ── */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.player-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.player-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.player-card .card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.player-card:hover .card-actions {
    opacity: 1;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.action-btn:hover {
    background: var(--accent);
    color: #fff;
}

.action-btn.remove-btn:hover {
    background: var(--red);
}

.hidden { display: none !important; }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.filter-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-family: var(--font);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
}

.player-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.player-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.player-stats {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.stat-pill {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-pill .stat-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.stat-pill .stat-label {
    color: var(--text-tertiary);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Value badge ── */
.value-badge {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green);
    font-variant-numeric: tabular-nums;
}

.value-badge.declining { color: var(--red); }
.value-badge.stable { color: var(--orange); }

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 3px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.tab {
    padding: 8px 18px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    background: none;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ── Tables ── */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.data-table th {
    text-align: left;
    padding: 10px 16px;
    font-weight: 500;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* ── Metrics Row ── */
.metrics-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.metric-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric-value {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.metric-change {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 2px;
}

.metric-change.positive { color: var(--green); }
.metric-change.negative { color: var(--red); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8125rem;
}

/* ── Search ── */
.search-bar {
    position: relative;
    margin-bottom: 24px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.search-bar input::placeholder {
    color: var(--text-tertiary);
}

.search-bar .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 0.75rem;
    line-height: 1;
    pointer-events: none;
}

/* ── Filters ── */
.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.filter-chip:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

select.filter-select {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-family: var(--font);
    cursor: pointer;
    outline: none;
    appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23a1a1a6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* ── Charts placeholder ── */
.chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    min-height: 300px;
}

/* ── Section ── */
.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* ── Login ── */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.login-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.login-btn {
    width: 100%;
    padding: 11px;
    margin-top: 8px;
}

.error-msg {
    background: rgba(255, 69, 58, 0.12);
    border: 1px solid rgba(255, 69, 58, 0.3);
    color: var(--red);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    margin-bottom: 16px;
}

/* ── Loading ── */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-tertiary);
}

.empty-state .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ── Phase badges ── */
.phase-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
}

.phase-badge.rising {
    background: rgba(48, 209, 88, 0.15);
    color: var(--green);
}

.phase-badge.peak {
    background: rgba(10, 132, 255, 0.15);
    color: var(--accent);
}

.phase-badge.declining {
    background: rgba(255, 159, 10, 0.15);
    color: var(--orange);
}

.phase-badge.rebuild {
    background: rgba(255, 69, 58, 0.15);
    color: var(--red);
}

/* ── Profile Dropdown ── */
.profile-menu {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.8125rem;
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.profile-trigger .avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-trigger .chevron {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    transition: transform 0.15s;
}

.profile-menu.open .profile-trigger .chevron {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 6px;
    display: none;
    z-index: 200;
}

.profile-menu.open .profile-dropdown {
    display: block;
}

.profile-dropdown .profile-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.profile-dropdown .profile-header .profile-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-dropdown .profile-header .profile-email {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.profile-dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.profile-dropdown a.danger:hover {
    color: var(--red);
}

/* ── Form Controls (dark selects & inputs) ── */
select, input[type="number"], input[type="text"], input[type="search"] {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.875rem;
    padding: 10px 14px;
    outline: none;
    transition: border-color var(--transition);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

select:focus, input:focus {
    border-color: var(--accent);
}

select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

select option:checked {
    background: var(--accent);
    color: #fff;
}

/* ── Custom Select (dx-select) ── */
.dx-select-wrap { position: relative; display: inline-block; width: 100%; }
.dx-select-wrap select { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.dx-select-trigger {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-family: var(--font); font-size: 0.875rem;
    padding: 10px 14px; cursor: pointer; outline: none;
    transition: border-color var(--transition); min-height: 42px; width: 100%;
}
.dx-select-trigger:hover { border-color: var(--border-hover); }
.dx-select-trigger:focus, .dx-select-wrap.open .dx-select-trigger { border-color: var(--accent); }
.dx-select-trigger .dx-arrow {
    width: 12px; height: 12px; flex-shrink: 0; margin-left: 8px; opacity: 0.5;
}
.dx-select-trigger .dx-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.dx-select-trigger .dx-placeholder { color: var(--text-tertiary); }
.dx-select-list {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); z-index: 9000; max-height: 280px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: var(--bg-elevated) transparent;
}
.dx-select-wrap.open .dx-select-list { display: block; }
.dx-select-list .dx-opt {
    padding: 10px 14px; cursor: pointer; font-size: 0.875rem; color: var(--text-primary);
    transition: background 0.1s; border-bottom: 1px solid var(--border);
}
.dx-select-list .dx-opt:last-child { border-bottom: none; }
.dx-select-list .dx-opt:hover { background: var(--bg-tertiary); }
.dx-select-list .dx-opt.selected { background: var(--bg-tertiary); color: var(--accent); font-weight: 600; }
.dx-select-list .dx-opt .dx-opt-sub { color: var(--text-tertiary); font-size: 0.8125rem; margin-left: 8px; }

/* ── Loading Spinner ── */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 12px;
}
.spinner-ball {
    display: inline-block;
    animation: spin 1s linear infinite;
}
.loading-spinner .spinner-ball {
    font-size: 2rem;
}
.loading-spinner .spinner-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}
/* @keyframes spin already defined above (line 823) */

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav { padding: 0 16px; }
    .container, .container-wide { padding: 68px 16px 32px; }
    .player-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 1.5rem; }
    .metrics-row { flex-wrap: wrap; }
}
