/*=============================================
=       KIZI.COM CLONE - Blue & Green Theme   =
=============================================*/

:root {
    /* Kizi Exact Colors - Blue Theme */
    --bg-main: #1a8cff;
    --bg-darker: #1565c0;
    --bg-section: #1976d2;
    --bg-card: #2196f3;
    --bg-card-hover: #42a5f5;

    /* Green Navigation */
    --nav-green: #6cbd45;
    --nav-green-hover: #5ca83a;
    --nav-green-dark: #4a9030;

    /* Orange/Yellow Buttons */
    --btn-orange: #f5a623;
    --btn-orange-hover: #e69516;

    /* White & Text */
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);

    /* Game Page (Light) */
    --bg-game-page: #f5f5f5;
    --text-dark: #333333;
    --text-darker: #1a1a1a;

    /* Sizing */
    --header-height: 70px;
    --card-radius: 16px;

    /* Transitions */
    --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ==================== DARK MODE ==================== */
[data-theme="dark"] {
    --bg-main: #0f1923;
    --bg-darker: #0a1218;
    --bg-section: #152230;
    --bg-card: #1a2d3d;
    --bg-card-hover: #243d52;

    --nav-green: #2d8a4e;
    --nav-green-hover: #25753f;
    --nav-green-dark: #1e6134;

    --text-white: #e8edf2;
    --text-light: rgba(232, 237, 242, 0.9);
    --text-muted: rgba(232, 237, 242, 0.6);

    --bg-game-page: #0d1720;
    --text-dark: #c8d6e0;
    --text-darker: #e8edf2;
}

[data-theme="dark"] .site-header {
    background: var(--bg-darker);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .search-input {
    background: var(--bg-section);
    color: var(--text-white);
    border-color: var(--bg-card);
}

[data-theme="dark"] .search-results {
    background: var(--bg-section);
    border-color: var(--bg-card);
}

[data-theme="dark"] .search-result-item:hover {
    background: var(--bg-card);
}

/* Dropdown menu keeps original colors in dark mode */

[data-theme="dark"] .sidebar {
    background: var(--bg-darker);
}

[data-theme="dark"] .game-container-iframe {
    background: #000;
}

[data-theme="dark"] .game-header-single,
[data-theme="dark"] .game-description-single,
[data-theme="dark"] .game-tags-single,
[data-theme="dark"] .game-info-grid {
    color: var(--text-white);
}

[data-theme="dark"] .game-description-single {
    background: var(--bg-section);
}

[data-theme="dark"] .game-info-grid .info-item {
    background: var(--bg-card);
}

[data-theme="dark"] .game-actions-bar {
    border-color: var(--bg-card);
}

[data-theme="dark"] .btn-game-action {
    color: var(--text-light);
}

[data-theme="dark"] .btn-game-action:hover {
    background: var(--bg-card);
}

[data-theme="dark"] .meta-badge {
    background: var(--bg-card);
    color: var(--text-light);
}

[data-theme="dark"] .tag-badge {
    background: var(--bg-card);
    color: var(--text-light);
}

[data-theme="dark"] .share-btn {
    background: var(--bg-card);
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-text,
[data-theme="dark"] .footer-credits {
    color: var(--text-muted);
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--text-white);
}

[data-theme="dark"] .site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--bg-card);
}

[data-theme="dark"] .game-breadcrumbs .breadcrumb-item a,
[data-theme="dark"] .game-breadcrumbs .breadcrumb-item span {
    color: var(--text-muted);
}

[data-theme="dark"] .tags-cloud-section h2 {
    color: var(--text-white);
}

[data-theme="dark"] .tag-cloud-item {
    background: var(--bg-card);
    color: var(--text-light);
}

[data-theme="dark"] .tag-cloud-item:hover {
    background: var(--bg-card-hover);
}

[data-theme="dark"] .pagination-container a,
[data-theme="dark"] .pagination-container span {
    background: var(--bg-card);
    color: var(--text-light);
}

[data-theme="dark"] .pagination-container .current {
    background: var(--nav-green);
    color: white;
}

[data-theme="dark"] .no-games {
    color: var(--text-muted);
}

[data-theme="dark"] .no-games i {
    color: var(--text-muted);
}

[data-theme="dark"] .category-header h1,
[data-theme="dark"] .category-header p {
    color: var(--text-white);
}

/* Dark Mode Toggle Button */
.btn-dark-mode {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--theme-transition);
    flex-shrink: 0;
}

.btn-dark-mode:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

[data-theme="dark"] .btn-dark-mode {
    background: rgba(255, 255, 255, 0.1);
    color: #f7c948;
}

[data-theme="dark"] .btn-dark-mode:hover {
    background: rgba(247, 201, 72, 0.2);
}

/* Smooth transitions for theme switch */
html[data-theme],
html:not([data-theme]) {
    transition: var(--theme-transition);
}

