
/* =========================================================
   CINEVA — HOMEPAGE STYLESHEET
   File: css/home.css
========================================================= */


/* =========================================================
   01. HERO SECTION
========================================================= */

.hero-section {

    position: relative;

    width: 100%;

    min-height: 650px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: #080812;

}


/* =========================================================
   02. HERO BACKGROUND
========================================================= */

.hero-background {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

}

.hero-image {

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center 25%;

    opacity: 0.82;

    transform: scale(1.02);

    animation: heroImageReveal 1.2s ease forwards;

}

@keyframes heroImageReveal {

    from {
        opacity: 0;
        transform: scale(1.08);
    }

    to {
        opacity: 0.82;
        transform: scale(1);
    }

}


/* =========================================================
   03. HERO OVERLAY
========================================================= */

.hero-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:

        linear-gradient(
            90deg,
            rgba(8, 8, 18, 1) 0%,
            rgba(8, 8, 18, 0.96) 16%,
            rgba(8, 8, 18, 0.75) 38%,
            rgba(8, 8, 18, 0.22) 70%,
            rgba(8, 8, 18, 0.12) 100%
        ),

        linear-gradient(
            0deg,
            #080812 0%,
            rgba(8, 8, 18, 0.8) 8%,
            transparent 40%
        );

}


/* =========================================================
   04. HERO CONTENT
========================================================= */

.hero-content {

    position: relative;

    z-index: 2;

    padding-top: 65px;
    padding-bottom: 90px;

}

.hero-information {

    max-width: 650px;

    animation: heroContentReveal 0.9s ease both;

}

@keyframes heroContentReveal {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   05. FEATURED LABEL
========================================================= */

.hero-label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 13px;

    margin-bottom: 22px;

    border-radius: 30px;

    background: rgba(139, 53, 245, 0.16);

    border: 1px solid rgba(168, 85, 247, 0.35);

    color: #d5a8ff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.2px;

}

.hero-label i {
    color: #ff4c73;
}


/* =========================================================
   06. HERO TYPE
========================================================= */

.hero-type {

    display: table;

    padding: 6px 15px;

    margin-bottom: 16px;

    background: #e52e50;

    color: white;

    border-radius: 30px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.3px;

    box-shadow: 0 5px 20px rgba(229, 46, 80, 0.2);

}


/* =========================================================
   07. HERO TITLE
========================================================= */

.hero-information h1 {

    max-width: 650px;

    color: #ffffff;

    font-size: clamp(42px, 5.4vw, 76px);

    font-weight: 900;

    letter-spacing: -3.5px;

    line-height: 1.08;

    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);

}

.hero-information h1 span {

    display: block;

    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #d6b8ff 50%,
        #a855f7 100%
    );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

}


/* =========================================================
   08. HERO METADATA
========================================================= */

.hero-meta {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 14px;

    margin-top: 23px;

    color: #eeeeF5;

    font-size: 12px;

    font-weight: 600;

}

.hero-meta > span {

    display: inline-flex;

    align-items: center;

    gap: 6px;

}

.hero-meta > span:not(:first-child)::before {

    content: "";

    width: 4px;
    height: 4px;

    margin-right: 3px;

    border-radius: 50%;

    background: rgba(255,255,255,0.5);

}

.match-badge {

    padding: 5px 9px;

    background: rgba(24, 201, 133, 0.17);

    border-radius: 5px;

    color: #28e39c;

}

.match-badge i {
    font-size: 10px;
}


/* =========================================================
   09. HERO DESCRIPTION
========================================================= */

.hero-description {

    max-width: 530px;

    margin-top: 21px;

    color: #c3c3d0;

    font-size: 14px;

    line-height: 1.9;

}


/* =========================================================
   10. HERO BUTTONS
========================================================= */

.hero-buttons {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 32px;

}

.hero-buttons .primary-btn,
.hero-buttons .secondary-btn {

    min-height: 51px;

    padding-left: 25px;
    padding-right: 25px;

}

.hero-buttons .primary-btn i {
    font-size: 14px;
}

.hero-buttons .secondary-btn i {
    font-size: 15px;
}


