/* ============================================================
   RunAsian — Main Stylesheet v3.0
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
    background: #111;
    color: #ccc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
a { color: #ccc; text-decoration: none; }
a:hover { color: #fff; text-decoration: none; }
h1,h2,h3,h4,h5,h6 { color: #fff; }
img { max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ── Transitions ─────────────────────────────────────────────── */
#search,
#sidebar_menu,
.film-poster-ahref i,
.film-poster-ahref:after,
.film-poster-ahref:before,
.film-poster-img,
.search-content input.search-input {
    transition: all .4s ease 0s;
}

/* ── Wrapper & Layout ────────────────────────────────────────── */
#wrapper { position: relative; min-height: 100vh; }
#main-wrapper { padding-top: 65px; }

/* ── Header ──────────────────────────────────────────────────── */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99;
    height: 65px;
    background: #111;
    border-bottom: 1px solid #1c1c1c;
}
#header .container {
    display: flex;
    align-items: center;
    height: 65px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Mobile menu button */
#mobile_menu {
    display: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    margin-right: 12px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

/* Logo */
#logo {
    float: left;
    margin-right: 25px;
    height: 65px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
#logo img { max-height: 42px; width: auto; }
#logo span { font-size: 22px; font-weight: 700; color: #ffe400; letter-spacing: 2px; }

/* Desktop Nav */
#header_menu {
    height: 65px;
    margin: 0;
    float: left;
    flex: 1;
}
#header_menu ul.header_menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}
#header_menu ul.header_menu-list .nav-item {
    display: inline-block;
    margin: 0 2px;
    position: relative;
}
#header_menu ul.header_menu-list .nav-item > a {
    height: 65px;
    line-height: 65px;
    margin: 0;
    padding: 0 16px;
    color: #fff;
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}
#header_menu ul.header_menu-list .nav-item:hover > a { color: #ffe400; }
#header_menu ul.header_menu-list .nav-item.active > a { position: relative; }
#header_menu ul.header_menu-list .nav-item.active > a::before {
    content: "";
    width: 100%;
    height: 3px;
    background: #ffe400;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Dropdown submenu (Movies/genre) */
#header_menu .header_menu-sub {
    position: absolute;
    top: 65px;
    left: 0;
    width: 650px;
    background: #222;
    z-index: 200;
    box-shadow: 0 8px 30px rgba(0,0,0,.6);
    display: none;
    border-top: 3px solid #ffe400;
    border-radius: 0 0 6px 6px;
}
#header_menu .nav-item:hover .header_menu-sub { display: block; }
#header_menu .header_menu-sub ul.sub-menu {
    padding: 12px;
    text-align: left;
    list-style: none;
    overflow: hidden;
    margin: 0 -1%;
}
#header_menu .header_menu-sub ul.sub-menu li {
    width: 23%;
    float: left;
    margin: 0 1%;
    list-style: none;
}
#header_menu .header_menu-sub ul.sub-menu li a {
    height: 30px;
    color: #bbb;
    line-height: 30px;
    padding: 0 10px;
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 3px;
}
#header_menu .header_menu-sub ul.sub-menu li a:hover {
    background: #ffe400;
    color: #111 !important;
}

