/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0f1c;
    --secondary-dark: #1a2332;
    --accent-blue: #2d5a87;
    --bright-blue: #4a90e2;
    --glow-blue: #6bb6ff;
    --text-light: #e8f4f8;
    --text-muted: #a8c8d8;
    --gold-accent: #ffd700;
    --danger-red: #e74c3c;
    --status-active: #ffc107;
    --status-completed: #27ae60;
    --accent-yellow: #ffd700;
}

body {
    font-family: 'Exo', sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-blue);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo h2 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 900;
    color: var(--glow-blue);
    text-shadow: 0 0 10px var(--glow-blue);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(45, 90, 135, 0.2);
    border: 1px solid rgba(107, 182, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-blue), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--text-light);
    text-shadow: 0 0 15px var(--glow-blue);
    transform: translateY(-3px);
    background: rgba(107, 182, 255, 0.3);
    border-color: var(--glow-blue);
    box-shadow: 0 8px 25px rgba(107, 182, 255, 0.4);
}

.nav-link.active {
    color: var(--text-light);
    text-shadow: 0 0 15px var(--gold-accent);
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--gold-accent);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--primary-dark) 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(45, 90, 135, 0.3) 0%, transparent 70%);
    animation: nebula-pulse 6s ease-in-out infinite;
}

