/* =========================================================
   MYFLIX FRONTEND
========================================================= */

:root {

    --black: #080808;
    --dark: #101010;
    --card: #161616;

    --white: #ffffff;
    --gray: #a4a4a4;
    --muted: #686868;

    --red: #e50914;

    --border: rgba(255,255,255,.08);

    --container: 1380px;

}


* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    background: var(--black);

    color: var(--white);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

}


a {

    color: inherit;

    text-decoration: none;

}


img {

    display: block;

    max-width: 100%;

}


/* =========================================================
   CONTAINER
========================================================= */

.site-container {

    width: 100%;

    max-width: var(--container);

    margin: auto;

    padding-left: 25px;

    padding-right: 25px;

}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    height: 70px;

    position: relative;

    z-index: 1000;

    background:
        rgba(8,8,8,.96);

    border-bottom:
        1px solid
        var(--border);

}


.header-inner {

    height: 70px;

    display: flex;

    align-items: center;

    gap: 35px;

}


.logo {

    display: flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;

}


.logo-box {

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--red);

    border-radius: 5px;

    font-size: 18px;

    font-weight: 900;

}


.logo-name {

    font-size: 19px;

    font-weight: 800;

}


.desktop-nav {

    display: flex;

    align-items: center;

    gap: 25px;

}


.desktop-nav a {

    color: #999;

    font-size: 18px;

    font-weight: 600;

    transition: .2s;

}


.desktop-nav a:hover {

    color: #fff;

}


.search-form {

    width: 235px;

    height: 38px;

    margin-left: auto;

    display: flex;

    background: #181818;

    border:
        1px solid
        var(--border);

    border-radius: 5px;

    overflow: hidden;

}


.search-form input {

    min-width: 0;

    flex: 1;

    padding: 0 12px;

    background: transparent;

    border: 0;

    outline: 0;

    color: #fff;

    font-size: 16px;

}


.search-form input::placeholder {

    color: #666;

}


.search-form button {

    width: 42px;

    border: 0;

    background: transparent;

    color: #999;

    cursor: pointer;

}


.menu-button {

    display: none;

}


/* =========================================================
   MOBILE NAV
========================================================= */

.mobile-navigation {

    display: none;

}


/* =========================================================
   HERO
========================================================= */

.hero {

    min-height: 610px;

    display: flex;

    align-items: center;

    background-position: center;

    background-size: cover;

    background-repeat: no-repeat;

}


.hero-content {

    width: 620px;

    max-width: 100%;

    padding: 90px 0;

}


.hero-label {

    display: inline-block;

    margin-bottom: 17px;

    color: #ddd;

    font-size: 16px;

    font-weight: 800;

    letter-spacing: 2px;

}


.hero-label::before {

    content: "";

    display: inline-block;

    width: 25px;

    height: 3px;

    margin-right: 8px;

    vertical-align: middle;

    background: var(--red);

}


.hero h1 {

    margin-bottom: 13px;

    font-size: 58px;

    line-height: 1.04;

    letter-spacing: -1px;

}


.hero-subtitle {

    margin-bottom: 15px;

    color: #ccc;

    font-size: 18px;

}


.hero-meta {

    display: flex;

    flex-wrap: wrap;

    margin-bottom: 20px;

    color: #aaa;

    font-size: 16px;

}


.hero-meta span:not(:last-child)::after {

    content: "•";

    margin: 0 10px;

    color: #666;

}


.hero-description {

    max-width: 600px;

    margin-bottom: 28px;

    color: #b7b7b7;

    font-size: 16px;

    line-height: 1.7;

}


.hero-actions {

    display: flex;

    gap: 10px;

}


.btn-primary,
.btn-secondary {

    min-height: 45px;

    padding: 0 21px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 5px;

    font-size: 16px;

    font-weight: 700;

}


.btn-primary {

    background: var(--red);

}


.btn-primary:hover {

    background: #b20710;

}


.btn-secondary {

    background: rgba(255,255,255,.1);

    border:
        1px solid
        rgba(255,255,255,.2);

}


/* =========================================================
   CONTENT
========================================================= */

.content-section {

    padding: 60px 0;

    background: var(--black);

}


.dark-section {

    background: var(--dark);

}


.section-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 25px;

}


.section-label {

    display: block;

    margin-bottom: 5px;

    color: var(--red);

    font-size: 16px;

    font-weight: 800;

    letter-spacing: 1.7px;

}


.section-header h2 {

    margin-bottom: 5px;

    font-size: 27px;

}


.section-header p {

    color: var(--muted);

    font-size: 16px;

}


.view-all {

    color: #ccc;

    font-size: 16px;

    font-weight: 700;

}


.view-all:hover {

    color: var(--red);

}


/* =========================================================
   MOVIE GRID
========================================================= */

.movie-grid {

    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 20px;

}


/* =========================================================
   MOVIE CARD
========================================================= */

.movie-card {

    min-width: 0;

}


.poster {

    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 2 / 3;

    overflow: hidden;

    background: #1a1a1a;

    border-radius: 6px;

}


.poster img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .3s ease;

}


.poster-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(0,0,0,.45);

    opacity: 0;

    transition:
        opacity .25s ease;

}


.play-button {

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--red);

}


.poster:hover img {

    transform: scale(1.05);

}


.poster:hover .poster-overlay {

    opacity: 1;

}


.poster-year {

    position: absolute;

    left: 8px;

    bottom: 8px;

    padding: 4px 7px;

    background:
        rgba(0,0,0,.8);

    border-radius: 3px;

    font-size: 10px;

    z-index: 2;

}


.movie-info {

    padding-top: 11px;

}


.movie-info h3 {

    margin-bottom: 5px;

    overflow: hidden;

    font-size: 14px;

    line-height: 1.3;

    white-space: nowrap;

    text-overflow: ellipsis;

}