/* ── Trending mega-menu dropdown ─────────────────────────────── */
.hm-trending-sub {
    width: 560px !important;
    left: auto !important;
    right: 0;
}
.hm-tsub-inner {
    display: flex;
    padding: 18px;
    gap: 20px;
}
.hm-tsub-col { flex: 1; min-width: 0; }
.hm-tsub-heading {
    color: #ffe400;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}
.hm-tsub-col ul { list-style: none; padding: 0; margin: 0; }
.hm-tsub-col ul li { margin-bottom: 2px; }
.hm-tsub-col ul li a {
    display: block;
    padding: 6px 10px;
    color: #bbb;
    font-size: 13px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hm-tsub-col ul li a:hover {
    background: #ffe400;
    color: #111 !important;
}

/* ── Header right (search) ───────────────────────────────────── */
#header_right {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}
#search { min-width: 200px; }

/* ── Search ──────────────────────────────────────────────────── */
.search-content { position: relative; }
.search-content input.search-input {
    height: 38px;
    color: #fff;
    padding-left: 38px;
    padding-right: 12px;
    font-size: 14px;
    font-weight: 300;
    background: rgba(255,255,255,.15);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: none !important;
    width: 100%;
    outline: none;
    display: block;
}
.search-content input.search-input:focus {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.25);
}
.search-content input.search-input::placeholder { color: rgba(255,255,255,.5); }

.search-content .search-icon {
    width: 38px;
    height: 38px;
    line-height: 38px;
    display: inline-block;
    color: rgba(255,255,255,.7);
    font-size: 13px;
    text-align: center;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

/* Search results dropdown */
.search-content .search-result-pop {
    background: #fff;
    position: absolute;
    left: 0;
    top: 48px;
    right: 0;
    z-index: 9999;
    list-style: none;
    display: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.7);
    min-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
}
.search-content .search-result-pop.active { display: block; }
.search-content .search-result-pop .nav-item {
    display: block;
    text-align: left;
    padding: 10px 12px;
    width: 100%;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    overflow: hidden;
    color: #555;
    text-decoration: none;
}
.search-content .search-result-pop .nav-item:hover { background: #f8f8f8; }
.search-content .search-result-pop .nav-item .film-poster {
    float: left;
    width: 46px;
    padding-bottom: 65px;
    margin: 0;
    overflow: hidden;
    position: relative;
    background: #ddd;
    border-radius: 3px;
    flex-shrink: 0;
}
.search-content .search-result-pop .nav-item .film-poster .film-poster-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    object-fit: cover;
}
.search-content .search-result-pop .nav-item .srp-detail {
    padding-left: 58px;
    padding-top: .5rem;
    font-size: 12px;
}
.search-content .search-result-pop .nav-item .srp-detail .film-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3em;
    max-width: 100%;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111;
}
.search-content .search-result-pop .nav-bottom {
    padding: 12px 15px;
    background: #ffe400 !important;
    font-size: 14px;
    color: #111;
    text-align: center;
    border-bottom: none;
    display: block;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}
.search-content .search-result-pop .nav-bottom:hover { background: #ffd700 !important; }

/* ── Homepage Header ─────────────────────────────────────────── */
@media screen and (min-width: 1200px) {
    #header.header-home-fix {
        position: relative;
        height: auto;
        text-align: center;
        background: #222;
        margin-bottom: 80px;
    }
    #header.header-home-fix::before {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,.45);
        pointer-events: none;
        z-index: 0;
    }
    #header.header-home-fix .container { flex-direction: column; height: auto; padding-bottom: 0; position: relative; z-index: 1; }
    #header.header-home-fix #logo { position: absolute; top: 0; left: 15px; margin-right: 0; float: none; }
    #header.header-home-fix #search { display: none; }
    #header.header-home-fix #header_right { display: none; }
    #header.header-home-fix #header_menu { float: none; display: inline-block; margin: 0 auto; flex: none; }
    #header.header-home-fix .header-home-add {
        position: relative;
        margin: 60px 0 0;
        text-align: center;
        clear: both;
        width: 100%;
        display: inline-block;
    }
    #header.header-home-fix #search-home {
        position: relative;
        display: inline-block;
        width: 100%;
        max-width: 980px;
    }
    #header.header-home-fix #search-home .search-content {
        position: relative;
        margin-right: 80px;
        bottom: -35px;
    }
    #header.header-home-fix #search-home .search-content input.search-input {
        height: 70px;
        border-radius: 45px;
        padding-right: 90px;
        background: #fff;
        color: #333;
        border: none;
        font-size: 1.7em;
        font-weight: 300;
        padding-left: 65px;
    }
    #header.header-home-fix #search-home .search-content input.search-input::placeholder { color: #ccc; }
    #header.header-home-fix #search-home .search-content .search-icon,
    #header.header-home-fix #search-home .search-content .btn-primary-submit {
        width: 70px; height: 70px; line-height: 70px; font-size: 20px; color: #111;
    }
    #header.header-home-fix #search-home .search-content .btn-primary-submit {
        position: absolute; top: 0; right: -80px; bottom: 0; z-index: 9;
        padding: 0; border-radius: 35px; background: #ffe400; border: none;
        width: 70px; height: 70px; cursor: pointer;
    }
    #header.header-home-fix #search-home .search-content .btn-primary-submit:hover { background: #ffd700; }
    #header.header-home-fix #search-home .search-content .search-result-pop { top: 75px; border-radius: 10px; }
    #header.header-home-fix .sht-heading { margin-bottom: 15px !important; color: rgba(255,255,255,.85); font-size: 1.1em; font-weight: 300; }
    #main-wrapper { padding-top: 0; }
}

