:root {
    --black: #050505;
    --dark: #0c0c0c;
    --card: #141414;
    --red: #e50914;
    --red-dark: #b20710;
    --white: #ffffff;
    --gray: #a5a5a5;
    --muted: #707070;
    --border: rgba(255,255,255,.09);
    --container: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(100% - 40px, var(--container));
    margin: auto;
}


/* ================= HEADER ================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background: rgba(5,5,5,.88);
    backdrop-filter: blur(16px);

    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 21px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo b {
    color: var(--red);
    font-size: 13px;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: #999;
    font-size: 13px;
    font-weight: 600;
    transition: .3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
}

.header-button {
    background: var(--red);
    padding: 10px 18px;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 800;

    transition: .3s;
}

.header-button:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}


/* ================= HERO ================= */

.hero {
    position: relative;
    min-height: 730px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.96),
            rgba(0,0,0,.72) 45%,
            rgba(0,0,0,.25)
        );
}

.hero::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 180px;

    background: linear-gradient(
        transparent,
        var(--black)
    );
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 70px;
}

.hero-content {
    width: min(680px, 100%);
}

.eyebrow,
.section-label {
    color: var(--red);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 2px;
}

.eyebrow {
    margin-bottom: 17px;
}

.hero h1 {
    font-size: clamp(43px, 6vw, 76px);
    line-height: 1.02;

    letter-spacing: -3px;

    margin-bottom: 25px;
}

.hero h1 span {
    display: block;
    color: var(--red);
}

.hero-content > p {
    max-width: 590px;

    color: #c2c2c2;

    font-size: 15px;
    line-height: 1.8;

    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 42px;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 22px;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 800;

    transition: .3s;
}

.btn-primary {
    background: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.07);
}

.btn-outline:hover {
    background: rgba(255,255,255,.13);
}

.hero-stats {
    display: flex;
    gap: 38px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 22px;
}

.hero-stats small {
    color: var(--muted);
    font-size: 11px;
}


/* ================= SECTION ================= */

.section {
    padding: 100px 0;
}

.dark-section {
    background: var(--dark);
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 32px;
}

.section-header h2,
.center-header h2 {
    margin-top: 7px;

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;

    letter-spacing: -1.5px;
}

.section-header h2 span,
.center-header h2 span,
.about-content h2 span {
    color: var(--red);
}

.view-all {
    color: #999;

    font-size: 12px;
    font-weight: 700;

    transition: .3s;
}

.view-all:hover {
    color: var(--red);
}


/* ================= MOVIES ================= */

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.movie-card {
    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 13px;

    transition: .3s;
}

.movie-card:hover {
    transform: translateY(-6px);

    border-color: rgba(229,9,20,.45);
}

.poster {
    position: relative;

    aspect-ratio: 2 / 3;

    overflow: hidden;
}

.poster img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s;
}

.movie-card:hover .poster img {
    transform: scale(1.06);
}

.badge {
    position: absolute;

    top: 11px;
    left: 11px;

    background: var(--red);

    padding: 5px 8px;

    border-radius: 4px;

    font-size: 8px;
    font-weight: 900;
}

.poster-play {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;

    background: rgba(0,0,0,.5);

    font-size: 22px;

    transition: .3s;
}

.movie-card:hover .poster-play {
    opacity: 1;
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    font-size: 15px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    margin-bottom: 6px;
}

.movie-meta {
    display: flex;
    gap: 7px;

    color: #777;
    font-size: 10px;

    margin-bottom: 11px;
}

.movie-meta i {
    font-style: normal;
}

.genres {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.genres span {
    background: rgba(255,255,255,.06);

    padding: 4px 7px;

    border-radius: 4px;

    color: #999;

    font-size: 8px;
}


/* ================= DRAMA ================= */

.drama-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.drama-card {
    position: relative;

    min-height: 420px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 14px;
}

.drama-card > img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s;
}

.drama-card:hover > img {
    transform: scale(1.05);
}

.drama-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        0deg,
        rgba(0,0,0,.94),
        rgba(0,0,0,.08)
    );
}

.drama-overlay {
    position: absolute;
    z-index: 2;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 30px;
}

.drama-number {
    color: var(--red);

    font-size: 10px;
    font-weight: 900;
}

.drama-overlay h3 {
    font-size: 29px;
    letter-spacing: -1px;

    margin: 5px 0 7px;
}

.drama-overlay p {
    max-width: 450px;

    color: #bbb;

    font-size: 12px;

    margin-bottom: 17px;
}

