@import url('https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round');

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

.material-icons,
.material-icons-round {
    font-family: 'Material Icons', 'Material Icons Round', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
}

:root {
    --primary: #6200EA;
    --primary-dark: #3700B3;
    --secondary: #03DAC6;
    --surface: #121212;
    --surface-light: #1E1E1E;
    --surface-elevated: #242424;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --accent: #BB86FC;
    --error: #CF6679;
    --success: #4CAF50;
    --warning: #FFC107;
    --drawer-offset: 0px;
    --drawer-height: 100dvh;
    --drawer-width: 280px;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

body.drawer-open {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(120, 80, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 80, 160, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(80, 200, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.app-container {
    position: relative;
    z-index: 2;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    min-height: 100vh;
}

body.light-theme {
    --primary: #6200EA;
    --primary-dark: #4c1d95;
    --secondary: #0f766e;
    --surface: #f8fafc;
    --surface-light: #eef2ff;
    --surface-elevated: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent: #7c3aed;
    background: linear-gradient(135deg, #f5f7ff 0%, #dce7ff 100%);
    color: var(--text-primary);
}

body.light-theme::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(98, 0, 234, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 80, 160, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(80, 200, 255, 0.12) 0%, transparent 50%);
}

body.light-theme .app-container {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

body.light-theme .header {
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.95), rgba(55, 0, 179, 0.95));
}

body.light-theme .search-input {
    background: rgba(17, 24, 39, 0.08);
    color: var(--text-primary);
    border-color: rgba(98, 0, 234, 0.2);
}

body.light-theme .search-input::placeholder {
    color: rgba(17, 24, 39, 0.55);
}

body.light-theme .theme-toggle,
body.light-theme .profile-btn,
body.light-theme .menu-toggle,
body.light-theme .drawer-close {
    color: var(--text-primary);
    background: rgba(17, 24, 39, 0.08);
}

body.light-theme .theme-toggle:hover,
body.light-theme .profile-btn:hover,
body.light-theme .menu-toggle:hover,
body.light-theme .drawer-close:hover {
    background: rgba(17, 24, 39, 0.14);
}

body.light-theme .drawer {
    background: linear-gradient(180deg, #ffffff, #f3f6ff);
    color: var(--text-primary);
}

body.light-theme .nav-link {
    color: #4b5563;
}

body.light-theme .nav-link:hover,
body.light-theme .nav-link.active {
    color: var(--text-primary);
    background: rgba(98, 0, 234, 0.08);
}

body.light-theme .section-title,
body.light-theme .section-subtitle,
body.light-theme .featured-game-title,
body.light-theme .featured-game-description,
body.light-theme .featured-game-category,
body.light-theme .game-title,
body.light-theme .blog-title,
body.light-theme .game-meta,
body.light-theme .game-description,
body.light-theme .footer-col h4,
body.light-theme .footer-col a,
body.light-theme .footer-bottom,
body.light-theme .form-label,
body.light-theme .ad-container {
    color: var(--text-primary);
}

body.light-theme .featured-game,
body.light-theme .category-card,
body.light-theme .game-card,
body.light-theme .blog-card,
body.light-theme .ad-container,
body.light-theme .action-btn,
body.light-theme .form-input,
body.light-theme .footer {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border-color: rgba(98, 0, 234, 0.12);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

body.light-theme .featured-game-content {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.3));
    color: var(--text-primary);
}

body.light-theme .game-rating {
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
}

body.light-theme .game-category {
    background: rgba(124, 58, 237, 0.12);
    color: var(--accent);
}

body.light-theme .footer {
    background: linear-gradient(135deg, #ffffff, #f5f7ff);
}

body.light-theme .footer-col a {
    color: var(--text-secondary);
}

body.light-theme .footer-col a:hover {
    color: var(--text-primary);
}

body.light-theme .footer-bottom {
    border-top-color: rgba(17, 24, 39, 0.12);
}

body.light-theme .form-input {
    background: #f8fafc;
    color: var(--text-primary);
    border-color: rgba(98, 0, 234, 0.2);
}

body.light-theme .action-btn:hover {
    background: var(--primary);
    color: white;
}

body.light-theme .mobile-search-bar {
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.95), rgba(55, 0, 179, 0.95));
}

body.light-theme .mobile-search-input {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-theme .mobile-search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--secondary);
}

body.light-theme .mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.light-theme .mobile-search-submit,
body.light-theme .mobile-search-close {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

body.light-theme .mobile-search-submit:hover,
body.light-theme .mobile-search-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

body.light-theme .mobile-search-btn {
    color: white;
}

body.light-theme .mobile-search-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.light-theme .mobile-search-predictions {
    background: rgba(248, 250, 252, 0.98);
    border-color: rgba(98, 0, 234, 0.15);
}

body.light-theme .mobile-search-prediction-item {
    color: #111827;
    border-bottom-color: rgba(98, 0, 234, 0.1);
}

body.light-theme .mobile-search-prediction-item:hover {
    background: rgba(98, 0, 234, 0.08);
}

body.light-theme .mobile-search-prediction-info h4 {
    color: #111827;
}

body.light-theme .mobile-search-prediction-info p {
    color: #4b5563;
}

body.light-theme .mobile-search-prediction-no-results {
    color: #4b5563;
}

/* Header */
.header {
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.9), rgba(55, 0, 179, 0.9));
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(187, 134, 252, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(187, 134, 252, 0.8)); }
}