/* ── Sidebar Menu ─────────────────────────────────────────────── */
#sidebar_menu_bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.7);
    z-index: 100;
    display: none;
}
#sidebar_menu_bg.active { display: block; }
#sidebar_menu {
    position: fixed;
    z-index: 101;
    left: -350px;
    opacity: 0;
    top: 0; bottom: 0;
    overflow-y: auto;
    width: 285px;
    padding: 20px;
    background: #111;
    box-shadow: 4px 0 25px rgba(0,0,0,.5);
    color: #ccc;
    transition: left .3s ease, opacity .3s ease;
}
#sidebar_menu.active { left: 0; opacity: 1; }
#sidebar_menu a { color: #ccc; }
#sidebar_menu a:hover { color: #ffe400; }
#sidebar_menu .sidebar_menu-list { font-size: 15px; margin-top: 10px; }
#sidebar_menu .sidebar_menu-list > .nav-item {
    display: block;
    width: 100%;
    border-bottom: 1px solid #1e1e1e;
    position: relative;
}
#sidebar_menu .sidebar_menu-list > .nav-item > .nav-link {
    display: block;
    padding: 14px 0;
    color: #fff;
    font-size: 15px;
}
#sidebar_menu .sidebar_menu-list > .nav-item > .toggle-submenu {
    position: absolute;
    top: 5px; right: 0;
    padding: 10px;
    z-index: 3;
    cursor: pointer;
    color: #666;
}
#sidebar_menu .sidebar_menu-list > .nav-item > .toggle-submenu:hover { color: #ffe400; }
#sidebar_menu .sidebar_menu-list .sidebar-submenu { padding-left: 15px; }
#sidebar_menu .sidebar_menu-list .sidebar-submenu li { list-style: none; }
#sidebar_menu .sidebar_menu-list .sidebar-submenu li a {
    color: #777;
    padding: 7px 0;
    display: block;
    font-size: 13px;
}
#sidebar_menu .sidebar_menu-list .sidebar-submenu li a:hover { color: #ffe400; }

/* ── Film Grid / Cards ───────────────────────────────────────── */
.film_list { display: block; }
.film_list .film_list-wrap {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin: 0;
    align-items: start;   /* every card stays its own height — no stretching */
}
.film_list .film_list-wrap .flw-item {
    width: 100%;
    margin: 0;
    position: relative;
}

/* Film poster — FIXED aspect ratio 2:3 for every card equally */
.film-poster {
    width: 100%;
    padding-bottom: 150%;   /* 2:3 portrait — never changes */
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 4px;
    display: block;
}
.film-poster .film-poster-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;          /* fill the fixed container exactly */
    object-fit: cover;     /* crop/zoom to cover — no distortion */
    object-position: center top;
    transition: transform .4s ease;
    display: block;
}
.film-poster:hover .film-poster-img { transform: scale(1.04); }

