/* YabanciDizi-inspired dark skin for the clean Asya Fanatikleri package. */
:root {
    --bg: #070707;
    --header-bg: #151617;
    --card-bg: #1a1b1d;
    --card: #1a1b1d;
    --surface: #111214;
    --surface-2: #202124;
    --primary: #d62b1f;
    --primary-hover: #f14538;
    --accent: #ff3b2f;
    --text: #f3f3f3;
    --text-muted: #a6a6a6;
    --text-nav: #e8e8e8;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.05);
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --container: 1120px;
    --header-top-h: 62px;
}

html,
body {
    background: #050505 !important;
}

body {
    color: var(--text);
    font-size: 13px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% -10%, rgba(214, 43, 31, 0.12), transparent 35%),
        linear-gradient(180deg, #0c0c0d 0%, #050505 45%, #030303 100%);
}

.container,
body.menu-sidebar .site-frame {
    max-width: var(--container);
}

body:not(.menu-sidebar) .site-body {
    width: min(var(--container), calc(100vw - 28px));
    margin: 0 auto;
    background: #111214;
    border-left: 1px solid #050505;
    border-right: 1px solid #050505;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.025), 0 24px 90px rgba(0, 0, 0, 0.55);
}

body.menu-sidebar .site-frame {
    background: #111214;
    border-left: 1px solid #050505;
    border-right: 1px solid #050505;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}

.main-content {
    padding-top: 18px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 110;
    background: #161719;
    border-bottom: 2px solid var(--primary);
    box-shadow: none;
}

.header-top {
    min-height: var(--header-top-h);
    background: linear-gradient(180deg, #1a1b1d 0%, #141516 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-content {
    min-height: var(--header-top-h);
    gap: 0;
}

body:not(.menu-sidebar) .header-content {
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr);
    grid-template-areas:
        "brand actions"
        "nav nav";
    align-items: center;
    column-gap: 24px;
    row-gap: 0;
}

body:not(.menu-sidebar) .left-section {
    display: contents;
}

body:not(.menu-sidebar) .logo-section {
    grid-area: brand;
}

body:not(.menu-sidebar) .main-navigation {
    grid-area: nav;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body:not(.menu-sidebar) .right-section {
    grid-area: actions;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: min(680px, 100%);
}

.logo-section {
    min-width: 150px;
}

.site-logo {
    gap: 7px;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #f6f6f6;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 8px 22px rgba(214, 43, 31, 0.32);
}

.logo-name {
    font-size: 21px;
    line-height: 1;
}

.main-navigation {
    flex: 1;
}

.nav-menu {
    min-height: 38px;
    gap: 2px;
}

.nav-link {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 4px;
    color: #eeeeee;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.nav-link.active {
    box-shadow: inset 0 -2px 0 var(--primary);
}

.right-section {
    gap: 9px;
}

.search-section {
    width: min(360px, 38vw);
}

.search-wrapper {
    border: 0;
    border-radius: 5px;
    background: #343537;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.search-input {
    height: 34px;
    padding: 0 44px 0 38px;
    background: transparent;
    color: #f4f4f4;
    font-size: 12px;
}

.search-input::placeholder {
    color: #d0d0d0;
}

.search-btn {
    left: 8px;
    right: auto;
    width: 26px;
    height: 26px;
    color: #d6d6d6;
    background: transparent;
}

.search-results {
    top: calc(100% + 8px);
    background: #1a1b1d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.btn,
.btn-login,
.btn-register,
.view-all-btn {
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
}

.btn-login,
.btn-register,
.view-all-btn {
    background: #5f6064;
    border: 0;
    color: #fff;
}

.btn-login:hover,
.btn-register:hover,
.view-all-btn:hover {
    background: #74757a;
    color: #fff;
    transform: none;
}

.theme-toggle,
.user-avatar-btn,
.header-icon-btn,
.hamburger-btn,
.search-mobile-btn {
    border-radius: 5px;
    background: #242527;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f0f0f0;
}

.mega-menu {
    top: calc(100% + 2px);
    background: #171819;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid var(--primary);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow);
}

.mega-menu-link:hover {
    background: rgba(214, 43, 31, 0.12);
    color: #fff;
}

/* Sections */
.hero-fallback,
.content-section,
.home-ep-section,
.home-upcoming-section,
.home-continue-section,
.home-legend-section,
.quiz-home-section,
.listing-section {
    margin: 0;
    padding: 18px 0;
    background: transparent;
}

.hero-fallback .container {
    padding-top: 14px;
    padding-bottom: 14px;
    text-align: center;
}

.hero-fallback h1 {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.hero-fallback p {
    color: #f0a28f;
    font-size: 12px;
}

.section-header,
.home-ep-header,
.home-upcoming-header {
    margin-bottom: 12px;
    padding: 0;
    border: 0;
}

.section-header-main,
.home-ep-header .section-header-main {
    gap: 8px;
}

.section-header-accent,
.section-header-star {
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: none;
}

.section-header-title,
.home-ep-header .section-header-title,
.home-upcoming-title {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.content-section .container,
.home-ep-section .container,
.home-upcoming-section .container,
.home-continue-section .container,
.home-legend-section .container {
    padding-left: 28px;
    padding-right: 28px;
}

/* Home sliders and grids */
.slider-container,
.home-slider-dual,
.home-slider,
.hero-slider {
    border-radius: 0;
    background: #101112;
}

.content-grid,
.content-grid-static,
.poster-grid,
.listing-grid,
.home-legend-grid {
    gap: 18px;
}

.content-grid-home-country {
    gap: 18px;
}

.poster-card,
.content-card,
.home-legend-card {
    color: #f4f4f4;
}

.poster-card-image,
.home-legend-card-figure {
    overflow: hidden;
    border-radius: 5px;
    background: #222326;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.poster-card-image::after,
.home-legend-card-figure::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.76));
    transition: opacity 0.2s ease;
}

.poster-card:hover .poster-card-image::after,
.home-legend-card:hover .home-legend-card-figure::after {
    opacity: 1;
}

.poster-card-image img,
.home-legend-card-figure img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.poster-card:hover .poster-card-image img,
.home-legend-card:hover .home-legend-card-figure img {
    transform: scale(1.045);
    filter: brightness(1.08);
}

.poster-card-meta {
    padding-top: 8px;
}

.poster-card-title,
.home-legend-card-title {
    color: #f7f7f7;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.poster-card-sub,
.poster-card-year,
.latest-ep-time {
    color: #999;
}

.poster-card-overlay {
    left: 7px;
    right: 7px;
    bottom: 7px;
}

.poster-card-rating,
.poster-card-year,
.poster-card-status,
.poster-card-ongoing,
.poster-card-new-episodes,
.ep-card-badge {
    border: 0;
    border-radius: 4px;
    background: rgba(33, 34, 36, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.poster-card-rating,
.poster-card-new-episodes {
    background: var(--primary);
}

/* Latest episode cards */
.home-ep-tabs {
    gap: 8px;
    margin-bottom: 12px;
}

.home-ep-tab {
    min-height: 28px;
    padding: 0 14px;
    border: 0;
    border-radius: 4px;
    background: #202124;
    color: #bdbdbd;
    font-size: 11px;
    font-weight: 900;
}

.home-ep-tab:hover,
.home-ep-tab.is-active {
    background: #313236;
    color: #fff;
}

.latest-ep-grid,
.home-ep-grid {
    gap: 8px;
}

.latest-ep-card {
    min-height: 64px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    background: #1b1c1f;
    color: #fff;
    box-shadow: none;
}

.latest-ep-card:hover {
    background: #232428;
    border-color: rgba(214, 43, 31, 0.35);
    transform: none;
}

.latest-ep-thumb {
    width: 86px;
    height: 48px;
    border-radius: 4px;
    background: #292a2e;
}

.latest-ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-ep-title {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.latest-ep-meta {
    color: #d6d6d6;
    font-size: 11px;
}

.latest-ep-time {
    font-size: 10px;
}

.latest-ep-badges {
    align-self: flex-end;
    gap: 4px;
}

.badge-translating,
.badge-new-series,
.badge-final-ep {
    background: #5f4b16;
    color: #ffe08a;
}

/* Sidebar layout remains supported if enabled from admin. */
body.menu-sidebar .site-sidebar {
    background: #151617;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

body.menu-sidebar .site-sidebar-inner {
    padding: 12px 8px 18px;
}

body.menu-sidebar .site-sidebar-link {
    border-radius: 5px;
    color: #dcdcdc;
}

body.menu-sidebar .site-sidebar-link:hover,
body.menu-sidebar .site-sidebar-link.is-active {
    background: rgba(214, 43, 31, 0.12);
    color: #fff;
}

body.menu-sidebar .site-sidebar-trends {
    background: #1b1c1f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

/* Footer and text-heavy blocks */
.site-footer,
.footer {
    background: #101112;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-card,
.detail-card,
.comments-section,
.profile-card,
.auth-card,
.filter-panel,
.listing-filter,
.seo-content,
.faq-section {
    background: #171819;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

/* Chat is intentionally removed in this theme. */
.live-chat-root,
.live-chat-fab-wrap,
.live-chat-panel {
    display: none !important;
}

@media (max-width: 1180px) {
    body:not(.menu-sidebar) .site-body,
    body.menu-sidebar .site-frame {
        width: 100%;
        border: 0;
    }

    .site-header {
        border-bottom-width: 2px;
    }

    .header-content {
        min-height: 56px;
    }

    .logo-name {
        font-size: 18px;
    }

    .search-section {
        width: auto;
    }

    .main-navigation.open {
        background: #151617;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .main-navigation.open .nav-menu {
        padding: 10px 0;
        gap: 4px;
    }

    .nav-link {
        justify-content: flex-start;
        min-height: 36px;
    }

    .content-section .container,
    .home-ep-section .container,
    .home-upcoming-section .container,
    .home-continue-section .container,
    .home-legend-section .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section-header-title,
    .home-ep-header .section-header-title,
    .home-upcoming-title {
        font-size: 16px;
    }

    .latest-ep-thumb {
        width: 78px;
        height: 44px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 12px;
    }

    .main-content {
        padding-top: 10px;
    }

    .content-grid,
    .content-grid-static,
    .poster-grid,
    .listing-grid,
    .home-legend-grid {
        gap: 12px;
    }

    .poster-card-title,
    .home-legend-card-title {
        font-size: 12px;
    }

    .latest-ep-card {
        min-height: 58px;
    }
}

/* Legacy shared skin fallbacks */
body {
    background: #08090b;
    color: #e9e9e9;
}

.theme-toggle,
.mega-menu,
.search-mobile-btn,
.content-collection-btn,
[data-collection-open],
.collection-picker-modal,
.live-chat-widget,
.live-chat-toggle,
.live-chat-panel {
    display: none;
}

.af-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 14, 16, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px);
}

.af-header .container,
.af-header-inner {
    max-width: 1180px;
}

.af-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 68px;
    padding: 10px 0;
}

.af-header-brand {
    flex: 0 0 auto;
    min-width: 166px;
}

.af-header .site-logo,
.af-header .logo-link {
    color: #fff;
}

.af-main-nav {
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    position: static;
    border: 0;
}

.af-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.af-nav-menu .nav-item {
    position: relative;
    display: block;
    list-style: none;
}

.af-nav-menu .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: #e6e6e6;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    background: transparent;
    border: 1px solid transparent;
}

.af-nav-menu .nav-link:hover,
.af-nav-menu .nav-link.active,
.af-nav-dropdown a:hover,
.af-nav-dropdown a.active {
    color: #fff;
    background: rgba(214, 43, 31, 0.18);
    border-color: rgba(214, 43, 31, 0.42);
}

.nav-chevron {
    font-size: 10px;
    color: #ff8a82;
}

.af-nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    background: #151618;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid var(--primary);
    border-radius: 10px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.nav-item-has-dropdown:hover .af-nav-dropdown,
.nav-item-has-dropdown:focus-within .af-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.af-nav-dropdown a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    color: #d9d9d9;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
}

.af-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.af-search {
    display: block;
    width: 280px;
    flex: 0 0 280px;
    margin: 0;
    position: relative;
}

.af-search .search-wrapper {
    height: 40px;
    border-radius: 999px;
    background: #1a1b1e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    overflow: visible;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.af-search .search-wrapper:focus-within {
    border-color: rgba(214, 43, 31, 0.72);
    box-shadow: 0 0 0 3px rgba(214, 43, 31, 0.14);
}

.af-search .search-input {
    width: 100%;
    height: 38px;
    padding: 0 45px 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 13px;
}

.af-search .search-input::placeholder {
    color: #898d94;
}

.af-search .search-btn {
    position: absolute;
    top: 4px;
    right: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    border: 0;
}

.af-search .search-results {
    top: calc(100% + 9px);
    left: auto;
    right: 0;
    width: min(390px, calc(100vw - 28px));
    background: #151618;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 2px solid var(--primary);
    border-radius: 12px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.leftbar-search-result-head,
.search-results-header {
    background: #1e1f22;
    color: #ffaaa3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown-menu {
    background: #151618;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid var(--primary);
    border-radius: 10px;
}

.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #1b1c1f;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.hamburger-btn span {
    background: #fff;
}

.af-nav-menu .nav-sub-mobile,
.af-nav-menu .nav-sub-mobile-heading,
.af-nav-menu .nav-auth-mobile {
    display: none;
}

.af-search {
    width: 240px;
    flex-basis: 240px;
}

.af-footer {
    margin-top: 52px;
    background: #0c0d0f;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.af-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 40px;
    padding: 36px 0 26px;
}

.af-footer-logo {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.af-footer .footer-about {
    max-width: 460px;
    margin: 16px 0 0;
    color: #a4a7ad;
    font-size: 13px;
    line-height: 1.75;
}

.af-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.af-footer .footer-menu-title {
    margin-bottom: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.af-footer .footer-menu-nav {
    display: grid;
    gap: 8px;
}

.af-footer .footer-menu-nav a {
    color: #a7abb2;
    font-size: 13px;
}

.af-footer .footer-menu-nav a:hover {
    color: #fff;
}

.af-footer-bottom {
    padding: 14px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.af-footer .footer-copyright {
    margin: 0;
    color: #858991;
    font-size: 12px;
}

.series-hero,
.watch-page {
    background:
        radial-gradient(circle at top left, rgba(214, 43, 31, 0.16), transparent 32%),
        linear-gradient(180deg, #111214 0%, #08090b 260px);
}

.series-hero-card,
.watch-layout,
.detail-box,
.content-about-box,
.watch-actions-card,
.watch-sidebar-card,
.movie-info-card,
.series-info-card {
    background: #141517;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 12px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.34);
}

.series-hero-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
}

.series-hero-poster {
    padding: 18px;
    background: #0e0f11;
}

.series-hero-poster img {
    border-radius: 9px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48);
}

.series-hero-panel {
    min-height: 330px;
    border-radius: 0;
}

.series-hero-panel-overlay {
    background: linear-gradient(90deg, rgba(20, 21, 23, 0.98) 0%, rgba(20, 21, 23, 0.9) 45%, rgba(20, 21, 23, 0.64) 100%);
}

.series-title,
.watch-title {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.series-original,
.watch-ep-line,
.breadcrumb,
.breadcrumb a {
    color: #a3a7ae;
}

.meta-badge,
.season-tab,
.ep-nav-btn,
.watch-status-btn,
.series-section-tab {
    background: #1d1e21;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d9dce1;
    border-radius: 999px;
}

.meta-rating,
.meta-badge:hover,
.season-tab.active,
.season-tab:hover,
.series-section-tab.active,
.series-section-tab:hover,
.ep-nav-btn:hover,
.watch-like-btn.is-active,
.watch-status-btn.is-active {
    background: rgba(214, 43, 31, 0.2);
    border-color: rgba(214, 43, 31, 0.48);
    color: #fff;
}

.btn-primary,
.btn-watch,
.btn-register {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover,
.btn-watch:hover,
.btn-register:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline,
.btn-login,
.btn-trailer {
    background: #202124;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #f1f1f1;
}

.watch-layout {
    align-items: start;
    padding: 14px;
    gap: 18px;
}

.watch-main,
.watch-sidebar {
    min-width: 0;
}

.player-block,
.player-shell,
.video-player,
.player-placeholder {
    border-radius: 10px;
    overflow: hidden;
    background: #050506;
}

.episode-list {
    display: grid;
    gap: 8px;
}

.episode-item {
    min-height: 46px;
    background: #1b1c1f;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    color: #e8e8e8;
}

.episode-item:hover,
.episode-item-current {
    background: rgba(214, 43, 31, 0.18);
    border-color: rgba(214, 43, 31, 0.42);
}

.ep-number {
    background: var(--primary);
    color: #fff;
}

.comment-form,
.comments-section,
.comment-item {
    background: #141517;
    border-color: rgba(255, 255, 255, 0.075);
}

@media (max-width: 1180px) {
    .af-header-inner {
        min-height: 64px;
    }

    .af-search {
        width: 240px;
        flex-basis: 240px;
    }

    .af-main-nav {
        display: none;
    }

    .af-main-nav.open {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: calc(100vh - 64px);
        padding: 16px;
        background: rgba(10, 11, 13, 0.99);
        border-top: 1px solid rgba(214, 43, 31, 0.45);
        overflow-y: auto;
    }

    .af-main-nav.open .af-nav-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .af-main-nav.open .nav-link {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        border-radius: 9px;
        background: #17181b;
    }

    .af-main-nav.open .af-nav-dropdown,
    .af-main-nav.open .nav-chevron {
        display: none;
    }

    .af-main-nav.open .nav-sub-mobile,
    .af-main-nav.open .nav-auth-mobile {
        display: block;
    }

    .af-main-nav.open .nav-sub-mobile-heading {
        display: block;
        grid-column: 1 / -1;
        padding: 10px 2px 3px;
        color: #ffaaa3;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .hamburger-btn {
        display: inline-flex;
    }
}

@media (max-width: 760px) {
    .af-header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand actions"
            "search search";
        gap: 9px;
    }

    .af-header-brand {
        grid-area: brand;
        min-width: 0;
    }

    .af-header-actions {
        grid-area: actions;
    }

    .af-search {
        grid-area: search;
        width: 100%;
        flex-basis: auto;
    }

    .af-header-actions .af-search {
        position: absolute;
        left: 0;
        right: 0;
        top: 52px;
    }

    .af-main-nav.open {
        top: 112px;
        height: calc(100vh - 112px);
    }

    .af-main-nav.open .af-nav-menu {
        grid-template-columns: 1fr;
    }

    .auth-buttons .btn-register,
    .user-name-short {
        display: none;
    }

    .series-hero-card {
        grid-template-columns: 1fr;
    }

    .series-hero-poster {
        max-width: 250px;
        width: 100%;
        margin: 0 auto;
        background: transparent;
    }

    .series-hero-panel {
        min-height: auto;
    }

    .watch-layout {
        display: block;
    }

    .af-footer-inner,
    .af-footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .af-header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .af-header-brand {
        flex: 1 1 auto;
        order: 1;
    }

    .af-header-actions {
        display: contents;
    }

    .af-search {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        position: relative;
        left: auto;
        right: auto;
        top: auto;
    }

    .af-header-actions .af-search {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
    }

    .user-section {
        order: 2;
    }

    .hamburger-btn {
        order: 2;
    }
}

/* Legacy header fallback */
.theme-toggle-btn,
.theme-toggle,
[id="themeToggleBtn"] {
    display: none;
}

.site-header {
    border-bottom: 1px solid rgba(214, 43, 31, 0.85);
}

.header-top {
    min-height: 58px;
}

body:not(.menu-sidebar) .header-content {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
}

body:not(.menu-sidebar) .left-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

body:not(.menu-sidebar) .logo-section {
    flex: 0 0 auto;
    min-width: 0;
}

.site-logo {
    white-space: nowrap;
}

.logo-mark {
    width: 28px;
    height: 28px;
    font-size: 13px;
}

.logo-name {
    font-size: 18px;
}

body:not(.menu-sidebar) .main-navigation {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    border-top: 0;
}

body:not(.menu-sidebar) .nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 3px;
    min-height: 38px;
    overflow: visible;
}

body:not(.menu-sidebar) .nav-item {
    flex: 0 0 auto;
}

.nav-link {
    min-height: 34px;
    padding: 0 9px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 34px;
    white-space: nowrap;
}

.nav-chevron {
    margin-left: 3px;
}

.nav-link.active {
    background: rgba(214, 43, 31, 0.2);
    box-shadow: inset 0 -2px 0 var(--primary);
}

body:not(.menu-sidebar) .right-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    gap: 8px;
}

.search-section {
    flex: 0 1 235px;
    width: 235px;
}

.search-wrapper {
    height: 34px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.auth-buttons .btn,
.btn-login,
.btn-register {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hamburger-btn,
.search-mobile-btn {
    display: none;
}

/* User/admin dropdown must follow the same dark red theme. */
.user-dropdown-menu {
    width: 230px;
    top: calc(100% + 9px);
    background: #171819;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.user-info {
    background: #1d1e21;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.user-info .user-name {
    color: #fff;
}

.user-level {
    background: rgba(214, 43, 31, 0.16);
    border-color: rgba(214, 43, 31, 0.35);
    color: #ffb2ab;
}

.dropdown-links a,
.dropdown-links .logout-link-btn {
    color: #d8d8d8;
    font-size: 13px;
}

.dropdown-links a:hover,
.dropdown-links .logout-link-btn:hover {
    background: rgba(214, 43, 31, 0.16);
    color: #fff;
}

.user-avatar-btn {
    min-height: 34px;
    padding: 3px 10px 3px 4px;
    background: #242527;
    border-color: rgba(255, 255, 255, 0.08);
}

.user-avatar-btn:hover,
.user-dropdown.open .user-avatar-btn {
    background: rgba(214, 43, 31, 0.18);
    border-color: rgba(214, 43, 31, 0.45);
}

.user-avatar-letter,
.member-avatar-wrap .user-avatar-letter {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 1180px) {
    body:not(.menu-sidebar) .header-content {
        gap: 10px;
    }

    body:not(.menu-sidebar) .left-section {
        gap: 10px;
    }

    .logo-name {
        font-size: 16px;
    }

    .nav-link {
        padding: 0 7px;
        font-size: 10.5px;
    }

    .search-section {
        flex-basis: 205px;
        width: 205px;
    }

    .auth-buttons .btn,
    .btn-login,
    .btn-register {
        padding: 0 10px;
    }
}

@media (max-width: 992px) {
    body:not(.menu-sidebar) .header-content {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        grid-template-areas:
            "brand search auth menu";
        min-height: 58px;
        gap: 8px;
    }

    body:not(.menu-sidebar) .left-section {
        display: contents;
    }

    body:not(.menu-sidebar) .logo-section {
        grid-area: brand;
    }

    body:not(.menu-sidebar) .right-section {
        display: contents;
    }

    .search-section {
        grid-area: search;
        display: block;
        width: 100%;
        min-width: 0;
        flex-basis: auto;
    }

    .user-section {
        grid-area: auth;
        justify-self: end;
    }

    .auth-buttons {
        gap: 5px;
    }

    .auth-buttons .btn,
    .btn-login,
    .btn-register {
        min-height: 32px;
        padding: 0 9px;
        font-size: 11px;
    }

    .hamburger-btn {
        grid-area: menu;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
        width: 36px;
        height: 34px;
        position: static;
    }

    .search-mobile-btn {
        display: none;
    }

    body:not(.menu-sidebar) .main-navigation {
        display: none;
    }

    body:not(.menu-sidebar) .main-navigation.open {
        display: block;
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: calc(100vh - 58px);
        min-height: 360px;
        z-index: 999;
        overflow-y: auto;
        padding: 14px;
        background: rgba(12, 13, 14, 0.98);
        border-top: 1px solid rgba(214, 43, 31, 0.75);
    }

    body:not(.menu-sidebar) .main-navigation.open .nav-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        align-items: stretch;
    }

    body:not(.menu-sidebar) .main-navigation.open .nav-item {
        display: list-item;
        min-width: 0;
    }

    body:not(.menu-sidebar) .main-navigation.open .nav-link {
        width: 100%;
        min-height: 42px;
        padding: 0 12px;
        justify-content: flex-start;
        line-height: 42px;
        background: #18191b;
        border: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 12px;
    }

    body:not(.menu-sidebar) .main-navigation.open .nav-link:hover,
    body:not(.menu-sidebar) .main-navigation.open .nav-link.active {
        background: rgba(214, 43, 31, 0.2);
        border-color: rgba(214, 43, 31, 0.42);
    }

    body:not(.menu-sidebar) .main-navigation.open .nav-sub-mobile-heading {
        grid-column: 1 / -1;
        margin: 8px 0 2px;
        padding: 7px 2px 2px;
        color: #ffb2ab;
    }

    body:not(.menu-sidebar) .main-navigation.open .nav-auth-mobile .btn {
        width: 100%;
        margin: 0;
    }

    .mega-menu {
        display: none;
    }
}

@media (max-width: 640px) {
    body:not(.menu-sidebar) .header-content {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "brand auth menu"
            "search search search";
        padding: 7px 0;
        row-gap: 7px;
    }

    .logo-name {
        font-size: 15px;
    }

    .logo-mark {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .auth-buttons .btn-register {
        display: none;
    }

    .search-wrapper,
    .search-input {
        height: 32px;
    }

    body:not(.menu-sidebar) .main-navigation.open {
        top: 92px;
        height: calc(100vh - 92px);
        min-height: 360px;
    }

    body:not(.menu-sidebar) .main-navigation.open .nav-menu {
        grid-template-columns: 1fr;
    }
}

/* Legacy home and trends fallback */
:root {
    --yd-red: #e02b22;
    --yd-red-dark: #ad211b;
    --yd-ink: #08090b;
    --yd-panel: #131416;
    --yd-panel-2: #1a1b1f;
    --yd-soft: rgba(255, 255, 255, 0.08);
}

body:not(.menu-sidebar) .site-body {
    background: #0b0c0e;
}

.af-header {
    background: #111214;
    border-bottom: 3px solid var(--yd-red);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
    backdrop-filter: none;
}

.af-header-inner {
    max-width: 1180px;
    min-height: 60px;
    padding: 8px 0;
    gap: 14px;
}

.af-header-brand {
    min-width: 176px;
}

.af-header .site-logo,
.af-header .logo-link {
    min-height: 42px;
}

.af-header .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: var(--yd-red);
    box-shadow: none;
}

.af-header .logo-name {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.af-main-nav {
    flex: 1 1 auto;
}

.af-nav-menu {
    gap: 0;
}

.af-nav-menu .nav-link {
    min-height: 42px;
    padding: 0 13px;
    border-radius: 0;
    color: #e9e9e9;
    font-size: 13px;
    font-weight: 700;
    border: 0;
    background: transparent;
}

.af-nav-menu .nav-link:hover,
.af-nav-menu .nav-link.active {
    background: #222327;
    color: #fff;
    box-shadow: inset 0 -3px 0 var(--yd-red);
}

.af-nav-dropdown {
    top: calc(100% + 3px);
    border-radius: 0 0 8px 8px;
    border-top: 3px solid var(--yd-red);
    background: #17181b;
}

.af-header-actions {
    gap: 9px;
}

.af-search {
    width: 310px;
    flex-basis: 310px;
}

.af-search .search-wrapper {
    height: 38px;
    border-radius: 3px;
    background: #26272b;
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.af-search .search-input {
    height: 36px;
    padding: 0 44px 0 13px;
    font-size: 13px;
}

.af-search .search-btn {
    top: 0;
    right: 0;
    width: 40px;
    height: 38px;
    border-radius: 0 3px 3px 0;
    background: var(--yd-red);
}

.auth-buttons .btn-login,
.user-avatar-btn {
    min-height: 38px;
    border-radius: 3px;
    background: var(--yd-red);
    border: 0;
    color: #fff;
    font-weight: 800;
}

.user-avatar-btn {
    background: #222327;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header,
.home-ep-header,
.home-upcoming-header {
    min-height: 42px;
    margin: 0 0 13px;
    padding: 0;
    border-bottom: 2px solid #26272b;
}

.section-header-main {
    height: 42px;
    padding: 0 13px;
    background: #1a1b1e;
    border-left: 4px solid var(--yd-red);
}

.section-header-accent,
.section-header-star {
    display: none;
}

.section-header-title,
.home-ep-header .section-header-title,
.home-upcoming-title {
    font-size: 16px;
    line-height: 42px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.view-all-btn {
    min-height: 30px;
    padding: 0 11px;
    border-radius: 3px;
    background: #2a2b2f;
    color: #d7d7d7;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
}

.view-all-btn::after {
    content: "›";
    margin-left: 7px;
    color: var(--yd-red);
    font-size: 16px;
    line-height: 1;
}

.view-all-btn:hover {
    background: var(--yd-red);
    border-color: var(--yd-red);
    color: #fff;
}

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

.dual-hero-section {
    padding-top: 10px;
    margin-bottom: 22px;
}

.hero-fallback {
    margin: 10px 0 24px;
    padding: 0;
}

.hero-fallback .container {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px 28px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.38)),
        radial-gradient(circle at 78% 10%, rgba(224, 43, 34, 0.36), transparent 38%),
        #151619;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 5px solid var(--yd-red);
    border-radius: 4px;
}

.hero-fallback h1 {
    max-width: 720px;
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-fallback p {
    max-width: 560px;
    color: #d7d7d7;
    font-size: 15px;
}

.dual-hero-wrap {
    background: #111214;
    border: 1px solid var(--yd-soft);
    padding: 8px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
}

.dual-hero-slider .splide__track {
    border-radius: 4px;
}

.dual-slide-card {
    min-height: 320px;
    border-radius: 4px;
    background: #111214;
    overflow: hidden;
}

.dual-slide-bg {
    filter: saturate(1.08) contrast(1.04);
    transition: transform .28s ease;
}

.dual-slide-card:hover .dual-slide-bg {
    transform: scale(1.035);
}

.dual-slide-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.48) 42%, rgba(0, 0, 0, 0.1) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 58%);
}

.dual-badge {
    border-radius: 2px;
    font-weight: 800;
}

.dual-badge-category,
.dual-badge-quality {
    background: var(--yd-red);
    color: #fff;
}

.dual-slide-footer {
    left: 22px;
    right: 22px;
    bottom: 20px;
}

.dual-slide-title {
    max-width: 520px;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 900;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.78);
}

.dual-slide-original {
    color: #dadada;
    font-size: 13px;
}

.dual-slide-rating {
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.content-grid-section {
    gap: 15px;
}

.poster-card {
    background: transparent;
}

.poster-card-image {
    border-radius: 3px;
    background: #17181a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.poster-card-image::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 45%);
}

.poster-card-image img {
    border-radius: 2px;
}

.poster-card:hover .poster-card-image {
    border-color: rgba(224, 43, 34, 0.6);
}

.poster-card-title {
    display: block;
    color: #f2f2f2;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.poster-card-meta {
    padding: 8px 1px 0;
}

.poster-card-rating,
.poster-card-new-episodes,
.poster-card-status,
.poster-card-ongoing {
    border-radius: 2px;
    background: var(--yd-red);
}

.poster-card-year {
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.72);
}

.trends-page {
    padding-bottom: 34px;
}

.yd-trends-hero {
    margin: 10px 0 20px;
    padding: 26px 24px;
    background: linear-gradient(135deg, #17181b 0%, #111214 55%, #240c0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 5px solid var(--yd-red);
    border-radius: 4px;
}

.yd-trends-hero h1 {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
}

.yd-trends-hero p {
    margin: 0;
    color: #bdbdbd;
}

.yd-trends-section {
    margin-bottom: 28px;
}

.yd-section-header .yd-trends-count {
    color: #a8a8a8;
    font-size: 12px;
    font-weight: 700;
}

.yd-trend-feature-grid,
.yd-trend-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
}

.yd-trend-feature-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.yd-trend-card {
    position: relative;
    display: block;
    min-width: 0;
    color: #fff;
}

.yd-trend-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 3px;
    background: #18191c;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.yd-trend-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .24s ease;
}

.yd-trend-card:hover .yd-trend-poster img {
    transform: scale(1.045);
}

.yd-trend-card:hover .yd-trend-poster {
    border-color: rgba(224, 43, 34, 0.65);
}

.yd-trend-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 48%);
}

.yd-trend-rank {
    position: absolute;
    z-index: 3;
    top: 7px;
    left: 7px;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yd-red);
    color: #fff;
    border-radius: 2px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.yd-trend-imdb {
    position: absolute;
    right: 7px;
    bottom: 7px;
    z-index: 3;
    padding: 4px 6px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.74);
    color: #ffd24d;
    font-size: 11px;
    font-weight: 800;
}

.yd-trend-info {
    display: block;
    padding-top: 8px;
}

.yd-trend-info strong {
    display: block;
    color: #f4f4f4;
    font-size: 13px;
    line-height: 1.3;
}

.yd-trend-info small {
    display: block;
    margin-top: 3px;
    color: #969696;
    font-size: 11px;
}

.yd-trend-card--lead {
    grid-column: span 2;
    grid-row: span 2;
}

.yd-trend-card--lead .yd-trend-info strong {
    font-size: 18px;
}

.yd-trend-poster-empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: #fff;
    font-size: 44px;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .af-header-inner {
        min-height: 58px;
    }

    .af-search {
        width: 250px;
        flex-basis: 250px;
    }

    .yd-trend-feature-grid,
    .yd-trend-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .af-header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        gap: 8px;
    }

    .af-main-nav {
        display: none;
    }

    .af-main-nav.open {
        display: block;
    }

    body:not(.menu-sidebar) .main-navigation.af-main-nav.open {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        padding: 72px 14px 14px;
        background: #0e0e0e;
        z-index: 1250;
    }

    .af-search {
        width: 100%;
        flex-basis: auto;
    }

    .hamburger-btn {
        display: inline-flex;
        border-radius: 3px;
    }

    .yd-trend-feature-grid,
    .yd-trend-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .af-header-inner {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .af-header-brand {
        flex: 1 1 auto;
    }

    .af-header-actions {
        display: contents;
    }

    .user-section,
    .hamburger-btn {
        order: 2;
    }

    .af-search {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
    }

    .dual-slide-card {
        min-height: 235px;
    }

    .dual-slide-footer {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .yd-trend-feature-grid,
    .yd-trend-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .yd-trend-card--lead {
        grid-column: span 2;
    }
}

@media (max-width: 520px) {
    .auth-buttons .btn-login {
        padding: 0 10px;
        font-size: 11px;
    }

    .section-header-title {
        font-size: 14px;
    }

    .yd-trend-feature-grid,
    .yd-trend-grid,
    .content-grid-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yd-trend-card--lead {
        grid-column: span 2;
    }
}

/* Shared typography, auth and footer fallbacks */
html,
body,
button,
input,
select,
textarea {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

body {
    font-weight: 400;
    letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-name,
.section-header-title,
.poster-card-title,
.dual-slide-title,
.yd-trend-info strong {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.af-header {
    background: #151515;
    border-bottom: 4px solid #d8261f;
}

.af-header-inner {
    min-height: 56px;
    padding: 6px 0;
    gap: 12px;
}

.af-header-brand {
    min-width: 170px;
}

.af-header .logo-name {
    font-size: 19px;
    letter-spacing: -0.03em;
}

.af-nav-menu .nav-link {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}

.af-nav-menu .nav-link:hover,
.af-nav-menu .nav-link.active {
    background: #242424;
    box-shadow: inset 0 -4px 0 #d8261f;
}

.af-search {
    width: 300px;
    flex-basis: 300px;
}

.af-search .search-wrapper {
    height: 36px;
    border-radius: 2px;
    background: #2b2b2d;
}

.af-search .search-input {
    height: 34px;
    padding-left: 12px;
}

.af-search .search-btn {
    width: 38px;
    height: 36px;
    border-radius: 0 2px 2px 0;
}

.auth-buttons {
    gap: 6px;
}

.auth-buttons .btn-login,
.auth-buttons .btn-register,
.af-nav-menu .nav-auth-mobile .btn-login,
.af-nav-menu .nav-auth-mobile .btn-register {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 800;
    border: 0;
}

.auth-buttons .btn-login,
.af-nav-menu .nav-auth-mobile .btn-login {
    background: #d8261f;
    color: #fff;
}

.auth-buttons .btn-register,
.af-nav-menu .nav-auth-mobile .btn-register {
    background: #343437;
    color: #fff;
}

.auth-buttons .btn-login:hover,
.af-nav-menu .nav-auth-mobile .btn-login:hover {
    background: #f0342b;
}

.auth-buttons .btn-register:hover,
.af-nav-menu .nav-auth-mobile .btn-register:hover {
    background: #444448;
}

.footer-seo-wrap {
    margin: 0 0 22px;
}

.footer-seo-panel {
    position: relative;
    background:
        linear-gradient(135deg, rgba(216, 38, 31, 0.12), rgba(20, 21, 24, 0.96) 34%),
        #141518;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 5px solid #d8261f;
    border-radius: 4px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.footer-seo-scroll {
    max-height: none;
    padding: 22px 24px;
    overflow: visible;
}

.footer-seo-content {
    color: #c9c9c9;
    font-size: 13px;
    line-height: 1.75;
}

.footer-seo-content p {
    margin: 0 0 12px;
}

.footer-seo-content p:first-child {
    margin-bottom: 13px;
}

.footer-seo-content p:first-child strong,
.footer-seo-content p:first-child b {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.footer-seo-content strong,
.footer-seo-content b {
    color: #f2f2f2;
}

.footer-seo-content a {
    color: #ff6b62;
}

.footer-seo-fade {
    display: none;
}

.af-footer {
    background: #111214;
    border-top: 3px solid #d8261f;
}

@media (max-width: 1180px) {
    .af-search {
        width: 235px;
        flex-basis: 235px;
    }
}

@media (max-width: 992px) {
    .af-search {
        width: 100%;
        flex-basis: auto;
    }
}

@media (max-width: 640px) {
    .auth-buttons .btn-register {
        display: inline-flex;
    }

    .auth-buttons .btn-login,
    .auth-buttons .btn-register {
        padding: 0 9px;
        font-size: 11px;
    }

    .footer-seo-scroll {
        padding: 18px 16px;
    }

    .footer-seo-content p:first-child strong,
    .footer-seo-content p:first-child b {
        font-size: 17px;
    }
}

/* Shared streaming component skin */
:root {
    --stream-bg: #07080b;
    --stream-bg-2: #0c0d11;
    --stream-surface: #121318;
    --stream-surface-2: #181a20;
    --stream-surface-3: #20222a;
    --stream-border: rgba(255, 255, 255, 0.085);
    --stream-border-strong: rgba(255, 255, 255, 0.14);
    --stream-text: #f4f6fb;
    --stream-muted: #a4a9b5;
    --stream-faint: #737987;
    --stream-red: #e52d27;
    --stream-red-2: #ff4a3f;
    --stream-gold: #ffcc45;
    --stream-radius: 14px;
    --stream-radius-sm: 9px;
    --stream-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
    --stream-container: 1240px;
}

* {
    box-sizing: border-box;
}

html,
body {
    background: var(--stream-bg);
}

body {
    min-height: 100vh;
    color: var(--stream-text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body::before {
    background:
        radial-gradient(circle at 16% -8%, rgba(229, 45, 39, 0.2), transparent 32%),
        radial-gradient(circle at 86% 8%, rgba(255, 74, 63, 0.11), transparent 30%),
        linear-gradient(180deg, #0d0e13 0%, #07080b 42%, #050609 100%);
}

body:not(.menu-sidebar) .site-body,
body.menu-sidebar .site-frame {
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.container,
.af-header .container,
.af-header-inner,
body.menu-sidebar .site-frame {
    width: min(var(--stream-container), calc(100vw - 36px));
    max-width: var(--stream-container);
    margin-left: auto;
    margin-right: auto;
}

.main-content {
    padding: 22px 0 34px;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-name,
.section-header-title,
.poster-card-title,
.dual-slide-title,
.series-title,
.watch-title {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.025em;
}

/* Header */
.af-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(10, 11, 15, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px) saturate(1.2);
}

.af-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--stream-red), transparent);
    opacity: 0.8;
}

.af-header-inner {
    min-height: 72px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.af-header-brand {
    min-width: 210px;
    flex: 0 0 auto;
}

.af-header .site-logo,
.af-header .logo-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.af-header .logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, var(--stream-red), #ff6b4f);
    color: #fff;
    box-shadow: 0 12px 28px rgba(229, 45, 39, 0.36);
}

.af-header .logo-name {
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
}

.af-main-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
}

.af-nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.af-nav-menu .nav-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 12px;
    color: #d8dbe4;
    font-size: 13px;
    font-weight: 750;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}

.af-nav-menu .nav-link:hover,
.af-nav-menu .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 -2px 0 var(--stream-red);
}

.nav-chevron {
    color: #ff8d86;
}

.af-nav-dropdown {
    top: calc(100% + 10px);
    padding: 10px;
    background: rgba(17, 18, 24, 0.98);
    border: 1px solid var(--stream-border);
    border-top: 2px solid var(--stream-red);
    border-radius: 14px;
    box-shadow: var(--stream-shadow);
}

.af-nav-dropdown a {
    min-height: 38px;
    border-radius: 10px;
    color: #d7dbe5;
}

.af-nav-dropdown a:hover,
.af-nav-dropdown a.active {
    background: rgba(229, 45, 39, 0.18);
}

.af-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.af-search {
    width: 320px;
    flex: 0 0 320px;
}

.af-search .search-wrapper {
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.af-search .search-wrapper:focus-within {
    border-color: rgba(229, 45, 39, 0.78);
    box-shadow: 0 0 0 4px rgba(229, 45, 39, 0.12);
}

.af-search .search-input {
    height: 42px;
    padding: 0 52px 0 16px;
    color: #fff;
    font-size: 13px;
}

.af-search .search-input::placeholder {
    color: #9298a6;
}

.af-search .search-btn {
    top: 5px;
    right: 5px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--stream-red), var(--stream-red-2));
    color: #fff;
}

.auth-buttons {
    display: flex;
    gap: 8px;
}

.auth-buttons .btn-login,
.auth-buttons .btn-register,
.af-nav-menu .nav-auth-mobile .btn-login,
.af-nav-menu .nav-auth-mobile .btn-register {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 850;
    border: 1px solid transparent;
}

.auth-buttons .btn-login,
.af-nav-menu .nav-auth-mobile .btn-login {
    background: linear-gradient(135deg, var(--stream-red), var(--stream-red-2));
    color: #fff;
    box-shadow: 0 12px 28px rgba(229, 45, 39, 0.25);
}

.auth-buttons .btn-register,
.af-nav-menu .nav-auth-mobile .btn-register {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f6fa;
    border-color: rgba(255, 255, 255, 0.11);
}

.auth-buttons .btn-login:hover,
.auth-buttons .btn-register:hover {
    transform: translateY(-1px);
}

.user-avatar-btn {
    min-height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Hero / slider */
.hero-fallback,
.dual-hero-section {
    margin: 0 0 28px;
}

.hero-fallback .container,
.dual-hero-wrap {
    min-height: 410px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--stream-border);
    box-shadow: var(--stream-shadow);
    background:
        linear-gradient(90deg, rgba(5, 6, 9, 0.92), rgba(5, 6, 9, 0.5) 48%, rgba(5, 6, 9, 0.2)),
        radial-gradient(circle at 78% 20%, rgba(229, 45, 39, 0.42), transparent 34%),
        #121318;
}

.hero-fallback .container {
    padding: 48px;
}

.hero-fallback h1 {
    max-width: 680px;
    margin: 0 0 12px;
    font-size: clamp(38px, 5.2vw, 68px);
    line-height: 0.98;
    font-weight: 950;
}

.hero-fallback p {
    max-width: 560px;
    color: #c7ccd6;
    font-size: 16px;
}

.dual-hero-wrap {
    padding: 0;
}

.dual-slide-card {
    min-height: 410px;
    border-radius: 0;
}

.dual-slide-overlay {
    background:
        linear-gradient(90deg, rgba(5, 6, 9, 0.95), rgba(5, 6, 9, 0.52) 50%, rgba(5, 6, 9, 0.08)),
        linear-gradient(0deg, rgba(5, 6, 9, 0.82), transparent 55%);
}

.dual-slide-footer {
    left: 46px;
    right: 46px;
    bottom: 42px;
}

.dual-slide-title {
    max-width: 720px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 0.98;
    font-weight: 950;
}

.dual-badge {
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.dual-badge-category,
.dual-badge-quality {
    background: rgba(229, 45, 39, 0.92);
}

.splide__arrow {
    background: rgba(14, 15, 20, 0.84);
    border: 1px solid var(--stream-border);
    color: #fff;
}

.splide__pagination__page {
    background: rgba(255, 255, 255, 0.35);
}

.splide__pagination__page.is-active {
    background: var(--stream-red);
}

/* Sections and cards */
.content-section,
.home-episodes-section,
.tv-guide-section,
.collection-section,
.quiz-home-section,
.listing-section,
.trends-page {
    margin: 0 0 30px;
}

.section-header,
.home-ep-header,
.home-upcoming-header {
    min-height: 46px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.section-header-main,
.home-ep-header .section-header-main {
    height: auto;
    min-height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
}

.section-header-main::before,
.home-ep-header .section-header-main::before {
    content: "";
    width: 6px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--stream-red-2), var(--stream-red));
    box-shadow: 0 0 22px rgba(229, 45, 39, 0.55);
}

.section-header-title,
.home-ep-header .section-header-title,
.home-upcoming-title {
    color: #fff;
    font-size: clamp(20px, 2.3vw, 28px);
    line-height: 1.1;
    font-weight: 900;
}

.view-all-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #dce0e8;
    font-size: 12px;
    font-weight: 850;
}

.view-all-btn:hover {
    background: var(--stream-red);
    color: #fff;
    border-color: var(--stream-red);
}

.content-grid,
.content-grid-static,
.content-grid-section,
.poster-grid,
.listing-grid,
.home-legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 22px 16px;
}

.content-grid-home-country {
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}

.poster-card,
.content-card,
.home-legend-card {
    color: var(--stream-text);
    transition: transform .2s ease, filter .2s ease;
}

.poster-card:hover {
    transform: translateY(-4px);
}

.poster-card-image,
.home-legend-card-figure {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--stream-surface);
    border: 1px solid var(--stream-border);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.poster-card-image::before {
    content: "▶";
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(229, 45, 39, 0.95);
    color: #fff;
    font-size: 17px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity .2s ease, transform .2s ease;
}

.poster-card:hover .poster-card-image::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.poster-card-image::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 54%);
}

.poster-card-image img,
.home-legend-card-figure img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0;
}

