/*
Theme Name: MrLee
Telegram : https://t.me/immrlee
*/

header.main .hbox .logo {
    padding: 10px 16px;
}

header.main .hbox .logo img.phimmoi-logo,
header.responsive .logo img.phimmoi-logo {
    height: 50px;
    width: auto;
}

footer.main .fcmpbox .primary .fotlogo .logo img.phimmoi-logo {
    max-width: 220px;
    height: auto;
}

/* Brand wordmark khi brand chưa tải logo riêng */
.pm-brand-wordmark {
    display: inline-flex;
    align-items: center;
    height: 50px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    white-space: nowrap;
}

header.responsive .logo .pm-brand-wordmark {
    font-size: 24px;
}

footer.main .fotlogo .logo .pm-brand-wordmark {
    height: auto;
    font-size: 26px;
}

.pm-mfoot-logo .pm-brand-wordmark {
    font-size: 20px;
    height: auto;
}

/* Đoạn giới thiệu riêng của từng brand dưới H1 trang chủ */
.pm-brand-intro {
    max-width: 980px;
    margin: -4px 0 18px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .pm-brand-intro {
        margin: -2px 0 12px;
    }
}

#single_relacionados .owl-item {
    display: flex;
    align-items: stretch;
}

#single_relacionados article,
.srelacionados article {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0 8px 4px;
    box-sizing: border-box;
}

.srelacionados article:hover {
    transform: none;
}

.srelacionados article a {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.srelacionados article img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center center;
    background: rgba(255, 255, 255, 0.06);
}

#playeroptionsul li .flag {
    float: right;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#playeroptionsul li .flag .fa-film {
    font-size: 16px;
    line-height: 1;
    color: #f0f3f8;
}

#playeroptionsul li.is-failed {
    opacity: 0.45;
}

.srelacionados .pm-related-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    height: 2.7em;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    text-align: center;
}

