.players-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

.players-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    text-align: center;
}

.players-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dim);
    margin-bottom: 60px;
    letter-spacing: 0.1em;
}

.players-box {
    width: 100%;
    max-width: 600px;
    background: transparent;
}

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

.players-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.add-player-btn {
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.add-player-btn:hover:not(:disabled) {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold);
}
.add-player-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-color {
    width: 16px;
    height: 52px;
    border-radius: 8px;
}

.player-input-wrap {
    flex: 1;
    position: relative;
}

.player-input {
    width: 100%;
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px 20px;
    color: white;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s;
}

.player-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.player-delete {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.player-delete:hover:not(:disabled) {
    color: var(--red);
}
.player-delete:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.begin-conquest-btn {
    width: 100%;
    background: linear-gradient(180deg, #E6C238, #B8960C);
    border: none;
    border-radius: 6px;
    padding: 24px;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.2em;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(230, 194, 56, 0.2);
    transition: all 0.3s;
    margin-bottom: 24px;
}

.begin-conquest-btn:hover {
    box-shadow: 0 0 50px rgba(230, 194, 56, 0.4);
    transform: translateY(-2px);
}

.players-footer {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Split side-by-side layout styles */
.split-layout {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    justify-content: center;
    align-items: stretch;
    margin-top: 20px;
}

.players-box {
    flex: 1;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.08);
    border-radius: 20px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.players-box:hover {
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.02);
}

.multiplayer-box {
    border-color: rgba(0, 170, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(0, 170, 255, 0.01);
}

.multiplayer-box:hover {
    border-color: rgba(0, 170, 255, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 170, 255, 0.08);
}

.multiplayer-info-card {
    background: rgba(0, 170, 255, 0.03);
    border: 1px solid rgba(0, 170, 255, 0.1);
    border-radius: 12px;
    padding: 30px 24px;
    margin: 20px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.mp-info-icon {
    font-size: 3.2rem;
    line-height: 1;
    animation: pulseGlobe 3s infinite ease-in-out;
}

@keyframes pulseGlobe {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 170, 255, 0.2)) scale(1); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 170, 255, 0.5)) scale(1.06); }
}

.mp-info-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.05em;
}

.mp-info-desc {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

.mp-features-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    max-width: 280px;
}

.mp-features-list li {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-features-list li span {
    color: #00AAFF;
    font-size: 1rem;
}

.enter-lobby-btn {
    width: 100%;
    background: linear-gradient(180deg, #00A3FF, #005C99);
    border: none;
    border-radius: 6px;
    padding: 20px;
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.15em;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.enter-lobby-btn:hover {
    box-shadow: 0 0 40px rgba(0, 170, 255, 0.35);
    transform: translateY(-2px);
    background: linear-gradient(180deg, #00B2FF, #006BB3);
}

@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .players-box {
        width: 100%;
        max-width: 500px;
    }
}

/* ===== LIGHT MODE OVERRIDES — Players Page ===== */
[data-theme="light"] .players-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(165, 117, 12, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .players-box:hover {
    border-color: rgba(165, 117, 12, 0.4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .multiplayer-box {
    border-color: rgba(0, 100, 200, 0.25);
}

[data-theme="light"] .multiplayer-box:hover {
    border-color: rgba(0, 100, 200, 0.45);
}

[data-theme="light"] .player-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(165, 117, 12, 0.25);
    color: #1A1408;
}

[data-theme="light"] .player-input:focus {
    border-color: rgba(165, 117, 12, 0.6);
}

[data-theme="light"] .player-delete {
    color: rgba(26, 20, 8, 0.3);
}

/* ── Online Multiplayer card fixes ── */
[data-theme="light"] .multiplayer-info-card {
    background: rgba(0, 100, 200, 0.06);
    border-color: rgba(0, 100, 200, 0.2);
}

/* "Conquer Globally" title */
[data-theme="light"] .mp-info-title {
    color: #0D1F3C;
}

/* Description paragraph */
[data-theme="light"] .mp-info-desc {
    color: #2A3A50;
}

/* Feature list items */
[data-theme="light"] .mp-features-list li {
    color: #1A2A3A;
}

/* Feature list emoji/icon spans */
[data-theme="light"] .mp-features-list li span {
    color: #0077CC;
}

/* "ONLINE MULTIPLAYER" header label in the players-header */
[data-theme="light"] .players-header-left span[style*="color:#00AAFF"],
[data-theme="light"] .players-header-left span[style*="color: #00AAFF"] {
    color: #005EA3 !important;
}

/* "INTERNET CONNECTION REQUIRED" footer note */
[data-theme="light"] .players-footer {
    color: rgba(0, 80, 160, 0.75) !important;
}
