/*
Theme Name: RenPyGamingHub
Theme URI: https://example.com/renpygaminghub
Author: Gaming Hub Team
Author URI: https://example.com
Description: Theme WordPress chuyên nghiệp cho nền tảng game Ren'Py với phong cách dark neon gaming, tích hợp player trực tiếp, responsive và tối ưu SEO.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: renpygaminghub
Tags: gaming, dark, neon, responsive, custom-post-type, visual-novel
*/

/* ========================================
   RESET & BASE STYLES
======================================== */

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

:root {
    /* LEWDFLIX Dark Color Palette */
    --primary-bg: #0a0a0a;
    --secondary-bg: #141414;
    --card-bg: #1a1a1a;
    --accent-pink: #ff006e;
    --accent-purple: #ff0055;
    --accent-red: #e50914;
    --accent-yellow: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;

    /* Badges */
    --badge-hot: #e50914;
    --badge-best: #ff9900;
    --badge-epic: #ff0055;
    --badge-new: #46d369;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(to bottom, #141414 0%, #0a0a0a 50%, #000000 100%);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Font for Headers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--text-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   HERO SLIDER SECTION
======================================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 589px;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    animation: zoomIn 10s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.3) 100%),
        linear-gradient(to bottom, transparent 0%, transparent 70%, rgba(10, 10, 10, 0.8) 90%, #0a0a0a 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-info {
    max-width: 600px;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-hot {
    background: var(--badge-hot);
    color: white;
}

.badge-best {
    background: var(--badge-best);
    color: white;
}

.badge-epic {
    background: var(--badge-epic);
    color: white;
}

.hero-date,
.hero-views {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.hero-creator {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.hero-creator strong {
    color: var(--text-primary);
}

.hero-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-red);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.hero-play-btn:hover {
    background: #c50710;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
    color: white;
}

.hero-play-btn svg {
    flex-shrink: 0;
}

.hero-slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-dot {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hero-dot.active {
    background: var(--accent-red);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ========================================
   GAME HEADER SECTION (LewdFlix Style)
======================================== */

.game-header-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.game-poster {
    flex: 0 0 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.game-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.game-details-header {
    flex: 1;
}

.game-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-meta-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

.badge.version {
    background-color: #333;
}

.badge.status.ongoing {
    background-color: var(--badge-new);
}

.badge.status.completed {
    background-color: var(--badge-epic);
}

.badge.status.abandoned {
    background-color: var(--text-muted);
}

.badge.platform {
    background-color: #444;
    border: 1px solid #666;
}

.game-stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-item .icon {
    color: var(--accent-yellow);
}

.game-excerpt {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.game-creator-row {
    margin-bottom: 15px;
}

.creator-label {
    color: var(--text-muted);
    margin-right: 5px;
}

.creator-link {
    color: var(--accent-pink);
    font-weight: bold;
}

.game-taxonomies-row {
    margin-bottom: 25px;
}

.tax-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tax-label {
    color: var(--text-muted);
    margin-right: 5px;
}

.genre-tag {
    background-color: #222;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.genre-tag:hover {
    background-color: var(--accent-pink);
    color: #fff;
}

.game-actions-row {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-support {
    background-color: #f96854;
    /* Patreon color */
    color: #fff;
}

.btn-support:hover {
    background-color: #e05d4b;
}

.btn-like {
    background-color: #333;
    color: #fff;
}

.btn-like:hover {
    background-color: var(--accent-red);
}

.btn .icon {
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider {
        height: 450px;
    }

    .hero-slide-content {
        padding: 0 2rem;
    }

    .hero-slide-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.3) 100%),
            linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(10, 10, 10, 0.8) 85%, #0a0a0a 100%);
    }

    .hero-info {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-excerpt {
        font-size: 0.875rem;
    }

    .hero-play-btn {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }

    .hero-slider-dots {
        bottom: 1rem;
    }

    .hero-dot {
        width: 35px;
        height: 3px;
    }

    .game-header-content {
        flex-direction: column;
    }

    .game-poster {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .game-details-header {
        text-align: center;
    }

    .game-meta-badges,
    .game-stats-row,
    .game-actions-row,
    .tax-list {
        justify-content: center;
    }
}

/* ========================================
   GAME PLAYER SECTION
======================================== */

.game-player-wrapper {
    background-color: #000;
    padding: 0;
    padding-top: 90px;
    /* Space for fixed header */
    margin-bottom: 0;
    /* Remove bottom margin to connect with header */
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #333;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.game-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    pointer-events: none;
}

.game-player-container {
    width: 100%;
    max-width: 100%;
    /* Full width */
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.game-embed-container {
    position: relative !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    /* Fixed 600px height as requested */
    height: 600px !important;
    min-height: 600px !important;
    max-height: 600px !important;
    aspect-ratio: auto !important;
    background: #000;
    overflow: hidden;
    transform-origin: center;
    transition: all 0.3s ease;
    display: block !important;
}

.theater-mode .game-embed-container {
    max-width: 92vw !important;
}

/* Fix Fullscreen Stretching */
.game-player-wrapper:fullscreen .game-embed-container,
.game-player-wrapper:fullscreen #game-player,
.game-embed-container:fullscreen,
#game-player:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
}

.game-player-wrapper:fullscreen .game-embed-container>iframe,
.game-player-wrapper:fullscreen #game-canvas,
.game-embed-container:fullscreen>iframe,
#game-player:fullscreen #game-canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.game-embed-container>iframe,
#game-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
    object-fit: contain !important;
    z-index: 10 !important;
}

/* Standardize iframes for better scaling */
.game-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Special handling for Itch.io embeds */
.game-embed-container.itch-embed iframe {
    /* Standard itch.io scaling is handled by their inner player, 
       but we ensure it fills our 16:9 box */
    height: calc(100% + 34px);
    margin-bottom: -34px;
}

/* Responsive scaling for different screen sizes */
@media (max-width: 1440px) {
    .game-embed-container {
        max-width: min(1200px, 85vw);
    }
}

@media (max-width: 1200px) {
    .game-embed-container {
        max-width: min(1000px, 80vw);
    }
}

@media (max-width: 992px) {
    .game-embed-container {
        max-width: min(800px, 90vw);
    }
}

@media (max-width: 768px) {
    .game-embed-container {
        max-width: min(600px, 95vw);
    }
}

@media (max-width: 480px) {
    .game-embed-container {
        max-width: 100vw;
    }
}

/* Hide Itch.io Footer Hack */
.game-embed-container.itch-embed {
    overflow: hidden;
}

.game-embed-container.itch-embed>iframe {
    /* Increase height to push the bottom footer out of the visible area */
    height: calc(100% + 34px) !important;
    margin-bottom: -34px !important;
    display: block !important;
    top: 0 !important;
    transform: none !important;
}

/* ========================================
   THEATER MODE & LIGHTS OFF
   ======================================== */

.theater-mode .game-player-wrapper {
    padding-top: 100px;
    padding-bottom: 20px;
}

.theater-mode .game-player-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.theater-mode .game-player-content {
    max-width: 92vw !important;
    width: 92vw !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    max-height: 85vh !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    display: block !important;
}

.theater-mode .player-side-controls {
    right: 20px;
    /* Move inside the viewport in theater mode */
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 30px;
}

#game-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure game fits without stretching */
    display: block;
    margin: 0 auto;
}

.theater-mode .game-details-layout {
    flex-direction: column;
}

.theater-mode .game-sidebar {
    width: 100%;
    margin-top: 40px;
}

.theater-mode .popular-games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lights-off-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    pointer-events: none;
}

.lights-off .lights-off-layer {
    display: block;
}

.lights-off .game-player-wrapper {
    z-index: 1001;
}

.lights-off .site-header,
.lights-off .site-footer,
.lights-off .game-info-section,
.lights-off .game-sidebar {
    opacity: 0.1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.embed-player-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.theater-toggle-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theater-toggle-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.theater-mode .theater-toggle-btn svg {
    color: var(--accent-red);
}

/* ========================================
   VIP ACCESS REQUIRED
   ======================================== */

.vip-access-required {
    text-align: center;
    padding: 30px 30px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.95));
    border-radius: 20px;
    max-width: 700px;
    margin: 50px auto;
    border: 2px solid rgba(220, 53, 69, 0.4);
    box-shadow: 0 0 40px rgba(220, 53, 69, 0.3);
}

.vip-lock-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.vip-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #dc3545, #c82333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: bold;
}

.vip-message {
    font-size: 1.2rem;
    color: #b3b3b3;
    line-height: 1.6;
}

.vip-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
}

