/* =========================================================
   123MOVIES MODERN HOME
   Depends on /css/main.css
   ========================================================= */

.home-body {
    background:
        radial-gradient(circle at 50% -10%, rgba(227,38,46,.08), transparent 32%),
        var(--site-bg);
    color: var(--text-main);
}


/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */

.home-header {
    position: sticky;
    top: 0;
    z-index: 5000;
    height: 70px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(8,11,15,.96);
    backdrop-filter: blur(14px);
}

.home-header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: #f4f5f6;
    text-decoration: none;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

.home-brand:hover {
    color: #fff;
}

.home-brand-red {
    color: var(--brand-red);
}

.home-brand-play {
    position: relative;
    width: 23px;
    height: 23px;
    margin: 0 2px;
    border-radius: 50%;
    background: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(227,38,46,.07);
}

.home-brand-play:after {
    content: "";
    position: absolute;
    top: 6px;
    left: 9px;
    border-left: 7px solid #fff;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 21px;
    flex: 1 1 auto;
}

.home-nav a {
    position: relative;
    padding: 26px 0 23px;
    color: #a8b0b9;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.home-nav a:hover,
.home-nav a.active {
    color: #fff;
}

.home-nav a.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--brand-red);
}

.home-menu-button {
    display: none;
    width: 38px;
    height: 38px;
    padding: 8px;
    border: 0;
    border-radius: 7px;
    background: #151a20;
    cursor: pointer;
}

.home-menu-button span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: #e8ebee;
}


/* ---------------------------------------------------------
   Search
--------------------------------------------------------- */

.home-search-shell {
    position: relative;
    flex: 0 0 auto;
}

.home-search-open {
    width: 39px;
    height: 39px;
    padding: 0;
    border: 1px solid #252c34;
    border-radius: 8px;
    background: #11161c;
    cursor: pointer;
}

.home-search-open:hover {
    border-color: #493035;
    background: #171d24;
}

.home-search-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid #f5f6f7;
    border-radius: 50%;
    position: relative;
}

.home-search-icon:after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: #f5f6f7;
    transform: rotate(45deg);
}

.home-search-panel {
    display: none;
    position: absolute;
    z-index: 6000;
    top: 48px;
    right: 0;
    width: 430px;
}

.home-search-panel.is-open {
    display: block;
}

.home-search-form {
    display: flex;
    min-height: 48px;
    overflow: hidden;
    border: 1px solid #303740;
    border-radius: 8px;
    background: #10151b;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.home-search-form input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
}

.home-search-form input::placeholder {
    color: #6e7882;
}

.home-search-form button {
    width: 52px;
    border: 0;
    border-left: 1px solid #303740;
    background: var(--brand-red);
    cursor: pointer;
}

.home-search-form button:hover {
    background: var(--brand-red-hover);
}

.home-search-suggest {
    display: none;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid #2a3139;
    border-radius: 8px;
    background: #10151b;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
}

.home-search-suggest.is-open {
    display: block;
}

/* Re-skin existing /ajax/live.php output */
.home-search-suggest .live-result-item {
    display: flex !important;
    align-items: flex-start !important;
    padding: 9px 10px !important;
    border-bottom: 1px solid #222931 !important;
    background: #10151b !important;
    color: #e9ecf0 !important;
    text-decoration: none !important;
}

.home-search-suggest .live-result-item:hover {
    background: #171d24 !important;
}

.home-search-suggest .live-result-poster {
    width: 40px !important;
    height: 60px !important;
    object-fit: cover !important;
    flex: 0 0 40px !important;
    margin-right: 10px !important;
    border-radius: 4px !important;
    background: #1b2026 !important;
}

.home-search-suggest .live-result-info {
    min-width: 0 !important;
    line-height: 1.35 !important;
}

.home-search-suggest .live-result-title {
    color: #f0f2f4 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
}

.home-search-suggest .live-result-meta {
    color: #89939e !important;
    font-size: 12px !important;
    margin-bottom: 2px !important;
}

.home-search-suggest .live-result-type {
    color: var(--brand-red) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.home-search-suggest .live-view-all {
    display: block !important;
    padding: 10px !important;
    text-align: center !important;
    background: var(--brand-red) !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}


/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */

.home-hero {
    position: relative;
    min-height: 540px;
    background-position: center 22%;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,7,10,.98) 0%, rgba(5,7,10,.85) 32%, rgba(5,7,10,.36) 64%, rgba(5,7,10,.70) 100%),
        linear-gradient(0deg, #080b0f 0%, transparent 36%, rgba(0,0,0,.13) 100%);
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 540px;
    display: flex;
    align-items: center;
}

