:root {
    --bg: #090a0f;
    --surface: #12141c;
    --surface2: #191c27;
    --text: #f4f5f7;
    --muted: #9da2b2;
    --accent: #8b7cff;
    --accent2: #bd6cff;
    --border: rgba(255,255,255,.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;

    background: rgba(9,10,15,.82);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

.nav {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.7px;
}

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

nav {
    display: flex;
    gap: 30px;

    color: var(--muted);
    font-size: 14px;
}

nav a:hover {
    color: white;
}

.hero {
    min-height: 590px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(139,124,255,.27),
            transparent 30%
        ),
        radial-gradient(
            circle at 25% 70%,
            rgba(189,108,255,.14),
            transparent 30%
        );
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

h1 {
    margin: 18px 0;

    font-size: clamp(48px, 7vw, 82px);
    line-height: .98;
    letter-spacing: -4px;
}

h2 {
    margin: 5px 0 0;

    font-size: 34px;
    letter-spacing: -1.5px;
}

h3 {
    margin: 6px 0;

    font-size: 21px;
}

.hero p {
    max-width: 620px;

    color: var(--muted);
    font-size: 18px;
}

.buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 21px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;
}

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

.primary:hover {
    opacity: .9;
}

.secondary {
    border: 1px solid var(--border);
    background: var(--surface);
}

.section {
    padding: 85px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 30px;
}

.section-heading > a {
    color: var(--muted);
    font-size: 14px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 18px;

    transition:
        transform .2s,
        border-color .2s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(139,124,255,.4);
}

.poster {
    height: 300px;

    display: flex;
    align-items: flex-end;

    padding: 20px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.poster-one {
    background:
        radial-gradient(circle at 70% 25%, #6f65e8, transparent 20%),
        linear-gradient(145deg, #10142b, #30316d);
}

.poster-two {
    background:
        radial-gradient(circle at 30% 30%, #ffad65, transparent 20%),
        linear-gradient(145deg, #512e2e, #d06c4c);
}

.poster-three {
    background:
        radial-gradient(circle at 70% 20%, #66a9ff, transparent 20%),
        linear-gradient(145deg, #071421, #16456c);
}

.card-body {
    padding: 22px;
}

.card-body p {
    margin-bottom: 0;

    color: var(--muted);
    font-size: 14px;
}

.meta {
    color: var(--muted);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.newsletter {
    margin-bottom: 90px;
    padding: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        linear-gradient(
            135deg,
            rgba(139,124,255,.17),
            rgba(189,108,255,.05)
        );

    border: 1px solid var(--border);
    border-radius: 22px;
}

.newsletter p {
    color: var(--muted);
}

.footer {
    border-top: 1px solid var(--border);
    padding: 50px 0 25px;

    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.copyright {
    margin-top: 50px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    font-size: 12px;
}

@media (max-width: 750px) {

    nav {
        display: none;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 500px;
    }

    h1 {
        letter-spacing: -2px;
    }

    .newsletter {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }
}
/* ================================
   MOVIES
================================ */

.page-hero {
    padding: 120px 0 90px;

    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(139,124,255,.18),
            transparent 30%
        );
}

.page-hero h1 {
    max-width: 800px;
}

.page-hero p {
    max-width: 620px;

    color: var(--muted);
    font-size: 18px;
}

.genre-section {
    padding-bottom: 100px;
}

.genre-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.genre-card {
    position: relative;

    min-height: 440px;

    overflow: hidden;

    display: flex;
    align-items: flex-end;

    border-radius: 22px;

    border: 1px solid
        rgba(255,255,255,.09);

    background: #151722;

    transition:
        transform .25s ease,
        border-color .25s ease;
}

.genre-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(139,124,255,.55);
}

.genre-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(5,6,10,.98) 5%,
            rgba(5,6,10,.55) 55%,
            rgba(5,6,10,.05)
        );
}

.genre-sci-fi {
    background:
        radial-gradient(
            circle at 70% 25%,
            #766cff,
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #0d132c,
            #31356e
        );
}

.genre-drama {
    background:
        radial-gradient(
            circle at 30% 25%,
            #ffad70,
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #472525,
            #9e513f
        );
}

.genre-thriller {
    background:
        radial-gradient(
            circle at 70% 25%,
            #63b5ff,
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #07131e,
            #145074
        );
}

.genre-content {
    position: relative;

    z-index: 1;

    padding: 30px;
}

.genre-number {
    margin-bottom: 80px;

    color: rgba(255,255,255,.5);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.genre-content h2 {
    margin-bottom: 8px;

    font-size: 36px;
}

.genre-content p {
    margin: 0 0 22px;

    color: rgba(255,255,255,.7);

    font-size: 14px;
}

.genre-link {
    color: white;

    font-size: 13px;
    font-weight: 700;
}

.movie-note {
    margin-bottom: 100px;

    padding: 55px;

    border-radius: 22px;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            rgba(139,124,255,.12),
            rgba(189,108,255,.04)
        );
}

.movie-note p {
    color: var(--muted);
}


/* ================================
   AUTHORIZATION
================================ */

.auth-page {
    position: relative;

    min-height: calc(100vh - 72px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 20px;

    overflow: hidden;
}

.auth-background {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(139,124,255,.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 70%,
            rgba(189,108,255,.08),
            transparent 25%
        );
}

.auth-card {
    position: relative;

    z-index: 1;

    width: min(440px, 100%);

    padding: 42px;

    background:
        rgba(18,20,28,.94);

    border: 1px solid
        rgba(255,255,255,.1);

    border-radius: 22px;

    box-shadow:
        0 30px 100px
        rgba(0,0,0,.5);
}

.auth-logo {
    margin-bottom: 38px;

    font-size: 20px;
    font-weight: 800;
}

.auth-logo span {
    color: var(--accent);
}

.auth-card h1 {
    margin: 7px 0 10px;

    font-size: 38px;

    letter-spacing: -1.5px;
}

.auth-description {
    margin-bottom: 30px;

    color: var(--muted);

    font-size: 14px;
}

.auth-card form {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.auth-card label {
    margin-top: 8px;

    color: #d9dbe2;

    font-size: 12px;
    font-weight: 600;
}

.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;

    padding: 14px 15px;

    background: #090a0f;

    border: 1px solid
        rgba(255,255,255,.1);

    border-radius: 10px;

    outline: none;

    color: white;

    font-size: 14px;
}

.auth-card input:focus {
    border-color: var(--accent);
}

.auth-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin: 8px 0 12px;

    font-size: 12px;
}

.auth-row a {
    color: var(--accent);
}

.remember {
    display: flex !important;

    align-items: center;

    gap: 7px;

    margin: 0 !important;

    color: var(--muted) !important;
}

.remember input {
    width: 14px;
    height: 14px;
}

.auth-button {
    width: 100%;

    padding: 14px;

    border: 0;

    border-radius: 10px;

    background: var(--accent);

    color: white;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.auth-button:hover {
    opacity: .9;
}

.auth-divider {
    display: flex;

    align-items: center;

    gap: 15px;

    margin: 26px 0;

    color: #686d7c;

    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background:
        rgba(255,255,255,.08);
}

.social-button {
    width: 100%;

    padding: 13px;

    border-radius: 10px;

    border: 1px solid
        rgba(255,255,255,.1);

    background: #191c27;

    color: white;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;
}

.social-button:hover {
    background: #20232f;
}

.auth-register {
    margin: 25px 0 0;

    color: #777c8b;

    text-align: center;

    font-size: 12px;
}

.auth-register a {
    color: var(--accent);
    font-weight: 600;
}


/* ================================
   NAV
================================ */

nav a.active {
    color: white;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 800px) {

    .genre-grid {
        grid-template-columns: 1fr;
    }

    .genre-card {
        min-height: 360px;
    }

    .genre-number {
        margin-bottom: 45px;
    }

    .page-hero {
        padding-top: 80px;
    }
}

@media (max-width: 500px) {

    .auth-card {
        padding: 30px 24px;
    }

    .auth-card h1 {
        font-size: 32px;
    }

    .movie-note {
        padding: 35px 25px;
    }
}