.btn-vip-login,
.btn-become-patron {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-vip-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-vip-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-become-patron {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.btn-become-patron:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.vip-hint {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0;
}

.vip-status-info {
    margin-top: 30px;
    padding: 15px 25px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: #FFD700;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Patreon Badge Styles */
.patreon-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 10px;
}

.patreon-badge.free {
    background: #555;
    color: #ccc;
}

.patreon-badge.tier-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.patreon-badge.tier-6,
.patreon-badge.tier-8 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    animation: vipGlow 2s ease-in-out infinite;
}

@keyframes vipGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

/* ========================================
   GAME HEADER SECTION (LewdFlix Style)
======================================== */

/* .game-header-section removed - content moved to main info */

.game-info-section {
    padding-bottom: 60px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Recommended Games Section */
.recommended-games-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.recommended-games-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.recommended-games-section .section-title span {
    color: var(--accent-pink);
    font-style: italic;
}

.recommended-games-grid {
    padding: 2rem 0;
    gap: 1.5rem;
}

/* Ensure the recommendation grid behaves like the latest games grid on homepage */
.recommended-games-section .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (max-width: 1400px) {
    .recommended-games-section .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .recommended-games-section .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}


.game-badge-recommended {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-pink);
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.game-poster-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-poster-wrapper:hover {
    transform: translateY(-5px);
}


.game-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.game-info-section .container {
    position: relative;
    z-index: 2;
}

.game-info-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.game-main-info {
    /* Clean style, no borders */
}

.game-description {
    margin-bottom: 40px;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
}

.game-description h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

.game-description p {
    margin-bottom: 15px;
}

/* Sidebar */
.game-sidebar {
    /* Sidebar styles */
}

.related-games-widget {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
}

.related-games-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-pink);
    padding-left: 10px;
}