.movie-info h3 a:hover {

    color: var(--red);

}


.movie-meta {

    display: flex;

    flex-wrap: wrap;

    color: #707070;

    font-size: 16px;

}


.movie-meta span:not(:last-child)::after {

    content: "•";

    margin: 0 7px;

    color: #444;

}


/* =========================================================
   CATEGORIES
========================================================= */

.category-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 12px;

}


.category-card {

    min-height: 75px;

    padding: 15px;

    display: flex;

    align-items: center;

    gap: 12px;

    background: #151515;

    border:
        1px solid
        var(--border);

    border-radius: 6px;

    transition: .2s;

}


.category-card:hover {

    background: #1c1c1c;

    border-color:
        rgba(229,9,20,.5);

    transform: translateY(-2px);

}


.category-icon {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    background: #202020;

    border-radius: 5px;

}


.category-card span:nth-child(2) {

    flex: 1;

    color: #ddd;

    font-size: 16px;

    font-weight: 700;

}


.category-card strong {

    color: #666;

}


.category-card:hover strong {

    color: var(--red);

}


/* =========================================================
   EMPTY
========================================================= */

.empty-state {

    min-height: 140px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #111;

    border:
        1px solid
        var(--border);

    border-radius: 6px;

    color: #666;

    font-size: 16px;

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    padding: 50px 0 25px;

    background: #050505;

    border-top:
        1px solid
        var(--border);

}


.footer-top {

    display: flex;

    justify-content: space-between;

    gap: 50px;

    padding-bottom: 40px;

}


.footer-logo {

    font-size: 20px;

    font-weight: 800;

}


.footer-brand p {

    margin-top: 8px;

    color: #666;

    font-size: 16px;

}


.footer-links {

    display: flex;

    gap: 80px;

}


.footer-links h3 {

    margin-bottom: 12px;

    font-size: 16px;

}


.footer-links a {

    display: block;

    margin-bottom: 8px;

    color: #777;

    font-size: 16px;

}


.footer-links a:hover {

    color: #fff;

}


.footer-bottom {

    padding-top: 20px;

    display: flex;

    justify-content: space-between;

    border-top:
        1px solid
        var(--border);

    color: #555;

    font-size: 16px;

}


/* =========================================================
   TABLET
========================================================= */

@media
(min-width: 651px)
and
(max-width: 1100px) {

    .movie-grid {

        grid-template-columns:
            repeat(4, minmax(0,1fr));

    }


    .category-grid {

        grid-template-columns:
            repeat(2, minmax(0,1fr));

    }


    .hero h1 {

        font-size: 48px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .site-container {

        padding-left: 15px;

        padding-right: 15px;

    }


    .site-header,
    .header-inner {

        height: 64px;

    }


    .desktop-nav,
    .search-form {

        display: none;

    }


    .menu-button {

        width: 40px;

        height: 40px;

        margin-left: auto;

        display: flex;

        flex-direction: column;

        justify-content: center;

        gap: 5px;

        padding: 8px;

        background: #181818;

        border:
            1px solid
            var(--border);

        border-radius: 5px;

    }


    .menu-button span {

        width: 100%;

        height: 2px;

        background: #fff;

    }


    .mobile-navigation {

        position: absolute;

        z-index: 999;

        top: 64px;

        left: 0;

        right: 0;

        display: none;

        padding: 10px 15px 15px;

        background: #111;

        border-bottom:
            1px solid
            var(--border);

    }


    .mobile-navigation-open {

        display: block;

    }


    .mobile-navigation > a {

        display: block;

        padding: 12px 8px;

        border-bottom:
            1px solid
            rgba(255,255,255,.05);

        color: #ccc;

        font-size: 16px;

    }


    .mobile-search {

        height: 40px;

        margin-top: 12px;

        display: flex;

        background: #181818;

        border:
            1px solid
            var(--border);

        border-radius: 5px;

        overflow: hidden;

    }


    .mobile-search input {

        min-width: 0;

        flex: 1;

        padding: 0 10px;

        background: transparent;

        border: 0;

        outline: 0;

        color: #fff;

    }


    .mobile-search button {

        width: 42px;

        border: 0;

        background: transparent;

        color: #aaa;

    }


    .hero {

        min-height: 550px;

    }


    .hero-content {

        padding: 70px 0;

    }


    .hero h1 {

        font-size: 37px;

    }


    .hero-description {

        font-size: 16px;

    }


    .content-section {

        padding: 42px 0;

    }


    .section-header {

        align-items: flex-start;

    }


    .section-header h2 {

        font-size: 22px;

    }


    .movie-grid {

        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap:
            22px 13px;

    }


    .category-grid {

        grid-template-columns: 1fr;

    }


    .footer-top {

        flex-direction: column;

    }


    .footer-links {

        gap: 50px;

    }


    .footer-bottom {

        flex-direction: column;

        gap: 5px;

    }

}

/* =========================================================
   ADVERTISEMENTS
========================================================= */

.advertisement-section {

    width: 100%;

    padding: 28px 0;

    background: var(--black);

}


.advertisement-label {

    margin-bottom: 10px;

    text-align: center;

    color: #555;

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

}


.responsive-ad {

    width: 100%;

    min-height: 90px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}


/* =========================================================
   300 X 250
========================================================= */

.rectangle-ad-section {

    padding-top: 25px;

    padding-bottom: 35px;

}


.ad-300x250 {

    width: 300px;

    height: 250px;

    max-width: 100%;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}


/* =========================================================
   SOCIAL AD
========================================================= */

.social-ad {

    width: 100%;

    padding: 20px 0;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}


/* =========================================================
   DIRECT AD BUTTON
========================================================= */

.ad-direct-button {

    min-height: 42px;

    padding: 0 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: var(--red);

    border-radius: 5px;

    color: #fff;

    font-size: 16px;

    font-weight: 700;

    transition: .2s ease;

}


.ad-direct-button:hover {

    background: #b20710;

    transform: translateY(-1px);

}


@media (max-width: 650px) {

    .responsive-ad {

        min-height: 60px;

    }

}

/* =========================================================
   MOVIES PAGE
========================================================= */

.listing-hero {

    padding: 70px 0 55px;

    background:
        linear-gradient(
            180deg,
            #151515 0%,
            #0b0b0b 100%
        );

    border-bottom:
        1px solid
        var(--border);

}


.listing-hero h1 {

    margin: 8px 0 10px;

    font-size: 42px;

    line-height: 1.1;

}


.listing-hero p {

    max-width: 600px;

    color: #777;

    font-size: 14px;

    line-height: 1.6;

}


/* =========================================================
   MOVIE TOOLBAR
========================================================= */

.movies-toolbar {

    padding: 20px 0;

    background: #0d0d0d;

    border-bottom:
        1px solid
        var(--border);

}


.movies-toolbar-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

}