/* =========================================================
   11. HERO CONTROLS
========================================================= */

.hero-controls {

    position: absolute;

    right: 32px;
    bottom: 36px;

    display: flex;

    align-items: center;

    gap: 15px;

}

.hero-arrow {

    width: 37px;
    height: 37px;

    display: flex;

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

    border-radius: 50%;

    background: rgba(255,255,255,0.1);

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

    color: white;

    font-size: 12px;

    transition: all 0.3s ease;

}

.hero-arrow:hover {

    background: var(--gradient-primary);

    border-color: transparent;

    transform: scale(1.08);

}


/* =========================================================
   12. HERO INDICATORS
========================================================= */

.hero-indicators {

    display: flex;

    align-items: center;

    gap: 7px;

}

.hero-indicators .indicator {

    width: 23px;
    height: 4px;

    border-radius: 10px;

    background: rgba(255,255,255,0.35);

    transition: all 0.35s ease;

    cursor: pointer;

}

.hero-indicators .indicator.active {

    width: 43px;

    background: var(--gradient-primary);

}


/* =========================================================
   13. HERO BOTTOM FADE
========================================================= */

.hero-bottom-fade {

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 130px;

    z-index: 2;

    background: linear-gradient(
        0deg,
        #080812 0%,
        rgba(8,8,18,0.75) 30%,
        transparent 100%
    );

    pointer-events: none;

}


/* =========================================================
   14. TRENDING SECTION
========================================================= */

#trending {

    position: relative;

    padding-top: 30px;

}

#trending .section-icon {
    color: #ff693d;
}


/* =========================================================
   15. LATEST ADDED SECTION
========================================================= */

#latestAdded {

    position: relative;

    padding-top: 35px;

}

#latestAdded .section-icon {
    color: #20d69a;
}


/* =========================================================
   16. GENRE SECTION
========================================================= */

#categories {

    padding-top: 55px;

    padding-bottom: 40px;

}

.genre-grid {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 17px;

}


/* =========================================================
   17. GENRE CARD
========================================================= */

.genre-card {

    position: relative;

    min-height: 190px;

    overflow: hidden;

    display: flex;

    align-items: flex-end;

    padding: 20px;

    border-radius: 15px;

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

    isolation: isolate;

    transition: all 0.35s ease;

}

.genre-card:hover {

    transform: translateY(-7px);

    border-color: rgba(168,85,247,0.6);

    box-shadow: 0 15px 35px rgba(0,0,0,0.35);

}


/* =========================================================
   18. GENRE BACKGROUND
========================================================= */

.genre-background {

    position: absolute;

    inset: 0;

    z-index: -2;

}

.genre-background img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;

}

.genre-card:hover .genre-background img {

    transform: scale(1.12);

}


/* =========================================================
   19. GENRE OVERLAY
========================================================= */

.genre-overlay {

    position: absolute;

    inset: 0;

    z-index: -1;

    background: linear-gradient(
        0deg,
        rgba(5,5,12,0.97) 0%,
        rgba(5,5,12,0.45) 55%,
        rgba(5,5,12,0.05) 100%
    );

    transition: background 0.3s ease;

}

.genre-card:hover .genre-overlay {

    background: linear-gradient(
        0deg,
        rgba(92,34,160,0.95) 0%,
        rgba(5,5,12,0.4) 100%
    );

}


/* =========================================================
   20. GENRE CONTENT
========================================================= */

.genre-content {

    position: relative;

    z-index: 2;

}

.genre-content > i {

    width: 39px;
    height: 39px;

    display: flex;

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

    margin-bottom: 11px;

    border-radius: 10px;

    background: rgba(255,255,255,0.15);

    backdrop-filter: blur(10px);

    color: white;

    font-size: 16px;

    transition: all 0.3s ease;

}

.genre-card:hover .genre-content > i {

    background: var(--gradient-primary);

    transform: rotate(-8deg);

}

.genre-content h3 {

    color: white;

    font-size: 17px;

    font-weight: 800;

    margin-bottom: 5px;

}

.genre-content span {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: rgba(255,255,255,0.7);

    font-size: 10px;

    font-weight: 600;

}