.related-game-item {
    margin-bottom: 15px;
}

.related-game-item a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-game-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.related-game-item h4 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.related-game-item a:hover h4 {
    color: var(--accent-pink);
}

/* Responsive */
@media (max-width: 992px) {
    .game-info-grid {
        grid-template-columns: 1fr;
    }

    .game-player-container,
    .game-embed-container,
    .game-embed-container iframe {
        min-height: 400px;
    }
}


.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 120px;
}

@media (max-width: 1200px) {
    .container-wide {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container-wide {
        padding: 0 20px;
    }
}

/* ========================================
   PARTICLES BACKGROUND
======================================== */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.05;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   HEADER STYLES
======================================== */



.site-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-pink);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-logo:hover {
    color: var(--neon-red);
    opacity: 0.8;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    margin-left: 3rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-navigation a {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.current-menu-item {
    color: var(--text-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-toggle,
.user-menu {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.search-toggle:hover,
.user-menu:hover {
    opacity: 0.7;
}

/* User Menu Dropdown */
.user-menu-wrapper {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu-wrapper.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-dropdown-menu {
    padding: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.user-menu-item:hover {
    background: #252525;
    color: var(--text-primary);
}

.user-menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.user-menu-item:hover svg {
    opacity: 1;
}

#submit-game-btn {
    color: var(--accent-red);
    font-weight: 500;
}

#submit-game-btn:hover {
    background: rgba(229, 9, 20, 0.1);
}

.user-menu-divider {
    height: 1px;
    background: #333;
    margin: 0.5rem 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    color: var(--text-primary);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ========================================
   SEARCH OVERLAY
======================================== */

.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.97) 0%, rgba(10, 0, 0, 0.98) 50%, rgba(0, 0, 0, 0.97) 100%);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-overlay-content {
    width: 100%;
    max-width: 900px;
    position: relative;
    padding: 0 2rem;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(229, 9, 20, 0.1);
    border: 2px solid rgba(229, 9, 20, 0.3);
    color: var(--accent-red);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--accent-red);
    transform: rotate(90deg);
}

.search-overlay .search-form {
    position: relative;
    margin-bottom: 2rem;
}

.search-overlay .search-form input[type="search"] {
    width: 100%;
    padding: 1.8rem 2rem;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(229, 9, 20, 0.3);
    color: var(--text-primary);
    font-size: 1.8rem;
    outline: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.search-overlay .search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-overlay .search-form input[type="search"]:focus {
    border-color: var(--accent-red);
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1), 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* ========================================
   GENRE FILTER BAR
======================================== */

.genre-filter-bar {
    padding: 1rem 0;
    position: relative;
}

.search-overlay .genre-filter-bar {
    margin-bottom: 2rem;
}

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

.genre-pills {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 0.25rem 0;
}

.genre-pills::-webkit-scrollbar {
    display: none;
}

.genre-pill {
    background: rgba(229, 9, 20, 0.1);
    color: var(--text-secondary);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid rgba(229, 9, 20, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.genre-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.2), transparent);
    transition: left 0.5s ease;
}

.genre-pill:hover::before {
    left: 100%;
}

.genre-pill:hover {
    background: rgba(229, 9, 20, 0.2);
    color: var(--text-primary);
    border-color: rgba(229, 9, 20, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.2);
}

.genre-pill.active {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

/* ========================================
   GAME SECTIONS & HORIZONTAL SCROLLING
======================================== */

.site-content {
    padding-top: 0;
}

.games-section {
    padding: 3rem 0;
    background: #060304;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: capitalize;
}

.section-title svg {
    color: var(--accent-pink);
}

.view-more {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

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

.games-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.games-row::-webkit-scrollbar {
    height: 6px;
}

.games-row::-webkit-scrollbar-track {
    background: transparent;
}

.games-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.games-row::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   GAME CARDS - HORIZONTAL STYLE
======================================== */

.game-card-horizontal {
    flex: 0 0 auto !important;
    width: 180px;
    min-width: 180px;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.game-card-horizontal:hover {
    transform: scale(1.08);
    z-index: 10;
}

.game-link {
    display: block;
    position: relative;
}

.game-card-horizontal .game-thumbnail {
    position: relative;
    width: 100%;
    height: 270px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--card-bg);
}

.game-card-horizontal .game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.default-thumbnail {
    width: 100%;
    height: 100%;
}

.game-card-horizontal:hover .game-thumbnail img {
    transform: scale(1.05);
}

/* Game Badges Stack */
.game-badges-stack {
    position: absolute !important;
    top: 8px;
    left: 0;
    z-index: 10;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    align-items: flex-start;
}

/* Game Badge */
.game-badge {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    width: auto;
}

.badge-hot {
    background: #ff0055;
    color: #ffffff;
}

.badge-best {
    background: #ffd700;
    color: #000000;
}

.badge-epic {
    background: #ff0055;
    color: #ffffff;
}

.badge-new {
    background: #00d4ff;
    color: #000000;
}

.badge-vip {
    background: #dc3545;
    color: #fff;
    font-weight: 800;
}

.badge-version {
    background: #007bff;
    color: #fff;
    font-weight: 700;
}

.badge-complete {
    background: #28a745;
    color: #fff;
    font-weight: 700;
}

/* Keep old class for backwards compatibility */
.badge-updated {
    background: #28a745;
    color: #fff;
    font-weight: 700;
}

/* Game Card Title - Bottom of Cover, Show on Hover */
.game-title-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    padding: 2.5rem 0.75rem 0.75rem;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-card:hover .game-title-overlay-bottom,
.game-cover:hover .game-title-overlay-bottom {
    opacity: 1;
}

.game-title-overlay-bottom h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Game Overlay */
.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    padding: 1.5rem 0.75rem 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card-horizontal:hover .game-overlay {
    opacity: 1;
}

.game-overlay-content {
    color: var(--text-primary);
}

.game-title-overlay {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-genres {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ========================================
   OLD GAME GRID (Keep for archive pages)
======================================== */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem 0;
}

/* Latest Games Grid - 2 rows, 8 columns */
.latest-games-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1rem;
    padding: 2rem 0;
}

/* Responsive for Latest Games Grid */
@media (max-width: 1200px) {
    .latest-games-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(3, auto);
    }
}

@media (max-width: 992px) {
    .latest-games-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, auto);
    }
}

@media (max-width: 768px) {
    .latest-games-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(6, auto);
    }
}

@media (max-width: 480px) {
    .latest-games-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(8, auto);
    }
}

