:root {
    --bg-dark: #0a0a0c;
    --text-main: #ffffff;
    --text-muted: #8e8e93;
    --accent-red: #E50914;
    --accent-blue: #007aff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.glow.red {
    top: -200px;
    right: -100px;
    background: var(--accent-red);
}

.glow.blue {
    bottom: -200px;
    left: -200px;
    background: var(--accent-blue);
}

.navbar {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo .cine {
    color: var(--text-main);
}

.logo .stream {
    color: var(--accent-red);
}

.socials {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.social-icon {
    color: var(--text-muted);
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
    display: flex;
}

.social-icon:hover {
    color: var(--text-main);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    min-height: calc(100vh - 100px);
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.title .highlight {
    background: linear-gradient(135deg, var(--accent-red), #ff4d4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon {
    width: 24px;
    height: 24px;
}

.primary-btn {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 8px 32px rgba(229, 9, 20, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(229, 9, 20, 0.5);
    background: #ff1a25;
}

.secondary-btn {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat span {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-posters-wrapper {
    flex: 1;
    position: relative;
    height: 500px;
    max-width: 550px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    overflow: visible;
}

.hero-poster {
    position: absolute;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    object-fit: cover;
}

.hero-poster-1 {
    width: 240px;
    height: 360px;
    z-index: 4;
    transform: rotate(-3deg);
}

.hero-poster-2 {
    width: 200px;
    height: 300px;
    right: 0;
    top: 40px;
    z-index: 3;
    transform: rotate(5deg);
}

.hero-poster-3 {
    width: 180px;
    height: 270px;
    left: 10px;
    bottom: 30px;
    z-index: 2;
    transform: rotate(-8deg);
}

.hero-poster-4 {
    width: 220px;
    height: 330px;
    right: 40px;
    bottom: 10px;
    z-index: 5;
    transform: rotate(2deg);
}

.hero-posters-wrapper:hover .hero-poster-1 { transform: scale(1.05) rotate(-3deg) translateY(-10px); z-index: 10; }
.hero-posters-wrapper:hover .hero-poster-2 { transform: scale(1.05) rotate(5deg) translateY(-10px); z-index: 10; }
.hero-posters-wrapper:hover .hero-poster-3 { transform: scale(1.05) rotate(-8deg) translateY(-10px); z-index: 10; }
.hero-posters-wrapper:hover .hero-poster-4 { transform: scale(1.05) rotate(2deg) translateY(-10px); z-index: 10; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

/* ===== TABLET (max 968px) ===== */
@media (max-width: 968px) {
    .navbar {
        padding: 1.5rem 5%;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 5% 4rem;
        min-height: auto;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .title {
        font-size: 3.2rem;
        letter-spacing: -1.5px;
    }

    .description {
        font-size: 1.1rem;
    }

    .actions {
        justify-content: center;
    }

    .stats {
        justify-content: center;
    }

    .hero-posters-wrapper {
        width: 100%;
        max-width: 420px;
        height: 380px;
        margin: 0 auto;
    }

    .hero-poster-1 { width: 180px; height: 270px; }
    .hero-poster-2 { width: 150px; height: 225px; }
    .hero-poster-3 { width: 140px; height: 210px; }
    .hero-poster-4 { width: 165px; height: 248px; }

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

    .poster-img {
        height: 240px;
        width: 160px;
    }
}

/* ===== MOBILE (max 600px) ===== */
@media (max-width: 600px) {
    .navbar {
        padding: 1.2rem 4%;
    }

    .logo {
        font-size: 1.4rem;
    }

    .socials {
        gap: 0.8rem;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }

    .hero {
        padding: 1.5rem 4% 3rem;
        gap: 1.5rem;
        overflow: hidden;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .title {
        font-size: 2.4rem;
        letter-spacing: -1px;
        margin-bottom: 1rem;
    }

    .description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        margin-bottom: 2rem;
        width: 100%;
        position: relative;
        z-index: 10;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat strong {
        font-size: 1.6rem;
    }

    .stat span {
        font-size: 0.8rem;
    }

    /* On mobile, show only 2 posters side by side, no absolute overlap */
    .hero-posters-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-end;
        gap: 1rem;
        height: auto;
        max-width: 100%;
        overflow: hidden;
        animation: none;
        padding: 0 1rem;
    }

    .hero-poster {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        border-radius: 12px;
        flex-shrink: 0;
    }

    /* Show only poster 1 and poster 4, hide 2 and 3 */
    .hero-poster-1 {
        width: 48%;
        height: 220px;
        transform: rotate(-3deg);
        z-index: 2;
    }
    .hero-poster-2 { display: none; }
    .hero-poster-3 { display: none; }
    .hero-poster-4 {
        width: 48%;
        height: 220px;
        transform: rotate(3deg);
        z-index: 1;
    }

    .hero-posters-wrapper:hover .hero-poster-1 { transform: rotate(-3deg) translateY(-8px); }
    .hero-posters-wrapper:hover .hero-poster-4 { transform: rotate(3deg) translateY(-8px); }

    .trending-section {
        padding: 2rem 0 3rem 0;
    }

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

    .marquee::before,
    .marquee::after {
        width: 60px;
    }

    .poster-img {
        height: 200px;
        width: 133px;
    }
}

/* ===== SMALL PHONES (max 380px) ===== */
@media (max-width: 380px) {
    .title {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .social-icon {
        width: 16px;
        height: 16px;
    }

    .socials {
        gap: 0.6rem;
    }

    .hero-posters-wrapper {
        height: 260px;
        max-width: 290px;
    }

    .hero-poster-1 { width: 120px; height: 180px; }
    .hero-poster-2 { width: 100px; height: 150px; }
    .hero-poster-3 { width: 95px; height: 142px; }
    .hero-poster-4 { width: 112px; height: 168px; right: 10px; }

    .poster-img {
        height: 170px;
        width: 113px;
    }
}


/* Trending Posters Marquee Section */
.trending-section {
    padding: 3rem 0 5rem 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 12, 0.95));
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
}

.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-content {
    display: inline-flex;
    gap: 2rem;
    animation: scroll 35s linear infinite;
    padding-left: 2rem;
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

.poster-img {
    height: 320px;
    width: 213px; /* Standard poster ratio 2:3 */
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    object-fit: cover;
}

.poster-img:hover {
    transform: scale(1.08) translateY(-15px);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.4);
    border-color: var(--accent-red);
    z-index: 10;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

/* Features Section */
.features-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
    border-color: var(--accent-red);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}