.detail-button {
    display: inline-flex;

    padding: 9px 15px;

    background: var(--red);

    border-radius: 6px;

    font-size: 10px;
    font-weight: 800;

    transition: .3s;
}

.detail-button:hover {
    background: var(--red-dark);
}


/* ================= CATEGORY ================= */

.center-header {
    text-align: center;

    margin-bottom: 35px;
}

.center-header p {
    max-width: 580px;

    margin: 13px auto 0;

    color: #858585;

    font-size: 13px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.category-card {
    position: relative;

    min-height: 185px;

    overflow: hidden;

    border-radius: 12px;

    border: 1px solid var(--border);
}

.category-card img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s;
}

.category-card::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        0deg,
        rgba(0,0,0,.9),
        rgba(0,0,0,.1)
    );
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-content {
    position: absolute;
    z-index: 2;

    left: 18px;
    bottom: 16px;
}

.category-content small {
    color: var(--red);

    font-size: 9px;
    font-weight: 900;
}

.category-content h3 {
    font-size: 21px;
}


/* ================= ABOUT ================= */

.about-section {
    padding: 110px 0;

    background: #090909;
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 75px;
}

.about-image {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 16px;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;

    transition: .5s;
}

.about-image:hover img {
    transform: scale(1.04);
}

.about-content h2 {
    max-width: 600px;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.08;

    letter-spacing: -2px;

    margin: 10px 0 18px;
}

.about-content > p {
    color: #999;

    font-size: 13px;
    line-height: 1.8;

    margin-bottom: 28px;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.point {
    display: flex;
    gap: 13px;
}

.point > strong {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(229,9,20,.12);

    color: var(--red);
}

.point h3 {
    font-size: 13px;
}

.point p {
    color: #6f6f6f;

    font-size: 11px;
}


/* ================= FOOTER ================= */

.footer {
    padding: 70px 0 25px;

    background: #040404;

    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr repeat(3, 1fr);

    gap: 45px;

    padding-bottom: 45px;
}

.footer-about p {
    max-width: 330px;

    color: #666;

    font-size: 11px;
    line-height: 1.8;

    margin-top: 17px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h3 {
    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 6px;
}

.footer-column a {
    color: #666;

    font-size: 11px;

    transition: .3s;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 20px;

    border-top: 1px solid var(--border);

    display: flex;
    justify-content: space-between;

    color: #444;

    font-size: 9px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {

    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr repeat(2, 1fr);
    }
}


@media (max-width: 760px) {

    .container {
        width: min(100% - 28px, var(--container));
    }

    .nav-wrapper {
        min-height: 66px;
    }

    .main-nav {
        display: none;
    }

    .header-button {
        padding: 9px 13px;
        font-size: 10px;
    }

    .logo {
        font-size: 18px;
    }

    .logo b {
        font-size: 11px;
    }

    .hero {
        min-height: 680px;
    }

    .hero h1 {
        font-size: clamp(40px, 12vw, 58px);
    }

    .hero-content > p {
        font-size: 13px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
    }

    .hero-stats {
        gap: 25px;
    }

    .section {
        padding: 75px 0;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .drama-grid {
        grid-template-columns: 1fr;
    }

    .drama-card {
        min-height: 360px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content h2 {
        font-size: 35px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px;
    }
}


@media (max-width: 430px) {

    .movie-grid {
        gap: 9px;
    }

    .movie-info {
        padding: 11px;
    }

    .movie-info h3 {
        font-size: 12px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 160px;
    }

    .drama-overlay {
        padding: 23px;
    }

    .drama-overlay h3 {
        font-size: 24px;
    }
}

/* =========================
   SHARED SECTION LABEL
========================= */

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #e50914;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.section-heading h2 span {
    color: #e50914;
}


/* =========================
   ACTIVE NAVIGATION
========================= */

.main-nav a.active {
    color: #ffffff;
}

.main-nav a.active::after {
    width: 100%;
}


/* =========================
   FOOTER LINK
========================= */

.footer a {
    transition: .25s ease;
}

.footer a:hover {
    color: #e50914;
}

/* =========================================================
   REXUS88FLIX
   FINAL CSS — CONTACT / BLOG / ARTICLE / LEGAL
   ========================================================= */


/* =========================================================
   1. GLOBAL PAGE COMPONENTS
   ========================================================= */

.page-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #080808;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 5, 5, 0.96) 0%,
            rgba(5, 5, 5, 0.78) 45%,
            rgba(5, 5, 5, 0.45) 100%
        );
    z-index: 1;
}

.page-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: auto;
    padding: 70px 0;
}