.movies-search {

    width: 420px;

    max-width: 100%;

    height: 44px;

    display: flex;

    overflow: hidden;

    background: #181818;

    border:
        1px solid
        var(--border);

    border-radius: 5px;

}


.movies-search input {

    min-width: 0;

    flex: 1;

    padding: 0 14px;

    background: transparent;

    border: 0;

    outline: 0;

    color: #fff;

}


.movies-search button {

    padding: 0 18px;

    border: 0;

    background: var(--red);

    color: #fff;

    font-weight: 700;

    cursor: pointer;

}


.category-filter select {

    height: 44px;

    min-width: 190px;

    padding: 0 13px;

    background: #181818;

    border:
        1px solid
        var(--border);

    border-radius: 5px;

    color: #ccc;

    outline: 0;

}


/* =========================================================
   MOVIE CARD ACTIONS
========================================================= */

.movie-card-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 10px;

}


.movie-card-actions a {

    min-height: 29px;

    padding: 0 8px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 4px;

    font-size: 9px;

    font-weight: 700;

    white-space: nowrap;

}


.card-watch-button {

    background: var(--red);

    color: #fff;

}


.card-watch-button:hover {

    background: #b20710;

}


.card-trailer-button {

    background: #252525;

    border:
        1px solid
        #333;

    color: #ccc;

}


.card-trailer-button:hover {

    background: #333;

    color: #fff;

}


.card-download-button {

    background: transparent;

    border:
        1px solid
        #333;

    color: #aaa;

}


.card-download-button:hover {

    border-color: var(--red);

    color: #fff;

}


/* =========================================================
   PAGINATION
========================================================= */

.pagination-section {

    padding: 20px 0 50px;

}


.pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

}


.pagination-number,
.pagination-button {

    min-width: 38px;

    height: 38px;

    padding: 0 12px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: #171717;

    border:
        1px solid
        var(--border);

    border-radius: 4px;

    color: #888;

    font-size: 11px;

    font-weight: 700;

}


.pagination-number:hover,
.pagination-button:hover {

    background: #222;

    color: #fff;

}


.pagination-number.active {

    background: var(--red);

    border-color: var(--red);

    color: #fff;

}


/* =========================================================
   VIEW ALL
========================================================= */

.view-all-section {

    padding: 0 0 60px;

}


.view-all-box {

    padding: 28px 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    background:
        linear-gradient(
            100deg,
            #181818,
            #101010
        );

    border:
        1px solid
        var(--border);

    border-radius: 7px;

}


.view-all-box h2 {

    margin: 4px 0 5px;

    font-size: 20px;

}


.view-all-box p {

    color: #666;

    font-size: 12px;

}


.view-all-current {

    color: #666;

    font-size: 11px;

}


/* =========================================================
   EMPTY MOVIE RESULTS
========================================================= */

.empty-state {

    min-height: 280px;

    padding: 40px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

}


.empty-state h3 {

    margin-bottom: 8px;

    font-size: 20px;

}


.empty-state p {

    margin-bottom: 20px;

    color: #666;

    font-size: 13px;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .listing-hero {

        padding: 45px 0 35px;

    }


    .listing-hero h1 {

        font-size: 30px;

    }


    .movies-toolbar-inner {

        flex-direction: column;

        align-items: stretch;

    }


    .movies-search {

        width: 100%;

    }


    .category-filter select {

        width: 100%;

    }


    .view-all-box {

        flex-direction: column;

        align-items: flex-start;

    }


    .pagination {

        flex-wrap: wrap;

    }

}

/* =========================================================
   MOVIE DETAILS PAGE
========================================================= */

.movie-details-hero {

    position: relative;

    padding: 70px 0;

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

}


.movie-details-layout {

    display: grid;

    grid-template-columns: 270px minmax(0, 700px);

    align-items: center;

    gap: 45px;

    min-height: 430px;

}


.movie-details-poster {

    width: 270px;

    aspect-ratio: 2 / 3;

    overflow: hidden;

    border-radius: 8px;

    box-shadow:
        0 20px 60px
        rgba(0,0,0,.5);

}


.movie-details-poster img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.movie-details-content {

    max-width: 720px;

}


.movie-details-content h1 {

    margin: 5px 0 12px;

    font-size: 52px;

    line-height: 1.05;

    letter-spacing: -1px;

}


.movie-details-subtitle {

    margin-bottom: 15px;

    color: #aaa;

    font-size: 17px;

}


.movie-details-meta {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    margin-bottom: 22px;

    color: #999;

    font-size: 12px;

}


.movie-details-meta span:not(:last-child)::after,
.movie-details-meta a::after {

    content: "•";

    margin: 0 9px;

    color: #555;

}