.home-hero-content {
    width: 100%;
    max-width: 610px;
    padding: 68px 0 80px;
}

.home-featured-label {
    display: inline-block;
    margin-bottom: 15px;
    padding: 6px 9px;
    border-radius: 4px;
    background: var(--brand-red);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 680px;
    margin: 0 0 15px;
    color: #fff;
    font-size: 48px;
    line-height: 1.05;
    letter-spacing: -1.6px;
    text-shadow: 0 3px 25px rgba(0,0,0,.35);
}

.home-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    color: #c5cbd1;
    font-size: 12px;
    font-weight: 700;
}

.home-hero-meta > span {
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 5px;
    background: rgba(10,13,17,.55);
}

.home-hero-rating span {
    color: var(--imdb-yellow);
}

.home-hero-genre {
    margin-bottom: 15px;
    color: #9ca5ae;
    font-size: 12px;
    line-height: 1.5;
}

.home-hero-content p {
    max-width: 580px;
    margin: 0 0 26px;
    color: #a9b1ba;
    font-size: 14px;
    line-height: 1.75;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-button-play {
    width: 0;
    height: 0;
    margin-right: 9px;
    border-left: 8px solid #fff;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}


/* ---------------------------------------------------------
   Benefits
--------------------------------------------------------- */

.home-benefits {
    margin-top: -28px;
    position: relative;
    z-index: 4;
}

.home-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid #1e252c;
    border-radius: 10px;
    background: #11161c;
    box-shadow: 0 15px 45px rgba(0,0,0,.22);
}

.home-benefit {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 20px;
    border-right: 1px solid #20272e;
}

.home-benefit:last-child {
    border-right: 0;
}

.home-benefit-link {
    text-decoration: none;
}

.home-benefit-link:hover {
    background: #151b22;
}

.home-benefit-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(227,38,46,.1);
    color: var(--brand-red);
    font-size: 17px;
    font-weight: 900;
}

.home-benefit strong {
    display: block;
    margin-bottom: 4px;
    color: #eceff2;
    font-size: 12px;
}

.home-benefit small {
    display: block;
    color: #7f8994;
    font-size: 11px;
    line-height: 1.35;
}


/* ---------------------------------------------------------
   Sections / rows
--------------------------------------------------------- */

.home-section {
    padding: 54px 0 6px;
}

.home-section + .home-section {
    padding-top: 46px;
}

.home-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 18px;
}

.home-section-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-section-kicker {
    width: 3px;
    height: 23px;
    border-radius: 3px;
    background: var(--brand-red);
}

.home-section-heading h2 {
    margin: 0;
    color: #f2f4f6;
    font-size: 21px;
    line-height: 1.2;
}

.home-section-heading > a {
    color: var(--brand-red);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.home-section-heading > a:hover {
    color: var(--brand-red-hover);
}

.home-section-heading > a span {
    margin-left: 4px;
    font-size: 18px;
    vertical-align: -1px;
}

.home-row-shell {
    position: relative;
}

.home-card-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 170px;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 2px 15px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.home-card-row::-webkit-scrollbar {
    display: none;
}

.home-card {
    min-width: 0;
    scroll-snap-align: start;
}

.home-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid #1d242b;
    border-radius: 8px;
    background: #13181e;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.home-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.home-card-link:hover .home-poster img {
    transform: scale(1.045);
    opacity: .72;
}

.home-rating {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 5px 7px;
    border-radius: 5px;
    background: rgba(5,7,10,.88);
    color: #f2f3f5;
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

.home-star {
    color: var(--imdb-yellow);
}

.home-play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .22s ease;
}

.home-card-link:hover .home-play-hover {
    opacity: 1;
}

.home-play-hover:before {
    content: "";
    position: absolute;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    background: var(--brand-red);
    box-shadow: 0 8px 25px rgba(0,0,0,.35);
}

.home-play-hover span {
    position: relative;
    z-index: 1;
    margin-left: 3px;
    border-left: 11px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

.home-card h3 {
    min-height: 34px;
    margin: 9px 1px 3px;
    overflow: hidden;
    color: #e7eaed;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.home-card-link:hover h3 {
    color: #fff;
}

.home-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #68727c;
    font-size: 10px;
}

.home-card-meta span:last-child {
    color: #8b949e;
}

.home-row-arrow {
    position: absolute;
    z-index: 15;
    top: 42%;
    width: 37px;
    height: 50px;
    transform: translateY(-50%);
    border: 1px solid #2b3239;
    border-radius: 8px;
    background: rgba(12,16,21,.92);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity .18s ease, background .18s ease;
}

