body,
html {
    background-color: #02080f;
}
#header {
    background: #333333;
}
.main-menu {
    background: #2d2d2d;
}
.main-menu .menu-item.active > a,
.main-menu .menu-item a:hover {
    color: #c58560;
}
.title-box .tophot,
.right-content .block .caption {
    color: #da966e;
}
.main-menu .menu-item .sub-menu {
    background-color: #2d2d2d;
}
.list-films .item .icon-play,
.list-films .label-quality {
    background: #d6a24a;
}
.list-films .label-quality:after {
    border-left: 10px solid #d6a24a;
}
#film_hot .item .label,
#film_related .item .label,
.film-new .item .label {
    background: #a3765d;
    border-bottom: 2px solid #96674f;
}
.list-films .item .poster-link {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
}
.list-films .item .poster-link > .img-film {
    display: block;
}
.list-films .item .poster-badges {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.list-films .item .poster-badge {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    color: #fff;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 1px 2px #000;
}
.list-films .item .poster-badge--main {
    position: absolute;
    top: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    padding: 3px 6px;
    border: 1px solid #e8a35b;
    border-radius: 16px;
    background: rgba(35, 25, 20, .88);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .65);
    font-size: 10px;
}
.list-films .item .poster-badges__audio {
    position: absolute;
    bottom: 28px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-width: calc(100% - 12px);
    transform: translateX(-50%);
}
.list-films.film-hot .item .poster-badges__audio {
    bottom: 61px;
}
.list-films .item .poster-badge--audio {
    position: relative;
    min-width: 105px;
    padding: 6px 11px;
    border: 1px solid #e9b560;
    border-radius: 999px;
    background: linear-gradient(160deg, #8b6130 0%, #342314 47%, #171311 100%);
    box-shadow: inset 0 1px 1px rgba(255, 241, 192, .65), inset 0 -2px 4px rgba(0, 0, 0, .5), 0 2px 9px rgba(0, 0, 0, .75), 0 0 7px rgba(239, 174, 74, .5);
    color: #fff0cf;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 1px 2px #160e08, 0 0 5px rgba(255, 220, 148, .6);
}
.list-films .item .poster-badge--dub {
    border-color: #f2d99b;
    background: linear-gradient(160deg, #355c66 0%, #18353d 50%, #091c23 100%);
    box-shadow: inset 0 1px 1px rgba(255, 252, 225, .7), inset 0 -2px 4px rgba(0, 0, 0, .5), 0 2px 9px rgba(0, 0, 0, .8), 0 0 7px rgba(109, 194, 209, .4);
    color: #fff6e1;
}
.list-films .item .poster-badge--dub .fa {
    margin-right: 4px;
    color: #fff9e8;
    font-size: 15px;
    text-shadow: 0 0 4px rgba(255, 234, 174, .85);
}
@media (max-width: 360px) {
    .list-films .item .poster-badge--audio {
        min-width: 0;
        padding: 5px 7px;
        font-size: 11px;
    }
    .list-films .item .poster-badge--dub .fa { font-size: 13px; }
}
.list-films.film-new .item .name {
    background: #181818;
}
.list-film li:nth-child(even) {
    background: rgb(24 24 24);
}
.title-box .tab.active,
.title-box .tab:hover {
    color: #da966e;
    border-bottom: 2px solid #907863;
}
.most-view .list-film .item .number-rank {
    background: #c58560;
}
.breadcrumbs {
    background: #181818;
}
#page-info .blockbody .title {
    color: #ff9658;
}
.btn-download-link {
}
.btn-stream-link {
}
.dinfo .film-status {
}
#page-info .latest-episode > a:hover,
.list-episode > a:hover,
.list-episode > a.current,
ul.server-backup li span.active,
ul.server-backup li span:hover {
    background: #c58560;
}

#player-video .details .name h1 a,
#player-video .details .name span {
    color: #da966e;
}
.film-note {
    border: 1px solid #e8a568;
    background: #181818;
}
#player-video .bottom-content {
    background: #181818;
}
.mp-tips {
    color: #fff;
}
#suggestions ul.autocomplete-list li span,
#suggestions ul.autocomplete-list li strong,
#suggestions ul.autocomplete-list li.last a {
    color: #da966e;
}
.most-view .list-film .item a:hover,
.list-film .film-item-ver .name a:hover {
    color: #da966e;
}
.most-view .tabs .tab:hover {
    background: #333;
}
#footer {
    color: #848484;
    background: #2d2d2d;
}
#footer .info {
    background: #353535;
}


