@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-dark-900: #050508;
    --bg-dark-800: #0a0a0f;
    --bg-dark-700: #101017;
    --bg-dark-600: #181824;
    
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.4);
    --accent-pink: #d946ef;
    --accent-cyan: #06b6d4;
    --accent-gold: #f59e0b;
    --accent-gold-glow: rgba(245, 158, 11, 0.3);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    /* Layout & Utilities */
    --header-height: 80px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-bg: rgba(10, 10, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-dark-900);
    color: var(--text-main);
    font-family: 'Outfit', 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-900);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-dark-600);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple);
}

/* Typography Helpers */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(5, 5, 8, 0.9) 0%, rgba(5, 5, 8, 0) 100%);
    backdrop-filter: blur(0px);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    height: 40px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-area span {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

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

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 16px 8px 36px;
    border-radius: 20px;
    color: var(--text-main);
    font-size: 0.85rem;
    width: 180px;
    outline: none;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    width: 260px;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.search-box svg {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
    transition: var(--transition-smooth);
}

.search-box input:focus + svg {
    fill: var(--accent-purple);
}

.lang-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.lang-select option {
    background-color: var(--bg-dark-800);
    color: var(--text-main);
}

.btn-contact {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* Hero Section (Netflix Billboard style) */
.hero-billboard {
    position: relative;
    height: 85vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-dark-900);
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-media-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5, 5, 8, 0.95) 0%, rgba(5, 5, 8, 0.6) 40%, rgba(5, 5, 8, 0) 100%),
                linear-gradient(to top, rgba(5, 5, 8, 1) 0%, rgba(5, 5, 8, 0.2) 50%, rgba(5, 5, 8, 0) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 700px;
    margin-left: 80px;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-tag {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--accent-purple);
    color: #a78bfa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.hero-rtp {
    color: var(--accent-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-play {
    background: #fff;
    color: #000;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-play:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.05);
}

.btn-info {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Hero Carousel Arrow Controls */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(5, 5, 8, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.hero-arrow svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.hero-left-arrow {
    left: 20px;
}

.hero-right-arrow {
    right: 20px;
}

.hero-billboard:hover .hero-arrow {
    opacity: 1;
}

.hero-arrow:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple);
}

/* Hero Carousel Dots */
.hero-dots {
    position: absolute;
    bottom: 120px;
    left: 80px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hero-dot.active {
    background: #fff;
    width: 60px;
    box-shadow: 0 0 8px #fff;
}

/* Sound Indicator button like Netflix */
.hero-sound-toggle {
    position: absolute;
    bottom: 120px;
    right: 80px;
    width: 44px;
    height: 44px;
    background: rgba(5, 5, 8, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.hero-sound-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

/* Category Sections / Carousels */
.main-content {
    position: relative;
    z-index: 5;
    margin-top: -100px;
    padding-bottom: 80px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark-900) 100px);
}

.carousel-section {
    padding: 30px 0 30px 60px;
    position: relative;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f3f4f6;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-pink));
    border-radius: 2px;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 60px 20px 0;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Game Card */
.game-card {
    flex: 0 0 240px;
    height: 330px;
    background-color: var(--bg-dark-800);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.game-card img, .game-card svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 5, 8, 0.95) 0%, rgba(5, 5, 8, 0.5) 50%, rgba(5, 5, 8, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

/* Hover Zoom effects */
.game-card:hover {
    transform: scale(1.08) translateY(-5px);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.game-card:hover img, .game-card:hover svg {
    transform: scale(1.05);
}

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

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.card-rtp {
    color: var(--accent-gold);
    font-weight: 700;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

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

.card-btn-play {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.card-btn-play:hover {
    filter: brightness(1.1);
}

.card-btn-info {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.card-btn-info:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Slider Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.carousel-btn.left-btn {
    left: 10px;
}

.carousel-btn.right-btn {
    right: 40px;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple);
}

/* Search Grid Overlay */
.search-grid-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-dark-900);
    z-index: 90;
    display: none;
    overflow-y: auto;
    padding: 40px 60px;
}

.search-grid-overlay.active {
    display: block;
    animation: fadeIn 0.4s var(--transition-smooth);
}

.search-results-info {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.search-results-info span {
    color: var(--accent-purple);
    font-weight: 700;
}

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

/* Details Modal (Netflix styled popup) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    width: 100%;
    max-width: 850px;
    height: 90vh;
    background-color: var(--bg-dark-800);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background: #ff4757;
    border-color: #ff4757;
    transform: rotate(90deg);
}

.modal-banner {
    position: relative;
    height: 45%;
    width: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.modal-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-dark-800) 0%, rgba(10, 10, 15, 0.4) 60%, rgba(10, 10, 15, 0) 100%);
}

.modal-banner-content {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 40px;
}

.modal-game-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.modal-banner-actions {
    display: flex;
    gap: 15px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
    display: flex;
    gap: 40px;
}

.modal-left {
    flex: 2;
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid var(--glass-border);
    padding-left: 30px;
}

.modal-game-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.modal-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-feature-item {
    background-color: var(--bg-dark-700);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.modal-feature-name {
    font-size: 0.8rem;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.modal-feature-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.meta-group {
    font-size: 0.9rem;
}

.meta-group {
    margin-bottom: 10px;
}

.meta-label {
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

.meta-val {
    font-weight: 600;
}

.meta-val.rtp {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* Immersive Theater Mode (Fullscreen play wrapper) */
.theater-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #030305;
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: var(--transition-smooth);
}

.theater-mode-overlay.active {
    display: flex;
    opacity: 1;
}

.theater-sidebar {
    width: 320px;
    background-color: var(--bg-dark-800);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.theater-sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theater-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 800;
}

.theater-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theater-close:hover {
    background: #ff4757;
    border-color: #ff4757;
}

.theater-info-panel {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.theater-game-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theater-game-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.theater-control-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.theater-btn {
    background-color: var(--bg-dark-700);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.theater-btn:hover {
    background-color: var(--bg-dark-600);
    border-color: var(--accent-purple);
    color: #fff;
}

.theater-btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.theater-btn-primary:hover {
    filter: brightness(1.1);
}

.theater-other-games-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.theater-small-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theater-small-card {
    display: flex;
    gap: 12px;
    background-color: var(--bg-dark-700);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.theater-small-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background-color: var(--bg-dark-600);
}

.theater-small-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.theater-small-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theater-small-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.theater-small-card-rtp {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.theater-viewport-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.theater-toolbar {
    height: 60px;
    background-color: var(--bg-dark-800);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.theater-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.theater-pulse {
    width: 8px;
    height: 8px;
    background-color: #2ed573;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ed573;
    animation: pulse 1.5s infinite;
}

.theater-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theater-action-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theater-action-icon:hover {
    color: #fff;
    transform: scale(1.1);
}

.theater-viewport {
    flex: 1;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.theater-viewport iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer style */
footer {
    border-top: 1px solid var(--glass-border);
    background-color: var(--bg-dark-800);
    padding: 60px 40px 30px 40px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-purple);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: var(--accent-purple);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--text-dark);
    font-size: 0.85rem;
}

.footer-badges {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-badges span {
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* Mobile Responsive */
@media(max-width: 1024px) {
    .hero-content {
        margin-left: 40px;
    }
    .carousel-section {
        padding-left: 40px;
    }
    .modal-body {
        flex-direction: column;
        gap: 30px;
    }
    .modal-right {
        border-left: none;
        border-top: 1px solid var(--glass-border);
        padding-left: 0;
        padding-top: 20px;
    }
}

@media(max-width: 768px) {
    header {
        height: 60px;
    }
    .header-container {
        padding: 0 20px;
    }
    .nav-links, .btn-contact {
        display: none; /* In production a mobile menu would be here */
    }
    .hero-content {
        margin-left: 20px;
        padding-right: 20px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .carousel-section {
        padding-left: 20px;
    }
    .carousel-btn {
        display: none; /* Swipe on mobile */
    }
    .theater-mode-overlay {
        flex-direction: column-reverse;
    }
    .theater-sidebar {
        width: 100%;
        height: 35%;
    }
    .theater-viewport-wrapper {
        height: 65%;
    }
}

/* ----------------------------------------------------
   Top 10 Ranked Section & Big Outlined Rank Numbers
---------------------------------------------------- */
.top10-item {
    display: flex;
    align-items: flex-end;
    position: relative;
    margin-right: 15px;
    flex-shrink: 0;
}

.top10-number {
    font-size: 8rem;
    font-weight: 900;
    line-height: 0.85;
    color: #050508;
    -webkit-text-stroke: 3px rgba(255, 255, 255, 0.4);
    text-stroke: 3px rgba(255, 255, 255, 0.4);
    font-family: 'Outfit', sans-serif;
    margin-right: -25px;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.top10-item:nth-child(1) .top10-number,
.top10-item:nth-child(2) .top10-number,
.top10-item:nth-child(3) .top10-number {
    -webkit-text-stroke: 3px var(--accent-gold);
    color: rgba(255, 215, 0, 0.05);
}

.top10-card {
    position: relative;
    z-index: 2;
}

/* Red Tag Badge on Netflix Mobile Cards */
.card-badge-red {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e50914;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 5;
    text-transform: uppercase;
}

/* ----------------------------------------------------
   Mobile Category Pills Bar & Bottom Nav Base
---------------------------------------------------- */
.mobile-category-pills {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

/* ----------------------------------------------------
   Netflix Mobile Portrait App View (max-width: 768px)
---------------------------------------------------- */
@media (max-width: 768px) {
    /* Mobile Header Layout Adjustments */
    .header-container {
        padding: 0 12px !important;
        gap: 8px !important;
        justify-content: space-between;
    }

    .logo img {
        height: 26px !important;
    }

    .header-actions {
        gap: 8px !important;
        flex-shrink: 1;
        min-width: 0;
    }

    .search-box input {
        width: 110px !important;
        padding: 6px 8px 6px 28px !important;
        font-size: 0.75rem !important;
    }

    .search-box input:focus {
        width: 135px !important;
    }

    .lang-select {
        padding: 5px 6px !important;
        font-size: 0.75rem !important;
        max-width: 85px !important;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    /* Mobile Category Pills */
    .mobile-category-pills {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 15px;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(10px);
        position: sticky;
        top: 60px;
        z-index: 90;
        scrollbar-width: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .mobile-category-pills::-webkit-scrollbar {
        display: none;
    }

    .pill-btn {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--glass-border);
        color: var(--text-muted);
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
    }

    .pill-btn.active {
        background: #fff;
        color: #000;
        font-weight: 700;
        border-color: #fff;
    }

    /* Floating Card Hero Billboard (Netflix Mobile Screenshot 1 Style) */
    .hero-billboard {
        height: 62vh;
        margin: 15px;
        width: calc(100% - 30px);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .hero-content {
        margin-left: 0;
        padding: 20px;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }

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

    .hero-desc {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 15px;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .btn-play, .btn-info {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
    }

    .hero-sound-toggle {
        right: 15px;
        bottom: 15px;
        width: 36px;
        height: 36px;
    }

    .hero-arrow {
        display: none !important;
    }

    .main-content {
        margin-top: 0;
        padding-bottom: 90px;
    }

    .carousel-section {
        padding: 20px 0 20px 15px;
    }

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

    .game-card {
        width: 135px;
        height: 185px;
    }

    .top10-number {
        font-size: 5.5rem;
        margin-right: -18px;
    }

    /* Fixed Mobile Bottom Nav Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 600;
    }

    .mobile-nav-item.active, .mobile-nav-item:hover {
        color: var(--accent-pink);
    }

    footer {
        padding-bottom: 90px !important;
    }
}