.game-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.game-card .game-thumbnail {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: var(--secondary-bg);
}

.game-card .game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.1);
}

.game-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(5px);
}

.game-rating .stars {
    color: var(--accent-yellow);
    font-size: 0.9rem;
}

.game-info {
    padding: 1.25rem;
}

.game-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.game-title a {
    color: var(--text-primary);
}

.game-title a:hover {
    color: var(--text-secondary);
}

.game-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.game-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.game-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.play-btn {
    width: 100%;
    background: var(--neon-red);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.play-btn:hover {
    background: #ff0a16;
    transform: translateY(-2px);
}

.game-card .game-thumbnail {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: var(--secondary-bg);
}

.game-card .game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.1);
}

.game-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(5px);
}

.game-rating .stars {
    color: var(--accent-yellow);
    font-size: 0.9rem;
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--accent-red);
    line-height: 1.4;
}

.game-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.game-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.game-tag {
    background: rgba(255, 0, 85, 0.2);
    color: var(--accent-red);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    border: 1px solid var(--accent-red);
}

.game-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.play-btn {
    width: 100%;
    background: var(--accent-red);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.play-btn:hover {
    background: #ff0a16;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.6);
    transform: translateY(-2px);
}

/* ========================================
   LOADING SPINNER
======================================== */

.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--neon-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background: var(--secondary-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-bg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation a {
        display: block;
        padding: 1rem;
    }

    .header-actions {
        gap: 1rem;
    }

    .site-logo {
        font-size: 1.2rem;
    }

    .genre-filter-bar {
        margin-top: 60px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .game-card-horizontal {
        width: 150px;
    }

    .game-card-horizontal .game-thumbnail {
        height: 225px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .game-card-horizontal {
        width: 130px;
    }

    .game-card-horizontal .game-thumbnail {
        height: 195px;
    }

    .section-title {
        font-size: 1rem;
    }

    .view-more {
        font-size: 0.85rem;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ========================================
   UTILITY CLASSES
======================================== */

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

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* ========================================
   PAGE HEADER
======================================== */

.page-header {
    margin-bottom: 3rem;
    padding: 0.5rem 0;
    margin-top: 80px;
    /* Add space below fixed header */
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ========================================
   NEW THEME STYLES (LEWDFLIX)
======================================== */

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.main-navigation a {
    color: #e5e5e5;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Games Grid */
.games-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Carousel Styles */
.games-carousel-wrapper {
    position: relative;
    margin: 0 -20px;
    /* Negative margin to allow full width scroll on small screens */
    padding: 0 20px;
}

.games-carousel {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    /* Space for scrollbar or hover effects */
    scrollbar-width: none;
    /* Firefox */
    margin-bottom: 0;
}

.games-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.games-carousel .game-card {
    margin-bottom: 0;
    /* Remove bottom margin in carousel */
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--accent-red);
}

/* Game Card */
.game-card {
    width: 173px;
    margin-right: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.3s ease, z-index 0s 0.3s;
    flex-shrink: 0;
}

.game-card:hover {
    transform: scale(1.1);
    z-index: 10;
    transition-delay: 0s;
}

.game-card-inner {
    background-color: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
}

.game-cover {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Old badge styles removed - see line 1380 for new badges */

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-icon {
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.game-card:hover .play-icon {
    transform: scale(1);
}

.game-info {
    padding: 10px;
    display: none;
}

/* Show title on hover */
.game-card:hover .game-info {
    display: block;
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    z-index: 11;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.game-title {
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-more {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
.site-footer {
    background-color: #000;
    padding: 40px 0;
    margin-top: auto;
    border-top: 1px solid #222;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* ========================================
   GAMES GRID LAYOUT (8 Columns)
======================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
}

/* Ensure cards fill the grid cells */
.games-grid .game-card,
.games-grid .game-card-horizontal {
    width: 100% !important;
    margin: 0 !important;
    max-width: none !important;
}

/* Response Breakpoints */
@media (max-width: 1800px) {
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1100px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 800px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-secondary);
}

.footer-column a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.archive-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   SINGLE GAME PAGE - NEW LAYOUT
======================================== */

/* Game Page Header */
.game-page-header {
    border-bottom: 1px solid #333;
    margin-bottom: 1rem;
}

.game-page-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Screenshots Gallery */
.game-screenshots-gallery {
    margin-bottom: 1.5rem;
}

.screenshots-carousel-wrapper {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.8rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) #222;
}

.screenshots-carousel-wrapper::-webkit-scrollbar {
    height: 8px;
}

.screenshots-carousel-wrapper::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
}

.screenshots-carousel-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 4px;
}

.screenshot-thumb {
    flex: 0 0 auto;
    width: 240px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.screenshot-thumb:hover {
    transform: scale(1.05);
}

.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.screenshot-placeholder span {
    font-size: 2rem;
}

.screenshot-placeholder p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* Main Content Grid */
.game-info-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-main-content {
    background: transparent;
}

/* Description Section */
.game-description-section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
}

.game-description-section p {
    margin-bottom: 1rem;
}

/* Game Meta Info */
.game-meta-info-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.game-meta-poster {
    width: 240px;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.game-meta-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta-poster-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.meta-poster-placeholder span {
    font-size: 4rem;
}

.meta-poster-placeholder p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

.game-meta-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meta-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.meta-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.meta-label {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 80px;
    font-size: 0.875rem;
}

.creator-link {
    color: var(--accent-red);
    font-weight: 500;
    font-size: 0.875rem;
}

.creator-link:hover {
    text-decoration: underline;
}

.genre-list,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.genre-tag {
    background: rgba(255, 0, 85, 0.15);
    color: var(--accent-red);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--accent-red);
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background: var(--accent-red);
    color: #fff;
}

/* Action Buttons */
.game-actions-row {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-support {
    background: #f96854;
}

.btn-support:hover {
    background: #e05d4b;
    transform: translateY(-2px);
}

.btn-favorite:hover {
    background: #c70911;
    transform: translateY(-2px);
}

.btn-favorite.active {
    background: #353434;
    box-shadow: 0 0 15px rgba(227, 28, 28, 0.5);
}

.btn-favorite.active .icon {
    animation: heartbeat 0.5s ease;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.btn-like:hover {
    background: #444;
}

.btn-like.active {
    background: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.btn-like.active .icon {
    transform: scale(1.2);
}

/* My Library Page */
.my-library-wrapper {
    padding: 6rem 0 2rem;
}

.page-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 700;
}

.library-title {
    margin-top: 2rem;
}

.library-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #333;
}

.library-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.library-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.library-tab.active {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
}

.library-tab .icon {
    font-size: 1.2rem;
}

.library-tab .count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.library-content {
    min-height: 400px;
}

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

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

.empty-state h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

.empty-state .btn {
    background: var(--accent-red);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s;
}

.empty-state .btn:hover {
    background: #c91c1c;
    transform: translateY(-2px);
}

/* Archive Pages */
.archive-header {
    padding: 4rem 0 2rem;
    text-align: center;
}

.archive-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.archive-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0 2rem;
    width: 100%;
    grid-column: 1 / -1;
}

.pagination a,
.pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--card-bg);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--accent-red);
    color: #fff;
    transform: translateY(-2px);
}

.pagination span.current {
    background: var(--accent-red);
    color: #fff;
}

.pagination .dots {
    color: var(--text-muted);
}

/* Remove from Library Button */
.library-game-card {
    position: relative;
}

.remove-from-library {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    padding: 0;
}

.library-game-card:hover .remove-from-library {
    opacity: 1;
}

.remove-from-library:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: scale(1.1);
}

.remove-from-library:active {
    transform: scale(0.95);
}

/* Reviews Section */
.game-reviews-comments-section {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Tab Navigation */
.reviews-tabs {
    display: flex;
    border-bottom: 1px solid #333;
    background: rgba(0, 0, 0, 0.3);
}

.tab-link {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-link.active {
    color: var(--text-primary);
    background: var(--card-bg);
    border-bottom-color: var(--accent-red);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 1.5rem;
}

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

/* Review/Comment Header */
.review-header,
.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.review-header-content,
.comment-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.review-game-thumb,
.comment-game-thumb {
    width: 80px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.review-game-thumb img,
.comment-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-cta h3,
.comment-cta h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.review-cta p,
.comment-cta p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.btn-write-review,
.btn-write-comment {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-write-review:hover,
.btn-write-comment:hover {
    background: #c70911;
    transform: translateY(-2px);
}

/* Reviews List */
.reviews-list,
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item,
.comment-item {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.review-item:hover,
.comment-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--accent-red);
}

.review-author,
.comment-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.review-author strong,
.comment-author strong {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.review-date,
.comment-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.review-content,
.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
    font-size: 0.875rem;
}

.review-content p,
.comment-content p {
    margin-bottom: 0.5rem;
}

/* Review Actions (Like/Dislike) */
.review-actions {
    display: flex;
    gap: 0.8rem;
}

.review-vote-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-vote-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.review-vote-btn.upvote:hover {
    color: #4caf50;
    border-color: #4caf50;
}

.review-vote-btn.downvote:hover {
    color: #f44336;
    border-color: #f44336;
}

.vote-count {
    font-weight: 600;
}

/* Comment Reply Button */
.comment-reply-btn {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-reply-btn:hover {
    background: #c70911;
}

/* No Reviews/Comments Message */
.no-reviews,
.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    font-size: 1rem;
}

/* Review/Comment Form Section */
.review-form-section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-form-section .form-title,
.comment-form-section .comment-reply-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent-red);
}

.review-form .form-group,
.comment-form-section .comment-form-comment,
.comment-form-section .comment-form-author,
.comment-form-section .comment-form-email {
    margin-bottom: 1rem;
}

.review-form label,
.comment-form-section label {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.review-form input[type="text"],
.review-form textarea,
.comment-form-section textarea,
.comment-form-section input[type="text"],
.comment-form-section input[type="email"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 5px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.review-form textarea:focus,
.review-form input[type="text"]:focus,
.comment-form-section textarea:focus,
.comment-form-section input[type="text"]:focus,
.comment-form-section input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.08);
}

.review-form .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-submit-review,
.btn-submit-comment {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-review:hover,
.btn-submit-comment:hover {
    background: #c70911;
    transform: translateY(-2px);
}

.btn-submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel-review {
    background: #555;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-review:hover {
    background: #666;
}

.review-response-message {
    margin-top: 1rem;
}

.review-response-message .success {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #4caf50;
}

.review-response-message .error {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #f44336;
}

.review-rating {
    color: var(--accent-yellow);
    font-size: 1.1rem;
}

.comment-form-section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-form-section .form-submit {
    margin-top: 1rem;
}

.comments-closed {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-size: 1rem;
}

.required {
    color: var(--accent-red);
}

/* ========================================
   SUBMIT GAME MODAL
======================================== */

.submit-game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

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

.submit-game-modal-content {
    position: relative;
    max-width: 800px;
    max-height: 90vh;
    margin: 2rem auto;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    overflow-y: auto;
    z-index: 10001;
}

.submit-game-modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--accent-red);
    font-size: 1.75rem;
}

.submit-game-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-game-modal-close:hover {
    color: var(--accent-red);
}

#submitGameForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-group select[multiple] {
    min-height: 120px;
}

.form-group small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-group .required {
    color: var(--accent-red);
}

/* VIP Checkbox Styling */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 0 !important;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #dc3545;
}

.vip-checkbox-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.vip-badge-inline {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-submit-game,
.btn-cancel {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-submit-game {
    background: var(--accent-red);
    color: white;
}

.btn-submit-game:hover:not(:disabled) {
    background: #c50710;
    transform: translateY(-2px);
}

.btn-submit-game:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid #333;
}

.btn-cancel:hover {
    background: #252525;
    color: var(--text-primary);
}

.form-message {
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-top: 1rem;
    display: none;
}

.form-message:not(:empty) {
    display: block;
}

.form-message.success {
    background: rgba(70, 211, 105, 0.1);
    border: 1px solid #46d369;
    color: #46d369;
}

.form-message.error {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

/* Chapters Management */
#chapters-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chapter-item {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
}

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

.chapter-number {
    font-weight: 600;
    color: var(--accent-red);
    font-size: 0.875rem;
}

.btn-remove-chapter {
    background: transparent;
    border: 1px solid #333;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.btn-remove-chapter:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.chapter-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chapter-fields input,
.chapter-fields textarea {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.chapter-fields input:focus,
.chapter-fields textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.1);
}

.btn-add-chapter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px dashed #333;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 100%;
    justify-content: center;
}

.btn-add-chapter:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: rgba(229, 9, 20, 0.05);
}