body,
.site-header,
.site-footer,
.sidebar,
.game-card,
.dropdown-menu,
.search-results,
.search-input {
    transition: var(--theme-transition);
}

/* ==================== ACCESSIBILITY ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--nav-green);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    clip: auto;
    margin: 0;
    overflow: visible;
    white-space: normal;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    width: 100%;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ==================== LAYOUT ==================== */
.main-wrapper {
    min-height: 100vh;
    padding-top: var(--header-height);
}

.site-content {
    min-height: calc(100vh - var(--header-height));
}

.container-fluid {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px;
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 12px;
        width: 100%;
        max-width: 100%;
    }

    .main-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .site-content {
        width: 100%;
        max-width: 100%;
    }
}

/* ==================== HEADER - KIZI RAISED STYLE ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(180deg, #1976d2 0%, #1565c0 100%);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 10px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    gap: 20px;
}

/* Logo - Kizi Raised Style */
.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: var(--nav-green);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 4px 0 #4a9c30, 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.logo-icon:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4a9c30, 0 4px 10px rgba(0, 0, 0, 0.15);
}

.logo-icon .custom-logo-img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: contain;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
    display: none;
}

/* Navigation Wrapper - Contains nav bar and dropdown as one unit */
.nav-wrapper {
    position: relative;
    z-index: 1002;
}

/* Green Navigation Bar - Kizi Raised Style */
.header-nav {
    display: flex;
    align-items: center;
    background: var(--nav-green);
    border-radius: 35px;
    padding: 0;
    gap: 0;
    box-shadow: 0 6px 0 #4a9c30;
    position: relative;
    transition: border-radius 0.2s;
}

/* When dropdown is open, connect nav to dropdown */
.nav-dropdown:hover ~ .header-nav,
.header-nav:has(.nav-dropdown:hover) {
    border-radius: 35px 35px 0 0;
    box-shadow: none;
}

.header-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 35px;
    transition: all 0.2s;
    white-space: nowrap;
}

.header-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-nav .nav-link i {
    font-size: 18px;
}

/* Categories Dropdown Toggle */
.nav-dropdown {
    position: static;
}

.nav-dropdown .dropdown-toggle {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
}

.nav-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-dropdown .dropdown-toggle:hover,
.nav-dropdown:hover .dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown .dropdown-toggle i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.2s;
    margin-left: 4px;
}

.nav-dropdown:hover .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Hide any default dropdown arrows */
.nav-dropdown .dropdown-toggle::after,
.nav-dropdown .dropdown-toggle::before,
.dropdown-toggle::after,
.dropdown-toggle::before {
    display: none !important;
    content: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Dropdown Menu - Connected to nav bar */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-green);
    border-radius: 0 0 24px 24px;
    padding: 20px 30px 24px;
    display: none;
    z-index: 1001;
    box-shadow: 0 6px 0 #4a9c30;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* Prevent dropdown from going off-screen */
@media (max-width: 1400px) {
    .dropdown-menu {
        padding: 20px 24px 24px;
    }
}

