
/* =========================================================
   CINEVA PRO — WATCH PAGE
   Premium dark navy / violet / emerald design
========================================================= */


/* =========================================================
   01. ROOT VARIABLES
========================================================= */

:root {
    --watch-bg: #090b13;
    --watch-bg-soft: #10131e;
    --watch-card: #141927;
    --watch-card-light: #1a2030;

    --watch-border: rgba(255, 255, 255, 0.09);

    --watch-text: #f5f6fa;
    --watch-muted: #929bad;

    --watch-primary: #a855f7;
    --watch-primary-light: #c084fc;
    --watch-primary-dark: #7c3aed;

    --watch-green: #10b981;
    --watch-green-dark: #059669;

    --watch-gold: #f5bd4f;
    --watch-red: #ef4444;

    --watch-radius: 18px;
    --watch-transition: 0.3s ease;

    --watch-shadow:
        0 15px 45px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   02. GLOBAL WATCH PAGE
========================================================= */

.watch-page-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(124, 58, 237, 0.09),
            transparent 28%
        ),
        var(--watch-bg);

    color: var(--watch-text);

    font-family: inherit;
    overflow-x: hidden;
}

.watch-page-body *,
.watch-page-body *::before,
.watch-page-body *::after {
    box-sizing: border-box;
}

.watch-page-body button,
.watch-page-body input,
.watch-page-body textarea,
.watch-page-body select {
    font: inherit;
}

.watch-page-body button {
    cursor: pointer;
}

.watch-page-body a {
    text-decoration: none;
    color: inherit;
}

.watch-page {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 35px 0 90px;
}

.watch-content {
    display: block;
    animation: watchFadeIn 0.5s ease;
}

@keyframes watchFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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


/* =========================================================
   03. HOMEPAGE-STYLE NAVIGATION
========================================================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(8, 8, 18, 0.94);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.main-header .navbar {
    width: min(1440px, calc(100% - 48px));
    min-height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.main-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    text-decoration: none;
}

.main-header .logo-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 12px;
    font-size: 19px;
}

.main-header .logo-text h2 {
    margin: 0;
    color: white;
    font-family: inherit;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.main-header .logo-text h2 span {
    color: #a855f7;
}

.main-header .logo-text small {
    display: block;
    margin-top: 2px;
    color: #929bad;
    font-size: 9px;
    letter-spacing: 1px;
}

.main-header .nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 23px;
}

.main-header .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a3a9ba;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.main-header .nav-link:hover,
.main-header .nav-link.active {
    color: #c084fc;
}

.main-header .nav-link i {
    font-size: 12px;
}

.main-header .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-header .nav-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c1c5d2;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.25s ease;
}

.main-header .nav-icon:hover {
    color: white;
    background: rgba(168,85,247,0.16);
    border-color: #8b35f5;
}

.main-header .notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    background: #ef315e;
    border: 1px solid #080812;
    border-radius: 50%;
}

.main-header .sign-in-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    color: white;
    background: linear-gradient(110deg, #7c3aed, #a855f7);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.main-header .sign-in-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(124,58,237,0.3);
}

.main-header .mobile-menu-btn {
    display: none;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9px;
    cursor: pointer;
}


/* =========================================================
   04. LOADING & ERROR
========================================================= */

.watch-loading {
    min-height: 60vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;

    color: var(--watch-muted);
    text-align: center;
}

.watch-loader {
    width: 48px;
    height: 48px;

    border: 4px solid rgba(168, 85, 247, 0.15);
    border-top-color: var(--watch-primary-light);

    border-radius: 50%;

    animation: watchSpin 0.8s linear infinite;
}

@keyframes watchSpin {
    to {
        transform: rotate(360deg);
    }
}

.watch-error {
    max-width: 600px;
    margin: 100px auto;
    padding: 45px 25px;

    text-align: center;

    background: var(--watch-card);
    border: 1px solid var(--watch-border);
    border-radius: var(--watch-radius);
}

.watch-error > i {
    color: var(--watch-red);
    font-size: 45px;
}

.watch-error h2 {
    margin: 18px 0 10px;
}

.watch-error p {
    color: var(--watch-muted);
    line-height: 1.7;
}

.watch-error-btn {
    display: inline-flex;
    margin-top: 18px;
    padding: 12px 22px;

    border-radius: 9px;
    background: var(--watch-primary-dark);
    color: white;

    font-weight: 700;
}


/* =========================================================
   05. PLAYER SECTION
========================================================= */

.player-section {
    margin-bottom: 35px;
}

.player-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 15px;
}

.player-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;

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

.player-breadcrumb a {
    color: var(--watch-primary-light);
}

.player-breadcrumb a:hover {
    color: white;
}

.player-breadcrumb i {
    font-size: 9px;
    opacity: 0.5;
}

.player-live-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--watch-primary-light);

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

.player-live-label span {
    width: 7px;
    height: 7px;

    background: var(--watch-green);
    border-radius: 50%;

    box-shadow: 0 0 12px var(--watch-green);
}

.video-player-wrapper {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    max-height: 760px;

    overflow: hidden;

    background: #000;

    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 18px;

    box-shadow:
        0 20px 65px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(124, 58, 237, 0.07);
}

.video-player {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    background: #000;
}

.player-empty {
    position: absolute;
    inset: 0;
    z-index: 2;

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

    padding: 20px;

    background:
        radial-gradient(
            circle,
            rgba(124, 58, 237, 0.2),
            transparent 55%
        ),
        #080910;

    text-align: center;
}

.player-empty[hidden] {
    display: none !important;
}

.player-empty > i {
    color: var(--watch-primary-light);
    font-size: 65px;
    margin-bottom: 15px;
}

.player-empty h3 {
    font-family: inherit;
    font-size: 24px;
    margin: 0 0 10px;
}

.player-empty p {
    color: var(--watch-muted);
    font-size: 13px;
}


/* =========================================================
   06. PLAYER ACTION BAR
========================================================= */

.player-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;

    margin-top: 17px;
    padding: 17px 20px;

    background: var(--watch-card);
    border: 1px solid var(--watch-border);
    border-radius: 14px;
}

.player-action-left,
.player-action-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.player-action-btn {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 21px;

    border: 0;
    border-radius: 9px;

    font-size: 13px;
    font-weight: 800;

    transition: var(--watch-transition);
}

.primary-watch-btn {
    color: #fff;

    background:
        linear-gradient(
            120deg,
            var(--watch-primary-dark),
            var(--watch-primary)
        );

    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.2);
}