.btn-add-chapter svg {
    flex-shrink: 0;
}

/* Genre Checkboxes */
.genres-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.genre-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

.genre-checkbox:hover {
    background: rgba(229, 9, 20, 0.1);
}

.genre-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-red);
}

.genre-checkbox span {
    color: var(--text-primary);
}

/* Image Input Toggle */
.image-input-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.radio-option input[type="radio"] {
    cursor: pointer;
    accent-color: var(--accent-red);
}

.radio-option:has(input:checked) {
    color: var(--accent-red);
}

.poster-url-input,
.screenshots-url-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
    font-family: inherit;
}

.poster-url-input:focus,
.screenshots-url-input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.1);
}

.screenshots-url-input {
    resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
    .submit-game-modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: calc(100vh - 2rem);
    }

    .submit-game-modal-content h2 {
        font-size: 1.5rem;
        padding-right: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit-game,
    .btn-cancel {
        width: 100%;
    }

    .chapter-item {
        padding: 0.875rem;
    }

    .btn-add-chapter {
        padding: 0.625rem 1rem;
    }

    .review-header,
    .comment-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn-write-review,
    .btn-write-comment {
        width: 100%;
        justify-content: center;
    }

    .tab-link {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Sidebar Styles */
.game-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent-red);
}

/* Popular Games Cards */
.popular-games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-game-card {
    display: grid;
    grid-template-columns: 25px 70px 1fr;
    gap: 0.8rem;
    align-items: center;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.popular-game-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.game-card-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
}

