/* HDStream template — self-contained stylesheet (light skin, dark-blue header, blue accent). */
:root {
    --primary: #3e8afa;
    --primary-dark: #2160bc;
    --header-bg: #144184;
    --landing-bg: #163662;
    --body-bg: #fafafa;
    --text: #111;
    --muted: #666;
    --footer-bg: #000;
    --footer-text: #b9b9b9;
    --accent-red: #e62e05;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, .05);
    --radius: 10px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { position: relative; }
body { margin: 0; background: var(--body-bg); color: var(--text); font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.2em; font-weight: 400; -webkit-text-size-adjust: none; }
a { color: var(--text); text-decoration: none; outline: 0; }
a:hover { color: var(--primary); }
img { max-width: 100%; border: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; line-height: 1.3em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.icon { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -.125em; }
.mr-2 { margin-right: .5rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
@media (min-width: 1401px) { .container { max-width: 1400px; } }
@media (min-width: 1681px) { .container { max-width: 1600px; } }

.btn { display: inline-block; border: 0; cursor: pointer; font-size: 14px; line-height: 1.5; padding: .375rem .75rem; border-radius: .25rem; text-align: center; white-space: nowrap; vertical-align: middle; transition: background .2s, color .2s, box-shadow .2s; }
.btn-sm { font-size: 12px; padding: .25rem .5rem; }
.btn-lg { font-size: 1.25rem; padding: .5rem 1rem; }
.btn-radius { border-radius: 30px; }
.btn-focus, .btn-primary { background: var(--primary); color: #fff; }
.btn-focus:hover, .btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: #eee; color: var(--text); }
.btn-secondary:hover { color: var(--primary); }
.btn-light { background: #e2e6ea; color: var(--text); }
.btn-light:hover { background: #d3d9df; color: var(--text); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); display: inline-block; margin: 0 5px; vertical-align: middle; }
.no-results { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 16px; }

/* ---------- header ---------- */
#wrapper { width: 100%; position: relative; }
#header { height: 65px; background: var(--header-bg); margin-bottom: 25px; position: relative; z-index: 99; color: #fff; }
#header.scrolled { box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
#header .container { position: relative; }
#header #logo { display: inline-block; height: 35px; margin: 15px 30px 15px 0; float: left; color: #fff; white-space: nowrap; }
#header #logo img { height: 100%; width: auto; margin-right: 10px; float: left; }
#header #logo span { line-height: 35px; font-size: 20px; font-weight: 600; color: #fff; }
.hamburger { display: none; position: absolute; top: 0; left: 0; width: 60px; height: 60px; background: none; border: 0; color: #fff; cursor: pointer; z-index: 4; font-size: 20px; padding: 0; }
.hamburger.active { color: var(--primary); }
#header_menu { height: 65px; float: left; }
.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu > li { display: inline-block; margin: 0 3px; position: relative; }
.nav-menu > li > a { height: 65px; line-height: 65px; padding: 0 20px; color: #fff; display: inline-block; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; position: relative; }
.nav-menu > li > a:hover { color: #fff; opacity: .85; }
.nav-menu > li.active > a::before { content: ""; width: 100%; height: 3px; background: var(--primary); position: absolute; bottom: 0; left: 0; }
.nav-menu > li.has-sub > a::after { content: "▾"; margin-left: 6px; font-size: 11px; opacity: .7; }
.header_menu-sub { position: absolute; top: 65px; left: 0; width: 700px; max-width: 90vw; background: #fff; z-index: 102; box-shadow: 0 0 3px rgba(0, 0, 0, .1); display: none; text-align: left; }
.nav-menu > li:hover .header_menu-sub { display: block; }
.header_menu-sub ul { padding: 10px; list-style: none; margin: 0; display: flex; flex-wrap: wrap; }
.header_menu-sub li { width: 25%; padding: 0 1%; }
.header_menu-sub li a { height: 30px; color: var(--text); line-height: 30px; padding: 0 10px; display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header_menu-sub li a:hover { background: var(--primary); color: #fff; }
#header_right { position: absolute; top: 10px; right: 15px; }
#search { width: 300px; margin: 3.5px 10px 0 0; position: relative; float: left; transition: all .5s; }

.search-content { position: relative; display: block; margin: 0; }
.search-content .search-input { width: 100%; height: 38px; color: var(--text); padding: 0 15px 0 40px; font-size: 14px; font-weight: 300; background: #fff; border-radius: 30px; border: 0; outline: 0; font-family: inherit; transition: box-shadow .3s; }
.search-content .search-input:focus { box-shadow: 0 0 0 3px rgba(62, 138, 250, .25); }
.search-content .search-icon { width: 40px; height: 38px; line-height: 38px; display: inline-block; color: var(--text); font-size: 15px; text-align: center; position: absolute; left: 0; top: 0; z-index: 2; background: none; border: 0; padding: 0; cursor: pointer; }
.header-home-add { display: none; }
.sht-heading { font-size: 2.2em; font-weight: 300; margin: 0; color: #fff; }

/* home hero (desktop) — the snapshot used a movie-still collage; replaced by a CSS gradient */
@media (min-width: 1200px) {
    #header.header-home-fix { height: auto; text-align: center; margin-bottom: 80px; padding-bottom: 20px; background: var(--header-bg); background-image: radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, .14), transparent 45%), radial-gradient(ellipse at 85% 10%, rgba(62, 138, 250, .35), transparent 50%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .25) 100%); }
    #header.header-home-fix #logo { position: absolute; float: none; top: 0; left: 15px; margin-right: 0; }
    #header.header-home-fix #search { display: none; }
    #header.header-home-fix #header_menu { float: none; display: inline-block; margin: 0 auto; }
    #header.header-home-fix .header-home-add { display: block; position: relative; margin: 60px 0 0; text-align: center; clear: both; width: 100%; }
    #search-home { position: relative; display: inline-block; width: 100%; max-width: 980px; }
    #search-home .search-content { position: relative; margin-right: 80px; bottom: -55px; }
    #search-home .search-input { height: 70px; border-radius: 45px; padding: 0 85px 0 65px; font-size: 1.8em; font-weight: 300; box-shadow: 0 20px 20px rgba(0, 0, 0, .05); }
    #search-home .search-input:focus { box-shadow: 0 20px 20px rgba(0, 0, 0, .1); }
    #search-home .search-icon { width: 70px; height: 70px; line-height: 70px; font-size: 22px; }
    #search-home .btn-primary-submit { position: absolute; top: 0; right: -80px; width: 70px; height: 70px; border-radius: 35px; padding: 0; font-size: 22px; line-height: 70px; z-index: 9; }
}

/* header — tablet / mobile */
@media (max-width: 1199px) {
    #header { height: 120px; text-align: center; }
    #header .container { padding: 0; }
    .hamburger { display: block; }
    #header #logo { height: 30px; width: 240px; position: absolute; left: 50%; margin: 15px 0 15px -120px; text-align: center; float: none; }
    #header #logo img { float: none; display: inline-block; vertical-align: top; }
    #header #logo span { line-height: 30px; font-size: 16px; }
    #header_menu { float: none; height: auto; }
    .nav-menu { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; z-index: 105; box-shadow: 0 10px 20px rgba(0, 0, 0, .2); text-align: left; padding: 10px 0; max-height: calc(100vh - 60px); overflow: auto; }
    .nav-menu.active { display: block; }
    .nav-menu > li { display: block; margin: 0; }
    .nav-menu > li > a { height: auto; line-height: 44px; color: var(--text); display: block; padding: 0 20px; }
    .nav-menu > li > a:hover { color: var(--primary); opacity: 1; }
    .nav-menu > li.active > a { color: var(--primary); }
    .nav-menu > li.active > a::before { display: none; }
    .header_menu-sub { position: static; width: auto; max-width: none; box-shadow: none; background: #f5f6f7; }
    .nav-menu > li:hover .header_menu-sub { display: none; }
    .nav-menu > li.open .header_menu-sub { display: block; }
    .header_menu-sub li { width: 50%; }
    #header_right { position: absolute; top: 60px; left: 0; right: 0; }
    #search { width: 100%; margin: 0; float: none; padding: 0 15px 15px; background: var(--header-bg); }
    .search-content .search-input { border-radius: 5px; }
    #search .search-input { height: 45px; }
    #search .search-icon { height: 45px; line-height: 45px; }
}

/* ---------- main blocks ---------- */
#main-wrapper { margin-bottom: 70px; min-height: calc(100vh - 326px); }
.block_area { display: block; margin-bottom: 80px; position: relative; }
.block_area-header { margin-bottom: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.bah-heading { min-width: 0; }
.cat-heading { font-size: 30px; line-height: 1.3em; font-weight: 300; margin: 0; }
.cat-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.bah-setting { display: flex; flex-wrap: wrap; gap: 4px; }
.bah-setting .btn { margin: 4px 0; }
.bah-filter { margin-left: auto; }
.bah-filter .btn-in-headcat { border-radius: 3px; font-size: 14px; line-height: 1em; padding: 9px 12px; }
.bah-filter .btn-in-headcat.active { background: var(--primary); color: #fff; }
.viewmore { margin-left: auto; }
.bah-search { flex: 0 1 320px; margin-left: auto; }
.bah-search .search-input { border: 1px solid #ddd; padding-left: 15px; padding-right: 40px; }
.bah-search .search-icon { left: auto; right: 0; }
.block_area-header-tabs { margin-bottom: 25px; }
.block_area-content { display: block; }

.dropdown-menu { display: none; }
.dropdown-menu.show { display: block; }
.category_filter-content { padding: 20px; background: #fff; border: 1px dashed #aaa; margin-bottom: 20px; }
.cfc-item { display: flex; flex-wrap: wrap; gap: 10px 15px; align-items: flex-start; }
.ni-head { font-size: 16px; font-weight: 500; line-height: 30px; min-width: 65px; }
.genre-filter { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.genre-tag { background: #eee; color: var(--text); }
.genre-tag:hover { background: #ddd; color: var(--text); }
.genre-tag.active { background: var(--primary); color: #fff; }

/* SEO text block under lists / home */
.text-home { font-weight: 400; font-size: 1.15em; line-height: 1.4em; margin-bottom: 50px; color: #555; }
.text-home a { color: var(--primary); }
.text-home h2, .text-home h3 { color: var(--text); margin: 1em 0 .5em; font-weight: 500; }
.text-home h2 { font-size: 1.5em; }
.text-home h3 { font-size: 1.2em; }

/* ---------- cards ---------- */
.film_list-wrap { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0 .5%; }
.flw-item { margin-bottom: 15px; min-width: 0; }
.film-poster { width: 100%; padding-bottom: 148%; position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 10px; background: #e5e7eb; }
.film-poster .film-poster-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.film-poster:hover .film-poster-img { transform: scale(1.04); }
.film-poster-ahref { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 3; display: block; color: #fff; }
.film-poster-ahref::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(22, 22, 22, .5); opacity: 0; transition: opacity .2s; z-index: 1; }
.film-poster-ahref::before { content: ""; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: var(--primary); opacity: 0; position: absolute; top: 50%; left: 50%; z-index: 2; transition: opacity .5s; }
.film-poster-ahref .icon { position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -12px; z-index: 2; opacity: 0; transition: opacity .5s; }
.film-poster:hover .film-poster-ahref::after, .film-poster:hover .film-poster-ahref::before, .film-poster:hover .film-poster-ahref .icon { opacity: 1; }
.pick { position: absolute; z-index: 5; top: 10px; right: 10px; font-size: 13px; font-family: Arial, sans-serif; font-weight: 600; padding: 3px 5px; border-radius: 2px; background: #fff; color: var(--text); line-height: 1.2; }
.pick.film-poster-rank { right: auto; left: 10px; background: var(--primary); color: #fff; }
.film-detail-fix { font-size: .95em; color: var(--muted); text-align: left; padding-right: 10px; }
.film-name { font-size: 14px; line-height: 1.3em; margin: 0 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.film-name a { color: var(--text); }
.film-name a:hover { color: var(--primary); }
.fd-infor { line-height: 1.3em; display: flex; align-items: center; flex-wrap: wrap; }
.fdi-rating { color: #d9930f; }
.fdi-type { margin-left: auto; font-size: .9em; line-height: 1em; padding: 2px 4px; border: 1px solid #aaa; border-radius: 3px; }
@media (max-width: 1400px) { .film_list-wrap { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 998px) { .film_list-wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1%; } }
@media (max-width: 759px) { .film_list-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .film_list-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3%; } .film-name { white-space: normal; max-height: 36px; } }
@media (max-width: 479px) { .fdi-type { display: none; } .film-detail-fix { padding-right: 0; } }

/* ---------- pagination ---------- */
.pre-pagination { margin: 40px 0 20px; text-align: center; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.page-item { margin: 5px; }
.page-link { display: block; padding: 0 10px; line-height: 40px; min-width: 40px; text-align: center; font-size: 16px; border-radius: 20px; color: var(--text); background: none; }
a.page-link:hover { color: var(--primary); }
.page-item.active .page-link { background: var(--primary); color: #fff; cursor: default; }
.page-item.disabled .page-link { opacity: .4; }
.page-info { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- detail page ---------- */
.prebreadcrumb { margin-bottom: 15px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; font-size: 14px; color: var(--text); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; padding: 0 .5rem; opacity: .5; }
.breadcrumb-item.active { opacity: .8; }
.detail_page .breadcrumb, .detail_page .breadcrumb a { color: #fff; }
.detail_page.detail_page-style { margin-top: -25px; padding-top: 25px; position: relative; }
.cover_follow { background-color: var(--header-bg); background-position: 50% 25%; background-size: cover; position: absolute; top: 0; left: 0; right: 0; height: 100%; max-height: 800px; z-index: 1; }
.cover_follow::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(11, 11, 11, .6); }
.detail_page.detail_page-style .container { z-index: 4; position: relative; }
.detail_page-watch { position: relative; }
.dp-w-cover { position: relative; width: 100%; padding-bottom: 40%; }
.dp-w-c-play { background: var(--primary); color: #fff; box-shadow: 0 20px 20px rgba(0, 0, 0, .1); width: 100px; height: 100px; border-radius: 50%; text-align: center; position: absolute; top: 50%; left: 50%; margin: -50px 0 0 -50px; display: inline-block; z-index: 2; transition: transform .2s, background .2s; }
.dp-w-c-play:hover { color: #fff; background: var(--primary-dark); transform: scale(1.05); }
.dp-w-c-play .icon { width: 44px; height: 44px; margin-top: 28px; margin-left: 6px; }
.detail_page-infor { font-size: 15px; z-index: 5; position: relative; line-height: 1.3em; font-weight: 300; margin: 0 0 30px; }
.dp-i-content { position: relative; padding: 30px; background: #fff; border-radius: 20px; box-shadow: var(--card-shadow); min-height: 320px; }
.dp-i-c-poster { width: 180px; position: absolute; top: 30px; left: 30px; }
.dp-i-c-poster .film-poster { margin-bottom: 0; }
.dp-i-c-right { padding-left: 210px; }
.dp-i-c-stick { margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dp-i-c-stick .btn-focus { padding: .5rem 1.25rem; }
.dp-genres { display: flex; flex-wrap: wrap; gap: 5px; }
.watch-btn-wrapper { position: relative; display: inline-block; }
.watch-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border-radius: 10px; box-shadow: 0 10px 20px rgba(0, 0, 0, .15); min-width: 200px; z-index: 20; padding: 5px 0; overflow: hidden; }
.watch-dropdown-menu.show { display: block; }
.watch-dropdown-item { display: block; padding: 10px 20px; color: var(--text); font-size: 14px; white-space: nowrap; }
.watch-dropdown-item:hover { background: #eee; color: var(--text); }
.heading-name { font-size: 2.5em; line-height: 1.3em; margin: 0 0 15px; font-weight: 300; }
.heading-name a { color: var(--text); }
.heading-name .year { opacity: .55; font-size: .6em; }
.tagline { font-style: italic; color: var(--muted); margin-bottom: 15px; }
.dp-i-stats { margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dp-i-stats .item { display: inline-block; }
.btn-quality { background: #fff; color: var(--text); border: 1px solid var(--text); padding: 2px 8px; cursor: default; }
.btn-imdb { color: #ffa600; font-weight: 600; background: none; cursor: default; padding-left: 0; padding-right: 0; }
.player-info { margin-bottom: 12px; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; }
.description { margin-bottom: 15px; line-height: 1.5em; }
.elements { margin-bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.row-line { margin-bottom: 6px; line-height: 1.4em; }
.row-line .type { font-weight: 600; margin-right: 4px; }
.row-line a { color: var(--text); }
.row-line a:hover { color: var(--primary); }

/* seasons / episodes (white rounded box, seasons left, episode grid right) */
.seasons-list { background: #fff; box-shadow: var(--card-shadow); border-radius: 20px; padding: 30px; margin: 0 0 20px; font-size: 1.1em; line-height: 1.2em; display: flex; gap: 30px; position: relative; z-index: 5; }
.slc-seasons { width: 18%; flex: none; }
.sl-title { font-size: 1.4em; line-height: 1em; font-weight: 300; margin-bottom: 20px; }
.slcs-ul { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow: auto; }
.slcs-ul li { margin: 0 0 5px; }
.slcs-ul li a { font-weight: 600; padding: 12px 20px; display: block; background: rgba(22, 22, 22, .05); border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slcs-ul li.active a { background: var(--primary); color: #fff; }
.slc-eps { flex: 1; min-width: 0; }
.slce-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; max-height: 400px; overflow: auto; }
.slce-list a { border-radius: 3px; background: rgba(22, 22, 22, .05); text-align: left; padding: 12px 20px; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 300; }
.slce-list a strong { font-weight: 600; }
.slce-list a:hover { color: var(--primary); }
.slce-list li.active a { background: var(--primary); color: #fff; }
.film_related { margin-top: 10px; }

/* ---------- player page ---------- */
.watching { margin-bottom: 20px; }
.alert { padding: 12px 20px; border-radius: 5px; background: #fff3cd; color: #856404; margin-bottom: 15px; font-size: 13px; line-height: 1.4; }
.watching_player-area { width: 100%; background: #111; position: relative; z-index: 98; padding-bottom: 56.25%; overflow: hidden; }
.watching_player-area.active { z-index: 102; }
.watching_player-area iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; z-index: 5; transition: opacity .3s; }
.loading-player { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 6; background: rgba(0, 0, 0, .6); display: none; align-items: center; justify-content: center; }
.loading { display: flex; gap: 6px; }
.loading > div { width: 18px; height: 18px; background: #aaa; border-radius: 100%; animation: sk-bouncedelay 1.4s infinite ease-in-out both; }
.loading .span1 { animation-delay: -.32s; }
.loading .span2 { animation-delay: -.16s; }
@keyframes sk-bouncedelay { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.watching_player-control { background: #000; padding: 10px; color: #ccc; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.watching_player-control .btn { background: none; color: #eee; }
.watching_player-control .btn:hover { color: var(--primary); }
.watching_player-control .btn.active { background: rgba(255, 255, 255, .2); color: #fff; }
.episode-nav { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
#turn-off-light .light-off { display: none; }
#turn-off-light.active .light-on { display: none; }
#turn-off-light.active .light-off { display: inline; }
#turn-off-light.active { position: relative; z-index: 100; }
#mask-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99; background: rgba(11, 11, 11, .98); display: none; }
#mask-overlay.active { display: block; }
.detail_page-servers { background: #fff; border-radius: 20px 20px 0 0; box-shadow: var(--card-shadow); }
.detail_page-servers .dp-s-line { padding: 15px; position: relative; }
.detail_page-servers .name { position: absolute; top: 30px; left: 25px; font-weight: 600; }
.server-selector { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-left: 80px; }
.server-btn { border-radius: 5px; background: #eee; font-size: 14px; color: var(--text); padding: 30px 20px 10px 50px; position: relative; text-align: left; display: block; min-width: 150px; }
.server-btn small { position: absolute; top: 10px; left: 50px; font-weight: 400; font-size: 13px; opacity: .6; }
.server-btn .icon { position: absolute; top: 50%; transform: translateY(-50%); left: 20px; font-size: 16px; }
.server-btn span { font-weight: 500; }
.server-btn:hover { color: var(--primary); }
.server-btn.active { background: var(--primary); color: #fff; }
.watch_page .seasons-list { border-radius: 0; margin: 2px 0; }
.watch_page .detail_page-infor { margin: 2px 0 30px; }
.watch_page .dp-i-content { border-radius: 0 0 20px 20px; }
.watch_page-tv .detail_page-servers + .detail_page-infor .dp-i-content { border-radius: 0 0 20px 20px; }
.watch_page .detail_page-servers + .detail_page-infor .dp-i-content { border-radius: 0 0 20px 20px; }

/* ---------- static / 404 ---------- */
.information_page { background: #fff; padding: 30px 50px 50px; border-radius: 20px; box-shadow: var(--card-shadow); max-width: 900px; font-size: 16px; font-weight: 300; line-height: 1.5em; }
.information_page h2 { font-size: 1.5em; margin: 1em 0 10px; font-weight: 400; }
.information_page h3 { font-size: 1.2em; margin: 1em 0 8px; font-weight: 500; }
.information_page a { color: var(--primary); }
.container-404 { margin: 150px auto; text-align: center; max-width: 600px; }
.c4-big { font-size: 120px; font-weight: 600; color: #ddd; line-height: 1em; margin-bottom: 20px; }
.c4-medium { font-size: 30px; font-weight: 300; line-height: 1.2em; margin-bottom: 10px; }
.c4-small { font-size: 14px; line-height: 1.3em; margin-bottom: 30px; color: var(--muted); }
.c4-search { max-width: 480px; margin: 0 auto 25px; }
.c4-search .search-input { border: 1px solid #ddd; height: 45px; padding-left: 15px; padding-right: 45px; }
.c4-search .search-icon { left: auto; right: 0; height: 45px; line-height: 45px; }

/* ---------- footer ---------- */
#footer { background: var(--footer-bg); padding: 40px 0; color: var(--footer-text); position: relative; font-size: 14px; line-height: 1.4em; }
#footer a { color: var(--footer-text); }
#footer a:hover { color: var(--accent-red); }
#footer .container { position: relative; padding-left: 275px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
.footer-logo-block { position: absolute; top: 0; left: 15px; width: 240px; }
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 20px; color: #fff; font-size: 18px; font-weight: 600; }
.footer-logo img { height: 46px; width: auto; margin-right: 10px; }
.footer-about { flex: 1 1 400px; max-width: 650px; }
.footer-fa-text { margin-bottom: 15px; }
.footer-fa-menu, .footer-network, .footer-social { margin-bottom: 8px; }
.footer-fa-menu a, .footer-network a, .footer-social a { color: #fff; }
.footer-fa-menu strong, .footer-network-title { color: #fff; margin-right: 8px; font-weight: 500; }
.space { display: inline-block; margin: 0 10px; opacity: .5; }
.footer-social a { margin-right: 15px; }
.footer-network { margin-top: 12px; }
.footer-notice { flex: 0 0 340px; }
.footer-notice span { display: block; padding: 10px; background: rgba(255, 255, 255, .04); width: 100%; font-size: 12px; line-height: 1.3em; font-weight: 300; border: 1px solid #393939; text-align: justify; position: relative; }
.footer-notice span::before { content: ""; width: 10px; height: 10px; position: absolute; border-radius: 50%; background: var(--accent-red); top: -5px; right: -5px; }
.copyright { margin: 0; font-size: 13px; }
@media (max-width: 1400px) { .footer-notice { flex-basis: 240px; } .footer-notice span { text-align: left; } }
@media (max-width: 1199px) {
    #footer { padding: 30px 0; }
    #footer .container { padding-left: 15px; }
    .footer-logo-block { position: relative; top: auto; left: auto; width: 100%; margin-top: 10px; order: 3; }
    .footer-logo { display: none; }
}
@media (max-width: 998px) { .footer-about { flex-basis: 60%; } .footer-notice { flex-basis: 30%; } }
@media (max-width: 639px) { .footer-about, .footer-notice { flex-basis: 100%; } }

/* ---------- landing page (dark-blue front door) ---------- */
body.page-landing { background: var(--landing-bg); color: #fff; }
.page-landing a { color: #fff; }
#xwrapper { width: 100%; position: relative; overflow: hidden; }
#xheader { height: 60px; margin-bottom: 25px; position: relative; z-index: 99; }
#xheader .container { position: relative; }
#xheader #xlogo { display: inline-flex; align-items: center; height: 40px; margin: 10px 0; float: left; color: #fff; }
#xheader #xlogo img { height: 100%; width: auto; margin-right: 10px; }
#xheader #xlogo span { font-size: 20px; font-weight: 600; }
.xheader_menu { float: right; margin-left: 30px; }
.xheader_menu ul { list-style: none; margin: 0; padding: 0; }
.xheader_menu li { display: inline-block; margin: 0 0 0 20px; }
.xheader_menu li a { height: 60px; line-height: 60px; padding: 0 10px; display: inline-block; font-size: 14px; font-weight: 500; letter-spacing: 1px; color: #fff; }
.xheader_menu li a:hover { color: var(--primary); }
#xheader_browser { float: right; height: 60px; margin-left: 20px; display: none; }
.header-btn { height: 34px; margin: 13px 0; line-height: 34px; padding: 0 12px; background: #fff; font-size: 12px; border-radius: 3px; color: var(--text); cursor: pointer; border: 0; }
#xmain-wrapper { position: relative; }
#xmain-wrapper::before { content: ""; position: absolute; top: -85px; left: 0; right: 0; height: 590px; z-index: 0; background: radial-gradient(ellipse at 20% 30%, rgba(62, 138, 250, .45), transparent 55%), radial-gradient(ellipse at 80% 15%, rgba(110, 80, 220, .35), transparent 50%), linear-gradient(180deg, #0e2a54 0%, var(--landing-bg) 100%); }
#xmain-wrapper::after { content: ""; position: absolute; top: -85px; left: 0; right: 0; height: 590px; z-index: 1; background: linear-gradient(180deg, rgba(22, 54, 98, 0) 50%, var(--landing-bg) 100%); }
#xmain-wrapper .container { position: relative; z-index: 3; }
#mw-home { padding: 50px 0; max-width: 1140px; margin: 0 auto; }
.mwh-logo { margin-bottom: 20px; text-align: center; }
.mwh-logo img { height: 80px; width: auto; }
.mw-sitename { font-size: 28px; font-weight: 700; text-align: center; margin: 0 0 10px; line-height: 1.3em; }
.mw-intro { text-align: center; font-size: 16px; line-height: 1.5em; max-width: 820px; margin: 0 auto 30px; opacity: .85; }
.home-search { margin: 10px 0 30px; position: relative; }
.home-search .search-input { height: 50px; border-radius: 5px; padding: 0 100px 0 20px; font-size: 16px; }
.home-search .search-submit { position: absolute; top: 0; right: 0; bottom: 0; width: 80px; background: var(--primary); border: 0; border-radius: 0 5px 5px 0; color: #fff; font-size: 22px; cursor: pointer; }
.home-search .search-submit:hover { background: var(--primary-dark); }
.social-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.social-btn { padding: 8px 18px; border-radius: 30px; font-size: 13px; font-weight: 500; color: #fff; transition: transform .2s; }
.social-btn:hover { color: #fff; transform: translateY(-2px); }
.btn-twitter { background: #1da1f2; }
.btn-facebook { background: #1877f2; }
.btn-whatsapp { background: #25d366; }
.btn-telegram { background: #0088cc; }
.mw-buttons { text-align: center; margin-bottom: 3rem; }
.mw-buttons .btn-primary { font-weight: 600; border: 4px solid #fff; background: var(--primary); min-width: 250px; color: #fff; padding: 15px 30px; border-radius: 50px; font-size: 1.25rem; transition: all .2s; }
.mw-buttons .btn-primary:hover { transform: scale(1.08); box-shadow: 0 0 20px rgba(62, 138, 250, .6); }
.mw-body { font-size: 16px; line-height: 1.5em; margin-bottom: 3rem; }
.mw-body h2 { font-size: 20px; font-weight: 600; position: relative; padding-left: 30px; margin: 30px 0 15px; }
.mw-body h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); left: 0; position: absolute; top: 8px; }
.mw-body h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.mw-body p { margin: 0 0 1em; }
.landing-genres { display: flex; flex-wrap: wrap; gap: 8px; }
.landing-genres a { background: rgba(255, 255, 255, .1); padding: 8px 14px; border-radius: 30px; font-size: 14px; }
.landing-genres a:hover { background: var(--primary); color: #fff; }
.landing-faq details { background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 15px 20px; margin-bottom: 10px; }
.landing-faq summary { cursor: pointer; list-style: none; }
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary h3 { display: inline; margin: 0; font-size: 17px; }
.landing-faq p { margin: 10px 0 0; opacity: .85; }
.landing-links a { text-decoration: underline; }
.landing-links a:hover { color: var(--primary); }
.landing-network { margin-bottom: 3rem; }
.landing-network h2 { font-size: 20px; font-weight: 600; margin: 0 0 15px; text-align: center; }
.landing-network-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.landing-network-card { display: block; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 20px; text-align: center; border: 1px solid rgba(255, 255, 255, .1); transition: background .2s; }
.landing-network-card:hover { background: var(--primary); color: #fff; }
.landing-network-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.landing-network-card span { font-size: 13px; opacity: .7; }
@media (max-width: 780px) {
    #xmain-wrapper::before, #xmain-wrapper::after { height: 400px; }
    #xheader_browser { display: inline-block; }
    .xheader_menu { display: none; position: absolute; width: 220px; top: 60px; right: 15px; background: #fff; border-radius: 5px; padding: 10px 0; margin: 0; z-index: 100; float: none; }
    .xheader_menu.active { display: block; }
    .xheader_menu li { display: block; margin: 0; text-align: center; }
    .xheader_menu li a { height: auto; line-height: normal; padding: 10px 20px; color: var(--text); }
    #xheader #xlogo { height: 30px; margin: 15px 0; }
    #xheader #xlogo span { font-size: 16px; }
    #mw-home { padding-top: 20px; }
    .mw-sitename { font-size: 22px; }
    .home-search .search-input { padding-right: 65px; padding-left: 15px; }
    .home-search .search-submit { width: 50px; font-size: 18px; }
    .mw-buttons .btn { font-size: 18px; padding: 12px 40px; min-width: 0; }
    .mw-body { font-size: 14px; }
}

/* ---------- responsive: detail / player ---------- */
@media (max-width: 1199px) {
    .detail_page-infor { font-size: 14px; }
    .heading-name { font-size: 30px; }
    .cover_follow { height: 600px; }
    .slc-seasons { width: 23%; }
    .slce-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .seasons-list { padding: 20px; gap: 20px; }
    #main-wrapper { min-height: calc(100vh - 378px); }
}
@media (max-width: 998px) {
    #header { margin-bottom: 25px; }
    .cover_follow { height: 450px; }
    .slce-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .block_area-header-tabs { margin-bottom: 20px; }
}
@media (max-width: 759px) {
    .dp-i-c-poster { width: 140px; }
    .dp-i-c-right { padding-left: 160px; }
    .cover_follow { height: 350px; }
    .dp-w-c-play { background: #fff; color: var(--text); }
    .seasons-list { flex-direction: column; }
    .slc-seasons { width: 100%; }
    .slcs-ul { display: flex; flex-wrap: wrap; gap: 5px; max-height: none; }
    .slcs-ul li { margin: 0; width: 18%; }
    .slcs-ul li a { padding: 10px 12px; text-align: center; }
    .detail_page-servers .name { position: static; display: block; margin-bottom: 10px; }
    .server-selector { padding-left: 0; }
    .server-btn { flex: 1 1 45%; }
    .container-404 { margin: 80px auto; }
    #header { margin-bottom: 20px; }
}
@media (max-width: 639px) {
    .block_area { margin-bottom: 40px; }
    .cat-heading { font-size: 24px; }
    .dp-i-c-poster { display: none; }
    .dp-i-c-right { padding: 0; }
    .dp-w-c-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
    .dp-w-c-play .icon { width: 28px; height: 28px; margin-top: 16px; margin-left: 3px; }
    .heading-name { font-size: 24px; line-height: 1.4em; }
    .cover_follow { height: 400px; }
    .prebreadcrumb { display: none; }
    .elements { grid-template-columns: 1fr; }
    .dp-i-content { padding: 20px; }
    .watch_page .dp-i-c-poster { display: block; position: relative; top: auto; left: auto; width: 100px; margin-bottom: 15px; }
    .watching .container { padding: 0; }
    .watching { margin-top: -20px; }
    .alert { border-radius: 0; }
    .detail_page-servers { border-radius: 0; margin: 0 -15px; }
    .watch_page .seasons-list { margin: 2px -15px; padding: 15px; }
    .slcs-ul li { width: 31%; }
    .slce-list { grid-template-columns: 1fr; }
    .pre-pagination { margin: 20px 0; }
    .page-link { min-width: 34px; line-height: 34px; font-size: 14px; padding: 0 8px; }
    .page-item { margin: 2px; }
    #main-wrapper { margin-bottom: 30px; }
    .c4-big { font-size: 80px; }
    .c4-medium { font-size: 18px; }
    .container-404 { margin: 50px auto; }
    .information_page { padding: 20px; }
    .bah-search { flex-basis: 100%; }
}
@media (max-width: 479px) {
    .block_area-header { gap: 8px 12px; }
    .cat-heading { font-size: 20px; }
    .bah-filter .btn-in-headcat { font-size: 0; }
    .bah-filter .btn-in-headcat .icon { font-size: 14px; margin: 0; }
    .bah-setting .btn { flex: 1 1 45%; margin: 1%; }
    .bah-setting { width: 100%; }
    .dp-w-cover { padding-bottom: 0; height: 200px; }
    .cover_follow { height: 330px; }
    .dp-i-c-stick .btn-focus { width: 100%; }
    .watch-btn-wrapper { width: 100%; }
    .dp-i-stats .item { padding-right: 8px; border-right: 1px solid #ccc; margin-right: 0; }
    .dp-i-stats .item:last-child { border-right: 0; }
    .server-btn { flex-basis: 100%; }
}