.home-row-shell:hover .home-row-arrow {
    opacity: 1;
}

.home-row-arrow:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.home-row-arrow.left {
    left: -17px;
}

.home-row-arrow.right {
    right: -17px;
}


/* ---------------------------------------------------------
   Genre tabs
--------------------------------------------------------- */

.home-genres {
    padding-bottom: 52px;
}

.home-genre-heading {
    margin-bottom: 13px;
}

.home-genre-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.home-genre-tab {
    padding: 8px 13px;
    border: 1px solid #252c34;
    border-radius: 6px;
    background: #11161c;
    color: #9ca5ae;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.home-genre-tab:hover {
    color: #fff;
    border-color: #453036;
}

.home-genre-tab.active {
    border-color: var(--brand-red);
    background: var(--brand-red);
    color: #fff;
}

.home-genre-panel {
    display: none;
}

.home-genre-panel.active {
    display: block;
}


/* ---------------------------------------------------------
   Bottom CTA + footer
--------------------------------------------------------- */

.home-bottom-cta {
    padding: 45px 0;
    border-top: 1px solid #181e24;
    border-bottom: 1px solid #181e24;
    background:
        radial-gradient(circle at 20% 50%, rgba(227,38,46,.08), transparent 30%),
        #0d1217;
}

.home-bottom-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.home-bottom-cta span {
    display: block;
    margin-bottom: 7px;
    color: #7e8993;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

.home-bottom-cta h2 {
    margin: 0;
    color: #f2f4f6;
    font-size: 25px;
}

.home-footer {
    padding: 35px 0;
    background: #080b0f;
}

.home-footer-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.home-footer-brand {
    font-size: 19px;
    letter-spacing: -1px;
}

.home-footer-brand .home-brand-play {
    width: 18px;
    height: 18px;
}

.home-footer-brand .home-brand-play:after {
    top: 5px;
    left: 7px;
    border-left-width: 6px;
    border-top-width: 4px;
    border-bottom-width: 4px;
}

.home-footer-links {
    display: flex;
    flex: 1 1 auto;
    gap: 17px;
    flex-wrap: wrap;
}

.home-footer-links a {
    color: #717b85;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.home-footer-links a:hover {
    color: var(--brand-red);
}

.home-footer-copy {
    color: #56616b;
    font-size: 10px;
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 1050px) {

    .home-header-inner {
        gap: 16px;
    }

    .home-nav {
        gap: 13px;
    }

    .home-nav a {
        font-size: 11px;
    }

    .home-card-row {
        grid-auto-columns: 156px;
    }
}


@media (max-width: 850px) {

    .home-header {
        height: 64px;
    }

    .home-header-inner {
        min-height: 64px;
    }

    .home-brand {
        font-size: 22px;
    }

    .home-menu-button {
        display: block;
        margin-left: auto;
    }

    .home-nav {
        display: none;
        position: absolute;
        z-index: 5200;
        top: 64px;
        left: 14px;
        right: 14px;
        padding: 10px;
        border: 1px solid #252c34;
        border-radius: 9px;
        background: #10151b;
        box-shadow: 0 18px 50px rgba(0,0,0,.45);
    }

    .home-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }

    .home-nav a {
        padding: 11px 12px;
        border-radius: 6px;
    }

    .home-nav a:hover,
    .home-nav a.active {
        background: #171d24;
    }

    .home-nav a.active:after {
        display: none;
    }

    .home-search-panel {
        position: fixed;
        top: 72px;
        left: 14px;
        right: 14px;
        width: auto;
    }

    .home-hero,
    .home-hero-inner {
        min-height: 490px;
    }

    .home-hero h1 {
        font-size: 40px;
    }

    .home-benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-benefit:nth-child(2) {
        border-right: 0;
    }

    .home-benefit:nth-child(1),
    .home-benefit:nth-child(2) {
        border-bottom: 1px solid #20272e;
    }

    .home-card-row {
        grid-auto-columns: 150px;
    }

    .home-row-arrow {
        display: none;
    }
}