.movie-details-meta a {

    color: #ddd;

}


.movie-details-meta a:hover {

    color: var(--red);

}


.movie-description {

    max-width: 680px;

    margin-bottom: 28px;

    color: #aaa;

    font-size: 14px;

    line-height: 1.8;

}


.movie-details-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;

}


.movie-details-actions .btn-primary,
.movie-details-actions .btn-secondary,
.movie-details-actions .download-button {

    min-height: 45px;

    padding: 0 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 5px;

    font-size: 12px;

    font-weight: 700;

}


.movie-details-actions .download-button {

    background: transparent;

    border:
        1px solid
        var(--red);

    color: #fff;

}


.movie-details-actions .download-button:hover {

    background: var(--red);

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .movie-details-layout {

        grid-template-columns: 190px minmax(0, 1fr);

        gap: 25px;

    }


    .movie-details-poster {

        width: 190px;

    }


    .movie-details-content h1 {

        font-size: 36px;

    }

}


@media (max-width: 650px) {

    .movie-details-hero {

        padding: 40px 0;

    }


    .movie-details-layout {

        grid-template-columns: 1fr;

        gap: 25px;

    }


    .movie-details-poster {

        width: 190px;

        margin: 0 auto;

    }


    .movie-details-content {

        text-align: center;

    }


    .movie-details-content h1 {

        font-size: 31px;

    }


    .movie-details-meta {

        justify-content: center;

    }


    .movie-details-actions {

        justify-content: center;

    }


    .movie-description {

        text-align: left;

    }

}


/* =========================================================
   SINGLE SERIES PAGE
========================================================= */

.serie-page {
    background: #080808;
}


/* =========================================================
   SERIES HERO
========================================================= */

.serie-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 70px 0;
}


.serie-hero-content {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 45px;
    align-items: center;
}


.serie-poster {
    width: 270px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}


.serie-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.serie-information {
    max-width: 780px;
}


.serie-information h1 {
    margin: 8px 0 10px;
    color: #fff;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.05;
}


.serie-subtitle {
    margin: 0 0 18px;
    color: #aaa;
    font-size: 15px;
}


.serie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}


.serie-meta span {
    padding: 6px 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
    color: #aaa;
    font-size: 11px;
}


.serie-description {
    max-width: 720px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.8;
}


.serie-actions {
    margin-top: 25px;
}


.serie-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
}


/* =========================================================
   EPISODES
========================================================= */

.episodes-section {
    padding: 65px 0;
}


.season-block {
    margin-bottom: 45px;
}


.season-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #222;
}


.season-label {
    display: block;
    margin-bottom: 4px;
    color: #e50914;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}


.season-header h3 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}


.episode-count {
    color: #777;
    font-size: 12px;
}


.episode-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.episode-card {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 6px;
    transition: .2s ease;
}


.episode-card:hover {
    background: #151515;
    border-color: #333;
}


.episode-number {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c1c1c;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}


.episode-information {
    min-width: 0;
}


.episode-information h4 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 15px;
}


.episode-information p {
    margin: 0 0 7px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.episode-duration {
    color: #666;
    font-size: 11px;
}


.episode-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}


.episode-watch-button,
.episode-download-button {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: .2s ease;
}


.episode-watch-button {
    background: #e50914;
    color: #fff;
}


.episode-watch-button:hover {
    background: #fff;
    color: #000;
}


.episode-download-button {
    border: 1px solid #e50914;
    background: transparent;
    color: #fff;
}


.episode-download-button:hover {
    background: #e50914;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    max-width: 650px;
    margin: 70px auto;
    padding: 45px 25px;
    text-align: center;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
}


.empty-state h1,
.empty-state h2,
.empty-state h3 {
    margin-top: 0;
}


.empty-state p {
    color: #888;
    line-height: 1.7;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .serie-hero {
        padding: 45px 0;
    }


    .serie-hero-content {
        grid-template-columns: 170px minmax(0,1fr);
        gap: 25px;
    }


    .serie-poster {
        width: 170px;
    }


    .serie-information h1 {
        font-size: 32px;
    }

}


@media (max-width: 650px) {

    .serie-hero {
        padding: 35px 0;
    }


    .serie-hero-content {
        display: block;
    }


    .serie-poster {
        width: 180px;
        margin: 0 auto 25px;
    }


    .serie-information {
        text-align: center;
    }


    .serie-meta {
        justify-content: center;
    }


    .serie-description {
        text-align: left;
    }


    .serie-actions {
        display: flex;
        justify-content: center;
    }


    .season-header {
        align-items: flex-start;
    }


    .episode-card {
        grid-template-columns: 44px minmax(0,1fr);
        gap: 12px;
    }


    .episode-number {
        width: 38px;
        height: 38px;
    }


    .episode-actions {
        grid-column: 2;
        width: 100%;
    }


    .episode-watch-button,
    .episode-download-button {
        flex: 1;
        min-height: 40px;
    }

}


@media (max-width: 430px) {

    .serie-poster {
        width: 155px;
    }


    .serie-information h1 {
        font-size: 27px;
    }


    .episode-actions {
        flex-direction: column;
    }


    .episode-watch-button,
    .episode-download-button {
        width: 100%;
    }

}


/* =========================================================
   WATCH PAGE
========================================================= */

.watch-page {
    min-height: 70vh;
}


/* =========================================================
   WATCH HEADER
========================================================= */

.watch-header {
    padding: 40px 0 25px;
}


.watch-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #777;
    font-size: 12px;
    transition: color .2s ease;
}


.watch-back:hover {
    color: #fff;
}


.watch-header h1 {
    margin: 7px 0 14px;
    color: #fff;
    font-size: clamp(25px, 4vw, 40px);
    line-height: 1.15;
}