/* Play overlay on hover */
.flw-item .film-poster .film-poster-ahref {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flw-item .film-poster .film-poster-ahref::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(22,22,22,.5);
    z-index: 1;
    transition: opacity .2s;
}
.flw-item .film-poster .film-poster-ahref::before {
    content: "";
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffe400;
    opacity: 0;
    z-index: 2;
    position: absolute;
    transition: opacity .2s;
}
.flw-item .film-poster .film-poster-ahref i {
    font-size: 18px;
    color: #111;
    z-index: 3;
    opacity: 0;
    position: absolute;
    transition: opacity .2s;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    padding-left: 3px;
}
.flw-item .film-poster:hover .film-poster-ahref::after  { opacity: 1; }
.flw-item .film-poster:hover .film-poster-ahref::before { opacity: 1; }
.flw-item .film-poster:hover .film-poster-ahref i       { opacity: 1; }
.flw-item .film-poster { margin-bottom: 8px; }

/* Quality / episode badges */
.flw-item .pick {
    position: absolute;
    z-index: 5;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-family: arial, sans-serif;
    font-weight: 700;
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(255,255,255,.95);
    color: #111;
}
.flw-item .pick.film-poster-eps {
    right: auto;
    left: 8px;
    color: #111;
    background: #ffe400;
}

