/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #090909;
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg: #090909;
    --bg-soft: #101010;
    --bg-card: #151515;
    --border: rgba(255, 255, 255, 0.09);
    --text: #ffffff;
    --muted: #999999;
    --accent: #e5b567;
    --accent-light: #f2ce8c;
    --container: 1200px;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(1200px, calc(100% - 40px));
    margin: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: absolute;
    z-index: 20;
    width: 100%;
    top: 0;
    left: 0;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85),
        transparent
    );
}

.header-inner {
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    position: relative;

    color: #aaa;
    font-size: 14px;
    font-weight: 600;

    transition: 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
}

.main-nav a.active::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -9px;

    width: 100%;
    height: 2px;

    background: var(--accent);
}

.header-button {
    padding: 11px 20px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s;
}

.header-button:hover {
    background: #fff;
    color: #000;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 720px;

    position: relative;

    display: flex;
    align-items: center;

    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.75) 35%,
            rgba(0, 0, 0, 0.2) 75%,
            rgba(0, 0, 0, 0.65) 100%
        ),
        url("/rexus88-nonton.png");

    background-size: cover;
    background-position: center;
}

.hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            #090909 0%,
            transparent 25%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-top: 70px;

    max-width: 650px;
}

.hero-label,
.section-label {
    display: inline-block;

    color: var(--accent);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero h1 {
    margin-top: 16px;

    font-family: "Playfair Display", serif;

    font-size: clamp(55px, 7vw, 90px);
    line-height: 0.98;

    font-weight: 700;
}

.hero h1 span {
    color: var(--accent);
}

.hero-description {
    max-width: 560px;

    margin-top: 25px;

    color: #c3c3c3;

    font-size: 15px;
    line-height: 1.8;
}

.movie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 25px;

    color: #c6c6c6;

    font-size: 13px;
}

.dot {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #777;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: 18px;

    font-size: 14px;
}

.hero-rating .star {
    color: var(--accent);
    font-size: 18px;
}

.hero-rating strong {
    font-size: 17px;
}

.hero-rating span:last-child {
    color: #777;
}

.hero-actions {
    display: flex;
    gap: 12px;

    margin-top: 30px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 22px;

    border-radius: 3px;

    font-size: 13px;
    font-weight: 700;

    transition: 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: #090909;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
}


/* =========================================================
   MOVIE SECTION
========================================================= */

.movies-section {
    padding: 80px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 30px;
}

.section-heading h2 {
    margin-top: 7px;

    font-family: "Playfair Display", serif;

    font-size: 34px;
}

.view-all {
    color: #999;

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s;
}

.view-all:hover {
    color: var(--accent);
}


/* =========================================================
   MOVIE GRID
========================================================= */

.movie-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;
}

.movie-card {
    min-width: 0;
}

.poster {
    position: relative;

    aspect-ratio: 2 / 3;

    overflow: hidden;

    background: var(--bg-card);
}

.poster img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

.movie-card:hover .poster img {
    transform: scale(1.06);
    filter: brightness(0.7);
}

.movie-rating {
    position: absolute;

    top: 12px;
    left: 12px;

    padding: 5px 8px;

    border-radius: 3px;

    background: rgba(0, 0, 0, 0.8);

    color: var(--accent);

    font-size: 11px;
    font-weight: 700;
}

.movie-quality {
    position: absolute;

    top: 12px;
    right: 12px;

    padding: 5px 8px;

    border-radius: 3px;

    background: var(--accent);

    color: #000;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;
}

.poster-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.35);

    opacity: 0;

    transition: 0.3s;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
}

.play-button {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--accent);

    color: #000;

    font-size: 17px;

    padding-left: 3px;

    transition: 0.3s;
}

.play-button:hover {
    transform: scale(1.1);
}

.movie-info {
    padding-top: 14px;
}

.movie-info h3 {
    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-info p {
    margin-top: 4px;

    color: #777;

    font-size: 12px;
}


/* =========================================================
   GENRE
========================================================= */

.genre-section {
    padding: 80px 0;

    background: #0d0d0d;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.genre-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 12px;
}

.genre-card {
    min-height: 150px;

    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            #191919,
            #101010
        );

    transition: 0.3s;
}

.genre-card:hover {
    border-color: rgba(229, 181, 103, 0.5);

    transform: translateY(-5px);
}

.genre-card span {
    margin-bottom: auto;

    font-size: 25px;
}

.genre-card strong {
    font-size: 14px;
}

.genre-card small {
    margin-top: 3px;

    color: #666;

    font-size: 11px;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 80px 0;
}

.cta-box {
    min-height: 230px;

    padding: 45px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    background:
        linear-gradient(
            110deg,
            #191612,
            #101010
        );

    border: 1px solid rgba(229, 181, 103, 0.18);
}

.cta-box h2 {
    margin-top: 8px;

    font-family: "Playfair Display", serif;

    font-size: 35px;
}

.cta-box p {
    max-width: 500px;

    margin-top: 8px;

    color: #888;

    font-size: 14px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 55px 0 25px;

    background: #060606;

    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;

    gap: 50px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo img {
    width: 140px;
}

.footer-brand p {
    margin-top: 18px;

    color: #666;

    font-size: 12px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    align-items: center;

    gap: 25px;
}

.footer-links a {
    color: #777;

    font-size: 12px;

    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    margin-top: 45px;
    padding-top: 20px;

    border-top: 1px solid var(--border);

    color: #555;

    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .movie-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .genre-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .hero {
        min-height: 680px;
    }

    .cta-box {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1200px);
    }

    .site-header {
        position: absolute;
    }

    .header-inner {
        min-height: 75px;
    }

    .logo img {
        width: 125px;
    }

    .header-button {
        padding: 9px 13px;

        font-size: 11px;
    }

    .hero {
        min-height: 650px;

        background-position:
            62% center;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-description {
        font-size: 13px;
    }

    .movie-meta {
        gap: 8px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1;
        padding: 0 12px;
    }

    .movies-section,
    .genre-section,
    .cta-section {
        padding: 55px 0;
    }

    .section-heading {
        align-items: flex-end;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .view-all {
        font-size: 11px;
    }

    .movie-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 15px;
    }

    .movie-info h3 {
        font-size: 13px;
    }

    .genre-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .genre-card {
        min-height: 125px;

        padding: 17px;
    }

    .cta-box {
        padding: 30px 24px;
    }

    .cta-box h2 {
        font-size: 28px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}


@media (max-width: 380px) {

    .header-button {
        display: none;
    }

    .hero h1 {
        font-size: 45px;
    }

    .movie-grid {
        gap: 10px;
    }

    .genre-grid {
        gap: 8px;
    }

}