.watch-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.watch-meta span {
    padding: 6px 10px;
    background: #151515;
    border: 1px solid #222;
    border-radius: 4px;
    color: #888;
    font-size: 11px;
}


.watch-meta span + span::before {
    display: none;
}


/* =========================================================
   VIDEO PLAYER
========================================================= */

.watch-player-section {
    padding: 10px 0 35px;
}


.watch-player {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    border: 1px solid #222;
    border-radius: 7px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 20px 70px rgba(0,0,0,.35);
}


.watch-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


.watch-player-bottom {
    max-width: 1200px;
    margin: 10px auto 0;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #666;
    font-size: 11px;
}


.watch-player-type {
    color: #aaa;
}


/* =========================================================
   WATCH INFORMATION
========================================================= */

.watch-information {
    padding: 25px 0 60px;
}


.watch-information-box {
    max-width: 900px;
}


.watch-information-box h2 {
    margin: 7px 0 15px;
    color: #fff;
    font-size: 26px;
}


.watch-description {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
}


.episode-details-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: #777;
    font-size: 13px;
}


.episode-details-line span {
    color: #444;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.watch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}


.watch-actions a {
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.watch-secondary-button {
    background: #171717;
    border: 1px solid #292929;
    color: #ddd;
}


.watch-secondary-button:hover {
    background: #222;
    color: #fff;
}


.watch-download-button {
    background: #e50914;
    border: 1px solid #e50914;
    color: #fff;
}


.watch-download-button:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}


.watch-trailer-button {
    background: transparent;
    border: 1px solid #e50914;
    color: #fff;
}


.watch-trailer-button:hover {
    background: #e50914;
    color: #fff;
}


/* =========================================================
   VIDEO ERROR
========================================================= */

.watch-error-section {
    padding: 80px 0;
}


.watch-error {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 25px;
    text-align: center;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
}


.watch-error-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e50914;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}


.watch-error h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 27px;
}


.watch-error p {
    margin: 0 0 25px;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .watch-header {
        padding: 30px 0 18px;
    }


    .watch-header h1 {
        font-size: 25px;
    }


    .watch-player-section {
        padding-top: 5px;
    }


    .watch-player {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }


    .watch-player-bottom {
        padding: 0 15px;
    }


    .watch-information {
        padding-bottom: 40px;
    }


    .watch-actions {
        flex-direction: column;
    }


    .watch-actions a {
        width: 100%;
    }

}


@media (max-width: 430px) {

    .watch-meta span {
        font-size: 10px;
    }


    .watch-player-bottom {
        flex-wrap: wrap;
    }

}


/* =========================================================
   TRAILER PAGE
========================================================= */

.trailer-page {
    min-height: 70vh;
}


/* =========================================================
   TRAILER HEADER
========================================================= */

.trailer-header {
    padding: 40px 0 25px;
}


.trailer-back {
    display: inline-flex;
    margin-bottom: 20px;
    color: #777;
    font-size: 12px;
    transition: color .2s ease;
}


.trailer-back:hover {
    color: #fff;
}


.trailer-header h1 {
    margin: 7px 0 14px;
    color: #fff;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
}


.trailer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.trailer-meta span {
    padding: 6px 10px;
    background: #151515;
    border: 1px solid #222;
    border-radius: 4px;
    color: #888;
    font-size: 11px;
}


/* =========================================================
   TRAILER PLAYER
========================================================= */

.trailer-player-section {
    padding: 10px 0 35px;
}


.trailer-player {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    border: 1px solid #222;
    border-radius: 7px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 20px 70px rgba(0,0,0,.35);
}


.trailer-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================================================
   TRAILER INFORMATION
========================================================= */

.trailer-information {
    padding: 25px 0 60px;
}


.trailer-information-box {
    max-width: 900px;
}


.trailer-information-box h2 {
    margin: 7px 0 10px;
    color: #fff;
    font-size: 27px;
}


.trailer-subtitle {
    margin: 0 0 17px;
    color: #aaa;
    font-size: 14px;
}


.trailer-description {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   TRAILER ACTIONS
========================================================= */

.trailer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}


.trailer-actions a {
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.trailer-secondary-button {
    background: #171717;
    border: 1px solid #292929;
    color: #ddd;
}


.trailer-secondary-button:hover {
    background: #222;
    color: #fff;
}


.trailer-watch-button {
    background: #e50914;
    border: 1px solid #e50914;
    color: #fff;
}


.trailer-watch-button:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}


.trailer-download-button {
    background: transparent;
    border: 1px solid #e50914;
    color: #fff;
}


.trailer-download-button:hover {
    background: #e50914;
    color: #fff;
}


/* =========================================================
   TRAILER ERROR
========================================================= */

.trailer-error {
    max-width: 650px;
    margin: 60px auto;
    padding: 50px 25px;
    text-align: center;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
}


.trailer-error-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e50914;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}


.trailer-error h1,
.trailer-error h2 {
    margin: 0 0 12px;
    color: #fff;
}


.trailer-error p {
    margin: 0 0 25px;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .trailer-header {
        padding: 30px 0 18px;
    }


    .trailer-header h1 {
        font-size: 26px;
    }


    .trailer-player-section {
        padding-top: 5px;
    }


    .trailer-player {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }


    .trailer-information {
        padding-bottom: 40px;
    }


    .trailer-actions {
        flex-direction: column;
    }


    .trailer-actions a {
        width: 100%;
    }

}


/* =========================================================
   DOWNLOAD PAGE
========================================================= */

.download-page {
    min-height: 70vh;
}


/* =========================================================
   DOWNLOAD HEADER
========================================================= */

.download-header {
    padding: 40px 0 25px;
}


.download-back {
    display: inline-flex;
    margin-bottom: 20px;
    color: #777;
    font-size: 12px;
    transition: color .2s ease;
}