.primary-watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
}

.download-watch-btn {
    color: #042c20;
    background: var(--watch-green);
}

.download-watch-btn:hover {
    background: #34d399;
    transform: translateY(-2px);
}

.engagement-btn {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 0 13px;

    border: 1px solid var(--watch-border);
    border-radius: 9px;

    color: var(--watch-muted);
    background: rgba(255, 255, 255, 0.035);

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

    transition: var(--watch-transition);
}

.engagement-btn:hover {
    color: white;
    border-color: var(--watch-primary);
    background: rgba(168, 85, 247, 0.12);
}

.engagement-btn i {
    font-size: 15px;
}

#like-count {
    color: var(--watch-primary-light);
}

.engagement-btn.liked {
    color: #fb7185;
    border-color: rgba(251, 113, 133, 0.35);
    background: rgba(251, 113, 133, 0.09);
}


/* =========================================================
   07. CONTENT DETAILS
========================================================= */

.watch-details-section {
    margin: 35px 0 50px;
}

.watch-details {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: start;
    gap: 28px;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            rgba(26, 32, 48, 0.9),
            rgba(16, 19, 30, 0.95)
        );

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

.watch-poster {
    position: relative;

    width: 100%;
    aspect-ratio: 2 / 3;

    overflow: hidden;

    background: #1b2030;
    border-radius: 13px;

    box-shadow: var(--watch-shadow);
}

.watch-poster img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.watch-type-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;

    padding: 6px 10px;

    background: var(--watch-primary-dark);
    color: white;

    border-radius: 6px;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.watch-information {
    min-width: 0;
}

.watch-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.watch-small-label {
    display: block;
    margin-bottom: 9px;

    color: var(--watch-primary-light);

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

.watch-information h1 {
    margin: 0;

    color: white;

    font-family: inherit;
    font-size: clamp(27px, 4vw, 43px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.watch-quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    flex-shrink: 0;

    padding: 9px 12px;

    color: var(--watch-gold);
    background: rgba(245, 189, 79, 0.1);
    border: 1px solid rgba(245, 189, 79, 0.2);
    border-radius: 8px;

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

.watch-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 19px 0;
}

.watch-meta span {
    display: inline-flex;
    align-items: center;

    padding: 7px 11px;

    color: #c5ccda;
    background: rgba(255, 255, 255, 0.055);

    border-radius: 6px;

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

.watch-meta span:empty {
    display: none;
}

.watch-description {
    max-width: 900px;

    margin: 0;

    color: var(--watch-muted);

    font-size: 14px;
    line-height: 1.9;
}




/* =========================================================
   08. SHARED SECTION HEADINGS
========================================================= */

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

    margin-bottom: 24px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 8px;

    color: var(--watch-primary-light);

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

.watch-section-heading h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;

    margin: 0;

    color: white;

    font-family: inherit;
    font-size: clamp(23px, 3vw, 29px);
    font-weight: 800;
}

.watch-section-heading h2 > i {
    color: var(--watch-primary-light);
    font-size: 21px;
}

.watch-section-heading p {
    margin: 9px 0 0;

    color: var(--watch-muted);
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   09. MOVIE PARTS
========================================================= */

.movie-parts-section {
    margin: 40px 0;
    padding: 22px;
    background: var(--watch-bg-soft);
    border: 1px solid var(--watch-border);
    border-radius: var(--watch-radius);
}

.movie-parts-section[hidden],
.episodes-section[hidden] {
    display: none !important;
}

.movie-parts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.movie-part-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px;
    background: var(--watch-card);
    border: 1px solid var(--watch-border);
    border-radius: 12px;
    transition: var(--watch-transition);
}

.movie-part-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.5);
    background: var(--watch-card-light);
}

.movie-part-number,
.episode-number {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
}

.movie-part-info,
.episode-information {
    min-width: 0;
    flex: 1;
}

.movie-part-info h3,
.episode-information h3 {
    overflow: hidden;
    margin: 0;
    color: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-part-info p,
.episode-information p {
    margin: 5px 0 0;
    color: var(--watch-muted);
    font-size: 10px;
}

.movie-part-actions,
.episode-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.part-watch-btn,
.part-download-btn,
.episode-watch-btn,
.episode-download-btn {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    transition: var(--watch-transition);
    cursor: pointer;
}

.part-watch-btn,
.episode-watch-btn {
    color: white;
    background: var(--watch-primary-dark);
}

.part-watch-btn:hover,
.episode-watch-btn:hover {
    background: var(--watch-primary);
}

.part-download-btn,
.episode-download-btn {
    color: #032d20;
    background: var(--watch-green);
}

.part-download-btn:hover,
.episode-download-btn:hover {
    background: #34d399;
}

/* =========================================================
   10. SERIES EPISODES
========================================================= */

.episodes-section {
    margin: 40px 0;
    padding: 22px;
    background: linear-gradient(
        145deg,
        rgba(20, 25, 39, 0.95),
        rgba(13, 16, 26, 0.95)
    );
    border: 1px solid var(--watch-border);
    border-radius: var(--watch-radius);
}

.episode-total {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: var(--watch-primary-light);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
}

.season-filter-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.season-filter-wrapper label {
    color: var(--watch-muted);
    font-size: 12px;
    font-weight: 700;
}

.season-selector {
    min-width: 160px;
    min-height: 38px;
    padding: 0 32px 0 12px;
    color: white;
    background: var(--watch-card);
    border: 1px solid var(--watch-border);
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}

.season-selector:focus {
    border-color: var(--watch-primary);
}

.season-selector option {
    color: white;
    background: var(--watch-card);
}

/* COMPACT EPISODE GRID */

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.episode-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: #10131c;
    border: 1px solid var(--watch-border);
    border-radius: 12px;
    transition: var(--watch-transition);
}

.episode-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.episode-top {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.episode-card .episode-number {
    width: auto;
    min-width: 46px;
    height: 34px;
    padding: 0 7px;
    box-sizing: border-box;
    border-radius: 9px;
    font-size: 10px;
    white-space: nowrap;
}

.episode-information h3 {
    font-size: 12px;
    line-height: 1.4;
}

.episode-information p {
    font-size: 9px;
    letter-spacing: 0.2px;
}

.episode-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--watch-muted);
    font-size: 10px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* EPISODE BUTTONS */

.episode-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.episode-watch-btn {
    width: 100%;
    min-width: 0;
    min-height: 35px;
    padding: 0 8px;
}