@keyframes nebula-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--glow-blue), var(--bright-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(107, 182, 255, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* CTA Button */
.cta-button {
    position: relative;
    background: linear-gradient(45deg, var(--accent-blue), var(--bright-blue));
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(45, 90, 135, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(45, 90, 135, 0.5);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover .button-glow {
    left: 100%;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--secondary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--glow-blue);
    text-shadow: 0 0 20px var(--glow-blue);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(45, 90, 135, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(107, 182, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--glow-blue);
    box-shadow: 0 20px 40px rgba(45, 90, 135, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--glow-blue));
}

.feature-card h3 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Clickable feature card links */
.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.feature-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.feature-card-link:hover .feature-card {
    transform: translateY(-10px);
    border-color: var(--glow-blue);
    box-shadow: 0 20px 40px rgba(45, 90, 135, 0.3);
}

/* Page-specific backgrounds */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.page-background-create-army {
    background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 50%, #0a0f1c 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffd700" stop-opacity="0.2"/><stop offset="100%" stop-color="%23ffd700" stop-opacity="0"/></radialGradient></defs><circle cx="300" cy="300" r="200" fill="url(%23a)"/><circle cx="700" cy="600" r="150" fill="url(%23a)"/></svg>');
}

.page-background-game-rules {
    background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 50%, #0a0f1c 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%234a90e2" stop-opacity="0.3"/><stop offset="100%" stop-color="%234a90e2" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="100" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
}

.page-background-login {
    background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 50%, #0a0f1c 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%234a90e2" stop-opacity="0.3"/><stop offset="100%" stop-color="%234a90e2" stop-opacity="0"/></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23a)"/></svg>');
}

.page-background-players {
    background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 50%, #0a0f1c 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23e74c3c" stop-opacity="0.2"/><stop offset="100%" stop-color="%23e74c3c" stop-opacity="0"/></radialGradient></defs><circle cx="500" cy="500" r="300" fill="url(%23a)"/><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="800" r="120" fill="url(%23a)"/></svg>');
}

.page-background-tournament {
    background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 50%, #0a0f1c 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23e74c3c" stop-opacity="0.2"/><stop offset="100%" stop-color="%23e74c3c" stop-opacity="0"/></radialGradient></defs><circle cx="500" cy="500" r="300" fill="url(%23a)"/><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="800" r="120" fill="url(%23a)"/></svg>');
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Page-specific styles */
.page-hero {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--glow-blue), var(--bright-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(107, 182, 255, 0.5);
}

/* Custom styling for faction title */
.page-title.faction-title {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    text-shadow: none;
}

.page-title.faction-title .faction-label {
    color: var(--glow-blue);
    text-shadow: 0 0 10px rgba(107, 182, 255, 0.3);
}

.page-title.faction-title .faction-name {
    color: #4CAF50;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    font-weight: 700;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.content-section {
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.rules-container,
.army-container,
.tournament-container,
.players-container {
    max-width: 800px;
    margin: 0 auto;
}

.rule-card,
.army-card,
.tournament-card,
.players-card {
    background: rgba(45, 90, 135, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rule-card::before,
.army-card::before,
.tournament-card::before,
.players-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(107, 182, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.rule-card:hover::before,
.army-card:hover::before,
.tournament-card:hover::before,
.players-card:hover::before {
    transform: translateX(100%);
}

.rule-card:hover,
.army-card:hover,
.tournament-card:hover,
.players-card:hover {
    transform: translateY(-5px);
    border-color: var(--glow-blue);
    box-shadow: 0 20px 40px rgba(45, 90, 135, 0.3);
}

.rule-card h2,
.army-card h2,
.tournament-card h2,
.players-card h2 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--glow-blue);
    text-shadow: 0 0 10px var(--glow-blue);
}

.rule-card p,
.army-card p,
.tournament-card p,
.players-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.rule-card ul,
.army-card ul,
.tournament-card ul,
.players-card ul {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.rule-card li,
.army-card li,
.tournament-card li,
.players-card li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.rule-card li::before,
.army-card li::before,
.tournament-card li::before,
.players-card li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--glow-blue);
    font-size: 0.8rem;
}

/* Login Page Styles */
.login-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: rgba(45, 90, 135, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(107, 182, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.login-card:hover::before {
    transform: translateX(100%);
}

.login-title {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--glow-blue), var(--bright-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 35, 50, 0.5);
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--glow-blue);
    box-shadow: 0 0 20px rgba(107, 182, 255, 0.3);
    background: rgba(26, 35, 50, 0.8);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.login-button {
    width: 100%;
    background: linear-gradient(45deg, var(--accent-blue), var(--bright-blue));
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    margin-top: 1rem;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 90, 135, 0.4);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.login-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.register-link {
    color: var(--glow-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.register-link:hover {
    color: var(--gold-accent);
    text-shadow: 0 0 10px var(--gold-accent);
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .login-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .rule-card,
    .army-card,
    .tournament-card,
    .players-card {
        padding: 2rem;
    }
    
    /* Extra Small Mobile Tournament Optimizations */
    .season-header {
        padding: 1rem;
    }
    
    .season-name {
        font-size: 1.3rem;
    }
    
    .action-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .match-card {
        padding: 0.75rem 0.5rem;
    }
    
    .match-player {
        padding: 0.75rem;
    }
    
    .player-stats table {
        font-size: 0.8rem;
    }
    
    .player-stats td {
        padding: 0.2rem 0.3rem;
    }
    
    .final-score-card {
        padding: 0.4rem;
        gap: 0.5rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-left: none;
        border-right: none;
    }
    
    .player-details .player-name {
        font-size: 1.1rem;
        padding: 6px 10px;
    }
    
    .total-score {
        padding: 10px 15px;
    }
    
    .total-score .score-value {
        font-size: 1.5rem;
    }
    
    .detailed-stats {
        gap: 0.75rem;
    }
    
    .detailed-stats .stat-number {
        font-size: 1.2rem;
    }
    
    .detailed-stats .stat-label {
        font-size: 0.65rem;
    }
    
    .vs-separator-large {
        font-size: 1.2rem;
    }
    
    .round-accordion-header {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .final-scores-title {
        font-size: 1rem;
    }
    
    .show-final-scores-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        min-width: 160px;
    }
    
    /* Mobile Prize Tooltip Optimization */
    .prize-tooltip {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
        max-width: calc(100vw - 2rem);
        min-width: 160px;
    }
    
    .prize-tooltip p {
        font-size: 0.8rem;
    }
}

/* Table of Contents Styles */
.toc-section {
    padding: 3rem 0;
    background: rgba(26, 35, 50, 0.3);
    border-top: 1px solid var(--accent-blue);
    border-bottom: 1px solid var(--accent-blue);
}

.toc-container {
    max-width: 1200px;
    margin: 0 auto;
}

.toc-title {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--glow-blue);
    text-shadow: 0 0 20px var(--glow-blue);
}

.toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.toc-column h3 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.5rem;
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--gold-accent);
    border-bottom: 2px solid var(--gold-accent);
    padding-bottom: 0.5rem;
}

.toc-item,
.toc-subitem,
.toc-subsubitem {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 5px;
}

.toc-item:hover,
.toc-subitem:hover,
.toc-subsubitem:hover {
    background: rgba(107, 182, 255, 0.1);
    transform: translateX(5px);
}

.toc-item.active,
.toc-subitem.active,
.toc-subsubitem.active {
    background: rgba(255, 215, 0, 0.2);
    border-left: 3px solid var(--gold-accent);
    transform: translateX(5px);
}

.toc-item.active .toc-text,
.toc-subitem.active .toc-text,
.toc-subsubitem.active .toc-text {
    color: var(--gold-accent);
    text-shadow: 0 0 8px var(--gold-accent);
}

.toc-number {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    color: var(--glow-blue);
    margin-right: 1rem;
    min-width: 2rem;
    text-shadow: 0 0 5px var(--glow-blue);
}

.toc-letter {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    color: var(--text-light);
    margin-right: 1rem;
    min-width: 1.5rem;
    margin-left: 1rem;
}

.toc-roman {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 1rem;
    min-width: 1.5rem;
    margin-left: 2rem;
}

.toc-text {
    flex: 1;
    color: var(--text-light);
    font-weight: 600;
}

.toc-page {
    color: var(--glow-blue);
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    text-shadow: 0 0 5px var(--glow-blue);
    margin-left: auto;
}

/* Rules Content Styles */
.rules-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.rule-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(45, 90, 135, 0.05);
    border: 1px solid rgba(107, 182, 255, 0.2);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.rule-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(107, 182, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.rule-section:hover::before {
    transform: translateX(100%);
}

.section-header {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 2.2rem;
    color: var(--glow-blue);
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--glow-blue);
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 1rem;
}

.rule-subsection {
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.rule-subsection h3 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 0 0 8px var(--text-light);
}

.rule-subsection p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.rule-subsubsection {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent-blue);
}

.rule-subsubsection h4 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.1rem;
    color: var(--glow-blue);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px var(--glow-blue);
}

.rule-subsubsection p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Table of Contents */
@media (max-width: 768px) {
    .toc-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .toc-title {
        font-size: 2rem;
    }
    
    .toc-column h3 {
        font-size: 1.3rem;
    }
    
    .section-header {
        font-size: 1.8rem;
    }
    
    .rule-section {
        padding: 1.5rem;
    }
    
    .rule-subsection {
        padding-left: 0.5rem;
    }
    
    .rule-subsubsection {
        padding-left: 1rem;
    }
}

/* Tournament Seasons Styles */
.tournament-seasons {
    padding: 3rem 0;
    background: rgba(26, 35, 50, 0.2);
}

.seasons-title {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--glow-blue);
    text-shadow: 0 0 20px var(--glow-blue);
}

.seasons-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
}

.season-card {
    background: rgba(45, 90, 135, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.season-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(107, 182, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.season-card:hover::before {
    transform: translateX(100%);
}

.season-card:hover {
    border-color: var(--glow-blue);
    box-shadow: 0 10px 30px rgba(45, 90, 135, 0.3);
}

.season-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.season-header:hover {
    background: rgba(107, 182, 255, 0.1);
}

.season-info {
    flex-grow: 1;
    margin-right: 1.5rem; /* Add some space between info and stats */
}

.season-name {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--text-light);
}

.season-dates {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.season-status-container {
    display: flex;
    flex-direction: column; /* This is the key change */
    align-items: flex-start; /* Aligns items to the left */
    margin-top: 0.75rem;
}

.season-status-label {
    margin: 0;
    margin-bottom: 0.5rem; /* Space between label and status button */
    font-size: 0.9rem;
    color: var(--text-color);
}

.season-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- New Action Buttons --- */
.season-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease-in-out;
    position: relative; /* For tooltip positioning */
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-btn span {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(1); /* Makes icons white */
}

/* YouTube Button */
.youtube-btn:hover {
    border-color: #FF0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}
.youtube-btn span {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm5.2,10.9-6,3.4A1,1,0,0,1,10,15.5v-7A1,1,0,0,1,11.2,7.6l6,3.4a1,1,0,0,1,0,1.8Z"/></svg>');
}

/* Rules Button */
.rules-btn:hover {
    border-color: #4A90E2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}
.rules-btn span {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M19,2H5A3,3,0,0,0,2,5V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2Zm-5,16H7a1,1,0,0,1,0-2h7a1,1,0,0,1,0,2Zm3-4H7a1,1,0,0,1,0-2H17a1,1,0,0,1,0,2Zm0-4H7A1,1,0,0,1,7,8H17a1,1,0,0,1,0,2Z"/></svg>');
}

/* Team Size Button */
.team-size-btn:hover {
    border-color: #3498db; /* A different shade of blue */
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}
.team-size-btn span {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
}

/* Prize Button & Tooltip */
.prize-btn {
    background: linear-gradient(145deg, rgba(245, 166, 35, 0.1), rgba(245, 166, 35, 0.05));
    border: 1px solid rgba(245, 166, 35, 0.3);
    color: #F5A623; /* Gold text color */
    cursor: default;
}
.prize-btn:hover {
    border-color: #F5A623;
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}
.prize-btn span {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M19,2H5A3,3,0,0,0,2,5V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2Zm-1,16H6V16h2v1a1,1,0,0,0,2,0V16h4v1a1,1,0,0,0,2,0V16h2Zm1-4a1,1,0,0,0-1-1H5a1,1,0,0,0,0,2H19A1,1,0,0,0,20,14ZM18,9H6V6H18Z"/></svg>');
    filter: none; /* Icon is already colored in the prize button's case */
}

.prize-btn span {
    /* Custom SVG for prize icon with gold color */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F5A623"><path d="M19,2H5A3,3,0,0,0,2,5V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2Zm-1,16H6V16h2v1a1,1,0,0,0,2,0V16h4v1a1,1,0,0,0,2,0V16h2Zm1-4a1,1,0,0,0-1-1H5a1,1,0,0,0,0,2H19A1,1,0,0,0,20,14ZM18,9H6V6H18Z"/></svg>');
}

.prize-btn:hover .prize-tooltip {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.prize-tooltip {
    display: none;
    position: absolute;
    bottom: 110%; /* Position above the button */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--accent-blue);
    z-index: 1000;
    min-width: 180px;
    text-align: left;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.prize-tooltip p {
    margin: 0.25rem 0;
    white-space: nowrap;
    color: var(--text-light);
}

.prize-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--accent-blue) transparent transparent transparent;
}

.season-status.active {
    background-color: var(--status-completed);
    border: 1px solid #1a8a4d;
}

.season-status.upcoming {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.season-status.completed {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid #6c757d;
}

.season-stats {
    display: flex;
    gap: 2rem;
    margin-right: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--glow-blue);
    text-shadow: 0 0 10px var(--glow-blue);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.season-toggle {
    color: var(--glow-blue);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.season-card.expanded .season-toggle {
    transform: rotate(180deg);
}

.season-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.season-card.expanded .season-content {
    max-height: 2000px; /* Adjust as needed */
}

.season-rounds {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--accent-blue);
}

.rounds-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.round-item {
    background: rgba(10, 15, 28, 0.5);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border-left: 3px solid var(--glow-blue);
    color: var(--text-light);
    font-weight: 600;
}

/* Round Accordion on Public Tournament Page */
.round-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.round-accordion-item {
    background: rgba(10, 15, 28, 0.7);
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
}

.round-accordion-header {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text-light);
}

.round-accordion-header .round-toggle {
    font-size: 1.2rem;
    color: var(--glow-blue);
    transition: transform 0.3s ease;
}

.round-accordion-item.expanded .round-accordion-header .round-toggle {
    transform: rotate(180deg);
}

.round-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 1.5rem;
}

.round-accordion-item.expanded .round-accordion-content {
    max-height: 2000px; /* Adjust as needed */
    padding: 1.5rem;
    border-top: 1px solid var(--accent-blue);
}

/* Match Card Styles */
.match-card {
    background: rgba(45, 90, 135, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: stretch;
    gap: 1rem;
    position: relative;
    min-height: 280px; /* Increased height to ensure proper spacing */
}

.vs-separator-large {
    font-size: 2rem;
    font-weight: bold;
    color: var(--glow-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 10px var(--glow-blue);
    flex-shrink: 0;
}

.match-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(10, 25, 47, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative; /* For badge positioning */
    min-height: 220px; /* Ensure adequate height for content visibility */
    height: 100%; /* Take full height of container */
}

/* Result Badge Container - Contains both result badge and player info */
.result-badge-container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    padding: 0.75rem;
    border-radius: 8px;
    border: 2px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden !important; /* Prevent content from overflowing */
    min-height: 100px; /* Ensure adequate height */
    max-height: 120px; /* Prevent excessive height */
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box;
}

/* Result badge styling - Small corner badge */
.result-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: auto;
    max-width: 80px;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    z-index: 3;
}

/* Player info inside the result container */
.result-badge-container .player-info {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    text-align: center;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.result-badge-container .player-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white !important;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    line-height: 1.1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.result-badge-container .fireteam-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
    margin: 0;
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: var(--text-light) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.result-badge-container .fireteam-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-dark);
    border: 2px solid var(--glow-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Clean styles - debug backgrounds removed */
.match-player .result-badge-container .player-info {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.match-player .result-badge-container .player-name {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
}

.match-player .result-badge-container .fireteam-badge {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
}

.match-status {
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-status.in-progress {
    background-color: var(--status-active);
    border-color: var(--status-active);
    color: #fff;
}

.match-status.completed {
    background-color: var(--status-completed);
    border-color: var(--status-completed);
    color: #888;
}

.player-stats {
    margin-top: auto; /* Pushes stats to the bottom */
    background: rgba(10, 15, 28, 0.9);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(107, 182, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1; /* Ensure stats are below header */
    flex-shrink: 0; /* Prevent stats from shrinking */
    min-height: 140px; /* Ensure adequate space for stats */
}

.player-stats::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--glow-blue), transparent);
    border-radius: 1px;
}

.player-stats table {
    width: 100%;
    border-collapse: collapse;
}

.player-stats tr {
    border-bottom: 1px solid rgba(107, 182, 255, 0.1);
}

.player-stats tr:last-child {
    border-bottom: none;
}

.player-stats td {
    padding: 0.5rem 0.3rem;
    font-size: 0.9rem;
    vertical-align: middle;
}

.player-stats .stat-label { 
    color: var(--text-muted); 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}
.player-stats .stat-value { 
    color: var(--text-light); 
    font-weight: bold; 
    text-align: right; 
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1rem;
}

/* Leaderboard Styles */
.leaderboard {
    padding: 2rem;
    border-top: 1px solid var(--accent-blue);
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.leaderboard-header h4 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.5rem;
    color: var(--glow-blue);
    text-shadow: 0 0 10px var(--glow-blue);
}

.leaderboard-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(45, 90, 135, 0.3);
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--glow-blue);
    color: var(--primary-dark);
    box-shadow: 0 0 15px var(--glow-blue);
}

.season-winner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.winner-label {
    color: var(--text-muted);
    font-weight: 600;
}

.winner-name {
    color: var(--gold-accent);
    font-weight: 700;
    text-shadow: 0 0 10px var(--gold-accent);
}

/* Leaderboard Table */
.leaderboard-table {
    background: rgba(26, 35, 50, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--accent-blue);
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1.5fr 140px 100px 60px 60px 60px 80px 1fr;
    background: rgba(45, 90, 135, 0.3);
    padding: 1rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 8px 8px 0 0;
}

.table-body {
    display: flex;
    flex-direction: column;
}

.player-row {
    display: grid;
    grid-template-columns: 80px 1.5fr 140px 100px 60px 60px 60px 80px 1fr;
    padding: 1rem;
    border-bottom: 1px solid rgba(107, 182, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    align-items: center;
    min-height: 3.5em;
}

.player-row:hover {
    background: rgba(107, 182, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(107, 182, 255, 0.2);
}

.player-row:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.col-place {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.medal {
    font-size: 1.2rem;
}

.place-text {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    color: var(--text-light);
}

.col-player-name {
    display: flex;
    align-items: center;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    min-height: 2.8em;
}

.player-name {
    color: var(--glow-blue);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.player-name:hover {
    color: var(--gold-accent);
    text-shadow: 0 0 10px var(--gold-accent);
}

.col-final-score {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 1.2rem;
}

/* Final score color gradient from green (top) to red (bottom) */
.player-row[data-rank="1"] .col-final-score {
    color: #4caf50;
    text-shadow: 0 0 10px #4caf50;
}

.player-row[data-rank="2"] .col-final-score {
    color: #8bc34a;
    text-shadow: 0 0 10px #8bc34a;
}

.player-row[data-rank="3"] .col-final-score {
    color: #cddc39;
    text-shadow: 0 0 10px #cddc39;
}

.player-row[data-rank="4"] .col-final-score {
    color: #ffeb3b;
    text-shadow: 0 0 10px #ffeb3b;
}

.player-row[data-rank="5"] .col-final-score {
    color: #ffc107;
    text-shadow: 0 0 10px #ffc107;
}

.player-row[data-rank="6"] .col-final-score {
    color: #ff9800;
    text-shadow: 0 0 10px #ff9800;
}

.player-row[data-rank="7"] .col-final-score {
    color: #ff5722;
    text-shadow: 0 0 10px #ff5722;
}

.player-row[data-rank="8"] .col-final-score {
    color: #f44336;
    text-shadow: 0 0 10px #f44336;
}

.col-wins,
.col-draws,
.col-loses,
.col-stats {
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
}

.col-achievements {
    text-align: left;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Fireteam column styling */
.col-fireteam {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fireteam-badge {
    background: linear-gradient(135deg, rgba(107, 182, 255, 0.2), rgba(45, 90, 135, 0.3));
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--glow-blue);
    text-shadow: 0 0 8px var(--glow-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
    min-height: 2.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fireteam-badge:hover {
    background: linear-gradient(135deg, rgba(107, 182, 255, 0.4), rgba(45, 90, 135, 0.5));
    border-color: var(--glow-blue);
    color: var(--glow-blue);
    text-shadow: 0 0 15px var(--glow-blue), 0 0 25px var(--glow-blue);
    box-shadow: 0 0 20px rgba(107, 182, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.fireteam-badge:active {
    transform: translateY(0) scale(1.02);
}

/* Clickable team link styles */
.fireteam-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.fireteam-link:hover {
    text-decoration: none;
    color: var(--glow-blue);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px rgba(107, 182, 255, 0.4);
    text-shadow: 0 0 15px var(--glow-blue), 0 0 25px var(--glow-blue);
}

.fireteam-link:active {
    transform: translateY(0) scale(1.02);
    box-shadow: 0 0 10px rgba(107, 182, 255, 0.3);
}

/* Score-based coloring for final scores - Glowing text gradient */
.player-row[data-points="107"] .col-final-score {
    color: #2ecc71;
    text-shadow: 0 0 15px #2ecc71, 0 0 30px #2ecc71;
    font-weight: 700;
}

.player-row[data-points="95"] .col-final-score {
    color: #27ae60;
    text-shadow: 0 0 15px #27ae60, 0 0 30px #27ae60;
    font-weight: 700;
}

.player-row[data-points="88"] .col-final-score {
    color: #f39c12;
    text-shadow: 0 0 15px #f39c12, 0 0 30px #f39c12;
    font-weight: 700;
}

.player-row[data-points="82"] .col-final-score {
    color: #e67e22;
    text-shadow: 0 0 15px #e67e22, 0 0 30px #e67e22;
    font-weight: 700;
}

.player-row[data-points="76"] .col-final-score {
    color: #e74c3c;
    text-shadow: 0 0 15px #e74c3c, 0 0 30px #e74c3c;
    font-weight: 700;
}

.player-row[data-points="71"] .col-final-score {
    color: #c0392b;
    text-shadow: 0 0 15px #c0392b, 0 0 30px #c0392b;
    font-weight: 700;
}

.player-row[data-points="65"] .col-final-score {
    color: #a93226;
    text-shadow: 0 0 15px #a93226, 0 0 30px #a93226;
    font-weight: 700;
}

.player-row[data-points="58"] .col-final-score {
    color: #922b21;
    text-shadow: 0 0 15px #922b21, 0 0 30px #922b21;
    font-weight: 700;
}

/* Season Placeholder */
.season-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Players Page Styles */
.players-section {
    padding: 4rem 0;
    min-height: 80vh;
}

/* View Toggle Styles */
.view-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.view-toggle {
    display: flex;
    background: rgba(45, 90, 135, 0.1);
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    padding: 0.5rem;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-blue), transparent);
    transition: left 0.5s ease;
}

.toggle-btn:hover::before {
    left: 100%;
}

.toggle-btn:hover {
    color: var(--glow-blue);
    text-shadow: 0 0 10px var(--glow-blue);
    transform: translateY(-2px);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--bright-blue));
    color: white;
    box-shadow: 0 0 20px rgba(107, 182, 255, 0.5);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.toggle-btn.active::before {
    display: none;
}

.toggle-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px currentColor);
}

.toggle-text {
    font-weight: 700;
}

.toggle-description {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 0.2rem;
    line-height: 1.2;
}

/* Players List View Styles */
.players-list {
    background: rgba(26, 35, 50, 0.3);
    border: 2px solid var(--accent-blue);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-top: 1.5rem;
    width: 100%;
}

/* Mobile horizontal scroll container */
.players-list-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) rgba(26, 35, 50, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.players-list-filters {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: rgba(10, 15, 28, 0.6);
    border: 1px solid rgba(107, 182, 255, 0.3);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--glow-blue);
    margin-right: 0.25rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    background: rgba(15, 25, 40, 0.9);
    border: 1px solid rgba(107, 182, 255, 0.4);
    border-radius: 999px;
    color: var(--text-light);
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 3px 12px rgba(12, 24, 40, 0.35);
}

.filter-pill:hover,
.filter-pill:focus-visible {
    background: rgba(35, 65, 110, 0.8);
    border-color: rgba(107, 182, 255, 0.7);
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(107, 182, 255, 0.25);
}

.filter-pill.active {
    background: linear-gradient(135deg, rgba(107, 182, 255, 0.95), rgba(90, 140, 255, 0.95));
    color: var(--dark-bg);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(107, 182, 255, 0.4);
    transform: translateY(-1px);
}

.filter-pill-action {
    background: rgba(107, 182, 255, 0.12);
    border: 1px solid rgba(107, 182, 255, 0.4);
    color: var(--glow-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.filter-pill-action.active {
    color: var(--dark-bg);
}

.players-list-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    letter-spacing: 0.03em;
}

/* Army Management Styles */
.army-management-header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.create-army-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--glow-blue));
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    color: var(--dark-bg);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.create-army-btn:hover {
    background: linear-gradient(135deg, var(--glow-blue), var(--bright-blue));
    box-shadow: 0 0 20px rgba(45, 90, 135, 0.5);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.5rem;
}

.army-list-container {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid var(--accent-blue);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.army-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--accent-blue);
}

.army-list-header h2 {
    color: var(--glow-blue);
    margin: 0;
    font-size: 1.5rem;
}

.army-stats {
    color: var(--text-light);
    font-size: 0.9rem;
}

.army-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--accent-blue);
}

.army-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(5, 15, 30, 0.9);
}

.army-table thead {
    background: linear-gradient(135deg, var(--accent-blue), var(--glow-blue));
}

.army-table th {
    padding: 1rem;
    text-align: left;
    color: var(--dark-bg);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.army-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(45, 90, 135, 0.3);
    color: var(--text-light);
}

.army-table tbody tr:hover {
    background: rgba(45, 90, 135, 0.1);
}

.army-checkbox {
    width: 50px;
    text-align: center;
}

.army-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
}