.download-back:hover {
    color: #fff;
}


.download-header h1 {
    margin: 7px 0 14px;
    color: #fff;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
}


.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.download-meta span {
    padding: 6px 10px;
    background: #151515;
    border: 1px solid #222;
    border-radius: 4px;
    color: #888;
    font-size: 11px;
}


/* =========================================================
   DOWNLOAD CONTENT
========================================================= */

.download-content {
    padding: 15px 0 45px;
}


.download-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #101010;
    border: 1px solid #222;
    border-radius: 8px;
}


.download-box-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 25px;
    border-bottom: 1px solid #222;
}


.download-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e50914;
    border-radius: 6px;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
}


.download-box-header h2 {
    margin: 6px 0 6px;
    color: #fff;
    font-size: 24px;
}


.download-box-header p {
    margin: 0;
    color: #777;
    font-size: 13px;
}


/* =========================================================
   QUALITY LIST
========================================================= */

.quality-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 25px;
}


.quality-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px;
    background: #151515;
    border: 1px solid #222;
    border-radius: 5px;
    transition: border-color .2s ease,
                background .2s ease;
}


.quality-row:hover {
    background: #181818;
    border-color: #333;
}


.quality-information {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}


.quality-badge {
    min-width: 60px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: #222;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}


.quality-information h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 14px;
}


.quality-information p {
    margin: 0;
    color: #666;
    font-size: 11px;
}


.quality-download-button {
    min-height: 40px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #e50914;
    border: 1px solid #e50914;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    transition: .2s ease;
}


.quality-download-button:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}


/* =========================================================
   NO DOWNLOAD
========================================================= */

.no-download {
    margin-top: 25px;
    padding: 35px 20px;
    text-align: center;
    background: #151515;
    border: 1px solid #222;
    border-radius: 5px;
}


.no-download h3 {
    margin: 0 0 10px;
    color: #fff;
}


.no-download p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   DOWNLOAD INFORMATION
========================================================= */

.download-information {
    padding: 20px 0 60px;
}


.download-information-box {
    max-width: 900px;
    margin: 0 auto;
}


.download-information-box h2 {
    margin: 7px 0 20px;
    color: #fff;
    font-size: 25px;
}


.download-notes {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;
}


.download-note {
    padding: 18px;
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
}


.download-note strong {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-size: 12px;
}


.download-note p {
    margin: 0;
    color: #777;
    font-size: 11px;
    line-height: 1.7;
}


/* =========================================================
   ERROR
========================================================= */

.download-error {
    max-width: 650px;
    margin: 70px auto;
    padding: 50px 25px;
    text-align: center;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
}


.download-error h1 {
    margin: 0 0 12px;
    color: #fff;
}


.download-error p {
    margin: 0 0 25px;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .download-box {
        padding: 20px;
    }


    .download-box-header {
        align-items: flex-start;
    }


    .quality-row {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }


    .quality-download-button {
        width: 100%;
    }


    .download-notes {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 450px) {

    .download-header {
        padding: 30px 0 18px;
    }


    .download-header h1 {
        font-size: 25px;
    }


    .download-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 20px;
    }


    .download-box-header h2 {
        font-size: 20px;
    }


    .quality-information {
        align-items: flex-start;
    }

}

/* =========================================================
   GENERATE DOWNLOAD PAGE
========================================================= */

.download-generate-page {
    min-height: 70vh;
}


/* =========================================================
   HEADER
========================================================= */

.generate-header {
    padding: 40px 0 25px;
}


.generate-back {
    display: inline-flex;
    margin-bottom: 20px;
    color: #777;
    font-size: 12px;
    transition: color .2s ease;
}


.generate-back:hover {
    color: #fff;
}


.generate-header h1 {
    margin: 7px 0 0;
    color: #fff;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
}


/* =========================================================
   CONTENT
========================================================= */

.generate-content {
    padding: 20px 0 55px;
}


.generate-card {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 40px 35px;
    text-align: center;
    background: #101010;
    border: 1px solid #222;
    border-radius: 8px;
}


/* =========================================================
   ICON
========================================================= */

.generate-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e50914;
    border-radius: 7px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}


/* =========================================================
   TITLE
========================================================= */

.generate-card h2 {
    margin: 8px 0 12px;
    color: #fff;
    font-size: 25px;
}


.generate-description {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}


.generate-description strong {
    color: #fff;
}


/* =========================================================
   DETAILS
========================================================= */

.generate-details {
    margin: 25px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}


.generate-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    text-align: left;
}


.generate-detail + .generate-detail {
    border-top: 1px solid #1d1d1d;
}


.generate-detail span {
    color: #666;
    font-size: 11px;
}