@media (min-width: 250px) and (max-width: 979px) {
    #header .logo {
        display: block;
        text-align: center;
    }
    #header .logo img {
        width: 120px;
        height: 30px !important;
        margin-bottom: 0 !important;
    }
}

.server-episode-block {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #da843d;
}

/* Match the reference layout while keeping the original theme palette. */
#header .suggest-dns { display: none; }
@media (min-width: 980px) {
    #header.deskContent .logo img { width: 200px; height: auto; max-width: 200px; }
}
.breadcrumbs { display: flex; align-items: center; height: 36px; min-height: 36px; padding: 8px 15px; margin-bottom: 20px; background: #090909; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs a { float: none; padding: 0 5px 0 0; line-height: 20px; color: #d39b76; text-transform: none; }
.breadcrumbs a:after { position: static; height: auto; margin-left: 5px; }
.breadcrumbs .active { float: none; margin: 0; padding: 0; line-height: 20px; text-transform: none; }
.list-films.film-new .item .name-real,
.list-films.film-hot .item .name-real { display: block; color: #c6c6c6; font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.list-films.film-new .item .name a,
.list-films.film-hot .item .title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.list-films.film-new .item .name { text-align: center; }
.list-films.film-hot .item .text { white-space: normal; }
#page-info .poster .play-button { position: absolute; top: 37%; left: 38%; padding: 5px 20px; background: rgba(0,0,0,.3); border-radius: 10px; color: #fff; font-size: 36px; }
#page-info .poster .buttons { padding: 0; }
#page-info .poster .buttons li,
#page-info .poster .btn-stream-link { display: block; width: 100%; margin: 0; }
#page-info .poster .btn-stream-link { border: 0; border-radius: 0; background: #dd003f; }
#page-info .poster .btn-stream-link:hover { background: #bd0037; }
#page-info .dinfo dt { clear: left; }
#page-info .dinfo dd { min-height: 26px; }
.viewing-note { margin: 10px 0 0; padding: 9px; border: 1px solid #e8a568; border-radius: 4px; background: #444952; color: #ddd; }
.viewing-note i, .viewing-note a { color: #e8a568; }
.movie-showtime-note { line-height: 1.5; }
.movie-showtime-note strong { color: #ffd281; }
.movie-showtime-note i { margin-right: 5px; }
.cc-warning {
    margin: 8px 0 0;
    padding: 9px;
    border: 1px solid #ff9601;
    border-radius: 4px;
    background: #1e1e1e;
    color: #f0f0f0;
}
.cc-warning p { margin: 0; font-size: 14px; line-height: 1.5; }
.cc-warning i, .cc-warning a { color: #ffad35; }
.cc-warning a:hover { color: #ffd18a; }
#page-info .film-note { border-radius: 4px; background: #1e1e1e; color: #d2d2d2; }
#page-info .detail { margin-top: 20px; }
#page-info #info-film { background: #282828; color: #bcbcbc; line-height: 1.5; }
#page-info #info-film .heading { color: #d99a74; font-size: 13px; font-weight: 700; text-transform: uppercase; }
#page-info #info-film .tab { color: #bcbcbc; }
#page-info .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 12px 0; }
#page-info .tags li { float: none; margin: 0; }
#page-info .tags li.caption { padding: 0; color: #e5e5e5; font-weight: 700; }
#page-info .tags .tag-item h2 { padding: 0; background: transparent; color: #e5e5e5; font-size: 12px; font-weight: 400; }
.movie-search-hint { padding: 12px; margin: 10px 0 20px; border-radius: 4px; background: #444952; color: #c9c9c9; font-size: 12px; }
.movie-search-hint a { color: #e8a568; font-weight: 700; }
#page-info .comment-heading { margin: 24px 0 14px; color: #ddd; font-size: 20px; font-weight: 700; }
#page-info .box-comment { width: 100%; min-height: 40px; background: #1e1e1e; }
#page-info .list-films.film-hot { margin-top: 22px; }
#player-video .comment-heading { margin: 24px 0 14px; color: #ddd; font-size: 20px; font-weight: 700; }
#player-video .box-comment { width: 100%; min-height: 40px; background: #1e1e1e; }
.main-content > .container > #box-player { width: 100%; clear: both; margin-bottom: 10px; }
.main-content > .container > #box-player #player { width: 100%; background: #000; }
.watch-server-picker { display: block; clear: both; width: fit-content; max-width: 100%; margin: 10px 0; padding: 5px; border: 1px solid #a4775d; border-radius: 5px; background: #181818; }
.watch-server-picker > span { display: block; margin-bottom: 5px; }
.watch-server-options { display: flex; flex-wrap: wrap; gap: 5px; }
.watch-server-options .streaming-server { border-radius: 3px; }
.watch-server-note { padding: 10px; margin-bottom: 10px; border: 1px solid #e8a568; border-radius: 4px; background: #444952; font-weight: bold; }
#player-video { position: relative; }
#player-video .watch-server-note { padding-right: 105px; }
#player-video .div-control { position: absolute; top: 5px; right: 4px; margin: 0; }
#player-video .details .short-description { margin: 8px 0 18px; color: #bbb; font-size: 13px; line-height: 1.5; }
#player-video .list-episode { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
#player-video .list-episode > a { float: none; margin: 0; }
@media (max-width: 979px) {
    .main-content > .container > #box-player { margin-top: 10px; }
}
@media (max-width: 479px) {
    #page-info .poster .play-button { left: 43%; }
    #player-video .list-episode { gap: 7px; }
    #player-video .watch-server-note { padding-right: 10px; }
    #player-video .div-control { position: static; min-height: 30px; }
}

/* Keep listing cards evenly spaced at mobile and tablet widths. */
@media (max-width: 979px) {
    #page-info .list-films.film-new > ul {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px 10px;
        margin: 0;
    }
    #page-info .list-films.film-new > ul > .item {
        float: none;
        width: auto !important;
        height: auto;
        margin: 0 !important;
    }
    #page-info .list-films.film-new > ul > .item .img-film {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 160 / 214;
        object-fit: cover;
    }
}
@media (max-width: 719px) {
    #page-info .list-films.film-new > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
    #page-info .list-films.film-new > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
    .breadcrumbs { height: auto; min-height: 36px; gap: 2px; padding: 8px 10px; }
    .breadcrumbs li { min-width: 0; }
    .breadcrumbs a, .breadcrumbs a span { margin: 0; white-space: nowrap; }
    .breadcrumbs .active { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    #page-info .blockbody .poster { margin: 0 0 10px; }
    #page-info .poster .adspruce-streamlink,
    #page-info .poster picture { display: block; width: 100%; }
    #page-info .poster picture img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 1.05;
        object-fit: cover;
        object-position: 70% center;
    }
    #page-info .poster .play-button {
        top: calc(50% - 20px);
        left: 50%;
        transform: translate(-50%, -50%);
    }
    #page-info .poster .btn-stream-link { border-radius: 0 0 4px 4px; }
}

/* Movie comments are shared by the detail and watch pages for each film. */
.movie-comments { clear: both; margin: 24px 0; color: #e7e7e7; }
.movie-comments .comment-heading { margin: 0 0 12px !important; font-size: 20px; font-weight: 700; }
.movie-comment-count { display: inline-block; padding: 1px 7px; border-radius: 12px; background: #a3765d; color: #fff; font-size: 12px; vertical-align: middle; }
.movie-showtime-comment { display: flex; gap: 14px; margin: 0 0 18px; padding: 16px; border: 1px solid #775a29; border-radius: 6px; background: linear-gradient(135deg, #2b261d, #1e1d1b); color: #e9e4dc; }
.movie-showtime-comment-icon { flex: 0 0 36px; color: #e6a846; font-size: 27px; line-height: 1.3; }
.movie-showtime-comment-body { min-width: 0; }
.movie-showtime-comment-author { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.movie-showtime-comment-author strong { color: #ffda82; font-size: 14px; }
.movie-showtime-comment-author span { padding: 3px 8px; border-radius: 12px; background: #ffd64d; color: #251900; font-size: 10px; font-weight: 700; }
.movie-showtime-comment p { margin: 0 0 7px; line-height: 1.5; }
.movie-showtime-comment ul { margin: 0 0 9px; padding: 0; list-style: none; }
.movie-showtime-comment li { margin: 3px 0; font-size: 13px; line-height: 1.5; }
.movie-showtime-comment a { color: #f2bd6c; font-size: 12px; }
.movie-showtime-comment a:hover { color: #ffdb9e; }
.movie-comment-panel { margin-bottom: 18px; padding: 14px; border: 1px solid #393939; border-radius: 6px; background: #1e1e1e; }
.movie-comment-panel h4 { margin: 0 0 14px; color: #f2f2f2; font-size: 17px; font-weight: 700; }
.movie-comment-form label { display: block; margin: 0 0 8px; color: #bdbdbd; font-size: 13px; font-weight: 600; }
.movie-comment-form textarea,
.movie-comment-form input { display: block; width: 100%; margin: 8px 0 14px; padding: 11px 13px; border: 1px solid #3b3b3b; border-radius: 8px; outline: none; background: #202020; color: #f4f4f4; font: inherit; }
.movie-comment-form textarea { min-height: 105px; resize: vertical; }
.movie-comment-form textarea:focus,
.movie-comment-form input:focus { border-color: #c58560; box-shadow: 0 0 0 2px rgba(197,133,96,.15); }
.movie-comment-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.movie-comment-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.movie-comment-submit,
.movie-comment-more { padding: 9px 16px; border: 0; border-radius: 4px; background: #bd7c4e; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.movie-comment-submit:hover,
.movie-comment-more:hover { background: #d08a57; }
.movie-comment-submit:disabled,
.movie-comment-more:disabled { opacity: .6; cursor: wait; }
.movie-comment-feedback { min-height: 20px; margin: 0 0 8px; font-size: 13px; }
.movie-comment-feedback.is-error { color: #ff9292; }
.movie-comment-feedback.is-success { color: #82d8a0; }
.movie-comment-note { margin: 10px 0 0; color: #a7a7a7; font-size: 12px; }
.movie-comment-list { display: grid; gap: 10px; }
.movie-comment-empty { padding: 18px; border-radius: 6px; background: #1e1e1e; color: #aaa; font-size: 13px; }
.movie-comment { display: flex; gap: 11px; padding: 14px; border: 1px solid #353535; border-radius: 6px; background: #1e1e1e; }
.movie-comment-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: #a3765d; color: #fff; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.movie-comment-body { min-width: 0; flex: 1; }
.movie-comment-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.movie-comment-meta strong { color: #fff; font-size: 13px; }
.movie-comment-meta time { color: #999; font-size: 11px; }
.movie-comment-body p { color: #ddd; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.movie-comment-more { display: block; margin: 14px auto 0; }
.box-rating .rating-default-note { display: block; clear: both; padding: 5px 0 0 5px; color: #a7a7a7; font-size: 11px; }
@media (max-width: 479px) {
    .movie-showtime-comment { gap: 10px; padding: 12px; }
    .movie-showtime-comment-icon { flex-basis: 28px; font-size: 22px; }
    .movie-comment-panel { padding: 12px; }
    .movie-comment-fields { grid-template-columns: 1fr; gap: 0; }
    .list-films.film-hot #film_related .item .img-film {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }
}

.breadcrumbs .active h1 {
    float: none;
    display: inline;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-transform: none;
}
h1.site-logo {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}
