        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            line-height: 1.6;
            color: #e0e0e0;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            min-height: 100vh;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 80%, rgba(15, 52, 96, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(22, 33, 62, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(26, 26, 46, 0.3) 0%, transparent 50%);
            pointer-events: none;
            z-index: 1;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        /* Extra large screens */
        @media (min-width: 1600px) {
            .container {
                max-width: 1600px;
                padding: 0 30px;
            }
        }

        /* Ultra wide screens */
        @media (min-width: 2000px) {
            .container {
                max-width: 1800px;
                padding: 0 40px;
            }
        }

        /* Header */
        .header {
            background: rgba(15, 52, 96, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 0 0 20px 20px;
            margin: 0 0 2rem 0;
            padding: 3rem 2rem;
            text-align: center;
            border: 1px solid rgba(22, 33, 62, 0.3);
            border-top: none;
            box-shadow: 
                0 8px 32px rgba(15, 52, 96, 0.5),
                inset 0 1px 0 rgba(22, 33, 62, 0.3);
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(26, 26, 46, 0.2) 0%, transparent 100%);
            pointer-events: none;
        }

        .title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: #e0e0e0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            position: relative;
            z-index: 1;
        }

        .subtitle {
            font-size: 1.1rem;
            opacity: 0.8;
            color: #b0b0b0;
            position: relative;
            z-index: 1;
        }

        .credit {
            margin-top: 1rem;
            font-size: 0.9rem;
            opacity: 0.7;
            color: #a0a0a0;
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
        }

        .heart {
            color: #ff6b6b;
            font-weight: 600;
            animation: heartbeat 1.5s ease-in-out infinite;
        }

        @keyframes heartbeat {
            0% { transform: scale(1); }
            14% { transform: scale(1.1); }
            28% { transform: scale(1); }
            42% { transform: scale(1.1); }
            70% { transform: scale(1); }
        }

        .credit-link {
            color: #00ff41;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            position: relative;
            text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
            background: rgba(0, 0, 0, 0.8);
            padding: 2px 8px;
            border-radius: 4px;
            border: 1px solid rgba(0, 255, 65, 0.3);
            box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
        }

        .credit-link:hover {
            color: #00ff6b;
            transform: translateY(-1px);
            text-shadow: 0 0 12px rgba(0, 255, 65, 0.8);
            background: rgba(0, 0, 0, 0.9);
            border-color: rgba(0, 255, 65, 0.5);
            box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
        }

        .credit-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #00ff41, #00ff6b);
            transition: width 0.3s ease;
        }

        .credit-link:hover::after {
            width: 100%;
        }

        .emoji {
            font-size: 1.1em;
        }

        /* Mobile Menu Button */
        .mobile-menu-btn {
            display: none;
            position: fixed;
            top: 140px;  /* Unter dem Header */
            left: 20px;   /* Links statt rechts */
            z-index: 1000;
            background: rgba(15, 52, 96, 0.9);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(22, 33, 62, 0.3);
            border-radius: 12px;
            width: 50px;
            height: 50px;
            color: #e0e0e0;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(15, 52, 96, 0.5);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 4px;
            padding: 0;
        }

        .mobile-menu-btn:hover {
            background: rgba(26, 26, 46, 0.9);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(15, 52, 96, 0.6);
        }

        .mobile-menu-btn.active {
            background: rgba(46, 125, 50, 0.9);
            border-color: rgba(76, 175, 80, 0.3);
        }

        /* Desktop Scroll Button */
        .mobile-menu-btn.desktop-scroll {
            display: flex;
            opacity: 0;
            transform: translateY(-10px);
            pointer-events: none;
            transition: all 0.3s ease;
        }

        .mobile-menu-btn.desktop-scroll.visible {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        /* Mobile Responsive */
        .hamburger-line {
            width: 24px;
            height: 3px;
            background: #e0e0e0;
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        .mobile-menu-btn.active .hamburger-line:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .mobile-menu-btn.active .hamburger-line:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-btn.active .hamburger-line:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        /* Mobile Menu Overlay */
        .mobile-menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            z-index: 999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .mobile-menu-overlay.active {
            display: block;
            opacity: 1;
        }

        /* Mobile Menu Content */
        .mobile-menu-content {
            position: fixed;
            top: 0;      /* Oben starten */
            left: -100%; /* Von links statt rechts */
            width: 80%;
            max-width: 400px;
            height: 100%; /* Volle Höhe */
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            border: 1px solid rgba(22, 33, 62, 0.3);
            border-right: none;  /* Kein rechter Rand */
            z-index: 1000;
            overflow-y: auto;
            transition: left 0.3s ease;  /* Slide von links */
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);  /* Schatten nach rechts */
        }

        .mobile-menu-content.active {
            left: 0;  /* Slide rein von links */
        }

        .mobile-menu-header {
            background: rgba(15, 52, 96, 0.8);
            backdrop-filter: blur(10px);
            padding: 20px;
            border-bottom: 1px solid rgba(22, 33, 62, 0.3);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .mobile-menu-title {
            font-size: 18px;
            font-weight: 600;
            color: #e0e0e0;
        }

        .mobile-menu-close {
            background: none;
            border: none;
            color: #e0e0e0;
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            border-radius: 5px;
            transition: background 0.3s ease;
        }

        .mobile-menu-close:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .mobile-menu-body {
            padding: 20px;
        }

        .mobile-menu-section {
            margin-bottom: 30px;
        }

        .mobile-menu-section-title {
            font-size: 16px;
            font-weight: 600;
            color: #e0e0e0;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(22, 33, 62, 0.3);
        }

        /* Mobile Stats */
        .mobile-stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }

        .mobile-stat-card {
            background: rgba(22, 33, 62, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(22, 33, 62, 0.3);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .mobile-stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(15, 52, 96, 0.3);
        }

        .mobile-stat-number {
            font-size: 24px;
            font-weight: 700;
            color: #4CAF50;
            margin-bottom: 5px;
        }

        .mobile-stat-label {
            font-size: 12px;
            color: #b0b0b0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Mobile Filters */
        .mobile-filter-group {
            margin-bottom: 20px;
        }

        .mobile-filter-label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #e0e0e0;
            margin-bottom: 8px;
        }

        .mobile-search-input {
            width: 100%;
            padding: 12px;
            background: rgba(22, 33, 62, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(22, 33, 62, 0.3);
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .mobile-search-input:focus {
            outline: none;
            border-color: #4CAF50;
            box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
        }

        .mobile-select {
            width: 100%;
            padding: 12px;
            background: rgba(22, 33, 62, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(22, 33, 62, 0.3);
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 14px;
            cursor: pointer;
        }

        .mobile-filter-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .mobile-filter-btn {
            padding: 10px;
            background: rgba(22, 33, 62, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(22, 33, 62, 0.3);
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: left;  /* Links ausrichten */
            display: flex;
            align-items: center;
            gap: 8px;  /* Abstand zwischen Icon und Text */
        }

        .mobile-filter-btn:hover {
            background: rgba(26, 26, 46, 0.8);
        }

        .mobile-filter-btn.active {
            background: rgba(15, 52, 96, 0.8);
            border-color: rgba(15, 52, 96, 0.8);
            color: #e0e0e0;
        }

        .mobile-filter-btn.platform-btn.active {
            background: var(--platform-color, rgba(15, 52, 96, 0.8));
            border-color: var(--platform-color, rgba(15, 52, 96, 0.8));
            color: white;
        }

        .mobile-grid-size-control {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .mobile-grid-size-btn {
            padding: 10px;
            background: rgba(22, 33, 62, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(22, 33, 62, 0.3);
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: left;  /* Links ausrichten */
            display: flex;
            align-items: center;
            gap: 8px;  /* Abstand zwischen Icon und Text */
        }

        .mobile-grid-size-btn:hover {
            background: rgba(26, 26, 46, 0.8);
        }

        .mobile-grid-size-btn.active {
            background: rgba(15, 52, 96, 0.8);
            border-color: rgba(15, 52, 96, 1);
            color: #ffffff;
        }

        .mobile-clear-btn {
            width: 100%;
            padding: 12px;
            background: rgba(244, 67, 54, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(244, 67, 54, 0.3);
            border-radius: 8px;
            color: white;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .mobile-clear-btn:hover {
            background: rgba(244, 67, 54, 0.9);
            transform: translateY(-1px);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: flex;
                align-items: center;
                gap: 8px;
            }

            .stats-section,
            .filters-section {
                display: none;
            }

            .container {
                padding: 0 15px;
            }

            .header {
                padding: 2rem 1.5rem;
                margin-bottom: 1rem;
            }

            .title {
                font-size: 2rem;
            }

            .subtitle {
                font-size: 1rem;
            }
        }

        /* Desktop Responsive */
        @media (min-width: 769px) {
            .mobile-menu-btn.desktop-scroll {
                display: flex;
            }
        }

        /* Stats Section */
        .stats-section {
            margin: 2rem 0;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: rgba(22, 33, 62, 0.6);
            backdrop-filter: blur(10px);
            padding: 1.5rem;
            border-radius: 16px;
            text-align: center;
            box-shadow: 
                0 8px 32px rgba(15, 52, 96, 0.4),
                inset 0 1px 0 rgba(26, 26, 46, 0.3);
            border: 1px solid rgba(22, 33, 62, 0.4);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(26, 26, 46, 0.2) 0%, transparent 100%);
            pointer-events: none;
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 12px 40px rgba(15, 52, 96, 0.6),
                inset 0 1px 0 rgba(26, 26, 46, 0.4);
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: #e0e0e0;
            margin-bottom: 0.5rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            position: relative;
            z-index: 1;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #b0b0b0;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            z-index: 1;
        }

        /* Filters Section */
        .filters-section {
            background: rgba(22, 33, 62, 0.6);
            backdrop-filter: blur(10px);
            padding: 2rem;
            border-radius: 16px;
            box-shadow: 
                0 8px 32px rgba(15, 52, 96, 0.4),
                inset 0 1px 0 rgba(26, 26, 46, 0.3);
            border: 1px solid rgba(22, 33, 62, 0.4);
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
        }

        .filters-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(26, 26, 46, 0.2) 0%, transparent 100%);
            pointer-events: none;
        }

        .filter-controls {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            margin-bottom: 1rem;
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .filter-label {
            font-weight: 600;
            color: #e0e0e0;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            z-index: 1;
        }

        .filter-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            border: 2px solid rgba(22, 33, 62, 0.4);
            background: rgba(26, 26, 46, 0.4);
            backdrop-filter: blur(5px);
            border-radius: 8px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 4px;
            color: #e0e0e0;
            position: relative;
            z-index: 1;
            height: 40px; /* Fixed height for all buttons */
            min-width: fit-content; /* Only as wide as needed */
        }

        .filter-btn:hover {
            border-color: rgba(22, 33, 62, 0.6);
            background: rgba(26, 26, 46, 0.6);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(15, 52, 96, 0.3);
        }

        .filter-btn.active {
            background: rgba(15, 52, 96, 0.8);
            color: #e0e0e0;
            border-color: rgba(15, 52, 96, 0.8);
            box-shadow: 0 4px 12px rgba(15, 52, 96, 0.4);
        }

        .sort-select {
            padding: 0.5rem 1rem;
            border: 2px solid rgba(22, 33, 62, 0.4);
            border-radius: 8px;
            font-size: 0.9rem;
            background: rgba(26, 26, 46, 0.4);
            backdrop-filter: blur(5px);
            cursor: pointer;
            color: #e0e0e0;
            position: relative;
            z-index: 1;
        }

        .clear-btn {
            padding: 0.5rem 1rem;
            background: rgba(220, 53, 69, 0.8);
            backdrop-filter: blur(5px);
            color: #e0e0e0;
            border: 2px solid rgba(220, 53, 69, 0.5);
            border-radius: 8px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 1rem;
            position: relative;
            z-index: 1;
        }

        /* Grid Size Switch */
        .grid-size-control {
            background: rgba(15, 52, 96, 0.6);
            border: 2px solid rgba(22, 33, 62, 0.4);
            border-radius: 8px;
            padding: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            backdrop-filter: blur(5px);
        }

        .grid-size-btn {
            background: rgba(26, 26, 46, 0.4);
            border: 1px solid rgba(22, 33, 62, 0.4);
            border-radius: 6px;
            color: #e0e0e0;
            padding: 0.5rem 0.75rem;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .grid-size-btn:hover {
            background: rgba(15, 52, 96, 0.6);
            border-color: rgba(15, 52, 96, 0.8);
            transform: translateY(-1px);
        }

        .grid-size-btn.active {
            background: rgba(15, 52, 96, 0.8);
            border-color: rgba(15, 52, 96, 1);
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(15, 52, 96, 0.4);
        }

        .grid-size-icon {
            font-size: 1rem;
        }

        .clear-btn:hover {
            background: rgba(220, 53, 69, 0.9);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
        }

        /* Search Input */
        .search-input {
            width: 100%;
            padding: 0.75rem 1rem;
            background: rgba(26, 26, 46, 0.4);
            backdrop-filter: blur(5px);
            border: 2px solid rgba(22, 33, 62, 0.4);
            border-radius: 8px;
            font-size: 0.9rem;
            color: #e0e0e0;
            transition: all 0.2s ease;
            position: relative;
            z-index: 1;
        }

        .search-input::placeholder {
            color: #9ca3af;
        }

        .search-input:focus {
            outline: none;
            border-color: rgba(15, 52, 96, 0.6);
            background: rgba(26, 26, 46, 0.6);
            box-shadow: 0 4px 12px rgba(15, 52, 96, 0.3);
        }

        /* Results Header */
        .results-header {
            margin-bottom: 1rem;
        }

        .results-count {
            font-size: 0.9rem;
            color: #b0b0b0;
            position: relative;
            z-index: 1;
        }

        /* Contest Sections */
        .section {
            margin-bottom: 3rem;
        }

        .section h2 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: #e0e0e0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            position: relative;
            z-index: 1;
        }

        /* Contest Grid */
        .contest-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            align-items: start;
        }

        /* Grid Size Variants */
        .contest-grid.grid-compact {
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.25rem;
        }

        .contest-grid.grid-normal {
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .contest-grid.grid-large {
            grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
            gap: 2rem;
        }

        .contest-grid.grid-xlarge {
            grid-template-columns: repeat(auto-fill, minmax(800px, 1fr));
            gap: 2.5rem;
        }

        /* Desktop-specific grid overrides */
        @media (min-width: 1200px) {
            .contest-grid.grid-compact {
                grid-template-columns: repeat(5, 1fr);
            }
            
            .contest-grid.grid-normal {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .contest-grid.grid-large {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .contest-grid.grid-xlarge {
                grid-template-columns: repeat(1, 1fr);
            }
        }

        @media (min-width: 1400px) {
            .contest-grid.grid-compact {
                grid-template-columns: repeat(6, 1fr);
            }
            
            .contest-grid.grid-normal {
                grid-template-columns: repeat(5, 1fr);
            }
            
            .contest-grid.grid-large {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .contest-grid.grid-xlarge {
                grid-template-columns: repeat(1, 1fr);
            }
        }

        @media (min-width: 1600px) {
            .contest-grid.grid-compact {
                grid-template-columns: repeat(7, 1fr);
            }
            
            .contest-grid.grid-normal {
                grid-template-columns: repeat(5, 1fr);
            }
            
            .contest-grid.grid-large {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .contest-grid.grid-xlarge {
                grid-template-columns: repeat(1, 1fr);
            }
        }

        @media (min-width: 2000px) {
            .contest-grid.grid-compact {
                grid-template-columns: repeat(8, 1fr);
            }
            
            .contest-grid.grid-normal {
                grid-template-columns: repeat(5, 1fr);
            }
            
            .contest-grid.grid-large {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .contest-grid.grid-xlarge {
                grid-template-columns: repeat(1, 1fr);
            }
        }

        /* Contest Cards */
        .contest-card {
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 
                0 8px 32px rgba(15, 52, 96, 0.6),
                inset 0 1px 0 rgba(26, 26, 46, 0.4);
            border: 1px solid rgba(26, 26, 46, 0.6);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            position: relative;
            display: flex;
            flex-direction: column;
            height: 100%; /* Make all cards same height */
        }

        .contest-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(26, 26, 46, 0.2) 0%, transparent 100%);
            pointer-events: none;
            z-index: 1;
        }

        .contest-card:hover {
            transform: translateY(-4px);
            box-shadow: 
                0 12px 40px rgba(15, 52, 96, 0.6),
                inset 0 1px 0 rgba(26, 26, 46, 0.4);
        }

        .contest-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .contest-content {
            padding: 1.5rem;
            position: relative;
            z-index: 2;
            flex: 1; /* Make content area flexible */
            display: flex;
            flex-direction: column;
        }

        .contest-platform {
            display: inline-flex;
            align-items: center;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            width: fit-content; /* Only as wide as needed */
            min-width: fit-content; /* Ensure minimum width */
        }

        .contest-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: #e0e0e0;
            line-height: 1.4;
            flex: 1; /* Make title area flexible */
        }

        .contest-dates {
            font-size: 0.9rem;
            color: #b0b0b0;
            margin-bottom: 0.75rem;
        }

        .contest-status {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
        }

        .contest-status.open {
            background: rgba(40, 167, 69, 0.3);
            color: #4ade80;
            border: 1px solid rgba(40, 167, 69, 0.5);
        }

        .contest-status.upcoming {
            background: rgba(59, 130, 246, 0.3);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.5);
        }

        .contest-status.closed {
            background: rgba(239, 68, 68, 0.3);
            color: #f87171;
            border: 1px solid rgba(239, 68, 68, 0.5);
        }

        .contest-status.unknown {
            background: rgba(107, 114, 128, 0.3);
            color: #9ca3af;
            border: 1px solid rgba(107, 114, 128, 0.5);
        }

        .time-remaining {
            padding: 0.5rem;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 1rem;
            text-align: center;
        }

        .time-critical {
            background: rgba(239, 68, 68, 0.3);
            color: #f87171;
            border: 1px solid rgba(239, 68, 68, 0.5);
        }

        .time-warning {
            background: rgba(251, 191, 36, 0.3);
            color: #fbbf24;
            border: 1px solid rgba(251, 191, 36, 0.5);
        }

        .time-normal {
            background: rgba(59, 130, 246, 0.3);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.5);
        }

        .time-ended {
            background: rgba(107, 114, 128, 0.3);
            color: #9ca3af;
            border: 1px solid rgba(107, 114, 128, 0.5);
        }

        .contest-actions {
            margin-top: auto; /* Push actions to bottom */
            padding-top: 1rem;
        }

        .contest-btn {
            display: inline-block;
            padding: 0.5rem 1rem;
            background: rgba(15, 52, 96, 0.8);
            color: #e0e0e0;
            text-decoration: none;
            border-radius: 6px;
            font-size: 0.9rem;
            font-weight: 600;
            font-family: inherit;
            transition: all 0.2s ease;
            border: 1px solid rgba(15, 52, 96, 0.5);
            cursor: pointer;
        }

        .contest-btn:hover {
            background: rgba(15, 52, 96, 0.9);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(15, 52, 96, 0.4);
        }

        /* Loading and Empty States */
        .loading {
            text-align: center;
            padding: 2rem;
            color: #b0b0b0;
            font-style: italic;
            position: relative;
            z-index: 1;
        }

        .no-contests {
            text-align: center;
            padding: 2rem;
            color: #b0b0b0;
            font-style: italic;
            position: relative;
            z-index: 1;
        }

        .load-more-btn {
            display: block;
            margin: 2rem auto;
            padding: 0.75rem 2rem;
            background: rgba(15, 52, 96, 0.8);
            color: #e0e0e0;
            border: 1px solid rgba(15, 52, 96, 0.5);
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .load-more-btn:hover {
            background: rgba(15, 52, 96, 0.9);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(15, 52, 96, 0.4);
        }

        .load-more-btn:disabled {
            background: rgba(107, 114, 128, 0.5);
            cursor: not-allowed;
            border-color: rgba(107, 114, 128, 0.3);
        }

        /* Load More Buttons */
        .closed-load-more {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            margin: 2rem 0;
            padding: 1rem;
            background: rgba(22, 33, 62, 0.6);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            border: 1px solid rgba(22, 33, 62, 0.4);
            position: relative;
            z-index: 1;
        }

        .closed-load-more::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(26, 26, 46, 0.2) 0%, transparent 100%);
            pointer-events: none;
        }

        .load-more-btn, .load-all-btn {
            padding: 0.75rem 1.5rem;
            background: rgba(15, 52, 96, 0.8);
            color: #e0e0e0;
            border: 1px solid rgba(15, 52, 96, 0.5);
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            z-index: 2;
        }

        .load-more-btn:hover:not(:disabled), .load-all-btn:hover:not(:disabled) {
            background: rgba(15, 52, 96, 0.9);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(15, 52, 96, 0.4);
        }

        .load-more-btn:disabled, .load-all-btn:disabled {
            background: rgba(107, 114, 128, 0.5);
            color: #9ca3af;
            cursor: not-allowed;
            border-color: rgba(107, 114, 128, 0.3);
        }

        .load-all-btn {
            background: rgba(220, 38, 38, 0.8);
            border-color: rgba(220, 38, 38, 0.5);
        }

        .load-all-btn:hover:not(:disabled) {
            background: rgba(220, 38, 38, 0.9);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
        }

        /* Error Container */
        .error-container {
            margin-bottom: 2rem;
        }

        .error {
            background: rgba(239, 68, 68, 0.3);
            color: #f87171;
            padding: 1rem;
            border-radius: 8px;
            border: 1px solid rgba(239, 68, 68, 0.5);
            position: relative;
            z-index: 1;
        }

        /* Platform Button Colors - Dynamic from API */
        .platform-btn[data-platform="makerworld"].active {
            background: #6c757d;
            border-color: #6c757d;
            color: white;
        }

        .platform-btn[data-platform="printables"].active {
            background: #ff6b35;
            border-color: #ff6b35;
            color: white;
        }

        .platform-btn[data-platform="creality"].active {
            background: #28a745;
            border-color: #28a745;
            color: white;
        }

        .platform-btn[data-platform="makeronline"].active {
            background: #ff9800;
            border-color: #ff9800;
            color: white;
        }

        .platform-btn[data-platform="makeroad"].active {
            background: #9c27b0;
            border-color: #9c27b0;
            color: white;
        }

        .platform-btn[data-platform="nexprint"].active {
            background: #ff8c00;
            border-color: #ff8c00;
            color: white;
        }

        /* ── Contest Detail Modal ── */
        .contest-modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.78);
            backdrop-filter: blur(6px);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .contest-modal-overlay.active { display: flex; }

        .contest-modal {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
            border: 1px solid rgba(22, 33, 62, 0.7);
            border-radius: 20px;
            max-width: 660px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 32px 90px rgba(0, 0, 0, 0.7);
            position: relative;
            animation: modalSlideUp 0.22s ease;
        }
        @keyframes modalSlideUp {
            from { transform: translateY(24px); opacity: 0; }
            to   { transform: translateY(0);    opacity: 1; }
        }

        .contest-modal-close {
            position: absolute;
            top: 14px;
            right: 14px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #e0e0e0;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 17px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            z-index: 10;
        }
        .contest-modal-close:hover { background: rgba(255, 255, 255, 0.22); }

        .contest-modal-image {
            width: 100%;
            height: 230px;
            object-fit: cover;
            border-radius: 20px 20px 0 0;
            display: block;
        }

        .contest-modal-body { padding: 24px; }

        .contest-modal-platform {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .contest-modal-title {
            font-size: 1.45rem;
            font-weight: 700;
            color: #fff;
            line-height: 1.3;
            margin-bottom: 18px;
        }

        .contest-modal-meta {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 20px;
        }

        .contest-modal-meta-item {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 12px 14px;
        }

        .contest-modal-meta-label {
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #7f8fa8;
            margin-bottom: 4px;
        }

        .contest-modal-meta-value {
            font-size: 0.92rem;
            font-weight: 600;
            color: #e0e0e0;
        }

        .contest-modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 4px;
        }

        .contest-modal-btn-primary {
            flex: 1;
            padding: 12px 20px;
            background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
            color: #fff;
            text-decoration: none;
            border-radius: 10px;
            font-size: 0.93rem;
            font-weight: 700;
            text-align: center;
            border: 1px solid rgba(15, 52, 96, 0.9);
            transition: all 0.2s;
            display: block;
        }
        .contest-modal-btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(15, 52, 96, 0.55);
        }

        .contest-modal-share-btn {
            padding: 12px 14px;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            color: #e0e0e0;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .contest-modal-share-btn:hover { background: rgba(255, 255, 255, 0.14); }

        .contest-modal-url-hint {
            margin-top: 10px;
            font-size: 0.72rem;
            color: #4a5a70;
            text-align: center;
            word-break: break-all;
        }

        /* Details button on card */
        .contest-details-btn {
            display: inline-block;
            padding: 0.4rem 0.8rem;
            background: rgba(255, 255, 255, 0.07);
            color: #b0c4de;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 6px;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            margin-left: 8px;
        }
        .contest-details-btn:hover {
            background: rgba(255, 255, 255, 0.13);
            color: #fff;
            transform: translateY(-1px);
        }
    