body {
    font-family: "Roboto", sans-serif;
    padding-top: 90px;
}

.myui-header__top {
    position: fixed;
}

body.active {
    padding-top: 60px;
}

[class*=col-],
.myui-content__list li,
.myui-vodlist__media.col li {
    padding: 10px
}

.btn {
    border-radius: 5px;
}

.myui-vodlist__thumb {
    border-radius: 5px;
    padding-top: 150%;
    background: url(/themes/xiao/img/0e1ec6516.gif) no-repeat;
}

.myui-vodlist__thumb.square {
    padding-top: 100%;
    background: url(/themes/xiao/img/load_f.png) no-repeat;
}

.myui-vodlist__thumb.wide {
    padding-top: 60%;
    background: url(/themes/xiao/img/load_w.png) no-repeat;
}

.myui-vodlist__thumb.actor {
    padding-top: 140%;
}

.flickity-prev-next-button.previous {
    left: 10px;
}

.flickity-prev-next-button.next {
    right: 10px;
}

.myui-sidebar {
    padding: 0 0 0 20px;
}

.myui-panel {
    margin-bottom: 20px;
    border-radius: 5px;
}

.myui-panel-mb {
    margin-bottom: 20px;
}

.myui-player__item .fixed {
    width: 500px;
}

.myui-vodlist__text li a,
.myui-vodlist__media li {
    padding: 10px 0;
}

.myui-screen__list {
    padding: 10px 10px 0;
}

.myui-screen__list li {
    margin-bottom: 10px;
    margin-right: 10px;
}

.myui-page {
    padding: 0 10px;
}

.myui-extra {
    right: 20px;
    bottom: 30px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1920px;
    }

    .container {
        padding-left: 80px;
        padding-right: 80px;
    }

    .container.min {
        width: 1200px;
        padding: 0;
    }
}

@media (max-width: 767px) {

    body,
    body.active {
        padding-bottom: 50px;
    }

    [class*=col-],
    .myui-panel,
    .myui-content__list li {
        padding: 5px
    }

    .flickity-prev-next-button.previous {
        left: 5px;
    }

    .flickity-prev-next-button.next {
        right: 5px;
    }

    .myui-vodlist__text li a,
    .myui-vodlist__media li {
        padding: 10px 0;
    }

    .myui-screen__list {
        padding: 10px 5px 0;
    }

    .myui-screen__list li {
        margin-bottom: 5px;
        margin-right: 5px;
    }

    .myui-extra {
        right: 20px;
        bottom: 80px;
    }

    .myui-page {
        padding: 0 5px;
    }

    .pic-tag.pic-tag-top .tag {
        font-size: 10px;
        font-weight: 600;
    }
}

.myui-topbg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* === Phim4K.co v1 === */
.phim4k-brand-text {
    display: inline-flex;
    align-items: center;
    height: 60px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .2px;
}

.phim4k-app-menu > a {
    white-space: nowrap;
}

.phim4k-tag-trailer {
    background: #ff7a00 !important;
}

.phim4k-footer {
    margin-top: 25px;
    padding: 42px 0 28px;
    background: #171720;
    border-top: 1px solid rgba(255,255,255,.07);
}

.phim4k-footer-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.65fr) repeat(3, minmax(150px, 1fr));
    gap: 36px;
}