.page-hero-content .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 13px;
    border: 1px solid rgba(229, 9, 20, 0.35);
    border-radius: 999px;
    background: rgba(229, 9, 20, 0.1);
    color: #ff5962;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.page-hero-content h1 {
    max-width: 850px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.page-hero-content p {
    max-width: 720px;
    margin: 0;
    color: #b6b6b6;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   2. BREADCRUMB
   ========================================================= */

.breadcrumb {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #777;
    font-size: 13px;
}

.breadcrumb a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.25s ease;
}

.breadcrumb a:hover {
    color: #e50914;
}

.breadcrumb span {
    color: #444;
}


/* =========================================================
   3. SECTION HEADER
   ========================================================= */

.section-heading {
    margin-bottom: 35px;
}

.section-heading .eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #e50914;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading p {
    max-width: 700px;
    margin: 0;
    color: #888;
    line-height: 1.8;
}


/* =========================================================
   4. CONTACT PAGE
   ========================================================= */

.contact-section {
    padding: 85px 0;
    background: #080808;
}

.contact-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 30px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 16px;
}

.contact-card {
    position: relative;
    padding: 25px;
    border: 1px solid #222;
    border-radius: 16px;
    background: #111;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.contact-card::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    top: -55px;
    right: -55px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.08);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 9, 20, 0.4);
    background: #141414;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 12px;
    background: rgba(229, 9, 20, 0.12);
    color: #e50914;
    font-size: 20px;
}

.contact-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
}

.contact-card p {
    margin: 0;
    color: #858585;
    line-height: 1.7;
    font-size: 14px;
}

.contact-card a {
    color: #ddd;
    text-decoration: none;
}

.contact-card a:hover {
    color: #e50914;
}

.contact-form-wrapper {
    padding: 32px;
    border: 1px solid #222;
    border-radius: 18px;
    background: #101010;
}

.contact-form-wrapper h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 27px;
}

.contact-form-wrapper > p {
    margin: 0 0 28px;
    color: #777;
    line-height: 1.7;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    color: #ddd;
    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid #292929;
    border-radius: 9px;
    outline: none;
    background: #080808;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e50914;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 25px;
    border: 0;
    border-radius: 9px;
    background: #e50914;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    background: #f6121d;
}

.contact-help {
    margin-top: 70px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.help-card {
    padding: 24px;
    border: 1px solid #222;
    border-radius: 15px;
    background: #101010;
}

.help-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 17px;
}

.help-card p {
    margin: 0 0 15px;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

.help-card a {
    color: #e50914;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}


/* =========================================================
   5. BLOG PAGE
   ========================================================= */

.blog-section {
    padding: 85px 0;
    background: #080808;
}

.blog-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    overflow: hidden;
    border: 1px solid #222;
    border-radius: 17px;
    background: #111;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-7px);
    border-color: rgba(229, 9, 20, 0.4);
}

.blog-image {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #171717;
}

.blog-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.06);
}

.blog-category {
    position: absolute;
    left: 15px;
    bottom: 15px;
    padding: 7px 11px;
    border-radius: 6px;
    background: #e50914;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.blog-content {
    padding: 23px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 12px;
    color: #666;
    font-size: 12px;
}

.blog-content h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 20px;
    line-height: 1.35;
}

.blog-content h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-content h3 a:hover {
    color: #e50914;
}

.blog-content p {
    margin: 0 0 18px;
    color: #7e7e7e;
    font-size: 14px;
    line-height: 1.75;
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #e50914;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.blog-readmore:hover {
    color: #ff5962;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.blog-pagination a,
.blog-pagination span {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid #242424;
    border-radius: 8px;
    background: #111;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.blog-pagination a:hover,
.blog-pagination .active {
    border-color: #e50914;
    background: #e50914;
    color: #fff;
}


/* =========================================================
   6. ARTICLE PAGE
   ========================================================= */

.article-section {
    padding: 70px 0 90px;
    background: #080808;
}

.article-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 45px;
    align-items: start;
}

.article-main {
    min-width: 0;
}

.article-header {
    margin-bottom: 30px;
}

.article-category {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 6px;
    background: rgba(229, 9, 20, 0.12);
    color: #ff5962;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.article-header h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(32px, 5vw, 55px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    color: #777;
    font-size: 13px;
}

.article-featured {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 35px;
    border-radius: 18px;
    background: #111;
}

.article-featured img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.article-content {
    color: #b2b2b2;
    font-size: 16px;
    line-height: 1.9;
}

.article-content > p:first-child {
    color: #ddd;
    font-size: 18px;
}

.article-content h2 {
    margin: 45px 0 15px;
    color: #fff;
    font-size: 28px;
    line-height: 1.3;
}

.article-content h3 {
    margin: 32px 0 12px;
    color: #fff;
    font-size: 21px;
}

.article-content p {
    margin: 0 0 20px;
}

.article-content a {
    color: #e50914;
    text-decoration: none;
}

.article-content a:hover {
    color: #ff5962;
}

.article-content ul,
.article-content ol {
    margin: 0 0 25px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 22px 25px;
    border-left: 4px solid #e50914;
    border-radius: 0 10px 10px 0;
    background: #111;
    color: #ccc;
    font-size: 17px;
    font-style: italic;
}

.article-content img {
    width: 100%;
    max-height: 550px;
    margin: 25px 0;
    border-radius: 14px;
    object-fit: cover;
}

.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #222;
}