.genre-content span i {

    transition: transform 0.3s ease;

}

.genre-card:hover .genre-content span i {
    transform: translateX(5px);
}


/* =========================================================
   21. GENRE COLOR VARIATIONS
========================================================= */

.genre-action:hover {
    border-color: #ff693d;
}

.genre-horror:hover {
    border-color: #a855f7;
}

.genre-drama:hover {
    border-color: #ec4899;
}

.genre-romance:hover {
    border-color: #f43f5e;
}

.genre-school:hover {
    border-color: #38bdf8;
}

.genre-animation:hover {
    border-color: #22c55e;
}

.genre-comedy:hover {
    border-color: #facc15;
}

.genre-scifi:hover {
    border-color: #06b6d4;
}


/* =========================================================
   22. ALL MOVIES
========================================================= */

#allMovies {

    padding-top: 50px;

}

#allMovies .section-icon {
    color: #ff4e73;
}


/* =========================================================
   23. SERIES
========================================================= */

#allSeries {

    padding-top: 45px;

}

#allSeries .section-icon {
    color: #a855f7;
}


/* =========================================================
   24. TOP RATED
========================================================= */

#topRated {

    padding-top: 45px;

    padding-bottom: 40px;

}

#topRated .section-icon {
    color: #ffc107;
}


/* =========================================================
   25. RESPONSIVE DESIGN — TABLETS
========================================================= */

@media (max-width: 1100px) {

    .hero-section {
        min-height: 590px;
    }

    .hero-information {
        max-width: 550px;
    }

    .hero-information h1 {
        font-size: 58px;
    }

    .genre-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   26. RESPONSIVE DESIGN — SMALL TABLETS
========================================================= */

@media (max-width: 768px) {

    .hero-section {
        min-height: 590px;
    }

    .hero-image {
        object-position: 60% center;
    }

    .hero-overlay {

        background:

            linear-gradient(
                90deg,
                rgba(8,8,18,0.97),
                rgba(8,8,18,0.72)
            ),

            linear-gradient(
                0deg,
                #080812,
                transparent 75%
            );

    }

    .hero-content {
        padding-top: 65px;
        padding-bottom: 100px;
    }

    .hero-information {
        max-width: 520px;
    }

    .hero-information h1 {
        font-size: clamp(42px, 8vw, 58px);
        letter-spacing: -2px;
    }

    .hero-description {
        max-width: 460px;
        font-size: 13px;
    }

    .hero-controls {
        right: 25px;
        bottom: 25px;
    }

    .genre-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

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

    #categories {
        padding-top: 35px;
    }

}


/* =========================================================
   27. RESPONSIVE DESIGN — MOBILE
========================================================= */

@media (max-width: 480px) {

    .hero-section {
        min-height: 570px;
    }

    .hero-content {
        padding-top: 55px;
        padding-bottom: 100px;
    }

    .hero-label {
        margin-bottom: 17px;
        font-size: 9px;
    }

    .hero-type {
        font-size: 9px;
        margin-bottom: 13px;
    }

    .hero-information h1 {
        font-size: 43px;
        line-height: 1.12;
        letter-spacing: -2px;
    }

    .hero-meta {
        gap: 9px;
        margin-top: 17px;
        font-size: 10px;
    }

    .hero-description {
        margin-top: 16px;
        font-size: 12px;
        line-height: 1.8;
    }

    .hero-buttons {
        gap: 10px;
        margin-top: 24px;
    }

    .hero-buttons .primary-btn,
    .hero-buttons .secondary-btn {
        padding: 12px 15px;
        min-height: 45px;
        font-size: 11px;
    }

    .hero-controls {
        right: 18px;
        bottom: 22px;
    }

    .hero-arrow {
        width: 33px;
        height: 33px;
    }

    .hero-indicators .indicator {
        width: 17px;
    }

    .hero-indicators .indicator.active {
        width: 32px;
    }

    .genre-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .genre-card {
        min-height: 145px;
        padding: 13px;
        border-radius: 11px;
    }

    .genre-content > i {
        width: 33px;
        height: 33px;
        font-size: 14px;
    }

    .genre-content h3 {
        font-size: 14px;
    }

    .genre-content span {
        font-size: 9px;
    }

    .newsletter-section {
        padding: 22px 17px;
        margin-top: 30px;
        margin-bottom: 35px;
    }

    .newsletter-text h2 {
        font-size: 21px;
    }

    .newsletter-text p {
        font-size: 11px;
    }

    .newsletter-content {
        align-items: stretch;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

}


/* =========================================================
   28. SMALL MOBILE DEVICES
========================================================= */

@media (max-width: 360px) {

    .hero-information h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a {
        width: 100%;
    }

    .genre-content h3 {
        font-size: 12px;
    }

}


/* =========================================================
   29. HERO IMAGE FALLBACK
========================================================= */

.hero-background img:not([src]),
.hero-background img[src=""] {
    display: none;
}

.hero-section:has(.hero-background img:not([src])) {
    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(139,53,245,0.3),
            transparent 40%
        ),
        #080812;
}