.generate-detail strong {
    max-width: 65%;
    overflow: hidden;
    color: #ddd;
    font-size: 12px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   GENERATE BUTTON
========================================================= */

.generate-form {
    margin-top: 25px;
}


.generate-button {
    width: 100%;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #e50914;
    border-radius: 4px;
    background: #e50914;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}


.generate-button:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}


/* =========================================================
   NOTE
========================================================= */

.generate-note {
    margin: 17px 0 0;
    color: #555;
    font-size: 10px;
    line-height: 1.7;
}


.generate-note strong {
    color: #888;
}


/* =========================================================
   ERROR
========================================================= */

.generate-error {
    max-width: 650px;
    margin: 70px auto;
    padding: 50px 25px;
    text-align: center;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
}


.generate-error h1 {
    margin: 0 0 12px;
    color: #fff;
}


.generate-error p {
    margin: 0 0 25px;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .generate-header {
        padding: 30px 0 20px;
    }


    .generate-header h1 {
        font-size: 26px;
    }


    .generate-card {
        padding: 30px 20px;
    }


    .generate-card h2 {
        font-size: 21px;
    }


    .generate-detail {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }


    .generate-detail strong {
        max-width: 100%;
        text-align: left;
    }

}

/* =========================================================
   ACTUAL DOWNLOAD PAGE
========================================================= */

.download-generate-page {
    min-height: 70vh;
}

.generate-header {
    padding: 40px 0 25px;
}

.generate-back {
    display: inline-flex;
    margin-bottom: 20px;
    color: #777;
    font-size: 12px;
    transition: color .2s ease;
}

.generate-back:hover {
    color: #fff;
}

.generate-header h1 {
    margin: 7px 0 15px;
    color: #fff;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
}

.generate-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.generate-meta span {
    padding: 6px 10px;
    background: #151515;
    border: 1px solid #222;
    border-radius: 4px;
    color: #888;
    font-size: 11px;
}


/* =========================================================
   DOWNLOAD CONTENT
========================================================= */

.generate-content {
    padding: 20px 0 50px;
}

.generate-card {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 40px 35px;
    text-align: center;
    background: #101010;
    border: 1px solid #222;
    border-radius: 8px;
}

.generate-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e50914;
    border-radius: 7px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}

.generate-card h2 {
    margin: 8px 0 12px;
    color: #fff;
    font-size: 26px;
}

.generate-description {
    margin: 0;
    color: #888;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   DETAILS
========================================================= */

.generate-details {
    margin: 28px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.generate-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    text-align: left;
}

.generate-detail + .generate-detail {
    border-top: 1px solid #1c1c1c;
}

.generate-detail span {
    color: #666;
    font-size: 11px;
}

.generate-detail strong {
    color: #ddd;
    font-size: 12px;
}


/* =========================================================
   DOWNLOAD BUTTON
========================================================= */

.generate-button {
    width: 100%;
    min-height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    background: #e50914;
    border: 1px solid #e50914;
    border-radius: 4px;

    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.generate-button:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.generate-note {
    margin: 18px 0 0;
    color: #555;
    font-size: 10px;
    line-height: 1.8;
}


/* =========================================================
   ERROR
========================================================= */

.generate-error {
    max-width: 650px;
    margin: 70px auto;
    padding: 50px 25px;
    text-align: center;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
}

.generate-error h1 {
    margin: 0 0 12px;
    color: #fff;
}

.generate-error p {
    margin: 0 0 25px;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .generate-header {
        padding: 30px 0 20px;
    }

    .generate-header h1 {
        font-size: 26px;
    }

    .generate-card {
        padding: 30px 20px;
    }

    .generate-card h2 {
        font-size: 22px;
    }

    .generate-detail {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .generate-detail strong {
        text-align: left;
    }

}
.generate-download-form {
    width: 100%;
    margin: 0;
}

.generate-download-form .generate-button {
    width: 100%;
    font-family: inherit;
}


/* =========================================================
   DOWNLOAD LINK PAGE
========================================================= */

.download-link-page {
    min-height: 70vh;
}

.download-link-content {
    padding: 70px 0;
}

.download-link-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 45px 30px;
    text-align: center;

    background: #101010;
    border: 1px solid #222;
    border-radius: 8px;
}

.download-link-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e50914;
    border-radius: 7px;

    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.download-link-card h1 {
    margin: 8px 0 15px;
    color: #fff;
    font-size: 28px;
}

.download-link-card p {
    max-width: 480px;
    margin: 8px auto;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

.download-link-button {
    min-height: 45px;
    margin-top: 25px;
    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #e50914;
    border: 1px solid #e50914;
    border-radius: 4px;

    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;

    transition: .2s ease;
}

.download-link-button:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}


@media (max-width: 600px) {

    .download-link-content {
        padding: 45px 0;
    }

    .download-link-card {
        padding: 35px 20px;
    }

    .download-link-card h1 {
        font-size: 24px;
    }

}

/* =========================================================
   MYFLIX SEARCH PAGE
========================================================= */

.search-page {
    min-height: 100vh;
}


/* =========================================================
   SEARCH HERO
========================================================= */

.search-hero {
    padding: 70px 0 55px;
    background:
        radial-gradient(
            circle at top right,
            rgba(229, 9, 20, 0.16),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #111111 0%,
            #0b0b0b 100%
        );
    border-bottom: 1px solid #202020;
}

.search-hero .section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #e50914;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.search-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    font-weight: 800;
}

.search-hero p {
    max-width: 650px;
    margin: 16px 0 30px;
    color: #a7a7a7;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   SEARCH FORM
========================================================= */

.search-page-form {
    width: 100%;
    max-width: 760px;
}

.search-page-input-wrapper {
    display: flex;
    width: 100%;
    min-height: 58px;
    background: #181818;
    border: 1px solid #303030;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.search-page-input-wrapper:focus-within {
    border-color: #e50914;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}

.search-page-input-wrapper input {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
}

.search-page-input-wrapper input::placeholder {
    color: #777777;
}

.search-page-input-wrapper button {
    flex: 0 0 auto;
    padding: 0 28px;
    border: 0;
    background: #e50914;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-page-input-wrapper button:hover {
    background: #b20710;
}


/* =========================================================
   RESULTS HEADER
========================================================= */

.search-results-header {
    padding: 42px 0 10px;
}

.search-results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.search-results-heading .section-label {
    display: block;
    margin-bottom: 8px;
    color: #e50914;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.search-results-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
}

.search-results-heading h2 span {
    color: #a9a9a9;
}

.search-result-count {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid #292929;
    border-radius: 999px;
    background: #151515;
    color: #bcbcbc;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   SEARCH SECTIONS
========================================================= */

.search-section {
    padding: 30px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading .section-label {
    display: block;
    margin-bottom: 6px;
    color: #e50914;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
}

.section-view-all {
    flex-shrink: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-view-all:hover {
    color: #e50914;
}


/* =========================================================
   CONTENT GRID
========================================================= */

.search-section .content-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}


/* =========================================================
   CONTENT CARD
========================================================= */

.search-section .content-card {
    min-width: 0;
    overflow: hidden;
    background: #151515;
    border: 1px solid #242424;
    border-radius: 10px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.search-section .content-card:hover {
    transform: translateY(-5px);
    border-color: #3a3a3a;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   POSTER
========================================================= */

.search-section .content-card-poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #202020;
    text-decoration: none;
}

.search-section .content-card-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.search-section .content-card:hover
.content-card-poster img {
    transform: scale(1.05);
}


/* =========================================================
   POSTER PLACEHOLDER
========================================================= */

.search-section .poster-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            #252525,
            #101010
        );
}

.poster-placeholder span {
    color: #555555;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 3px;
}


/* =========================================================
   YEAR BADGE
========================================================= */

.search-section .card-year {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.82);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   TYPE BADGE
========================================================= */

.search-section .content-type-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    border-radius: 4px;
    background: #e50914;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* =========================================================
   CARD INFORMATION
========================================================= */

.search-section .content-card-info {
    padding: 15px;
}

.search-section .content-card-info h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.search-section .content-card-info h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-section .content-card-info h3 a:hover {
    color: #e50914;
}

.search-section .card-subtitle {
    display: -webkit-box;
    margin: 7px 0 0;
    overflow: hidden;
    color: #858585;
    font-size: 12px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   CARD META
========================================================= */

.search-section .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.search-section .card-meta span {
    position: relative;
    color: #777777;
    font-size: 11px;
}

.search-section .card-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 6px;
    color: #444444;
}


/* =========================================================
   CARD ACTIONS
========================================================= */

.search-section .content-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 15px;
}

.search-section .card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid #303030;
    border-radius: 5px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.search-section .card-button.primary {
    border-color: #e50914;
    background: #e50914;
}

.search-section .card-button.primary:hover {
    background: #b20710;
    border-color: #b20710;
}

.search-section .card-button.secondary {
    background: #202020;
}

.search-section .card-button.secondary:hover {
    border-color: #555555;
    background: #292929;
}

.search-section .card-button.download {
    grid-column: 1 / -1;
    border-color: #333333;
    background: transparent;
}

.search-section .card-button.download:hover {
    border-color: #e50914;
    color: #e50914;
}


/* =========================================================
   EMPTY SEARCH
========================================================= */

.search-empty {
    padding: 70px 0 100px;
}

.search-empty-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 55px 35px;
    text-align: center;
    background: #151515;
    border: 1px solid #262626;
    border-radius: 12px;
}

.search-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #202020;
    font-size: 28px;
}

.search-empty-card .section-label {
    display: block;
    margin-bottom: 10px;
    color: #e50914;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.search-empty-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 30px;
}

.search-empty-card p {
    max-width: 500px;
    margin: 15px auto 0;
    color: #888888;
    font-size: 15px;
    line-height: 1.7;
}

.search-empty-card strong {
    color: #ffffff;
}

.search-empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}