.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border-radius: 50px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary);
    transform: scale(1.02);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    cursor: pointer;
}

.search-predictions {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    z-index: 30;
    max-height: 420px;
    overflow-y: auto;
    padding: 0.4rem 0;
}

.search-predictions[hidden] {
    display: none;
}

.search-prediction-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.85rem 1rem;
    color: white;
    text-decoration: none;
    transition: background 0.2s ease;
}

.search-prediction-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.search-prediction-thumb {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #1f1f1f;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.search-prediction-info h4 {
    margin: 0;
    color: white;
    font-size: 1rem;
    line-height: 1.3;
}

.search-prediction-info p {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.search-prediction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--secondary);
}

.search-prediction-no-results {
    padding: 1rem 1.2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle, .profile-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover, .profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Drawer */
.drawer {
    position: fixed;
    top: 0;
    left: calc(-1 * var(--drawer-width, 280px));
    width: var(--drawer-width, 280px);
    height: 100vh;
    background: linear-gradient(180deg, var(--surface-elevated), var(--surface));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2600;
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
}

.drawer.open {
    transform: translateX(var(--drawer-width, 280px));
}

.drawer-header {
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    margin-bottom: 1rem;
}

.drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 2500;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    list-style: none;
    padding: 0 1rem;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(187, 134, 252, 0.3), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(187, 134, 252, 0.1);
    color: var(--text-primary);
    transform: translateX(5px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.3), rgba(187, 134, 252, 0.3));
    color: var(--accent);
    font-weight: 600;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Play Page */
.play-hero {
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.play-hero__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.play-hero__breadcrumbs a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.play-hero__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(14, 20, 57, 0.95), rgba(8, 14, 40, 0.95));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.play-hero__head h1 {
    font-size: 2rem;
    margin-bottom: 0.65rem;
}

.play-hero__category {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
}

.play-hero__buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.95rem 1.4rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #5f3dff, #22d3ee);
    color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}

.btn:hover {
    transform: translateY(-1px);
}

.play-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.play-card__left {
    display: grid;
    gap: 1rem;
}

.play-video {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 80px rgba(7, 10, 41, 0.35);
}

.game-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    display: block;
    background: #000;
}

.play-video__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
}

.play-video__play-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.play-video__play-btn:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

.play-mini-actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
}

.action-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.action-icon-btn:hover,
.action-icon-btn:focus {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.18);
}

.action-icon-btn .material-icons-round {
    font-size: 1.2rem;
}

.action-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff5d5d;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.14);
}

.play-card__right {
    display: grid;
    gap: 1rem;
}

