/* 🎮 gameVgames - Bento Glass Pro Max Layout */
/* Pro Max Red Edition - Ultra Clean & Modern */

/* Inter */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/inter-v20-latin/inter-v20-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-v20-latin/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-v20-latin/inter-v20-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-v20-latin/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-v20-latin/inter-v20-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/inter-v20-latin/inter-v20-latin-800.woff2') format('woff2');
}

/* Orbitron */
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/orbitron-v35-latin/orbitron-v35-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/orbitron-v35-latin/orbitron-v35-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/orbitron-v35-latin/orbitron-v35-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/orbitron-v35-latin/orbitron-v35-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/orbitron-v35-latin/orbitron-v35-latin-800.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/orbitron-v35-latin/orbitron-v35-latin-900.woff2') format('woff2');
}

/* Exo 2 */
@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/exo-2-v26-latin/exo-2-v26-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/exo-2-v26-latin/exo-2-v26-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/exo-2-v26-latin/exo-2-v26-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/exo-2-v26-latin/exo-2-v26-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/exo-2-v26-latin/exo-2-v26-latin-700.woff2') format('woff2');
}

/* Outfit */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/outfit-v15-latin/outfit-v15-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/outfit-v15-latin/outfit-v15-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/outfit-v15-latin/outfit-v15-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/outfit-v15-latin/outfit-v15-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/outfit-v15-latin/outfit-v15-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/outfit-v15-latin/outfit-v15-latin-800.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/outfit-v15-latin/outfit-v15-latin-900.woff2') format('woff2');
}

:root {
    /* Gaming Neon Palette */
    --bg-body: #05050C;
    --bg-primary: #0A0A1A;
    --bg-secondary: #0F0F23;
    --bg-card: rgba(15, 15, 35, 0.4);
    --bg-card-hover: rgba(25, 25, 45, 0.6);
    --bg-sidebar: rgba(10, 10, 26, 0.7);

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    /* Accent & Neon Colors (Pro Max Red) */
    --accent: #FF0033;
    /* Neon Red */
    --accent-secondary: #FF4D6D;
    --accent-cta: #FF0033;
    --accent-glow: rgba(255, 0, 51, 0.35);
    --accent-gradient: linear-gradient(135deg, #FF0033 0%, #E6002E 100%);
    --accent-rgb: 255, 0, 51;
    --neon-cyan: #00F2FF;
    --neon-red: #FF0033;

    /* Secondary Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Text Colors */
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Border */
    --border: rgba(255, 0, 51, 0.15);
    --border-light: rgba(255, 77, 109, 0.15);

    /* Spacing & Radius */
    --sidebar-width: 200px;
    --header-height: 72px;
    --container-width: 100%;
    --gap: 8px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

a {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 0, 51, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(15, 15, 35, 0.1) 0%, transparent 40%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {

    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #fff;
    text-shadow: none;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover,
[class*="sidebar"]::-webkit-scrollbar-thumb:hover,
[class*="grid"]::-webkit-scrollbar-thumb:hover,
[class*="list"]::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gradient) !important;
    border: none !important;
    background-clip: border-box !important;
    box-shadow: 0 0 15px var(--accent-glow) !important;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-panel {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(22, 22, 48, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(30, 30, 60, 0.6);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ==================== LAYOUT ==================== */
.site-wrapper {
    display: flex;
    min-height: 100vh;
    padding: var(--gap);
    gap: var(--gap);
}

.main-content {
    flex: 1;
    margin-left: calc(var(--sidebar-width) + var(--gap));
    padding-top: calc(var(--header-height) + var(--gap));
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    position: relative;
    z-index: auto;
    /* Changed from 1 to avoid restricting stacking context */
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 993px) {
    .site-wrapper:has(.sidebar-mini) .main-content {
        margin-left: calc(80px + var(--gap));
    }
}

/* 🚀 Fix: Lift the entire main-content area above the sidebar (99999) when a card is hovered. 
   This bypasses stacking context traps created by backdrop-filter or layers. */
.main-content:has(.game-card:hover) {
    z-index: 100001;
}

/* Home / Categories: Let hovered cards overlap the sidebar */
/* Removed overriding z-index: 200 so game cards can naturally overflow */
/* .site-wrapper:not(.play-page-wrapper) .main-content {
    z-index: 200;
} */

.content-area {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--gap);
}

.games-content {
    flex: 1;
    min-width: 0;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    left: var(--gap);
    top: calc(var(--header-height) + var(--gap));
    bottom: 0px;
    width: var(--sidebar-width);
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 5px 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), width 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease, left 0.5s ease !important;
    will-change: transform, width;
    backface-visibility: hidden;
    /* 🚀 Fix: Inset scrollable area to clear rounded corners */
}

/* 🚀 Interactive Mini Sidebar (Single Game Page) */
.sidebar-mini {
    width: 80px !important;
    min-width: 80px !important;
    top: calc(var(--header-height) + var(--gap) * 2);
}

.sidebar-mini:hover:not(.hover-disabled),
.sidebar-mini.is-expanded {
    width: var(--sidebar-width) !important;
    min-width: var(--sidebar-width) !important;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.9);
    z-index: 99999 !important;
}

/* 🔒 Glass Lock Overlay */
.sidebar-lock-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    /* Fixed to mini width */
    height: 100%;
    background: rgba(15, 16, 22, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1002;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-mini:not(.is-expanded) .sidebar-lock-overlay {
    display: flex;
}

.sidebar-lock-overlay i {
    font-size: 2.5rem;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
    filter: drop-shadow(0 0 15px var(--accent));
}

.sidebar-lock-overlay:hover i {
    opacity: 1;
    animation: lockPulse 2s infinite ease-in-out;
}

.sidebar-lock-overlay:hover {
    background: rgba(15, 16, 22, 0.2);
    backdrop-filter: blur(8px);
}

@keyframes lockPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px var(--accent));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 20px var(--accent));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px var(--accent));
    }
}

.sidebar-mini.is-expanded {
    width: var(--sidebar-width) !important;
    min-width: var(--sidebar-width) !important;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.sidebar-mini.is-expanded .nav-text,
.sidebar-mini.is-expanded .nav-section,
.sidebar-mini.is-expanded .sidebar-footer {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.sidebar-mini.is-expanded .sidebar-nav .nav-item {
    justify-content: flex-start !important;
    padding: 8px 16px !important;
    margin: 0 8px 4px 8px !important;
    width: calc(var(--sidebar-width) - 16px) !important;
    min-width: 0 !important;
    height: auto !important;
    gap: 14px !important;
    border-radius: var(--radius-sm) !important;
    left: 0 !important;
}

.sidebar-mini.is-expanded .sidebar-nav .nav-item .nav-icon {
    width: 24px !important;
    height: auto !important;
}

/* 🔘 Toggle Button & Pulse */
/* 🔘 Moved to Glass Lock Overlay */

.sidebar-toggle-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.play-page-wrapper .sidebar-mini.hover-disabled:not(.is-expanded) .sidebar-toggle-btn {
    animation: sidebarPulse 2s infinite;
}

@keyframes sidebarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 51, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 51, 0);
    }
}

/* 🔹 Hide text in mini mode */
.sidebar-mini .nav-text,
.sidebar-mini .nav-section,
.sidebar-mini .sidebar-footer {
    display: none !important;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    pointer-events: none;
    overflow: hidden;
}