/* =========================================================
   CINEVA — HERO SLIDER FUNCTIONALITY
========================================================= */

#hero-section {
    position: relative;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 650px;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .7s ease, visibility .7s ease;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-slide .hero-background {
    position: absolute;
    inset: 0;
}

.hero-slide .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide .hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide .hero-content {
    width: 100%;
}

.hero-slide .hero-information {
    max-width: 650px;
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 590px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        min-height: 570px;
    }
}
/* =========================================================
   CINEVA — OUR TRANSLATORS
========================================================= */

.translators-section {
    width: 100%;
    margin: 55px 0;
    padding: 35px 0;
    overflow: hidden;
}

.translators-section .section-header {
    margin-bottom: 28px;
}

.translators-section .section-subtitle {
    display: block;
    margin-bottom: 9px;
    color: #a78bfa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.translators-section .section-title h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 800;
}

.translators-section .section-title h2 span {
    color: #a78bfa;
}

.translators-section .section-title p {
    margin-top: 9px;
    color: #9295a7;
    font-size: 13px;
}

.translators-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;

    mask-image: linear-gradient(
        to right,
        transparent,
        #000 5%,
        #000 95%,
        transparent
    );

    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 5%,
        #000 95%,
        transparent
    );
}

.translators-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 18px;

    animation: translatorScroll 45s linear infinite;
}

.translators-wrapper:hover .translators-track {
    animation-play-state: paused;
}

.translator-card {
    min-width: 190px;
    padding: 19px 24px;

    display: flex;
    align-items: center;
    gap: 13px;

    background: linear-gradient(
        145deg,
        #171827,
        #10111b
    );

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;

    transition: .3s ease;
}

.translator-card:hover {
    border-color: rgba(139,92,246,.6);
    background: #1b1930;
    transform: translateY(-5px);
}

.translator-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

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

    border-radius: 50%;
    background: linear-gradient(135deg,#9565ff,#6235ce);

    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.translator-details h3 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.translator-details span {
    display: block;
    margin-top: 5px;
    color: #9295a7;
    font-size: 10px;
}

.translator-loading {
    padding: 20px;
    color: #9295a7;
    font-size: 13px;
}

@keyframes translatorScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .translators-section {
        margin: 35px 0;
        padding: 20px 0;
    }

    .translator-card {
        min-width: 165px;
        padding: 15px;
    }

    .translators-track {
        gap: 12px;
        animation-duration: 35s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .translators-track {
        animation: none;
    }
}
/* CINEVA PREMIUM HERO NAVIGATION */

.hero-controls {
    position: absolute;
    bottom: 35px;
    right: 7%;
    z-index: 20;

    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-arrow {
    width: 44px;
    height: 44px;

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

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;

    color: #fff;
    background: rgba(12, 12, 25, 0.75);

    cursor: pointer;
    transition: 0.3s ease;
}

.hero-arrow:hover {
    background: #8b35f5;
    border-color: #8b35f5;
    transform: scale(1.08);
}

.hero-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-indicators .indicator {
    width: 9px;
    height: 9px;
    padding: 0;

    border: 0;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: 0.3s ease;
}

.hero-indicators .indicator.active {
    width: 28px;
    background: #a855f7;
}

@media (max-width: 600px) {
    .hero-controls {
        right: 20px;
        bottom: 20px;
        gap: 10px;
    }

    .hero-arrow {
        width: 38px;
        height: 38px;
    }
}

/* =========================================
   CINEVA — LATEST ADDED MOBILE CARD FIX
========================================= */

@media (max-width: 600px) {

    /* Give Latest Added section more room */
    #latestAdded .movie-grid,
    #latestAdded .movies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px 12px !important;
    }

    /* Larger poster area */
    #latestAdded .movie-poster {
        width: 100%;
        aspect-ratio: 2 / 3 !important;
    }

    #latestAdded .movie-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* More readable movie information */
    #latestAdded .movie-info {
        padding: 10px !important;
    }

    #latestAdded .movie-info h3,
    #latestAdded .movie-title {
        font-size: 12px !important;
        line-height: 1.45;
    }
}