.army-name {
    min-width: 250px;
}

.army-name-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.army-name-primary {
    font-weight: bold;
    color: var(--text-light);
    font-size: 1rem;
}

.army-name-button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.army-name-button:hover,
.army-name-button:focus {
    color: var(--accent-blue);
    text-decoration: underline;
    outline: none;
}

.army-name-secondary {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-style: italic;
}

.army-points {
    min-width: 120px;
    text-align: center;
}

.army-points-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.army-points-primary {
    font-weight: bold;
    color: var(--text-light);
}

.army-points-secondary {
    font-size: 0.85rem;
    color: var(--accent-blue);
}

.army-valid {
    min-width: 100px;
    text-align: center;
}

.valid-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.valid-badge.yes {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.valid-badge.no {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.army-actions {
    min-width: 150px;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
}

.action-btn.delete {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.action-btn.delete:hover {
    background: rgba(220, 53, 69, 0.3);
    transform: translateY(-1px);
}

.action-btn.copy {
    background: rgba(45, 90, 135, 0.2);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.action-btn.copy:hover {
    background: rgba(45, 90, 135, 0.3);
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--glow-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--dark-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--accent-blue);
}

.modal-header h3 {
    color: var(--glow-blue);
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--accent-blue);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--glow-blue);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(5, 15, 30, 0.8);
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--glow-blue);
    box-shadow: 0 0 10px rgba(45, 90, 135, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Create Army Form Grid Layout */
.create-army-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.create-list-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--bright-blue)) !important;
    border: 2px solid var(--accent-blue) !important;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white !important;
    transition: all 0.3s ease;
}

.create-list-btn:hover {
    background: linear-gradient(135deg, var(--bright-blue), var(--glow-blue)) !important;
    border-color: var(--bright-blue) !important;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: rgba(128, 128, 128, 0.2) !important;
    border: 2px solid #6c757d !important;
    border-radius: 8px !important;
    color: #6c757d !important;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cta-button.secondary:hover {
    background: rgba(128, 128, 128, 0.3) !important;
    border-color: #adb5bd !important;
    color: #adb5bd !important;
    transform: translateY(-2px);
}

.create-list-btn .btn-icon {
    font-size: 1.1rem;
}

.create-list-btn .btn-text {
    font-size: 0.9rem;
}

/* Field Error Styling */
.field-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #ffc107;
    font-size: 0.85rem;
    font-weight: 500;
}

.field-error.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.error-icon {
    font-size: 1rem;
}

.error-text {
    flex: 1;
}

.warning-text {
    color: #dc3545;
    font-weight: bold;
    margin-top: 0.5rem;
}

.cta-button.danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: #dc3545;
}

.cta-button.danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.3);
}

.cta-button.secondary {
    background: rgba(128, 128, 128, 0.2);
    border-color: #6c757d;
    color: #6c757d;
}

.cta-button.secondary:hover {
    background: rgba(128, 128, 128, 0.3);
    color: #adb5bd;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .army-management-header {
        margin-bottom: 1.5rem;
    }
    
    .create-army-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .army-list-container {
        padding: 1.5rem;
    }
    
    .army-list-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .army-table th,
    .army-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .army-name {
        min-width: 200px;
    }
    
    .army-points {
        min-width: 100px;
    }
    
    .army-valid {
        min-width: 80px;
    }
    
    .army-actions {
        min-width: 120px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-btn {
        min-width: 30px;
        height: 30px;
        padding: 0.25rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .modal-footer .cta-button,
    .modal-footer .create-list-btn {
        width: 100%;
        justify-content: center;
    }
    
    .create-army-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Scroll indicator for mobile */
@media (max-width: 768px) {
    .players-list-container::after {
        content: none;
    }
}

.players-list-container::-webkit-scrollbar {
    height: 8px;
}

.players-list-container::-webkit-scrollbar-track {
    background: rgba(26, 35, 50, 0.3);
    border-radius: 4px;
}

.players-list-container::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

.players-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--bright-blue);
}