.info-panel,
.tag-panel {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.info-panel h2 {
    margin-bottom: 1.25rem;
}

.info-panel__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.85);
}

.info-panel__row strong {
    color: #fff;
}

.tag-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tag-panel span {
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

    .leaderboard-panel {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 28px;
        padding: 1.5rem;
        box-shadow: 0 24px 60px rgba(0,0,0,0.18);
    }

    .leaderboard-panel__header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .leaderboard-panel__header h2 {
        margin: 0;
        font-size: 1.1rem;
    }

    .leaderboard-panel__header span {
        color: rgba(255,255,255,0.7);
        font-size: 0.95rem;
    }

    .leaderboard-list {
        display: grid;
        gap: 0.85rem;
    }

    .leaderboard-entry {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.95rem 1rem;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 20px;
    }

    .leaderboard-entry__user {
        display: flex;
        align-items: center;
        gap: 0.85rem;
    }

    .leaderboard-entry__avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid rgba(255,255,255,0.14);
    }

    .leaderboard-entry__user strong {
        display: block;
        color: #fff;
        font-size: 0.98rem;
    }

    .leaderboard-entry__user span,
    .leaderboard-score {
        display: block;
        color: rgba(255,255,255,0.7);
        font-size: 0.9rem;
        margin-top: 0.2rem;
    }

    .leaderboard-entry__rank {
        min-width: 42px;
        text-align: center;
        color: #22d3ee;
        font-weight: 700;
    }

    .leaderboard-empty {
        color: rgba(255,255,255,0.75);
        text-align: center;
        padding: 1rem 0;
    }


.description-panel h2,
.similar-panel__header h3 {
    margin-bottom: 1rem;
}

.description-panel p {
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.read-more {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 700;
}

.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: #fff;
    border: none;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(124, 58, 237, 0.25);
}

.blog-hero-section .blog-hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 32px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
}

.blog-hero-image {
    display: block;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
}

.blog-category-pill {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.blog-hero-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-publish-date {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-weight: 700;
}

.blog-hero-title {
    margin: 0 0 1.2rem;
    font-size: clamp(2rem, 2.8vw, 3rem);
    line-height: 1.05;
}

.blog-hero-title a {
    color: #fff;
    text-decoration: none;
}

.blog-hero-excerpt {
    color: rgba(255,255,255,0.82);
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 1.8rem;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.7rem;
}

.blog-card {
    display: grid;
    grid-template-rows: auto 1fr;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.blog-card__image {
    position: relative;
    min-height: 210px;
    background-size: cover;
    background-position: center;
}

.blog-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.blog-card__content {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-card__meta {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    gap: 1rem;
}

.blog-card__excerpt {
    margin: 0;
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
    min-height: 5.5rem;
}

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
}

@media (max-width: 1100px) {
    .blog-hero-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .blog-hero-content {
        padding: 1.5rem;
    }

    .blog-hero-title {
        font-size: 1.75rem;
    }
}

.similar-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.similar-panel__header a {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 700;
}

.similar-panel__list {
    display: grid;
    gap: 0.85rem;
}

.similar-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0.85rem;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 0.9rem;
    text-decoration: none;
    color: #fff;
}

.similar-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 18px;
}

.similar-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.similar-card span {
    color: rgba(255,255,255,0.65);
}

@media (max-width: 1100px) {
    .play-card,
    .play-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .play-hero__head,
    .play-card,
    .play-details {
        gap: 1rem;
    }

    .play-hero__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .play-mini-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .play-hero__breadcrumbs,
    .play-mini-actions {
        flex-direction: column;
        align-items: flex-start;
    }

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

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

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

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.view-all {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.view-all:hover {
    transform: translateX(5px);
    color: var(--accent);
}

.featured-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

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

.featured-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.featured-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 10px;
}

.featured-game {
    flex: 0 0 350px;
    height: 200px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured-game:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(187, 134, 252, 0.4);
}

.featured-game-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.featured-game-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}


.featured-game-category {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.featured-game:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1);
}