/* Film title (overlay) */
.film_list .film_list-wrap .flw-item .film-detail {
    font-size: .9em;
    color: #aaa;
    text-align: center;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 35px 10px 10px;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(13,14,15,.85) 100%);
}
.film_list .film_list-wrap .flw-item .film-detail .film-name {
    font-size: 12px;
    line-height: 1.3em;
    margin: 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.film_list .film_list-wrap .flw-item .film-detail .film-name a { color: #fff; }

/* Film title (below poster) */
.film_list .film_list-wrap .flw-item .film-detail-fix {
    position: relative;
    bottom: auto; left: auto; right: auto;
    text-align: left;
    background: transparent;
    padding: 0;
    margin-bottom: 5px;
}
.film_list .film_list-wrap .flw-item .film-detail-fix .film-name {
    margin-bottom: 3px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
    font-size: 12px;
    color: #ddd;
}
.film_list .film_list-wrap .flw-item .film-detail-fix .film-name a { color: #ddd; }
.film_list .film_list-wrap .flw-item .film-detail-fix .film-name a:hover { color: #ffe400; }
.film_list .film_list-wrap .flw-item .film-detail-fix .fd-infor {
    line-height: 1.3em;
    font-size: 11px;
    color: #666;
}
.film_list .film_list-wrap .flw-item .film-detail-fix .fd-infor .dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #444;
    vertical-align: middle;
    margin: 0 3px;
}
.film_list .film_list-wrap .flw-item .film-detail-fix .fd-infor .fdi-type {
    font-size: 10px;
    padding: 1px 4px;
    border: 1px solid #333;
    border-radius: 3px;
    color: #666;
}

/* ── Block Areas ─────────────────────────────────────────────── */
.block_area { display: block; margin-bottom: 70px; position: relative; }
.block_area .block_area-header {
    margin-bottom: 15px;
    display: block;
    width: 100%;
    overflow: hidden;
}
.block_area .block_area-header .cat-heading {
    font-size: 28px !important;
    line-height: 1.3em;
    font-weight: 300;
    padding: 0;
    margin: 0;
    color: #fff;
}
.block_area .block_area-header .viewmore a,
.block_area .block_area-header .viewmore .btn { color: #666; font-size: 13px; }
.block_area .block_area-header .viewmore a:hover { color: #ffe400; }
.block_area .block_area-header-tabs { margin-bottom: 20px; }
.block_area .block_area-header-tabs .pre-tabs { border-bottom: none; margin-top: 5px; }

/* Archive filter dropdowns */
.archive-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.archive-filters select {
    background: #1c1c1c;
    color: #ccc;
    border: 1px solid #2a2a2a;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 13px;
    height: 34px;
    cursor: pointer;
}
.archive-filters select:focus { outline: none; border-color: #ffe400; }

/* ── Tabs ────────────────────────────────────────────────────── */
.pre-tabs { border-bottom: 2px solid #ffe400; }
.pre-tabs .nav-item { margin-right: 5px; display: inline-block; }
.pre-tabs .nav-item .nav-link {
    padding: 7px 12px;
    line-height: 1.2em;
    font-size: 14px;
    color: #ccc;
    background: #1c1c1c;
    border: none;
    border-radius: 3px;
    display: inline-block;
    cursor: pointer;
}
.pre-tabs .nav-item .nav-link:hover { background: #ffe400; color: #111; }
.pre-tabs .nav-item .nav-link.active { background: #ffe400; color: #111; }
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-focus {
    background: #ffe400 !important;
    color: #111 !important;
    border: none !important;
    font-weight: 600;
}
.btn-focus:hover { background: #ffd700 !important; color: #111 !important; }
.btn-radius { border-radius: 30px !important; }
.btn-secondary { background: #2a2a2a !important; color: #bbb !important; border: none !important; }
.btn-secondary:hover { background: #3a3a3a !important; color: #fff !important; }
.btn-light { background: #f0f0f0 !important; color: #111 !important; }
.btn-quality { background: #2196F3 !important; color: #fff !important; border: none !important; }
.btn-imdb {
    background: transparent !important;
    color: #ffa600 !important;
    font-weight: 600;
    border: 1px solid #ffa600 !important;
}
.viewmore-btn {
    background: transparent !important;
    border: 1px solid #2a2a2a !important;
    color: #666 !important;
    padding: 5px 18px;
    border-radius: 3px;
    font-size: 13px;
}
.viewmore-btn:hover { border-color: #ffe400 !important; color: #ffe400 !important; }

/* ── Text Home ───────────────────────────────────────────────── */
.text-home {
    margin-bottom: 50px;
    padding: 25px 30px;
    background: #1a1a1a;
    border-radius: 5px;
    font-size: 14px;
    color: #555;
    line-height: 1.7em;
    position: relative;
    overflow: hidden;
    max-height: 120px;
    transition: max-height .3s ease;
}
.text-home.expanded { max-height: 2000px; }
.text-home .text-home-main p { margin: 0; }
#text-home-expand {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    text-align: center;
    background: linear-gradient(to bottom, rgba(26,26,26,0) 0, #1a1a1a 60%);
    padding: 30px 0 10px;
    cursor: pointer;
    color: #777;
    font-size: 13px;
}

/* ── Detail Page (Single) ────────────────────────────────────── */
.detail_page.detail_page-style {
    margin-top: -25px;
    padding-top: 25px;
    position: relative;
}
.detail_page.detail_page-style .cover_follow {
    background-position: 50% 25%;
    background-size: cover;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    max-height: 800px;
    z-index: 1;
}
.detail_page.detail_page-style .cover_follow::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(17,17,17,.25);
}
.detail_page.detail_page-style .cover_follow::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    top: 300px;
    background: linear-gradient(180deg, rgba(17,17,17,0) 0, rgba(17,17,17,.65) 60%, #111 100%);
}
.detail_page.detail_page-style .container { z-index: 4; position: relative; }

/* Breadcrumb */
.prebreadcrumb .breadcrumb { padding: 0; background: transparent; margin: 20px 0; }
.prebreadcrumb .breadcrumb-item,
.prebreadcrumb .breadcrumb-item a { color: #777; font-size: 12px; }
.prebreadcrumb .breadcrumb-item a:hover { color: #ffe400; }
.prebreadcrumb .breadcrumb-item.active { color: #bbb; }
.prebreadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #444; }

/* Detail watch area */
.detail_page-watch { position: relative; }
.detail_page-watch .dp-w-cover {
    position: relative;
    width: 100%;
    padding-bottom: 40%;
    min-height: 300px;
    left: 0;
    background-size: cover;
    background-position: center top;
    border-radius: 6px;
    overflow: hidden;
}
.detail_page-watch .dp-w-cover .dp-w-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 100%);
    z-index: 1;
}
.detail_page-watch .dp-w-cover .dp-w-c-play {
    background: rgba(0,0,0,.4);
    color: #fff;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -45px;
    margin-left: -45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 3px solid rgba(255,255,255,.6);
    transition: background .3s, border-color .3s, transform .2s;
}
.detail_page-watch .dp-w-cover .dp-w-c-play:hover {
    background: #ffe400;
    color: #000;
    border-color: #ffe400;
    transform: scale(1.08);
}
.detail_page-watch .dp-w-cover .dp-w-c-play i {
    font-size: 36px;
    padding-left: 5px;
}

/* Info panel */
.detail_page-style .detail_page-watch .detail_page-infor {
    font-size: 15px;
    z-index: 5;
    position: relative;
    line-height: 1.4em;
    font-weight: 300;
    min-height: 350px;
    margin: 0 0 30px;
    padding: 0;
    color: #ccc;
}
.detail_page-watch .detail_page-infor .dp-i-content { position: relative; }

/* Poster column */
.detail_page .dp-i-c-poster {
    width: 170px;
    position: absolute;
    top: 0;
    left: 0;
}
.detail_page .dp-i-c-right { padding-left: 200px; }

/* Watch now stick */
.dp-i-c-stick { margin-bottom: 14px; }
.dp-i-c-stick .btn i { font-size: .8em; }

/* Film title */
.heading-name {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2em;
}
.heading-name a {
    color: #888;
    font-size: .55em;
    font-weight: 300;
    margin-left: 10px;
}
.heading-name a:hover { color: #ffe400; }

/* Stats row */
.detail_page-watch .detail_page-infor .dp-i-stats { margin-bottom: 14px; }

/* Description */
.detail_page .detail_page-watch .detail_page-infor .description {
    margin-bottom: 14px;
    line-height: 1.65em;
    color: #bbb;
    font-size: 14px;
}

/* Meta rows */
.dp-i-c-right .elements { margin-bottom: 18px; }
.dp-i-c-right .elements .row-line {
    margin-bottom: 5px;
    font-size: 14px;
    color: #aaa;
}
.dp-i-c-right .elements .row-line .type strong { color: #777; font-weight: 500; }
.dp-i-c-right .elements .row-line a { color: #bbb; }
.dp-i-c-right .elements .row-line a:hover { color: #ffe400; }

/* Detail tags */
.detail-tags .btn-dtag {
    margin: 2px 2px 2px 0;
    font-size: 11px !important;
    font-weight: 400 !important;
    background: #1a1a1a !important;
    border: 1px solid #242424 !important;
    color: #666 !important;
    border-radius: 3px !important;
    cursor: default !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* ── Seasons / Episodes ──────────────────────────────────────── */
.seasons-list {
    margin-bottom: 30px;
    background: #1c1c1c;
    border-radius: 6px;
    overflow: hidden;
}
.seasons-list .sl-content { padding: 25px; overflow: hidden; }
.seasons-list .sl-content .sl-title {
    font-size: 1.3em;
    font-weight: 300;
    color: #fff;
    margin-bottom: 18px;
}
.seasons-list .sl-content .slc-seasons {
    float: left;
    width: 18%;
}
.seasons-list .sl-content .slc-seasons .slcs-ul li {
    display: block;
    margin: 0 0 4px;
    list-style: none;
}
.seasons-list .sl-content .slc-seasons .slcs-ul li a {
    font-weight: 600;
    padding: 10px 16px;
    display: block;
    background: rgba(255,255,255,.04);
    border-radius: 3px;
    color: #bbb;
    font-size: 13px;
    transition: background .2s;
}
.seasons-list .sl-content .slc-seasons .slcs-ul li a:hover { background: rgba(255,255,255,.1); color: #fff; }
.seasons-list .sl-content .slc-seasons .slcs-ul li.active a {
    background: #ffe400;
    color: #111;
}
.seasons-list .sl-content .slc-seasons .slcs-ul li.active .badge {
    background: #000 !important;
    color: #fff !important;
}
.seasons-list .sl-content .slc-eps {
    float: left;
    width: 82%;
    padding-left: 28px;
}
.seasons-list .sl-content .slc-eps .sl-title { float: left; margin-right: 20px; }
.seasons-list .sl-content .slce-list { clear: both; margin-top: 18px; }
.seasons-list .sl-content .slce-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.seasons-list .sl-content .slce-list li {
    width: calc(25% - 4px);
    list-style: none;
}
.seasons-list .sl-content .slce-list .nav-link {
    border-radius: 3px;
    height: 40px;
    background: rgba(255,255,255,.04);
    text-align: left;
    padding: 10px 12px;
    color: #bbb;
    display: block;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: background .2s;
}
.seasons-list .sl-content .slce-list .nav-link:hover { background: #2a2a2a; color: #fff; }
.seasons-list .sl-content .slce-list .nav-link.active { background: #ffe400; color: #111; font-weight: 600; }

/* ── Related Films ───────────────────────────────────────────── */
.film_related { background: #111; padding: 50px 0; margin-top: 10px; }
.file_realted-list .block_area-header { margin-bottom: 20px; }

/* ── Archive / Browse ────────────────────────────────────────── */
.category_filter { margin-bottom: 20px; }
.btn-in-headcat {
    background: #1c1c1c !important;
    color: #888 !important;
    border: 1px solid #272727 !important;
    font-size: 12px;
    border-radius: 3px;
}
.btn-in-headcat.btn-focus {
    background: #ffe400 !important;
    color: #111 !important;
    border-color: #ffe400 !important;
}
.btn-in-headcat:hover { background: #2a2a2a !important; color: #fff !important; }

/* ── Pagination ──────────────────────────────────────────────── */
.page-navigation .page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-navigation .page-numbers li a,
.page-navigation .page-numbers li span {
    display: inline-block;
    padding: 7px 13px;
    background: #1c1c1c;
    color: #aaa;
    border-radius: 3px;
    font-size: 13px;
}
.page-navigation .page-numbers li a:hover { background: #2a2a2a; color: #fff; }
.page-navigation .page-numbers li span.current { background: #ffe400; color: #111; font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────── */
#footer {
    background: #000;
    padding: 40px 0;
    color: #999;
    position: relative;
}
#footer a { color: #999; }
#footer a:hover { color: #ffe400; }
#footer .footer-about { max-width: 700px; }
#footer .footer-about .footer-fa-text { margin-bottom: 15px; line-height: 1.6em; font-size: 13px; color: #444; }
#footer .footer-about .footer-fa-menu a { color: #666; font-size: 13px; }
#footer .footer-about .footer-fa-menu .space { display: inline-block; margin: 0 8px; color: #2a2a2a; }
.footer-bottom { color: #333; font-size: 12px; }

/* ── Sticky header ───────────────────────────────────────────── */
#header.sticky {
    background: rgba(17,17,17,.98);
    box-shadow: 0 2px 12px rgba(0,0,0,.6);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* ── ≤1399px: 7 columns ─────────────────────────────────────── */
@media (max-width: 1399px) {
    .film_list .film_list-wrap { grid-template-columns: repeat(7, 1fr); }
}

/* ── ≤1199px: 6 columns ─────────────────────────────────────── */
@media (max-width: 1199px) {
    .film_list .film_list-wrap { grid-template-columns: repeat(6, 1fr); }
    .detail_page.detail_page-style { margin-top: 0; }
    /* hide homepage big search bar on tablet/mobile — show only mobile icon */
    .header-home-add,
    #search-home { display: none !important; }
}

/* ── ≤991px: 5 columns ──────────────────────────────────────── */
@media (max-width: 991px) {
    .film_list .film_list-wrap { grid-template-columns: repeat(5, 1fr); }
    .detail_page .dp-i-c-poster { width: 125px; }
    .detail_page .dp-i-c-right { padding-left: 148px; }
    .heading-name { font-size: 1.5em; }
    .seasons-list .sl-content .slc-seasons { width: 25%; }
    .seasons-list .sl-content .slc-eps { width: 75%; }
    .seasons-list .sl-content .slce-list li { width: calc(33.33% - 4px); }
}

/* ── ≤767px: 3 columns, hide desktop nav ────────────────────── */
@media (max-width: 767px) {
    #mobile_menu   { display: flex !important; }
    #header_menu   { display: none !important; }
    #header_right  { display: none !important; }   /* desktop search — GONE on mobile */
    #mobile-search-icon { display: flex !important; }

    .film_list .film_list-wrap { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    .detail_page .dp-i-c-poster { display: none; }
    .detail_page .dp-i-c-right  { padding-left: 0; }
    .heading-name { font-size: 1.3em; }
    .detail_page-watch .dp-w-cover { padding-bottom: 56.25%; min-height: 200px; }
    .block_area .block_area-header .cat-heading { font-size: 20px !important; }
    .block_area { margin-bottom: 40px; }

    .seasons-list .sl-content { padding: 15px; }
    .seasons-list .sl-content .slc-seasons { float: none; width: 100%; margin-bottom: 20px; }
    .seasons-list .sl-content .slc-eps { float: none; width: 100%; padding-left: 0; }
    .seasons-list .sl-content .slce-list li { width: calc(50% - 4px); }

    .archive-filters { gap: 5px; }
    .archive-filters select { font-size: 12px; padding: 4px 8px; height: 30px; }
}

/* ── ≤575px: EXACTLY 2 columns on phones ────────────────────── */
@media (max-width: 575px) {
    .film_list .film_list-wrap {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .film_list .film_list-wrap .flw-item { width: 100% !important; margin: 0 !important; }

    .seasons-list .sl-content .slce-list li { width: calc(50% - 4px); }
    .heading-name { font-size: 1.15em; }
    .detail_page-watch .dp-w-cover { padding-bottom: 60%; min-height: 180px; }
    .detail_page-watch .dp-w-cover .dp-w-c-play { width: 64px; height: 64px; margin-top: -32px; margin-left: -32px; }
    .detail_page-watch .dp-w-cover .dp-w-c-play i { font-size: 26px; }
    .dp-i-c-stick .btn { font-size: 13px; padding: 8px 16px; }
    .block_area .block_area-header { display: block; }
    .block_area .block_area-header .float-right { float: none !important; margin-top: 10px; }
    .trending-sub-pills { gap: 4px; }

    /* Mobile search panel */
    #mobile-search-panel {
        display: none;
        position: fixed;
        top: 65px; left: 0; right: 0;
        background: #111;
        z-index: 98;
        padding: 10px 15px;
        border-bottom: 1px solid #222;
        box-shadow: 0 4px 15px rgba(0,0,0,.5);
    }
    #mobile-search-panel.open { display: block; }
    #mobile-search-panel .search-content { position: relative; }
    #mobile-search-panel .search-content .search-result-pop {
        left: 0; right: 0; min-width: unset;
        position: fixed;
        top: 120px;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
    }
}

/* ── ≤420px: very small phones ──────────────────────────────── */
@media (max-width: 420px) {
    .film_list .film_list-wrap {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .film_list .film_list-wrap .flw-item { width: 100% !important; margin: 0 !important; }
    .seasons-list .sl-content .slce-list li { width: 100%; }
    .seasons-list .sl-content { padding: 12px; }
}

/* Mobile search icon (hidden on desktop) */
#mobile-search-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
#mobile-search-icon:hover { color: #ffe400; }

/* Mobile search panel (hidden until open) */
#mobile-search-panel {
    display: none;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: #111;
    z-index: 98;
    padding: 10px 15px;
    border-bottom: 1px solid #222;
    box-shadow: 0 4px 15px rgba(0,0,0,.5);
}
#mobile-search-panel.open { display: block; }
#mobile-search-panel .search-content .search-result-pop {
    position: fixed;
    top: 120px;
    left: 0; right: 0;
    min-width: unset;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
}

/* ── PageSpeed: reduce render work for below-fold sections ─── */
.block_area_home.section-id-02,
.block_area_home.section-id-03,
.text-home {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;   /* estimated height — prevents layout shift */
}

/* ── Prevent CLS: film poster intrinsic size hint ────────────── */
.film-poster img {
    aspect-ratio: 2 / 3;
}

/* ── font-display: swap for any @font-face ────────────────────── */
@font-face {
    font-display: swap;
}