.poster-card:hover .poster-card-image {
    border-color: rgba(229, 45, 39, 0.55);
}

.poster-card-meta {
    padding: 10px 2px 0;
}

.poster-card-title,
.home-legend-card-title {
    color: #f4f6fb;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.poster-card-sub,
.poster-card-year,
.latest-ep-time {
    color: var(--stream-muted);
}

.poster-card-rating,
.poster-card-year,
.poster-card-status,
.poster-card-ongoing,
.poster-card-new-episodes,
.ep-card-badge {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 11, 15, 0.78);
    backdrop-filter: blur(10px);
}

.poster-card-rating,
.poster-card-new-episodes {
    background: rgba(229, 45, 39, 0.94);
    color: #fff;
}

/* Latest episode cards */
.home-ep-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-ep-tab {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d6dae4;
    font-weight: 800;
}

.home-ep-tab.is-active {
    background: var(--stream-red);
    color: #fff;
    border-color: var(--stream-red);
}

.latest-ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.latest-ep-card {
    min-height: 92px;
    padding: 10px;
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 13px;
    align-items: center;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.035));
    border: 1px solid var(--stream-border);
}

.latest-ep-card:hover {
    background: rgba(229, 45, 39, 0.12);
    border-color: rgba(229, 45, 39, 0.38);
    transform: translateY(-2px);
}

.latest-ep-thumb {
    border-radius: 12px;
    overflow: hidden;
    background: #090a0d;
}

.latest-ep-thumb img {
    width: 100%;
    height: 72px;
    object-fit: cover;
}

.latest-ep-title {
    color: #fff;
    font-size: 14px;
    font-weight: 850;
}

.latest-ep-meta {
    color: var(--stream-red-2);
    font-weight: 800;
}

/* Listing, detail and watch surfaces */
.listing-filter,
.filter-panel,
.detail-box,
.content-about-box,
.watch-actions-card,
.watch-sidebar-card,
.movie-info-card,
.series-info-card,
.comments-section,
.auth-card,
.profile-card {
    border-radius: 8px !important;
    background: #131517 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: none !important;
}

.series-hero,
.watch-page {
    background: transparent !important;
}