.players-list-header {
    display: grid;
    grid-template-columns:
        minmax(52px, 0.6fr)
        minmax(160px, 2.2fr)
        minmax(140px, 1.4fr)
        minmax(120px, 1.2fr)
        minmax(110px, 1.1fr)
        minmax(90px, 1fr)
        minmax(90px, 1fr)
        minmax(90px, 1fr)
        minmax(130px, 1.2fr);
    background: linear-gradient(135deg, var(--accent-blue), var(--bright-blue));
    color: white;
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.5rem 1rem;
    border-bottom: 2px solid var(--glow-blue);
}

.players-list-header > div {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.players-list-header > div:last-child {
    border-right: none;
}

/* Sortable header styles */
.sortable-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    padding: 0.4rem 0.3rem;
    border-radius: 0.25rem;
    position: relative;
    text-align: center;
    line-height: 1.1;
    word-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
    height: 100%;
    min-width: 0;
}

.sortable-header:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.sortable-header.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.sort-indicator {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 12px;
}

.sort-indicator.asc::after {
    content: "▲";
    color: var(--accent-color);
    font-weight: bold;
}

.sort-indicator.desc::after {
    content: "▼";
    color: var(--accent-color);
    font-weight: bold;
}

.sort-indicator:not(.asc):not(.desc)::after {
    content: "⇅";
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
}

/* Allow all headers to display full text without clipping */
.sortable-header span:first-child {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 1em;
    line-height: 1.2;
    margin-right: 0.25rem;
    text-align: center;
}

.sortable-header span:last-child {
    flex-shrink: 0;
    min-width: 16px;
    width: 16px;
    text-align: center;
    margin-left: 0.25rem;
}

.player-list-row {
    display: grid;
    grid-template-columns:
        minmax(52px, 0.6fr)
        minmax(160px, 2.2fr)
        minmax(140px, 1.4fr)
        minmax(120px, 1.2fr)
        minmax(110px, 1.1fr)
        minmax(90px, 1fr)
        minmax(90px, 1fr)
        minmax(90px, 1fr)
        minmax(130px, 1.2fr);
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(107, 182, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    align-items: center;
    background: rgba(10, 15, 28, 0.5);
    position: relative;
}

.player-list-row:hover {
    background: rgba(107, 182, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(107, 182, 255, 0.2);
}

.player-list-row:last-child {
    border-bottom: none;
}

.player-list-row > div {
    text-align: center;
    border-right: 1px solid rgba(107, 182, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.player-list-row > div:last-child {
    border-right: none;
}


.list-player-name {
    color: var(--glow-blue);
    font-weight: 700;
    font-size: clamp(1.2rem, 1.1vw + 0.9rem, 1.6rem);
    text-align: left !important;
    justify-content: flex-start !important;
    padding-left: 1rem !important;
    font-family: 'Orbitron', 'Exo', sans-serif;
    letter-spacing: 0.015em;
}

.list-player-name:hover {
    color: var(--gold-accent);
    text-shadow: 0 0 10px var(--gold-accent);
}

.list-position {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 8px var(--accent-color);
}

.list-stat-value {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 1vw + 0.6rem, 1.45rem);
    color: var(--text-light);
}

.list-stat-value.wins {
    color: #4CAF50;
    text-shadow: 0 0 8px #4CAF50;
}

.list-stat-value.draws {
    color: #FFC107;
    text-shadow: 0 0 8px #FFC107;
}

.list-stat-value.losses {
    color: #F44336;
    text-shadow: 0 0 8px #F44336;
}

.list-stat-value.points {
    color: var(--glow-blue);
    text-shadow: 0 0 8px var(--glow-blue);
    font-size: 1.3rem;
}

.list-stat-value.winrate {
    color: var(--gold-accent);
    text-shadow: 0 0 8px var(--gold-accent);
    font-size: 1.2rem;
}


.list-achievements {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 1vw + 0.6rem, 1.45rem);
    color: var(--gold-accent);
    text-shadow: 0 0 8px var(--gold-accent);
}

/* Podium Trophy Icons */
.list-podium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.podium-trophy {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 4px currentColor);
    transition: all 0.3s ease;
    cursor: pointer;
}

.podium-trophy:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px currentColor);
}

.podium-trophy.gold {
    color: #FFD700;
    text-shadow: 0 0 6px #FFD700;
}

.podium-trophy.silver {
    color: #C0C0C0;
    text-shadow: 0 0 6px #C0C0C0;
}

.podium-trophy.bronze {
    color: #CD7F32;
    text-shadow: 0 0 6px #CD7F32;
}

.podium-trophy:hover.gold {
    color: #FFA500;
    text-shadow: 0 0 10px #FFA500;
}

.podium-trophy:hover.silver {
    color: #E6E6FA;
    text-shadow: 0 0 10px #E6E6FA;
}

.podium-trophy:hover.bronze {
    color: #D2691E;
    text-shadow: 0 0 10px #D2691E;
}

/* Responsive List View */
@media (max-width: 1024px) {
    .players-list {
        width: 100%;
        min-width: 0;
    }
    
    .players-list-header,
    .player-list-row {
        grid-template-columns:
            minmax(48px, 0.6fr)
            minmax(140px, 2fr)
            minmax(120px, 1.3fr)
            minmax(110px, 1.1fr)
            minmax(100px, 1fr)
            minmax(85px, 0.9fr)
            minmax(85px, 0.9fr)
            minmax(85px, 0.9fr)
            minmax(120px, 1.1fr);
        font-size: 0.8rem;
        padding: 1.2rem 0.7rem;
    }
    
    .players-list-header > div,
    .player-list-row > div {
        padding: 0.6rem 0.35rem;
    }
    
    .sortable-header {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .sortable-header span:first-child {
        font-size: 0.7rem;
        white-space: normal;
        line-height: 1.2;
        margin-right: 0;
        text-align: center;
    }
    
    .sortable-header span:last-child {
        margin-left: 0;
    }
    
    .sort-indicator {
        font-size: 0.7rem;
    }
    
    .list-player-name {
        font-size: clamp(1.1rem, 1.1vw + 0.85rem, 1.4rem);
    }
    
    .list-stat-value,
    .list-achievements {
        font-size: clamp(1rem, 0.9vw + 0.7rem, 1.3rem);
    }
}

@media (max-width: 768px) {
    .players-list {
        width: max(100%, 860px);
        min-width: 860px;
    }
    
    .players-list-header,
    .player-list-row {
        grid-template-columns:
            minmax(48px, 0.6fr)
            minmax(120px, 1.8fr)
            minmax(110px, 1.1fr)
            minmax(100px, 1fr)
            minmax(90px, 0.9fr)
            minmax(80px, 0.85fr)
            minmax(80px, 0.85fr)
            minmax(80px, 0.85fr)
            minmax(110px, 1fr);
        font-size: 0.72rem;
        padding: 0.95rem 0.45rem;
    }
    
    .players-list-header > div,
    .player-list-row > div {
        padding: 0.4rem 0.25rem;
    }
    
    .sortable-header {
        gap: 0.2rem;
    }
    
    .sortable-header span:first-child {
        font-size: 0.62rem;
    }
    
    .sort-indicator {
        font-size: 0.6rem;
    }
    
    .player-list-row > div::before {
        content: none;
    }
    
    .list-player-name {
        font-size: clamp(1rem, 1vw + 0.8rem, 1.25rem);
    }
    
    .list-stat-value,
    .list-achievements {
        font-size: clamp(0.95rem, 0.9vw + 0.65rem, 1.2rem);
    }
}

@media (max-width: 480px) {
    .players-list {
        width: max(100%, 750px);
        min-width: 750px;
    }
    
    .players-list-header,
    .player-list-row {
        grid-template-columns:
            minmax(42px, 0.6fr)
            minmax(105px, 1.5fr)
            minmax(95px, 1fr)
            minmax(85px, 0.9fr)
            minmax(75px, 0.8fr)
            minmax(70px, 0.75fr)
            minmax(70px, 0.75fr)
            minmax(70px, 0.75fr)
            minmax(95px, 0.9fr);
        font-size: 0.58rem;
        padding: 0.7rem 0.35rem;
    }
    
    .players-list-header > div,
    .player-list-row > div {
        padding: 0.3rem 0.18rem;
    }
    
    .sortable-header span:first-child {
        font-size: 0.55rem;
    }
    
    .sort-indicator {
        font-size: 0.5rem;
    }
    
    .list-player-name {
        font-size: clamp(0.9rem, 1vw + 0.6rem, 1.05rem);
    }
    
    .list-stat-value,
    .list-achievements {
        font-size: clamp(0.82rem, 0.9vw + 0.55rem, 1rem);
    }
}

.players-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}

.player-card {
    position: relative;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    border: 3px solid rgba(107, 182, 255, 0.3);
    border-radius: 15px;
    outline: none;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform-origin: center center;
}

.player-card:hover,
.player-card:focus,
.player-card.hovered {
    transform: scale(1.08) translateY(-10px);
    border-color: var(--glow-blue);
    box-shadow: 
        0 0 40px rgba(107, 182, 255, 0.6),
        0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.player-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.player-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center 40%;
    transition: all 0.4s ease;
    filter: brightness(0.8) contrast(1.1);
}

.player-card:hover .player-image,
.player-card:focus .player-image,
.player-card.hovered .player-image {
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.05);
}

.player-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    padding: 2rem 1.5rem 1.5rem;
    z-index: 3;
}

.player-username {
    color: white;
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.player-card:hover .player-username,
.player-card:focus .player-username,
.player-card.hovered .player-username {
    color: var(--glow-blue);
    text-shadow: 0 0 15px rgba(107, 182, 255, 0.9);
    transform: translateY(-2px);
}

.player-card:focus-visible {
    border-color: var(--glow-blue);
    box-shadow: 0 0 30px rgba(107, 182, 255, 0.6);
}

/* Player Modal Styles */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(26, 35, 50, 0.95) 0%, 
        rgba(10, 15, 28, 0.98) 100%);
    border: 2px solid var(--glow-blue);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--accent-blue);
    flex-shrink: 0;
}

.modal-header h2 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 2rem;
    color: var(--glow-blue);
    text-shadow: 0 0 10px var(--glow-blue);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger-red);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    padding-top: 3rem;
}

/* Match Breakdown Overlay */
.match-breakdown-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12000;
}

.match-breakdown-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 10, 22, 0.85);
    backdrop-filter: blur(4px);
}