.sidebar-mini.is-expanded .nav-text,
.sidebar-mini.is-expanded .nav-section,
.sidebar-mini.is-expanded .sidebar-footer,
.sidebar-mini:not(.hover-disabled):hover .nav-text,
.sidebar-mini:not(.hover-disabled):hover .nav-section,
.sidebar-mini:not(.hover-disabled):hover .sidebar-footer {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: opacity 0.3s ease-in-out;
    overflow: visible !important;
}

/* 🔹 Header / Logo adjustment */
.sidebar-mini .sidebar-header {
    padding: 24px 0;
    text-align: center;
    transition: padding 0.4s;
}

.sidebar-mini:hover:not(.hover-disabled) .sidebar-header,
.sidebar-mini.is-expanded .sidebar-header {
    padding: 30px 24px;
    text-align: left;
}

.sidebar.sidebar-mini .sidebar-nav {
    padding: 0 !important;
    margin: 0 !important;
    width: 80px !important;
    display: block !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    /* Mini modda scrollbar'ı gizle */
    scrollbar-width: thin;
    /* Firefox */
    /* Prevent horizontal scrollbar during transition */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar.sidebar-mini:hover:not(.hover-disabled) .sidebar-nav,
.sidebar.sidebar-mini.is-expanded .sidebar-nav {
    width: 100% !important;
    overflow-y: auto !important;
    /* Açılınca veya hovering olunca göster */
}

.sidebar.sidebar-mini .sidebar-nav .nav-item {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0 0 0 28px !important;
    margin: 0 0 4px 0 !important;
    width: 80px !important;
    min-width: 80px !important;
    height: 50px !important;
    gap: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    position: relative !important;
    left: -1px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar.sidebar-mini .sidebar-nav .nav-item .nav-icon {
    margin: 0 !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar.sidebar-mini .sidebar-nav .nav-item .nav-icon i {
    font-size: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.sidebar-mini:hover:not(.hover-disabled) .sidebar-nav .nav-item,
.sidebar.sidebar-mini.is-expanded .sidebar-nav .nav-item {
    justify-content: flex-start !important;
    padding: 0 16px 0 28px !important;
    margin: 0 8px 4px 8px !important;
    width: calc(var(--sidebar-width) - 16px) !important;
    min-width: 0 !important;
    height: 50px !important;
    gap: 14px !important;
    border-radius: var(--radius-sm) !important;
    left: 0 !important;
    background: transparent;
}

.sidebar.sidebar-mini:hover:not(.hover-disabled) .sidebar-nav .nav-item:hover,
.sidebar.sidebar-mini.is-expanded .sidebar-nav .nav-item:hover {
    background: rgba(124, 58, 237, 0.1) !important;
    color: #fff !important;
    transform: translateX(5px) !important;
}

.sidebar.sidebar-mini:hover:not(.hover-disabled) .sidebar-nav .nav-item .nav-icon,
.sidebar.sidebar-mini.is-expanded .sidebar-nav .nav-item .nav-icon {
    width: 24px !important;
    height: 24px !important;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--header-height);
}

.sidebar:not(.sidebar-mini) .sidebar-header,
.play-page-wrapper .sidebar-header {
    display: none !important;
}

.sidebar-logo {

    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #fff;
}

.sidebar-logo .accent {
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent));
}

.sidebar-nav {
    flex: 1;
    padding: 10px 8px;
    overflow-y: auto;
    overflow-x: hidden !important;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Sidebar Custom Scrollbar */
.sidebar .sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar .sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar .sidebar-nav:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

/* Hover effect handled by robust global rule */

.nav-section {
    padding: 12px 16px 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}

.nav-item:hover,
.sidebar .sidebar-nav .nav-item:hover {
    background: rgba(124, 58, 237, 0.1) !important;
    color: #fff !important;
    transform: translateX(5px) !important;
}

.nav-item.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.nav-all-categories {
    margin-top: 15px !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 15px !important;
}

.nav-all-categories .nav-text {
    font-weight: 800 !important;
    color: var(--text-secondary) !important;
}

.nav-all-categories .nav-icon i {
    font-size: 32px !important;
    color: var(--text-secondary) !important;

}

/* Redundant color override just in case */
.nav-all-categories:hover .nav-text {
    color: #fff !important;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon i {
    font-size: 20px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px 16px 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-socials a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--accent-secondary);
    transform: translateY(-3px) scale(1.2);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-links a {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1100;
    background: rgba(13, 13, 30, 0.85);
    /* Darker, more premium glass contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: grid;
    /* Symmetrical grid: sidebar-width on both sides ensures center 1fr is truly centered in widow */
    grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
    align-items: center;
    height: 100%;
    padding: 0 40px;
    gap: 24px;
    width: 100%;
}

.header-mobile-logo {
    display: none;
}

.header-play-logo {
    display: none;
    align-items: center;

    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #fff;
    text-decoration: none;
    height: 100%;
}

.header-play-logo .accent {
    color: var(--accent);
}

.play-page-wrapper .header-play-logo {
    display: flex;
}

/* play-page-wrapper overrides are now handled by global symmetric grid and padding and do not require specific overrides here */

.play-page-wrapper .main-content {
    padding-top: calc(var(--header-height) + var(--gap));
}

.header-logo-desktop {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    padding-left: 60px;
}

.header-logo-desktop img {
    max-height: 25px;
    object-fit: contain;
}

.header-logo-desktop .accent {
    color: var(--accent);
}

@media (max-width: 992px) {
    .header-logo-desktop {
        display: none;
    }

    .header-mobile-logo {
        display: flex;
        align-items: center;
    }

    .header-mobile-logo img {
        max-height: 25px;
        object-fit: contain;
    }
}

.sidebar-mini {
    width: 80px;
    top: calc(var(--header-height) + var(--gap) * 2);
}

/* 🔹 Sidebar adjustments when header is missing */
/* Conflict resolved: Mini sidebar styles consolidated above around line 238 */
.header-search {
    grid-column: 2;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    transition: var(--transition-slow);
}

.header-search:focus-within {
    max-width: 800px;
    /* Expands on focus */
}

.search-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 5px;
    cursor: pointer;
}

/* Favorites Quick View */
.favorites-dropdown {
    position: relative;
}

.favorites-quick-view {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: rgba(15, 15, 30, 0.98);
    /* Increased opacity for legibility */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
    padding: 0;
    overflow: hidden;
}

/* Sidebar Language Switcher */
.sidebar-lang {
    position: relative;
    margin-bottom: 4px;
}

.lang-toggle-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

/* Flag Icons Local Implementation - Conflict Avoidance (gvg-flag) */
.gvg-flag {
    display: inline-block !important;
    width: 1.33333333em !important;
    height: 1em !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    vertical-align: middle !important;
    background-color: transparent !important;
    position: relative;
}

.gvg-flag-tr {
    background-image: url('../images/flags/tr.svg') !important;
}

.gvg-flag-gb {
    background-image: url('../images/flags/gb.svg') !important;
}

.gvg-flag-de {
    background-image: url('../images/flags/de.svg') !important;
}

.gvg-flag-es {
    background-image: url('../images/flags/es.svg') !important;
}

.gvg-flag-id {
    background-image: url('../images/flags/id.svg') !important;
}

.gvg-flag-jp {
    background-image: url('../images/flags/jp.svg') !important;
}

.gvg-flag-kr {
    background-image: url('../images/flags/kr.svg') !important;
}

.gvg-flag-pl {
    background-image: url('../images/flags/pl.svg') !important;
}

.gvg-flag-pt {
    background-image: url('../images/flags/pt.svg') !important;
}

.sidebar-flag-icon {
    width: 20px !important;
    height: 15px !important;
    border-radius: 3px;
}

.sidebar-flag-icon-mini {
    width: 18px !important;
    height: 13px !important;
    border-radius: 2px;
    margin-right: 12px;
}


.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.lang-toggle-btn i:first-child {
    font-size: 18px;
    color: var(--accent);
}

.lang-toggle-btn i:last-child {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-contact {
    position: relative;
    margin-bottom: 6px;
}

.footer-contact-btn {
    width: 100%;
    background: var(--accent-gradient);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 3px 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(255, 0, 51, 0.2);
}

.footer-contact-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 51, 0.35);
    color: #fff;
}