.phim4k-footer-title {
    display: inline-block;
    margin-bottom: 14px;
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.phim4k-footer-brand p,
.phim4k-footer-note p {
    max-width: 520px;
    margin: 0;
    color: #a5a5ad;
    font-size: 14px;
    line-height: 1.75;
}

.phim4k-footer-col h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.phim4k-footer-col a {
    display: block;
    width: fit-content;
    margin: 0 0 9px;
    color: #a5a5ad;
    line-height: 1.45;
}

.phim4k-footer-col a:hover,
.phim4k-footer-title:hover {
    color: #ff9900;
}

.phim4k-footer-copy {
    margin-top: 12px !important;
    color: #d8d8dd !important;
}

@media (min-width: 1200px) {
    .phim4k-header .myui-header__menu > li {
        margin-left: 24px;
    }
    .phim4k-header .myui-header__search {
        width: 230px;
        margin-left: 24px;
    }
}

@media (min-width: 1200px) and (max-width: 1500px) {
    .phim4k-header .myui-header__menu > li {
        margin-left: 16px;
    }
    .phim4k-header .myui-header__menu > li > a {
        font-size: 15px;
    }
    .phim4k-header .myui-header__search {
        width: 190px;
        margin-left: 16px;
    }
}

@media (max-width: 991px) {
    .phim4k-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .phim4k-footer {
        padding: 30px 5px 22px;
    }
    .phim4k-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .phim4k-footer-title {
        font-size: 21px;
    }
}


/* === Phim4K.co v2: header logo alignment === */
@media (min-width: 768px) {
    .phim4k-header .myui-header_bd {
        display: flex;
        align-items: center;
        min-height: 60px;
        width: 100%;
    }

    .phim4k-header .myui-header__logo,
    .phim4k-header .myui-header__menu,
    .phim4k-header .myui-header__search {
        float: none;
    }

    .phim4k-header .phim4k-header-logo {
        display: flex;
        align-items: center;
        align-self: stretch;
        min-width: 162px;
        height: 60px;
        flex: 0 0 auto;
    }

    .phim4k-header .phim4k-header-logo > .logo {
        display: flex;
        align-items: center;
        height: 60px;
        line-height: 1;
    }

    .phim4k-header .phim4k-header-logo img {
        display: block;
        max-width: 162px;
        object-fit: contain;
    }

    .phim4k-header .phim4k-header-menu {
        display: flex;
        align-items: center;
        height: 60px;
        flex: 0 1 auto;
        margin: 0;
    }

    .phim4k-header .phim4k-header-menu > li {
        float: none;
    }

    .phim4k-header .phim4k-header-search {
        flex: 0 0 auto;
        margin-top: 0;
        align-self: center;
    }
}


/* === Phim4K v3: catalog filter collapsed by default === */
.phim4k-catalog-filter .myui-panel__head {
    min-height: 54px;
}
.phim4k-catalog-filter .slideDown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    line-height: 1;
    transition: background .2s ease, color .2s ease;
}
.phim4k-catalog-filter .slideDown-btn:hover {
    background: rgba(255,153,0,.14);
    color: #ff9900;
}
.phim4k-catalog-filter #panel_filter .slideDown-box {
    padding-top: 4px;
}

/* === Phim4K v4: cinematic hero slider === */
.phim4k-hero {
    width: 100%;
    padding: 22px 0 14px;
    background: #20202c;
}

.phim4k-hero-carousel {
    position: relative;
    width: calc(100% - 160px);
    max-width: 1760px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    background: #111118;
    box-shadow: 0 18px 55px rgba(0,0,0,.28);
}

.phim4k-hero-carousel .carousel-inner {
    position: relative;
    overflow: hidden;
}

/* Bootstrap 3 in this theme does not ship the usual carousel transition CSS.
   Keep all slides layered and fade only the active one. */
.phim4k-hero-carousel .carousel-inner > .item {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease;
}

.phim4k-hero-carousel .carousel-inner > .item.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.phim4k-hero-slide {
    min-height: clamp(420px, 35vw, 610px);
}

.phim4k-hero-media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.phim4k-hero-image {
    width: 100%;
    height: 100%;
    min-height: clamp(420px, 35vw, 610px);
    object-fit: cover;
    object-position: center 28%;
    transform: scale(1.015);
    transition: transform 7s ease;
}

.phim4k-hero-carousel .item.active .phim4k-hero-image {
    transform: scale(1.055);
}

.phim4k-hero-shade {
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(12,12,18,.96) 0%, rgba(12,12,18,.82) 27%, rgba(12,12,18,.32) 56%, rgba(12,12,18,.08) 76%),
        linear-gradient(0deg, rgba(12,12,18,.82) 0%, rgba(12,12,18,.10) 42%, rgba(12,12,18,.10) 100%);
}

.phim4k-hero-copy {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(420px, 35vw, 610px);
    max-width: 680px;
    padding: 54px 64px 70px;
    color: #fff;
}

.phim4k-hero-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 14px;
}

.phim4k-hero-featured,
.phim4k-hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .1px;
    backdrop-filter: blur(8px);
}

.phim4k-hero-featured {
    gap: 6px;
    color: #17130c;
    background: #ff9900;
}

.phim4k-hero-pill {
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.16);
}

.phim4k-hero-pill.is-trailer {
    background: rgba(255,122,0,.92);
    border-color: rgba(255,122,0,.95);
}