.match-breakdown-content {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.98), rgba(5, 10, 25, 0.95));
    border: 1px solid rgba(107, 182, 255, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    width: min(500px, 90%);
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.match-breakdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.match-breakdown-header h4 {
    margin: 0;
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.3rem;
    color: var(--glow-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-breakdown-close {
    background: none;
    border: 1px solid rgba(107, 182, 255, 0.4);
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.match-breakdown-close:hover {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger-red);
    transform: rotate(90deg);
}

.match-breakdown-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.match-breakdown-item {
    text-align: center;
    border-radius: 16px;
    border: 1px solid rgba(107, 182, 255, 0.35);
    background: rgba(25, 50, 90, 0.4);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 100%;
}

.match-outcome-win {
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 10px 35px rgba(76, 175, 80, 0.25);
}

.match-outcome-loss {
    border-color: rgba(231, 76, 60, 0.45);
    box-shadow: 0 10px 35px rgba(231, 76, 60, 0.22);
}

.match-outcome-draw {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.25);
}

.match-breakdown-opponent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.match-team-link,
.match-team-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(107, 182, 255, 0.15);
    border: 1px solid rgba(107, 182, 255, 0.4);
    color: var(--glow-blue);
    margin-top: 0.25rem;
}

.match-team-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.match-team-link:hover {
    background: rgba(107, 182, 255, 0.25);
    border-color: var(--glow-blue);
    box-shadow: 0 0 8px rgba(107, 182, 255, 0.4);
}

.match-participant-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.match-participant-divider {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    letter-spacing: 0.6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.match-participant {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(107, 182, 255, 0.35);
    background: rgba(5, 15, 35, 0.85);
}

.match-participant-name {
    font-size: 1.1rem;
    font-family: 'Orbitron', 'Exo', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.match-participant-main-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.match-participant-role {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.match-participant-win {
    border-color: rgba(76, 175, 80, 0.65);
    background: rgba(76, 175, 80, 0.15);
}

.match-participant-win .match-participant-role {
    color: #4CAF50;
}

.match-participant-loss {
    border-color: rgba(231, 76, 60, 0.65);
    background: rgba(231, 76, 60, 0.15);
}

.match-participant-loss .match-participant-role {
    color: #E74C3C;
}

.match-participant-draw {
    border-color: rgba(255, 215, 0, 0.65);
    background: rgba(255, 215, 0, 0.16);
}

.match-participant-draw .match-participant-role {
    color: #FFD700;
}

.match-stat-chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.match-stat-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(107, 182, 255, 0.15);
    border: 1px solid rgba(107, 182, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.4px;
    color: var(--text-light);
    white-space: normal;
    line-height: 1.2;
    text-align: center;
}

.match-result-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(107, 182, 255, 0.2);
    border: 1px solid rgba(107, 182, 255, 0.5);
    color: var(--text-light);
}

.match-result-wins {
    background: rgba(76, 175, 80, 0.25);
    border-color: rgba(76, 175, 80, 0.7);
    color: #4CAF50;
}

.match-result-draws {
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.7);
    color: #FFD700;
}

.match-result-losses {
    background: rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.7);
    color: #E74C3C;
}

.match-breakdown-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.no-match-data {
    text-align: center;
    padding: 1.5rem;
    background: rgba(25, 50, 90, 0.3);
    border: 1px dashed rgba(107, 182, 255, 0.4);
    border-radius: 12px;
    color: var(--text-muted);
}

.player-profile {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    text-align: center;
    margin-top: 1rem;
    width: 100%;
}

.podiums-section h3,
.career-stats-section h3 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.4rem;
    color: var(--glow-blue);
    text-shadow: 0 0 10px var(--glow-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 0.5rem;
    width: 100%;
}

.podiums-section,
.career-stats-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Podiums Section */
.podiums-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid;
    position: relative;
    min-width: 120px;
    transition: all 0.3s ease;
}

.podium-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.podium-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.1));
    border-color: var(--gold-accent);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.podium-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(255, 255, 255, 0.1));
    border-color: #C0C0C0;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
}

.podium-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(255, 165, 0, 0.1));
    border-color: #CD7F32;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.3);
}

.podium-position {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.podium-1 .podium-position {
    color: var(--gold-accent);
    text-shadow: 0 0 10px var(--gold-accent);
}

.podium-2 .podium-position {
    color: #C0C0C0;
    text-shadow: 0 0 10px #C0C0C0;
}

.podium-3 .podium-position {
    color: #CD7F32;
    text-shadow: 0 0 10px #CD7F32;
}

.podium-season {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 600;
}

/* Team information in podium boxes */
.podium-team-container {
    margin-top: 0.5rem;
    text-align: center;
}

.podium-team {
    font-size: 0.8rem;
    color: var(--glow-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.6rem;
    background: rgba(107, 182, 255, 0.1);
    border: 1px solid rgba(107, 182, 255, 0.3);
    border-radius: 12px;
    display: inline-block;
    transition: all 0.3s ease;
}

.podium-team-link {
    font-size: 0.8rem;
    color: var(--glow-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.6rem;
    background: rgba(107, 182, 255, 0.1);
    border: 1px solid rgba(107, 182, 255, 0.3);
    border-radius: 12px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.podium-team-link:hover {
    background: rgba(107, 182, 255, 0.2);
    border-color: var(--glow-blue);
    box-shadow: 0 0 8px rgba(107, 182, 255, 0.4);
    color: var(--bright-blue);
    text-shadow: 0 0 5px var(--bright-blue);
    transform: translateY(-1px);
}

.podium-team:hover {
    background: rgba(107, 182, 255, 0.2);
    border-color: var(--glow-blue);
    box-shadow: 0 0 8px rgba(107, 182, 255, 0.4);
    transform: translateY(-1px);
}

.champion-crown {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.5rem;
    animation: crownGlow 2s ease-in-out infinite alternate;
}

@keyframes crownGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.5) drop-shadow(0 0 10px var(--gold-accent)); }
}

.no-podiums {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
    background: rgba(26, 35, 50, 0.3);
    border-radius: 8px;
    border: 1px dashed var(--accent-blue);
}

/* Career Statistics Section - New Design */
.career-stats-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    width: 100%;
}

.career-stats-card {
    background: rgba(0, 20, 40, 0.8);
    border: 2px solid rgba(100, 200, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

.career-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--glow-blue);
}

.career-player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

.career-player-name {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--glow-blue);
    text-shadow: 0 0 10px var(--glow-blue);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.career-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    grid-template-rows: auto auto;
}

/* Upper row: Wins, Draws, Losses (3 columns) */
.career-stat-item:nth-child(1),
.career-stat-item:nth-child(2),
.career-stat-item:nth-child(3) {
    grid-row: 1;
}

/* Lower row: Total points, Win rate, Achievements (3 columns) */
.career-stat-item:nth-child(4) {
    grid-row: 2;
    grid-column: 1;
}

.career-stat-item:nth-child(5) {
    grid-row: 2;
    grid-column: 2;
}

.career-stat-item:nth-child(6) {
    grid-row: 2;
    grid-column: 3;
}

.career-stat-item {
    background: rgba(45, 90, 135, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.career-stat-item:hover {
    background: rgba(45, 90, 135, 0.2);
    transform: translateY(-2px);
    border-color: var(--glow-blue);
    box-shadow: 0 4px 15px rgba(107, 182, 255, 0.2);
}

.career-stat-clickable {
    cursor: pointer;
}

.career-stat-clickable:focus-visible {
    outline: 2px solid rgba(107, 182, 255, 0.6);
    outline-offset: 4px;
    box-shadow: 0 0 20px rgba(107, 182, 255, 0.35);
}

.career-stat-item-full {
    grid-column: 1 / -1;
    background: rgba(107, 182, 255, 0.1);
    border-color: var(--glow-blue);
}


.career-win-rate {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-accent);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.career-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.career-stat-value {
    display: block;
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--glow-blue);
    text-shadow: 0 0 15px var(--glow-blue), 0 0 30px var(--glow-blue);
    filter: brightness(1.2);
}

.career-stat-value.wins {
    color: #4CAF50;
    text-shadow: 0 0 15px #4CAF50, 0 0 30px #4CAF50;
    filter: brightness(1.2);
}

.career-stat-value.draws {
    color: #FFC107;
    text-shadow: 0 0 15px #FFC107, 0 0 30px #FFC107;
    filter: brightness(1.2);
}

.career-stat-value.losses {
    color: #F44336;
    text-shadow: 0 0 15px #F44336, 0 0 30px #F44336;
    filter: brightness(1.2);
}

.career-win-rate .career-stat-value {
    font-size: 2.5rem;
    color: var(--gold-accent);
    text-shadow: 0 0 15px var(--gold-accent), 0 0 30px var(--gold-accent);
    filter: brightness(1.2);
}

/* Loading and error states for career stats */
.loading-career-stats {
    text-align: center;
    color: var(--glow-blue);
    font-size: 1rem;
    padding: 2rem;
    background: rgba(26, 35, 50, 0.3);
    border-radius: 10px;
    border: 1px dashed var(--accent-blue);
    font-family: 'Orbitron', 'Exo', sans-serif;
    text-shadow: 0 0 10px var(--glow-blue);
    animation: pulse 2s ease-in-out infinite alternate;
}

.error-career-stats {
    text-align: center;
    color: #F44336;
    font-size: 1rem;
    padding: 2rem;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 10px;
    border: 1px solid #F44336;
    font-family: 'Orbitron', 'Exo', sans-serif;
    text-shadow: 0 0 10px #F44336;
}

/* Achievements */
.achievements-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.achievement-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.1));
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.achievement-badge:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading states */
.no-players {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    grid-column: 1 / -1;
    padding: 2rem;
    background: rgba(26, 35, 50, 0.3);
    border-radius: 10px;
    border: 1px dashed var(--accent-blue);
}

.loading-players {
    text-align: center;
    color: var(--glow-blue);
    font-size: 1.2rem;
    grid-column: 1 / -1;
    padding: 3rem;
    background: rgba(26, 35, 50, 0.3);
    border-radius: 10px;
    border: 1px solid var(--accent-blue);
    font-family: 'Orbitron', 'Exo', sans-serif;
    text-shadow: 0 0 10px var(--glow-blue);
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Toggle Button */
@media (max-width: 768px) {
    .view-toggle {
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.3rem;
    }
    
    .toggle-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .toggle-icon {
        font-size: 1rem;
    }
    
    .toggle-description {
        font-size: 0.6rem;
        margin-top: 0.1rem;
    }
}

@media (max-width: 480px) {
    .view-toggle-container {
        margin-bottom: 2rem;
    }
    
    .toggle-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
        flex-direction: column;
        text-align: center;
    }
    
    .toggle-text {
        font-size: 0.6rem;
        font-weight: 600;
    }
    
    .toggle-description {
        font-size: 0.5rem;
        margin-top: 0.1rem;
        opacity: 0.9;
    }
    
    .toggle-icon {
        font-size: 1.1rem;
    }
}