.footer-contact-btn i {
    font-size: 18px;
}

.sidebar-lang-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 100000 !important;
    display: none;
    flex-direction: column;
    padding: 8px !important;
    animation: fadeInUp 0.3s ease;
}

.sidebar-lang.active .sidebar-lang-menu {
    display: flex;
}

.sidebar-lang-menu a {
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.sidebar-lang-menu a:hover {
    background: rgba(255, 0, 51, 0.1);
    color: var(--accent);
}

.sidebar-lang-menu a.active {
    background: var(--accent);
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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


@media (max-width: 1024px) {
    .header {
        height: 60px;
        top: var(--gap) !important;
        left: var(--gap) !important;
        right: var(--gap) !important;
        width: calc(100% - (var(--gap) * 2)) !important;
        border-radius: var(--radius-lg) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .header-logo-desktop {
        display: none;
    }

    .header-inner {
        height: 60px;
        padding: 0 15px;
        display: flex;
        justify-content: center;
        /* Center horizontally for absolute children */
        align-items: center;
        position: relative;
    }

    .header-mobile-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        z-index: 10;
    }

    .header-mobile-logo img {
        height: 20px !important;
        width: auto !important;
        display: block;
    }

    .header-actions {
        position: absolute;
        right: 15px;
        display: flex;
        gap: 8px;
    }

    .header-actions .favorites-dropdown,
    .header-actions .lang-dropdown {
        display: none !important;
    }

    .section-header {
        margin-bottom: 25px !important;
        padding: 0 4px !important;
    }

    .section {
        padding: 20px 16px !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .categories-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin: 0 !important;
        width: 100% !important;
        justify-content: stretch !important;
    }

    .category-card {
        padding: 20px 10px !important;
        width: 100% !important;
        min-height: 110px !important;
        height: auto !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}

.lang-dropdown .dropdown-menu {
    right: -10px;
    top: calc(100% + 15px);
    min-width: 180px;
    background: #0A0A1F !important;
    /* Solid background for mobile */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.dropdown-menu a {
    padding: 12px 16px;
    /* Larger touch targets */
    font-size: 15px;
}

/* Mobile search overlay */
@media (max-width: 1024px) {
    .header-search {
        display: none;
        position: fixed;
        top: calc(60px + var(--gap)) !important;
        left: var(--gap) !important;
        right: var(--gap) !important;
        height: 70px;
        padding: 10px 15px;
        background: var(--bg-sidebar);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg) !important;
        z-index: 2000;
        align-items: center;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .header-search.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
}

.search-close-btn-mobile {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    padding: 0 15px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .search-close-btn-mobile {
        display: flex;
    }

    .search-icon {
        display: none;
    }

    .search-input {
        padding-left: 20px;
    }
}

/* Desktop Search Visibility */
@media (min-width: 1025px) {
    .header-search {
        display: flex;
    }
}

.search-close-btn {
    display: block;
    margin-left: 10px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 0 15px var(--accent-glow);
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
}

.search-icon {
    font-size: 18px;
    color: var(--text-muted);
    margin-left: 16px;
    margin-right: -4px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px 12px 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 600;
}

.search-input:focus {
    outline: none;
}

/* Header Actions */
.header-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.header-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.header-btn svg,
.header-btn i {
    width: 26px;
    height: 26px;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn .fi {
    width: 22px !important;
    height: 16px !important;
    font-size: 18px;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
}

.favorite-nav-btn {
    position: relative;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    backdrop-filter: blur(8px);
}

.favorite-nav-btn i {
    font-size: 26px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.favorite-nav-btn:hover {
    background: rgba(255, 0, 51, 0.1) !important;
    border-color: rgba(255, 0, 51, 0.6) !important;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3), inset 0 0 10px rgba(255, 0, 51, 0.2) !important;
}

.favorite-nav-btn:hover i {
    color: #ff0033 !important;
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 0, 51, 0.6));
}

.fav-count-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ff0033 0%, #ff4d4d 100%);
    color: white;
    font-size: 9px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #0d0d1e;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    pointer-events: none;
}

.fav-count-badge.pop {
    animation: favPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes favPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

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

.btn-login {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #0A0A1F;
    /* Solid background */
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 100000 !important;
    padding: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

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

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}


/* ==================== AD SLOTS ==================== */
.ad-sidebar {
    width: 160px;
    min-width: 160px;
    position: sticky;
    top: calc(var(--header-height) + var(--gap));
    height: fit-content;
    padding: 0;
}

.ad-slot {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-slot-sidebar {
    width: 160px;
    height: 600px;
}

.ad-slot-banner {
    width: 100%;
    height: 90px;
    margin: 24px 0;
}

/* Heartbeat Pulse Animation for Play Buttons */
@keyframes pulse-soft {

    0%,
    45%,
    100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 0 30px var(--accent-glow);
    }

    10% {
        transform: scale(1.1);
        filter: brightness(1.2);
        box-shadow: 0 0 45px rgba(var(--accent-rgb), 0.5);
    }

    20% {
        transform: scale(1.02);
        filter: brightness(1.1);
    }

    30% {
        transform: scale(1.12);
        filter: brightness(1.25);
        box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.6);
    }
}

@keyframes pulse-text {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

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

    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* ==================== PLAY OVERLAY & PRE-ROLL AD ==================== */
.play-overlay,
.ad-pre-roll {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    overflow: hidden;
    /* For blurred bg scaling */
}

.play-overlay-game-bg {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.4);
    z-index: 0;
    opacity: 1;
}

.play-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Slightly tighter gap */
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    width: 100%;
}

.play-overlay-thumb {
    width: 160px;
    height: 120px;
    /* 4:3 Ratio for desktop icons usually looks better */
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
}

.play-overlay-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 0 20px;
}

/* Remove pulse from the inner text spans */
.play-content span {
    animation: none;
}