/* =====================================================
   CINEVA PRO — LATEST ADDED MOBILE CARD SIZE FIX
   Only affects the Latest Added section
===================================================== */

@media screen and (max-width: 600px) {

    /* Latest Added grid */
    #latestAdded #latest-movies {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px 13px !important;
        width: 100%;
    }

    /* Individual cards */
    #latestAdded #latest-movies .movie-card {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Poster */
    #latestAdded #latest-movies .movie-poster {
        width: 100% !important;
        aspect-ratio: 2 / 3 !important;
        overflow: hidden;
    }

    #latestAdded #latest-movies .movie-poster img {
        display: block;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Card information */
    #latestAdded #latest-movies .movie-info {
        padding: 10px !important;
    }

    #latestAdded #latest-movies .movie-title,
    #latestAdded #latest-movies .movie-info h3 {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    #latestAdded #latest-movies .movie-meta {
        font-size: 10px;
    }
}

/* Very narrow phones */
@media screen and (max-width: 360px) {

    #latestAdded #latest-movies {
        gap: 12px 9px !important;
    }

    #latestAdded #latest-movies .movie-info {
        padding: 8px !important;
    }

    #latestAdded #latest-movies .movie-title,
    #latestAdded #latest-movies .movie-info h3 {
        font-size: 11px !important;
    }
}


/* =========================================================
   CINEVA — CINEMATIC HERO REFINEMENT
   Keeps the existing Inter typography and hero markup.
========================================================= */
.hero-section,
#hero-section {
    min-height: clamp(570px, 72vh, 790px);
    isolation: isolate;
    background:
        radial-gradient(ellipse at 76% 35%, rgba(139,53,245,.14), transparent 42%),
        #080812;
}

.hero-background,
.hero-slide .hero-background {
    overflow: hidden;
}

.hero-image,
.hero-slide .hero-image {
    object-fit: cover;
    object-position: center 24%;
    opacity: .88;
    filter: saturate(1.06) contrast(1.04);
    transform: scale(1.015);
    transition: transform 8s ease, opacity .5s ease;
}

.hero-section:hover .hero-image,
.hero-slide.active .hero-image {
    transform: scale(1.055);
}

.hero-overlay,
.hero-slide .hero-overlay {
    background:
        linear-gradient(90deg,
            rgba(8,8,18,.99) 0%,
            rgba(8,8,18,.92) 22%,
            rgba(8,8,18,.62) 48%,
            rgba(8,8,18,.16) 78%,
            rgba(8,8,18,.12) 100%),
        linear-gradient(0deg,
            #080812 0%,
            rgba(8,8,18,.76) 11%,
            rgba(8,8,18,.12) 48%,
            rgba(8,8,18,.12) 100%);
}

.hero-content {
    width: min(100% - 48px, 1440px);
    padding-top: clamp(92px, 12vh, 150px);
    padding-bottom: clamp(100px, 12vh, 145px);
}

.hero-information {
    max-width: min(650px, 58vw);
}

.hero-information h1 {
    max-width: 680px;
    font-size: clamp(40px, 5.2vw, 78px);
    line-height: 1.035;
    letter-spacing: -2.8px;
    text-wrap: balance;
}