@media (max-width: 600px) {

    .home-header-inner {
        gap: 10px;
    }

    .home-brand {
        font-size: 20px;
    }

    .home-brand-play {
        width: 19px;
        height: 19px;
    }

    .home-brand-play:after {
        top: 5px;
        left: 7px;
        border-left-width: 6px;
        border-top-width: 4px;
        border-bottom-width: 4px;
    }

    .home-menu-button,
    .home-search-open {
        width: 36px;
        height: 36px;
    }

    .home-hero {
        min-height: 455px;
        background-position: 64% center;
    }

    .home-hero-inner {
        min-height: 455px;
        align-items: flex-end;
    }

    .home-hero-shade {
        background:
            linear-gradient(0deg, rgba(5,7,10,.99) 0%, rgba(5,7,10,.87) 48%, rgba(5,7,10,.36) 100%),
            linear-gradient(90deg, rgba(5,7,10,.78), rgba(5,7,10,.12));
    }

    .home-hero-content {
        padding: 60px 0 52px;
    }

    .home-hero h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .home-hero-content p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 13px;
    }

    .home-hero-genre {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .home-hero-actions .site-button {
        flex: 1 1 auto;
    }

    .home-benefits {
        margin-top: 0;
        padding-top: 12px;
    }

    .home-benefit-grid {
        grid-template-columns: 1fr;
    }

    .home-benefit {
        min-height: 70px;
        border-right: 0;
        border-bottom: 1px solid #20272e;
    }

    .home-benefit:last-child {
        border-bottom: 0;
    }

    .home-section {
        padding-top: 40px;
    }

    .home-section + .home-section {
        padding-top: 36px;
    }

    .home-section-heading h2 {
        font-size: 18px;
    }

    .home-card-row {
        grid-auto-columns: 136px;
        gap: 11px;
    }

    .home-card h3 {
        font-size: 11px;
    }

    .home-rating {
        top: 6px;
        left: 6px;
        padding: 4px 6px;
    }

    .home-bottom-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-bottom-cta h2 {
        font-size: 21px;
    }

    .home-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }
}


/* =========================================================
   FEATURED HERO SLIDER
   ========================================================= */

.home-hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: #080b0f;
}

.home-hero-slides {
    position: relative;
    min-height: 540px;
}

.home-hero-slide {
    position: absolute;
    inset: 0;
    min-height: 540px;
    background-position: center 22%;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .65s ease, visibility .65s ease;
}

.home-hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-hero-slide .home-hero-content {
    transform: translateY(8px);
    opacity: 0;
    transition: transform .55s ease .12s, opacity .55s ease .12s;
}

.home-hero-slide.active .home-hero-content {
    transform: translateY(0);
    opacity: 1;
}

.home-hero-arrow {
    position: absolute;
    z-index: 20;
    top: 50%;
    width: 42px;
    height: 58px;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 8px;
    background: rgba(8,11,15,.58);
    color: #fff;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
    opacity: .62;
    backdrop-filter: blur(6px);
    transition: opacity .18s ease, background .18s ease, border-color .18s ease;
}

.home-hero:hover .home-hero-arrow {
    opacity: 1;
}

.home-hero-arrow:hover {
    border-color: var(--brand-red);
    background: var(--brand-red);
}

.home-hero-prev {
    left: 20px;
}

.home-hero-next {
    right: 20px;
}

.home-hero-dots {
    position: absolute;
    z-index: 21;
    left: 50%;
    bottom: 48px;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.home-hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.42);
    cursor: pointer;
    transition: width .2s ease, border-radius .2s ease, background .2s ease;
}

.home-hero-dot.active {
    width: 24px;
    border-radius: 8px;
    background: var(--brand-red);
}

@media (max-width: 850px) {
    .home-hero,
    .home-hero-slides,
    .home-hero-slide {
        min-height: 490px;
    }

    .home-hero-prev {
        left: 8px;
    }

    .home-hero-next {
        right: 8px;
    }

    .home-hero-arrow {
        width: 36px;
        height: 50px;
    }

    .home-hero-dots {
        bottom: 26px;
    }
}

@media (max-width: 600px) {
    .home-hero,
    .home-hero-slides,
    .home-hero-slide {
        min-height: 455px;
    }

    .home-hero-slide {
        background-position: 64% center;
    }

    .home-hero-arrow {
        display: none;
    }

    .home-hero-dots {
        bottom: 16px;
    }
}

/* =========================================================
   SINGLE HOMEPAGE NOTICE
   Text is controlled from $home_notice in home.php
   ========================================================= */

.home-notice {
    position: relative;
    z-index: 6;
    padding: 12px 0 2px;
    background: var(--site-bg);
}

.home-notice-inner {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 16px;
    border: 1px solid #20272e;
    border-radius: 8px;
    background: #0f141a;
}

.home-notice-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(227,38,46,.09);
    color: var(--brand-red);
    font-size: 12px;
}