.play-btn {
    width: auto;
    min-width: 220px;
    height: 64px;
    padding: 0 40px;
    background: var(--accent-gradient);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    /* Changed to 0 to control spacing via transform */
    cursor: pointer;
    box-shadow: 0 0 30px var(--accent-glow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
    will-change: transform, background-color;
    animation: pulse-soft 2s infinite ease-in-out;
}

.play-text-inner {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    will-change: transform;
}

.play-icon-inner {
    font-size: 2rem;
    opacity: 0;
    width: 0;
    /* Keep width 0 initially */
    transform: translateX(-20px) scale(0.5) rotate(-20deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
}

.play-btn:hover {
    transform: scale(1.05);
    background: #fff;
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(var(--accent-rgb), 0.4);
}

.play-btn:hover .play-text-inner {
    transform: translateX(18px);
    /* Increased gap */
}

.play-btn:hover .play-icon-inner {
    opacity: 1;
    width: 40px;
    /* Animate width smoothly with transform */
    transform: translateX(-4px) scale(1) rotate(-10deg);
    /* Slight pull left to expand gap */
}

/* Ensure the icon is on the left of the text for the "pushed right" effect */
.play-btn {
    flex-direction: row-reverse;
    /* Text | Icon -> Icon | Text */
}

.play-btn:active {
    transform: scale(0.96);
}

.ad-pre-roll-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.ad-label {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.skip-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: not-allowed;
    transition: var(--transition);
}

.skip-btn.ready {
    background: var(--accent);
    border-color: var(--accent);
    cursor: pointer;
}

.ad-placeholder-content {
    width: 100%;
    aspect-ratio: 4/3;
    background: #111;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-mock {
    color: var(--text-muted);
    font-weight: 700;
}

/* ==================== CONTENT ==================== */

.ad-slot-leaderboard {
    width: 100%;
    height: 90px;
}

.ad-slot-rectangle {
    width: 300px;
    height: 250px;
}

/* ==================== SECTION ==================== */
.section {
    position: relative;
    margin-bottom: 8px;
    padding: 0 8px;
    z-index: 1;
}

.section:hover {
    z-index: 10;
}

.section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
    position: relative;
    z-index: 20;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-title svg,
.section-title i {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: var(--accent);
}

.view-all {
    color: var(--accent);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.view-all:hover {
    gap: 8px;
}

.view-all-arrows {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.view-all-arrows i {
    font-size: 16px;
    margin-left: -10px;
    transition: var(--transition);
    opacity: 0.4;
}

.view-all-arrows i:first-child {
    margin-left: 0;
    opacity: 1;
}

.view-all-arrows i:nth-child(2) {
    opacity: 0.7;
}

.view-all:hover .view-all-arrows i {
    margin-left: -4px;
    opacity: 1;
}

.view-all:hover .view-all-arrows i:first-child {
    margin-left: 0;
}

/* Content Links Styling (Description, Instructions, FAQ) */
.game-description a,
.game-instructions a,
.faq-answer-content a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.game-description a:hover,
.game-instructions a:hover,
.faq-answer-content a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* List Styling for Content Areas (Fixing the "sola yapışık" issue) */
.game-description ul,
.game-description ol,
.game-instructions ul,
.game-instructions ol,
.faq-answer-content ul,
.faq-answer-content ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-description li,
.game-instructions li,
.faq-answer-content li {
    list-style-position: outside;
    padding-left: 0.5rem;
}

.game-description ul,
.game-instructions ul,
.faq-answer-content ul {
    list-style-type: disc;
}

.game-description ol,
.game-instructions ol,
.faq-answer-content ol {
    list-style-type: decimal;
}

/* ==================== PAGE VISUAL IDENTITY ==================== */
.page-hero {
    position: relative;
    padding: 20px 20px 20px;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(255, 0, 51, 0.08) 0%, transparent 70%);
}

.page-hero-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.page-hero .page-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    margin: 0;
}

.page-content-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-bottom: 80px;
}

.page-container.glass-panel {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 40px 60px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 26, 0.8);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.site-wrapper:has(.sidebar-mini) .page-container.glass-panel {
    max-width: 1500px;
    /* Use the extra space freed up by the mini sidebar */
}

.page-glow-top {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 51, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 1024px) {
    .page-hero {
        padding: 30px 20px 15px;
    }

    .page-hero-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-hero .page-title {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
    }

    .page-container.glass-panel {
        padding: 40px 20px;
        margin: 0 5px;
    }
}

/* ==================== PROSE TYPOGRAPHY ==================== */
.prose {
    --prose-base: #b0b3b8;
    --prose-bold: #ffffff;
    --prose-link: var(--accent);
    --prose-h: #ffffff;
    --prose-bg-code: rgba(255, 255, 255, 0.05);

    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--prose-base);
}

.prose>*:first-child {
    margin-top: 0 !important;
}

/* Quill alignment support */
.prose .ql-align-center {
    text-align: center;
}

.prose .ql-align-right {
    text-align: right;
}

.prose .ql-align-justify {
    text-align: justify;
}

/* Quill size support */
.prose .ql-size-small {
    font-size: 0.8rem;
}

.prose .ql-size-large {
    font-size: 1.5rem;
}