.play-overlay .material-icons {
    color: var(--primary);
    font-size: 2rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.2), rgba(187, 134, 252, 0.2));
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(187, 134, 252, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(187, 134, 252, 0.3);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.category-icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.game-card {
    background: var(--surface-elevated);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    group: true;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(187, 134, 252, 0.3);
}

.game-thumbnail {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

.game-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-thumbnail::after {
    opacity: 1;
}

.game-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.game-rating .material-icons {
    font-size: 1rem;
    color: #FFD700;
}

.game-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    box-shadow: 0 5px 20px rgba(187, 134, 252, 0.5);
}

.game-card:hover .game-play-btn {
    transform: translate(-50%, -50%) scale(1);
}

.game-info {
    padding: 1rem;
}

.game-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.game-card__actions {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem 1rem;
}

.game-card__action {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-card__action:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.game-card__action.active {
    background: var(--accent);
    color: #fff;
}

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

.game-card__actions {
    display: flex;
    gap: 0.65rem;
    padding: 0.85rem 1rem 1rem;
}

.game-card__action {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.game-card__action:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.game-card__action.active {
    background: var(--accent);
    color: #fff;
}

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

.game-category {
    background: rgba(187, 134, 252, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: var(--accent);
    font-weight: 500;
}

.pagination-wrapper {
    margin-top: 32px;
    text-align: center;
}

.pagination-wrapper .pagination {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination-wrapper .pagination li {
    display: inline-block;
}

.pagination-wrapper .pagination li a,
.pagination-wrapper .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-wrapper .pagination li.active span,
.pagination-wrapper .pagination li.active a {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: #fff;
    box-shadow: 0 10px 25px rgba(98, 0, 234, 0.18);
}

.pagination-wrapper .pagination li a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.pagination-wrapper .pagination li.disabled span,
.pagination-wrapper .pagination li.disabled a {
    opacity: 0.45;
    cursor: default;
}

@media (max-width: 600px) {
    .pagination-wrapper .pagination {
        gap: 0.35rem;
    }

    .pagination-wrapper .pagination li a,
    .pagination-wrapper .pagination li span {
        min-width: 34px;
        padding: 0.5rem 0.75rem;
    }
}

/* Ad Spaces */
.ad-container {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.ad-banner {
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
}

.ad-sidebar {
    position: sticky;
    top: 100px;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    display: none;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-elevated);
    backdrop-filter: blur(20px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

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

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.bottom-nav-item .material-icons {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.bottom-nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(187, 134, 252, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 998;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 10px 30px rgba(187, 134, 252, 0.7);
}

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

    .search-bar {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .bottom-nav {
        display: block;
    }

    .main-content {
        padding: 1rem;
        padding-bottom: 80px;
    }

    .featured-game {
        flex: 0 0 280px;
        height: 160px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }

    .category-card {
        padding: 1rem;
    }

    .category-icon {
        font-size: 2rem;
    }

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

    .header-content {
        align-items: center;
        justify-content: flex-start;
    }

    .fab {
        bottom: 90px;
    }
}

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

    .featured-game {
        flex: 0 0 240px;
    }
}

/* Loading Animation */
.skeleton {
    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: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

.featured-carousel { display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.featured-carousel::-webkit-scrollbar { height: 8px; }
.featured-carousel::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
.featured-carousel::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--accent), var(--secondary)); border-radius: 10px; }
.featured-game { flex: 0 0 350px; height: 200px; border-radius: 20px; background: linear-gradient(135deg, #667eea, #764ba2); position: relative; overflow: hidden; scroll-snap-align: start; cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.featured-game:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 20px 40px rgba(187, 134, 252, 0.4); }
.featured-game-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent); }
.featured-game-category { color: var(--secondary); font-size: 0.9rem; font-weight: 600; }
.play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.featured-game:hover .play-overlay { transform: translate(-50%, -50%) scale(1); }
.play-overlay .material-icons { color: var(--primary); font-size: 2rem; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.category-card { background: linear-gradient(135deg, rgba(98, 0, 234, 0.2), rgba(187, 134, 252, 0.2)); border-radius: 16px; padding: 1.5rem; text-align: center; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.category-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(187, 134, 252, 0.3) 0%, transparent 70%); opacity: 0; transition: opacity 0.3s; }
.category-card:hover::before { opacity: 1; }
.category-card:hover { transform: translateY(-5px) scale(1.05); border-color: var(--accent); box-shadow: 0 10px 30px rgba(187, 134, 252, 0.3); }
.category-icon { font-size: 2.5rem; margin-bottom: 0.5rem; background: linear-gradient(135deg, var(--accent), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.category-count { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.25rem; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.game-card { background: var(--surface-elevated); border-radius: 16px; overflow: hidden; transition: all 0.3s; cursor: pointer; position: relative; group: true; }
.game-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(187, 134, 252, 0.3); }
.game-thumbnail { width: 100%; height: 150px; background: linear-gradient(135deg, #667eea, #764ba2); position: relative; overflow: hidden; }
.game-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.game-thumbnail::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5)); opacity: 0; transition: opacity 0.3s; }
.game-card:hover .game-thumbnail::after { opacity: 1; }
.game-rating { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); padding: 0.25rem 0.5rem; border-radius: 8px; display: flex; align-items: center; gap: 0.25rem; font-size: 0.85rem; }
.game-rating .material-icons { font-size: 1rem; color: #FFD700; }
.game-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 50px; height: 50px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; transition: transform 0.3s; box-shadow: 0 5px 20px rgba(187, 134, 252, 0.5); }
.game-card:hover .game-play-btn { transform: translate(-50%, -50%) scale(1); }
.game-info { padding: 1rem; }
.game-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-secondary); }
.game-category { background: rgba(187, 134, 252, 0.2); padding: 0.25rem 0.5rem; border-radius: 6px; color: var(--accent); font-weight: 500; }
.ad-container { background: rgba(255, 255, 255, 0.05); border: 2px dashed rgba(255, 255, 255, 0.2); border-radius: 16px; padding: 2rem; text-align: center; margin: 2rem 0; min-height: 100px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 0.9rem; backdrop-filter: blur(10px); }
.ad-banner { width: 100%; max-width: 728px; margin: 0 auto; }
.ad-sidebar { position: sticky; top: 100px; }
.bottom-nav {
    display: none;
    position: sticky;
    bottom: 0; left: 0;
    right: 0; background:
    var(--surface-elevated);
    backdrop-filter: blur(20px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
}
.bottom-nav-items { display: flex; justify-content: space-around; padding: 0.5rem 0; }
.bottom-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0.5rem; color: var(--text-secondary); text-decoration: none; transition: all 0.3s; position: relative; }
.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item.active::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 3px; background: var(--accent); border-radius: 2px; }
.bottom-nav-item .material-icons { font-size: 1.5rem; margin-bottom: 0.25rem; }
.bottom-nav-label { font-size: 0.75rem; font-weight: 500; }
.fab { position: fixed; bottom: 80px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--secondary)); color: white; border: none; cursor: pointer; box-shadow: 0 5px 20px rgba(187, 134, 252, 0.5); display: flex; align-items: center; justify-content: center; transition: all 0.3s; z-index: 998; }
.fab:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 10px 30px rgba(187, 134, 252, 0.7); }
.ripple { position: relative; overflow: hidden; }
.ripple::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; }
.ripple:active::before { width: 300px; height: 300px; }
.skeleton { 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: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Blog Specific Styles */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--surface-elevated); border-radius: 16px; overflow: hidden; transition: all 0.3s; cursor: pointer; }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(187, 134, 252, 0.3); }
.blog-card .game-thumbnail { height: 200px; }