.home-notice p {
    margin: 0;
    color: #9ca5ae;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .home-notice {
        padding-top: 9px;
    }

    .home-notice-inner {
        min-height: 48px;
        padding: 10px 12px;
    }

    .home-notice p {
        font-size: 11px;
    }
}

/* =========================================================
   TRENDING / TOP RATED TABS
   ========================================================= */

.home-ranking-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.home-ranking-tab {
    padding: 8px 13px;
    border: 1px solid #252c34;
    border-radius: 6px;
    background: #11161c;
    color: #9ca5ae;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.home-ranking-tab:hover {
    color: #fff;
    border-color: #453036;
}

.home-ranking-tab.active {
    border-color: var(--brand-red);
    background: var(--brand-red);
    color: #fff;
}

.home-ranking-panel {
    display: none;
}

.home-ranking-panel.active {
    display: block;
}

/* =========================================================
   POPULAR MOVIES TABS
   Intentionally inherit the exact Genre tab appearance.
   ========================================================= */

.home-ranking-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.home-ranking-tabs .home-ranking-tab {
    padding: 8px 13px;
    border: 1px solid #252c34;
    border-radius: 6px;
    background: #11161c;
    color: #9ca5ae;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.home-ranking-tabs .home-ranking-tab:hover {
    color: #fff;
    border-color: #453036;
}

.home-ranking-tabs .home-ranking-tab.active {
    border-color: var(--brand-red);
    background: var(--brand-red);
    color: #fff;
}

/* =========================================================
   HOME CONTENT UPGRADE
   Desktop search + richer cards + latest episodes
   ========================================================= */

/* Desktop: search box is always visible. */
@media (min-width: 851px) {
    .home-search-shell {
        width: 285px;
        flex: 0 0 285px;
    }

    .home-search-open {
        display: none;
    }

    .home-search-panel,
    .home-search-panel.is-open {
        display: block;
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
    }

    .home-search-form {
        min-height: 40px;
        box-shadow: none;
    }

    .home-search-form input {
        padding: 0 12px;
        font-size: 12px;
    }

    .home-search-form button {
        width: 44px;
    }

    .home-search-suggest {
        position: absolute;
        z-index: 7000;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        margin-top: 0;
        max-height: 520px;
        overflow-y: auto;
    }
}


/* Card metadata is useful but stays quiet. */
.home-card-meta {
    min-height: 18px;
    align-items: center;
}

.home-meta-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 6px;
    border: 1px solid #2a323a;
    border-radius: 4px;
    background: #11171d;
    color: #9ea7b0 !important;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.home-episode-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 5px 7px;
    border-radius: 5px;
    background: rgba(227,38,46,.92);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .2px;
}

.home-episode-card .home-card-meta > span:first-child {
    color: #8e98a2;
    font-weight: 700;
}


/* At medium desktop widths, give nav/search enough breathing room. */
@media (min-width: 851px) and (max-width: 1100px) {
    .home-header-inner {
        gap: 14px;
    }

    .home-nav {
        gap: 10px;
    }

    .home-nav a {
        font-size: 10px;
    }

    .home-search-shell {
        width: 235px;
        flex-basis: 235px;
    }
}


/* Mobile keeps the original icon -> popup search behavior. */
@media (max-width: 850px) {
    .home-search-shell {
        width: auto;
        flex: 0 0 auto;
    }

    .home-search-open {
        display: block;
    }

    .home-search-panel {
        display: none;
        position: fixed;
        top: 72px;
        left: 14px;
        right: 14px;
        width: auto;
    }

    .home-search-panel.is-open {
        display: block;
    }

    .home-search-suggest {
        position: static;
        margin-top: 6px;
        max-height: 55vh;
        overflow-y: auto;
    }
}

/* =========================================================
   LOCKED HOMEPAGE DESIGN v15
   Original poster-first structure + polished discovery layer.
   ========================================================= */

.home-body{
    background:#080b0f;
    color:#edf1f4;
}

.home-main-locked{
    overflow:hidden;
}

/* Hero: shorter, cinematic, readable. */
.home-hero,
.home-hero-inner{
    min-height:410px !important;
}