.article-share span {
    margin-right: 5px;
    color: #888;
    font-size: 13px;
    font-weight: 700;
}

.article-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #292929;
    border-radius: 7px;
    background: #111;
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.article-share a:hover {
    border-color: #e50914;
    color: #fff;
}


/* =========================================================
   7. ARTICLE SIDEBAR
   ========================================================= */

.article-sidebar {
    position: sticky;
    top: 30px;
}

.sidebar-widget {
    margin-bottom: 22px;
    padding: 23px;
    border: 1px solid #222;
    border-radius: 15px;
    background: #101010;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 18px;
}

.sidebar-widget h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: #e50914;
}

.sidebar-categories {
    display: grid;
    gap: 7px;
}

.sidebar-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #1e1e1e;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.25s ease;
}

.sidebar-categories a:last-child {
    border-bottom: 0;
}

.sidebar-categories a:hover {
    color: #e50914;
}

.sidebar-post {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.sidebar-post:last-child {
    margin-bottom: 0;
}

.sidebar-post img {
    width: 82px;
    height: 65px;
    border-radius: 7px;
    object-fit: cover;
}

.sidebar-post h4 {
    margin: 0;
    color: #ddd;
    font-size: 13px;
    line-height: 1.45;
}

.sidebar-post a {
    color: inherit;
    text-decoration: none;
}

.sidebar-post a:hover {
    color: #e50914;
}

.sidebar-post span {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 10px;
}

.sidebar-cta {
    padding: 25px;
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(229, 9, 20, 0.2),
            rgba(229, 9, 20, 0.03)
        ),
        #111;
}

.sidebar-cta h3 {
    padding: 0;
    margin-bottom: 10px;
}

.sidebar-cta h3::after {
    display: none;
}

.sidebar-cta p {
    margin: 0 0 18px;
    color: #888;
    font-size: 13px;
    line-height: 1.7;
}

.sidebar-cta a {
    display: inline-flex;
    padding: 11px 17px;
    border-radius: 7px;
    background: #e50914;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}


/* =========================================================
   8. LEGAL PAGES
   PRIVACY / TERMS / DISCLAIMER
   ========================================================= */

.legal-section {
    padding: 75px 0 100px;
    background: #080808;
}

.legal-container {
    width: min(1000px, calc(100% - 40px));
    margin: auto;
}

.legal-intro {
    margin-bottom: 35px;
    padding: 25px 28px;
    border: 1px solid rgba(229, 9, 20, 0.22);
    border-radius: 14px;
    background: rgba(229, 9, 20, 0.05);
}

.legal-intro strong {
    color: #fff;
}

.legal-intro p {
    margin: 0;
    color: #999;
    font-size: 14px;
    line-height: 1.8;
}

.legal-content {
    padding: 38px;
    border: 1px solid #222;
    border-radius: 18px;
    background: #101010;
}

.legal-content h2 {
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #222;
    color: #fff;
    font-size: 25px;
    line-height: 1.3;
}

.legal-content h2:not(:first-child) {
    margin-top: 42px;
}

.legal-content h3 {
    margin: 28px 0 10px;
    color: #ddd;
    font-size: 18px;
}

.legal-content p {
    margin: 0 0 18px;
    color: #929292;
    font-size: 14px;
    line-height: 1.9;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 22px;
    padding-left: 23px;
    color: #929292;
}

.legal-content li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.8;
}

.legal-content a {
    color: #e50914;
    text-decoration: none;
}

.legal-content a:hover {
    color: #ff5962;
}

.legal-note {
    margin: 25px 0;
    padding: 18px 20px;
    border-left: 3px solid #e50914;
    border-radius: 0 9px 9px 0;
    background: #151515;
    color: #999;
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   9. DISCLAIMER CARDS
   ========================================================= */

.disclaimer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 35px;
}