/* Responsive Grid */
@media (max-width: 1279px) {
    .players-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1023px) {
    .players-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .player-card {
        height: 350px; /* Fixed height for consistency on tablets */
    }
    
    .player-image {
        object-fit: contain; /* Use contain to prevent head cropping */
        object-position: center 50%;
    }
    
    .player-username {
        font-size: 1.1rem;
    }
    
    .player-info {
        padding: 1.5rem 1rem 1rem;
    }
    
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem 1.5rem 2.5rem;
        padding-top: 2.5rem;
    }
    
    .career-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    /* Mobile responsive: stack all items vertically */
    .career-stat-item:nth-child(1),
    .career-stat-item:nth-child(2),
    .career-stat-item:nth-child(3),
    .career-stat-item:nth-child(4),
    .career-stat-item:nth-child(5),
    .career-stat-item:nth-child(6) {
        grid-row: auto;
        grid-column: auto;
        margin: 0;
    }
    
    .career-player-name {
        font-size: 1.5rem;
    }
    
    .career-stats-card {
        padding: 15px;
    }
    
    .podiums-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .achievements-list {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 479px) {
    .players-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .player-card {
        max-width: 300px;
        margin: 0 auto;
        height: 400px; /* Fixed height for consistency */
    }
    
    .player-image {
        object-fit: contain; /* Use contain to prevent head cropping */
        object-position: center 50%;
    }
    
    .player-username {
        font-size: 1rem;
    }
    
    .career-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    /* Mobile: all items stack vertically */
    .career-stat-item:nth-child(1),
    .career-stat-item:nth-child(2),
    .career-stat-item:nth-child(3),
    .career-stat-item:nth-child(4),
    .career-stat-item:nth-child(5),
    .career-stat-item:nth-child(6) {
        grid-row: auto;
        grid-column: auto;
        margin: 0;
    }
    
    .career-player-name {
        font-size: 1.3rem;
    }
    
    .career-stats-card {
        padding: 12px;
    }
    
    .career-stat-value {
        font-size: 2rem;
    }
    
    .career-win-rate .career-stat-value {
        font-size: 2rem;
    }
    
    .player-info {
        padding: 1rem 0.8rem 0.8rem;
    }
    
    
    .modal-content {
        width: 98%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1rem 1rem 2rem;
        padding-top: 2rem;
    }
    
    .player-image-large img {
        width: 120px;
        height: 120px;
    }
    
    .stat-item {
        padding: 0.8rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
}

.season-placeholder h4 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.5rem;
    color: var(--glow-blue);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--glow-blue);
}

.register-btn {
    background: linear-gradient(45deg, var(--accent-blue), var(--bright-blue));
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 90, 135, 0.4);
}

/* Tournament Interface Styles */
.tournament-interface {
    width: 100%;
    margin-top: 2rem;
}

.tournament-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.round-tab {
    background: rgba(45, 90, 135, 0.2);
    border: 2px solid rgba(107, 182, 255, 0.3);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.round-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-blue), transparent);
    transition: left 0.5s ease;
}

.round-tab:hover::before {
    left: 100%;
}

.round-tab:hover {
    border-color: var(--glow-blue);
    color: var(--glow-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 182, 255, 0.3);
}

.round-tab.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--bright-blue));
    border-color: var(--glow-blue);
    color: white;
    box-shadow: 0 0 20px rgba(107, 182, 255, 0.5);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.tournament-content {
    position: relative;
}

.tournament-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tournament-view.active {
    display: block;
}

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

/* Round View Styles */
.round-view {
    padding: 1rem 0;
}

.round-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.round-header h4 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.8rem;
    color: var(--glow-blue);
    text-shadow: 0 0 10px var(--glow-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.matches-container {
    width: 100%;
}

/* Round Table Styles - Google Sheets Style */
.round-table {
    width: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.9), rgba(10, 15, 28, 0.9));
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Match Group Styles */
.match-group {
    position: relative;
    border-bottom: 3px solid var(--glow-blue);
    margin-bottom: 1rem;
    background: rgba(45, 90, 135, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(107, 182, 255, 0.2);
}

.match-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.match-separator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, var(--accent-blue), var(--bright-blue));
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.match-label {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dynamic row coloring based on results */
.round-row.result-win {
    background: rgba(34, 139, 34, 0.3) !important;
    border-left-color: #22c55e !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.round-row.result-win:hover {
    background: rgba(34, 139, 34, 0.4) !important;
}

.round-row.result-loss {
    background: rgba(220, 38, 127, 0.3) !important;
    border-left-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.round-row.result-loss:hover {
    background: rgba(220, 38, 127, 0.4) !important;
}

.round-row.result-draw {
    background: rgba(255, 165, 0, 0.3) !important;
    border-left-color: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.round-row.result-draw:hover {
    background: rgba(255, 165, 0, 0.4) !important;
}

.round-table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1fr 1fr;
    background: linear-gradient(135deg, var(--accent-blue), var(--bright-blue));
    color: white;
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.round-table-header > div {
    padding: 1rem 0.8rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.round-table-header > div:last-child {
    border-right: none;
}

.round-table-body {
    display: contents;
}

.round-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(107, 182, 255, 0.3);
    transition: all 0.2s ease;
    align-items: center;
    background: rgba(10, 15, 28, 0.5);
    border-radius: 4px;
    margin-bottom: 2px;
}

.round-row:hover {
    background: rgba(107, 182, 255, 0.15);
    transform: translateX(2px);
}

.round-row:last-child {
    border-bottom: 1px solid rgba(107, 182, 255, 0.3);
}

.round-row.player-a {
    border-left: 3px solid var(--bright-blue);
}

.round-row.player-b {
    border-left: 3px solid var(--glow-blue);
}

.round-row > div {
    padding: 0.8rem;
    text-align: center;
    border-right: 1px solid rgba(107, 182, 255, 0.2);
}

.round-row > div:last-child {
    border-right: none;
}

.col-player {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 600;
    color: var(--text-light);
    text-align: left !important;
    padding-left: 1rem !important;
}

/* Compact Input Styles */
.round-row input[type="number"],
.round-row select {
    width: 100%;
    background: rgba(10, 15, 28, 0.8);
    border: 1px solid var(--accent-blue);
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Orbitron', 'Exo', sans-serif;
    text-align: center;
    transition: all 0.3s ease;
}

.round-row input[type="number"]:focus,
.round-row select:focus {
    outline: none;
    border-color: var(--glow-blue);
    box-shadow: 0 0 8px rgba(107, 182, 255, 0.3);
}

.round-row .match-score-display,
.round-row .round-total-display {
    background: rgba(45, 90, 135, 0.3);
    color: var(--glow-blue);
    font-weight: 700;
    cursor: not-allowed;
}

.round-row select {
    cursor: pointer;
}

.round-row select option {
    background: var(--primary-dark);
    color: var(--text-light);
}

/* Result color coding */
.round-row select[value="win"] {
    background: rgba(34, 139, 34, 0.3);
    color: #90EE90;
}

.round-row select[value="loss"] {
    background: rgba(220, 20, 60, 0.3);
    color: #FFB6C1;
}

.round-row select[value="draw"] {
    background: rgba(255, 165, 0, 0.3);
    color: #FFD700;
}

/* Responsive Tournament Styles */
@media (max-width: 1024px) {
    .round-table-header,
    .round-row {
        grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr 0.8fr 0.8fr;
        font-size: 0.8rem;
    }
    
    .round-row input[type="number"],
    .round-row select {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    .match-separator {
        padding: 0.4rem 0.8rem;
    }
    
    .match-label {
        font-size: 0.8rem;
    }
    

}

@media (max-width: 768px) {
    .season-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .season-stats {
        margin-right: 0;
        justify-content: center;
    }
    
    .season-name {
        font-size: 1.5rem;
    }
    
    /* Mobile Action Buttons */
    .season-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        align-items: stretch;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    /* Match Card Mobile Optimization - COMPACT DESIGN */
    .match-card {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
        align-items: stretch;
        min-height: 200px; /* Much smaller height */
    }
    
    .vs-separator-large {
        font-size: 1rem;
        padding: 0.25rem 0;
        order: 1;
    }
    
    .match-player {
        width: 100%;
        margin: 0;
        min-height: 80px; /* Much smaller height */
        padding: 0.5rem;
        height: auto;
    }
    
    .match-player:first-child {
        order: 0;
    }
    
    .match-player:last-child {
        order: 2;
    }
    
    .result-badge-container {
        margin-bottom: 0.5rem;
        padding: 0.4rem;
        gap: 0.3rem;
        min-height: 50px;
        max-height: 60px;
        overflow: hidden;
        box-sizing: border-box;
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .result-badge-container .player-name {
        font-size: 0.7rem;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100% - 25px); /* More space for text */
        margin: 0;
        box-sizing: border-box;
        display: block;
        text-align: center;
    }
    
    .result-badge-container .fireteam-badge {
        font-size: 0.4rem;
        padding: 0.06rem 0.2rem;
        max-width: calc(100% - 25px);
        width: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        line-height: 1.2;
        display: inline-block;
        box-sizing: border-box;
        margin: 0;
    }
    
    .result-badge {
        font-size: 0.2rem;
        padding: 0.03rem 0.08rem;
        max-width: 25px;
        top: 0.05rem;
        right: 0.05rem;
        height: auto;
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .player-stats {
        min-height: 80px;
        padding: 0.4rem;
        flex-grow: 1;
    }
    
    .player-stats td {
        padding: 0.2rem 0.15rem;
        font-size: 0.6rem;
    }
    
    .player-stats .stat-label {
        font-size: 0.5rem;
    }
    
    .player-stats .stat-value {
        font-size: 0.6rem;
    }
    
    /* Extra small mobile adjustments - ULTRA COMPACT */
    @media (max-width: 480px) {
        .match-card {
            min-height: 180px;
            gap: 0.4rem;
            padding: 0.4rem;
        }
        
        .match-player {
            min-height: 70px;
            padding: 0.4rem;
        }
        
        .result-badge-container .fireteam-badge {
            font-size: 0.3rem;
            padding: 0.04rem 0.15rem;
            line-height: 1.2;
            max-width: calc(100% - 20px);
            box-sizing: border-box;
        }
        
        .result-badge-container .player-name {
            font-size: 0.6rem;
            line-height: 1.2;
            max-width: calc(100% - 20px);
            box-sizing: border-box;
        }
        
        .result-badge {
            font-size: 0.15rem;
            padding: 0.02rem 0.06rem;
            max-width: 20px;
            top: 0.05rem;
            right: 0.05rem;
            height: auto;
            line-height: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .result-badge-container {
            padding: 0.3rem;
            min-height: 45px;
            max-height: 55px;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            box-sizing: border-box;
            gap: 0.2rem;
        }
        
        .player-stats {
            min-height: 70px;
            padding: 0.3rem;
        }
        
        .player-stats td {
            padding: 0.15rem 0.1rem;
            font-size: 0.5rem;
        }
        
        .player-stats .stat-label {
            font-size: 0.4rem;
        }
        
        .player-stats .stat-value {
            font-size: 0.5rem;
        }
    }
    
    /* Final Score Cards Mobile */
    .final-score-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 0.5rem;
        align-items: center;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-left: none;
        border-right: none;
        border-radius: 8px;
    }
    
    .placement-badge {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .player-info-section {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .player-details {
        align-items: center;
    }
    
    .score-section {
        width: 100%;
    }
    
    .detailed-stats {
        gap: 1rem;
        justify-content: center;
    }
    
    .main-scores-container {
        justify-content: center;
    }
    
    .leaderboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .table-header,
    .player-row {
        grid-template-columns: 60px 1.5fr 120px 80px 50px 50px 50px 60px 1fr;
        font-size: 0.8rem;
    }
    
    .tournament-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .round-tab {
        text-align: center;
    }
    
    .round-table-header,
    .round-row {
        grid-template-columns: 1fr 0.6fr 0.8fr 0.6fr 0.6fr 0.6fr;
        font-size: 0.7rem;
    }
    
    .round-table-header > div,
    .round-row > div {
        padding: 0.5rem 0.3rem;
    }
    
    .round-row input[type="number"],
    .round-row select {
        padding: 0.3rem;
        font-size: 0.7rem;
    }
    
    .match-group {
        padding: 0.3rem;
        margin-bottom: 0.8rem;
    }
    
    .match-separator {
        padding: 0.3rem 0.5rem;
        margin-bottom: 0.3rem;
    }
    
    .match-label {
        font-size: 0.7rem;
    }
    
    .round-header h4 {
        font-size: 1.4rem;
    }
}

/* Result Highlighting */
.result-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeIn 0.5s 0.3s forwards;
}

.match-player.result-win {
    border-color: var(--status-completed);
    background: rgba(39, 174, 96, 0.1);
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.4);
}
.match-player.result-win .result-badge-container {
    border-color: var(--status-completed);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2), rgba(39, 174, 96, 0.1));
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}
.match-player.result-win .result-badge {
    background-color: var(--status-completed);
    color: white;
}

.match-player.result-loss {
    border-color: var(--danger-red);
    background: rgba(231, 76, 60, 0.1);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}
.match-player.result-loss .result-badge-container {
    border-color: var(--danger-red);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.1));
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}
.match-player.result-loss .result-badge {
    background-color: var(--danger-red);
    color: white;
}

.match-player.result-draw {
    border-color: var(--status-active);
    background: rgba(255, 193, 7, 0.1);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}
.match-player.result-draw .result-badge-container {
    border-color: var(--status-active);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}
.match-player.result-draw .result-badge {
    background-color: var(--status-active);
    color: #111;
}

/* Final Scores Accordion - Hidden by default */
.final-scores-accordion {
    display: none;
}

/* Show Final Scores only when expanded */
.final-scores-accordion.expanded {
    display: block;
}

.final-scores-accordion .final-scores-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.final-scores-accordion .round-accordion-content {
    overflow: visible;
    padding-bottom: 10px;
}

.final-scores-accordion .final-scores-header:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

.final-scores-title {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}

/* Final Scores Container */
.final-scores-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 20px 30px 20px;
    margin-bottom: 10px;
}