.hero-description {
    max-width: 560px;
    color: rgba(238,238,248,.84);
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-label,
.hero-type {
    box-shadow: 0 8px 28px rgba(0,0,0,.24);
}

.hero-buttons .primary-btn,
.hero-buttons .secondary-btn {
    min-height: 50px;
    border-radius: 9px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hero-buttons .primary-btn:hover,
.hero-buttons .secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

.hero-controls {
    z-index: 4;
    right: clamp(20px, 4vw, 64px);
    bottom: 34px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(8,8,18,.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-arrow {
    width: 40px;
    height: 40px;
}

@media (max-width: 768px) {
    .hero-section,
    #hero-section {
        min-height: min(690px, 82svh);
        align-items: flex-end;
    }

    .hero-image,
    .hero-slide .hero-image {
        object-position: 62% center;
    }

    .hero-overlay,
    .hero-slide .hero-overlay {
        background:
            linear-gradient(0deg,
                #080812 0%,
                rgba(8,8,18,.96) 15%,
                rgba(8,8,18,.72) 48%,
                rgba(8,8,18,.18) 100%),
            linear-gradient(90deg, rgba(8,8,18,.32), transparent 100%);
    }

    .hero-content {
        width: calc(100% - 36px);
        padding-top: 190px;
        padding-bottom: 106px;
    }

    .hero-information {
        max-width: 100%;
    }

    .hero-information h1 {
        max-width: 540px;
        font-size: clamp(35px, 8.8vw, 54px);
        letter-spacing: -1.6px;
        line-height: 1.06;
    }

    .hero-description {
        max-width: 100%;
        -webkit-line-clamp: 3;
    }

    .hero-controls {
        right: 18px;
        bottom: 20px;
        gap: 10px;
        padding: 7px 9px;
    }
}

@media (max-width: 480px) {
    .hero-section,
    #hero-section {
        min-height: 640px;
        min-height: min(690px, 84svh);
    }

    .hero-content {
        width: calc(100% - 30px);
        padding-top: 170px;
        padding-bottom: 100px;
    }

    .hero-information h1 {
        font-size: clamp(32px, 9vw, 43px);
        letter-spacing: -1.2px;
    }

    .hero-meta {
        gap: 9px;
        font-size: 11px;
    }

    .hero-buttons {
        gap: 10px;
        margin-top: 22px;
    }

    .hero-buttons .primary-btn,
    .hero-buttons .secondary-btn {
        min-height: 46px;
        padding: 0 15px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image,
    .hero-slide .hero-image,
    .hero-buttons .primary-btn,
    .hero-buttons .secondary-btn {
        transition: none;
        animation: none;
    }
}


/* =========================================================
   CINEVA — LATEST ADDED CARD SIZE MATCH
   Keep Latest Added identical to the other homepage grids.
   Three columns on phones; two only on extra-narrow screens.
========================================================= */
@media (max-width: 600px) {
    #latestAdded #latest-movies {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 11px !important;
        width: 100%;
    }

    #latestAdded #latest-movies .movie-card {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    #latestAdded #latest-movies .movie-poster {
        width: 100% !important;
        aspect-ratio: 2 / 3 !important;
    }

    #latestAdded #latest-movies .movie-info {
        padding: 8px 7px 9px !important;
    }

    #latestAdded #latest-movies .movie-title,
    #latestAdded #latest-movies .movie-info h3 {
        font-size: 10px !important;
        line-height: 1.35 !important;
    }

    #latestAdded #latest-movies .movie-meta {
        font-size: 9px !important;
    }
}

@media (max-width: 420px) {
    #latestAdded #latest-movies {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 11px !important;
    }

    #latestAdded #latest-movies .movie-info {
        padding: 9px 8px 10px !important;
    }

    #latestAdded #latest-movies .movie-title,
    #latestAdded #latest-movies .movie-info h3 {
        font-size: 11px !important;
    }
}


/* =========================================================
   CINEVA — FULL-WIDTH, SCREEN-FITTING HERO SLIDER
   Edge-to-edge artwork with a consistent 20px text gutter.
========================================================= */
#hero-section,
.hero-section {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    min-height: clamp(570px, calc(100svh - var(--header-height, 76px)), 820px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
}

#hero-section .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: inherit;
}