.home-hero-shade{
    background:
        linear-gradient(90deg,rgba(5,7,10,.97) 0%,rgba(5,7,10,.86) 31%,rgba(5,7,10,.34) 64%,rgba(5,7,10,.48) 100%),
        linear-gradient(0deg,#080b0f 0%,rgba(8,11,15,.22) 32%,rgba(0,0,0,.08) 100%) !important;
}

.home-hero-content{
    max-width:590px !important;
    padding:54px 0 62px !important;
}

.home-featured-label{
    margin-bottom:10px !important;
    padding:5px 8px !important;
    font-size:9px !important;
}

.home-hero h1{
    margin-bottom:10px !important;
    font-size:44px !important;
    line-height:1.02 !important;
    letter-spacing:-1.3px !important;
}

.home-hero-description{
    max-width:535px;
    margin:0 0 13px;
    color:#c1c8cf;
    font-size:13px;
    line-height:1.55;
    text-shadow:0 2px 16px rgba(0,0,0,.52);
}

.home-hero-meta{
    margin-bottom:8px !important;
}

.home-hero-meta>span{
    padding:5px 8px !important;
}

.home-hero-genre{
    margin-bottom:14px !important;
    color:#9fa9b2 !important;
}

.home-hero-actions{
    gap:10px !important;
}

.home-hero-arrow{
    width:38px !important;
    height:46px !important;
    border-radius:7px !important;
    background:rgba(8,12,16,.68) !important;
}

.home-hero-dots{
    bottom:14px !important;
}

/* Notice + advertising. */
.home-notice{
    padding:8px 0 0;
}

.home-notice-inner{
    min-height:42px;
    padding:9px 14px;
    border:1px solid #202832;
    border-radius:8px;
    background:#0e141a;
}

.home-notice-icon{
    color:#ef3340;
    font-weight:900;
}

.home-notice-inner p{
    margin:0;
    color:#aab4be;
    font-size:11px;
}

.home-ad-section{
    padding:12px 0 2px;
}

.home-ad-slot{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    overflow:hidden;
}

/* Shared section rhythm. */
.home-locked-section{
    padding:26px 0 4px;
}

.home-locked-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    margin-bottom:13px;
}

.home-locked-heading>div:first-child{
    position:relative;
    min-width:0;
    padding-left:14px;
}

.home-locked-heading>div:first-child:before{
    content:"";
    position:absolute;
    left:0;
    top:2px;
    width:3px;
    height:29px;
    border-radius:999px;
    background:#ef3340;
}

.home-locked-heading h2{
    margin:0;
    color:#f4f6f8;
    font-size:21px;
    line-height:1.12;
    letter-spacing:-.35px;
}

.home-locked-heading p{
    margin:4px 0 0;
    color:#7f8b96;
    font-size:11px;
    line-height:1.4;
}

.home-view-all{
    flex:0 0 auto;
    color:#ef4851;
    font-size:10px;
    font-weight:900;
    text-decoration:none;
}

.home-view-all:hover{
    color:#fff;
}

/* Continue Watching integrates with the account sync without a sidebar. */
.watch-history-continue.home-locked-section{
    padding-top:24px;
}

.watch-history-continue .watch-history-heading{
    margin-bottom:12px;
}

.watch-history-continue .watch-history-heading>div:first-child{
    position:relative;
    padding-left:14px;
}

.watch-history-continue .watch-history-heading>div:first-child:before{
    content:"";
    position:absolute;
    left:0;
    top:2px;
    width:3px;
    height:29px;
    border-radius:999px;
    background:#ef3340;
}

.watch-history-continue .watch-history-kicker{
    display:none;
}

/* Popular tabs. */
.home-locked-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:0 0 13px;
}

.home-popularity-tab{
    min-height:30px;
    padding:0 14px;
    border:1px solid #25303a;
    border-radius:999px;
    background:#10161c;
    color:#9aa5af;
    font-family:inherit;
    font-size:10px;
    font-weight:800;
    cursor:pointer;
}

.home-popularity-tab:hover{
    color:#fff;
    border-color:#384550;
}

.home-popularity-tab.active{
    border-color:#ef3340;
    background:#ef3340;
    color:#fff;
    box-shadow:0 5px 18px rgba(239,51,64,.18);
}

.home-popularity-panel{
    display:none;
}

.home-popularity-panel.active{
    display:block;
}

.home-row-shell{
    position:relative;
}

.home-row-arrow{
    position:absolute;
    z-index:12;
    top:40%;
    width:34px;
    height:48px;
    border:1px solid #27323c;
    border-radius:7px;
    background:rgba(9,13,18,.92);
    color:#fff;
    font-size:25px;
    line-height:1;
    opacity:0;
    cursor:pointer;
    transition:.16s ease;
}

.home-row-shell:hover>.home-row-arrow{
    opacity:.96;
}

.home-row-arrow.left{left:-10px;}
.home-row-arrow.right{right:-10px;}

/* Tonight's picks. */
.home-tonight-section{
    padding-top:31px;
}