/* =========================================================
   BUTTONS
========================================================= */

.search-empty-actions .btn-primary,
.search-empty-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.search-empty-actions .btn-primary {
    background: #e50914;
    border: 1px solid #e50914;
    color: #ffffff;
}

.search-empty-actions .btn-primary:hover {
    background: #b20710;
    border-color: #b20710;
}

.search-empty-actions .btn-secondary {
    background: #202020;
    border: 1px solid #353535;
    color: #ffffff;
}

.search-empty-actions .btn-secondary:hover {
    border-color: #e50914;
    color: #e50914;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .search-section .content-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 850px) {

    .search-hero {
        padding: 55px 0 45px;
    }

    .search-section .content-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .search-results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .search-hero {
        padding: 40px 0 35px;
    }

    .search-hero h1 {
        font-size: 32px;
    }

    .search-hero p {
        font-size: 14px;
        margin-bottom: 22px;
    }


    /* SEARCH FORM */

    .search-page-input-wrapper {
        display: flex;
        min-height: 50px;
    }

    .search-page-input-wrapper input {
        padding: 0 14px;
        font-size: 14px;
    }

    .search-page-input-wrapper button {
        padding: 0 16px;
        font-size: 13px;
    }


    /* RESULTS */

    .search-results-header {
        padding: 30px 0 5px;
    }

    .search-results-heading h2 {
        font-size: 23px;
    }


    /* SECTION */

    .search-section {
        padding: 22px 0;
    }

    .section-heading {
        margin-bottom: 17px;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .section-view-all {
        font-size: 12px;
    }


    /* GRID */

    .search-section .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }


    /* CARD */

    .search-section .content-card-info {
        padding: 11px;
    }

    .search-section .content-card-info h3 {
        font-size: 14px;
    }

    .search-section .card-subtitle {
        font-size: 11px;
    }

    .search-section .card-meta {
        margin-top: 9px;
        gap: 4px;
    }

    .search-section .card-meta span {
        font-size: 10px;
    }


    /* ACTIONS */

    .search-section .content-card-actions {
        gap: 5px;
        margin-top: 11px;
    }

    .search-section .card-button {
        min-height: 31px;
        padding: 5px 5px;
        font-size: 10px;
    }


    /* EMPTY */

    .search-empty {
        padding: 45px 0 70px;
    }

    .search-empty-card {
        padding: 40px 20px;
    }

    .search-empty-card h2 {
        font-size: 25px;
    }

    .search-empty-card p {
        font-size: 13px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .search-section .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .search-section .content-card-info {
        padding: 9px;
    }

    .search-section .content-card-info h3 {
        font-size: 13px;
    }

    .search-section .card-button {
        font-size: 9px;
    }

}