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: #522e75;
}
.list-films .label-quality:after {
    border-left: 10px solid #522e75;
}
#film_hot .item .label,
#film_related .item .label,
.film-new .item .label {
    background: #a3765d;
    border-bottom: 2px solid #96674f;
}
.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;
}
/* removed empty rules: .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;
}

/* Live search dropdown */
.search-container {
    position: relative;
}
#result,
#msuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #333333;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-radius: 6px;
    margin-top: 8px;
    padding: 6px 0;
}
#result a,
#msuggestions a {
    display: block;
    color: #ddd;
    text-decoration: none;
}
#result .rowsearch,
#msuggestions .rowsearch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}
#result .rowsearch:hover,
#msuggestions .rowsearch:hover {
    background-color: #1f1e1e;
}
#result .column.lefts,
#msuggestions .column.lefts {
    width: 40px;
    flex: 0 0 40px;
}
#result .column.rights,
#msuggestions .column.rights {
    flex: 1 1 auto;
}
#result .column.rights p,
#msuggestions .column.rights p {
    margin: 0 0 2px 0;
    color: #fff;
    font-weight: 500;
}
@media (max-width: 479px) {
    #msuggestions { position: static; margin-top: 8px; }
}

/* Responsive container */
.container {
    width: 100%;
    max-width: 1200px;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid for film list */
.list-films {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.list-films .item {
    position: relative;
    flex: 0 0 calc(16.66% - 10px);
    max-width: calc(16.66% - 10px);
}

@media (min-width: 992px) and (max-width: 1199px) {
    .list-films .item { flex: 0 0 calc(20% - 10px); max-width: calc(20% - 10px); }
}
@media (min-width: 768px) and (max-width: 991px) {
    .list-films .item { flex: 0 0 calc(25% - 10px); max-width: calc(25% - 10px); }
}
@media (min-width: 576px) and (max-width: 767px) {
    .list-films .item { flex: 0 0 calc(33.33% - 10px); max-width: calc(33.33% - 10px); }
}
@media (max-width: 575px) {
    .list-films .item { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
}

.list-films .item .img-film {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.list-films .label-quality { bottom: 8px; left: 0; }
.film-new .item .label { top: 8px; left: 0; }

.list-films.film-new .item .name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