.series-hero-card {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) !important;
    gap: 0 !important;
    overflow: hidden !important;
    border-radius: 26px !important;
    background: var(--stream-surface) !important;
    border: 1px solid var(--stream-border) !important;
    box-shadow: var(--stream-shadow) !important;
}

.series-hero-poster {
    padding: 18px !important;
    background: rgba(0, 0, 0, 0.32) !important;
}

.series-hero-poster img {
    border-radius: 18px !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48) !important;
}

.series-hero-panel {
    min-height: 420px !important;
}

.series-hero-panel-overlay {
    background:
        linear-gradient(90deg, rgba(18, 19, 24, 0.98), rgba(18, 19, 24, 0.8) 58%, rgba(18, 19, 24, 0.55)),
        linear-gradient(0deg, rgba(18, 19, 24, 0.9), transparent 58%) !important;
}

.series-hero-panel-content {
    padding: clamp(26px, 4vw, 48px) !important;
}

.series-title,
.watch-title {
    color: #fff !important;
    font-size: clamp(30px, 4.2vw, 58px) !important;
    line-height: 1 !important;
    font-weight: 950 !important;
}

.series-original,
.watch-ep-line,
.breadcrumb,
.content-about-body,
.detail-list {
    color: var(--stream-muted) !important;
}

.meta-badge {
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e9ecf4 !important;
    font-weight: 750 !important;
}

.meta-rating {
    color: #1b1200 !important;
    background: linear-gradient(135deg, #ffd24d, #ffad2f) !important;
    border: 0 !important;
}

.btn-primary,
.btn-watch,
.ep-nav-btn,
.watch-like-btn,
.watch-share-btn,
.watch-status-btn,
.season-tab,
.series-section-tab {
    border-radius: 13px !important;
    border: 1px solid var(--stream-border) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: #f1f3f8 !important;
    font-weight: 850 !important;
}

.btn-primary,
.btn-watch,
.watch-like-btn.is-active,
.watch-status-btn.is-active,
.season-tab.active,
.series-section-tab.active {
    background: linear-gradient(135deg, var(--stream-red), var(--stream-red-2)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.watch-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    gap: 22px !important;
    align-items: start !important;
}

.watch-main,
.watch-sidebar {
    min-width: 0 !important;
}

.player-block,
.player-shell,
.player-wrap,
.player-frame,
.player-empty {
    border-radius: 22px !important;
    background: #050609 !important;
    border: 1px solid var(--stream-border) !important;
    box-shadow: var(--stream-shadow) !important;
}

.player-wrap {
    overflow: hidden !important;
}

.player-tabs {
    padding: 10px !important;
    gap: 8px !important;
    background: rgba(18, 19, 24, 0.96) !important;
    border: 1px solid var(--stream-border) !important;
    border-bottom: 0 !important;
    border-radius: 18px 18px 0 0 !important;
}

.player-tab {
    min-height: 36px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #dce0e8 !important;
    font-weight: 850 !important;
}

.player-tab.active {
    background: var(--stream-red) !important;
    color: #fff !important;
    border-color: var(--stream-red) !important;
}

.episode-nav {
    gap: 10px !important;
}

.episode-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 10px !important;
}

.episode-item {
    min-height: 50px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    border: 1px solid var(--stream-border) !important;
}

.episode-item:hover,
.episode-item-current {
    background: rgba(229, 45, 39, 0.15) !important;
    border-color: rgba(229, 45, 39, 0.36) !important;
}

.ep-number {
    background: rgba(229, 45, 39, 0.95) !important;
    color: #fff !important;
}

/* Trends */
.yd-trends-hero {
    border-radius: 24px !important;
    padding: 38px !important;
    background:
        linear-gradient(135deg, rgba(18, 19, 24, 0.98), rgba(18, 19, 24, 0.8)),
        radial-gradient(circle at 88% 10%, rgba(229, 45, 39, 0.35), transparent 36%) !important;
    border: 1px solid var(--stream-border) !important;
    border-left: 0 !important;
    box-shadow: var(--stream-shadow) !important;
}

.yd-trends-hero h1 {
    font-size: clamp(34px, 5vw, 60px) !important;
    font-weight: 950 !important;
}

.yd-trend-feature-grid,
.yd-trend-grid {
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)) !important;
    gap: 22px 16px !important;
}

.yd-trend-poster {
    border-radius: 18px !important;
    border: 1px solid var(--stream-border) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34) !important;
}

.yd-trend-rank,
.yd-trend-imdb {
    border-radius: 999px !important;
}

/* Footer and SEO block */
.af-footer {
    margin-top: 34px;
    background: #0d0e12;
    border-top: 1px solid var(--stream-border);
}

.footer-seo-wrap {
    margin: 0 0 24px;
}

.footer-seo-panel {
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(229, 45, 39, 0.12), rgba(18, 19, 24, 0.96) 34%),
        var(--stream-surface);
    border: 1px solid var(--stream-border);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.footer-seo-panel::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 22px;
    bottom: 22px;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--stream-red-2), var(--stream-red));
}

.footer-seo-scroll {
    padding: 24px 28px 24px 44px;
    max-height: none;
    overflow: visible;
}

.footer-seo-content {
    color: #c7ccd6;
    font-size: 14px;
    line-height: 1.75;
}

.footer-seo-content p:first-child strong,
.footer-seo-content p:first-child b {
    color: #fff;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.15;
    font-weight: 950;
}

.af-footer-inner {
    gap: 28px;
}

.af-footer-logo span,
.af-footer .footer-menu-title {
    color: #fff;
}

.af-footer .footer-menu-nav a {
    color: #aeb4c0;
}

.af-footer .footer-menu-nav a:hover {
    color: var(--stream-red-2);
}

/* Responsive */
@media (max-width: 1180px) {
    .af-header-inner {
        gap: 12px;
    }

    .af-header-brand {
        min-width: 180px;
    }

    .af-search {
        width: 260px;
        flex-basis: 260px;
    }

    .af-nav-menu .nav-link {
        padding: 0 10px;
    }
}