#hero-section .hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#hero-section .hero-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center 28%;
}

#hero-section .hero-content {
    position: relative;
    z-index: 3;
    width: calc(100% - 40px);
    max-width: none;
    min-height: inherit;
    margin: 0 auto;
    padding: clamp(85px, 12vh, 140px) 0 112px;
    box-sizing: border-box;
}

#hero-section .hero-information {
    max-width: min(650px, 58vw);
}

@media (max-width: 768px) {
    #hero-section,
    .hero-section {
        min-height: min(760px, calc(100svh - var(--header-height, 68px)));
    }

    #hero-section .hero-content {
        width: calc(100% - 32px);
        padding-top: clamp(150px, 24vh, 220px);
        padding-bottom: 112px;
    }

    #hero-section .hero-information {
        max-width: 100%;
    }

    #hero-section .hero-image {
        object-position: 62% center;
    }
}

@media (max-width: 480px) {
    #hero-section .hero-content {
        width: calc(100% - 28px);
        padding-top: 170px;
        padding-bottom: 105px;
    }
}


/* =========================================================
   CINEVA — COMPACT TRANSLATORS STRIP
   Sits directly below Trending Now
========================================================= */
.translators-section {
    margin-top: 8px;
    margin-bottom: 26px;
    padding: 12px 0 8px;
}

.translators-section .section-header {
    margin-bottom: 13px;
}

.translators-section .section-subtitle {
    margin-bottom: 5px;
    font-size: 9px;
    letter-spacing: 1.7px;
}

.translators-section .section-title h2 {
    font-size: clamp(18px, 2.2vw, 23px);
    line-height: 1.2;
}

.translators-section .section-title p {
    margin-top: 5px;
    font-size: 11px;
}

.translators-wrapper {
    min-height: 66px;
    border-radius: 12px;
}

.translators-track {
    gap: 11px;
    animation-duration: 38s;
    will-change: transform;
}

.translator-card {
    min-width: 158px;
    padding: 10px 14px;
    gap: 10px;
    border-radius: 11px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .14);
}

.translator-card:hover {
    transform: translateY(-2px);
}

.translator-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.translator-details h3 {
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.translator-details span {
    margin-top: 3px;
    font-size: 9px;
}

.translator-loading {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 62px;
    padding: 12px 16px;
    font-size: 11px;
}

@media (max-width: 600px) {
    .translators-section {
        margin-top: 2px;
        margin-bottom: 20px;
        padding: 10px 0 5px;
    }

    .translators-section .section-header {
        margin-bottom: 10px;
    }

    .translators-section .section-title p {
        max-width: 290px;
        font-size: 10px;
    }

    .translators-track {
        gap: 9px;
        animation-duration: 32s;
    }

    .translator-card {
        min-width: 145px;
        padding: 9px 11px;
    }

    .translator-avatar {
        width: 31px;
        height: 31px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .translators-track {
        animation: none !important;
        will-change: auto;
    }
}


/* =========================================================
   CINEVA HERO SLIDER — ACTIVE SLIDE LAYOUT FIX
   Keep the active slide in the document flow so the hero
   has a real height; stack inactive slides behind it.
========================================================= */
#hero-section .hero-slide {
    position: absolute;
    inset: 0;
    min-height: inherit;
}

#hero-section .hero-slide.active {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

#hero-section .hero-slide:not(.active) {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
}

#hero-section .hero-slide .hero-background {
    position: absolute;
    inset: 0;
    min-height: 100%;
}

#hero-section .hero-slide .hero-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

#hero-section .hero-slide .hero-content {
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    #hero-section .hero-slide {
        transition: none;
    }
}