.disclaimer-card {
    padding: 25px;
    border: 1px solid #242424;
    border-radius: 14px;
    background: #111;
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}

.disclaimer-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 9, 20, 0.35);
}

.disclaimer-card .icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 10px;
    background: rgba(229, 9, 20, 0.1);
    color: #e50914;
    font-size: 17px;
}

.disclaimer-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
}

.disclaimer-card p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.75;
}


/* =========================================================
   10. LEGAL CTA
   ========================================================= */

.legal-cta {
    margin-top: 40px;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    background:
        radial-gradient(
            circle at center,
            rgba(229, 9, 20, 0.12),
            transparent 65%
        ),
        #111;
}

.legal-cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 25px;
}

.legal-cta p {
    max-width: 650px;
    margin: 0 auto 22px;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

.legal-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 8px;
    background: #e50914;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   11. GENERIC CTA
   ========================================================= */

.final-cta {
    padding: 80px 20px;
    text-align: center;
    background:
        linear-gradient(
            180deg,
            #080808 0%,
            #101010 100%
        );
}

.final-cta-inner {
    max-width: 760px;
    margin: auto;
}

.final-cta h2 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
}

.final-cta p {
    margin: 0 auto 25px;
    color: #777;
    line-height: 1.8;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.final-cta-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 21px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.final-cta-primary {
    background: #e50914;
    color: #fff;
}

.final-cta-secondary {
    border: 1px solid #292929;
    background: #111;
    color: #bbb;
}

.final-cta-primary:hover {
    background: #f6121d;
}

.final-cta-secondary:hover {
    border-color: #e50914;
    color: #fff;
}


/* =========================================================
   12. FOOTER IMPROVEMENT
   ========================================================= */

.site-footer {
    border-top: 1px solid #1c1c1c;
    background: #050505;
}

.site-footer a {
    transition: color 0.25s ease;
}

.site-footer a:hover {
    color: #e50914;
}


/* =========================================================
   13. MOBILE NAVIGATION SUPPORT
   ========================================================= */

@media (max-width: 900px) {

    .main-nav {
        gap: 14px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .disclaimer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   14. TABLET
   ========================================================= */

@media (max-width: 700px) {

    .page-hero {
        min-height: 320px;
    }

    .page-hero-content {
        padding: 55px 0;
    }

    .page-hero-content h1 {
        letter-spacing: -1px;
    }

    .contact-section,
    .blog-section,
    .article-section,
    .legal-section {
        padding-top: 55px;
        padding-bottom: 65px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .legal-content {
        padding: 27px 22px;
    }

    .disclaimer-grid {
        grid-template-columns: 1fr;
    }

    .article-featured {
        border-radius: 12px;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.85;
    }

    .article-content > p:first-child {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-content h3 {
        font-size: 19px;
    }
}


/* =========================================================
   15. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .page-hero {
        min-height: 290px;
    }

    .page-hero-content {
        width: min(100% - 28px, 1180px);
        padding: 45px 0;
    }

    .page-hero-content h1 {
        font-size: 32px;
    }

    .page-hero-content p {
        font-size: 14px;
    }

    .breadcrumb {
        width: calc(100% - 28px);
        font-size: 11px;
    }

    .contact-container,
    .blog-container,
    .article-container,
    .legal-container {
        width: calc(100% - 28px);
    }

    .contact-card {
        padding: 20px;
    }

    .contact-form-wrapper {
        padding: 20px;
        border-radius: 13px;
    }

    .contact-form-wrapper h2 {
        font-size: 23px;
    }

    .blog-image {
        height: 210px;
    }

    .blog-content {
        padding: 20px;
    }

    .article-header h1 {
        font-size: 31px;
    }

    .article-meta {
        font-size: 11px;
        gap: 7px 12px;
    }

    .article-sidebar {
        margin-top: 5px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .legal-intro {
        padding: 20px;
    }

    .legal-content {
        padding: 23px 18px;
    }

    .legal-content h2 {
        font-size: 22px;
    }

    .legal-content h3 {
        font-size: 17px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 13px;
    }

    .legal-cta {
        padding: 27px 18px;
    }

    .final-cta {
        padding: 60px 15px;
    }

    .final-cta-buttons {
        flex-direction: column;
    }

    .final-cta-buttons a {
        width: 100%;
    }
}


/* =========================================================
   16. ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid #e50914;
    outline-offset: 3px;
}


/* =========================================================
   17. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}