@media (max-width: 900px) {
    .dropdown-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px 20px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 10px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.dropdown-item i {
    width: 22px;
    text-align: center;
    font-size: 18px;
    opacity: 0.9;
}

.dropdown-footer {
    margin-top: 24px;
    padding-top: 0;
    border-top: none;
}

.dropdown-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: #5bb5f8;
    border-radius: 35px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #3a95d8, 0 6px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-footer a:hover {
    background: #4aa5e8;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #3a95d8, 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Search Button - Kizi Raised Style */
.header-search {
    margin-left: auto;
    position: relative;
    z-index: 1003;
}

.search-box {
    position: relative;
}

.btn-search-toggle {
    width: 52px;
    height: 52px;
    background: var(--nav-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #4a9c30, 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-search-toggle:hover {
    background: var(--nav-green-hover);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4a9c30, 0 4px 10px rgba(0, 0, 0, 0.15);
}

.search-input {
    position: absolute;
    top: 0;
    right: 60px;
    width: 0;
    height: 50px;
    padding: 0;
    background: white;
    border: none;
    border-radius: 25px;
    color: var(--text-dark);
    font-size: 14px;
    transition: all 0.3s;
    opacity: 0;
}

.search-box.active .search-input {
    width: 300px;
    padding: 0 20px;
    opacity: 1;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
}

/* Search Results */
.search-results {
    position: absolute;
    top: 60px;
    right: 0;
    width: 360px;
    background: white;
    border-radius: var(--card-radius);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-results.active {
    display: block;
}

.search-results-list {
    padding: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: #f0f0f0;
}

.search-thumb {
    width: 56px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.search-info {
    flex: 1;
    min-width: 0;
}

.search-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-category {
    font-size: 12px;
    color: #888;
}

.no-results {
    padding: 24px;
    text-align: center;
    color: #888;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-action {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 18px;
    transition: all 0.2s;
}

.btn-action:hover {
    transform: scale(1.1);
}

.btn-action {
    position: relative;
}

.btn-action .action-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
}

.btn-favorite:hover {
    color: #ff6b81;
}

.btn-recent:hover {
    color: #ffd93d;
}

.recent-games {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-games span {
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.recent-avatars {
    display: flex;
    gap: -8px;
}

.recent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
    object-fit: cover;
}

/* Mobile Menu Toggle */
.btn-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 22px;
}

@media (max-width: 1200px) {
    .header-nav {
        display: none;
    }

    .btn-menu-toggle {
        display: flex;
    }

    .recent-games span {
        display: none;
    }
}

@media (max-width: 640px) {
    .header-content {
        padding: 0;
        gap: 12px;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .btn-search-toggle {
        width: 44px;
        height: 44px;
    }
}

/* ==================== SIDEBAR (Mobile) ==================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--nav-green);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo i {
    font-size: 28px;
    color: white;
}

.sidebar-logo-img {
    height: 40px;
    width: auto;
}

.sidebar-logo span {
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.sidebar-content {
    padding: 0 12px;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-title {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 10px;
    transition: all 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-link i {
    width: 22px;
    text-align: center;
    font-size: 18px;
}

.badge-count {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: var(--btn-orange);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.2s;
}

.category-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.category-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* ==================== FEATURED SECTION ==================== */
.featured-section {
    margin-bottom: 32px;
    background: var(--bg-section);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.featured-section .section-header {
    margin-bottom: 16px;
}

.featured-carousel {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 14px !important;
}

@media (max-width: 1200px) {
    .featured-carousel {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .featured-carousel::-webkit-scrollbar {
        display: none;
    }

    .featured-card {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }
}

.featured-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    display: block;
    aspect-ratio: 1;
    background: var(--bg-card);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-card:hover img {
    transform: scale(1.1);
}

.featured-card .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.featured-card .featured-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-card .featured-category {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

.featured-main {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--bg-card);
    height: 320px;
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-main .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.featured-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.featured-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.featured-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.featured-category {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.btn-play-now {
    padding: 16px 32px;
    background: var(--btn-orange);
    border-radius: 30px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #c48a1a, 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-play-now:hover {
    background: var(--btn-orange-hover);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #c48a1a, 0 4px 10px rgba(0, 0, 0, 0.2);
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-small {
    flex: 1;
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.featured-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top 10 Section */
.top10-section {
    margin-bottom: 32px;
    background: var(--bg-section);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top10-section .section-header {
    margin-bottom: 16px;
}

.top10-grid {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.top10-grid::-webkit-scrollbar {
    display: none;
}

.top10-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 12px;
    transition: all 0.2s;
    min-width: 220px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.top10-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.top10-rank {
    width: 28px;
    height: 28px;
    background: var(--btn-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.top10-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.top10-info {
    flex: 1;
    min-width: 0;
}

.top10-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.top10-plays {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

.top10-plays i {
    font-size: 10px;
}

/* Best Of Section */
.best-of-section {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 16px;
}

.best-of-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.best-of-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
}

.best-of-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.best-of-item:hover img {
    transform: scale(1.1);
}

.best-of-number {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--btn-orange);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: white;
}

.best-of-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    text-align: center;
    margin-bottom: 12px;
}

.btn-view-all {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--btn-orange);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #c48a1a, 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-view-all:hover {
    background: var(--btn-orange-hover);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #c48a1a, 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
}

.section-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-dots {
    display: flex;
    gap: 8px;
}

.section-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s;
}

.section-dot.active {
    background: white;
}

.section-arrows {
    display: flex;
    gap: 8px;
}

.section-arrow {
    width: 42px;
    height: 42px;
    background: var(--btn-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #c48a1a, 0 6px 12px rgba(0, 0, 0, 0.15);
}

.section-arrow:hover {
    background: var(--btn-orange-hover);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #c48a1a, 0 4px 8px rgba(0, 0, 0, 0.15);
}

.section-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--btn-orange);
    border-radius: 25px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #c48a1a, 0 6px 12px rgba(0, 0, 0, 0.15);
}

.section-link:hover {
    background: var(--btn-orange-hover);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #c48a1a, 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ==================== GAMES ROW (New Releases style) ==================== */
.games-section {
    margin-bottom: 32px;
    background: var(--bg-section);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.games-section .section-header {
    margin-bottom: 16px;
}

.games-row-wrapper {
    background: var(--bg-section);
    border-radius: var(--card-radius);
    padding: 20px;
}

.games-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.games-row::-webkit-scrollbar {
    display: none;
}

.games-row .game-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
}

/* All Games Section */
.all-games-section {
    margin-bottom: 32px;
    background: var(--bg-section);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.all-games-section .section-header {
    margin-bottom: 16px;
}

/* ==================== GAMES GRID ==================== */
.games-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 14px !important;
}

@media (min-width: 640px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    }
}

@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(7, 1fr) !important;
    }
}

/* ==================== GAME CARD - KIZI STYLE ==================== */
.game-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--bg-card);
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.game-link {
    display: block;
}

.game-thumbnail {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--card-radius);
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
    background: var(--bg-section);
}

/* Play Overlay */
.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn-overlay {
    width: 64px;
    height: 64px;
    background: var(--btn-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transform: scale(0.8);
    transition: all 0.2s;
    box-shadow: 0 4px 0 #c48a1a, 0 8px 20px rgba(0, 0, 0, 0.3);
}

.game-card:hover .play-btn-overlay {
    transform: scale(1);
}

.play-btn-overlay i {
    margin-left: 4px;
}

/* Category Badge - Hidden on homepage, shown on game pages */
.category-badge {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    z-index: 5;
}

body.single-game .category-badge {
    display: block;
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    animation: newBadgePulse 2s ease-in-out infinite;
}

@keyframes newBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* When both category badge and new badge exist, offset category */
.game-thumbnail .new-badge + .category-badge,
.game-thumbnail .category-badge:has(~ .new-badge) {
    display: none;
}

/* Like Button */
.btn-like {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: all 0.2s;
    z-index: 5;
}

.game-card:hover .btn-like {
    opacity: 1;
}

.btn-like:hover,
.btn-like.liked {
    background: #e74c3c;
}

/* Game Info - Hidden on homepage, shown on game pages */
.game-info {
    display: none;
    padding: 10px 12px;
}

.game-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.game-plays {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.game-plays i {
    font-size: 10px;
}

/* ==================== SINGLE GAME PAGE ==================== */
.single-game-page {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
    width: 100%;
}

/* Single game page - Same blue theme as homepage */
body.single-game {
    background: var(--bg-main);
}

body.single-game .container-fluid {
    max-width: 1100px;
}

/* Mobile fixes for single game page */
@media (max-width: 768px) {
    .single-game-page {
        max-width: 100%;
        padding: 12px;
        padding-top: 12px;
    }

    body.single-game .container-fluid {
        max-width: 100%;
        padding: 0;
    }
}

body.single-game .game-info {
    display: block;
}

body.single-game .game-card {
    background: var(--bg-card);
}

body.single-game .game-title {
    color: white;
}

body.single-game .game-plays {
    color: rgba(255, 255, 255, 0.7);
}

/* Breadcrumbs - Button Style */
.game-breadcrumbs {
    padding: 16px 0;
}

.game-breadcrumbs .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.game-breadcrumbs .breadcrumb-item {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.game-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    display: none;
}

.game-breadcrumbs .breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--bg-card);
    border-radius: 25px;
    color: white;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.1);
}

.game-breadcrumbs .breadcrumb-item a:hover {
    background: var(--bg-card-hover);
    text-decoration: none;
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.game-breadcrumbs .breadcrumb-item.current {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--nav-green);
    border-radius: 25px;
    color: white;
    font-weight: 700;
    box-shadow: 0 3px 0 #4a9c30, 0 5px 10px rgba(0, 0, 0, 0.1);
}

.game-breadcrumbs .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.game-breadcrumbs .breadcrumb-separator i {
    font-size: 12px;
}

/* Game Container */
.game-container-iframe {
    background: #000;
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.game-container-iframe iframe {
    width: 100%;
    height: 600px;
    display: block;
    border: none;
}

@media (max-width: 768px) {
    .game-container-iframe iframe {
        height: 300px;
    }
}

.game-container-iframe.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    border-radius: 0;
    background: #000;
    width: 100%;
    height: 100%;
}

.game-container-iframe.fullscreen iframe {
    width: 100%;
    height: 100%;
}

/* Native fullscreen API overrides */
.game-container-iframe:fullscreen,
.game-container-iframe:-webkit-full-screen {
    background: #000;
    width: 100%;
    height: 100%;
}

.game-container-iframe:fullscreen iframe,
.game-container-iframe:-webkit-full-screen iframe {
    width: 100%;
    height: 100%;
}

.btn-exit-fullscreen {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    z-index: 10000;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.game-container-iframe.fullscreen .btn-exit-fullscreen {
    display: flex;
}

/* Mobile fullscreen overlay */
.mobile-fullscreen-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
}

.btn-mobile-fullscreen {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--nav-green, #5cb85c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.3);
    transition: transform 0.15s;
}

.btn-mobile-fullscreen:active {
    transform: scale(0.95);
}

@media (min-width: 1025px) {
    .mobile-fullscreen-overlay {
        display: none;
    }
}

/* Game Actions Bar */
.game-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.game-actions-left,
.game-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-game-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-card);
    border-radius: 25px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn-game-action:hover {
    background: var(--bg-card-hover);
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-game-action.active,
.btn-game-action.liked {
    background: #e74c3c;
    color: white;
}

.btn-game-action i {
    font-size: 15px;
}

.btn-fullscreen-game {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--nav-green);
    border-radius: 25px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #4a9c30, 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-fullscreen-game:hover {
    background: var(--nav-green-hover);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4a9c30, 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Game Header */
.game-header-single {
    background: var(--bg-section);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-main-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.game-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.game-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.game-stat i {
    color: rgba(255, 255, 255, 0.6);
}

.game-rating-section {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.stars-display {
    display: flex;
    align-items: center;
    gap: 2px;
}

.stars-display i {
    color: #f5a623;
    font-size: 18px;
}

.rating-score {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-left: 10px;
}

.rating-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.rate-game {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: 10px;
    flex-wrap: wrap;
}

.rate-game-left,
.rate-game-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rate-game span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
}

.rate-game .share-buttons {
    display: flex;
    gap: 8px;
}

.rate-game .share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: transform 0.2s, opacity 0.2s;
}

.rate-game .share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.rate-game .share-btn.facebook { background: #1877f2; }
.rate-game .share-btn.twitter { background: #1da1f2; }
.rate-game .share-btn.whatsapp { background: #25d366; }
.rate-game .share-btn.pinterest { background: #e60023; }

.star-rating {
    display: flex;
    gap: 4px;
}

.star-rating i {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: color 0.15s;
}

.star-rating i:hover,
.star-rating i.hover,
.star-rating i.selected {
    color: #f5a623;
}

/* Meta Badges */
.game-meta-single {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--nav-green);
    border-radius: 25px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 3px 0 #4a9c30, 0 5px 10px rgba(0, 0, 0, 0.12);
}

.meta-badge:hover {
    background: var(--nav-green-hover);
    transform: translateY(2px);
    box-shadow: 0 1px 0 #4a9c30, 0 3px 6px rgba(0, 0, 0, 0.12);
}

.meta-badge i {
    font-size: 14px;
}

/* Share Section - now inside rate-game */

/* Related Games */
.related-games {
    margin-top: 32px;
    margin-bottom: 32px;
}

.related-games {
    background: var(--bg-section);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.related-games .section-title {
    color: white;
}

.related-games .section-title i {
    color: var(--btn-orange);
}

.related-games .section-link {
    background: var(--btn-orange);
}

.related-games .games-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 14px !important;
}

@media (max-width: 1200px) {
    .related-games .games-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .related-games .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Game Description */
.game-description-single {
    background: var(--bg-section);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-description-single h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-description-single h2 i {
    color: var(--btn-orange);
}

.description-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
}

.game-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .game-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
}

.info-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Game Tags */
.game-tags-single {
    background: var(--bg-section);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-tags-single h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-tags-single h3 i {
    color: var(--btn-orange);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    padding: 8px 16px;
    background: var(--bg-section);
    border-radius: 25px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.tag-badge:hover {
    background: var(--nav-green);
    color: white;
}

/* No Game */
.no-game {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-game i {
    font-size: 64px;
    color: var(--btn-orange);
    margin-bottom: 16px;
    display: block;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--bg-darker);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
}

.footer-section h4,
.footer-section .footer-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-links p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--nav-green);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-credits {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-credits i {
    color: #e74c3c;
}

/* ==================== LOADING ==================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner i {
    font-size: 48px;
    color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* ==================== PAGINATION ==================== */
.pagination-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 32px 0;
    gap: 8px;
}

.pagination-container a,
.pagination-container span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--bg-card);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination-container a:hover {
    background: var(--bg-card-hover);
}

.pagination-container .current {
    background: var(--btn-orange);
}

/* ==================== NO GAMES ==================== */
.no-games {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-games i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
    display: block;
}

.no-games p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--btn-orange);
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #c48a1a, 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: var(--btn-orange-hover);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #c48a1a, 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ==================== CATEGORY PAGE ==================== */
.category-header {
    background: var(--bg-section);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-header h1 i {
    color: var(--btn-orange);
}

.category-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Category Games Grid */
.category-games {
    background: var(--bg-section);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==================== TAGS PAGE ==================== */
.tags-cloud-section {
    background: var(--bg-section);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tags-cloud-section h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: white;
}

.tags-cloud-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--bg-card);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.tag-cloud-item:hover {
    background: var(--nav-green);
}

.tag-cloud-item i {
    color: var(--btn-orange);
}

.tag-cloud-item:hover i {
    color: white;
}

.tag-count {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 11px;
}

/* ==================== AD SPACES ==================== */
.ad-space {
    margin: 20px auto;
    text-align: center;
}

.ad-space:empty {
    display: none;
}

/* ==================== INFINITE SCROLL ==================== */
.infinite-scroll-loading,
.loading-games {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
}

.infinite-scroll-loading i,
.loading-games i {
    font-size: 32px;
    color: white;
    animation: spin 1s linear infinite;
}

.loading-games p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}

/* ==================== THEATRE MODE ==================== */
body.theatre-mode {
    background: #000 !important;
}

body.theatre-mode .site-header {
    opacity: 0.3;
    transition: opacity 0.3s;
}

body.theatre-mode .site-header:hover {
    opacity: 1;
}

body.theatre-mode .container-fluid {
    background: #000 !important;
    max-width: 100%;
    padding: 0;
}

body.theatre-mode .single-game-page {
    max-width: 100%;
}

body.theatre-mode .game-breadcrumbs,
body.theatre-mode .game-header-single,
body.theatre-mode .game-description-single,
body.theatre-mode .game-tags-single,
body.theatre-mode .related-games,
body.theatre-mode .game-share,
body.theatre-mode .site-footer {
    display: none;
}

body.theatre-mode .game-container-iframe {
    border-radius: 0;
    margin: 0;
    height: calc(100vh - 100px);
}

body.theatre-mode .game-container-iframe iframe {
    height: calc(100vh - 100px);
}

body.theatre-mode .game-actions-bar {
    background: #111;
    padding: 16px 24px;
    border: none;
    margin: 0;
}

body.theatre-mode .btn-game-action {
    background: #222;
    color: #aaa;
}

body.theatre-mode .btn-game-action:hover {
    background: #333;
    color: #fff;
}

body.theatre-mode .btn-game-action.active,
body.theatre-mode .btn-game-action.liked {
    background: #e74c3c;
    color: white;
}

body.theatre-mode .btn-game-action[onclick*="Theatre"] {
    background: var(--nav-green);
    color: white;
}

/* Hide game-header-right on all pages */
.game-header-right {
    display: none;
}

/* ==================== ADVERTISEMENT STYLES ==================== */

/* General Ad Styles */
.ad-space {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
    background: var(--bg-section);
    border-radius: 16px;
    padding: 16px;
    min-height: 100px;
}

.ad-space iframe,
.ad-space ins {
    max-width: 100%;
}

/* Homepage Ads */
.ad-after_featured,
.ad-between_categories {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px dashed rgba(102, 126, 234, 0.3);
}

.ad-before_related {
    margin: 24px 0;
    background: var(--bg-section);
    border-radius: 16px;
    padding: 20px;
}

/* Fixed Sidebar Ads - Single Game Page */
/* Ads are centered between browser edge and game container (1000px max-width) */
/* Horizontal: center between browser edge and game container edge */
/* Vertical: center of visible area (viewport height - header height) */
.ad-fixed {
    position: fixed;
    /* Vertical center of visible area below header */
    /* Formula: headerHeight + (viewportHeight - headerHeight) / 2 */
    /* = headerHeight/2 + 50vh = 35px + 50vh */
    top: calc(50vh + var(--header-height) / 2);
    transform: translateY(-50%);
    z-index: 100;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    width: 160px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*
 * Horizontal centering formula:
 * Game container max-width = 1000px (centered)
 * Side space = (100vw - 1000px) / 2
 * To center 160px ad in side space: (side space - 160px) / 2
 * = ((100vw - 1000px) / 2 - 160px) / 2
 * = (100vw - 1000px - 320px) / 4
 * = (100vw - 1320px) / 4
 */
.ad-fixed-left {
    left: calc((100vw - 1320px) / 4);
}

.ad-fixed-right {
    right: calc((100vw - 1320px) / 4);
}

/* Hide fixed ads on smaller screens */
/* Need at least: 1000px game + 160px*2 ads + padding = ~1400px minimum */
/* Using 1440px threshold for comfortable spacing */
@media (max-width: 1440px) {
    .ad-fixed {
        display: none !important;
    }
}

/* Hide fixed ads in fullscreen/theatre mode */
body.theatre-mode .ad-fixed,
.game-container-iframe.fullscreen ~ .ad-fixed {
    display: none !important;
}

/* Header/Footer Ads */
.ad-header {
    margin: 0 0 20px 0;
    padding: 12px;
}

.ad-footer {
    margin: 20px 0 0 0;
    padding: 12px;
}

/* ==================== STATIC PAGES (Contact, About, etc.) ==================== */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 0;
}

.static-page-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
}

.static-page-content {
    background: var(--bg-section);
    border-radius: 20px;
    padding: 32px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

.static-page-content h2,
.static-page-content h3,
.static-page-content h4 {
    color: white;
    margin: 24px 0 12px;
}

.static-page-content h2 { font-size: 22px; }
.static-page-content h3 { font-size: 18px; }
.static-page-content h4 { font-size: 16px; }

.static-page-content p {
    margin-bottom: 16px;
}

.static-page-content a {
    color: var(--nav-green);
    text-decoration: none;
}

.static-page-content a:hover {
    text-decoration: underline;
}

.static-page-content ul,
.static-page-content ol {
    margin: 0 0 16px 24px;
}

.static-page-content li {
    margin-bottom: 8px;
}

.static-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.static-page-content blockquote {
    border-left: 4px solid var(--nav-green);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--bg-card);
    border-radius: 0 12px 12px 0;
    color: var(--text-light);
}

.static-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.static-page-content th,
.static-page-content td {
    padding: 10px 14px;
    border: 1px solid var(--bg-card);
    text-align: left;
}

.static-page-content th {
    background: var(--bg-card);
    color: white;
    font-weight: 700;
}

/* WordPress forms (Contact Form 7, WPForms, etc.) */
.static-page-content input[type="text"],
.static-page-content input[type="email"],
.static-page-content input[type="tel"],
.static-page-content input[type="url"],
.static-page-content textarea,
.static-page-content select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.static-page-content input:focus,
.static-page-content textarea:focus,
.static-page-content select:focus {
    outline: none;
    border-color: var(--nav-green);
}

.static-page-content textarea {
    min-height: 120px;
    resize: vertical;
}

.static-page-content input[type="submit"],
.static-page-content button[type="submit"] {
    background: var(--nav-green);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.static-page-content input[type="submit"]:hover,
.static-page-content button[type="submit"]:hover {
    background: var(--nav-green-hover);
}

@media (max-width: 768px) {
    .static-page {
        padding: 16px 0;
    }

    .static-page-title {
        font-size: 22px;
    }

    .static-page-content {
        padding: 20px 16px;
        border-radius: 12px;
    }
}

/* ==================== CONTACT FORM ==================== */
.contact-intro {
    margin-bottom: 24px;
}

.contact-form {
    margin-top: 24px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

.contact-form-field {
    margin-bottom: 16px;
}

.contact-form-field label {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-form-field .required {
    color: #e74c3c;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
    outline: none;
    border-color: var(--nav-green);
}

.contact-form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.contact-form-field select option {
    background: #1a2d3d;
    color: white;
}

.contact-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.contact-form-footer {
    margin-top: 8px;
}

.btn-contact-submit {
    background: var(--nav-green);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
}

.btn-contact-submit:hover {
    background: var(--nav-green-hover);
    transform: translateY(-1px);
}

.btn-contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-form-status {
    margin-top: 16px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.contact-form-status.success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.contact-form-status.error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ==================== BROWSE / FILTER PAGE ==================== */
.browse-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.browse-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.browse-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.browse-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: var(--bg-section);
    border: 2px solid transparent;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.browse-search input:focus {
    outline: none;
    border-color: var(--nav-green);
}

.browse-sort select {
    padding: 10px 36px 10px 14px;
    background: var(--bg-section);
    border: 2px solid transparent;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.browse-sort select:focus {
    outline: none;
    border-color: var(--nav-green);
}

.browse-sort select option {
    background: #1a2d3d;
    color: white;
}

.browse-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.browse-pill {
    padding: 8px 16px;
    background: var(--bg-section);
    border: none;
    border-radius: 20px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.browse-pill:hover {
    background: var(--bg-card);
}

.browse-pill.active {
    background: var(--nav-green);
    color: white;
}

.pill-count {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
}

.browse-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.2);
}

.browse-tags-wrap {
    margin-bottom: 16px;
}

.browse-tags-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.browse-tags-toggle:hover {
    color: var(--text-light);
}

.browse-tags-arrow {
    transition: transform 0.2s;
}

.browse-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.browse-tag-pill {
    padding: 6px 14px;
    background: var(--bg-card);
    border: none;
    border-radius: 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.browse-tag-pill:hover {
    background: var(--bg-card-hover);
    color: var(--text-light);
}

.browse-tag-pill.active {
    background: var(--btn-orange);
    color: white;
}

.browse-active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--bg-section);
    border-radius: 16px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
}

.active-filter-chip button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.active-filter-chip button:hover {
    color: white;
}

.btn-clear-filters {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-clear-filters:hover {
    text-decoration: underline;
}

.browse-load-more {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.btn-load-more {
    padding: 12px 32px;
    background: var(--nav-green);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-load-more:hover {
    background: var(--nav-green-hover);
}

@media (max-width: 640px) {
    .browse-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .browse-search {
        min-width: 100%;
    }
}

/* ==================== COLLECTIONS ==================== */
.collections-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.btn-create-collection {
    background: var(--nav-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-create-collection:hover {
    background: var(--nav-green-hover);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.collection-card {
    background: var(--bg-section);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.collection-card:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
}

.collection-card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--btn-orange);
    flex-shrink: 0;
}

.collection-card-info {
    flex: 1;
    min-width: 0;
}

.collection-card-info h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-card-info span {
    color: var(--text-muted);
    font-size: 13px;
}

.collection-card-arrow {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.collection-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.collection-detail-header h2 {
    flex: 1;
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.btn-back-collections {
    background: var(--bg-section);
    color: var(--text-light);
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-back-collections:hover {
    background: var(--bg-card);
}

.collection-detail-actions {
    display: flex;
    gap: 8px;
}

.btn-rename-collection,
.btn-delete-collection {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--bg-section);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-rename-collection:hover {
    background: var(--bg-card);
    color: var(--text-white);
}

.btn-delete-collection:hover {
    background: #c0392b;
    color: white;
}

.btn-remove-from-collection {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(192, 57, 43, 0.9);
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.game-card:hover .btn-remove-from-collection {
    display: flex;
}

/* Collection dropdown on single game page */
.collection-dropdown-wrap {
    position: relative;
}

.collection-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-section);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 100;
    overflow: hidden;
    margin-bottom: 8px;
}

.collection-dropdown-list {
    max-height: 200px;
    overflow-y: auto;
}

.collection-dropdown-empty {
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.collection-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
}

.collection-dropdown-item:hover {
    background: var(--bg-card);
}

.collection-dropdown-item.in-collection {
    color: var(--nav-green);
}

.collection-dropdown-item.in-collection i {
    color: var(--nav-green);
}

.collection-dropdown-new {
    display: flex;
    padding: 8px;
    border-top: 1px solid var(--bg-card);
    gap: 6px;
}

.collection-dropdown-new input {
    flex: 1;
    padding: 6px 10px;
    background: var(--bg-card);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    min-width: 0;
}

.collection-dropdown-new input:focus {
    outline: none;
}

.collection-dropdown-new button {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: var(--nav-green);
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.collection-dropdown-new button:hover {
    background: var(--nav-green-hover);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: var(--bg-section);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.modal-box h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-box h3 i {
    color: var(--btn-orange);
}

.modal-box input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 16px;
}

.modal-box input[type="text"]:focus {
    outline: none;
    border-color: var(--nav-green);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-modal-cancel {
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-modal-cancel:hover {
    background: var(--bg-card-hover);
    color: var(--text-white);
}

.btn-modal-confirm {
    padding: 10px 24px;
    background: var(--nav-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-modal-confirm:hover {
    background: var(--nav-green-hover);
}

/* ==================== COMMENTS ==================== */
.game-comments-section {
    margin-top: 24px;
}

.comments-area {
    background: var(--bg-section);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.comments-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-title i {
    color: var(--btn-orange);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-comment {
    margin-bottom: 16px;
}

.game-comment .comment-body {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
}

.game-comment .children {
    list-style: none;
    padding-left: 24px;
    margin-top: 12px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-avatar img {
    border-radius: 50%;
    width: 42px;
    height: 42px;
}

.comment-author {
    color: white;
    font-size: 14px;
}

.comment-date {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.comment-content p {
    margin: 0 0 8px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-awaiting {
    color: var(--btn-orange);
    font-size: 12px;
    font-style: italic;
    margin-bottom: 8px;
}

.comment-actions {
    margin-top: 8px;
}

.reply-link a {
    color: var(--nav-green);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.reply-link a:hover {
    text-decoration: underline;
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
}

.comment-navigation a {
    color: var(--nav-green);
    font-size: 13px;
    text-decoration: none;
}

.no-comments {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: 16px;
}

/* Comment Form */
.comment-respond {
    margin-top: 20px;
}

.comment-reply-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-reply-title i {
    color: var(--btn-orange);
}

.comment-reply-title small {
    margin-left: 8px;
}

.comment-reply-title small a {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
}

.comment-form label {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--nav-green);
}

.comment-form textarea {
    resize: vertical;
    min-height: 80px;
}

.comment-form p {
    margin-bottom: 12px;
}

.btn-comment-submit {
    background: var(--nav-green);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-comment-submit:hover {
    background: var(--nav-green-hover);
}

.comment-notes,
.logged-in-as {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 12px;
}

.logged-in-as a {
    color: var(--nav-green);
}

[data-theme="dark"] .comments-area {
    background: var(--bg-section);
}

[data-theme="dark"] .game-comment .comment-body {
    background: var(--bg-card);
}

[data-theme="dark"] .comment-form input[type="text"],
[data-theme="dark"] .comment-form input[type="email"],
[data-theme="dark"] .comment-form input[type="url"],
[data-theme="dark"] .comment-form textarea {
    background: var(--bg-card);
    color: var(--text-white);
}

/* ==================== MOBILE FULL WIDTH FIXES ==================== */
@media (max-width: 768px) {
    /* Ensure all sections take full width on mobile */
    .featured-section,
    .top10-section,
    .games-section,
    .all-games-section,
    .related-games,
    .game-description-single,
    .game-tags-single {
        border-radius: 12px;
        padding: 16px 12px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .section-title {
        font-size: 16px;
    }

    .game-header-single {
        padding: 16px 0;
    }

    .game-main-title {
        font-size: 20px;
    }

    .game-actions-bar {
        padding: 12px 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    .game-container-iframe {
        border-radius: 12px;
    }

    /* Ensure no horizontal overflow */
    .games-row,
    .top10-grid {
        max-width: 100%;
    }
}