.game-card-thumb {
    width: 70px;
    height: 95px;
    border-radius: 5px;
    overflow: hidden;
}

.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.game-card-title {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.3;
}

.game-card-title a {
    color: var(--text-primary);
}

.game-card-title a:hover {
    color: var(--accent-red);
}

.game-card-meta {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    font-size: 0.8rem;
}

.game-card-meta .rating {
    color: var(--accent-yellow);
}

.game-card-meta .views {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .game-info-grid {
        grid-template-columns: 1fr;
    }

    .game-sidebar {
        position: static;
    }

    .game-meta-info-wrapper {
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
    }

    .game-meta-poster {
        width: 200px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .game-page-title {
        font-size: 1.8rem;
    }

    .screenshot-thumb {
        width: 220px;
        height: 140px;
    }

    .game-actions-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .game-meta-info-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-meta-poster {
        width: 100%;
        height: 400px;
        margin: 0 auto;
    }
}

/* ========================================
   LOGIN/REGISTER PAGE
======================================== */

.login-page-body {
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.login-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    z-index: 0;
}

.bg-cover {
    overflow: hidden;
    opacity: 0.15;
}

.bg-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: rgba(15, 15, 15, 0.98);
    border-radius: 12px;
    padding: 50px 45px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.site-logo-login {
    text-align: center;
    margin-bottom: 30px;
}

.site-logo-login {
    font-size: 2.5rem;
    font-weight: 900;
    color: #e31c1c;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(227, 28, 28, 0.5);
    display: inline-block;
    transition: all 0.3s;
}

.site-logo-login:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 20px rgba(227, 28, 28, 0.8);
    letter-spacing: 2px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: var(--accent-red);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.08);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: #fff;
}