/* Mobile Final Scores Container */
@media (max-width: 768px) {
    .final-scores-container {
        padding: 12px 0px 16px 0px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .final-scores-container {
        padding: 8px 0px 12px 0px;
        gap: 6px;
    }
}

/* Final Score Cards */
.final-score-card {
    display: flex;
    align-items: center;
    background: rgba(0, 20, 40, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(100, 200, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    margin-bottom: 5px;
}

.final-score-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.final-score-card:last-child {
    margin-bottom: 0;
}

/* Placement Styling */
.final-score-card.first-place {
    border-color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 20, 40, 0.8));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.final-score-card.second-place {
    border-color: #C0C0C0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(0, 20, 40, 0.8));
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
}

.final-score-card.third-place {
    border-color: #CD7F32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(0, 20, 40, 0.8));
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.3);
}

/* Placement Badge */
.placement-badge {
    font-size: 2rem;
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: bold;
}

.first-place .placement-badge {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.second-place .placement-badge {
    color: #C0C0C0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.8);
}

.third-place .placement-badge {
    color: #CD7F32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.8);
}

.other-place .placement-badge {
    color: var(--text-light);
    font-size: 1.5rem;
}

/* Player Info Section */
.player-info-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin-right: 20px;
}

.player-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.player-details .player-name {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(100, 200, 255, 0.6);
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.15), rgba(255, 255, 255, 0.05));
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid rgba(100, 200, 255, 0.4);
    letter-spacing: 1px;
}

.player-details .player-stats-summary {
    font-family: 'Exo', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Enhanced player name styling for medal winners */
.first-place .player-details .player-name {
    color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.6);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 215, 0, 0.8);
}

.second-place .player-details .player-name {
    color: #E8E8E8;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(192, 192, 192, 0.6);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(192, 192, 192, 0.8);
}

.third-place .player-details .player-name {
    color: #CD853F;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(255, 165, 0, 0.1));
    border-color: rgba(205, 127, 50, 0.6);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(205, 127, 50, 0.8);
}

/* Score Section */
.score-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.main-scores-container {
    display: flex;
    align-items: flex-end; /* Aligns the bottom of the items */
    gap: 0.5rem;
    justify-content: center;
}

.total-achievements {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    border: 1px solid var(--accent-yellow);
    min-width: 60px;
    height: 100%; /* Make it match height of sibling */
}

.score-value-small {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-yellow);
    font-family: 'Orbitron', 'Exo', sans-serif;
}

.score-label-small {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-yellow);
    opacity: 0.8;
}

.detailed-stats {
    display: flex;
    gap: 1rem;
}

.total-score {
    text-align: center;
    padding: 15px 20px;
    background: rgba(100, 200, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(100, 200, 255, 0.3);
}

.total-score .score-value {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--status-completed);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.total-score .score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--glow-blue);
    opacity: 0.8;
}

.detailed-stats {
    display: flex;
    gap: 2rem;
    background: rgba(0,0,0,0.2);
}

.stat-item {
    text-align: center;
    min-width: 50px;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-label {
    font-family: 'Exo', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.detailed-stats .wins .stat-number {
    color: var(--status-completed);
}

.detailed-stats .wins .stat-label {
    color: rgba(76, 175, 80, 0.8);
}

.detailed-stats .draws .stat-number {
    color: var(--status-active);
}

.detailed-stats .draws .stat-label {
    color: rgba(255, 193, 7, 0.8);
}

.detailed-stats .losses .stat-number {
    color: var(--danger-red);
}

.detailed-stats .losses .stat-label {
    color: rgba(244, 67, 54, 0.8);
}

.no-matches-message {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-family: 'Exo', sans-serif;
}

/* Final Scores Trigger Button */
.final-scores-trigger {
    padding: 20px;
    text-align: center;
}

.show-final-scores-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.08));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    padding: 15px 30px;
    color: #FFD700;
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    min-width: 200px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
}

.show-final-scores-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 140, 0, 0.15));
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.show-final-scores-btn .trophy-icon {
    font-size: 1.2rem;
}

.show-final-scores-btn .btn-text {
    font-weight: 800;
}

.total-score .score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--glow-blue);
    opacity: 0.8;
}

/* Compact Fireteam Button (under player name) */
.fireteam-button-compact {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(100, 200, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Exo', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 0.3rem; /* Reduced space from the player name */
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: fit-content;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    opacity: 0.8;
}

/* When fireteam-button-compact is a link */
.fireteam-button-compact.fireteam-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.fireteam-button-compact.fireteam-link:hover {
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(100, 200, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    opacity: 1;
}

.fireteam-button-compact:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(100, 200, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    opacity: 1;
}

.fireteam-name-compact {
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 0.7rem;
}

/* Enhanced compact fireteam button styling for medal winners */
.first-place .fireteam-button-compact {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.first-place .fireteam-button-compact:hover,
.first-place .fireteam-button-compact.fireteam-link:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.5);
}

.first-place .fireteam-name-compact {
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.second-place .fireteam-button-compact {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(192, 192, 192, 0.3);
}

.second-place .fireteam-button-compact:hover,
.second-place .fireteam-button-compact.fireteam-link:hover {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(192, 192, 192, 0.5);
}

.second-place .fireteam-name-compact {
    color: #E8E8E8;
}

.third-place .fireteam-button-compact {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(255, 165, 0, 0.05));
    border-color: rgba(205, 127, 50, 0.3);
}

.third-place .fireteam-button-compact:hover,
.third-place .fireteam-button-compact.fireteam-link:hover {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(255, 165, 0, 0.1));
    border-color: rgba(205, 127, 50, 0.5);
}

.third-place .fireteam-name-compact {
    color: #CD853F;
}

.detailed-stats {
    display: flex;
    gap: 2rem;
}

/* Learning Methods Section */
.learning-methods {
    padding: 4rem 0;
    background: rgba(26, 35, 50, 0.3);
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.method-card {
    background: linear-gradient(135deg, 
        rgba(45, 90, 135, 0.1) 0%, 
        rgba(10, 15, 28, 0.8) 100%);
    border: 2px solid var(--accent-blue);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(107, 182, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.method-card:hover::before {
    transform: translateX(100%);
}

.method-card:hover {
    transform: translateY(-10px);
    border-color: var(--glow-blue);
    box-shadow: 0 20px 40px rgba(45, 90, 135, 0.3);
}

.method-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px var(--glow-blue));
}

.method-card h3 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.method-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.method-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--bright-blue));
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.method-button:hover {
    background: linear-gradient(135deg, var(--bright-blue), var(--glow-blue));
    border-color: var(--bright-blue);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Arsenal Section Styles */
.arsenal-section {
    padding: 4rem 0;
    background: rgba(26, 35, 50, 0.2);
    border-top: 1px solid rgba(45, 90, 135, 0.3);
    border-bottom: 1px solid rgba(45, 90, 135, 0.3);
}

.arsenal-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.arsenal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, 
        rgba(45, 90, 135, 0.1) 0%, 
        rgba(10, 15, 28, 0.8) 100%);
    border: 2px solid var(--accent-blue);
    border-radius: 15px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 80px;
}