.prose .ql-size-huge {
    font-size: 1.35rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: var(--prose-h);
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.prose h1 {
    font-size: 1.3rem;
}

.prose h2 {
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.prose h3 {
    font-size: 1.0rem;
}

.prose p {
    margin-bottom: 0.35rem;
}

/* High-Impact CTA Asset Banner */
.asset-cta-banner {
    margin: 60px auto;
    max-width: 900px;
    background: linear-gradient(135deg, #11121d 0%, #050508 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.asset-cta-banner:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 51, 0.2);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.9);
}

.cta-banner-content {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 280px;
}

/* Visual Side - Prominent but integrated */
.cta-visual {
    width: 320px;
    height: 100%;
    position: relative;
    padding: 30px;
}

.cta-visual-frame {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-visual-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.asset-cta-banner:hover .cta-visual-frame img {
    transform: scale(1.08);
}

.cta-floating-badge {
    display: inline-block;
    background: #00ff88;
    color: #000;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.65rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    box-shadow: 0 8px 15px rgba(0, 255, 136, 0.3);
    text-transform: uppercase;
}

/* Details Side - Bold and minimal */
.cta-details {
    flex: 1;
    padding: 40px 50px 40px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-meta {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    opacity: 0.7;
}

.cta-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

.cta-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.cta-stars {
    display: flex;
    gap: 4px;
    color: #ffbc00;
    font-size: 0.9rem;
}

.cta-pick {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.cta-action {
    margin-top: 10px;
}

.btn-cta-main {
    background: linear-gradient(90deg, #ff0033 0%, #cc0029 100%);
    color: #fff !important;
    padding: 20px 45px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 950;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 40px rgba(255, 0, 51, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cta-main:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 0, 51, 0.6);
    background: linear-gradient(90deg, #ff1a4a 0%, #ff0033 100%);
}

.btn-cta-main i {
    font-size: 1.4rem;
}

@media (max-width: 850px) {
    .cta-banner-content {
        flex-direction: column;
        padding-bottom: 40px;
    }

    .cta-visual {
        width: 100%;
        max-width: 320px;
    }

    .cta-details {
        padding: 0 40px;
        text-align: center;
        align-items: center;
    }

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

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

.btn-ultimate-cta:hover {
    transform: scale(1.05) translateX(5px);
    box-shadow: 0 20px 40px rgba(255, 0, 51, 0.5);
    background: linear-gradient(90deg, #ff1a4a 0%, #ff0033 100%);
}

@media (max-width: 850px) {
    .ultimate-layout {
        flex-direction: column;
    }

    .ultimate-visual {
        width: 100%;
        min-width: 100%;
        padding: 40px;
        padding-bottom: 20px;
    }

    .ultimate-details {
        padding: 40px;
        padding-top: 0;
        align-items: center;
        text-align: center;
    }

    .ultimate-info-grid {
        justify-content: center;
    }

    .ultimate-footer {
        width: 100%;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .ultimate-title {
        font-size: 1.8rem;
    }

    .ultimate-visual {
        padding: 30px;
    }
}

.prose strong,
.prose b {
    color: var(--prose-bold);
    font-weight: 700;
}

.prose a {
    color: var(--prose-link);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(45, 96, 255, 0.3);
    transition: all 0.3s ease;
}

.prose a:hover {
    color: #fff;
    border-bottom-color: var(--prose-link);
    text-shadow: 0 0 10px var(--accent-glow);
}

.prose ul,
.prose ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.prose blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2.5rem;
    background: rgba(45, 96, 255, 0.03);
    border-left: 4px solid var(--accent);
    border-radius: 4px 16px 16px 4px;
    font-style: italic;
    color: #fff;
    font-size: 1.25rem;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 3rem auto;
    display: block;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.prose code {
    background: var(--prose-bg-code);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--accent-secondary);
}

.prose pre {
    background: #0d0d1e;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: #e0e6ed;
}

.prose hr {
    margin: 4rem 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Specific for tables if added */
.prose table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.prose th,
.prose td {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

/* Viewport Adjustments */
/* Sections Spacing Fix moved to bottom for cascade priority */

@media (max-width: 1024px) {
    .prose {
        font-size: 1.05rem;
    }

    .prose h1 {
        font-size: 1.8rem;
    }

    .prose h2 {
        font-size: 1.5rem;
    }
}

/* ==================== GAMES GRID ==================== */
/* ==================== GAMES GRID (Bento Style) ==================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-auto-rows: 110px !important;
    grid-auto-flow: dense;
    gap: var(--gap);
}

/* 📏 Standard Uniform Grid (Non-Bento) */
.standard-grid .bento-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
}

.bento-item {
    transition: var(--transition-slow);
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 640px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-auto-rows: 105px !important;
        gap: 12px;
    }

    .bento-medium,
    .bento-large {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* Hide categories on mobile */
@media (max-width: 1024px) {
    [data-section-type="categories"] {
        display: none !important;
    }
}

/* Game Card: Pro Max Style */
.game-card {
    position: relative;
    border-radius: var(--radius);
    overflow: visible;
    /* Enables badge popping out */
    height: 100%;
    width: 100%;
    display: block;
    z-index: 1;
}

@media (hover: hover) {
    .game-card:hover {
        transform: scale(1.005);
        z-index: 100000;
        /* Higher than sidebar's 99999 */
    }
}

.game-card-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    /* Preserves card rounding on the image */
    background: var(--bg-secondary);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .game-card:hover .card-image {
        transform: scale(1.01);
    }
}

.game-card .hover-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@media (hover: hover) {
    .game-card:hover .hover-video {
        opacity: 1;
    }
}

/* Overlay & Info */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 20, 0.9) 0%, rgba(7, 7, 20, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .game-card:hover .card-overlay {
        opacity: 1;
    }
}

.game-hover-info {
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .game-card:hover .game-hover-info {
        transform: translateY(0);
    }
}

.hover-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.hover-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
}

.hover-rating {
    display: flex;
    align-items: center;
    color: #ffcc00;
}

.hover-category {
    color: var(--accent-secondary);
    opacity: 0.8;
}



/* Badges: Candy-Tech Playful Style */
.game-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    left: auto;
    padding: 2px 3px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;

    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 9999;
    /* Ensure badge floats above inner card overlays */
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-badge i {
    font-size: 7px;
    font-weight: 700;
}

.badge-featured {
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.4);
}

.badge-new {
    background: linear-gradient(135deg, #b043d8, #7a26c1);
    box-shadow: 0 4px 12px rgba(176, 67, 216, 0.4);
}

.badge-hot {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.4);
}

/* ==================== CATEGORIES ==================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

/* Slider version */
.games-slider.categories-slider {
    gap: 5px !important;
}

.categories-slider .category-card {
    flex: 0 0 100px;
    width: 100px;
    max-width: 100px;
    min-width: 100px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (hover: hover) {
    .category-card:hover {
        border-color: var(--accent);
        background: var(--bg-card-hover);
        transform: translateY(-2px);
    }
}

.category-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.category-icon i {
    font-size: 32px;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}


/* ==================== FOOTER ==================== */
/* Footer kaldırıldı */



/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .ad-sidebar {
        display: none;
    }
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 260px;
        /* Force width for mobile when active */
    }

    .sidebar {
        transform: translateX(calc(-100% - var(--gap)));
        left: var(--gap);
        width: 260px;
    }

    .main-content {
        margin-left: 0;
        padding-top: 78px !important;
        /* Standardized top offset */
        gap: 8px !important;
        /* Uniform gap between sections */
    }

    .footer {
        margin-left: 0;
    }
}

/* Mobile Play Gateway & Fullscreen Mode */
.mobile-play-gateway {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 100;
    background: #0f172a;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gateway-bg {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(0.4);
    opacity: 0.8;
}

.gateway-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 100%;
}

.gateway-thumb {
    width: 200px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.gateway-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gateway-play-btn {
    width: 180px;
    height: 54px;
    background: var(--accent);
    color: #000;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-soft 2s infinite ease-in-out;
}

.gateway-play-btn i {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gateway-play-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--accent);
    filter: brightness(1.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 40px rgba(var(--accent-rgb), 0.5);
    animation-play-state: paused;
}

.gateway-play-btn:hover i {
    transform: scale(1.1) translateX(2px);
}

.gateway-play-btn:active {
    transform: scale(0.96);
}

/* Fullscreen Mode */
html.game-fullscreen-active,
body.game-fullscreen-active {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
}

body.game-fullscreen-active .play-overlay,
body.game-fullscreen-active .ad-pre-roll,
body.game-fullscreen-active .mobile-play-gateway,
body.game-fullscreen-active .mobile-bottom-nav,
body.game-fullscreen-active .header {
    display: none !important;
}

.player-container-premium.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 9999999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    display: block !important;
    overflow: hidden !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}



/* Landscape Optimization */


.is-fullscreen .iframe-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #000;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

@media (orientation: landscape) and (max-height: 500px) {
    .is-fullscreen .iframe-wrapper {
        top: 0 !important;
        height: 100% !important;
    }
}

.is-fullscreen iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
}



/* Fullscreen Exit Button Logic - Moved to game.css for better specificity */

@media (max-width: 992px) {
    .mobile-play-gateway {
        display: flex;
    }

    .play-overlay {
        display: none !important;
    }

    .iframe-wrapper {
        min-height: 250px;
    }
}

.sidebar .nav-text {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sidebar.sidebar-mini:not(:hover):not(.is-expanded) .nav-text {
    opacity: 0;
}

/* Mobile Bottom Navbar */
/* Mobile Bottom Navbar (Legacy handle - moved to body.is-fullscreen rule above) */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    z-index: 100005;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    flex: 1;
    height: 100%;
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item i {
    font-size: 24px;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--accent);
}

.mobile-bottom-nav .nav-item.active i {
    transform: scale(1.1);
}

/* Play Page Favorite Button refinements */
.favorite-btn.active {
    background: rgba(255, 0, 51, 0.1) !important;
    opacity: 1 !important;
}

.favorite-btn.active i {
    fill: var(--accent);
    stroke: var(--accent);
}

@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom));
    }

    .section {
        margin-bottom: 0 !important;
        /* Rely on main-content gap */
        padding: 0 4px !important;
    }

    .section-header {
        gap: 5px !important;
        /* Reduced from 8px */
        margin-bottom: 8px !important;
        /* Standardized uniform gap */
    }

    .section-title {
        font-size: 1.1rem !important;
        /* Slightly smaller for mobile */
    }

    .section-title i,
    .section-title svg {
        width: 20px !important;
        height: 20px !important;
        font-size: 20px !important;
    }

    .category-card {
        min-height: 70px !important;
        /* Reduced from 85px */
        padding: 8px 4px !important;
        /* Reduced from 10px 6px */
    }

    .category-icon {
        margin-bottom: 2px !important;
        /* Reduced from 6px */
    }

    .category-name {
        font-size: 11px !important;
        /* Slightly smaller for mobile */
    }

    .header-inner {
        padding: 0 15px;
    }

    /* Mobile search overlay */
    .header-search {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 70px;
        padding: 0 15px;
        background: var(--bg-sidebar);
        border-bottom: 1px solid var(--border);
        z-index: 2000;
        align-items: center;
        max-width: none !important;
        margin: 0 !important;
    }

    .header-search.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .search-close-btn {
        display: block !important;
        margin-left: 10px;
        background: none;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
    }

    .header-mobile-logo {
        display: block;
        font-weight: 800;
        font-size: 20px;
        color: white;
    }

    .header-actions {
        display: flex;
        gap: 10px;
    }

    .sidebar {
        display: none;
    }

    .ad-sidebar {
        display: none !important;
    }
}

/* 🔍 Live Search Interface */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: rgba(15, 15, 30, 0.98);
    /* Fixed transparency issue */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 15px;
    display: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-height: 450px;
    overflow-y: auto;
}