/* Single Post & Game Play Styles */
.page-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .page-grid { grid-template-columns: 3fr 1fr; } }
.game-frame-container { position: relative; width: 100%; padding-top: 56.25%; /* 16:9 Aspect Ratio */ background-color: #000; border-radius: 16px; overflow: hidden; border: 2px solid var(--surface-elevated); }
.game-frame-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.game-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap;}
.action-btn { background: var(--surface-elevated); border: none; color: var(--text-secondary); padding: 0.75rem 1.5rem; border-radius: 50px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.action-btn:hover { background: var(--primary); color: white; }
.action-btn .material-icons { font-size: 1.25rem; }
.fullscreen-btn { background: var(--accent); color: black; }
.fullscreen-btn:hover { background: var(--secondary); }

/* Form Styles */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-secondary); }
.form-input { width: 100%; padding: 0.75rem 1rem; border-radius: 12px; border: 2px solid var(--surface-light); background: rgba(0,0,0,0.2); color: white; font-size: 1rem; transition: all 0.3s ease; }
.form-input:focus { outline: none; background: var(--surface-light); border-color: var(--primary); }
.btn { padding: 0.75rem 1.5rem; border-radius: 50px; border: none; cursor: pointer; font-weight: 700; transition: all 0.3s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(98,0,234,0.4); }
.btn-primary:disabled { background: var(--surface-light); color: var(--text-secondary); cursor: not-allowed; }

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--surface-elevated), var(--surface));
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-content { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--accent); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { color: var(--text-secondary); text-decoration: none; transition: all 0.3s; }
.footer-col a:hover { color: var(--text-primary); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

/* Gemini Features UI */
.hidden { display: none; }
.spinner {
    width: 32px;
    height: 32px;
    border: 4px solid var(--surface-light);
    border-bottom-color: var(--accent);
    border-radius: 50%;
    display: block;
    margin: 1rem auto;
    animation: rotation 1s linear infinite;
}
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#ideas-modal.flex { display: flex; }

/* Mobile Search Bar */
.mobile-search-bar {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.95), rgba(55, 0, 179, 0.95));
    backdrop-filter: blur(15px);
    padding: 1rem 1.5rem;
    z-index: 1500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-search-bar:not([hidden]) {
    display: block;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary);
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mobile-search-submit,
.mobile-search-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.mobile-search-submit:hover,
.mobile-search-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Search Predictions */
.mobile-search-wrapper {
    position: relative;
}

