:root {
    --bg-main: #141414;
    --bg-card: #2f2f2f;
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    --primary: #E50914;
    /* Netflix Red-ish, but can be ARSS Blue too. Let's stick to ARSS Blue for brand */
    --arss-blue: #2C4A6E;
    --arss-orange: #E8712C;
    --gradient-hero: linear-gradient(to top, #141414 10%, transparent 90%);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: #141414;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--arss-orange);
}

.logo img {
    height: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li.active a {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    /* Slightly square like Netflix */
    border-color: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    padding-left: 10px;
    width: 0;
    transition: width 0.4s ease;
    opacity: 0;
}

.search-box:hover input,
.search-box input:focus {
    width: 200px;
    opacity: 1;
}

.user-profile .avatar {
    width: 32px;
    height: 32px;
    background-color: var(--arss-orange);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    width: 100%;
    margin-bottom: -100px;
    /* Overlap with content */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.hero-vignette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, var(--bg-main), transparent);
}

.hero-content {
    position: absolute;
    top: 40%;
    left: 4%;
    width: 40%;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title .highlight {
    color: var(--arss-orange);
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #fff;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: #fff;
    color: #000;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.btn-secondary {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-secondary:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

/* Sliders / Categories */
.categories-container {
    padding-bottom: 50px;
    position: relative;
    z-index: 20;
    margin-top: -50px;
}

.category {
    padding: 20px 0;
    overflow: hidden;
    /* Hide scrollbar */
}

.category-title {
    padding-left: 4%;
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #e5e5e5;
    font-weight: 600;
}

.category-title:hover {
    color: #fff;
    cursor: pointer;
}

.slider-wrapper {
    position: relative;
    padding: 0 4%;
}

.slider {
    display: flex;
    overflow-x: visible;
    gap: 10px;
    padding: 20px 0;
    /* Space for hover scaling */
    scroll-behavior: smooth;
    transition: transform 0.5s ease;
}

/* Hide scrollbar for slider but allow scroll */
.slider::-webkit-scrollbar {
    display: none;
}

.handle {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4%;
    z-index: 20;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-handle {
    left: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.right-handle {
    right: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.slider-wrapper:hover .handle {
    opacity: 1;
}

.handle:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Game Card */
.card {
    flex: 0 0 auto;
    width: 200px;
    /* Base width */
    height: 112px;
    /* 16:9 Aspect Ratio approx card */
    position: relative;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.5, 0, 0.1, 1);
    cursor: pointer;
    background: #222;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover Effect - The Netflix Pop */
.card:hover {
    transform: scale(1.5);
    z-index: 50;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

.card:hover .card-info {
    opacity: 1;
}

.card:first-child:hover {
    transform: scale(1.5) translateX(25%);
}

.card:last-child:hover {
    transform: scale(1.5) translateX(-25%);
}

.card-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-meta {
    font-size: 0.6rem;
    color: #46d369;
    /* Netflix Match Green */
    font-weight: 700;
    display: flex;
    gap: 10px;
    align-items: center;
}

.card-rating {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0 4px;
    color: #fff;
    font-weight: 400;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #181818;
    width: 850px;
    max-width: 90%;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #181818;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-hero {
    height: 480px;
    background: url('../../arss_studio/assets/games/2048-banner.jpg') no-repeat center top/cover;
    position: relative;
}

.modal-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, #181818, transparent);
}

.modal-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 60%;
    z-index: 2;
}

.modal-title {
    font-size: 3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.modal-desc {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.modal-meta {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 1.1rem;
}

.match-score {
    color: #46d369;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-desc {
        font-size: 0.9rem;
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    /* Simplified mobile nav */
    .card {
        width: 140px;
        height: 80px;
    }

    .modal-hero {
        height: 350px;
    }

    .modal-title {
        font-size: 2rem;
    }
}