/* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
        }
        
        :root {
            --primary-red: #d22b2b;
            --secondary-red: #ff4444;
            --tournament-gold: #ffd700;
            --dark-bg: #1a1a1a;
            --light-bg: #f8f9fa;
            --border-color: #e0e0e0;
            --text-primary: #202122;
            --text-secondary: #54595d;
            --accent-green: #00a650;
            --accent-blue: #0066b3;
            --wiki-sidebar: #f6f6f6;
            --tournament-bracket: #e8f4f8;
            --max-width: 1200px;
        }
        
        body {
            color: var(--text-primary);
            background-color: white;
            line-height: 1.6;
            font-size: 16px;
            overflow-x: hidden;
        }
        
        /* Typography */
        h1, h2, h3, h4, h5, h6 {
            color: var(--text-primary);
            font-weight: 600;
            line-height: 1.3;
            margin-bottom: 0.75rem;
        }
        
        h1 {
            font-size: 2.5rem;
            border-bottom: 3px solid var(--primary-red);
            padding-bottom: 0.5rem;
            margin-bottom: 1.5rem;
            background: linear-gradient(90deg, var(--primary-red), #b31b1b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        h2 {
            font-size: 1.8rem;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 0.5rem;
            margin-top: 2rem;
            margin-bottom: 1rem;
        }
        
        h3 {
            font-size: 1.4rem;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
        }
        
        p {
            margin-bottom: 1rem;
            max-width: 80ch;
        }
        
        a {
            color: var(--primary-red);
            text-decoration: none;
        }
        
        a:hover {
            text-decoration: underline;
        }
        
        /* Layout */
        .container {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 1rem;
        }
        
        /* Header Styles */
        header {
            background-color: white;
            border-bottom: 1px solid var(--border-color);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
        }
        
        .logo {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--primary-red);
            text-decoration: none;
            display: flex;
            align-items: center;
        }
        
        .logo span {
            background-color: var(--primary-red);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            margin-left: 0.5rem;
            font-size: 1.2rem;
        }
        
        /* Navigation */
        .desktop-nav {
            display: flex;
            gap: 1.5rem;
        }
        
        .desktop-nav a {
            font-weight: 500;
            color: var(--text-primary);
            padding: 0.5rem 0;
            position: relative;
        }
        
        .desktop-nav a.active {
            color: var(--primary-red);
        }
        
        .desktop-nav a.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--primary-red);
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-primary);
            cursor: pointer;
            padding: 0.5rem;
            width: 44px;
            height: 44px;
        }
        
        .mobile-nav {
            display: none;
            flex-direction: column;
            background-color: white;
            border-top: 1px solid var(--border-color);
            padding: 1rem;
        }
        
        .mobile-nav.active {
            display: flex;
        }
        
        .mobile-nav a {
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border-color);
            font-weight: 500;
        }
        
        /* Main Content Layout */
        .content-layout {
            display: flex;
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .main-content {
            flex: 1;
            min-width: 0;
        }
        
        .sidebar {
            width: 300px;
            flex-shrink: 0;
        }
        
        /* Wiki Info Box */
        .wiki-info-box {
            background-color: var(--wiki-sidebar);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .info-box-title {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
            text-align: center;
        }
        
        .info-box-row {
            display: flex;
            margin-bottom: 0.75rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .info-label {
            font-weight: 600;
            min-width: 120px;
            color: var(--text-secondary);
        }
        
        .info-value {
            flex: 1;
        }
        
        /* Sections */
        .section-card {
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .section-title {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .section-title i {
            margin-right: 0.75rem;
            color: var(--primary-red);
            font-size: 1.5rem;
        }
        
        /* Images */
        .responsive-img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 1.5rem 0;
            border: 1px solid var(--border-color);
        }
        
        .img-caption {
            text-align: center;
            font-style: italic;
            color: var(--text-secondary);
            margin-top: 0.5rem;
            font-size: 0.9rem;
        }
        
        /* Tables */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .data-table th, .data-table td {
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            text-align: left;
        }
        
        .data-table th {
            background-color: var(--light-bg);
            font-weight: 600;
        }
        
        .data-table tr:nth-child(even) {
            background-color: var(--light-bg);
        }
        
        /* Tournament Bracket Visualization */
        .tournament-bracket {
            background-color: var(--tournament-bracket);
            border: 2px solid var(--accent-blue);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 2rem 0;
            position: relative;
            overflow-x: auto;
        }
        
        .bracket-stage {
            display: flex;
            justify-content: space-around;
            margin-bottom: 1.5rem;
        }
        
        .bracket-match {
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.75rem;
            margin: 0.5rem;
            min-width: 180px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .match-team {
            display: flex;
            justify-content: space-between;
            padding: 0.25rem 0;
        }
        
        .match-winner {
            font-weight: 700;
            color: var(--primary-red);
        }
        
        /* Lists */
        .content-list {
            margin-left: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .content-list li {
            margin-bottom: 0.5rem;
        }
        
        /* Buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 1.5rem;
            background-color: var(--primary-red);
            color: white;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s;
            text-decoration: none;
            min-height: 44px;
            min-width: 44px;
        }
        
        .btn:hover {
            background-color: var(--secondary-red);
            text-decoration: none;
        }
        
        .btn-secondary {
            background-color: var(--light-bg);
            color: var(--text-primary);
        }
        
        .btn-secondary:hover {
            background-color: #e9ecef;
        }
        
        .btn-gold {
            background-color: var(--tournament-gold);
            color: #856404;
        }
        
        .btn-gold:hover {
            background-color: #e6c300;
        }
        
        /* Forms */
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }
        
        .form-input, .form-textarea {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 1rem;
        }
        
        .form-textarea {
            min-height: 150px;
            resize: vertical;
        }
        
        /* Rating System */
        .rating-container {
            display: flex;
            align-items: center;
            margin: 1.5rem 0;
        }
        
        .rating-stars {
            display: flex;
            margin-right: 1rem;
        }
        
        .rating-star {
            font-size: 1.5rem;
            color: #ddd;
            cursor: pointer;
            margin-right: 0.25rem;
            transition: color 0.2s;
        }
        
        .rating-star.active {
            color: var(--tournament-gold);
        }
        
        /* Social Sharing */
        .social-sharing {
            display: flex;
            gap: 0.75rem;
            margin: 2rem 0;
        }
        
        .social-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            color: white;
            font-size: 1.2rem;
        }
        
        .facebook {
            background-color: #3b5998;
        }
        
        .twitter {
            background-color: #1da1f2;
        }
        
        .reddit {
            background-color: #ff4500;
        }
        
        .discord {
            background-color: #5865f2;
        }
        
        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--primary-red);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            z-index: 99;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }
        
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        /* Footer */
        footer {
            background-color: var(--dark-bg);
            color: white;
            padding: 3rem 0 2rem;
            margin-top: 3rem;
        }
        
        .footer-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 2rem;
        }
        
        .footer-section {
            flex: 1;
            min-width: 250px;
        }
        
        .footer-title {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            color: white;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.75rem;
        }
        
        .footer-links a {
            color: #ddd;
        }
        
        .footer-links a:hover {
            color: white;
            text-decoration: underline;
        }
        
        friend-link {
            display: block;
            margin: 1.5rem 0;
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid #444;
            color: #aaa;
            font-size: 0.9rem;
        }
        
        /* Tabs */
        .tab-container {
            margin: 2rem 0;
        }
        
        .tab-header {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
            overflow-x: auto;
        }
        
        .tab-btn {
            padding: 0.75rem 1.5rem;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            font-weight: 600;
            color: var(--text-secondary);
            cursor: pointer;
            min-height: 44px;
            white-space: nowrap;
        }
        
        .tab-btn.active {
            color: var(--primary-red);
            border-bottom-color: var(--primary-red);
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* Badges */
        .badge {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            background-color: var(--primary-red);
            color: white;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-right: 0.5rem;
        }
        
        .badge-new {
            background-color: var(--accent-green);
        }
        
        .badge-tournament {
            background-color: var(--accent-blue);
        }
        
        .badge-knockout {
            background-color: #8b0000;
        }
        
        /* Tournament-specific styles */
        .tournament-feature {
            background-color: #fff0f0;
            border-left: 4px solid var(--primary-red);
            padding: 1rem;
            margin: 1.5rem 0;
            border-radius: 0 8px 8px 0;
        }
        
        .knockout-phase {
            display: inline-block;
            padding: 0.5rem 1rem;
            background-color: #ffebee;
            border: 1px solid #ffcdd2;
            border-radius: 20px;
            font-weight: 600;
            color: #c62828;
            margin: 0.25rem;
        }
        
        .trophy-display {
            display: inline-flex;
            align-items: center;
            background: linear-gradient(135deg, #ffd700, #ffed4e);
            border: 2px solid #ffc107;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 700;
            color: #856404;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .trophy-display i {
            margin-right: 0.5rem;
        }
        
        /* Responsive Design */
        @media (max-width: 1024px) {
            .content-layout {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                order: -1;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            h2 {
                font-size: 1.6rem;
            }
            
            .tournament-bracket {
                overflow-x: auto;
            }
        }
        
        @media (max-width: 768px) {
            .desktop-nav {
                display: none;
            }
            
            .mobile-menu-btn {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .header-container {
                padding: 0.5rem 1rem;
            }
            
            .logo {
                font-size: 1.8rem;
            }
            
            .section-card {
                padding: 1rem;
            }
            
            .social-sharing {
                justify-content: center;
            }
            
            .footer-container {
                flex-direction: column;
                gap: 1.5rem;
            }
            
            .tab-header {
                flex-wrap: wrap;
            }
            
            .bracket-stage {
                flex-direction: column;
            }
        }
        
        @media (max-width: 480px) {
            .info-box-row {
                flex-direction: column;
            }
            
            .info-label {
                min-width: auto;
                margin-bottom: 0.25rem;
            }
            
            .rating-container {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .rating-stars {
                margin-bottom: 0.5rem;
            }
            
            h1 {
                font-size: 1.8rem;
            }
            
            .btn {
                width: 100%;
                justify-content: center;
            }
        }
        
        /* Knockout-specific animations */
        @keyframes knockoutFlash {
            0% { background-color: white; }
            50% { background-color: #fff0f0; }
            100% { background-color: white; }
        }
        
        .knockout-match {
            animation: knockoutFlash 2s ease-in-out;
        }
        
        /* Game modes indicators */
        .mode-indicator {
            display: inline-flex;
            align-items: center;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 600;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
        }
        
        .mode-worldcup {
            background-color: #e3f2fd;
            color: #1565c0;
            border: 1px solid #bbdefb;
        }
        
        .mode-champions {
            background-color: #f3e5f5;
            color: #7b1fa2;
            border: 1px solid #e1bee7;
        }
        
        .mode-europa {
            background-color: #e8f5e9;
            color: #2e7d32;
            border: 1px solid #c8e6c9;
        }
        
        .mode-custom {
            background-color: #fff3e0;
            color: #ef6c00;
            border: 1px solid #ffe0b2;
        }