.arsenal-button:hover {
    background: linear-gradient(135deg, var(--bright-blue), var(--glow-blue));
    border-color: var(--bright-blue);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    transform: translateY(-3px);
    color: white;
}

.arsenal-button .button-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Weapons Content */
.weapons-content {
    padding: 4rem 0;
    background: rgba(10, 15, 28, 0.5);
}

.weapons-content.hidden {
    display: none;
}

.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.weapon-card {
    background: linear-gradient(135deg, 
        rgba(45, 90, 135, 0.1) 0%, 
        rgba(10, 15, 28, 0.8) 100%);
    border: 2px solid var(--accent-blue);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.weapon-card:hover {
    border-color: var(--glow-blue);
    box-shadow: 0 0 20px rgba(45, 90, 135, 0.3);
    transform: translateY(-2px);
}

.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(107, 182, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.weapon-card:hover::before {
    transform: translateX(100%);
}

.weapon-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.weapon-icon {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: contain;
    border: 2px solid var(--accent-blue);
    flex-shrink: 0;
    background: rgba(45, 90, 135, 0.1);
}

.weapon-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    flex: 1;
}

.weapon-cost {
    background: var(--accent-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.weapon-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.weapon-stats {
    margin-bottom: 1.25rem;
}

.weapon-mode {
    padding: 1rem;
    background: rgba(45, 90, 135, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
    margin-bottom: 1rem;
}

.weapon-mode:last-child {
    margin-bottom: 0;
}

.mode-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--glow-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.weapon-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.weapon-stats-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.stat-value {
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.1rem;
}

.weapon-keywords {
    margin-top: 1rem;
}

.keywords-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--glow-blue);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    background: rgba(107, 182, 255, 0.2);
    color: var(--glow-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(107, 182, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.keyword-tag:hover,
.keyword-tag:focus {
    background: rgba(107, 182, 255, 0.35);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(107, 182, 255, 0.4);
}

/* Keywords Content */
.keywords-content {
    padding: 4rem 0;
    background: rgba(10, 15, 28, 0.5);
}

.keywords-content.hidden {
    display: none;
}

.keywords-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.keyword-entry {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(45, 90, 135, 0.1) 0%, 
        rgba(10, 15, 28, 0.8) 100%);
    border: 2px solid var(--accent-blue);
    border-radius: 15px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.keyword-entry:hover {
    border-color: var(--glow-blue);
    box-shadow: 0 0 20px rgba(45, 90, 135, 0.3);
    transform: translateY(-2px);
}

.keyword-block {
    background: linear-gradient(135deg, var(--accent-blue), var(--bright-blue));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(45, 90, 135, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent-blue);
}

.keyword-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(107, 182, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.keyword-entry:hover .keyword-block::before {
    transform: translateX(100%);
}

.keyword-entry:hover .keyword-block {
    background: linear-gradient(135deg, var(--bright-blue), var(--glow-blue));
    border-color: var(--glow-blue);
    box-shadow: 0 4px 12px rgba(107, 182, 255, 0.4);
}

.keyword-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
    padding-top: 0.25rem;
}

/* Mobile Responsive for Keywords */
@media (max-width: 768px) {
    .keywords-list {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .keyword-entry {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .keyword-block {
        width: 100%;
        min-width: auto;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .keyword-description {
        padding-top: 0;
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .keywords-list {
        padding: 0 0.5rem;
    }
    
    .keyword-entry {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .keyword-block {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .keyword-description {
        font-size: 0.85rem;
    }
}

/* Text Rules Content */
.text-rules {
    padding: 4rem 0;
    background: rgba(10, 15, 28, 0.5);
}

.text-rules.hidden {
    display: none;
}

.rules-content {
    margin-top: 2rem;
}

/* Rules Accordion */
.rules-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    background: linear-gradient(135deg, 
        rgba(45, 90, 135, 0.1) 0%, 
        rgba(10, 15, 28, 0.8) 100%);
    border: 2px solid var(--accent-blue);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rule-item:hover {
    border-color: var(--glow-blue);
    box-shadow: 0 10px 30px rgba(45, 90, 135, 0.2);
}

.rule-item.faq-highlight {
    border-color: var(--glow-blue);
    box-shadow: 0 0 25px rgba(45, 135, 255, 0.2);
    background: linear-gradient(135deg,
        rgba(30, 70, 125, 0.35) 0%,
        rgba(10, 15, 28, 0.85) 100%);
}

.rule-item.faq-highlight .rule-header {
    background: rgba(45, 135, 255, 0.12);
}

.rule-item.faq-highlight .rule-header:hover {
    background: rgba(45, 135, 255, 0.18);
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(45, 90, 135, 0.05);
}

.rule-header:hover {
    background: rgba(45, 90, 135, 0.1);
}

.rule-title {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.4rem;
    color: var(--text-light);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.rule-toggle {
    font-size: 1.2rem;
    color: var(--glow-blue);
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.rule-item.active .rule-toggle {
    transform: rotate(180deg);
}

.rule-content {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(10, 15, 28, 0.3);
}

.rule-item.active .rule-content {
    max-height: none;
    padding: 2rem;
}

.rule-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-entry {
    background: rgba(45, 90, 135, 0.18);
    border: 1px solid rgba(68, 146, 255, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 15px rgba(45, 90, 135, 0.1);
}

.faq-entry:last-child {
    margin-bottom: 0;
}

.faq-question {
    margin: 0 0 0.75rem 0;
    font-family: 'Orbitron', 'Exo', sans-serif;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.faq-answer {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.rule-content p:last-child {
    margin-bottom: 0;
}

.rule-content strong {
    color: var(--glow-blue);
    font-weight: 600;
}

.rule-content h4 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-blue);
}

.rule-content h5 {
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.1rem;
    color: var(--glow-blue);
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.rule-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.rule-content li {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Mobile Responsive for Learning Methods */
@media (max-width: 768px) {
    .method-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .method-card {
        padding: 2rem;
    }
    
    .method-icon {
        font-size: 3rem;
    }
    
    .method-card h3 {
        font-size: 1.5rem;
    }
    
    .method-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Mobile Responsive for Rules Accordion */
    .rule-item.active .rule-content {
        max-height: none;
        padding: 1.5rem;
    }
    
    .rule-header {
        padding: 1.25rem 1.5rem;
    }
    
    .rule-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .rule-content h4 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .rule-content h5 {
        font-size: 1rem;
        margin: 1.25rem 0 0.5rem 0;
    }
    
    .rule-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .rule-content li {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .rule-content ul {
        padding-left: 1.25rem;
    }
}

/* Command Dice Cards */
.command-dice-card {
    display: flex;
    background: #f5f5f0;
    border: 2px solid #2c2c2c;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    gap: 1.5rem;
    align-items: flex-start;
}

.command-dice-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.command-dice-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.command-dice-content {
    flex: 1;
}

.command-dice-content h5 {
    color: #2c2c2c;
    font-weight: 600;
    margin: 0.75rem 0 0.25rem 0;
    font-size: 1rem;
}

.command-dice-content h5:first-child {
    margin-top: 0;
}

.command-dice-content p {
    margin: 0.25rem 0 0.5rem 0;
    line-height: 1.4;
    color: #444;
}

.command-dice-content ul {
    margin: 0.25rem 0 0.5rem 0;
    padding-left: 1.2rem;
}

.command-dice-content li {
    margin: 0.25rem 0;
    line-height: 1.4;
    color: #444;
}

/* Mobile responsiveness for command dice cards */
@media (max-width: 768px) {
    .command-dice-card {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .command-dice-icon {
        width: 60px;
        height: 60px;
        align-self: center;
    }
}

/* Best Practices Section */
.best-practices {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00d4ff;
    margin-top: 2rem;
}

.best-practices h3 {
    color: #00d4ff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.best-practices p {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.best-practices-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.best-practices-list li {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid #00d4ff;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1rem;
}

.best-practices-list li:last-child {
    margin-bottom: 0;
}

.best-practices-list li strong {
    color: #00d4ff;
    font-weight: 600;
}

/* Mobile responsiveness for best practices */
@media (max-width: 768px) {
    .best-practices h3 {
        font-size: 1.2rem;
    }
    
    .best-practices p {
        font-size: 1rem;
    }
    
    .best-practices-list li {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Final scores mobile fixes */
@media (max-width: 768px) {
    .final-score-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 16px;
        gap: 12px;
    }

    .final-score-card .placement-badge {
        margin: 0 0 8px;
    }

    .final-score-card .player-info-section {
        margin-right: 0;
        width: 100%;
    }

    .final-score-card .score-section {
        width: 100%;
    }

    .final-score-card .main-scores-container {
        justify-content: center;
        gap: 12px;
    }

    .final-score-card .detailed-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .final-score-card .stat-item {
        flex: 1 1 80px;
    }

    .season-rounds {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .final-score-card {
        padding: 10px 12px;
    }

    .final-score-card .main-scores-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .total-score {
        width: 100%;
    }
}

.sliding-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(20, 28, 48, 0.98), rgba(10, 15, 28, 0.98));
    border-left: 0.125rem solid var(--glow-blue);
    z-index: 2000;
    transition: right 0.35s ease-in-out, visibility 0.35s ease-in-out, opacity 0.35s ease-in-out;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
}

.sliding-panel.show {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.sliding-panel.hidden {
    right: -100%;
    visibility: hidden;
    opacity: 0;
}

body.panel-open {
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, rgba(42, 42, 62, 0.95), rgba(30, 30, 50, 0.95));
    padding: 1.5rem;
    border-bottom: 0.125rem solid var(--glow-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 5;
}

.panel-header h2 {
    color: var(--glow-blue);
    font-family: 'Orbitron', 'Exo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 0.75rem rgba(0, 212, 255, 0.5);
}

.panel-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.panel-close:hover,
.panel-close:focus {
    background: rgba(255, 255, 255, 0.12);
    color: var(--glow-blue);
}

.panel-content {
    padding: 2rem 1.75rem;
}

.keyword-panel {
    z-index: 2100;
}

.keyword-panel .panel-header {
    background: linear-gradient(135deg, rgba(42, 58, 88, 0.95), rgba(26, 40, 66, 0.95));
}

.keyword-panel .panel-header h2 {
    color: #00d4ff;
}

.keyword-panel .keyword-description {
    padding: 1.5rem;
    color: #e9f4ff;
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(0, 212, 255, 0.2);
    box-shadow: inset 0 0 1rem rgba(0, 212, 255, 0.15);
}

@media (min-width: 56rem) {
    .sliding-panel {
        width: 32rem;
    }
}