.phim4k-hero-title {
    margin: 0;
    max-width: 680px;
    font-size: clamp(34px, 3vw, 54px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -.7px;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.phim4k-hero-title a,
.phim4k-hero-title a:hover,
.phim4k-hero-title a:focus {
    color: #fff;
}

.phim4k-hero-origin {
    margin: 12px 0 0;
    max-width: 620px;
    color: rgba(255,255,255,.76);
    font-size: 16px;
    line-height: 1.5;
}

.phim4k-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.phim4k-hero-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 6px;
    color: rgba(255,255,255,.92);
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.09);
    font-size: 12px;
    line-height: 1;
}

.phim4k-hero-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-width: 132px;
    margin-top: 22px;
    padding: 11px 18px;
    border-radius: 9px;
    color: #17130c !important;
    background: #ff9900;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(255,153,0,.22);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.phim4k-hero-watch:hover,
.phim4k-hero-watch:focus {
    color: #17130c !important;
    background: #ffad2e;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(255,153,0,.30);
}

.phim4k-hero-control {
    z-index: 8;
    width: 64px;
    background: none !important;
    opacity: 1;
}

.phim4k-hero-control.left {
    left: 0;
}

.phim4k-hero-control.right {
    right: 0;
}

.phim4k-hero-control .phim4k-hero-arrow {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border-radius: 50%;
    color: #fff;
    background: rgba(12,12,18,.54);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    backdrop-filter: blur(8px);
    transition: background .18s ease, transform .18s ease;
}

.phim4k-hero-control.left .phim4k-hero-arrow {
    left: 14px;
}

.phim4k-hero-control.right .phim4k-hero-arrow {
    right: 14px;
}

.phim4k-hero-control:hover .phim4k-hero-arrow {
    background: rgba(255,153,0,.92);
    transform: scale(1.06);
}

.phim4k-hero-control .fa {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    background: none;
    opacity: 1;
    font-size: 26px;
    line-height: 1;
}

.phim4k-hero-dots {
    z-index: 9;
    top: auto;
    right: 28px;
    bottom: 26px;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    width: auto;
    margin: 0;
    padding: 0;
}

.phim4k-hero-dots li {
    display: block;
    width: 8px;
    height: 8px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.42);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.phim4k-hero-dots li.active {
    width: 28px;
    background: #ff9900;
}

@media (max-width: 1199px) {
    .phim4k-hero-carousel {
        width: calc(100% - 50px);
    }
    .phim4k-hero-copy {
        max-width: 600px;
        padding: 45px 52px 62px;
    }
}

@media (max-width: 767px) {
    .phim4k-hero {
        padding: 8px 0 10px;
    }
    .phim4k-hero-carousel {
        width: calc(100% - 10px);
        border-radius: 12px;
    }
    .phim4k-hero-slide,
    .phim4k-hero-image,
    .phim4k-hero-copy {
        min-height: 360px;
    }
    .phim4k-hero-image {
        object-position: center center;
    }
    .phim4k-hero-shade {
        background:
            linear-gradient(0deg, rgba(12,12,18,.96) 0%, rgba(12,12,18,.72) 32%, rgba(12,12,18,.12) 72%),
            linear-gradient(90deg, rgba(12,12,18,.25), rgba(12,12,18,.05));
    }
    .phim4k-hero-copy {
        justify-content: flex-end;
        max-width: 100%;
        padding: 32px 24px 46px;
    }
    .phim4k-hero-title {
        max-width: 92%;
        font-size: 27px;
        line-height: 1.12;
    }
    .phim4k-hero-origin {
        max-width: 90%;
        margin-top: 8px;
        font-size: 13px;
    }
    .phim4k-hero-meta {
        margin-top: 11px;
    }
    .phim4k-hero-meta > span:nth-child(n+3) {
        display: none;
    }
    .phim4k-hero-watch {
        margin-top: 15px;
        padding: 10px 15px;
    }
    .phim4k-hero-control {
        width: 48px;
    }
    .phim4k-hero-control .phim4k-hero-arrow {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    .phim4k-hero-control.left .phim4k-hero-arrow {
        left: 7px;
    }
    .phim4k-hero-control.right .phim4k-hero-arrow {
        right: 7px;
    }
    .phim4k-hero-dots {
        right: 18px;
        bottom: 18px;
    }
}
