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

:root {
    --primary-color: #E50914;
    --secondary-color: #221f1f;
    --text-color: #ffffff;
    --hover-color: #b20710;
    --border-color: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #141414;
    color: var(--text-color);
    overflow-x: hidden;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 15px 50px;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar:hover {
    background-color: rgba(0, 0, 0, 0.95);
}

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

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
    margin-left: 50px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 4px;
    width: 150px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    width: 200px;
}

.profile-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* ==================== HERO SECTION ==================== */
.hero {
    margin-top: 60px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 100px;
    left: 50px;
    z-index: 2;
    max-width: 500px;
    animation: slideInUp 0.8s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid var(--text-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
    padding: 40px 50px;
    position: relative;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== CAROUSEL ==================== */
.carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-wrapper {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.carousel-item {
    flex: 0 0 calc(25% - 11px);
    min-width: 200px;
}

.carousel-btn {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
}

/* ==================== CONTENT CARDS ==================== */
.content-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.card-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
}

.card-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.card-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== GRID LAYOUT ==================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.grid-item {
    position: relative;
    cursor: pointer;
}

.grid-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    position: relative;
    transition: all 0.3s ease;
}

.grid-card:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.4);
}

.grid-card .card-image {
    width: 100%;
    height: 70%;
    background-size: cover;
    background-position: center;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.grid-card:hover .card-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background-color: var(--hover-color);
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.5);
}

.card-rating {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

.grid-card .card-info {
    height: 30%;
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 40px 50px 20px;
    margin-top: 60px;
}

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

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
}

.footer-section p,
.footer-section ul li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .carousel-item {
        flex: 0 0 calc(33.333% - 10px);
    }

    .hero-content {
        max-width: 400px;
        left: 30px;
    }

    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-menu {
        flex-basis: 100%;
        margin-left: 0;
        gap: 15px;
        font-size: 12px;
    }

    .nav-right {
        flex-basis: 100%;
    }

    .search-input {
        width: 100px;
    }

    .search-input:focus {
        width: 150px;
    }

    .hero {
        height: 400px;
        margin-top: 100px;
    }

    .hero-content {
        max-width: 300px;
        left: 20px;
        bottom: 50px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .content-section {
        padding: 30px 20px;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .carousel-item {
        flex: 0 0 calc(50% - 7.5px);
    }

    .grid-card {
        height: 250px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 10px;
        display: none;
    }

    .nav-logo {
        font-size: 18px;
    }

    .hero {
        height: 300px;
        margin-top: 80px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-description {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .hero-buttons {
        gap: 8px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .section-title {
        font-size: 20px;
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-card {
        height: 200px;
    }

    .carousel-item {
        flex: 0 0 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .carousel-btn {
        padding: 10px;
        font-size: 18px;
    }
}