.search-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 5px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 22px;
    margin-bottom: 18px;
}

.search-section:first-child .search-section-title {
    margin-top: 4px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.search-result-card {
    position: relative;
    aspect-ratio: 4 / 3;
    max-width: 250px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-result-card:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

.search-result-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.search-category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    margin: 3px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.search-category-item:hover {
    background: var(--accent);
    color: white;
}

/* 🚀 Header Search Bar */
.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 40px;
    padding: 4px 6px;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 0 15px var(--accent-glow);
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
}

.search-icon {
    font-size: 18px;
    color: var(--text-muted);
    margin-left: 12px;
    margin-right: -4px;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 8px 12px 8px 10px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
}

.search-input::placeholder {
    font-weight: 600;
    color: var(--text-muted);
}

/* 🎮 Minimalist Game Cards with Video Preview & Info on Hover */
.game-card {
    position: relative;
    border: none;
    background: none;
    padding: 0;
    overflow: visible;
    z-index: 1;
}

@media (hover: hover) {
    .game-card:hover {
        z-index: 100000;
    }
}

.game-card .game-thumb {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3 !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
    .game-card:hover .game-card-wrapper {
        transform: scale(1.03) translateY(-2px);
        z-index: 10;
    }

    .game-card:hover .game-thumb {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 0, 0, 0.2);
        border: 1px solid rgba(255, 0, 0, 0.3);
    }
}

.game-card .game-info {
    display: none;
}

/* Hover Video Logic */
.game-card .hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .game-card:hover .hover-video {
        opacity: 1;
    }
}

/* Hover Info Layer */
.game-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: all 0.3s ease 0.1s;
    transform: translateY(10px);
    z-index: 20;
    pointer-events: none;
}

@media (hover: hover) {
    .game-card:hover .game-hover-info {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-title {
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    line-height: 1.25;
    margin-right: 8px;
    letter-spacing: 0.3px;
}

.hover-rating {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 3px 6px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hover-rating span {
    opacity: 0.6;
    font-weight: 400;
    font-size: 0.55rem;
    margin-left: 1px;
}

/* Breadcrumbs Styling */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--border-light);
}

/* ===== Lazy Loading Sections ===== */
.lazy-section {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.lazy-section.section-visible,
.homepage-section:not(.lazy-section) {
    opacity: 1;
    transform: translateY(0);
}

/* Görseller icin lazy fade-in */
.game-card img {
    transition: opacity 0.2s ease;
}

.game-card img.img-loaded {
    opacity: 1;
}

.homepage-section {
    position: relative;
    transition: transform 0.2s ease;
}

.homepage-section:hover {
    z-index: 50;
}

/* ===== Games Slider / Carousel ===== */
.games-slider-wrapper {
    position: relative;
    z-index: 10;
}

.games-slider {
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0 12px 0;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    will-change: scroll-position;
}

.games-slider::-webkit-scrollbar {
    display: none;
}

.games-slider .game-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Daha smooth bir sicrama */
    transform: translateZ(0);
    will-change: transform;
}

.games-slider.small .game-card {
    flex: 0 0 145px;
    /* Grid small ile ayni */
}

.games-slider.large .game-card {
    flex: 0 0 240px;
    /* Grid large ile ayni */
}

.vertical-glow-slider .glow-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    transform: translateZ(0);
    will-change: transform;
}

.vertical-glow-slider {
    min-height: 0px;
    gap: var(--gap) !important;
    scroll-behavior: smooth;
    will-change: scroll-position;
}

@media (max-width: 1024px) {
    .vertical-glow-slider .glow-card {
        flex: 0 0 140px;
    }

    .vertical-glow-slider {
        /* min-height removed to allow content-based height */
    }
}

@media (hover: hover) {
    .games-slider .game-card:hover {
        z-index: 100000 !important;
    }
}

@media (max-width: 1024px) {
    .games-slider .game-card {
        flex: 0 0 160px;
    }

    .games-slider.small .game-card {
        flex: 0 0 130px;
    }

    .games-slider.large .game-card {
        flex: 0 0 200px;
    }
}

@media (max-width: 1024px) {

    .games-grid,
    .games-grid.small,
    .games-grid.large {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto !important;
        gap: 12px;
    }

    .game-card .game-thumb,
    .game-thumb {
        aspect-ratio: 4/3 !important;
    }

    .games-slider .game-card,
    .games-slider.small .game-card,
    .games-slider.large .game-card {
        flex: 0 0 calc(50% - 24px);
    }

    .games-slider {
        padding-top: 12px !important;
        /* Restore offset to allow badges to be visible */
    }
}

@media (max-width: 480px) {

    .games-grid,
    .games-grid.small,
    .games-grid.large {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto !important;
        gap: 8px;
    }

    .games-slider .game-card,
    .games-slider.small .game-card,
    .games-slider.large .game-card {
        flex: 0 0 calc(50% - 20px);
    }

    .games-slider {
        padding-top: 12px !important;
        padding-bottom: 0 !important;
        /* Match grid behavior for perfect symmetry */
    }
}