.home-tonight-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.home-tonight-grid>.site-watchlist-card-wrap{
    min-width:0;
}

.home-tonight-card{
    display:grid;
    grid-template-columns:118px minmax(0,1fr);
    min-height:184px;
    overflow:hidden;
    border:1px solid #26313a;
    border-radius:10px;
    background:linear-gradient(135deg,#11171e,#0b1015);
}

.home-tonight-fast{
    background:linear-gradient(135deg,rgba(56,33,84,.62),#0c1116 70%);
}

.home-tonight-top{
    background:linear-gradient(135deg,rgba(91,33,34,.52),#0c1116 70%);
}

.home-tonight-personal{
    background:linear-gradient(135deg,rgba(24,56,79,.58),#0c1116 70%);
}

.home-tonight-poster{
    min-width:0;
    overflow:hidden;
    background:#151b22;
}

.home-tonight-poster img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.home-tonight-copy{
    min-width:0;
    padding:18px 15px 14px;
}

.home-tonight-eyebrow{
    margin-bottom:5px;
    color:#df7cff;
    font-size:10px;
    font-weight:900;
    letter-spacing:.3px;
}

.home-tonight-top .home-tonight-eyebrow{color:#ff5b64;}
.home-tonight-personal .home-tonight-eyebrow{color:#65c8ff;}

.home-tonight-reason{
    min-height:28px;
    margin-bottom:5px;
    color:#9ba6b0;
    font-size:10px;
    line-height:1.35;
}

.home-tonight-card h3{
    margin:0 0 6px;
    overflow:hidden;
    color:#fff;
    font-size:18px;
    line-height:1.12;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.home-tonight-meta{
    display:flex;
    flex-wrap:wrap;
    gap:5px 8px;
    min-height:34px;
    color:#909ca7;
    font-size:9px;
    line-height:1.35;
}

.home-tonight-action{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:32px;
    margin-top:8px;
    padding:0 12px;
    border:1px solid #34414d;
    border-radius:6px;
    background:#151c23;
    color:#f5f7f9;
    font-size:10px;
    font-weight:900;
    text-decoration:none;
}

.home-tonight-action:hover{
    border-color:#ef3340;
    background:#ef3340;
    color:#fff;
}

/* Latest movies + TV in one compact row pair. */
.home-latest-split{
    padding-top:32px;
}

.home-latest-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:26px;
}

.home-latest-column{
    min-width:0;
}

.home-latest-heading{
    margin-bottom:11px;
}

.home-latest-heading h2{
    font-size:18px;
}

.home-latest-row{
    grid-auto-columns:132px !important;
    gap:13px !important;
}

.home-latest-row .poster-card h3{
    font-size:10px;
    min-height:30px;
}

/* Explore Your Way: discovery + utility merged into one section. */
.home-explore-section{
    padding-top:32px;
}

.home-explore-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.home-explore-card{
    display:grid;
    grid-template-columns:44px minmax(0,1fr) 20px;
    align-items:center;
    gap:11px;
    min-height:82px;
    padding:13px 14px;
    overflow:hidden;
    border:1px solid #2a323a;
    border-radius:9px;
    color:#f3f5f7;
    text-decoration:none;
    transition:transform .16s ease,border-color .16s ease,filter .16s ease;
}

.home-explore-card:hover{
    transform:translateY(-2px);
    filter:brightness(1.08);
}

.home-explore-icon{
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    font-size:22px;
    font-weight:900;
}

.home-explore-card strong{
    display:block;
    margin-bottom:3px;
    font-size:13px;
    line-height:1.15;
}

.home-explore-card small{
    display:block;
    color:rgba(235,240,244,.7);
    font-size:9px;
    line-height:1.35;
}

.home-explore-card>b{
    justify-self:end;
    font-size:22px;
    font-weight:400;
}

.explore-red{background:linear-gradient(100deg,rgba(103,25,31,.74),rgba(39,18,22,.88));border-color:#643037;}
.explore-blue{background:linear-gradient(100deg,rgba(16,74,104,.72),rgba(12,35,48,.9));border-color:#285d78;}
.explore-green{background:linear-gradient(100deg,rgba(15,82,67,.7),rgba(11,42,36,.9));border-color:#2a675a;}
.explore-purple{background:linear-gradient(100deg,rgba(71,32,101,.72),rgba(35,20,50,.9));border-color:#583b6f;}
.explore-gold{background:linear-gradient(100deg,rgba(112,72,11,.75),rgba(54,36,10,.9));border-color:#7d5a1b;}

/* Real site activity strip. */
.home-stats-section{
    padding:26px 0 30px;
}

.home-stats-strip{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    overflow:hidden;
    border:1px solid #202a33;
    border-radius:9px;
    background:#0e141a;
}

.home-stat-item{
    position:relative;
    display:grid;
    grid-template-columns:38px 1fr;
    grid-template-rows:auto auto;
    align-items:center;
    min-height:70px;
    padding:12px 17px;
    border-right:1px solid #202a33;
}

.home-stat-item:last-child{border-right:0;}

.home-stat-icon{
    grid-row:1/3;
    width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    background:#151d25;
    color:#d7dde2;
    font-size:15px;
}

.home-stat-item strong{
    align-self:end;
    color:#f5f7f9;
    font-size:16px;
    line-height:1.05;
}

.home-stat-item small{
    align-self:start;
    margin-top:3px;
    color:#84909b;
    font-size:9px;
}

.home-stat-live .home-stat-icon{
    color:#ef3340;
}

/* Give posters a little more air than the previous mockup. */
.home-popular-locked .home-card-row{
    padding-left:1px;
    padding-right:1px;
}

@media(max-width:1100px){
    .home-tonight-card{grid-template-columns:104px minmax(0,1fr);}
    .home-latest-grid{gap:18px;}
    .home-latest-row{grid-auto-columns:124px !important;}
}

@media(max-width:900px){
    .home-hero,.home-hero-inner{min-height:370px !important;}
    .home-hero h1{font-size:38px !important;}
    .home-tonight-grid{grid-template-columns:1fr;}
    .home-tonight-card{grid-template-columns:116px minmax(0,1fr);min-height:170px;}
    .home-latest-grid{grid-template-columns:1fr;gap:28px;}
    .home-latest-row{grid-auto-columns:150px !important;}
    .home-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .home-stats-strip{grid-template-columns:repeat(2,minmax(0,1fr));}
    .home-stat-item:nth-child(2){border-right:0;}
    .home-stat-item:nth-child(-n+2){border-bottom:1px solid #202a33;}
}

@media(max-width:700px){
    .home-hero,.home-hero-inner{min-height:335px !important;}
    .home-hero-content{padding:42px 0 48px !important;max-width:92% !important;}
    .home-hero h1{font-size:31px !important;}
    .home-hero-description{max-width:90%;font-size:11px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
    .home-hero-meta>span{font-size:10px !important;}
    .home-locked-section{padding-top:22px;}
    .home-locked-heading{align-items:flex-start;}
    .home-locked-heading h2{font-size:19px;}
    .home-row-arrow{display:none;}
    .home-explore-grid{grid-template-columns:1fr;}
    .home-explore-card{min-height:74px;}
}

@media(max-width:480px){
    .home-hero,.home-hero-inner{min-height:310px !important;}
    .home-featured-label{display:none;}
    .home-hero h1{font-size:28px !important;}
    .home-hero-genre{font-size:10px !important;}
    .home-tonight-card{grid-template-columns:92px minmax(0,1fr);min-height:150px;}
    .home-tonight-copy{padding:14px 12px 11px;}
    .home-tonight-card h3{font-size:16px;}
    .home-tonight-reason{min-height:0;}
    .home-tonight-meta{min-height:0;}
    .home-latest-row{grid-auto-columns:138px !important;}
    .home-stats-strip{grid-template-columns:1fr 1fr;}
    .home-stat-item{padding:10px 12px;grid-template-columns:32px 1fr;}
    .home-stat-icon{width:28px;height:28px;}
    .home-stat-item strong{font-size:14px;}
}

/* Homepage poster grammar: rating left, heart right, no quality badge. */
.home-body .poster-card-quality{display:none !important;}
.home-body .home-card-row{grid-auto-columns:178px;gap:18px;padding-bottom:14px;}
.home-body .poster-card-image{border-radius:9px;}
@media(max-width:1050px){.home-body .home-card-row{grid-auto-columns:164px;gap:16px;}}
@media(max-width:850px){.home-body .home-card-row{grid-auto-columns:152px;gap:14px;}}
@media(max-width:600px){.home-body .home-card-row{grid-auto-columns:142px;gap:12px;}}
.home-body .home-latest-row{grid-auto-columns:132px !important;gap:13px !important;}
@media(max-width:1100px){.home-body .home-latest-row{grid-auto-columns:124px !important;}}
@media(max-width:900px){.home-body .home-latest-row{grid-auto-columns:150px !important;}}
@media(max-width:480px){.home-body .home-latest-row{grid-auto-columns:138px !important;}}