.episode-download-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 9px;

    /* Hide Download text, keep the icon */
    font-size: 0;
    gap: 0;
}

/* Keep download icons visible */
.episode-download-btn svg,
.episode-download-btn i,
.part-download-btn svg,
.part-download-btn i {
    width: 17px;
    height: 17px;
    font-size: 17px;
    flex-shrink: 0;
}

/* Hide text inside download buttons */
.part-download-btn,
.episode-download-btn {
    font-size: 0;
    gap: 0;
}

.episode-card.active {
    border-color: var(--watch-primary);
    background: rgba(124, 58, 237, 0.09);
}

.episode-card.active .episode-number {
    background: var(--watch-green);
    color: #042c20;
}

/* =========================================================
   RESPONSIVE EPISODE GRID
========================================================= */

/* Medium desktop */
@media (max-width: 1350px) {
    .episodes-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Small desktop / laptop */
@media (max-width: 1100px) {
    .episodes-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Tablet */
@media (max-width: 850px) {
    .episodes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .episodes-section,
    .movie-parts-section {
        padding: 18px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .episodes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .episode-card {
        padding: 10px;
        gap: 10px;
    }

    .episode-actions {
        grid-template-columns: minmax(0, 1fr) 34px;
        gap: 5px;
    }

    .episode-download-btn {
        width: 34px;
        min-width: 34px;
        height: 35px;
        min-height: 35px;
    }

    .movie-parts-grid {
        grid-template-columns: 1fr;
    }
}

/* Very narrow phones */
@media (max-width: 360px) {
    .episodes-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   11. COMMENTS
========================================================= */

.comments-section {
    margin: 65px 0;
}

.comments-count {
    color: var(--watch-muted);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

.comment-form-card {
    padding: 25px;

    background: var(--watch-card);
    border: 1px solid var(--watch-border);
    border-radius: 14px;
}

.comment-form-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 24px;
    padding-bottom: 17px;

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

.comment-form-heading > i {
    color: var(--watch-gold);
    font-size: 19px;
}

.comment-form-heading h3 {
    margin: 0;

    color: white;

    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
}

.comment-field {
    margin-bottom: 18px;
}

.comment-field label {
    display: block;
    margin-bottom: 9px;

    color: #d8dce5;
    font-size: 12px;
    font-weight: 700;
}

.comment-field label span {
    color: var(--watch-gold);
}

.comment-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comment-label-row > span {
    color: var(--watch-muted);
    font-size: 11px;
    font-weight: 600;
}

.comment-field input,
.comment-field textarea {
    display: block;

    width: 100%;

    padding: 13px 14px;

    color: white;
    background: #0e111a;

    border: 1px solid var(--watch-border);
    border-radius: 9px;

    outline: none;

    font-size: 13px;

    transition: var(--watch-transition);
}

.comment-field input {
    height: 46px;
}

.comment-field textarea {
    min-height: 125px;
    resize: vertical;
    line-height: 1.7;
}

.comment-field input::placeholder,
.comment-field textarea::placeholder {
    color: #737d90;
}

.comment-field input:focus,
.comment-field textarea:focus {
    border-color: var(--watch-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.post-comment-btn {
    width: 100%;
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 12px 20px;

    color: white;
    background:
        linear-gradient(
            110deg,
            #7c3aed,
            #a855f7
        );

    border: 0;
    border-radius: 9px;

    font-size: 13px;
    font-weight: 800;

    transition: var(--watch-transition);
}

.post-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.post-comment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.comment-feedback {
    margin: 12px 0 0;

    font-size: 12px;
    line-height: 1.6;
}

.comment-feedback:empty {
    display: none;
}

.comment-feedback.success {
    color: var(--watch-green);
}

.comment-feedback.error {
    color: #fb7185;
}


/* COMMENTS LIST */

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 13px;

    margin-top: 22px;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 18px;

    background: var(--watch-bg-soft);
    border: 1px solid var(--watch-border);
    border-radius: 12px;
}

.comment-avatar {
    width: 43px;
    height: 43px;

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

    flex-shrink: 0;

    color: white;
    background: linear-gradient(135deg, #7c3aed, #a855f7);

    border-radius: 50%;

    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-user-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-user-row h4 {
    margin: 0;

    color: white;
    font-size: 13px;
    font-weight: 800;
}

.comment-date {
    color: var(--watch-muted);
    font-size: 10px;
}

.comment-text {
    margin: 9px 0 0;

    color: #bdc5d4;

    font-size: 12px;
    line-height: 1.8;

    overflow-wrap: anywhere;
}

.comments-empty {
    padding: 30px 15px;

    color: var(--watch-muted);
    background: var(--watch-bg-soft);

    border: 1px dashed var(--watch-border);
    border-radius: 12px;

    text-align: center;
    font-size: 13px;
}


/* =========================================================
   12. RELATED CONTENT
========================================================= */

.related-section {
    margin: 70px 0 20px;
}

.related-view-all {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    flex-shrink: 0;

    color: var(--watch-primary-light);
    font-size: 12px;
    font-weight: 700;

    transition: var(--watch-transition);
}

.related-view-all:hover {
    color: white;
    gap: 13px;
}

.related-grid {
    width: 100%;
}


/* =========================================================
   13. HOMEPAGE-STYLE FOOTER
========================================================= */

.main-footer {
    margin-top: 70px;
    background: linear-gradient(145deg, #111523, #090b13);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container {
    width: min(1440px, calc(100% - 48px));
    margin: auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 45px;
    padding: 60px 0 45px;
}

.footer-column {
    min-width: 0;
}

.footer-column .logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.footer-column .logo-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 12px;
    font-size: 19px;
}

.footer-column .logo-text h2 {
    margin: 0;
    color: white;
    font-family: inherit;
    font-size: 25px;
    font-weight: 800;
}

.footer-column .logo-text h2 span {
    color: #a855f7;
}

.footer-column .logo-text small {
    display: block;
    margin-top: 2px;
    color: #929bad;
    font-size: 9px;
    letter-spacing: 1px;
}

.footer-brand p {
    max-width: 340px;
    margin: 17px 0;
    color: #929bad;
    font-size: 12px;
    line-height: 1.9;
}

.footer-column h3 {
    margin: 5px 0 20px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column ul a {
    color: #929bad;
    font-size: 12px;
    text-decoration: none;
    transition: 0.25s ease;
}

.footer-column ul a:hover {
    color: #c084fc;
    padding-left: 4px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 11px;
}

.social-links a {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    text-decoration: none;
    transition: 0.25s ease;
}

.social-links a:hover {
    background: #7c3aed;
    border-color: #a855f7;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-content {
    width: min(1440px, calc(100% - 48px));
    min-height: 65px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-content p,
.footer-bottom-links {
    margin: 0;
    color: #929bad;
    font-size: 11px;
}

.footer-bottom-content strong {
    color: white;
}

.footer-bottom-links i {
    margin-left: 5px;
    color: #fb7185;
}


/* =========================================================
   14. HOMEPAGE-STYLE SCROLL TO TOP
========================================================= */

.scroll-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 900;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 13px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.3s ease;
    cursor: pointer;
}

.scroll-top.show,
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(124,58,237,0.3);
}
/* =========================================================
   15. RESPONSIVE — TABLETS
========================================================= */

@media (max-width: 1050px) {

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

    .watch-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }

    .movie-part-card {
        flex-wrap: wrap;
    }

    .movie-part-actions {
        width: 100%;
    }

    .movie-part-actions button {
        flex: 1;
    }

}


/* =========================================================
   16. RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {

    .watch-page {
        width: calc(100% - 28px);
        padding-top: 22px;
    }

    .watch-header-inner {
        width: calc(100% - 28px);
        min-height: 65px;
    }

    .watch-logo {
        font-size: 25px;
    }

    .watch-navigation {
        display: none;
    }

    .back-home {
        padding: 9px 11px;
        font-size: 11px;
    }

    .player-topbar {
        align-items: flex-start;
    }

    .player-live-label {
        font-size: 8px;
    }

    .video-player-wrapper {
        aspect-ratio: 16 / 9;
        border-radius: 11px;
    }

    .player-action-bar {
        align-items: stretch;
        padding: 13px;
    }

    .player-action-left,
    .player-action-right {
        width: 100%;
    }

    .player-action-left {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .player-action-btn {
        padding: 0 9px;
        font-size: 11px;
    }

    .player-action-right {
        justify-content: flex-start;
    }

    .watch-details {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 15px;
        padding: 15px;
    }

    .watch-title-row {
        display: block;
    }

    .watch-information h1 {
        font-size: 23px;
    }

    .watch-small-label {
        font-size: 8px;
    }

    .watch-quality-badge {
        display: inline-flex;
        margin-top: 12px;
        padding: 6px 8px;
        font-size: 8px;
    }

    .watch-meta {
        gap: 6px;
        margin: 12px 0;
    }

    .watch-meta span {
        padding: 5px 7px;
        font-size: 9px;
    }

    .watch-description {
        font-size: 11px;
        line-height: 1.7;
    }

    .watch-information-footer {
        gap: 10px;
        margin-top: 14px;
        padding-top: 12px;
    }

    .watch-information-footer span {
        font-size: 9px;
    }

    .watch-section-heading {
        align-items: flex-start;
    }

    .watch-section-heading h2 {
        font-size: 22px;
    }

    .movie-parts-section,
    .episodes-section {
        padding: 17px;
    }

    .movie-parts-grid,
    .episodes-grid {
        grid-template-columns: 1fr;
    }

    .movie-part-card {
        flex-wrap: nowrap;
    }

    .movie-part-actions {
        width: auto;
    }

    .movie-part-actions button {
        flex: initial;
    }

    .episode-total {
        font-size: 9px;
        padding: 8px;
    }

    .comment-form-card {
        padding: 17px;
    }

    .related-view-all {
        font-size: 10px;
    }

    .watch-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
        padding: 40px 0 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .watch-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px 0;
    }

}


/* =========================================================
   17. RESPONSIVE — SMALL PHONES
========================================================= */

@media (max-width: 420px) {

    .watch-page {
        width: calc(100% - 20px);
    }

    .watch-header-inner {
        width: calc(100% - 20px);
    }

    .back-home span {
        display: none;
    }

    .back-home {
        width: 38px;
        height: 38px;
        justify-content: center;
        padding: 0;
    }

    .player-breadcrumb {
        font-size: 10px;
    }

    .player-live-label {
        display: none;
    }

    .watch-details {
        grid-template-columns: 85px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .watch-information h1 {
        font-size: 19px;
    }

    .watch-meta span {
        font-size: 8px;
    }

    .watch-information-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .movie-part-card {
        padding: 12px;
        gap: 10px;
    }

    .movie-part-number {
        width: 37px;
        height: 37px;
    }

    .movie-part-info h3 {
        font-size: 12px;
    }

    .movie-part-actions {
        gap: 5px;
    }

    .part-watch-btn,
    .part-download-btn {
        padding: 0 8px;
        font-size: 9px;
    }

    .episode-card {
        padding: 13px;
    }

    .watch-footer-inner {
        gap: 25px 13px;
    }

}


/* =========================================================
   18. ACCESSIBILITY
========================================================= */

.watch-page-body button:focus-visible,
.watch-page-body a:focus-visible,
.watch-page-body input:focus-visible,
.watch-page-body textarea:focus-visible,
.watch-page-body select:focus-visible {
    outline: 2px solid var(--watch-primary-light);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .watch-page-body *,
    .watch-page-body *::before,
    .watch-page-body *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* =========================================
   CINEVA — COMPACT HORIZONTAL RELATED CARDS
========================================= */

.related-section {
    margin-top: 55px;
    padding-bottom: 25px;
    width: 100%;
    overflow: hidden;
}

.related-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 22px;
}

.related-horizontal-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 290px);
    grid-auto-columns: 290px;
    gap: 16px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 5px 3px 18px;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #45405d transparent;
}

.related-horizontal-grid::-webkit-scrollbar {
    height: 5px;
}

.related-horizontal-grid::-webkit-scrollbar-track {
    background: transparent;
}

.related-horizontal-grid::-webkit-scrollbar-thumb {
    background: #45405d;
    border-radius: 20px;
}

.related-horizontal-grid .movie-card {
    width: 290px;
    min-width: 0;

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

    padding: 10px;

    background: #111522;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;

    text-decoration: none;
    color: #fff;

    scroll-snap-align: start;

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

.related-horizontal-grid .movie-card:hover {
    transform: translateY(-4px);
    background: #191d2e;
    border-color: rgba(168,85,247,.5);
}

/* Poster */

.related-horizontal-grid .movie-poster {
    position: relative;

    flex: 0 0 75px;
    width: 75px;
    height: 105px;

    overflow: hidden;
    border-radius: 9px;
    background: #202438;
}

.related-horizontal-grid .movie-poster img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.related-horizontal-grid .movie-card:hover .movie-poster img {
    transform: scale(1.08);
}

/* Movie information */

.related-horizontal-grid .movie-info {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.related-horizontal-grid .movie-info h3 {
    margin: 0;

    color: #f4f4fa;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.related-horizontal-grid .movie-info span {
    color: #9298ad;
    font-size: 11px;
}

/* Horizontal slider arrows */

.related-arrow {
    position: absolute;
    z-index: 5;

    top: 50%;
    transform: translateY(-50%);

    width: 35px;
    height: 35px;

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

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

    background: rgba(15,18,30,.95);
    color: #fff;

    cursor: pointer;

    transition: .25s ease;
}

.related-arrow:hover {
    background: #a855f7;
    border-color: #a855f7;
}

.related-prev {
    left: -12px;
}

.related-next {
    right: -12px;
}

.related-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* Empty message */

.related-horizontal-grid .related-empty {
    color: #9298ad;
    font-size: 13px;
    padding: 15px 0;
}

/* Responsive */

@media (max-width: 600px) {

    .related-section {
        margin-top: 38px;
    }

    .related-horizontal-grid {
        grid-auto-columns: 255px;
        gap: 11px;
    }

    .related-horizontal-grid .movie-card {
        width: 255px;
        gap: 10px;
        padding: 8px;
    }

    .related-horizontal-grid .movie-poster {
        flex-basis: 67px;
        width: 67px;
        height: 95px;
    }

    .related-horizontal-grid .movie-info h3 {
        font-size: 12px;
    }

    .related-arrow {
        display: none;
    }

    .watch-section-heading {
        gap: 12px;
    }

    .related-view-all {
        font-size: 11px;
        white-space: nowrap;
    }
}

.related-arrow.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.related-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* =====================================================
   CINEVA — EPISODE DOWNLOAD ICON BUTTON
===================================================== */

.episode-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.episode-download-btn {
    width: 43px;
    height: 43px;
    min-width: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 12px;

    background: rgba(16, 185, 129, 0.10);
    color: #10b981;

    font-size: 16px;
    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.episode-download-btn:hover:not(:disabled) {
    background: #10b981;
    color: #07130e;
    border-color: #10b981;
    transform: translateY(-2px);
}

.episode-download-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.episode-download-btn i {
    pointer-events: none;
}

.episode-watch-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* CINEVA — Episode Part Selector */

.episode-parts {
    margin: 14px 0;
}

.episode-parts-label {
    display: block;
    margin-bottom: 9px;
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
}

.episode-parts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.episode-part-select {
    padding: 8px 13px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    background: #121221;
    color: #ddd;
    cursor: pointer;
    transition: 0.2s ease;
}

.episode-part-select:hover,
.episode-part-select.active {
    background: #8b35f5;
    border-color: #8b35f5;
    color: #fff;
}

.movie-part-card button:disabled,
.episode-card button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* =========================================================
   19. HOMEPAGE NAVIGATION & FOOTER RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .main-header .navbar {
        gap: 15px;
    }

    .main-header .nav-menu {
        gap: 13px;
    }

    .main-header .nav-link {
        font-size: 11px;
    }

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

@media (max-width: 800px) {

    .main-header .navbar {
        width: calc(100% - 28px);
        min-height: 68px;
    }

    .main-header .mobile-menu-btn {
        display: flex;
    }

    .main-header .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 18px;
        background: #0d0d19;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .main-header .nav-menu.active {
        display: flex;
    }

    .main-header .nav-link {
        padding: 13px 5px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 13px;
    }

    .main-header .nav-actions {
        gap: 6px;
    }

    .main-header .nav-icon {
        width: 34px;
        height: 34px;
    }

    .main-header .sign-in-btn {
        min-height: 34px;
        padding: 0 10px;
        font-size: 10px;
    }

    .main-header .logo-icon {
        width: 37px;
        height: 37px;
    }

    .main-header .logo-text h2 {
        font-size: 21px;
    }

    .main-header .logo-text small {
        font-size: 8px;
    }

    .footer-container {
        width: calc(100% - 36px);
        gap: 30px 20px;
    }

    .footer-bottom-content {
        width: calc(100% - 36px);
    }
}

@media (max-width: 480px) {

    .main-header .navbar {
        gap: 8px;
    }

    .main-header .nav-actions {
        gap: 5px;
    }

    .main-header .nav-actions .nav-icon {
        width: 31px;
        height: 31px;
    }

    .main-header .sign-in-btn {
        padding: 0 8px;
    }

    .main-header .sign-in-btn span {
        display: none;
    }

    .main-header .logo {
        gap: 7px;
    }

    .main-header .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .main-header .logo-text h2 {
        font-size: 19px;
    }

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 27px 15px;
        padding: 40px 0 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom-content {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 17px 0;
    }

    .scroll-top {
        right: 15px;
        bottom: 15px;
        width: 42px;
        height: 42px;
    }
}
/* Hide the main action bar when grouped parts exist */
.has-parts {
    display: none !important;
}

/* Keep grouped part buttons clickable */
.movie-part-card button {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.movie-part-card button:disabled {
    pointer-events: auto;
}
/* CINEVA — Episode part layout */

.episode-part-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

.episode-part-title {
    color: #fff;
    font-weight: 600;
}

.episode-part-item .episode-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.episode-part-item button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .episode-part-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .episode-part-item .episode-actions {
        width: 100%;
    }
}
.episode-download-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.episode-download-btn i {
    font-size: 16px;
}
/* =========================================================
   CINEVA PRO — HIDE DOWNLOAD TEXT, KEEP ICONS
   Add this block at the VERY END of watch.css
========================================================= */

.part-download-btn,
.episode-download-btn {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;

    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 0 !important;

    font-size: 0 !important;
    line-height: 0 !important;

    flex-shrink: 0;
}

/* Keep download icons visible */
.part-download-btn i,
.episode-download-btn i {
    display: inline-block !important;
    width: 17px !important;
    height: 17px !important;

    font-size: 17px !important;
    line-height: 17px !important;
}

/* Support SVG download icons */
.part-download-btn svg,
.episode-download-btn svg {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0;
}

/* Hide nested text labels if present */
.part-download-btn span,
.episode-download-btn span {
    display: none !important;
}

/* =========================================
   CINEVA WATCH PAGE — SEARCH CLOSE
========================================= */

.watch-page-body .search-box {
    position: relative;
    transition: width .3s ease, background .3s ease;
}

/* Collapsed search */
.watch-page-body .search-box.watch-search-collapsed {
    width: 44px;
    min-width: 44px;
    overflow: visible;
}

.watch-page-body .search-box.watch-search-collapsed input {
    display: none !important;
}

.watch-page-body .search-box.watch-search-collapsed .search-results {
    display: none !important;
}

.watch-page-body .search-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: .25s ease;
}

.watch-page-body .search-box:not(.watch-search-collapsed) .search-close-btn {
    display: flex;
}

.watch-page-body .search-close-btn:hover {
    color: #a855f7;
    background: rgba(168, 85, 247, .15);
}

.watch-page-body .search-box.watch-search-collapsed #watchSearchButton {
    display: flex;
}

/* =========================================================
   CINEVA PRO — COMPLETE ANDROID WATCH PAGE EXPERIENCE
   Scoped to watch.html only
========================================================= */

@media (max-width: 600px) {

    /* -----------------------------------------
       1. PAGE FOUNDATION
    ----------------------------------------- */

    .watch-page-body {
        overflow-x: hidden;
        padding-bottom: 75px;
        -webkit-text-size-adjust: 100%;
    }

    .watch-page,
    .watch-content,
    .watch-page-body .container {
        max-width: 100%;
        min-width: 0;
    }

    .watch-page-body .watch-content {
        padding-top: 12px;
    }

    .watch-page-body .watch-content > section {
        margin-bottom: 30px;
    }

    /* -----------------------------------------
       2. CONTENT INFORMATION
    ----------------------------------------- */

    .watch-page-body .watch-details-section {
        padding: 18px 0;
    }

    .watch-page-body .watch-details {
        width: calc(100% - 30px);
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }

    .watch-page-body .watch-poster {
        flex: 0 0 112px;
        width: 112px;
        height: 160px;
        position: relative;
        overflow: hidden;
        border-radius: 12px;
    }

    .watch-page-body .watch-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .watch-page-body .watch-type-badge {
        font-size: 9px;
        padding: 5px 8px;
    }

    .watch-page-body .watch-information {
        min-width: 0;
        flex: 1;
    }

    .watch-page-body .watch-small-label {
        font-size: 9px;
        letter-spacing: 1px;
        line-height: 1.5;
    }

    .watch-page-body .watch-information h1 {
        font-size: clamp(18px, 5vw, 23px);
        line-height: 1.25;
        overflow-wrap: anywhere;
        margin: 5px 0 9px;
    }

    .watch-page-body .watch-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 7px 12px;
        font-size: 10px;
    }

    .watch-page-body .watch-meta > span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .watch-page-body .watch-description {
        font-size: 12px;
        line-height: 1.65;
        margin-top: 12px;
    }

    .watch-page-body .watch-information-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 7px 12px;
        margin-top: 12px;
        font-size: 9px;
    }

    /* -----------------------------------------
       3. VIDEO PLAYER
    ----------------------------------------- */

    .watch-page-body .player-section {
        width: calc(100% - 20px);
        padding: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .watch-page-body .player-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 12px;
    }

    .watch-page-body .player-breadcrumb {
        min-width: 0;
        font-size: 10px;
        overflow: hidden;
    }

    .watch-page-body .player-breadcrumb span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .watch-page-body .player-live-label {
        font-size: 9px;
        white-space: nowrap;
    }

    .watch-page-body .video-player-wrapper {
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: 0;
        max-height: none;
        overflow: hidden;
        border-radius: 13px;
        background: #000;
        box-shadow: 0 12px 35px rgba(0,0,0,.35);
    }

    .watch-page-body .video-player {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        background: #000;
    }

    .watch-page-body .player-empty {
        position: absolute;
        inset: 0;
        padding: 15px;
    }

    .watch-page-body .player-message h3 {
        font-size: 16px;
    }

    .watch-page-body .player-message p {
        font-size: 11px;
        line-height: 1.6;
    }

    /* -----------------------------------------
       4. PLAYER ACTIONS
    ----------------------------------------- */

    .watch-page-body .player-action-bar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 13px 0;
    }

    .watch-page-body .player-action-left,
    .watch-page-body .player-action-right {
        display: flex;
        align-items: center;
        gap: 9px;
        width: 100%;
    }

    .watch-page-body .player-action-left .player-action-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        min-height: 43px;
        font-size: 12px;
    }

    .watch-page-body .player-action-right .player-action-btn {
        flex: 1;
        min-height: 42px;
        justify-content: center;
        font-size: 12px;
    }

    /* -----------------------------------------
       5. MOVIE PARTS
    ----------------------------------------- */

    .watch-page-body .movie-parts-section,
    .watch-page-body .episodes-section,
    .watch-page-body .comments-section,
    .watch-page-body .related-section {
        width: calc(100% - 28px);
        margin-left: auto;
        margin-right: auto;
    }

    .watch-page-body .watch-section-heading {
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 16px;
    }

    .watch-page-body .watch-section-heading h2 {
        font-size: 18px;
        line-height: 1.35;
        margin-top: 5px;
    }

    .watch-page-body .watch-section-heading p {
        font-size: 11px;
        line-height: 1.6;
    }

    .watch-page-body .movie-parts-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .watch-page-body .movie-part-card {
        min-width: 0;
        padding: 14px;
        border-radius: 13px;
    }

    /* -----------------------------------------
       6. SERIES EPISODES
    ----------------------------------------- */

    .watch-page-body .episode-total {
        font-size: 10px;
        white-space: nowrap;
    }

    .watch-page-body .season-filter-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin: 14px 0;
    }

    .watch-page-body .season-filter-wrapper label {
        font-size: 12px;
    }

    .watch-page-body .season-selector {
        width: 100%;
        min-height: 43px;
        font-size: 13px;
        border-radius: 10px;
    }

    .watch-page-body .episodes-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .watch-page-body .episode-card {
        min-width: 0;
        border-radius: 13px;
        padding: 12px;
    }

    .watch-page-body .episode-card button {
        min-height: 40px;
    }

    /* -----------------------------------------
       7. COMMENTS
    ----------------------------------------- */

    .watch-page-body .comment-form-card {
        padding: 15px;
        border-radius: 13px;
    }

    .watch-page-body .comment-form-heading h3 {
        font-size: 15px;
    }

    .watch-page-body .comment-field {
        margin-bottom: 14px;
    }

    .watch-page-body .comment-field label {
        font-size: 12px;
    }

    .watch-page-body .comment-field input,
    .watch-page-body .comment-field textarea {
        width: 100%;
        min-height: 44px;
        padding: 12px;
        font-size: 13px;
        border-radius: 10px;
    }

    .watch-page-body .comment-field textarea {
        min-height: 110px;
        resize: vertical;
    }

    .watch-page-body .post-comment-btn {
        width: 100%;
        min-height: 45px;
        justify-content: center;
        border-radius: 11px;
    }

    .watch-page-body .comments-count {
        font-size: 10px;
        white-space: nowrap;
    }

    .watch-page-body .comments-list {
        margin-top: 17px;
    }

    /* -----------------------------------------
       8. RELATED CONTENT
    ----------------------------------------- */

    .watch-page-body .related-section {
        overflow: hidden;
    }

    .watch-page-body .related-horizontal-grid {
        grid-auto-columns: 78vw;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .watch-page-body .related-horizontal-grid .movie-card {
        width: 100%;
        min-height: 112px;
    }

    /* -----------------------------------------
       9. FOOTER
    ----------------------------------------- */

    .watch-page-body .main-footer {
        padding-bottom: 10px;
    }

    .watch-page-body .footer-container {
        width: calc(100% - 32px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 16px;
    }

    .watch-page-body .footer-brand {
        grid-column: 1 / -1;
    }

    .watch-page-body .footer-column h3 {
        font-size: 13px;
    }

    .watch-page-body .footer-link {
        font-size: 11px;
    }

    .watch-page-body .footer-bottom-content {
        width: calc(100% - 30px);
        gap: 8px;
        font-size: 10px;
    }

    /* -----------------------------------------
       10. MOBILE BOTTOM NAVIGATION
    ----------------------------------------- */

    .watch-page-body .mobile-bottom-nav {
        position: fixed;
        z-index: 1100;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-height: 62px;
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 4px;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        background: rgba(10, 10, 22, .97);
        border-top: 1px solid rgba(168, 85, 247, .20);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .watch-page-body .mobile-bottom-nav a {
        flex: 1;
        min-width: 0;
        min-height: 45px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #9996ad;
        text-decoration: none;
        font-size: 9px;
        border-radius: 10px;
    }

    .watch-page-body .mobile-bottom-nav a i {
        font-size: 16px;
    }

    /* Hide Profile item in bottom navigation */

    .watch-page-body .mobile-bottom-nav a:last-child {
        display: none !important;
    }

    .watch-page-body .mobile-bottom-nav a:active {
        color: #a855f7;
        background: rgba(168, 85, 247, .10);
    }

    /* Back-to-top above bottom navigation */

    .watch-page-body .scroll-top {
        bottom: 78px;
        right: 15px;
        z-index: 1050;
    }

}

/* =========================================================
   VERY SMALL ANDROID SCREENS
========================================================= */

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

    .watch-page-body .watch-details {
        gap: 11px;
    }

    .watch-page-body .watch-poster {
        flex-basis: 98px;
        width: 98px;
        height: 145px;
    }

    .watch-page-body .watch-information h1 {
        font-size: 18px;
    }

    .watch-page-body .watch-meta {
        gap: 6px 9px;
    }

    .watch-page-body .player-action-left,
    .watch-page-body .player-action-right {
        gap: 6px;
    }

    .watch-page-body .player-action-btn {
        font-size: 11px;
    }

}

/* =========================================================
   ACCESSIBILITY — ANDROID TOUCH
========================================================= */

@media (hover: none) and (pointer: coarse) {

    .watch-page-body button,
    .watch-page-body .mobile-bottom-nav a {
        -webkit-tap-highlight-color: transparent;
    }

    .watch-page-body .related-horizontal-grid .movie-card:hover {
        transform: none;
    }

}


/* =========================================================
   WATCH HEADER — USE THE SAME HOMEPAGE HEADER SYSTEM
   Shared structure, typography, controls and mobile navigation
========================================================= */
.watch-page-body .main-header {
    height: var(--header-height, 76px);
    min-height: var(--header-height, 76px);
    background: var(--nav-glass, rgba(9,9,13,.94));
    border-bottom: 1px solid var(--nav-border, rgba(255,255,255,.075));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    z-index: 2000;
}
.watch-page-body .main-header.scrolled {
    background: rgba(7,7,11,.98);
    box-shadow: 0 12px 35px rgba(0,0,0,.35);
}
.watch-page-body .main-header .navbar.container {
    width: min(100% - 64px, 1600px);
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.watch-page-body .main-header .logo { gap: 11px; color: white; }
.watch-page-body .main-header .logo-text h2 {
    margin: 0;
    font-family: inherit;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.15;
}
.watch-page-body .main-header .logo-text small {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.05px;
    text-transform: uppercase;
}
.watch-page-body .main-header .nav-menu {
    position: static;
    width: auto;
    padding: 0;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    backdrop-filter: none;
}
.watch-page-body .main-header .nav-link {
    width: auto;
    padding: 12px 14px;
    border: 0;
    border-radius: 11px;
    color: #a7a5ad;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.watch-page-body .main-header .nav-link:hover { color: #fff; background: var(--nav-hover); }
.watch-page-body .main-header .nav-link.active { color: #fff; background: var(--gradient-primary); }
.watch-page-body .main-header .nav-actions { display:flex; align-items:center; gap:9px; flex-shrink:0; }
.watch-page-body .main-header .nav-icon {
    width:39px; height:39px; display:inline-flex; align-items:center; justify-content:center;
    background:transparent; border:1px solid transparent; border-radius:10px;
    color:#b9b5c4; font-size:17px;
}
.watch-page-body .main-header .nav-icon:hover { color:#fff; background:rgba(255,255,255,.08); border-color:var(--nav-border); }
.watch-page-body .main-header .theme-toggle { color:#ffc857; }
.watch-page-body .main-header .sign-in-btn {
    min-height:40px; display:inline-flex; align-items:center; justify-content:center;
    gap:8px; padding:0 16px; border-radius:10px;
    background:var(--gradient-primary); color:#fff; font-size:12px; font-weight:800;
}
.watch-page-body .main-header .mobile-menu-btn {
    display:none; width:39px; height:39px; align-items:center; justify-content:center;
    color:#fff; background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.1); border-radius:10px;
}
.watch-page-body .main-header .search-box {
    width:clamp(180px,24vw,330px); min-width:150px; height:48px;
}
.watch-page-body .main-header .search-box button { min-width:64px; height:36px; }

@media(max-width:1200px) {
    .watch-page-body .main-header .navbar.container { width:calc(100% - 45px); gap:15px; }
    .watch-page-body .main-header .nav-menu { gap:2px; }
    .watch-page-body .main-header .nav-link { padding:9px 10px; font-size:12px; }
    .watch-page-body .main-header .nav-actions { gap:9px; }
    .watch-page-body .main-header .search-box { width:clamp(150px,20vw,240px); min-width:130px; }
}
@media(max-width:950px) {
    .watch-page-body .main-header .navbar.container { width:calc(100% - 36px); gap:10px; }
    .watch-page-body .main-header .nav-menu {
        position:absolute; top:100%; left:0; width:100%;
        padding:15px 25px 22px; display:flex; flex-direction:column;
        align-items:stretch; justify-content:flex-start; gap:5px;
        background:rgba(10,10,21,.98); border-bottom:1px solid var(--border-color);
        opacity:0; visibility:hidden; transform:translateY(-12px);
        backdrop-filter:blur(20px);
    }
    .watch-page-body .main-header .nav-menu.active { opacity:1; visibility:visible; transform:translateY(0); }
    .watch-page-body .main-header .nav-link { width:100%; padding:13px 15px; font-size:13px; }
    .watch-page-body .main-header .mobile-menu-btn { display:flex; }
    .watch-page-body .main-header .search-box { width:44px; min-width:44px; }
    .watch-page-body .main-header .search-box input { display:none; }
}
@media(max-width:600px) {
    .watch-page-body .main-header { height:68px; min-height:68px; }
    .watch-page-body .main-header .navbar.container { width:calc(100% - 22px); gap:7px; }
    .watch-page-body .main-header .logo { gap:8px; }
    .watch-page-body .main-header .logo .brand-icon { width:41px; height:41px; flex:0 0 41px; }
    .watch-page-body .main-header .logo-text h2 { font-size:20px; }
    .watch-page-body .main-header .logo-text small { font-size:7px; letter-spacing:.8px; }
    .watch-page-body .main-header .nav-actions { gap:5px; }
    .watch-page-body .main-header .nav-icon,
    .watch-page-body .main-header .theme-toggle,
    .watch-page-body .main-header .mobile-menu-btn { width:34px; height:34px; min-width:34px; }
    .watch-page-body .main-header .sign-in-btn { min-height:34px; padding:0 9px; font-size:10px; }
    .watch-page-body .main-header .search-box { width:36px; min-width:36px; height:36px; }
}
@media(max-width:380px) {
    .watch-page-body .main-header .logo-text h2 { font-size:18px; }
    .watch-page-body .main-header .nav-icon { display:none; }
    .watch-page-body .main-header .sign-in-btn span { display:none; }
    .watch-page-body .main-header .sign-in-btn { width:34px; padding:0; }
}


/* =========================================================
   CINEVA — EMBEDDED VIDEO HOST SUPPORT
   Direct MP4/HLS uses the native player; hosted player pages
   (including StreamHG/HGCloud embeds) use this responsive iframe.
========================================================= */
.watch-page-body .video-player-wrapper {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 760px;
    overflow: hidden;
    background: #000;
}

/* Keep native video and embedded players inside the same fixed frame.
   Absolute positioning prevents video metadata/playback from changing
   the wrapper's dimensions. */
.watch-page-body .video-player {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    background: #000;
}
.watch-page-body .video-player[hidden],
.watch-page-body .video-embed-player[hidden] {
    display: none !important;
}
.watch-page-body .video-embed-player {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    background: #000;
}


/* =====================================================
   CINEVA — CONTENT TRANSLATOR BADGE
   Shared by movie and series watch pages
===================================================== */
.watch-meta .watch-translator-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    color: #f3e8ff;
    background: linear-gradient(135deg, rgba(139, 53, 245, .24), rgba(168, 85, 247, .12));
    border: 1px solid rgba(168, 85, 247, .42);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.watch-meta .watch-translator-badge > i {
    color: #c084fc;
    font-size: 14px;
}
.watch-meta .watch-translator-badge[hidden] {
    display: none !important;
}
@media (max-width: 600px) {
    .watch-meta .watch-translator-badge {
        padding: 7px 9px;
        font-size: 10px;
    }
}


/* Keep engagement actions visible when the movie-only controls are hidden. */
.player-action-left[hidden] {
    display: none !important;
}


/* CINEVA — circular translator portrait on the watch page */
.watch-meta .watch-translator-avatar { position:relative; display:inline-grid; place-items:center; width:28px; height:28px; flex:0 0 28px; overflow:hidden; border-radius:50%; background:linear-gradient(135deg,#a855f7,#6334c9); color:#fff; font-size:11px; font-weight:800; }
.watch-meta .watch-translator-avatar img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; border-radius:50%; }
.watch-meta .watch-translator-avatar img[hidden] { display:none !important; }
.watch-meta .watch-translator-avatar > span { line-height:1; }



/* =========================================================
   CINEVA — MEDIUM POSTER CARDS ON WATCH-RELATED CONTENT
   Preserve the horizontal carousel interaction while using
   the same vertical poster-card proportions as discovery.
========================================================= */
.watch-page-body .related-horizontal-grid {
    grid-auto-columns: 176px;
    gap: 14px;
}

.watch-page-body .related-horizontal-grid > .movie-card {
    width: 176px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.watch-page-body .related-horizontal-grid .movie-poster {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: 0;
}

.watch-page-body .related-horizontal-grid .movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-page-body .related-horizontal-grid .movie-info {
    min-height: 88px;
    padding: 11px 10px 12px;
}

.watch-page-body .related-horizontal-grid .movie-info h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 39px;
    max-height: 39px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.5;
}

.watch-page-body .related-horizontal-grid .movie-meta {
    margin-top: 6px;
    font-size: 9px;
}

@media (max-width: 600px) {
    .watch-page-body .related-horizontal-grid {
        grid-auto-columns: 158px;
        gap: 11px;
    }

    .watch-page-body .related-horizontal-grid > .movie-card {
        width: 158px;
    }

    .watch-page-body .related-horizontal-grid .movie-info {
        min-height: 78px;
        padding: 9px 8px 10px;
    }

    .watch-page-body .related-horizontal-grid .movie-info h3 {
        min-height: 34px;
        max-height: 34px;
        font-size: 11px;
    }
}