.form-footer {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--accent-red);
}

.btn-auth {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit {
    background: var(--accent-red);
    color: #fff;
    margin-bottom: 20px;
}

.btn-submit:hover {
    background: #c91c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 28, 28, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.switch-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
}

.switch-link:hover {
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.auth-divider span {
    background: rgba(20, 20, 20, 0.95);
    color: var(--text-secondary);
    padding: 0 15px;
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-patreon {
    border-color: #f96854;
}

.btn-patreon:hover {
    background: rgba(249, 104, 84, 0.1);
    border-color: #f96854;
}

/* Style for Patreon plugin button */
.social-login .patreon-button,
.social-login a[href*="patreon"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #f96854;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    text-align: center;
}

.social-login .patreon-button:hover,
.social-login a[href*="patreon"]:hover {
    background: rgba(249, 104, 84, 0.1);
    border-color: #f96854;
    transform: translateY(-2px);
}

.auth-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.auth-message.error,
.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    .login-background {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }

    .login-box {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   USER SETTINGS PAGE
======================================== */

.user-settings-page {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.settings-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.settings-sidebar {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-avatar-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-pink);
    margin-bottom: 15px;
}

.user-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin: 0 auto 15px;
}

.user-display-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.patreon-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 20px;
    margin-top: 10px;
}

.patreon-status.connected {
    background: rgba(249, 104, 84, 0.1);
    border: 1px solid rgba(249, 104, 84, 0.3);
    color: #f96854;
}

.patreon-status svg {
    width: 16px;
    height: 16px;
}

/* Settings Navigation */
.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.settings-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.settings-nav-item.active {
    background: rgba(255, 0, 110, 0.1);
    color: var(--accent-pink);
}

.settings-nav-item.logout {
    color: #ef4444;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.settings-nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

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

/* Settings Content */
.settings-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 0, 110, 0.3);
}

.settings-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.settings-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

/* Form Styles */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-pink);
    background: rgba(255, 255, 255, 0.08);
}