/* MOBILE BOTTOM NAV & SHUFFLE BUTTON */
@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr) !important;
        justify-items: center;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        box-sizing: border-box !important;
        height: calc(65px + env(safe-area-inset-bottom)) !important;
        background: rgba(15, 15, 35, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        z-index: 100005;
        padding: 0 10px;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.5);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-width: 0;
        gap: 5px;
        height: 100%;
        color: #94a3b8;
        font-size: 10px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .nav-item i {
        font-size: 24px;
        stroke-width: 2px;
        transition: all 0.2s ease;
    }

    .nav-item.active,
    .nav-item:hover {
        color: #ef4444;
    }

    .nav-item.active svg {
        fill: rgba(239, 68, 68, 0.15);
    }

    /* SHUFFLE BUTTON STYLES - PREMIUM REDESIGN */
    .nav-item-shuffle-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        margin-top: -35px;
    }

    .nav-item-shuffle {
        width: 64px;
        height: 64px;
        background: var(--accent-gradient);
        border-radius: 20px;
        /* Squircle style */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        box-shadow: 0 10px 30px rgba(255, 0, 51, 0.4), 0 0 0 8px rgba(15, 23, 42, 1);
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
        text-decoration: none;
        animation: shuffle-pulse 3s infinite ease-in-out;
    }

    .nav-item-shuffle:active {
        transform: scale(0.85) rotate(15deg);
        box-shadow: 0 5px 15px rgba(255, 0, 51, 0.6);
    }

    .nav-item-shuffle i {
        font-size: 32px !important;
        color: #fff;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
        transition: transform 0.4s ease;
    }

    .nav-item-shuffle:hover i {
        transform: rotate(180deg);
    }

    @keyframes shuffle-pulse {

        0%,
        100% {
            box-shadow: 0 10px 30px rgba(255, 0, 51, 0.4), 0 0 0 8px rgba(15, 23, 42, 1);
            transform: translateY(0);
        }

        50% {
            box-shadow: 0 15px 40px rgba(255, 0, 51, 0.7), 0 0 0 8px rgba(15, 23, 42, 1), 0 0 20px var(--accent-glow);
            transform: translateY(-8px);
        }
    }
}

/* 🏹 Premium Layered Slider Navigation */
.slider-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    /* Narrower hit area */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    opacity: 0;
    pointer-events: auto;
    color: #fff;
}

.slider-arrow.prev {
    left: 0;
    background: linear-gradient(to right, rgba(7, 7, 20, 0.5) 0%, transparent 100%);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.slider-arrow.next {
    right: 0;
    background: linear-gradient(to left, rgba(7, 7, 20, 0.5) 0%, transparent 100%);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.games-slider-wrapper:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow svg,
.slider-arrow i {
    width: 32px;
    height: 32px;
    color: var(--accent) !important;
    /* Force accent color */
    fill: var(--accent) !important;
    /* Force SVG fill */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.9));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    /* Full opacity by default when visible */
}

.slider-arrow:hover svg,
.slider-arrow:hover i {
    transform: scale(1.3);
    filter: drop-shadow(0 0 15px var(--accent)) drop-shadow(0 0 30px var(--accent-glow));
    /* Enhanced Neon Glow */
    opacity: 1;
}

/* Premium Glassmorphism on Hover */
.slider-arrow:hover {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.slider-arrow.disabled {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden;
}

/* Mobile: Disable Layered Arrows for Native Swiping */
@media (max-width: 1024px) {
    .slider-arrow {
        display: none !important;
    }
}

/* Son Oynananlar - bos durum */
.recently-played-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary, #888);
    font-size: 14px;
    gap: 10px;
    border: 1px dashed var(--border, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius, 12px);
}

.recently-played-empty svg {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.card-favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.card-favorite-btn i {
    width: 14px;
    height: 14px;
}

.game-thumb:hover .card-favorite-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-favorite-btn:hover {
    background: white;
    color: var(--accent);
    transform: scale(1.1) !important;
}

.card-favorite-btn.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: white !important;
}

.card-favorite-btn.active i {
    color: white !important;
}

/* 🍞 Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(13, 14, 20, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    min-width: 200px;
    animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: auto;
}

.toast i {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.toast.removing i {
    color: var(--text-muted);
}

@keyframes toastIn {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }

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

.toast.fade-out {
    animation: toastOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Skeletons */
.skeleton-fav-item {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-search-title {
    width: 120px;
    height: 14px;
    border-radius: 4px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-search-cat {
    display: inline-block;
    width: 100px;
    height: 28px;
    border-radius: 20px;
    margin: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-search-game {
    aspect-ratio: 4/3;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


.quick-fav-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-fav-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.quick-fav-list::-webkit-scrollbar {
    width: 4px;
}

.quick-fav-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.quick-fav-item {
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

.quick-fav-item:hover {
    transform: scale(1.05);
    z-index: 1;
}

.quick-fav-thumb {
    width: 100%;
    aspect-ratio: 4/3 !important;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: filter 0.3s ease;
}

.quick-fav-thumb:hover {
    filter: brightness(1.1);
}

.quick-fav-info {
    flex: 1;
    min-width: 0;
}

.quick-fav-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-fav-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.quick-fav-footer {
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
}

.all-fav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: var(--accent-gradient);
    color: white !important;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.all-fav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.4);
}



/* Switch Toggle */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.cookie-slider {
    background-color: var(--accent);
}

input:checked+.cookie-slider:before {
    transform: translateX(18px);
}

input:disabled+.cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .cookie-consent {
        left: 16px;
        right: 16px;
        bottom: 80px;
        padding: 24px;
    }
}

/* --- SEO Article Styles --- */
.seo-article-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.seo-article-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    max-width: 1000px;
    margin: 0 auto;
}

.seo-article-content h1,
.seo-article-content h2,
.seo-article-content h3 {
    color: var(--text-primary);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.seo-article-content p {
    margin-bottom: 1.5em;
}

.seo-article-content a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 4px;
}

.seo-article-content a:hover {
    color: var(--text-primary);
}

.seo-article-content ul,
.seo-article-content ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
}

.seo-article-content li {
    margin-bottom: 0.8em;
}

.seo-article-content strong,
.seo-article-content b {
    color: var(--text-primary);
    font-weight: 700;
}

/* Make flags rounded like other UI elements */
.fi {
    border-radius: 4px;
    overflow: hidden;
}

/* Sidebar Nav Separator */
.nav-separator {
    display: block;
    height: 3px;
    width: 64px;
    background: var(--accent);
    border-radius: 4px;
    margin: 20px auto;
    opacity: 1;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-mini:not(:hover) .nav-separator {
    width: 12px;
}

/* ==================== RECENTLY PLAYED SECTION ==================== */
.recently-played-section {
    display: none;
    padding: 2px 0 0 !important;
    margin-bottom: 20px !important;
    /* Added space below */
    background: transparent;
    border: none;
    backdrop-filter: none;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 10;
}

.recently-played-section::-webkit-scrollbar {
    display: none;
}

.recently-played-list {
    display: flex;
    gap: 12px;
    align-items: center;
}

.recently-played-btn {
    display: flex;
    flex-shrink: 0;
    width: 100px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    color: var(--text-main);
}

.recently-played-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.rp-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rp-btn-content i {
    font-size: 18px;
    color: var(--accent);
}

.rp-btn-content span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recently-played-item {
    position: relative;
    width: 90px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-secondary);
}