@media (max-width: 992px) {
    .af-header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        gap: 10px;
    }

    .af-main-nav {
        display: none;
    }

    .af-main-nav.open {
        display: block;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: calc(100vh - 72px);
        padding: 18px;
        background: rgba(7, 8, 11, 0.98);
        border-top: 1px solid var(--stream-border);
        overflow-y: auto;
    }

    .af-main-nav.open .af-nav-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .af-main-nav.open .nav-link {
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
        background: var(--stream-surface);
        border: 1px solid var(--stream-border);
    }

    .af-search {
        width: 100%;
        flex-basis: auto;
    }

    .hamburger-btn {
        display: inline-flex;
        width: 42px;
        height: 42px;
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--stream-border);
    }

    .watch-layout,
    .series-hero-card {
        grid-template-columns: 1fr;
    }

    .series-hero-poster {
        max-width: 260px;
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .container,
    .af-header .container,
    .af-header-inner {
        width: min(100% - 22px, var(--stream-container));
    }

    .af-header-inner {
        display: flex;
        flex-wrap: wrap;
    }

    .af-header-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .af-header .logo-name {
        font-size: 17px;
    }

    .af-header-actions {
        display: contents;
    }

    .user-section,
    .hamburger-btn {
        order: 2;
    }

    .af-search {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
    }

    .auth-buttons .btn-login,
    .auth-buttons .btn-register {
        min-height: 38px;
        padding: 0 10px;
        font-size: 11px;
    }

    .hero-fallback .container,
    .dual-slide-card {
        min-height: 300px;
    }

    .hero-fallback .container {
        padding: 28px 20px;
    }

    .dual-slide-footer {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

    .latest-ep-grid,
    .episode-list {
        grid-template-columns: 1fr;
    }

    .latest-ep-card {
        grid-template-columns: 108px 1fr;
    }

    .footer-seo-panel::before {
        left: 16px;
        top: 18px;
        bottom: 18px;
    }

    .footer-seo-scroll {
        padding: 20px 18px 20px 34px;
    }
}

@media (max-width: 520px) {
    .content-grid,
    .content-grid-static,
    .content-grid-section,
    .poster-grid,
    .listing-grid,
    .home-legend-grid,
    .yd-trend-feature-grid,
    .yd-trend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .section-header {
        align-items: flex-start;
    }

    .section-header-title {
        font-size: 20px;
    }

    .view-all-btn {
        min-height: 34px;
        padding: 0 10px;
    }
}

@media (max-width: 760px) {
    .af-header-inner {
        min-height: 0;
        padding: 10px 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .af-header-actions {
        display: contents;
    }

    .af-header-brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .hamburger-btn {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .user-section {
        display: contents;
    }

    .user-section .auth-buttons {
        display: none;
    }

    .af-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        flex: none;
    }

    .af-main-nav.open {
        top: 116px;
        height: calc(100vh - 116px);
    }

    body:not(.menu-sidebar) .main-navigation.af-main-nav.open {
        top: 124px;
        height: calc(100vh - 124px);
        min-height: 0;
    }
}

/* Shared search icon and watch refinements */
.af-search .search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.af-search .search-btn svg {
    display: none;
}

.af-search-icon {
    position: relative;
    width: 15px;
    height: 15px;
    display: inline-block;
}

.af-search-icon::before,
.af-search-icon::after {
    content: "";
    position: absolute;
    display: block;
}

.af-search-icon::before {
    width: 10px;
    height: 10px;
    left: 0;
    top: 0;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.af-search-icon::after {
    width: 7px;
    height: 2px;
    right: 0;
    bottom: 1px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
}

.hero-fallback .container,
.dual-hero-wrap,
.dual-hero-slider,
.dual-hero-slider .splide__track,
.dual-hero-slider .splide__list,
.dual-hero-slider .splide__slide,
.dual-slide-card {
    height: 350px;
    min-height: 350px;
    max-height: 350px;
}

.dual-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-fallback .container {
    padding: 36px 42px;
}

.hero-fallback h1,
.dual-slide-title {
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.05;
    max-width: 650px;
}

.hero-fallback p {
    font-size: 14px;
    max-width: 520px;
}

.section-header-title,
.home-ep-header .section-header-title,
.home-upcoming-title {
    font-size: clamp(18px, 1.55vw, 22px);
    line-height: 1.2;
}

.section-header-main::before,
.home-ep-header .section-header-main::before {
    width: 4px;
    height: 22px;
}

.yd-trends-hero h1,
.series-title,
.watch-title {
    font-size: clamp(26px, 3.1vw, 40px);
    line-height: 1.08;
}

.watch-page.af-watch {
    padding-top: 18px !important;
    background:
        radial-gradient(circle at 50% 0, rgba(229, 45, 39, 0.16), transparent 34%),
        linear-gradient(180deg, #090a0e 0%, #06070a 42%, #050609 100%) !important;
}

.watch-page .breadcrumb {
    margin: 0 0 14px !important;
    padding: 10px 14px !important;
    display: inline-flex !important;
    gap: 8px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    color: #9ba1af !important;
    font-size: 12px !important;
}

.watch-head {
    margin: 0 0 16px !important;
    padding: 0 !important;
}

.watch-title {
    margin: 0 0 7px !important;
    font-weight: 900 !important;
}

.watch-layout {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 18px !important;
}

.watch-main,
.watch-sidebar {
    min-width: 0 !important;
}

.watch-main,
.watch-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.player-wrap {
    position: relative !important;
    padding: 8px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        #050609 !important;
    border: 1px solid rgba(255, 255, 255, 0.105) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.54) !important;
}

.player-frame {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #000 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.player-frame iframe,
.player-frame video,
.player-source,
.player-source iframe,
.player-source video {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: #000 !important;
}

.player-start-overlay,
.player-empty,
.player-preparing {
    min-height: 420px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 0 !important;
    box-shadow: none !important;
}

.player-start-btn {
    width: 74px !important;
    height: 74px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--stream-red), var(--stream-red-2)) !important;
    color: #fff !important;
    border: 4px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 20px 48px rgba(229, 45, 39, 0.38) !important;
}

.episode-nav {
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.ep-nav-btn {
    min-height: 42px !important;
    justify-content: center !important;
}

.watch-actions-inline {
    display: none !important;
}

.watch-actions-card {
    padding: 14px !important;
    border-radius: 16px !important;
}

.watch-stats-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.watch-stat {
    min-height: 62px !important;
    padding: 10px 6px !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.watch-toolbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}

.watch-status-options {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}

@media (max-width: 992px) {
    .watch-layout {
        display: block !important;
    }

    .watch-sidebar {
        display: none !important;
    }

    .watch-actions-inline {
        display: block !important;
    }

    .episode-nav {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 760px) {
    .hero-fallback .container,
    .dual-hero-wrap,
    .dual-hero-slider,
    .dual-hero-slider .splide__track,
    .dual-hero-slider .splide__list,
    .dual-hero-slider .splide__slide,
    .dual-slide-card {
        height: 270px !important;
        min-height: 270px !important;
        max-height: 270px !important;
    }

    .hero-fallback .container {
        padding: 24px 18px !important;
    }

    .hero-fallback h1,
    .dual-slide-title {
        font-size: 28px !important;
    }

    .section-header-title,
    .home-ep-header .section-header-title,
    .home-upcoming-title {
        font-size: 18px !important;
    }

    .player-wrap {
        padding: 5px !important;
        border-radius: 14px !important;
    }

    .player-frame,
    .player-start-overlay,
    .player-empty,
    .player-preparing {
        min-height: 220px !important;
        border-radius: 10px !important;
    }

    .player-start-btn {
        width: 58px !important;
        height: 58px !important;
    }
}

/* Theme variables and site shell */
:root {
    --ydm-page: #0e0e0e;
    --ydm-black: #000;
    --ydm-panel: #131517;
    --ydm-nav: #151516;
    --ydm-card: rgba(255, 255, 255, 0.04);
    --ydm-card-hover: rgba(255, 255, 255, 0.075);
    --ydm-card-border: rgba(255, 255, 255, 0.05);
    --ydm-line: rgba(255, 255, 255, 0.08);
    --ydm-text: #fff;
    --ydm-muted: #a7a7a7;
    --ydm-red: #ff3130;
    --ydm-button: #414346;
    --stream-container: 1220px;
    --ydm-shell: 1220px;
}

html,
body {
    background: var(--ydm-page) !important;
}

body {
    color: var(--ydm-text) !important;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    font-size: 16px !important;
}

body::before {
    display: none !important;
}

.site-wrapper {
    min-height: 100vh !important;
    background: var(--ydm-page) !important;
}

body:not(.menu-sidebar) .site-body {
    width: calc(100% - 40px) !important;
    max-width: var(--ydm-shell) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: var(--ydm-page) !important;
    border-radius: 0 !important;
    overflow-x: clip !important;
}

body:not(.menu-sidebar) .site-body > .af-header,
body:not(.menu-sidebar) .main-content,
body:not(.menu-sidebar) .af-footer {
    background: transparent !important;
}

body:not(.menu-sidebar) .main-content {
    padding: 0 0 28px !important;
    border-radius: 0 !important;
}

.container,
.af-header .container,
.af-header-inner {
    width: 100% !important;
    max-width: var(--ydm-shell) !important;
}

/* Header: two-row reference layout */
.af-header {
    position: relative !important;
    top: auto !important;
    z-index: 1200 !important;
    min-height: 128px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.af-header::after {
    display: none !important;
}

.af-header-inner {
    min-height: 128px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-rows: 72px 56px !important;
    align-items: center !important;
    gap: 0 18px !important;
}

.af-header-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    align-self: center !important;
    padding-left: 4px !important;
}

.af-header .site-logo,
.af-header .logo-link {
    min-height: 32px !important;
    height: auto !important;
    max-width: 220px !important;
    overflow: visible !important;
    transform: none !important;
    width: auto !important;
}

.af-header .logo-mark {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.af-header .logo-name {
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
}

.af-header-actions {
    grid-column: 2 / 4 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
}

/* Reference search: full rebuild */
.af-search,
.yd-ref-search {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: 640px !important;
    min-width: 220px !important;
    position: relative !important;
    margin: 0 !important;
}

.yd-ref-search-wrap,
.af-search .search-wrapper.yd-ref-search-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
}

.yd-ref-search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    width: 16px !important;
    height: 16px !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
    background-color: #b8b8b8 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.yd-ref-search-input,
.af-search .search-input.yd-ref-search-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 40px !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 40px !important;
    padding: 0 14px 0 40px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.yd-ref-search-input::placeholder,
.af-search .search-input.yd-ref-search-input::placeholder {
    color: #9a9a9a !important;
    opacity: 1 !important;
}

.yd-ref-search-btn,
.af-search .search-btn.yd-ref-search-btn {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.af-search .af-search-icon {
    display: none !important;
}

.af-search .search-results {
    z-index: 1300 !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #151617 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48) !important;
}

.auth-buttons {
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.user-section {
    flex-shrink: 0 !important;
}

.user-section > .auth-buttons > .btn-login,
.yd-ref-login {
    min-height: 36px !important;
    height: 36px !important;
    min-width: 118px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.user-section > .auth-buttons > .btn-register {
    display: inline-flex !important;
}

.user-avatar-btn {
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.af-main-nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    align-self: stretch !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-top: 0 !important;
    border-bottom: 2px solid var(--ydm-red) !important;
}

.af-nav-menu {
    width: 100% !important;
    gap: 2px !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.af-nav-menu .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 54px !important;
    padding: 0 14px !important;
    border-radius: 0 !important;
    color: #d8d9dc !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 0 !important;
}

.af-nav-menu .nav-chevron {
    display: none !important;
}

.af-nav-menu .nav-link::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border: 0;
    border-radius: 0;
    opacity: 0.95;
    flex: 0 0 15px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.af-nav-menu .nav-item:nth-child(2) .nav-link::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M8 21h8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M8 21h8'/%3E%3C/svg%3E");
}

.af-nav-menu .nav-item:nth-child(3) .nav-link::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m10 9 5 3-5 3V9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m10 9 5 3-5 3V9z'/%3E%3C/svg%3E");
}

.af-nav-menu .nav-item:nth-child(4) .nav-link::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='m8 15 3-7 3 4 3-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='m8 15 3-7 3 4 3-5'/%3E%3C/svg%3E");
}

.af-nav-menu .nav-link:hover,
.af-nav-menu .nav-link.active {
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
}

.af-nav-menu .nav-sub-mobile,
.af-nav-menu .nav-sub-mobile-heading,
.af-nav-menu .nav-auth-mobile {
    display: none !important;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .af-search {
        width: 300px !important;
        flex-basis: 300px !important;
    }
}

/* Home sections, ranked sliders, current episodes and movie grid */
.home-reference-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 40px 4px;
    color: #d7d7d7;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.home-reference-notice em {
    color: var(--ydm-red);
    font-style: normal;
    font-weight: 600;
}

.home-reference-notice span::first-letter {
    color: inherit;
}

.yd-ranked-section,
.dual-hero-section,
.home-episodes-section,
.content-section:has(.yd-home-movie-grid) {
    margin: 0 !important;
    padding: 12px 20px 36px !important;
}

.content-section.yd-ref-popular-section {
    padding-top: 8px !important;
}

.yd-ranked-section > .container,
.home-episodes-section > .container,
.content-section:has(.yd-home-movie-grid) > .container {
    max-width: 100% !important;
}

.yd-ranked-section .section-header,
.home-episodes-section .home-ep-header,
.content-section:has(.yd-home-movie-grid) .section-header {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    margin: 0 0 24px !important;
    align-items: center !important;
    padding: 0 !important;
}

.yd-ranked-section .section-header-main::before,
.home-ep-header .section-header-main::before,
.yd-ranked-section .section-header-accent,
.content-section:has(.yd-home-movie-grid) .section-header-accent {
    display: none !important;
}

.yd-ranked-section .section-header-title,
.home-ep-header .section-header-title,
.content-section:has(.yd-home-movie-grid) .section-header-title {
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1.28 !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
}

.yd-ranked-section .view-all-btn,
.content-section:has(.yd-home-movie-grid) .view-all-btn {
    height: 30px !important;
    min-height: 30px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-size: 12px !important;
    padding: 0 10px !important;
}

.yd-ranked-section .view-all-btn {
    display: none !important;
    margin-right: 78px !important;
}

.yd-ranked-section .dual-hero-wrap {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.yd-ranked-section .dual-hero-slider,
.yd-ranked-section .dual-hero-slider .splide__track,
.yd-ranked-section .dual-hero-slider .splide__list,
.yd-ranked-section .dual-hero-slider .splide__slide {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.yd-ranked-section .dual-hero-slider .splide__track {
    overflow: hidden !important;
}

/* Slide width must stay under Splide control (inline style) */
.yd-ranked-section .dual-hero-slider .splide__slide {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
}

.content-section.yd-ref-popular-section {
    padding-top: 0 !important;
}

.yd-ranked-section .dual-slide-card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 0 0 8px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.yd-ranked-section .dual-slide-card:hover {
    transform: none !important;
    background: transparent !important;
}

.yd-ranked-section .popular-rank {
    position: absolute;
    left: -6px;
    top: 18px;
    z-index: 0;
    color: rgba(255, 255, 255, 0.16);
    font-size: 128px;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.08em;
    pointer-events: none;
}

.yd-ranked-section .dual-slide-poster {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: 132px !important;
    aspect-ratio: 2 / 3 !important;
    margin-left: 42px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.yd-ranked-section .dual-slide-bg {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 2 / 3 !important;
    object-fit: cover !important;
    filter: none !important;
    transition: transform 0.18s ease !important;
}

.yd-ranked-section .dual-slide-card:hover .dual-slide-bg {
    transform: scale(1.03) !important;
}

.yd-ranked-section .dual-slide-footer {
    position: static !important;
    display: block !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 10px 0 0 42px !important;
    width: 132px !important;
    color: #fff !important;
    z-index: 2 !important;
}

.yd-ranked-section .dual-slide-info {
    display: block !important;
    width: 100% !important;
}

.yd-ranked-section .dual-slide-title {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    max-width: 100% !important;
    text-shadow: none !important;
    color: #fff !important;
}

.yd-ranked-section .dual-slide-original {
    margin-top: 4px !important;
    color: #999 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

.yd-ranked-section .dual-slide-rating {
    display: none !important;
}

.yd-ranked-section .dual-badge {
    display: none !important;
}

.yd-ranked-section .splide__arrow {
    top: -52px !important;
    transform: none !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 6px !important;
    background: rgba(65, 67, 70, 0.92) !important;
    border: 0 !important;
}

.yd-ranked-section .splide__arrow--prev {
    left: auto !important;
    right: 38px !important;
}

.yd-ranked-section .splide__arrow--next {
    right: 0 !important;
}

.yd-ranked-section .splide__pagination {
    display: none !important;
}

.home-episodes-section .home-ep-tabs {
    margin-top: 0 !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
}

.home-episodes-section .home-ep-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin-bottom: 18px !important;
    gap: 0 !important;
}

.home-episodes-section .home-ep-header .section-header-main {
    width: 100% !important;
    margin: 0 !important;
}

.home-episodes-section .home-ep-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: 14px !important;
}

.home-episodes-section .home-ep-view-all {
    flex: 0 0 auto !important;
    height: 30px !important;
    min-height: 30px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-size: 12px !important;
    padding: 0 12px !important;
    white-space: nowrap !important;
}

.home-episodes-section .home-ep-tab {
    height: 30px !important;
    min-height: 30px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #d7d7d7 !important;
    font-size: 12px !important;
    padding: 0 12px !important;
}

.home-episodes-section .home-ep-tab.is-active {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

.home-episodes-section .latest-ep-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.home-episodes-section .latest-ep-card {
    display: grid !important;
    min-height: 82px !important;
    height: 82px !important;
    grid-template-columns: 96px 1fr !important;
    gap: 12px !important;
    padding: 8px !important;
    border-radius: 8px !important;
    background: var(--ydm-card) !important;
    border: 1px solid var(--ydm-card-border) !important;
    box-shadow: none !important;
}

.home-episodes-section .latest-ep-card:hover {
    background: var(--ydm-card-hover) !important;
    transform: none !important;
}

.home-episodes-section .latest-ep-thumb {
    width: 96px !important;
    height: 64px !important;
    align-self: center !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.home-episodes-section .latest-ep-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.18s ease !important;
}

.home-episodes-section .latest-ep-card:hover .latest-ep-thumb img {
    transform: scale(1.03) !important;
}

.home-episodes-section .latest-ep-body,
.home-episodes-section .latest-ep-info {
    min-width: 0 !important;
}

.home-episodes-section .latest-ep-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #fff !important;
}

.home-episodes-section .latest-ep-meta {
    color: #c8c8c8 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
}

.home-episodes-section .latest-ep-time {
    font-size: 11px !important;
    line-height: 1.25 !important;
    color: #8f8f8f !important;
}

.home-episodes-section .latest-ep-badges {
    position: absolute !important;
    right: 8px !important;
    bottom: 8px !important;
}

.home-episodes-section .latest-ep-card {
    position: relative !important;
}

.home-episodes-section .ep-card-badge {
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
}

.home-episodes-section .badge-new-series,
.home-episodes-section .badge-translating,
.home-episodes-section .badge-final-ep {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.yd-home-movie-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 18px 16px !important;
}

.yd-home-movie-grid .poster-card {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.yd-home-movie-grid .poster-card-image {
    border-radius: 8px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: var(--ydm-card) !important;
    overflow: hidden !important;
}

.yd-home-movie-grid .poster-card-image::before {
    display: none !important;
}

.yd-home-movie-grid .poster-card-image img {
    aspect-ratio: 2 / 3 !important;
    object-fit: cover !important;
    transition: transform 0.18s ease !important;
}

.yd-home-movie-grid .poster-card:hover .poster-card-image img {
    transform: scale(1.03) !important;
}

.yd-home-movie-grid .poster-card-title {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.28 !important;
}

.yd-home-movie-grid .poster-card-meta {
    padding-top: 7px !important;
}

.yd-home-movie-grid .poster-card-rating,
.yd-home-movie-grid .poster-card-year,
.yd-home-movie-grid .poster-card-status,
.yd-home-movie-grid .poster-card-new-episodes {
    border-radius: 4px !important;
    min-height: 18px !important;
    padding: 2px 5px !important;
    font-size: 10px !important;
}

.empty-message {
    min-height: 82px !important;
    padding: 28px !important;
    border-radius: 8px !important;
    background: var(--ydm-card) !important;
    color: var(--ydm-muted) !important;
}

/* Listing pages */
.listing-page {
    margin: 0;
    padding: 0 0 34px;
    background: var(--ydm-panel);
    color: var(--ydm-text);
}

.listing-page > .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.listing-header {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 0;
    margin: 0;
    padding: 28px 40px 22px;
    border: 0;
    border-radius: 0;
    background: var(--ydm-panel);
    box-shadow: none;
}

.listing-header-main {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.listing-header-accent {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    margin: 12px 10px 0 0;
    border-radius: 50%;
    background: #42d75b;
    box-shadow: 0 0 0 2px rgba(66, 215, 91, 0.12);
}

.listing-header-text {
    min-width: 0;
}

.listing-title,
.listing-page .listing-header-category .listing-title {
    margin: 0;
    color: #fff;
    font-size: 23px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.listing-subtitle,
.listing-bio {
    max-width: 780px;
    margin: 7px 0 0;
    color: var(--ydm-muted);
    font-size: 13px;
    line-height: 1.55;
}

.listing-avatar {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
    background: var(--ydm-card);
}

.listing-section {
    margin: 0;
    padding: 0 40px 36px;
    background: var(--ydm-panel);
}

.listing-section + .listing-section {
    padding-top: 2px;
}

.listing-section .section-header {
    min-height: 32px;
    margin: 0 0 18px;
}

.listing-section .section-header-title {
    color: #fff;
    font-size: 21px;
    line-height: 1.28;
    font-weight: 800;
}

.listing-section .view-all-btn {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px 18px;
}

.listing-page .poster-card {
    min-width: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ydm-text);
    box-shadow: none;
    transition: transform 0.18s ease;
}

.listing-page .poster-card:hover {
    transform: translateY(-2px);
}

.listing-page .poster-card-image {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: var(--ydm-card);
    box-shadow: none;
}

.listing-page .poster-card-image::before {
    content: none;
    display: none;
}

.listing-page .poster-card-image::after {
    opacity: 0.55;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent 52%);
}

.listing-page .poster-card-image img,
.listing-page .poster-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.listing-page .poster-placeholder {
    display: grid;
    place-items: center;
    background: #1b1d20;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
}

.listing-page .poster-card:hover .poster-card-image {
    border-color: transparent;
}

.listing-page .poster-card:hover .poster-card-image img,
.listing-page .poster-card:hover .poster-placeholder {
    transform: scale(1.03);
    filter: brightness(1.04);
}

.listing-page .poster-card-meta {
    padding: 7px 1px 0;
}

.listing-page .poster-card-title {
    display: -webkit-box;
    overflow: hidden;
    color: #f5f5f5;
    font-size: 13.5px;
    line-height: 1.28;
    font-weight: 750;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.listing-page .poster-card-sub {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    color: var(--ydm-muted);
    font-size: 11px;
    line-height: 1.3;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.listing-page .poster-card-overlay {
    left: 6px;
    right: 6px;
    bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    pointer-events: none;
}

.listing-page .poster-card-rating,
.listing-page .poster-card-year,
.listing-page .poster-card-status,
.listing-page .poster-card-ongoing,
.listing-page .poster-card-new-episodes {
    min-height: 18px;
    padding: 2px 5px;
    border: 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    box-shadow: none;
}

.listing-page .poster-card-rating,
.listing-page .poster-card-new-episodes {
    background: var(--ydm-red);
}

.listing-page .poster-card-status,
.listing-page .poster-card-ongoing {
    position: absolute;
    z-index: 3;
    left: 6px;
    top: 6px;
    max-width: calc(100% - 12px);
}

.listing-page .poster-card-flag {
    position: absolute;
    z-index: 3;
    right: 6px;
    top: 6px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.listing-page .poster-card-new-episodes {
    position: absolute;
    z-index: 4;
    right: 6px;
    top: 6px;
}

.listing-page .poster-card-ongoing-text {
    white-space: nowrap;
}

/* Listing filters */
.explore-filters {
    margin: 0 40px 28px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.explore-filters-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.explore-filter-field {
    min-width: 0;
}

.explore-filter-field label {
    display: block;
    margin: 0 0 6px;
    color: var(--ydm-muted);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
}

.explore-filter-select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 7px;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
}

.explore-filter-select:focus {
    border-color: rgba(255, 49, 48, 0.54);
    box-shadow: 0 0 0 2px rgba(255, 49, 48, 0.1);
}

.explore-filter-select option {
    background: #171819;
    color: #fff;
}

.explore-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.explore-active-filter {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 49, 48, 0.14);
    color: #fff;
    font-size: 11px;
    font-weight: 750;
}

.explore-active-filter span {
    margin-right: 4px;
    color: #ffaaa3;
}

.explore-filters-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.explore-filter-submit,
.explore-filter-reset {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.explore-filter-submit {
    padding: 0 16px;
    border: 0;
    background: var(--ydm-red);
    color: #fff;
}

.explore-filter-reset {
    padding: 0 12px;
    color: var(--ydm-muted);
    background: rgba(255, 255, 255, 0.07);
}

/* Search results */
.listing-page-search .listing-header {
    padding-bottom: 18px;
}

.listing-page-search .listing-subtitle {
    color: #ffaaa3;
}

/* Pagination */
.listing-page .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 40px 4px;
}

.listing-page .page-btn,
.listing-page .page-info {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.listing-page .page-btn {
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    text-decoration: none;
}

.listing-page .page-btn:hover {
    background: var(--ydm-red);
    color: #fff;
}

.listing-page .page-info {
    padding: 0 12px;
    background: rgba(255, 49, 48, 0.14);
    color: #ffb4ad;
}

.listing-page .load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 24px 0 0;
}

.listing-page .btn-load-more {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.listing-page .btn-load-more:hover,
.listing-page .btn-load-more:disabled {
    background: var(--ydm-red);
    color: #fff;
}

.listing-page .btn-load-more:disabled {
    opacity: 0.7;
    cursor: wait;
}

.listing-page .load-more-end {
    margin: 0;
    color: var(--ydm-muted);
    font-size: 12px;
}

/* Empty states */
.listing-page .listing-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 40px 34px;
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
}

/* Responsive listing */
@media (max-width: 1100px) {
    .listing-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 22px 16px;
    }

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

@media (max-width: 900px) {
    .listing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .listing-header {
        padding: 20px 18px 18px;
    }

    .listing-title,
    .listing-page .listing-header-category .listing-title {
        font-size: 20px;
    }

    .listing-subtitle,
    .listing-bio {
        font-size: 12.5px;
    }

    .listing-section {
        padding: 0 18px 28px;
    }

    .listing-section .section-header-title {
        font-size: 19px;
    }

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

    .explore-filters {
        margin: 0 18px 24px;
        padding: 14px;
    }

    .listing-page .pagination {
        padding: 0 18px 4px;
    }

    .listing-page .listing-empty {
        margin-right: 18px;
        margin-left: 18px;
    }
}

@media (max-width: 520px) {
    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .explore-filters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .explore-filters-actions {
        align-items: stretch;
    }

    .explore-filter-submit,
    .explore-filter-reset {
        flex: 1 1 0;
    }

    .listing-page .poster-card-title {
        font-size: 13px;
    }

    .listing-page .poster-card-rating,
    .listing-page .poster-card-year,
    .listing-page .poster-card-status,
    .listing-page .poster-card-ongoing,
    .listing-page .poster-card-new-episodes {
        font-size: 9.5px;
    }
}

.main-content > .content-section:not(.yd-ranked-section):not(:has(.yd-home-movie-grid)),
.main-content > .upcoming-section,
.main-content > .legend-series-section {
    margin: 0 !important;
    padding: 0 40px 36px !important;
    background: var(--ydm-panel) !important;
    border: 0 !important;
    box-shadow: none !important;
}

.main-content > .content-section:not(.yd-ranked-section):not(:has(.yd-home-movie-grid)) > .container,
.main-content > .upcoming-section > .container,
.main-content > .legend-series-section > .container {
    max-width: 100% !important;
    padding: 0 !important;
}

.main-content > .content-section:not(.yd-ranked-section):not(:has(.yd-home-movie-grid)) .section-header,
.main-content > .upcoming-section .section-header,
.main-content > .legend-series-section .section-header {
    min-height: 32px !important;
    margin: 0 0 18px !important;
}

.main-content > .content-section:not(.yd-ranked-section):not(:has(.yd-home-movie-grid)) .section-header-title,
.main-content > .upcoming-section .section-header-title,
.main-content > .legend-series-section .section-header-title {
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1.28 !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
}

.main-content > .content-section:not(.yd-ranked-section):not(:has(.yd-home-movie-grid)) .content-grid,
.main-content > .upcoming-section .content-grid,
.main-content > .legend-series-section .content-grid {
    gap: 18px 16px !important;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .yd-ranked-section .dual-hero-slider,
    .yd-ranked-section .dual-hero-slider .splide__track,
    .yd-ranked-section .dual-hero-slider .splide__list,
    .yd-ranked-section .dual-hero-slider .splide__slide {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .yd-home-movie-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 18px 14px !important;
    }
}

/* Watch pages: reference 2/3 + 1/3 grid */
.watch-page.af-watch {
    padding: 0 0 28px !important;
    background: var(--ydm-panel) !important;
}

.watch-page > .container {
    max-width: 100% !important;
    padding: 0 !important;
}

.watch-page .breadcrumb,
.watch-head {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.watch-page .breadcrumb {
    margin: 0 0 0 !important;
    padding: 12px 20px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.watch-head {
    padding: 0 20px 12px !important;
    margin: 0 !important;
}

.watch-title {
    font-size: 22px !important;
    line-height: 1.25 !important;
    font-weight: 750 !important;
}

.watch-layout {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 20px !important;
    padding: 0 !important;
    background: var(--ydm-panel) !important;
}

.watch-main {
    gap: 16px !important;
}

.watch-sidebar {
    gap: 14px !important;
    padding-right: 0 !important;
}

.player-wrap {
    padding: 0 !important;
    border-radius: 4px !important;
    border: 0 !important;
    border-top: 2px solid var(--ydm-red) !important;
    background: var(--ydm-panel) !important;
    box-shadow: none !important;
}

.player-frame,
.player-empty,
.player-preparing,
.player-start-overlay {
    border-radius: 4px !important;
    min-height: 492px !important;
    background: #000 !important;
}

.episode-nav {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 0 0 !important;
}

.ep-nav-btn,
.watch-like-btn,
.watch-share-btn,
.watch-status-btn,
.btn-primary,
.btn-watch {
    min-height: 36px !important;
    border-radius: 4px !important;
    background: var(--ydm-button) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

.watch-actions-card,
.watch-sidebar-card,
.series-info-card,
.movie-info-card,
.detail-box,
.content-about-box,
.comments-section {
    border-radius: 8px !important;
    background: var(--ydm-panel) !important;
    border: 0 !important;
    box-shadow: none !important;
}

.watch-episodes-box .episode-list {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}

.episode-item {
    min-height: 42px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.episode-item:hover,
.episode-item-current {
    background: rgba(255, 255, 255, 0.04) !important;
}

.af-footer {
    margin-top: 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: var(--ydm-panel) !important;
}

.af-footer-inner {
    padding: 32px 24px 24px !important;
}

.af-footer-logo span,
.af-footer .footer-menu-title {
    font-size: 14px !important;
}

.af-footer .footer-about,
.af-footer .footer-menu-nav a,
.af-footer .footer-copyright {
    color: #999 !important;
    font-size: 13px !important;
}

.footer-seo-wrap {
    padding: 32px 24px 0 !important;
}

.footer-seo-panel {
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 32px 36px !important;
}

.footer-seo-scroll,
.footer-seo-content {
    max-height: none !important;
    overflow: visible !important;
}

.footer-seo-content,
.footer-seo-content p {
    color: #b8bbc1 !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
}

@media (max-width: 992px) {
    body:not(.menu-sidebar) .site-body {
        width: calc(100% - 28px) !important;
        max-width: var(--ydm-shell) !important;
        padding: 8px !important;
    }

    .af-search {
        width: 300px !important;
        flex-basis: 300px !important;
    }
}

@media (max-width: 768px) {
    body:not(.menu-sidebar) .site-body {
        width: 100% !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .af-header {
        min-height: 68px !important;
        overflow: visible !important;
        border-radius: 0 !important;
    }

    .af-header-inner {
        position: relative !important;
        min-height: 56px !important;
        padding: 0 10px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        grid-template-rows: 56px !important;
        gap: 0 6px !important;
        align-items: center !important;
    }

    .af-header-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        align-self: center !important;
    }

    .af-header .site-logo,
    .af-header .logo-link {
        max-width: 150px !important;
        height: 32px !important;
        min-height: 32px !important;
        transform: none !important;
    }

    .af-main-nav {
        display: none !important;
        position: absolute !important;
        top: 68px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1250 !important;
        margin: 0 !important;
        padding: 66px 12px 12px !important;
        background: #0e0e0e !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45) !important;
    }

    .af-main-nav.open {
        display: block !important;
    }

    .af-main-nav.open .af-nav-menu {
        display: grid !important;
        gap: 4px !important;
    }

    .af-main-nav.open .nav-item,
    .af-main-nav.open .nav-sub-mobile,
    .af-main-nav.open .nav-auth-mobile {
        display: block !important;
    }

    .af-main-nav.open .nav-sub-mobile-heading {
        display: block !important;
        padding: 10px 12px 4px !important;
        color: #858991 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
    }

    .af-main-nav.open .nav-link,
    .af-main-nav.open .btn {
        display: flex !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 42px !important;
        padding: 0 12px !important;
        border-radius: 8px !important;
        color: #f4f4f4 !important;
        font-size: 14px !important;
        background: transparent !important;
    }

    .af-header-actions {
        display: contents !important;
    }

    .af-search {
        display: none !important;
    }

    .af-header:has(#mainNav.open) .af-search {
        display: block !important;
        position: fixed !important;
        top: 82px !important;
        left: 14px !important;
        right: 14px !important;
        z-index: 1300 !important;
        width: auto !important;
        flex: none !important;
    }

    .af-header:has(#mainNav.open) .af-search .search-wrapper {
        height: 42px !important;
    }

    .af-header:has(#mainNav.open) .af-search .search-input {
        height: 42px !important;
    }

    .user-section .auth-buttons {
        display: none !important;
    }

    .user-section {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        order: unset !important;
    }

    .user-section .user-dropdown,
    .user-section .user-avatar-btn {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    .user-section .user-name-short {
        display: none !important;
    }

    .user-section .user-avatar-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        justify-content: center !important;
        border-radius: 999px !important;
        gap: 0 !important;
    }

    .user-section .user-avatar-btn svg:last-child {
        display: none !important;
    }

    .hamburger-btn {
        display: inline-flex !important;
        grid-column: 3 !important;
        grid-row: 1 !important;
        align-self: center !important;
        justify-self: end !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        order: unset !important;
    }
}

@media (max-width: 992px) {
    .yd-ranked-section,
    .home-episodes-section,
    .content-section:has(.yd-home-movie-grid) {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .yd-ranked-section .section-header-title,
    .home-episodes-section .home-ep-header .section-header-title,
    .content-section:has(.yd-home-movie-grid) .section-header-title {
        font-size: 20px !important;
    }

    .yd-ranked-section .dual-hero-slider,
    .yd-ranked-section .dual-hero-slider .splide__track,
    .yd-ranked-section .dual-hero-slider .splide__list,
    .yd-ranked-section .dual-hero-slider .splide__slide,
    .yd-ranked-section .dual-slide-card {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .yd-ranked-section .dual-slide-poster,
    .yd-ranked-section .dual-slide-footer {
        width: 118px !important;
        margin-left: 36px !important;
    }

    .yd-ranked-section .popular-rank {
        top: 22px;
        font-size: 104px;
    }

    .home-episodes-section .latest-ep-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .yd-home-movie-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 18px 14px !important;
    }

    .watch-layout {
        display: block !important;
    }

    .watch-sidebar {
        display: none !important;
    }

    .player-frame,
    .player-empty,
    .player-preparing,
    .player-start-overlay {
        min-height: 220px !important;
    }
}

@media (max-width: 768px) {
    .home-reference-notice {
        min-height: 54px;
        padding: 8px 14px 0;
        font-size: 12px;
        text-align: left;
        justify-content: flex-start;
    }

    .yd-ranked-section,
    .home-episodes-section,
    .content-section:has(.yd-home-movie-grid) {
        padding: 16px 14px 24px !important;
    }

    .yd-ranked-section .section-header,
    .home-episodes-section .home-ep-header,
    .content-section:has(.yd-home-movie-grid) .section-header {
        min-height: 34px !important;
        margin-bottom: 14px !important;
    }

    .yd-ranked-section .section-header-title,
    .home-episodes-section .home-ep-header .section-header-title,
    .content-section:has(.yd-home-movie-grid) .section-header-title {
        font-size: 18px !important;
    }

    .yd-ranked-section .view-all-btn {
        margin-right: 0 !important;
    }

    .yd-ranked-section .splide__arrow {
        display: none !important;
    }

    .yd-ranked-section .dual-hero-slider,
    .yd-ranked-section .dual-hero-slider .splide__track,
    .yd-ranked-section .dual-hero-slider .splide__list,
    .yd-ranked-section .dual-hero-slider .splide__slide {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .yd-ranked-section .dual-slide-poster,
    .yd-ranked-section .dual-slide-footer {
        width: 104px !important;
        margin-left: 34px !important;
    }

    .yd-ranked-section .popular-rank {
        top: 26px;
        font-size: 78px;
    }

    .home-episodes-section .home-ep-header {
        display: flex !important;
        flex-direction: column !important;
    }

    .home-episodes-section .home-ep-tabs {
        margin-top: 0 !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }

    .home-episodes-section .latest-ep-grid {
        grid-template-columns: 1fr !important;
    }

    .home-episodes-section .latest-ep-card {
        width: 100% !important;
    }

    .yd-home-movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px 12px !important;
    }

    .yd-home-movie-grid .poster-card-title {
        font-size: 13px !important;
    }
}

/* Series detail */
.series-hero {
    padding: 0 0 32px !important;
    background: transparent !important;
}

.series-hero > .container,
.series-body {
    max-width: var(--ydm-shell) !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.series-hero-card {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 228px minmax(0, 1fr) !important;
    gap: 0 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.series-hero-panel {
    order: 2 !important;
    min-height: 360px !important;
    height: auto !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #111214 !important;
}

.series-hero-panel-bg,
.series-hero-panel-bg img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.series-hero-panel-bg img {
    object-fit: cover !important;
}

.series-hero-panel-overlay {
    background:
        linear-gradient(90deg, rgba(17, 18, 20, 0.97), rgba(17, 18, 20, 0.88) 52%, rgba(17, 18, 20, 0.68)),
        linear-gradient(0deg, rgba(17, 18, 20, 0.72), rgba(17, 18, 20, 0.3)) !important;
}

.series-hero-panel-content {
    position: relative !important;
    z-index: 2 !important;
    height: 100% !important;
    padding: 28px 32px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

.series-title {
    width: min(660px, 100%) !important;
    margin: 0 0 8px !important;
    font-size: 32px !important;
    line-height: 1.12 !important;
    font-weight: 750 !important;
    letter-spacing: -0.025em !important;
}

.series-original {
    margin: 0 0 10px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 13px !important;
}

.series-meta,
.series-tag-list {
    gap: 8px !important;
}

.meta-badge {
    min-height: 26px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}

/* Detail actions */
.series-hero-actions {
    margin-top: 18px !important;
    gap: 8px !important;
}

.series-hero-actions .btn-watch,
.series-hero-actions .btn-primary,
.series-hero-actions .btn-outline,
.series-hero-actions button {
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.series-hero-actions .btn-watch,
.series-hero-actions .btn-primary {
    background: #ff3130 !important;
}

.series-hero-poster {
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 16px !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.22) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.series-hero-poster img {
    width: 196px !important;
    max-width: 100% !important;
    height: 294px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.series-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    padding: 0 0 32px !important;
    background: transparent !important;
}

.series-body > .content-about-box,
.series-body > .watch-episodes-box,
.series-body > .series-detail-tabs,
.series-body > .comments-section {
    width: 100% !important;
}

.series-body > .content-about-box,
.series-body > .series-about,
.series-body > .series-detail-tabs,
.series-body > .watch-episodes-box,
.series-body > .comments-section,
.movie-detail-page .watch-main > .content-about-box,
.movie-detail-page .watch-main > .series-detail-tabs,
.movie-detail-page .watch-main > .watch-episodes-box,
.movie-detail-page .watch-main > .comments-section {
    padding: 18px 20px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.content-about-title,
.series-about .detail-box-title,
.detail-box-title,
.comments-title,
.series-section-tabs {
    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 750 !important;
    color: #fff !important;
}

.content-about-body,
.content-about-text,
.series-about-body,
.series-about-text,
.comments-section,
.detail-list {
    color: #d6d8dc !important;
    font-size: 14px !important;
}

/* Seasons and episodes */
.season-tabs,
.watch-season-tabs {
    gap: 8px !important;
    margin: 0 0 16px !important;
}

.season-tab {
    min-height: 38px !important;
    padding: 0 13px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: #fff !important;
}

.season-tab.active {
    background: #ff3130 !important;
}

.watch-episodes-box .episode-list,
.series-body .episode-list {
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
}

.watch-episodes-box .episode-list.active,
.series-body .episode-list.active {
    display: flex !important;
    flex-direction: column !important;
}

.series-body .episode-item,
.watch-episodes-box .episode-item {
    min-height: 52px !important;
    padding: 10px 12px !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.055) !important;
    border-radius: 8px !important;
    color: #fff !important;
}

.series-body .episode-item .ep-number,
.watch-episodes-box .episode-item .ep-number {
    width: 44px !important;
    height: 44px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-size: 13px !important;
}

.series-body .episode-item .ep-title,
.watch-episodes-box .episode-item .ep-title {
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
}

.series-body .episode-item .ep-date,
.watch-episodes-box .episode-item .ep-date {
    grid-column: auto !important;
    margin-top: 0 !important;
    color: var(--ydm-muted) !important;
    font-size: 12px !important;
}

/* Detail tabs */
.series-section-tab {
    min-height: 40px !important;
    padding: 0 0 !important;
    margin-right: 18px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 750 !important;
}

.series-section-tab.active {
    background: transparent !important;
    box-shadow: inset 0 -2px 0 var(--ydm-red) !important;
}

/* Cast */
.series-body .series-cast-grid,
.movie-detail-page .series-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px;
}

.series-body .series-cast-grid--scroll,
.movie-detail-page .series-cast-grid--scroll {
    overflow: visible;
}

.series-body .cast-card,
.movie-detail-page .cast-card {
    gap: 7px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.055);
    color: #fff;
    transform: none;
}

.series-body .cast-card:hover,
.movie-detail-page .cast-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 49, 48, 0.28);
    transform: none;
}

.series-body .cast-photo,
.movie-detail-page .cast-photo {
    aspect-ratio: 1 / 1.18;
    border-radius: 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.series-body .cast-photo img,
.movie-detail-page .cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.series-body .cast-name,
.movie-detail-page .cast-name {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
}

.series-body .cast-role,
.movie-detail-page .cast-role {
    color: var(--ydm-muted);
    font-size: 11px;
    line-height: 1.25;
}

.series-body .detail-list,
.movie-detail-page .detail-list {
    gap: 10px;
}

.series-body .detail-row,
.movie-detail-page .detail-row {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.series-body .detail-row:last-child,
.movie-detail-page .detail-row:last-child {
    border-bottom: 0;
}

.series-body .detail-row dt,
.movie-detail-page .detail-row dt {
    color: var(--ydm-muted);
    font-size: 12px;
}

.series-body .detail-row dd,
.movie-detail-page .detail-row dd {
    color: #fff;
    font-size: 13px;
}

/* Trailer modal */
.trailer-modal {
    z-index: 10050;
}

.trailer-modal-backdrop {
    background: rgba(0, 0, 0, 0.82);
}

.trailer-modal-dialog {
    width: min(920px, calc(100vw - 32px));
    border-radius: 10px;
    background: #0b0c0e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.trailer-modal-close {
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
}

.trailer-modal-body {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

/* Movie detail */
.movie-detail-page .watch-head {
    display: none;
}

.movie-detail-page .watch-sidebar-mobile {
    display: none !important;
}

.movie-detail-page .episode-nav {
    display: none !important;
}

.movie-detail-page > .container {
    max-width: var(--ydm-shell) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.movie-detail-hero {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    margin: 0 0 28px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.movie-detail-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.22);
}

.movie-detail-poster img,
.movie-detail-poster .card-placeholder {
    width: 196px;
    max-width: 100%;
    height: 294px;
    object-fit: cover;
    border-radius: 8px;
}

.movie-detail-panel {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background: #111214;
}

.movie-detail-backdrop,
.movie-detail-backdrop img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-detail-backdrop img {
    object-fit: cover;
    opacity: 0.34;
}

.movie-detail-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 18, 20, 0.98), rgba(17, 18, 20, 0.9) 52%, rgba(17, 18, 20, 0.72)),
        linear-gradient(0deg, rgba(17, 18, 20, 0.78), rgba(17, 18, 20, 0.3));
}

.movie-detail-content {
    position: relative;
    z-index: 1;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 32px;
}

.movie-detail-title {
    width: min(660px, 100%);
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.12;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.movie-detail-original {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.movie-detail-meta {
    gap: 8px;
    margin-bottom: 14px;
}

.movie-detail-summary {
    width: min(680px, 100%);
    margin: 0;
    color: #d6d8dc;
    font-size: 14px;
    line-height: 1.6;
}

.movie-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.movie-detail-actions .btn-watch,
.movie-detail-actions .btn-primary,
.movie-detail-actions .btn-outline,
.movie-detail-actions button {
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.movie-detail-actions .btn-watch,
.movie-detail-actions .btn-primary {
    background: #ff3130 !important;
}

/* Related content */
.detail-related-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.detail-related-grid .poster-card {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.detail-related-grid .poster-card-media {
    border-radius: 8px;
}

.detail-related-grid .poster-card-title {
    font-size: 13px;
}

/* Detail comments */
.series-body .comment-form,
.movie-detail-page .comment-form {
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.055);
}

.series-body .comment-form textarea,
.movie-detail-page .comment-form textarea,
.series-body .comment-form input[type="text"],
.movie-detail-page .comment-form input[type="text"] {
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.series-body .comment-item,
.movie-detail-page .comment-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.series-body .comment-author-name,
.movie-detail-page .comment-author-name {
    color: #fff;
    font-size: 13px;
}

.series-body .comment-author-meta time,
.movie-detail-page .comment-author-meta time,
.series-body .comment-body,
.movie-detail-page .comment-body {
    color: #c8cbd1;
    font-size: 13px;
}

.series-body .comment-action,
.movie-detail-page .comment-action,
.series-body .comment-edit-btn,
.movie-detail-page .comment-edit-btn,
.series-body .comment-delete-btn,
.movie-detail-page .comment-delete-btn {
    border-radius: 6px;
    color: #d8dbe0;
}

/* Episode watch page: exact reference proportions. */
.watch-page-episode > .container {
    max-width: var(--ydm-shell) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.watch-page-episode .watch-layout {
    grid-template-columns: minmax(0, 2fr) 280px !important;
    gap: 18px !important;
    padding: 0 !important;
    background: transparent !important;
}

.watch-page-episode .watch-main {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.watch-page-episode .player-wrap {
    width: 100% !important;
    border-top: 2px solid var(--ydm-red) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.watch-page-episode .player-frame,
.watch-page-episode .player-empty,
.watch-page-episode .player-preparing,
.watch-page-episode .player-start-overlay {
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
}

.watch-page-episode .watch-sidebar-card-wrap,
.watch-page-episode .watch-actions-card {
    background: #131517 !important;
    border-radius: 8px !important;
    padding: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.watch-page-episode .watch-sidebar .watch-episodes-box,
.watch-page-episode .watch-sidebar-card,
.watch-page-episode .series-info-card {
    border-radius: 8px !important;
}

/* Movie page: full-width player first, künye/content below. */
.watch-page.af-watch:not(.watch-page-episode) .watch-head {
    padding: 0 40px 14px !important;
}

.watch-page.af-watch:not(.watch-page-episode) .watch-title {
    font-size: 30px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;
}

.watch-page.af-watch:not(.watch-page-episode) .watch-layout {
    display: block !important;
    padding: 0 40px !important;
}

.watch-page.af-watch:not(.watch-page-episode) .watch-main {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

.watch-page.af-watch:not(.watch-page-episode) .player-wrap {
    width: 100% !important;
    height: 500px !important;
    min-height: 500px !important;
    border-radius: 0 0 6px 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 0 !important;
}

.watch-page.af-watch:not(.watch-page-episode) .player-frame,
.watch-page.af-watch:not(.watch-page-episode) .player-empty,
.watch-page.af-watch:not(.watch-page-episode) .player-preparing,
.watch-page.af-watch:not(.watch-page-episode) .player-start-overlay {
    height: 498px !important;
    min-height: 498px !important;
    border-radius: 0 0 6px 6px !important;
}

.watch-page.af-watch:not(.watch-page-episode) .episode-nav {
    display: none !important;
}

.watch-page.af-watch:not(.watch-page-episode) .episode-nav .ep-nav-btn {
    width: auto !important;
    min-width: 86px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
}

.watch-page.af-watch:not(.watch-page-episode) .watch-actions-inline {
    display: block !important;
}

.watch-page.af-watch:not(.watch-page-episode) .watch-actions-inline .watch-actions-card {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding: 0 !important;
    background: transparent !important;
}

.watch-page.af-watch:not(.watch-page-episode) .watch-stats-row,
.watch-page.af-watch:not(.watch-page-episode) .watch-status-block {
    display: none !important;
}

.watch-page.af-watch:not(.watch-page-episode) .watch-toolbar {
    display: flex !important;
    gap: 8px !important;
}

.watch-page.af-watch:not(.watch-page-episode) .watch-sidebar {
    display: none !important;
}

.watch-page.af-watch:not(.watch-page-episode) .content-about-box,
.watch-page.af-watch:not(.watch-page-episode) .series-detail-tabs,
.watch-page.af-watch:not(.watch-page-episode) .comments-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 992px) {
    .series-hero {
        padding: 0 18px 28px !important;
    }

    .series-hero-card,
    .movie-detail-hero {
        grid-template-columns: 190px minmax(0, 1fr) !important;
    }

    .series-body,
    .watch-page-episode .watch-layout {
        display: block !important;
    }

    .series-body {
        padding: 0 18px 30px !important;
    }

    .series-hero-panel {
        height: 330px !important;
        min-height: 330px !important;
    }

    .movie-detail-panel,
    .movie-detail-content {
        min-height: 330px;
    }

    .series-title {
        font-size: 28px !important;
    }

    .movie-detail-title {
        font-size: 28px;
    }

    .watch-episodes-box .episode-list,
    .series-body .episode-list {
        grid-template-columns: 1fr !important;
    }

    .watch-page-episode .watch-sidebar {
        display: none !important;
    }

    .watch-page-episode .player-frame,
    .watch-page-episode .player-empty,
    .watch-page-episode .player-preparing,
    .watch-page-episode .player-start-overlay {
        min-height: 220px !important;
    }

    .watch-page.af-watch:not(.watch-page-episode) .watch-layout,
    .watch-page.af-watch:not(.watch-page-episode) .watch-head {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .watch-page.af-watch:not(.watch-page-episode) .player-wrap {
        height: 260px !important;
        min-height: 260px !important;
    }

    .watch-page.af-watch:not(.watch-page-episode) .player-frame,
    .watch-page.af-watch:not(.watch-page-episode) .player-empty,
    .watch-page.af-watch:not(.watch-page-episode) .player-preparing,
    .watch-page.af-watch:not(.watch-page-episode) .player-start-overlay {
        height: 258px !important;
        min-height: 258px !important;
    }
}

/* Responsive detail */
@media (max-width: 768px) {
    .series-hero-card,
    .movie-detail-hero {
        grid-template-columns: 1fr !important;
    }

    .series-hero-poster,
    .movie-detail-poster {
        min-height: 0 !important;
        padding: 16px !important;
        justify-content: flex-start !important;
    }

    .series-hero-poster img,
    .movie-detail-poster img,
    .movie-detail-poster .card-placeholder {
        width: 150px !important;
        height: 225px !important;
    }

    .series-hero-panel,
    .movie-detail-panel,
    .movie-detail-content {
        min-height: auto !important;
        height: auto !important;
    }

    .series-hero-panel-content,
    .movie-detail-content {
        min-height: 0 !important;
        padding: 18px !important;
    }

    .series-title,
    .watch-page.af-watch.movie-detail-page .movie-detail-title {
        font-size: 24px !important;
        line-height: 1.18 !important;
    }

    .movie-detail-summary {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .series-hero-actions,
    .movie-detail-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .series-hero-actions .btn-watch,
    .series-hero-actions .btn-primary,
    .series-hero-actions .btn-outline,
    .series-hero-actions button,
    .movie-detail-actions .btn-watch,
    .movie-detail-actions .btn-primary,
    .movie-detail-actions .btn-outline,
    .movie-detail-actions button {
        width: 100%;
        justify-content: center;
    }

    .season-tabs,
    .watch-season-tabs,
    .series-section-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .series-section-tab,
    .season-tab {
        flex: 0 0 auto;
    }

    .watch-episodes-box .episode-list,
    .series-body .episode-list {
        grid-template-columns: 1fr !important;
    }

    .series-body .series-cast-grid,
    .movie-detail-page .series-cast-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .series-body .detail-row,
    .movie-detail-page .detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .comment-replies {
        margin-left: 18px;
        padding-left: 10px;
    }
}

/* Remaining user pages — auth, profile, actor, calendar, static, 404, watch polish */

/* Common form / alert / empty / modal */
.auth-page,
.profile-page,
.profile-settings-page,
.actor-hero,
.calendar-page,
.static-page,
.page-404,
.trends-page {
    padding: 24px 0 40px;
}

.auth-card,
.profile-private-card,
.settings-card,
.static-page-card,
.contact-info-card,
.page-404-panel,
.share-modal-panel,
.watch-status-sheet-panel {
    background: #131517;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    box-shadow: none;
}

.auth-container,
.profile-container,
.profile-settings-container,
.actor-hero-inner,
.calendar-page > .container,
.static-page > .container,
.page-404 .container,
.trends-page > .container,
.watch-page-episode > .container {
    max-width: var(--ydm-shell);
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 28px 24px;
    position: relative;
}

.auth-card h1,
.profile-settings-head h1,
.profile-header h1,
.actor-hero-name,
.cal-page-title,
.static-page-title,
.page-404-title,
.yd-trends-hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.auth-sub,
.profile-settings-desc,
.profile-username,
.profile-joined,
.actor-hero-label,
.actor-hero-country,
.actor-hero-bio,
.cal-section-date,
.cal-week-subtitle,
.page-404-text,
.yd-trends-hero p,
.trends-empty,
.profile-empty,
.empty-message,
.cal-empty {
    color: #9aa0a8;
    font-size: 13px;
    line-height: 1.55;
}

.auth-form label,
.settings-field,
.auth-form label > span,
.settings-field > span {
    display: block;
    color: #d6d8dc;
    font-size: 13px;
    font-weight: 650;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input:not([type]),
.settings-field input,
.auth-password-wrap input,
.comment-form textarea,
.comment-form input[type="text"] {
    width: 100%;
    min-height: 42px;
    margin-top: 6px;
    padding: 0 12px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 14px;
}

.comment-form textarea {
    min-height: 96px;
    padding: 10px 12px;
    resize: vertical;
}

.auth-form label + label,
.settings-field + .settings-field,
.auth-form .auth-password-field {
    margin-top: 14px;
}

.auth-submit,
.profile-settings-form .btn-primary,
.page-404 .btn-primary,
.btn-primary {
    min-height: 40px;
    border-radius: 6px;
    background: #ff3130;
    border: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.auth-alert,
.flow-alert,
.field-error {
    border-radius: 6px;
    font-size: 13px;
}

.auth-alert-error,
.flow-alert-error,
.field-error {
    color: #ff8f8f;
}

.auth-alert-success,
.flow-alert-success {
    color: #8fdfb0;
}

.auth-alert,
.flow-alert {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-footer-link,
.auth-forgot-link,
.auth-register-block a,
.profile-settings-link a {
    color: #ff6b6b;
    font-size: 13px;
}

.auth-close {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #9aa0a8;
    font-size: 24px;
    line-height: 1;
}

.auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 18px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c8cbd1;
    font-size: 13px;
}

.auth-register-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.auth-register-btn,
.btn-outline,
.btn-login,
.ep-nav-btn {
    min-height: 38px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 650;
}

/* Profile */
.profile-header,
.profile-stats-grid,
.profile-tabs,
.profile-tab-panel,
.profile-settings-main {
    background: transparent;
}

.profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 8px;
    background: #131517;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-avatar-img,
.profile-avatar-wrap img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.profile-stat-card {
    padding: 14px;
    border-radius: 8px;
    background: #131517;
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.profile-stat-card strong {
    display: block;
    color: #fff;
    font-size: 20px;
}

.profile-stat-card span {
    color: #9aa0a8;
    font-size: 12px;
}

.profile-tabs,
.profile-list-subtabs,
.profile-settings-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.profile-tab,
.profile-list-subtab,
.profile-settings-nav-item {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #d6d8dc;
    font-size: 13px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
}

.profile-tab.active,
.profile-list-subtab.active,
.profile-settings-nav-item.active {
    background: rgba(255, 49, 48, 0.18);
    border-color: rgba(255, 49, 48, 0.45);
    color: #fff;
}

.profile-tab-panel,
.settings-card {
    padding: 16px;
    border-radius: 8px;
    background: #131517;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.settings-card + .settings-card {
    margin-top: 14px;
}

.settings-card-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.settings-card-desc {
    margin: 0 0 14px;
    color: #9aa0a8;
    font-size: 12px;
}

.profile-series-grid,
.profile-actors-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.profile-private-card {
    max-width: 480px;
    margin: 40px auto;
    padding: 28px 24px;
    text-align: center;
}

.profile-private-card h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
}

.profile-settings-nav-link {
    color: #9aa0a8;
    font-size: 13px;
    margin-right: 8px;
}

/* Actor */
.actor-hero {
    padding-bottom: 0;
}

.actor-hero-inner {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 8px;
    background: #131517;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.actor-photo,
.actor-photo-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.actor-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
}

.actor-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.actor-stat {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
}

.actor-body {
    max-width: 1008px;
    padding-top: 28px;
    padding-bottom: 40px;
}

.actor-section + .actor-section {
    margin-top: 28px;
}

.actors-popular-stage-inner,
.actors-directory-section {
    margin-top: 18px;
    padding: 16px;
    border-radius: 8px;
    background: #131517;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.actors-popular-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.actors-popular-card {
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
}

.actors-popular-photo img,
.actors-popular-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
}

.actors-popular-name {
    margin: 8px 0 2px;
    font-size: 13px;
    font-weight: 700;
}

.actors-popular-country,
.actors-popular-stats {
    color: #9aa0a8;
    font-size: 11px;
}

/* Calendar */
.cal-page-head,
.cal-today-block,
.cal-week-block {
    margin-bottom: 20px;
}

.cal-section-bar,
.cal-week-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cal-section-title,
.cal-week-title {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.cal-day-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 14px;
}

.cal-day-tab,
.cal-nav-week,
.cal-nav-current {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #d6d8dc;
    font-size: 13px;
    white-space: nowrap;
}

.cal-day-tab.is-active,
.cal-day-tab.is-today.is-active {
    background: rgba(255, 49, 48, 0.18);
    border-color: rgba(255, 49, 48, 0.45);
    color: #fff;
}

.cal-schedule-list {
    display: grid;
    gap: 8px;
}

.cal-empty {
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.calendar-episode-card,
.cal-episode-card,
.cal-schedule-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.055);
    color: #fff;
}

.cal-schedule-poster img,
.cal-schedule-placeholder {
    width: 54px;
    height: 81px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.cal-schedule-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.cal-schedule-title {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.cal-schedule-meta,
.cal-schedule-ep,
.cal-schedule-genre {
    color: #9aa0a8;
    font-size: 12px;
}

/* Static + 404 */
.static-page-hero {
    margin-bottom: 16px;
}

.static-page-card,
.contact-info-card {
    padding: 20px;
}

.static-page-content,
.static-page-content p {
    color: #d6d8dc;
    font-size: 14px;
    line-height: 1.65;
}

.static-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
}

.static-page-grid-single {
    grid-template-columns: 1fr;
}

.contact-info-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.contact-info-label {
    display: block;
    color: #9aa0a8;
    font-size: 12px;
}

.contact-info-value {
    color: #ff6b6b;
    font-size: 14px;
}

.page-404-panel {
    max-width: 480px;
    margin: 48px auto;
    padding: 32px 24px;
    text-align: center;
}

.page-404-code {
    margin: 0 0 8px;
    color: #ff3130;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

/* Watch / player polish */
.watch-page-episode {
    padding: 0 0 36px;
}

.watch-page-episode .breadcrumb,
.movie-detail-page .breadcrumb {
    margin: 0 0 12px;
    padding: 10px 0;
    color: #9aa0a8;
    font-size: 13px;
    background: transparent;
    border: 0;
}

.watch-page-episode .breadcrumb a,
.movie-detail-page .breadcrumb a {
    color: #c8cbd1;
}

.watch-page-episode .watch-head {
    margin: 0 0 14px;
    padding: 0;
}

.watch-page-episode .watch-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.watch-page-episode .watch-ep-line,
.watch-page-episode .watch-meta-row {
    color: #9aa0a8;
    font-size: 13px;
}

.watch-page-episode .player-wrap,
.movie-detail-page .player-wrap {
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: #111214;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.player-tab {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #d6d8dc;
    font-size: 12px;
    font-weight: 650;
}

.player-tab.active {
    background: rgba(255, 49, 48, 0.2);
    border-color: rgba(255, 49, 48, 0.45);
    color: #fff;
}

.watch-page-episode .episode-nav,
.movie-detail-page .episode-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.watch-page-episode .ep-nav-btn,
.movie-detail-page .ep-nav-btn {
    min-height: 38px;
    padding: 0 12px;
}

.watch-page-episode .ep-nav-disabled {
    opacity: 0.45;
}

.watch-page-episode .watch-actions-card,
.watch-page-episode .watch-sidebar-card,
.watch-page-episode .series-info-card,
.watch-page-episode .watch-episodes-box,
.watch-page-episode .comments-section {
    border-radius: 8px;
    background: #131517;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.watch-page-episode .watch-sidebar {
    gap: 14px;
}

.watch-page-episode .watch-actions-card,
.watch-movie-info-card,
.watch-series-info-card {
    padding: 14px;
}

.watch-status-options {
    display: grid;
    gap: 8px;
}

.watch-status-btn,
.watch-like-btn,
.watch-share-btn {
    min-height: 38px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 13px;
}

.watch-status-btn.is-active,
.watch-like-btn.is-active {
    background: rgba(255, 49, 48, 0.2);
    border-color: rgba(255, 49, 48, 0.45);
}

.share-modal-panel,
.watch-status-sheet-panel {
    padding: 18px;
}

.share-modal-title,
.watch-status-sheet-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.share-modal-sub,
.share-copy-field {
    color: #9aa0a8;
    font-size: 13px;
}

.share-modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.share-link,
.share-copy-btn,
.share-modal-close {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
}

.share-copy-row input {
    min-height: 40px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.share-modal-backdrop,
.watch-status-sheet-backdrop,
.trailer-modal-backdrop {
    background: rgba(0, 0, 0, 0.78);
}

.pagination a,
.pagination span,
.btn-load-more {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #d6d8dc;
    font-size: 13px;
}

.pagination .active,
.pagination a:hover,
.btn-load-more:hover {
    background: rgba(255, 49, 48, 0.18);
    border-color: rgba(255, 49, 48, 0.4);
    color: #fff;
}

.empty-message,
.listing-empty,
.trends-empty,
.profile-empty,
.cal-empty {
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 992px) {
    .actor-hero-inner,
    .static-page-grid,
    .profile-series-grid,
    .profile-actors-grid,
    .actors-popular-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .actor-hero-inner {
        grid-template-columns: 140px minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .auth-card,
    .profile-header,
    .profile-tab-panel,
    .settings-card,
    .actor-hero-inner,
    .static-page-card,
    .page-404-panel {
        padding: 16px;
    }

    .actor-hero-inner,
    .static-page-grid {
        grid-template-columns: 1fr;
    }

    .actor-photo,
    .actor-photo-placeholder {
        width: 120px;
        height: 120px;
    }

    .profile-series-grid,
    .profile-actors-grid,
    .actors-popular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-form-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .watch-page-episode .watch-title {
        font-size: 20px;
    }

    .watch-page-episode .episode-nav,
    .movie-detail-page .episode-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .watch-page-episode .ep-nav-series {
        grid-column: 1 / -1;
    }

    .cal-week-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .cal-nav-week {
        justify-content: center;
    }
}

/* ── Detail / watch reference polish (series + movie + episode) ── */
.series-hero > .container,
.series-body,
.movie-detail-page > .container,
.watch-page-episode > .container,
.watch-page.af-watch > .container {
    max-width: var(--ydm-shell) !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.series-hero {
    padding-top: 12px !important;
}

.series-hero-actions .btn-watch,
.series-hero-actions .btn-primary,
.movie-detail-actions .btn-watch,
.movie-detail-actions .btn-primary {
    background: var(--ydm-red) !important;
    border: 0 !important;
    color: #fff !important;
}

.series-hero-actions .btn-outline,
.series-hero-actions .content-follow-btn,
.movie-detail-actions .btn-outline,
.movie-detail-actions .content-follow-btn,
.movie-detail-actions button {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.season-tab.active {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

.watch-page-episode .breadcrumb {
    margin: 10px 0 8px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #9a9a9a !important;
    font-size: 12px !important;
}

.watch-page-episode .watch-head {
    margin: 0 0 12px !important;
    padding: 12px 14px !important;
    border-radius: 8px 8px 0 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 0 !important;
}

.watch-page-episode .watch-title {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.watch-page-episode .watch-ep-line,
.watch-page-episode .watch-meta-row {
    display: none !important;
}

.watch-page-episode .watch-layout {
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 16px !important;
    align-items: start !important;
}

.watch-page-episode .watch-main {
    gap: 0 !important;
}

.watch-page-episode .player-wrap {
    margin-top: 0 !important;
    border-radius: 0 0 8px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-top: 2px solid var(--ydm-red) !important;
    background: #0a0a0a !important;
}

.watch-page-episode .episode-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 12px 0 0 !important;
}

.watch-page-episode .episode-nav .ep-nav-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.watch-page-episode .episode-nav .ep-nav-next {
    background: rgba(255, 255, 255, 0.1) !important;
}

.watch-page-episode .watch-actions-inline {
    display: block !important;
    margin-top: 10px !important;
}

.watch-page-episode .watch-actions-sidebar {
    display: none !important;
}

.watch-page-episode .yd-watch-series-card {
    padding: 12px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.watch-page-episode .yd-watch-series-top {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.watch-page-episode .yd-watch-series-poster,
.watch-page-episode .yd-watch-series-poster .sidebar-poster {
    display: block;
    width: 72px;
    height: 108px;
    margin: 0;
    border-radius: 6px;
    object-fit: cover;
}

.watch-page-episode .yd-watch-series-copy .sidebar-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}

.watch-page-episode .yd-watch-series-genre {
    margin: 0 0 6px;
    color: #bdbdbd;
    font-size: 12px;
}

.watch-page-episode .yd-watch-series-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #d7d7d7;
    font-size: 12px;
}

.watch-page-episode .yd-watch-details-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 12px !important;
    margin: 0 !important;
}

.watch-page-episode .yd-watch-details-grid li {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    justify-content: flex-start !important;
    font-size: 12px !important;
}

.watch-page-episode .yd-watch-details-grid li span {
    color: #8f8f8f !important;
    font-size: 11px !important;
}

.watch-page-episode .watch-sidebar-episodes {
    margin-top: 12px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.watch-page-episode .watch-sidebar-episodes .detail-box-title {
    margin: 0 0 10px !important;
    font-size: 14px !important;
}

.watch-page-episode .watch-sidebar-episodes .season-tabs {
    margin-bottom: 10px !important;
}

.watch-page-episode .watch-sidebar-episodes .episode-list.active {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.watch-page-episode .watch-sidebar-episodes .episode-list.active::-webkit-scrollbar {
    width: 4px;
}

.watch-page-episode .watch-sidebar-episodes .episode-list.active::-webkit-scrollbar-thumb {
    background: var(--ydm-red);
    border-radius: 999px;
}

.watch-page-episode .watch-sidebar-episodes .episode-item {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    padding: 10px 10px !important;
    gap: 4px !important;
}

.watch-page-episode .watch-sidebar-episodes .episode-item .ep-number {
    display: none !important;
}

.watch-page-episode .watch-sidebar-episodes .episode-item .ep-date {
    display: block !important;
}

.watch-page-episode .watch-sidebar-episodes .episode-item-current {
    border-color: rgba(255, 49, 48, 0.45) !important;
    background: rgba(255, 49, 48, 0.12) !important;
}

.watch-page-episode .watch-sidebar-episodes .ep-watching {
    color: var(--ydm-red) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.movie-detail-page .movie-detail-hero {
    margin-top: 8px;
}

.movie-detail-page .watch-layout {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.movie-detail-page .player-wrap {
    border-top: 2px solid var(--ydm-red) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.movie-detail-page .content-about-box,
.movie-detail-page .series-detail-tabs,
.movie-detail-page .comments-section {
    padding: 18px 20px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

@media (max-width: 992px) {
    .watch-page-episode .watch-sidebar-mobile {
        display: block !important;
    }

    .watch-page-episode .watch-sidebar {
        display: none !important;
    }

    .watch-page-episode .watch-layout {
        display: block !important;
    }

    .watch-page-episode .episode-nav {
        grid-template-columns: 1fr 1fr !important;
    }

    .watch-page-episode .watch-head {
        border-radius: 8px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .series-hero > .container,
    .series-body,
    .movie-detail-page > .container,
    .watch-page-episode > .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ===== Homepage header / search / view-all — 1:1 reference match ===== */
.af-header {
    min-height: 0 !important;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgb(27,27,27) 100%) !important;
}

.af-header-inner {
    min-height: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 167px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 0 !important;
}

.af-header-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 167px !important;
    min-width: 167px !important;
    padding: 14px 0 14px 28px !important;
    align-self: center !important;
}

.af-header-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 20px !important;
    width: 100% !important;
    padding: 14px 28px 14px 56px !important;
    margin: 0 !important;
}

.af-main-nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 12px !important;
    background: rgb(21, 21, 22) !important;
    border-top: 0 !important;
    border-bottom: 2px solid #ff3130 !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
}

.af-nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    width: 100% !important;
    padding: 8px 8px !important;
}

.af-nav-menu .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 48px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.af-nav-menu .nav-link::before {
    display: none !important;
    content: none !important;
}

.af-nav-menu .yd-nav-icon {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
    display: block !important;
    color: currentColor !important;
}

.af-nav-menu .nav-link:hover,
.af-nav-menu .nav-link.active {
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.af-search,
.yd-ref-search {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 440px !important;
    min-width: 220px !important;
    margin: 0 auto 0 0 !important;
    display: block !important;
}

.yd-ref-search-wrap,
.af-search .search-wrapper.yd-ref-search-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 42px !important;
    min-height: 42px !important;
    width: 100% !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
    position: relative !important;
}

.yd-ref-search-icon {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 12px !important;
    transform: none !important;
    pointer-events: none !important;
    color: #fff !important;
    background: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    flex: 0 0 auto !important;
}

.yd-ref-search-icon svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    color: #fff !important;
    fill: currentColor !important;
}

.yd-ref-search-input,
.af-search .search-input.yd-ref-search-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 42px !important;
    padding: 11px 14px 11px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

.yd-ref-search-input::placeholder,
.af-search .search-input.yd-ref-search-input::placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

.yd-ref-search-btn,
.af-search .search-btn.yd-ref-search-btn {
    display: none !important;
}

.user-section > .auth-buttons > .btn-login,
.yd-ref-login {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 35px !important;
    height: 35px !important;
    min-width: 0 !important;
    padding: 7px 16px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 0 !important;
    color: #000 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

.yd-ref-login .yd-plus-icon,
.user-section > .auth-buttons > .btn-login .yd-plus-icon {
    width: 16px !important;
    height: 16px !important;
    stroke: #000 !important;
    color: #000 !important;
    flex: 0 0 16px !important;
}

.yd-ref-login:hover,
.user-section > .auth-buttons > .btn-login:hover {
    background: #414346 !important;
    color: #fff !important;
}

.yd-ref-login:hover .yd-plus-icon,
.user-section > .auth-buttons > .btn-login:hover .yd-plus-icon {
    stroke: #fff !important;
    color: #fff !important;
}

.user-section > .auth-buttons > .btn-register {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 35px !important;
    height: 35px !important;
    min-width: 0 !important;
    padding: 7px 16px !important;
    border-radius: 6px !important;
    background: #414346 !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.user-section > .auth-buttons > .btn-register:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #000 !important;
}

.view-all-btn,
.home-ep-view-all,
.yd-ranked-section .view-all-btn,
.content-section:has(.yd-home-movie-grid) .view-all-btn,
.home-episodes-section .home-ep-view-all,
.listing-section .view-all-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 35px !important;
    min-height: 35px !important;
    padding: 7px 16px !important;
    border-radius: 6px !important;
    background: #414346 !important;
    border: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.view-all-btn::after,
.home-ep-view-all::after {
    display: none !important;
    content: none !important;
}

.view-all-btn .yd-plus-icon,
.home-ep-view-all .yd-plus-icon {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    stroke: currentColor !important;
    color: currentColor !important;
}

.view-all-btn:hover,
.home-ep-view-all:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #000 !important;
}

.yd-ranked-section .view-all-btn {
    display: none !important;
}

.home-episodes-section .home-ep-header {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
}

.home-episodes-section .home-ep-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: 0 !important;
    width: 100% !important;
}

.home-episodes-section .home-ep-tabs {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
}

.home-episodes-section .home-ep-view-all {
    margin-left: auto !important;
}

/* Header: search clear of logo + black divider before nav */
.af-header {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgb(27, 27, 27) 100%) !important;
}

.af-header-brand {
    padding: 14px 20px 14px 28px !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: 280px !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
}

.af-header-brand .site-logo,
.af-header-brand .logo-link {
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.af-header-brand .site-logo-img,
.af-header-brand .logo-name {
    max-width: 280px !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.af-header-inner {
    grid-template-columns: auto minmax(0, 1fr) !important;
}

.af-header-actions {
    padding: 14px 28px 14px 72px !important;
    gap: 18px !important;
    min-width: 0 !important;
}

.af-search,
.yd-ref-search {
    margin-left: 0 !important;
    max-width: 400px !important;
    flex: 1 1 auto !important;
}

.af-main-nav {
    border-top: 5px solid #000 !important;
    border-bottom: 2px solid #ff3130 !important;
    background: rgb(21, 21, 22) !important;
}

/* Single red under nav only — kill extra red lines */
.af-header::after,
.site-header.af-header::after {
    display: none !important;
    content: none !important;
    background: none !important;
    height: 0 !important;
}

.af-header,
.site-header.af-header {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.af-nav-menu .nav-link:hover,
.af-nav-menu .nav-link.active {
    box-shadow: none !important;
    border-bottom: 0 !important;
}

.af-nav-menu .nav-link::after,
.af-nav-menu .nav-link.active::after {
    display: none !important;
    content: none !important;
}

.home-reference-notice {
    display: none !important;
}

/* Güncel Bölümler tabs — reference match */
.home-episodes-section .home-ep-view-all {
    display: none !important;
}

.home-episodes-section .home-ep-toolbar {
    justify-content: flex-start !important;
}

.home-episodes-section .home-ep-tabs {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

.home-episodes-section .home-ep-tab,
.home-ep-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 35px !important;
    min-height: 35px !important;
    padding: 7px 16px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    opacity: 0.5 !important;
    box-shadow: none !important;
}

.home-episodes-section .home-ep-tab.is-active,
.home-ep-tab.is-active {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 0 !important;
}

.home-episodes-section .home-ep-tab:hover,
.home-ep-tab:hover {
    opacity: 0.85 !important;
}

/* Poster / movie cards — reference 1:1 */
.main-content .poster-card,
.yd-home-movie-grid .poster-card,
.content-grid .poster-card,
.content-grid-static .poster-card,
.content-grid-home-country .poster-card {
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    transform: none !important;
}

.main-content .poster-card:hover,
.yd-home-movie-grid .poster-card:hover,
.content-grid .poster-card:hover,
.content-grid-static .poster-card:hover,
.content-grid-home-country .poster-card:hover {
    transform: none !important;
}

.main-content .poster-card-image,
.yd-home-movie-grid .poster-card-image,
.content-grid .poster-card-image,
.content-grid-static .poster-card-image,
.content-grid-home-country .poster-card-image {
    position: relative !important;
    aspect-ratio: 63 / 91 !important;
    overflow: hidden !important;
    border: 1px solid #222 !important;
    border-radius: 4px !important;
    background: #0d0d0f !important;
    box-shadow: none !important;
}

.main-content .poster-card-image::before,
.yd-home-movie-grid .poster-card-image::before,
.content-grid .poster-card-image::before,
.content-grid-static .poster-card-image::before,
.content-grid-home-country .poster-card-image::before,
.main-content .poster-card-image::after,
.yd-home-movie-grid .poster-card-image::after,
.content-grid .poster-card-image::after,
.content-grid-static .poster-card-image::after,
.content-grid-home-country .poster-card-image::after {
    display: none !important;
    content: none !important;
}

.main-content .poster-card-image img,
.yd-home-movie-grid .poster-card-image img,
.content-grid .poster-card-image img,
.content-grid-static .poster-card-image img,
.content-grid-home-country .poster-card-image img,
.main-content .poster-placeholder,
.yd-home-movie-grid .poster-placeholder {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
    transition: none !important;
}

.main-content .poster-card:hover .poster-card-image img,
.yd-home-movie-grid .poster-card:hover .poster-card-image img {
    transform: none !important;
}

.main-content .poster-card-overlay,
.yd-home-movie-grid .poster-card-overlay,
.content-grid .poster-card-overlay,
.content-grid-static .poster-card-overlay,
.content-grid-home-country .poster-card-overlay,
.yd-ranked-section .poster-card-overlay,
.listing-page .poster-card-overlay,
body .poster-card-overlay {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 6px !important;
    min-height: 40px !important;
    height: auto !important;
    padding: 12px 8px 8px !important;
    margin: 0 !important;
    background: linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%) !important;
    border: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    pointer-events: none !important;
}

.main-content .poster-card-year,
.yd-home-movie-grid .poster-card-year,
.content-grid .poster-card-year,
.content-grid-static .poster-card-year,
.content-grid-home-country .poster-card-year,
.yd-ranked-section .poster-card-year,
.listing-page .poster-card-year,
body .poster-card-year {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.main-content .poster-card-rating,
.yd-home-movie-grid .poster-card-rating,
.content-grid .poster-card-rating,
.content-grid-static .poster-card-rating,
.content-grid-home-country .poster-card-rating,
.yd-ranked-section .poster-card-rating,
.listing-page .poster-card-rating,
body .poster-card-rating {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 0 0 auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.main-content .poster-card-star,
.yd-home-movie-grid .poster-card-star {
    color: rgb(245, 197, 24) !important;
    font-size: 12px !important;
}

.main-content .poster-card-meta,
.yd-home-movie-grid .poster-card-meta,
.content-grid .poster-card-meta,
.content-grid-static .poster-card-meta,
.content-grid-home-country .poster-card-meta {
    padding: 8px 0 0 !important;
}

.main-content .poster-card-title,
.yd-home-movie-grid .poster-card-title,
.content-grid .poster-card-title,
.content-grid-static .poster-card-title,
.content-grid-home-country .poster-card-title {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.main-content .poster-card-status,
.main-content .poster-card-ongoing,
.main-content .poster-card-new-episodes,
.yd-home-movie-grid .poster-card-status,
.yd-home-movie-grid .poster-card-ongoing,
.yd-home-movie-grid .poster-card-new-episodes {
    display: none !important;
}

.yd-home-movie-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
}

.content-grid-static:not(.yd-home-movie-grid),
.content-grid-home-country {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
}

@media (max-width: 1100px) {
    .yd-home-movie-grid,
    .content-grid-static:not(.yd-home-movie-grid),
    .content-grid-home-country {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .yd-home-movie-grid,
    .content-grid-static:not(.yd-home-movie-grid),
    .content-grid-home-country {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px 10px !important;
    }

    .home-episodes-section .home-ep-tabs {
        max-width: 100% !important;
    }
}

/* Episode country tabs: horizontal scroll on all sizes (esp. mobile) */
.home-episodes-section .home-ep-tabs,
.home-ep-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-left: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.home-episodes-section .home-ep-tabs::-webkit-scrollbar,
.home-ep-tabs::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
}

.home-episodes-section .home-ep-tab,
.home-ep-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

.home-episodes-section .home-ep-toolbar {
    flex-wrap: nowrap !important;
    min-width: 0 !important;
}

@media (max-width: 768px) {
    .home-episodes-section .home-ep-toolbar {
        display: block !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .home-episodes-section .home-ep-tabs {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        margin-top: 0 !important;
    }

    .home-episodes-section .home-ep-view-all {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .af-header-inner {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: 68px !important;
    }

    .af-header-brand {
        padding: 0 12px !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .af-header-actions {
        padding: 0 12px !important;
        width: auto !important;
        gap: 8px !important;
        display: contents !important;
    }

    .af-search,
    .yd-ref-search {
        display: none !important;
    }

    .af-main-nav {
        display: none !important;
        position: absolute !important;
        top: 68px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1250 !important;
        margin: 0 !important;
        padding: 66px 12px 12px !important;
        background: #0e0e0e !important;
        border-bottom: 0 !important;
        min-height: 0 !important;
    }

    .af-main-nav.open {
        display: block !important;
    }

    .af-main-nav.open .af-nav-menu {
        display: grid !important;
        gap: 4px !important;
        padding: 0 !important;
    }

    .af-main-nav.open .nav-item,
    .af-main-nav.open .nav-sub-mobile,
    .af-main-nav.open .nav-auth-mobile {
        display: block !important;
    }

    .af-main-nav.open .nav-sub-mobile-heading {
        display: block !important;
    }

    .hamburger-btn {
        display: inline-flex !important;
    }

    .user-section > .auth-buttons > .btn-login,
    .yd-ref-login {
        display: none !important;
    }

    .af-header:has(#mainNav.open) .af-search,
    .af-header:has(#mainNav.open) .yd-ref-search {
        display: block !important;
        position: fixed !important;
        top: 82px !important;
        left: 14px !important;
        right: 14px !important;
        z-index: 1300 !important;
        max-width: none !important;
        width: auto !important;
    }
}

/* ===== Logo / mobile tabs / slider cards polish ===== */
.af-header-brand,
.af-header-brand .site-logo,
.af-header-brand .logo-link {
    overflow: visible !important;
}

.yd-ranked-section .splide__arrow,
.dual-hero-slider .splide__arrow,
.yd-ranked-slider .splide__arrow {
    display: none !important;
}

.yd-ranked-section .popular-rank,
.yd-ranked-section .dual-slide-card,
.yd-ranked-section .dual-slide-poster,
.yd-ranked-section .dual-slide-footer {
    display: none !important;
}

.yd-ranked-section .dual-hero-wrap,
.yd-ranked-section .dual-hero-slider {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
}

.yd-ranked-section .dual-hero-slider .splide__track {
    overflow: hidden !important;
}

.yd-ranked-section .dual-hero-slider .splide__list,
.yd-ranked-section .dual-hero-slider .splide__slide {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.yd-ranked-section .splide__slide {
    padding: 0 !important;
}

.yd-ranked-section .splide__slide .poster-card {
    width: 100% !important;
}

.yd-ranked-section .section-header .view-all-btn {
    display: none !important;
}

/* Mobile episode tabs: full-width horizontal scroll, not clipped */
@media (max-width: 768px) {
    .home-episodes-section .home-ep-header {
        overflow: visible !important;
    }

    .home-episodes-section .home-ep-toolbar {
        display: block !important;
        width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .home-episodes-section .home-ep-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 2px 2px 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
        scroll-snap-type: x proximity !important;
    }

    .home-episodes-section .home-ep-tab {
        flex: 0 0 auto !important;
        scroll-snap-align: start !important;
    }

    .home-episodes-section > .container {
        overflow: visible !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .af-header-brand {
        min-width: 0 !important;
        max-width: calc(100% - 56px) !important;
        padding: 0 8px 0 12px !important;
    }

    .af-header-brand .site-logo-img,
    .af-header-brand .logo-name {
        max-width: 180px !important;
        max-height: none !important;
    }
}

/* ===== Final polish: logo gap, mobile tabs, slider ===== */

/* Desktop: keep search clearly clear of logo (ref ~124px gap) */
@media (min-width: 769px) {
    .af-header-brand {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 260px !important;
        max-width: none !important;
        padding-left: 8px !important;
        padding-right: 24px !important;
        overflow: visible !important;
        z-index: 2 !important;
    }

    .af-header-brand .site-logo,
    .af-header-brand .logo-link,
    .af-header-brand .site-logo-img,
    .af-header-brand .logo-name {
        max-width: none !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        object-fit: contain !important;
    }

    .af-header-actions {
        padding: 14px 28px 14px 120px !important;
        justify-content: flex-end !important;
    }

    .af-search,
    .yd-ref-search {
        flex: 0 1 380px !important;
        width: 100% !important;
        max-width: 380px !important;
        min-width: 240px !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }
}

/* Mobile Güncel Bölümler tabs — full-bleed horizontal scroll like reference */
@media (max-width: 768px) {
    .home-episodes-section > .container {
        overflow: visible !important;
    }

    .home-episodes-section .home-ep-header,
    .home-episodes-section .home-ep-toolbar {
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .home-episodes-section .home-ep-tabs,
    .home-ep-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding: 0 20px 8px !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
        scrollbar-width: none !important;
        touch-action: pan-x !important;
    }

    .home-episodes-section .home-ep-tabs::-webkit-scrollbar,
    .home-ep-tabs::-webkit-scrollbar {
        display: none !important;
        height: 0 !important;
    }

    .home-episodes-section .home-ep-tab,
    .home-ep-tab {
        flex: 0 0 auto !important;
        height: 35px !important;
        min-height: 35px !important;
        padding: 7px 16px !important;
        border: 0 !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }
}

/* Slider: same poster cards, no arrows — do NOT override slide width/flex (Splide owns it) */
.yd-ranked-section .dual-hero-wrap,
.yd-ranked-section .dual-hero-slider,
.yd-ranked-section .dual-hero-slider .splide__track {
    overflow: hidden !important;
    height: auto !important;
    max-height: none !important;
}

.yd-ranked-section .splide__arrow,
.yd-ranked-section .splide__arrow--prev,
.yd-ranked-section .splide__arrow--next,
.dual-hero-slider .splide__arrow {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

.yd-ranked-section .splide__slide .poster-card,
.yd-ranked-section .poster-card {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    transform: none !important;
}

.yd-ranked-section .poster-card-image {
    position: relative !important;
    aspect-ratio: 63 / 91 !important;
    overflow: hidden !important;
    border: 1px solid #222 !important;
    border-radius: 4px !important;
    background: #0d0d0f !important;
}

.yd-ranked-section .poster-card-image::before,
.yd-ranked-section .poster-card-image::after {
    display: none !important;
    content: none !important;
}

.yd-ranked-section .poster-card-image img,
.yd-ranked-section .poster-placeholder {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
}

.yd-ranked-section .poster-card-overlay {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 6px !important;
    min-height: 40px !important;
    height: auto !important;
    padding: 12px 8px 8px !important;
    background: linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%) !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.yd-ranked-section .poster-card-year,
.yd-ranked-section .poster-card-rating {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

.yd-ranked-section .poster-card-star {
    color: rgb(245, 197, 24) !important;
}

.yd-ranked-section .poster-card-meta {
    padding: 8px 0 0 !important;
}

.yd-ranked-section .poster-card-title {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.yd-ranked-section .poster-card-status,
.yd-ranked-section .poster-card-ongoing,
.yd-ranked-section .poster-card-new-episodes,
.yd-ranked-section .popular-rank {
    display: none !important;
}

/* ===== Popüler slider repair: never override Splide slide width/flex ===== */
.yd-ranked-section.dual-hero-section .dual-hero-wrap,
.yd-ranked-section.dual-hero-section .dual-hero-slider,
.yd-ranked-section.dual-hero-section .splide__track {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
}

.yd-ranked-section.dual-hero-section .splide__list,
.yd-ranked-section.dual-hero-section .splide__slide {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

@media (max-width: 760px) {
    .yd-ranked-section.dual-hero-section .dual-hero-wrap,
    .yd-ranked-section.dual-hero-section .dual-hero-slider,
    .yd-ranked-section.dual-hero-section .splide__track,
    .yd-ranked-section.dual-hero-section .splide__list,
    .yd-ranked-section.dual-hero-section .splide__slide {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}

/* ===== Poster card: year + IMDb ON the image (global, all pages) ===== */
.poster-card {
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
}

.poster-card-image {
    position: relative !important;
    aspect-ratio: 63 / 91 !important;
    overflow: hidden !important;
    border: 1px solid #222 !important;
    border-radius: 4px !important;
    background: #0d0d0f !important;
    box-shadow: none !important;
}

.poster-card-image::before,
.poster-card-image::after {
    display: none !important;
    content: none !important;
}

.poster-card-image img,
.poster-card-image .poster-placeholder {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
    margin: 0 !important;
}

.poster-card-overlay {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
    min-height: 40px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 8px 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%) !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.poster-card-year,
.poster-card-year-empty {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.poster-card-rating {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.poster-card-star {
    color: rgb(245, 197, 24) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    filter: none !important;
}

.poster-card-meta {
    padding: 8px 0 0 !important;
}

.poster-card-title {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* ===== Mobile hamburger menu (reference-friendly) ===== */
@media (max-width: 768px) {
    .user-section > .auth-buttons,
    .user-section > .auth-buttons > .btn-login,
    .user-section > .auth-buttons > .btn-register {
        display: none !important;
    }

    .hamburger-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        margin: 0 8px 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        box-shadow: none !important;
        z-index: 1260 !important;
    }

    .hamburger-btn span {
        display: block !important;
        width: 18px !important;
        height: 2px !important;
        margin: 3px auto !important;
        background: #fff !important;
        border-radius: 2px !important;
    }

    .af-header {
        position: relative !important;
        z-index: 1300 !important;
    }

    .af-main-nav {
        display: none !important;
        position: fixed !important;
        top: 68px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1250 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #0e0e0e !important;
        border: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        box-shadow: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .af-main-nav.open {
        display: block !important;
    }

    .af-main-nav.open .af-nav-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 64px 14px 28px !important;
        list-style: none !important;
    }

    .af-main-nav.open .nav-item,
    .af-main-nav.open .nav-sub-mobile,
    .af-main-nav.open .nav-auth-mobile {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .af-main-nav.open .af-nav-dropdown,
    .af-main-nav.open .nav-chevron {
        display: none !important;
    }

    .af-main-nav.open .nav-sub-mobile-heading {
        display: block !important;
        margin: 14px 0 4px !important;
        padding: 8px 4px 6px !important;
        color: #858991 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
    }

    .af-main-nav.open .nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        min-height: 44px !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #f4f4f4 !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
    }

    .af-main-nav.open .nav-link:hover,
    .af-main-nav.open .nav-link.active {
        background: rgba(255, 255, 255, 0.06) !important;
        color: #fff !important;
    }

    .af-main-nav.open .nav-link::before {
        display: none !important;
        content: none !important;
    }

    .af-main-nav.open .yd-nav-icon {
        display: block !important;
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
        color: currentColor !important;
        opacity: 0.95 !important;
    }

    .af-header:has(#mainNav.open) .af-search,
    .af-header:has(#mainNav.open) .yd-ref-search {
        display: block !important;
        position: fixed !important;
        top: 78px !important;
        left: 14px !important;
        right: 14px !important;
        z-index: 1260 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        flex: none !important;
    }

    .af-header:has(#mainNav.open) .yd-ref-search-wrap,
    .af-header:has(#mainNav.open) .af-search .search-wrapper {
        height: 42px !important;
        min-height: 42px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.12) !important;
    }

    .af-main-nav.open .nav-auth-mobile-login {
        margin-top: 16px !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .af-main-nav.open .nav-auth-mobile-register {
        margin-top: 8px !important;
    }

    .af-main-nav.open .nav-auth-mobile .btn,
    .af-main-nav.open .nav-auth-mobile .yd-mobile-auth-btn,
    .af-main-nav.open .nav-auth-mobile .btn-login,
    .af-main-nav.open .nav-auth-mobile .btn-register {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 44px !important;
        height: 44px !important;
        padding: 0 16px !important;
        border: 0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    .af-main-nav.open .nav-auth-mobile .btn-login,
    .af-main-nav.open .nav-auth-mobile .yd-ref-login {
        background: rgba(255, 255, 255, 0.85) !important;
        color: #000 !important;
    }

    .af-main-nav.open .nav-auth-mobile .btn-login .yd-plus-icon,
    .af-main-nav.open .nav-auth-mobile .yd-ref-login .yd-plus-icon {
        width: 16px !important;
        height: 16px !important;
        stroke: #000 !important;
        color: #000 !important;
        flex: 0 0 16px !important;
    }

    .af-main-nav.open .nav-auth-mobile .btn-register,
    .af-main-nav.open .nav-auth-mobile .yd-mobile-register-btn {
        background: #414346 !important;
        color: #fff !important;
    }

    .af-main-nav.open .nav-auth-mobile .btn-login:hover,
    .af-main-nav.open .nav-auth-mobile .yd-ref-login:hover {
        background: #fff !important;
        color: #000 !important;
    }

    .af-main-nav.open .nav-auth-mobile .btn-register:hover {
        background: rgba(255, 255, 255, 0.8) !important;
        color: #000 !important;
    }

    body:has(#mainNav.open) {
        overflow: hidden !important;
    }
}

@media (min-width: 769px) {
    .af-nav-menu .nav-auth-mobile,
    .af-nav-menu .nav-sub-mobile,
    .af-nav-menu .nav-sub-mobile-heading {
        display: none !important;
    }

    .user-section > .auth-buttons > .btn-register {
        display: inline-flex !important;
    }
}

/* ===== Footer SEO: compact like yabancidizi ===== */
.footer-seo-wrap {
    margin: 0 !important;
    padding: 28px 24px 0 !important;
}

.footer-seo-panel {
    position: relative !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.footer-seo-panel::before {
    display: none !important;
    content: none !important;
}

.footer-seo-scroll {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
}

.footer-seo-fade {
    display: none !important;
}

.footer-seo-content {
    color: #d8dbe0 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.footer-seo-content p {
    margin: 0 0 16px !important;
    color: #d8dbe0 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.footer-seo-content p:last-child {
    margin-bottom: 0 !important;
}

.footer-seo-content p:first-child strong,
.footer-seo-content p:first-child b,
.footer-seo-content strong,
.footer-seo-content b {
    display: inline !important;
    color: #fff !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    letter-spacing: normal !important;
}

.footer-seo-content a {
    color: #ff6b62 !important;
}

/* ===== Footer mobile layout ===== */
.af-footer .footer-logo,
.af-footer .footer-logo-dark,
.af-footer .footer-logo-light {
    max-width: 200px !important;
    height: auto !important;
    max-height: 48px !important;
    object-fit: contain !important;
}

.af-footer-brand .footer-about:empty {
    display: none !important;
}

@media (max-width: 768px) {
    .af-footer {
        margin-top: 24px !important;
        padding: 0 !important;
    }

    .footer-seo-wrap {
        padding: 18px 14px 0 !important;
    }

    .footer-seo-content,
    .footer-seo-content p {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .footer-seo-content p {
        margin-bottom: 14px !important;
    }

    .af-footer-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px 14px 8px !important;
        grid-template-columns: none !important;
    }

    .af-footer-brand {
        text-align: left !important;
    }

    .af-footer-logo,
    .af-footer .footer-brand-link {
        display: inline-flex !important;
        max-width: 100% !important;
    }

    .af-footer .footer-logo,
    .af-footer .footer-logo-dark,
    .af-footer .footer-logo-light {
        max-width: 160px !important;
        max-height: 40px !important;
    }

    .af-footer .footer-about {
        margin: 12px 0 0 !important;
        max-width: none !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
    }

    .af-footer-links {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px 10px !important;
        align-items: start !important;
    }

    .af-footer-links .footer-menu-col {
        grid-column: auto !important;
        min-width: 0 !important;
    }

    .af-footer .footer-menu-title {
        margin-bottom: 8px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .af-footer .footer-menu-nav {
        gap: 8px !important;
    }

    .af-footer .footer-menu-nav a {
        display: block !important;
        padding: 1px 0 !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        min-height: 0 !important;
        word-break: break-word !important;
    }

    .af-footer-bottom {
        padding: 14px 14px 22px !important;
        text-align: center !important;
    }

    .af-footer .footer-copyright {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }
}
/* ===== yabancidizi series + watch match ===== */
.yd-series-page {
    margin: 0 !important;
    padding: 0 !important;
}

.yd-series-hero {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #0b0c0e !important;
    aspect-ratio: 16 / 7 !important;
    min-height: 280px !important;
    max-height: 520px !important;
}

.yd-series-hero-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

.yd-series-hero-bg--empty {
    background: linear-gradient(135deg, #1a1c20, #0b0c0e) !important;
}

.yd-series-hero-shade {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(11,12,14,.15) 0%, rgba(11,12,14,.55) 45%, rgba(11,12,14,.96) 100%) !important;
    pointer-events: none !important;
}

.yd-series-hero-content {
    position: absolute !important;
    left: 20px !important;
    right: 20px !important;
    bottom: 20px !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    max-width: 720px !important;
}

.yd-series-title {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(28px, 4vw, 42px) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 2px 18px rgba(0,0,0,.55) !important;
}

.yd-series-hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

.yd-btn-last-ep {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 8px 18px !important;
    border-radius: 4px !important;
    background: #ff3130 !important;
    border: 1px solid #ff3130 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.yd-btn-last-ep:hover {
    filter: brightness(1.05) !important;
    color: #fff !important;
}

.yd-series-hero-actions .content-follow-btn {
    min-height: 40px !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    background: rgba(19,21,23,.72) !important;
    border: 1px solid #3a3c3e !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.yd-series-shell {
    padding-top: 18px !important;
    padding-bottom: 40px !important;
}

.yd-series-desc {
    margin: 0 0 22px !important;
    color: #d7d9dc !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    max-width: 920px !important;
}

.yd-series-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 280px !important;
    gap: 24px !important;
    align-items: start !important;
}

.yd-series-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
}

.yd-series-tab {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 16px !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    opacity: .7 !important;
    cursor: pointer !important;
}

.yd-series-tab.active {
    opacity: 1 !important;
}

.yd-series-tab.active::after {
    content: "" !important;
    position: absolute !important;
    left: 16px !important;
    right: 16px !important;
    bottom: -6px !important;
    height: 2px !important;
    background: #ff3130 !important;
}

.yd-series-panel {
    display: none !important;
}

.yd-series-panel.active {
    display: block !important;
}

.yd-season-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
}

.yd-season-pill.season-tab {
    min-height: 34px !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    border: 1px solid #3a3c3e !important;
    background: #131517 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.yd-season-pill.season-tab.active {
    border-color: #ff3130 !important;
    background: rgba(255, 49, 48, .16) !important;
    color: #fff !important;
}

.yd-ep-grid.episode-list {
    display: none !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.yd-ep-grid.episode-list.active {
    display: grid !important;
}

.yd-ep-card {
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    min-height: 72px !important;
    padding: 12px 18px !important;
    background: #131517 !important;
    border: 2px solid #3a3c3e !important;
}

.yd-ep-num {
    color: rgba(255,255,255,.6) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    flex: 0 0 auto !important;
}

.yd-ep-link {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-decoration: none !important;
    color: inherit !important;
}

.yd-ep-title {
    margin: 0 0 4px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.yd-ep-sub {
    color: rgba(255,255,255,.72) !important;
    font-size: 13px !important;
}

.yd-ep-check {
    width: 18px !important;
    height: 18px !important;
    margin-top: 4px !important;
    border: 2px solid #5a5c5e !important;
    border-radius: 3px !important;
    flex: 0 0 auto !important;
}

.yd-series-info-card {
    padding: 0 !important;
    background: transparent !important;
}

.yd-series-poster {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px !important;
    margin-bottom: 14px !important;
}

.yd-aside-title {
    margin: 0 0 6px !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.yd-aside-genres {
    margin: 0 0 14px !important;
    color: rgba(255,255,255,.75) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.yd-aside-scores {
    display: flex !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
}

.yd-aside-score {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    color: #fff !important;
}

.yd-aside-score strong {
    font-size: 18px !important;
    font-weight: 700 !important;
}

.yd-aside-score small {
    color: rgba(255,255,255,.55) !important;
    font-size: 11px !important;
}

.yd-aside-meta {
    display: grid !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
}

.yd-aside-meta > div {
    display: grid !important;
    grid-template-columns: 72px 1fr !important;
    gap: 8px !important;
    font-size: 13px !important;
}

.yd-aside-meta dt {
    color: rgba(255,255,255,.5) !important;
}

.yd-aside-meta dd {
    margin: 0 !important;
    color: #fff !important;
}

.yd-aside-trailer {
    width: 100% !important;
    min-height: 40px !important;
    border-radius: 4px !important;
    border: 1px solid #3a3c3e !important;
    background: #131517 !important;
    color: #fff !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.yd-aside-heading {
    margin: 18px 0 10px !important;
    color: #fff !important;
    font-size: 15px !important;
}

.yd-aside-cast-list {
    display: grid !important;
    gap: 8px !important;
}

.yd-aside-cast-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px !important;
}

.yd-aside-cast-item img,
.yd-aside-cast-item > span {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #23262b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px !important;
}

.yd-aside-cast-item em {
    font-style: normal !important;
}

.yd-series-empty {
    color: rgba(255,255,255,.65) !important;
    font-size: 14px !important;
}

.yd-watch-page .breadcrumb {
    display: none !important;
}

.yd-watch-head {
    padding: 16px 20px 10px !important;
}

.yd-watch-head .watch-title {
    margin: 0 0 8px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

.yd-watch-source-badge {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 26px !important;
    padding: 2px 10px !important;
    border-radius: 4px !important;
    background: #23262b !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.yd-watch-layout {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr) !important;
    gap: 18px !important;
    padding: 0 20px 20px !important;
}

.yd-ep-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    flex-wrap: nowrap !important;
    justify-content: stretch !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.yd-ep-nav .ep-nav-btn,
.yd-watched-btn {
    min-width: 120px !important;
    min-height: 38px !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
    background: #2a2d32 !important;
    border: 1px solid #3a3c3e !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.yd-watched-btn.is-active {
    background: rgba(255, 49, 48, .18) !important;
    border-color: #ff3130 !important;
}

.yd-watch-actions-inline,
.yd-watch-page .watch-actions-sidebar,
.yd-watch-page .watch-actions-card,
.yd-watch-page .watch-mobile-dock {
    display: none !important;
}

.yd-watch-series-card {
    display: block !important;
    padding: 14px !important;
    background: #131517 !important;
    border: 1px solid #2a2d32 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    color: inherit !important;
}

.yd-watch-series-top {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
}

.yd-watch-series-poster img {
    width: 72px !important;
    height: 108px !important;
    object-fit: cover !important;
    border-radius: 3px !important;
}

.yd-watch-series-copy .sidebar-title {
    margin: 0 0 6px !important;
    color: #fff !important;
    font-size: 16px !important;
}

.yd-watch-series-genre {
    margin: 0 0 10px !important;
    color: rgba(255,255,255,.7) !important;
    font-size: 13px !important;
}

.yd-watch-series-ratings {
    display: flex !important;
    gap: 12px !important;
    color: #fff !important;
    font-size: 15px !important;
}

.yd-watch-ep-box {
    margin-top: 14px !important;
    padding: 0 !important;
    background: transparent !important;
}

.yd-watch-ep-heading {
    margin: 0 0 12px !important;
    font-size: 20px !important;
    color: #fff !important;
}

.yd-watch-ep-list.episode-list {
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    max-height: 520px !important;
    overflow: auto !important;
}

.yd-watch-ep-list.episode-list.active {
    display: grid !important;
}

.yd-watch-ep-item.episode-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
    background: #131517 !important;
    border: 1px solid #2a2d32 !important;
    border-radius: 4px !important;
    color: #fff !important;
    text-decoration: none !important;
}

.yd-watch-ep-item .ep-title {
    font-size: 14px !important;
    font-weight: 600 !important;
}

.yd-watch-ep-item .ep-date {
    font-size: 12px !important;
    color: rgba(255,255,255,.55) !important;
}

.yd-watch-ep-item.is-current {
    border-color: #ff3130 !important;
}

.yd-watch-ep-item .ep-watching {
    color: #ff6b62 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.yd-watch-page .player-frame,
.yd-watch-page .player-empty,
.yd-watch-page .player-preparing,
.yd-watch-page .player-start-overlay {
    min-height: 330px !important;
}

.movie-detail-page.af-watch .watch-layout {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr) !important;
    gap: 18px !important;
    padding: 0 20px 20px !important;
}

.movie-detail-page .player-wrap {
    border-top: 2px solid #ff3130 !important;
}

@media (max-width: 992px) {
    .yd-series-layout,
    .yd-watch-layout,
    .movie-detail-page.af-watch .watch-layout {
        grid-template-columns: 1fr !important;
    }

    .yd-ep-grid.episode-list.active {
        grid-template-columns: 1fr 1fr !important;
    }

    .yd-series-hero {
        aspect-ratio: 16 / 10 !important;
        max-height: none !important;
    }
}

@media (max-width: 640px) {
    .yd-ep-grid.episode-list.active {
        grid-template-columns: 1fr !important;
    }

    .yd-series-hero-content {
        left: 14px !important;
        right: 14px !important;
        bottom: 14px !important;
    }

    .yd-series-tab {
        font-size: 18px !important;
        padding: 0 10px !important;
    }

    .yd-watch-layout {
        padding: 0 12px 16px !important;
    }

    .yd-watch-head {
        padding: 12px 12px 8px !important;
    }

    .yd-ep-nav .ep-nav-btn,
    .yd-watched-btn {
        flex: 1 1 calc(50% - 8px) !important;
        min-width: 0 !important;
    }
}
/* ===== series layout fix: image|detail then summary then episodes ===== */
.yd-series-page {
    margin: 0 !important;
    padding: 12px 0 28px !important;
    background: transparent !important;
}

.yd-series-shell {
    max-width: var(--ydm-shell, 1180px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 12px !important;
}

.yd-series-panel-box {
    background: #131517 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.yd-series-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr) !important;
    gap: 0 0 !important;
    align-items: start !important;
}

.yd-series-main {
    min-width: 0 !important;
}

.yd-series-hero {
    position: relative !important;
    width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #0b0c0e !important;
}

.yd-series-hero-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.yd-series-hero-content {
    left: 24px !important;
    right: 24px !important;
    bottom: 24px !important;
    max-width: 90% !important;
}

.yd-series-hero-actions .content-follow-btn {
    background: transparent !important;
    border: 1px solid #ff3130 !important;
    font-weight: 700 !important;
}

.yd-series-desc {
    margin: 0 !important;
    padding: 16px 20px 18px !important;
    max-width: none !important;
}

.yd-series-tabs {
    margin: 0 !important;
    padding: 0 12px 12px !important;
}

.yd-series-panel[data-yd-panel] {
    display: none !important;
    padding: 0 12px 20px !important;
}

.yd-series-panel[data-yd-panel].active {
    display: block !important;
}

.yd-series-aside {
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    min-height: 100% !important;
}

.yd-series-info-card {
    padding: 16px 18px 0 !important;
}

.yd-aside-heading {
    padding: 0 18px !important;
}

.yd-aside-cast-list {
    padding: 0 18px 16px !important;
}

@media (max-width: 992px) {
    .yd-series-layout {
        grid-template-columns: 1fr !important;
    }

    .yd-series-aside {
        order: 2 !important;
        border-top: 1px solid rgba(255,255,255,.06) !important;
    }

    .yd-series-main {
        order: 1 !important;
    }

    .yd-series-hero {
        aspect-ratio: 16 / 9 !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}

@media (max-width: 640px) {
    .yd-series-page {
        padding: 0 0 20px !important;
    }

    .yd-series-shell {
        padding: 0 !important;
    }

    .yd-series-panel-box {
        border-radius: 0 !important;
    }

    .yd-series-hero-content {
        left: 14px !important;
        right: 14px !important;
        bottom: 14px !important;
    }

    .yd-series-desc {
        padding: 14px !important;
    }
}
/* ===== series compact polish ===== */
.yd-series-page {
    padding: 10px 0 24px !important;
}

.yd-series-shell {
    padding: 0 10px !important;
}

.yd-series-panel-box {
    border-radius: 6px !important;
    background: #131517 !important;
}

.yd-series-layout {
    grid-template-columns: minmax(0, 1.85fr) minmax(240px, 0.9fr) !important;
}

.yd-series-hero {
    aspect-ratio: auto !important;
    height: 260px !important;
    max-height: 260px !important;
    min-height: 220px !important;
}

.yd-series-hero-bg {
    object-fit: cover !important;
    object-position: center 20% !important;
}

.yd-series-hero-shade {
    background: linear-gradient(180deg, rgba(19,21,23,.05) 0%, rgba(19,21,23,.35) 42%, rgba(19,21,23,.94) 100%) !important;
}

.yd-series-hero-content {
    left: 18px !important;
    right: 18px !important;
    bottom: 16px !important;
    gap: 12px !important;
    max-width: 85% !important;
}

.yd-series-title {
    font-size: clamp(22px, 2.4vw, 32px) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.yd-series-hero-actions {
    gap: 8px !important;
}

.yd-btn-last-ep {
    min-height: 36px !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
}

.yd-series-hero-actions .content-follow-btn {
    min-height: 36px !important;
    padding: 7px 14px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
}

.yd-series-desc {
    padding: 12px 16px 14px !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: #c8ccd1 !important;
}

.yd-series-tabs {
    gap: 4px !important;
    padding: 2px 10px 10px !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    margin-bottom: 12px !important;
}

.yd-series-tab {
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 0 12px 8px !important;
    opacity: .55 !important;
}

.yd-series-tab.active {
    opacity: 1 !important;
}

.yd-series-tab.active::after {
    left: 12px !important;
    right: 12px !important;
    bottom: 0 !important;
    height: 2px !important;
    background: #ff3130 !important;
}

.yd-series-panel[data-yd-panel] {
    padding: 0 12px 16px !important;
}

.yd-season-row {
    gap: 6px !important;
    margin-bottom: 10px !important;
}

.yd-season-pill.season-tab {
    min-height: 30px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    background: transparent !important;
    border: 1px solid #3a3c3e !important;
    color: #ddd !important;
}

.yd-season-pill.season-tab.active {
    background: #ff3130 !important;
    border-color: #ff3130 !important;
    color: #fff !important;
}

.yd-ep-grid.episode-list.active {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.yd-ep-card {
    min-height: 0 !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    background: #16181b !important;
    border: 1px solid #2e3134 !important;
    border-radius: 4px !important;
    transition: border-color .15s ease, background .15s ease !important;
}

.yd-ep-card:hover {
    border-color: #4a4e52 !important;
    background: #1a1d21 !important;
}

.yd-ep-num {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: rgba(255,255,255,.45) !important;
    line-height: 1.1 !important;
    min-width: 1.1em !important;
}

.yd-ep-title {
    margin: 0 0 2px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.yd-ep-sub {
    font-size: 12px !important;
    color: rgba(255,255,255,.58) !important;
}

.yd-ep-check {
    width: 15px !important;
    height: 15px !important;
    margin-top: 2px !important;
    border-width: 1.5px !important;
    border-color: #555 !important;
    border-radius: 3px !important;
    opacity: .7 !important;
}

.yd-series-aside {
    background: rgba(255,255,255,.03) !important;
}

.yd-series-info-card {
    padding: 14px 14px 0 !important;
}

.yd-series-poster {
    max-width: 180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 12px !important;
    border-radius: 4px !important;
}

.yd-aside-title {
    font-size: 17px !important;
    text-align: center !important;
}

.yd-aside-genres {
    font-size: 13px !important;
    text-align: center !important;
    margin-bottom: 12px !important;
}

.yd-aside-scores {
    justify-content: center !important;
    gap: 16px !important;
    margin-bottom: 12px !important;
}

.yd-aside-score strong {
    font-size: 16px !important;
}

.yd-aside-meta {
    gap: 6px !important;
    margin-bottom: 12px !important;
}

.yd-aside-meta > div {
    font-size: 12px !important;
    grid-template-columns: 64px 1fr !important;
}

.yd-aside-trailer {
    min-height: 36px !important;
    font-size: 13px !important;
    margin-bottom: 8px !important;
}

.yd-aside-heading {
    margin: 14px 0 8px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
}

.yd-aside-cast-list {
    padding: 0 14px 14px !important;
    gap: 6px !important;
}

.yd-aside-cast-item {
    font-size: 12px !important;
}

.yd-aside-cast-item img,
.yd-aside-cast-item > span {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
}

/* Comments inside series page */
.yd-series-page .comments-section {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.yd-series-page .comments-section .detail-box-title,
.yd-series-page .comments-title {
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    border: 0 !important;
}

.yd-series-page .comment-login-prompt {
    padding: 14px !important;
    background: #16181b !important;
    border: 1px solid #2e3134 !important;
    border-radius: 4px !important;
}

.yd-series-page .comment-login-prompt p {
    margin: 0 0 10px !important;
    color: #b8bcc2 !important;
    font-size: 13px !important;
}

.yd-series-page .comment-form {
    padding: 14px !important;
    background: #16181b !important;
    border: 1px solid #2e3134 !important;
    border-radius: 4px !important;
}

.yd-series-page .comment-form textarea,
.yd-series-page .comment-form input[type="text"] {
    background: #0f1113 !important;
    border: 1px solid #2e3134 !important;
    border-radius: 4px !important;
    color: #fff !important;
    font-size: 13px !important;
}

.yd-series-page .comment-form .btn-primary {
    min-height: 36px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    background: #ff3130 !important;
}

.yd-series-page .comment-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    background: transparent !important;
}

@media (max-width: 992px) {
    .yd-series-hero {
        height: 220px !important;
        max-height: 220px !important;
        min-height: 180px !important;
    }

    .yd-series-title {
        font-size: 24px !important;
    }

    .yd-ep-grid.episode-list.active {
        grid-template-columns: 1fr 1fr !important;
    }

    .yd-series-poster {
        max-width: 140px !important;
    }
}

@media (max-width: 640px) {
    .yd-series-page {
        padding: 0 0 16px !important;
    }

    .yd-series-shell {
        padding: 0 !important;
    }

    .yd-series-panel-box {
        border-radius: 0 !important;
    }

    .yd-series-hero {
        height: 190px !important;
        max-height: 190px !important;
        min-height: 160px !important;
    }

    .yd-series-title {
        font-size: 20px !important;
    }

    .yd-series-hero-content {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        gap: 8px !important;
    }

    .yd-series-tab {
        font-size: 15px !important;
        padding: 0 8px 6px !important;
    }

    .yd-ep-grid.episode-list.active {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    .yd-ep-card {
        padding: 10px 12px !important;
    }
}
/* ===== movie + watch polish ===== */
.yd-aside-genre-link {
    color: rgba(255,255,255,.8) !important;
    text-decoration: none !important;
}

.yd-aside-genre-link:hover {
    color: #ff6b62 !important;
    text-decoration: underline !important;
}

.yd-aside-genres-sep {
    color: rgba(255,255,255,.45) !important;
}

/* Episode watch */
.yd-watch-page {
    padding: 10px 0 28px !important;
    background: transparent !important;
}

.yd-watch-page > .container {
    max-width: var(--ydm-shell, 1180px) !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    background: #131517 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.yd-watch-head {
    padding: 14px 16px 8px !important;
}

.yd-watch-head .watch-title {
    margin: 0 0 8px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.yd-watch-source-badge {
    display: inline-flex !important;
    min-height: 24px !important;
    padding: 2px 10px !important;
    border-radius: 4px !important;
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.yd-watch-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr) !important;
    gap: 16px !important;
    padding: 0 16px 18px !important;
    background: transparent !important;
}

.yd-watch-page .player-wrap {
    border-radius: 4px !important;
    border: 0 !important;
    border-top: 2px solid #ff3130 !important;
    background: #0b0c0e !important;
    padding: 0 !important;
}

.yd-watch-page .player-frame,
.yd-watch-page .player-empty,
.yd-watch-page .player-preparing,
.yd-watch-page .player-start-overlay {
    min-height: 360px !important;
    border-radius: 0 0 4px 4px !important;
}

.yd-ep-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
    justify-content: stretch !important;
}

.yd-ep-nav .ep-nav-btn,
.yd-watched-btn {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 36px !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    background: #2a2d32 !important;
    border: 1px solid #3a3c3e !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.yd-watched-btn.is-active {
    background: rgba(255,49,48,.18) !important;
    border-color: #ff3130 !important;
}

.yd-watch-page .comments-section {
    margin-top: 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.yd-watch-page .watch-sidebar {
    gap: 12px !important;
    padding: 0 !important;
}

.yd-watch-series-card {
    display: block !important;
    padding: 12px !important;
    background: rgba(255,255,255,.04) !important;
    border: 1px solid #2a2d32 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    color: inherit !important;
}

.yd-watch-series-top {
    display: flex !important;
    gap: 12px !important;
}

.yd-watch-series-poster img {
    width: 72px !important;
    height: 108px !important;
    object-fit: cover !important;
    border-radius: 3px !important;
}

.yd-watch-series-copy .sidebar-title {
    margin: 0 0 6px !important;
    color: #fff !important;
    font-size: 15px !important;
}

.yd-watch-series-genre {
    margin: 0 0 8px !important;
    color: rgba(255,255,255,.7) !important;
    font-size: 12px !important;
}

.yd-watch-series-ratings {
    display: flex !important;
    gap: 12px !important;
    color: #fff !important;
    font-size: 14px !important;
}

.yd-watch-ep-heading {
    font-size: 17px !important;
    margin: 0 0 10px !important;
}

.yd-watch-ep-item.episode-item {
    padding: 10px 12px !important;
    background: #16181b !important;
    border: 1px solid #2e3134 !important;
    border-radius: 4px !important;
}

.yd-watch-ep-item.is-current {
    border-color: #ff3130 !important;
}

.yd-watch-page .watch-sidebar-mobile {
    display: none !important;
}

@media (max-width: 992px) {
    .yd-watch-layout {
        grid-template-columns: 1fr !important;
    }

    .yd-watch-page .watch-sidebar {
        display: none !important;
    }

    .yd-watch-page .watch-sidebar-mobile {
        display: block !important;
        margin-top: 14px !important;
    }

    .yd-watch-page .player-frame,
    .yd-watch-page .player-empty,
    .yd-watch-page .player-preparing,
    .yd-watch-page .player-start-overlay {
        min-height: 240px !important;
    }
}

/* Movie page */
.yd-movie-page {
    padding: 10px 0 28px !important;
    background: transparent !important;
}

.yd-movie-shell {
    max-width: var(--ydm-shell, 1180px) !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
}

.yd-movie-panel {
    background: #131517 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.yd-movie-head {
    padding: 16px 16px 8px !important;
}

.yd-movie-title {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-size: clamp(22px, 2.6vw, 30px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.yd-movie-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    color: rgba(255,255,255,.65) !important;
    font-size: 13px !important;
}

.yd-movie-dot {
    opacity: .5 !important;
}

.yd-movie-tabs {
    display: inline-flex !important;
    gap: 4px !important;
    margin: 0 16px 12px !important;
    padding: 4px !important;
    background: rgba(255,255,255,.08) !important;
    border-radius: 6px !important;
}

.yd-movie-tab {
    min-height: 34px !important;
    padding: 6px 14px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: rgba(255,255,255,.7) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.yd-movie-tab.active {
    background: #ff3130 !important;
    color: #fff !important;
}

.yd-movie-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr) !important;
    gap: 16px !important;
    padding: 0 16px 18px !important;
}

.yd-movie-panel-body {
    display: none !important;
}

.yd-movie-panel-body.active {
    display: block !important;
}

.yd-movie-page .player-wrap {
    border: 0 !important;
    border-top: 2px solid #ff3130 !important;
    border-radius: 4px !important;
    background: #0b0c0e !important;
    padding: 0 !important;
}

.yd-movie-page .player-frame,
.yd-movie-page .player-empty,
.yd-movie-trailer-frame {
    min-height: 380px !important;
    border-radius: 0 0 4px 4px !important;
    background: #000 !important;
}

.yd-movie-trailer-frame {
    position: relative !important;
    overflow: hidden !important;
}

.yd-movie-trailer-frame iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

.yd-movie-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.yd-movie-action-btn,
.yd-movie-actions .content-follow-btn {
    min-height: 36px !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
    background: #2a2d32 !important;
    border: 1px solid #3a3c3e !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.yd-movie-action-btn.is-active,
.yd-movie-actions .content-follow-btn.is-active {
    background: rgba(255,49,48,.18) !important;
    border-color: #ff3130 !important;
}

.yd-movie-section-title {
    margin: 18px 0 10px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.yd-movie-cast-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.yd-movie-cast-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    text-align: center !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px !important;
}

.yd-movie-cast-item img,
.yd-movie-cast-item > span {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #23262b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.yd-movie-cast-item em {
    font-style: normal !important;
    line-height: 1.3 !important;
}

.yd-movie-page .comments-section {
    margin-top: 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.yd-movie-aside {
    min-width: 0 !important;
}

.yd-movie-info-card {
    padding: 12px !important;
    background: rgba(255,255,255,.04) !important;
    border: 1px solid #2a2d32 !important;
    border-radius: 4px !important;
}

.yd-movie-poster {
    display: block !important;
    width: 100% !important;
    max-width: 200px !important;
    margin: 0 auto 12px !important;
    border-radius: 4px !important;
}

.yd-movie-aside-title {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.yd-movie-aside-title span {
    margin-left: 4px !important;
    color: rgba(255,255,255,.55) !important;
    font-weight: 500 !important;
}

.yd-movie-aside-scores {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-bottom: 12px !important;
}

.yd-movie-score {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    color: #fff !important;
}

.yd-movie-score strong {
    font-size: 18px !important;
}

.yd-movie-score small {
    color: rgba(255,255,255,.55) !important;
    font-size: 11px !important;
}

.yd-movie-aside-meta {
    display: grid !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
}

.yd-movie-aside-meta > div {
    display: grid !important;
    grid-template-columns: 88px 1fr !important;
    gap: 8px !important;
    font-size: 12px !important;
}

.yd-movie-aside-meta dt {
    color: rgba(255,255,255,.5) !important;
}

.yd-movie-aside-meta dd {
    margin: 0 !important;
    color: #fff !important;
}

.yd-movie-genre-links a {
    color: #ff6b62 !important;
    text-decoration: none !important;
}

.yd-movie-genre-links a:hover {
    text-decoration: underline !important;
}

.yd-movie-aside-desc {
    margin: 0 !important;
    color: #c8ccd1 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.yd-movie-similar {
    margin-top: 14px !important;
}

.yd-movie-similar-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}

.yd-movie-page .breadcrumb,
.yd-movie-page .watch-mobile-dock,
.yd-movie-page .movie-detail-hero,
.yd-movie-page .watch-actions-card {
    display: none !important;
}

@media (max-width: 992px) {
    .yd-movie-layout {
        grid-template-columns: 1fr !important;
    }

    .yd-movie-cast-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .yd-movie-page .player-frame,
    .yd-movie-page .player-empty,
    .yd-movie-trailer-frame {
        min-height: 240px !important;
    }
}

@media (max-width: 640px) {
    .yd-movie-shell,
    .yd-watch-page > .container {
        padding: 0 !important;
    }

    .yd-movie-panel,
    .yd-watch-page > .container {
        border-radius: 0 !important;
    }

    .yd-movie-cast-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .yd-movie-similar-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Episode Altyazı badge on player */
.player-wrap.has-source-badge {
    position: relative !important;
}

.yd-player-source-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 6 !important;
    padding: 4px 8px !important;
    border-radius: 3px !important;
    background: rgba(0, 0, 0, .78) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
    pointer-events: none !important;
}

.yd-watch-page .yd-watch-source-row {
    display: none !important;
}

.yd-ep-nav .ep-nav-btn,
.yd-watched-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 100% !important;
}

/* Movie action row closer to reference */
.yd-movie-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.yd-movie-actions .content-follow-btn {
    margin: 0 !important;
}

.yd-movie-page.is-cinema .yd-movie-aside,
.yd-movie-page.is-cinema .yd-movie-cast,
.yd-movie-page.is-cinema .comments-section,
.yd-movie-page.is-cinema .yd-movie-similar {
    display: none !important;
}

.yd-movie-page.is-cinema .yd-movie-layout {
    grid-template-columns: 1fr !important;
}

.yd-movie-page.is-cinema .yd-movie-page .player-frame,
.yd-movie-page.is-cinema .player-frame,
.yd-movie-page.is-cinema .player-empty,
.yd-movie-page.is-cinema .yd-movie-trailer-frame {
    min-height: min(72vh, 720px) !important;
}

.yd-cinema-toggle.is-active {
    background: rgba(255, 49, 48, .18) !important;
    border-color: #ff3130 !important;
}

.yd-watch-ep-item .ep-watching {
    display: block !important;
    margin-top: 4px !important;
    color: #ff3130 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.yd-aside-genre-link {
    color: inherit !important;
    text-decoration: none !important;
}

.yd-aside-genre-link:hover {
    color: #ff3130 !important;
    text-decoration: underline !important;
}

/* ===== Logo smaller ===== */
.af-header-brand .site-logo,
.af-header-brand .logo-link {
    max-width: 180px !important;
}

.af-header-brand .site-logo-img,
.af-header-brand .logo-name {
    max-width: 180px !important;
    max-height: 42px !important;
    height: auto !important;
    width: auto !important;
}

.af-header-brand .logo-mark {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
}

.af-header-brand .logo-name {
    font-size: 16px !important;
}

@media (min-width: 769px) {
    .af-header-brand {
        min-width: 0 !important;
        max-width: 200px !important;
    }

    .af-header-brand .site-logo,
    .af-header-brand .logo-link,
    .af-header-brand .site-logo-img,
    .af-header-brand .logo-name {
        max-width: 180px !important;
        max-height: 42px !important;
    }
}

@media (max-width: 768px) {
    .af-header-brand .site-logo-img,
    .af-header-brand .logo-name {
        max-width: 140px !important;
        max-height: 34px !important;
    }
}

/* ===== Series summary scroll + cast ===== */
.yd-series-summary {
    margin: 0 0 14px !important;
    padding: 0 4px !important;
}

.yd-series-summary-title {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.yd-series-desc-scroll {
    max-height: 7.8em !important; /* ~2 paragraf görünümü */
    overflow-y: auto !important;
    padding-right: 8px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #ff3130 transparent !important;
}

.yd-series-desc-scroll::-webkit-scrollbar {
    width: 4px !important;
}

.yd-series-desc-scroll::-webkit-scrollbar-thumb {
    background: #ff3130 !important;
    border-radius: 4px !important;
}

.yd-series-desc-scroll .yd-series-desc {
    margin: 0 !important;
    color: rgba(255,255,255,.78) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
}

.yd-aside-cast.is-scrollable .yd-aside-cast-list {
    max-height: 248px !important; /* ~4 oyuncu */
    overflow-y: auto !important;
    padding-right: 6px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #ff3130 transparent !important;
}

.yd-aside-cast.is-scrollable .yd-aside-cast-list::-webkit-scrollbar {
    width: 4px !important;
}

.yd-aside-cast.is-scrollable .yd-aside-cast-list::-webkit-scrollbar-thumb {
    background: #ff3130 !important;
    border-radius: 4px !important;
}

.yd-aside-cast-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.yd-aside-cast-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.yd-aside-cast-item img,
.yd-aside-cast-item > span {
    width: 52px !important;
    height: 52px !important;
    flex: 0 0 52px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #2a2d32 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.yd-aside-cast-item em {
    font-style: normal !important;
    line-height: 1.25 !important;
}

/* ===== Status row (episode + movie) ===== */
.yd-ep-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}

.yd-ep-nav .ep-nav-btn {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    justify-content: center !important;
}

.yd-ep-nav .ep-nav-disabled {
    opacity: .45 !important;
    pointer-events: none !important;
    cursor: default !important;
}

.yd-status-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 8px !important;
}

.yd-status-btn {
    min-height: 38px !important;
    padding: 8px 10px !important;
    border-radius: 4px !important;
    border: 1px solid #3a3c3e !important;
    background: #2a2d32 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.yd-status-btn.is-active,
.yd-status-btn.watch-status-completed.is-active,
.yd-status-btn.watch-status-watch_later.is-active,
.yd-status-btn.watch-status-on_hold.is-active {
    background: rgba(255, 49, 48, .2) !important;
    border-color: #ff3130 !important;
    color: #fff !important;
}

.yd-movie-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
}

.yd-movie-actions .yd-status-row {
    margin-top: 0 !important;
    width: 100% !important;
}

.yd-movie-actions .content-follow-btn,
.yd-movie-actions .yd-cinema-toggle {
    width: 100% !important;
    justify-content: center !important;
}

.player-wrap.is-autostart .player-start-overlay {
    display: none !important;
}

/* ===== Mobile: series / episode / movie ===== */
@media (max-width: 992px) {
    .yd-series-layout,
    .yd-movie-layout,
    .yd-watch-layout {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Dizi: hero → özet → bölümler; aside en sonda */
    .yd-series-main {
        order: 1 !important;
    }

    .yd-series-aside {
        order: 2 !important;
    }

    .yd-movie-main {
        order: 1 !important;
    }

    .yd-movie-aside {
        order: 2 !important;
    }

    .yd-series-hero {
        min-height: 180px !important;
        max-height: 220px !important;
    }

    .yd-series-poster,
    .yd-movie-poster {
        max-width: 160px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    .yd-series-info-card,
    .yd-movie-info-card {
        text-align: center !important;
    }

    .yd-aside-genres,
    .yd-aside-scores,
    .yd-aside-meta,
    .yd-movie-aside-scores,
    .yd-movie-aside-meta {
        justify-content: center !important;
        text-align: left !important;
    }

    .yd-aside-cast-list {
        max-height: 220px !important;
        overflow-y: auto !important;
    }

    .yd-watch-page .watch-sidebar {
        display: none !important;
    }

    .yd-watch-page .watch-sidebar-mobile,
    .watch-page-episode .watch-sidebar-mobile {
        display: block !important;
        margin-top: 12px !important;
    }

    .yd-watch-page .player-frame,
    .yd-watch-page .player-empty,
    .yd-movie-page .player-frame,
    .yd-movie-page .player-empty,
    .yd-movie-trailer-frame {
        min-height: 220px !important;
        aspect-ratio: 16 / 9 !important;
    }

    .yd-status-btn {
        font-size: 11px !important;
        padding: 8px 6px !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    /* Önceki / Sonraki her zaman yan yana */
    .yd-watch-page .episode-nav,
    .yd-watch-page .yd-ep-nav,
    .watch-page-episode .episode-nav,
    .watch-page-episode .episode-nav.yd-ep-nav,
    .watch-page-episode .yd-ep-nav {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-auto-flow: column !important;
        gap: 8px !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .yd-watch-page .episode-nav .ep-nav-btn,
    .yd-watch-page .yd-ep-nav .ep-nav-btn,
    .watch-page-episode .episode-nav .ep-nav-btn,
    .watch-page-episode .yd-ep-nav .ep-nav-btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 0 !important;
        font-size: 13px !important;
        grid-column: auto !important;
    }

    .yd-movie-cast-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .yd-series-shell,
    .yd-movie-shell,
    .yd-watch-page > .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 640px) {
    .yd-series-summary-title {
        font-size: 15px !important;
    }

    .yd-series-desc-scroll {
        max-height: 6.2em !important;
    }

    .yd-status-row {
        gap: 6px !important;
    }

    .yd-movie-cast-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .yd-watch-series-top {
        align-items: flex-start !important;
    }

    .yd-aside-cast-item img,
    .yd-aside-cast-item > span {
        width: 46px !important;
        height: 46px !important;
        flex-basis: 46px !important;
    }
}

/* ===== FINAL mobile order + nav side-by-side (overrides older stacks) ===== */
@media (max-width: 992px) {
    .yd-series-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .yd-series-main { order: 1 !important; }
    .yd-series-aside { order: 2 !important; }

    .yd-movie-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .yd-movie-main { order: 1 !important; }
    .yd-movie-aside { order: 2 !important; }

    .yd-series-hero {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        min-height: 180px !important;
        max-height: 240px !important;
        height: auto !important;
    }

    .yd-series-summary {
        margin: 12px 12px 8px !important;
        padding: 0 !important;
    }

    .yd-series-tabs,
    .yd-series-panel {
        margin-left: 12px !important;
        margin-right: 12px !important;
    }

    .watch-page-episode .episode-nav,
    .watch-page-episode .episode-nav.yd-ep-nav,
    .yd-watch-page .episode-nav.yd-ep-nav,
    .yd-watch-page .yd-ep-nav {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .watch-page-episode .episode-nav > .ep-nav-btn,
    .yd-watch-page .yd-ep-nav > .ep-nav-btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ===== Logo slightly lower + Popular Diziler polish ===== */
.af-header-brand {
    display: flex !important;
    align-items: flex-end !important;
    padding-top: 20px !important;
    padding-bottom: 10px !important;
}

.af-header-brand .site-logo,
.af-header-brand .logo-link {
    display: inline-flex !important;
    align-items: center !important;
    transform: translateY(3px) !important;
}

.af-header-actions {
    align-items: center !important;
    padding-top: 16px !important;
    padding-bottom: 12px !important;
}

.yd-ref-popular-section {
    margin-top: 8px !important;
    margin-bottom: 28px !important;
    padding-top: 0 !important;
}

.yd-ref-popular-section > .container {
    padding-top: 0 !important;
}

.yd-popular-head {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.yd-popular-title {
    margin: 0 !important;
    flex: 0 0 auto !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.yd-popular-line {
    flex: 1 1 auto !important;
    height: 1px !important;
    min-width: 40px !important;
    background: linear-gradient(90deg, rgba(255, 49, 48, 0.85) 0%, rgba(255, 255, 255, 0.12) 55%, transparent 100%) !important;
    border-radius: 1px !important;
}

.yd-ref-popular-section .dual-hero-wrap {
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.yd-ref-popular-section .section-header {
    display: none !important;
}

.af-nav-menu .yd-nav-icon {
    width: 20px !important;
    height: 20px !important;
    opacity: 0.92 !important;
}

@media (max-width: 768px) {
    .af-header-brand {
        padding-top: 14px !important;
        padding-bottom: 8px !important;
        align-items: center !important;
    }

    .af-header-brand .site-logo,
    .af-header-brand .logo-link {
        transform: translateY(2px) !important;
    }

    .yd-popular-title {
        font-size: 16px !important;
    }

    .yd-popular-head {
        gap: 10px !important;
        margin-bottom: 10px !important;
    }
}

/* ===== Summary / trends / episode scroll polish ===== */
.yd-popular-head,
.yd-popular-title,
.yd-popular-line {
    display: none !important;
}

.yd-ref-popular-section {
    margin-top: 4px !important;
    margin-bottom: 22px !important;
}

.yd-series-summary,
.yd-movie-summary {
    margin: 12px 12px 16px !important;
    padding: 14px 14px 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 6px !important;
}

.yd-series-summary-title,
.yd-movie-summary-title {
    margin: 0 0 10px !important;
    padding: 0 0 8px !important;
    border-bottom: 1px solid rgba(255, 49, 48, 0.35) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.yd-series-desc-scroll,
.yd-movie-desc-scroll {
    max-height: 7.8em !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #ff3130 rgba(255, 255, 255, 0.06) !important;
}

.yd-series-desc-scroll::-webkit-scrollbar,
.yd-movie-desc-scroll::-webkit-scrollbar,
.yd-watch-ep-list.episode-list::-webkit-scrollbar,
.watch-page-episode .watch-sidebar-episodes .episode-list.active::-webkit-scrollbar,
.yd-aside-cast.is-scrollable .yd-aside-cast-list::-webkit-scrollbar {
    width: 5px !important;
}

.yd-series-desc-scroll::-webkit-scrollbar-track,
.yd-movie-desc-scroll::-webkit-scrollbar-track,
.yd-watch-ep-list.episode-list::-webkit-scrollbar-track,
.watch-page-episode .watch-sidebar-episodes .episode-list.active::-webkit-scrollbar-track,
.yd-aside-cast.is-scrollable .yd-aside-cast-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 999px !important;
}

.yd-series-desc-scroll::-webkit-scrollbar-thumb,
.yd-movie-desc-scroll::-webkit-scrollbar-thumb,
.yd-watch-ep-list.episode-list::-webkit-scrollbar-thumb,
.watch-page-episode .watch-sidebar-episodes .episode-list.active::-webkit-scrollbar-thumb,
.yd-aside-cast.is-scrollable .yd-aside-cast-list::-webkit-scrollbar-thumb {
    background: #ff3130 !important;
    border-radius: 999px !important;
}

.yd-series-desc,
.yd-movie-desc {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.yd-movie-aside-desc {
    display: none !important;
}

/* Trends: #1 same size as others */
.yd-trend-card--lead {
    grid-column: auto !important;
    grid-row: auto !important;
}

.yd-trend-card--lead .yd-trend-info strong {
    font-size: inherit !important;
}

.yd-watch-ep-list.episode-list,
.watch-page-episode .watch-sidebar-episodes .episode-list.active {
    scrollbar-width: thin !important;
    scrollbar-color: #ff3130 rgba(255, 255, 255, 0.06) !important;
    padding-right: 6px !important;
}

@media (max-width: 992px) {
    .yd-series-summary,
    .yd-movie-summary {
        margin: 12px 10px 14px !important;
    }

    .yd-trend-card--lead {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

.yd-trends-hero,
.trends-hero {
    display: none !important;
}

/* Mobile header: logo | avatar | hamburger on one row */
@media (max-width: 768px) {
    .af-header {
        min-height: 56px !important;
    }

    .af-header-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        grid-template-rows: 56px !important;
        align-items: center !important;
        gap: 0 6px !important;
        min-height: 56px !important;
        padding: 0 10px !important;
    }

    .af-header-actions {
        display: contents !important;
    }

    .af-header-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
        align-self: center !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .af-header-brand .site-logo,
    .af-header-brand .logo-link {
        transform: none !important;
        max-height: 34px !important;
    }

    .af-header-brand .site-logo-img {
        max-height: 34px !important;
    }

    .user-section {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        align-self: center !important;
        order: unset !important;
        margin: 0 !important;
        z-index: 2 !important;
    }

    .hamburger-btn {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        align-self: center !important;
        order: unset !important;
        margin: 0 !important;
    }

    .af-search.yd-ref-search,
    .af-header-actions .af-search {
        order: unset !important;
    }
}