/* =========================================================
   CINEVA — MOBILE HERO SLIDESHOW
   Cinematic artwork first, readable details below.
========================================================= */
@media (max-width: 600px) {
    #hero-section {
        display: block;
        min-height: 690px;
        height: auto;
        overflow: hidden;
        isolation: isolate;
    }

    #hero-section .hero-slide {
        display: flex;
        align-items: flex-end;
        width: 100%;
        min-height: 690px;
        height: 100%;
        inset: 0;
    }

    #hero-section .hero-slide.active {
        position: relative;
        min-height: 690px;
    }

    #hero-section .hero-slide .hero-background {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        overflow: hidden;
    }

    #hero-section .hero-slide .hero-image {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 690px;
        object-fit: cover;
        object-position: center 18%;
        opacity: .9;
        transform: none;
    }

    #hero-section .hero-slide .hero-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        background:
            linear-gradient(
                180deg,
                rgba(8, 8, 18, .04) 0%,
                rgba(8, 8, 18, .08) 25%,
                rgba(8, 8, 18, .55) 48%,
                rgba(8, 8, 18, .96) 72%,
                #080812 100%
            );
    }

    #hero-section .hero-slide .hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 285px 20px 112px;
        margin: 0;
    }

    #hero-section .hero-slide .hero-information {
        width: 100%;
        max-width: 100%;
        animation: none;
    }

    #hero-section .hero-label {
        margin-bottom: 12px;
        padding: 6px 10px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    #hero-section .hero-type {
        margin-bottom: 10px;
        padding: 5px 11px;
        font-size: 8px;
    }

    #hero-section .hero-information h1 {
        max-width: 100%;
        margin: 0;
        font-size: clamp(30px, 8.5vw, 40px);
        line-height: 1.08;
        letter-spacing: -1.3px;
        overflow-wrap: anywhere;
    }

    #hero-section .hero-meta {
        gap: 8px;
        margin-top: 13px;
        font-size: 10px;
    }

    #hero-section .hero-description {
        display: -webkit-box;
        max-width: 100%;
        margin-top: 12px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: 11px;
        line-height: 1.65;
    }

    #hero-section .hero-buttons {
        display: flex;
        flex-wrap: nowrap;
        gap: 9px;
        margin-top: 17px;
    }

    #hero-section .hero-buttons .primary-btn,
    #hero-section .hero-buttons .secondary-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 42px;
        padding: 0 13px;
        font-size: 10px;
        white-space: nowrap;
    }

    #hero-section .hero-controls {
        right: 18px;
        bottom: 25px;
        z-index: 5;
        gap: 10px;
    }

    #hero-section .hero-arrow {
        width: 32px;
        height: 32px;
    }

    #hero-section .hero-indicators {
        gap: 5px;
    }

    #hero-section .hero-indicators .indicator {
        width: 13px;
        height: 3px;
    }

    #hero-section .hero-indicators .indicator.active {
        width: 25px;
    }

    #hero-section .hero-bottom-fade {
        height: 85px;
        z-index: 3;
    }
}

@media (max-width: 380px) {
    #hero-section,
    #hero-section .hero-slide,
    #hero-section .hero-slide.active {
        min-height: 660px;
    }

    #hero-section .hero-slide .hero-image {
        min-height: 660px;
    }

    #hero-section .hero-slide .hero-content {
        padding: 270px 16px 108px;
    }

    #hero-section .hero-information h1 {
        font-size: 30px;
    }

    #hero-section .hero-description {
        -webkit-line-clamp: 2;
    }

    #hero-section .hero-buttons .primary-btn,
    #hero-section .hero-buttons .secondary-btn {
        padding: 0 10px;
        font-size: 9px;
    }
}


/* Hero translator credit */
.hero-translator-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(190,145,255,.32);
    border-radius: 999px;
    background: rgba(92,45,145,.24);
    color: #e6d4ff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}
.hero-translator-badge > i { color: #c38aff; font-size: 13px; }
.hero-translator-badge strong { color: #fff; font-weight: 800; }
.hero-meta .hero-translator-badge { margin: 3px 0; }


/* CINEVA — translator profile portraits */
.translator-avatar { overflow: hidden; border-radius: 50%; flex: 0 0 42px; }
.translator-avatar img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center; border-radius: 50%; }
.translator-avatar-fallback { display: grid; width: 100%; height: 100%; place-items: center; border-radius: 50%; }
.translator-avatar-fallback[hidden] { display: none !important; }
.translator-profile-avatar { width: 42px; height: 42px; }