.recently-played-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recently-played-item:hover {
    border-color: var(--accent);
    transform: scale(1.05) translateY(-2px);
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255, 0, 51, 0.3);
}

.recently-played-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: var(--transition);
}

.recently-played-item:hover img {
    filter: brightness(1.1);
}

/* Active/Current state hint */
.recently-played-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 0, 51, 0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.recently-played-item:hover::after {
    opacity: 1;
}

/* ==================== COOKIE CONSENT (STRICT) ==================== */
#cookie-consent {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    right: 30px !important;
    max-width: 480px !important;
    background: rgba(15, 16, 22, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    padding: 28px !important;
    z-index: 2147483647 !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6) !important;
    transform: translateY(150%) !important;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: block !important;
}

#cookie-consent.show {
    transform: translateY(0) !important;
}

.cookie-consent-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.cookie-consent-header i {
    color: var(--accent) !important;
    font-size: 24px !important;
}

.cookie-consent-header h4 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #fff !important;
}

.cookie-consent-body p {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
}

.cookie-consent-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.cookie-btn {
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border: none !important;
    flex: 1 !important;
    min-width: 130px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cookie-btn-primary {
    background: var(--accent-gradient) !important;
    color: white !important;
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.cookie-settings-link {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 16px !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}

#cookie-preferences {
    display: none;
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.cookie-pref-item {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

.cookie-pref-info h5 {
    margin: 0 0 4px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.cookie-pref-info p {
    margin: 0 !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

@media (max-width: 1024px) {
    #cookie-consent {
        left: 16px !important;
        right: 16px !important;
        bottom: 80px !important;
        padding: 24px !important;
    }
}

/* ==================== FIHRIST (A-Z INDEX) ==================== */
.fihrist-container {
    padding-top: 10px;
}

.fihrist-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.fihrist-nav-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px 0 50px 0;
    padding: 0 20px;
}

.fihrist-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    max-width: 1200px;
}

.fihrist-nav::-webkit-scrollbar {
    display: none;
}

.nav-letter {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-letter:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.4);
}

.nav-letter.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

.fihrist-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.fihrist-group {
    scroll-margin-top: 100px;
}

.fihrist-letter-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.letter-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}

.letter-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

.fihrist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.fihrist-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fihrist-card:hover {
    transform: translateX(5px);
    background: rgba(var(--accent-rgb), 0.05);
    border-color: rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fihrist-card .card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    color: var(--accent);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.fihrist-card:hover .card-icon {
    background: var(--accent);
    color: #000;
    transform: rotate(-10deg);
}

.fihrist-card .card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fihrist-card .cat-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.fihrist-card .cat-count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .fihrist-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fihrist-nav-wrapper {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .fihrist-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fihrist-card {
        padding: 10px;
    }

    .cat-name {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   MOBILE VERTICAL SYMMETRY - GLOBAL OVERRIDE (Moved to end for cascade)
   ========================================================================== */
@media (max-width: 1024px) {
    .page-container.glass-panel {
        padding: 5px 10px !important;
        /* Tight for top bias removal */
    }

    .section,
    .recently-played-section,
    .homepage-section,
    .games-slider,
    .vertical-glow-slider,
    .games-slider-wrapper,
    [data-section-id],
    [data-section-type] {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 8px !important;
        padding-bottom: 5px !important;
        min-height: auto !important;
    }

    .section-header {
        margin-top: 10px !important;
        /* 10px Symmetry - Top */
        margin-bottom: 10px !important;
        /* 10px Symmetry - Bottom */
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Standardize internal child spacing */
    .section-header .section-title,
    .section-header .view-all {
        margin: 0 !important;
        line-height: normal !important;
    }

    .section {
        padding: 0 10px !important;
        /* Side padding only */
    }

    /* Zero-bias for first header on page */
    .section:first-child .section-header,
    section:first-of-type .section-header {
        margin-top: 5px !important;
    }

    /* Main Site Header spacing fix */
    .header.glass-panel {
        margin-bottom: 10px !important;
    }
}

/* Favorite Developers System */
.dev-favorite-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.dev-favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--accent) !important;
}

.dev-favorite-btn.active {
    background: rgba(var(--accent-rgb), 0.1) !important;
    border-color: rgba(var(--accent-rgb), 0.3) !important;
    color: var(--accent) !important;
}

.dev-favorite-btn.active i {
    animation: heartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

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

/* Quick Fav sections */
.quick-fav-section-title {
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 5px;
}

.search-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 5px 0;
}

.quick-fav-developers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 15px;
    max-height: 120px;
    overflow-y: auto;
}

.quick-fav-dev-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.quick-fav-dev-item:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.quick-fav-dev-item i {
    font-size: 14px;
    opacity: 0.7;
}

.quick-fav-dev-item:hover i {
    opacity: 1;
}

/* ==========================================================================
   MOBILE ULTRA-EDGE GAME MODE
   Removes ALL container constraints on the play page for a true full-screen experience.
   ========================================================================== */
@media (max-width: 1024px) {

    /* Critical UI Hiding */
    body.game-fullscreen-active .header,
    body.game-fullscreen-active .sidebar,
    body.game-fullscreen-active .sidebar-toggle-btn,
    body.game-fullscreen-active .footer-main {
        display: none !important;
    }

    /* Reset html and body for play page to prevent any hidden horizontal offsets */
    html:has(.play-page-wrapper),
    body:has(.play-page-wrapper) {
        width: 100vw !important;
        overflow-x: hidden !important;
        position: relative !important;
    }

    /* Force site-wrapper and main-content to literal display edges */
    .play-page-wrapper.site-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        display: block !important;
    }

    .play-page-wrapper .main-content {
        padding-top: 72px;
        /* Header space */
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
    }

    body.game-fullscreen-active .main-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Remove all intermediate container constraints including nested grids */
    .play-page-wrapper .page-container,
    .play-page-wrapper .content-area,
    .play-page-wrapper .games-content,
    .play-page-wrapper .game-content-grid,
    .play-page-wrapper .content-left,
    .play-page-wrapper .game-details-full {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        display: block !important;
    }

    /* Hide horizontal title/meta on gateway to maximize space if needed, 
       but keeping them for now as per user preference unless they cause issues */
    .play-page-wrapper .mobile-play-gateway {
        width: 100vw !important;
        margin: 0 !important;
        padding: 20px !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Ultra-Clean Gameplay Mode: Hide all distractions */
    body.game-fullscreen-active .header,
    body.game-fullscreen-active .mobile-bottom-nav {
        display: none !important;
    }

    body.game-fullscreen-active {
        background: #000 !important;
        overflow: hidden !important;
        height: 100dvh !important;
        width: 100vw !important;
        position: fixed !important;
        inset: 0 !important;
    }

    .play-page-wrapper .games-content>* {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
    }
}


.game-details-full strong,
.game-details-full b {
    color: #d4dae4 !important;
    font-weight: 700;
}

.game-details-full a strong,
.game-details-full a b {
    color: inherit !important;
}
/* ==================== SCROLL TO TOP ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100002;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: var(--accent-gradient);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

.scroll-to-top i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .scroll-to-top {
        bottom: 90px; /* Above mobile bottom nav */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