@media (min-width: 769px) {
    header.main .hbox .fix-hidden {
        display: flex;
        align-items: center;
    }

    header.main .hbox .logo,
    header.main .head-main-nav,
    header.main .headitems {
        float: none;
    }

    header.main .head-main-nav {
        flex: 1 1 auto;
        min-width: 0;
        height: 70px;
    }

    header.main .head-main-nav ul.main-header {
        display: flex;
        float: none;
        height: 70px;
    }

    header.main .headitems,
    header.main .headitems.register_active {
        flex: 0 0 260px;
        width: 260px;
        margin-left: 12px;
    }

    header.main .hbox .search,
    header.main .hbox .register_active > .search {
        float: none;
        width: 100%;
        padding: 0;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    header.main .head-main-nav ul.main-header li a {
        padding-left: 12px;
        padding-right: 12px;
    }

    header.main .headitems,
    header.main .headitems.register_active {
        flex-basis: 210px;
        width: 210px;
    }
}

.pm-mfoot {
    display: none;
}

@media (max-width: 768px) {
    .pm-mfoot {
        clear: both;
        display: flow-root;
        background: rgba(15, 15, 15, 0.96);
        color: rgba(255, 255, 255, 0.72);
        border-top: 3px solid var(--pm-brand, #408bea);
        padding: 28px 16px 24px;
    }

    .pm-mfoot-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 14px;
    }

    .pm-mfoot-logo img {
        height: 44px;
        width: auto;
    }

    .pm-mfoot-text {
        margin: 0 0 18px;
        font-size: 13px;
        line-height: 1.5;
        text-align: center;
    }

    .pm-mfoot-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px 16px;
    }

    .pm-mfoot-cols .item:last-child {
        grid-column: 1 / -1;
    }

    .pm-mfoot h3 {
        margin: 0 0 8px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .pm-mfoot ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .pm-mfoot li {
        margin: 0;
        float: none;
    }

    .pm-mfoot a {
        color: var(--pm-brand, #408bea);
        font-size: 14px;
        line-height: 1.85;
        text-decoration: none;
    }

    .pm-mfoot-links {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 14px;
        margin-top: 16px;
    }

    .pm-mfoot-copy {
        margin-top: 16px;
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
    }

    .pm-mfoot a.pm-mfoot-top {
        display: block;
        width: fit-content;
        margin: 14px auto 0;
        padding: 8px 14px;
        border: 1px solid var(--pm-brand, #408bea);
        border-radius: 999px;
        background: var(--pm-brand, #408bea);
        color: #fff;
        font-size: 13px;
    }
}

.sheader .poster > span.quality {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.2;
    text-transform: uppercase;
}

.w_item_a .image > span.trangthai {
    top: 8px;
    right: auto;
    bottom: auto;
    left: 8px;
    z-index: 2;
}

.slider article.item .image > span.quality {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.2;
    text-transform: uppercase;
}

span.quality.pm-q-fhd {
    background: #cd2026;
    color: #fff;
}

span.quality.pm-q-hd {
    background: #1565c0;
    color: #fff;
}

span.quality.pm-q-4k {
    background: #6d28d9;
    color: #fff;
}

span.quality.pm-q-sd {
    background: #546e7a;
    color: #fff;
}

span.quality.pm-q-cam {
    background: #e65100;
    color: #fff;
}

/* Reserve media space and stop mobile horizontal overflow (SEO audit 2026-11-01) */
.sheader .poster img {
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.slider article.item .image img {
    height: auto;
}

/* Show the first single-page tab before the tab script runs (prevents CLS). */
#episodes.fixidtab {
    display: block;
}

/* Keep the hero slider's box before owl carousel builds it (prevents CLS). */
#slider-movies-tvshows:not(.pm-carousel-ready) {
    display: block;
    visibility: hidden;
    overflow: hidden;
    contain: size layout;
    aspect-ratio: 799 / 252;
}

@media (max-width: 599px) {
    #slider-movies-tvshows:not(.pm-carousel-ready) {
        aspect-ratio: 369 / 236;
    }
}

@media (max-width: 767px) {
    html,
    body {
        overflow-x: hidden;
    }

    .dtsingle .content,
    .dtsingle .sidebar,
    .module {
        max-width: 100%;
    }

    .mCustomScrollbar .mCSB_scrollTools {
        display: none !important;
    }
}

/* Per-episode fact sheet (replaces the duplicated series synopsis) */
.pm-episode-facts .pm-episode-lead {
    margin: 0 0 14px;
    line-height: 1.65;
}

.pm-episode-facts .pm-episode-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin: 0;
}

.pm-episode-facts .pm-episode-meta > div {
    display: flex;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pm-episode-facts dt {
    flex: 0 0 88px;
    margin: 0;
    color: #9aa0a6;
}

.pm-episode-facts dd {
    margin: 0;
    min-width: 0;
}

.pm-episode-facts .pm-episode-more {
    margin: 14px 0 0;
}

@media (max-width: 767px) {
    .pm-episode-facts .pm-episode-meta {
        grid-template-columns: 1fr;
    }
}

/* Freshness line under the summary (movies, series). */
.pm-updated {
    margin: 10px 0 0;
    font-size: 12px;
    color: #9aa0a6;
}

.pm-updated time {
    color: #e0e0e0;
}

/* Editorial byline: editor, data source, last update. */
.pm-byline {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: #9aa0a6;
}

.pm-byline a {
    color: #c3c7cc;
    text-decoration: underline;
    text-decoration-color: rgba(195, 199, 204, 0.35);
    text-underline-offset: 2px;
}

.pm-byline a:hover {
    color: #fff;
}

.pm-byline time {
    color: #e0e0e0;
}

.pm-byline .pm-dot {
    margin: 0 4px;
    opacity: 0.6;
}

/* Fixed editorial links above the copyright line. */
.pm-editorial {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin: 0 0 10px;
    font-size: 12px;
}

.pm-editorial a {
    color: #9aa0a6;
}

.pm-editorial a:hover {
    color: #e0e0e0;
}