.mobile-search-predictions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    max-height: 380px;
    overflow-y: auto;
    z-index: 1501;
}

.mobile-search-predictions[hidden] {
    display: none;
}

.mobile-search-prediction-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0.8rem;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-search-prediction-item:last-child {
    border-bottom: none;
}

.mobile-search-prediction-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-search-prediction-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #1f1f1f;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.mobile-search-prediction-info h4 {
    margin: 0;
    color: white;
    font-size: 0.95rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-search-prediction-info p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mobile-search-prediction-no-results {
    padding: 1.5rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
}

.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.mobile-search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Desktop - Show all header actions */
@media (min-width: 769px) {
    .header-actions .language-dropdown,
    .header-actions .theme-toggle,
    .header-actions .profile-dropdown {
        display: inline-block !important;
    }
    .mobile-search-btn {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .search-bar { display: none; }
    .logo { flex-shrink: 0; }
    .header-actions {
        display: flex;
        gap: 0.5rem;
        margin-left: auto;
    }
    .header-actions > * {
        display: none !important;
    }
    .header-actions .mobile-search-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .bottom-nav { display: block; }
    .main-content { padding: 1rem; padding-bottom: 80px; }
    .featured-game { flex: 0 0 280px; height: 160px; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem; }
    .category-card { padding: 1rem; }
    .category-icon { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    .fab { bottom: 90px; }
}
@media (max-width: 480px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-game { flex: 0 0 240px; }
}

@media (max-width: 767px) {
    .play-mini-actions {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px;
        margin: 12px auto 0 !important;
        transform: none !important;
    }

    .play-mini-actions .action-icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
    }

    /* Ensure badges don't push layout when buttons are small */
    .play-mini-actions .action-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        font-size: 11px;
        min-width: 18px;
    }

    /* Allow video container to show actions below on small screens */
    .play-card__left {
        display: block;
    }

    .play-video {
        overflow: visible;
    }
}