.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.btn-submit {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 110, 0.3);
}

/* Membership Card */
.membership-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
}

.membership-card.not-connected {
    text-align: center;
    padding: 40px;
}

.membership-card.not-connected p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.membership-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.membership-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.membership-icon .vip-star {
    animation: vip-glow 2s infinite;
}

.membership-info {
    flex: 1;
}

.membership-tier {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tier-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.tier-badge.vip {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.tier-badge.regular {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.membership-detail {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.membership-benefits {
    margin-bottom: 20px;
}

.membership-benefits h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.membership-benefits ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.membership-benefits li {
    padding-left: 5px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.btn-upgrade {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .settings-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .settings-sidebar {
        position: static;
    }

    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .settings-nav-item {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .user-settings-page {
        padding: 20px 0;
    }

    .settings-sidebar {
        padding: 20px;
    }

    .user-avatar-large,
    .user-avatar-placeholder {
        width: 80px;
        height: 80px;
    }

    .user-avatar-placeholder {
        font-size: 32px;
    }

    .user-display-name {
        font-size: 1.25rem;
    }

    .settings-section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .membership-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Gaming Dashboard Styles */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-pink);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.subsection-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.recent-games-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-game-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.recent-game-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.recent-game-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-game-info {
    flex: 1;
}

.recent-game-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.recent-game-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.cloud-sync-badge {
    color: #00d2ff;
}

.btn-play-recent {
    padding: 8px 16px;
    background: var(--accent-pink);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-play-recent:hover {
    background: #ff0055;
    transform: scale(1.05);
    color: white;
}

.no-activity {
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    text-align: center;
}