.fade-in {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.5s ease-in, filter 0.5s ease-in;
}

.fade-in.visible {
    opacity: 1;
    filter: blur(0);
}

.player-control .ep-current {
    width: 160px !important;
}

.v-pagination .page-current .v-form-control {
    width: 60px !important;
}

.heading-topic {
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
}

.detail-more.show {
    display: block !important;
}

.text-gradient {
    -webkit-background-clip: text !important;
}

.de-cw {
    grid-template-columns: repeat(5, 1fr);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.effect-fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* remove-icon visibility controlled by JS */

.comm-title {
    line-height: 1.5;
    font-size: 16px !important;
}

.switch-logo {
    margin-bottom: 2rem;
    text-align: center;
}

.switch-logo a img {
    height: 50px;
    width: auto;
}

.switch-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: rgb(33, 42, 84);
    background: linear-gradient(113deg, rgba(33, 42, 84, 1) 0%, rgba(25, 33, 67, 1) 51%, rgba(33, 42, 84, 1) 100%);
}

.switch-modal .modal-dialog {
    max-width: none;
    width: 680px;
}

.switch-modal .modal-dialog .modal-content {
    padding: 2rem;
    color: #fff8;
    line-height: 1.7;
    background-color: transparent !important;
}

.switch-modal .modal-dialog .modal-content p {
    line-height: 1.7;
    margin-bottom: 0 !important;
}

.ver-sbs {
    margin-top: 2rem;
    display: block;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.ver-sbs .ver-item {
    flex: 1;
    padding: 2rem;
    font-size: 13px;
    border-radius: .75rem;
    background-color: #4e62b4;
    color: #fff;
}

.ver-sbs .ver-item:first-of-type {
    margin-right: 2rem;
}

.ver-sbs .ver-item .btn-lg i {
    font-size: 20px;
}

.switch-notice {
    margin-top: 3rem;
    padding: 0 2rem;
}

.switch-notice p {
    line-height: 1.8 !important;
}

.switch-notice .s-qr {
    margin-right: 1rem;
    padding: 10px;
    background-color: #fff;
    border-radius: .4rem;
}

.switch-notice .s-qr img {
    width: 70px;
    height: 70px;
}

@media screen and (max-width: 800px) {
    .switch-modal .modal-dialog .modal-content {
        padding: 20px;
    }

    .ver-sbs {
        flex-direction: column;
        margin-top: 1rem;
    }

    .ver-sbs .ver-item {
        padding: 1.5rem;
    }

    .ver-sbs .ver-item:first-of-type {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .switch-notice {
        margin-top: 2rem;
        padding: 0
    }

    .switch-notice p {
        line-height: 1.5 !important;
    }
}

.pin-tag-quality {
    padding: 0 .4rem;
    border-radius: 0.33rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 3;
    top: .35rem;
    right: .35rem;
    width: 40px;
    height: 26px;
    font-size: 13px;
    box-shadow: 0 0 0 1px #0005;
}

.tag-cam {
    backdrop-filter: blur(10px);
    background: #fff6;
    color: #000;
}

.crop-container {
    position: relative;
    width: 100%;
    height: 320px;
    background: #111;
    border-radius: 12px;
    overflow: hidden
}

.rep-subject img {
    height: auto;
    max-width: 200px;
    max-height: 140px;
    margin-top: 5px;
    object-fit: contain;
}

.match-info .team-vs .card-team .inc-icon img {
    object-fit: contain;
}

.rhap_play-pause-button {
    border-radius: 50%;
    /* Bo tròn border */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    /* Khoảng cách giữa icon và border */
}

.rhap_button-clear {
    color: #fff !important;
}

.rhap_time {
    color: #fff !important;
    font-size: 13px !important;
}

.rhap_progress-bar {
    height: 3px !important;
}

.rhap_volume-bar {
    height: 3px !important;
}

.rhap_progress-filled {
    background-color: #96e99b !important;
}

.rhap_progress-indicator {
    background: #fff !important;
    width: 10px !important;
    height: 10px !important;
    top: -3px !important;
}

.rhap_volume-indicator {
    background: #fff !important;
    width: 10px !important;
    height: 10px !important;
}

.rhap_download-progress {
    background: #ffffff10 !important;
}

.rhap_container {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Scroll Reveal - lazy load sections */
.scroll-reveal {
    position: relative;
    contain: content;
}

.scroll-reveal .sr-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.4s ease, visibility 0.4s;
    background: transparent;
}

.scroll-reveal .sr-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.scroll-reveal.is-visible .sr-loader {
    opacity: 0;
    visibility: hidden;
}

.scroll-reveal.is-visible .sr-content {
    opacity: 1;
    transform: translateY(0);
}

/* Search result items */
.s-item {
    padding: .5rem .75rem;
    border-bottom: 1px solid #ffffff08;
    transition: background-color 0.15s;
}

.s-item:last-child {
    border-bottom: none;
}

.s-item:hover {
    background-color: #ffffff10;
}

.alias-title {
    font-size: .85em;
    color: var(--text-base);
    opacity: .7;
}

.movie-info-line {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .8em;
}

.movie-info-line span {
    color: var(--text-base);
}

.movie-info-line .quality {
    color: #FFD875;
    font-weight: 600;
}

.movie-info-line .lang {
    color: #96e99b;
}

#search-results-dropdown .search-modal {
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: none;
}

#search-results-dropdown .search-modal::-webkit-scrollbar {
    display: none;
}

#search-results-dropdown .search-modal .group-list {
    max-height: 55vh;
    overflow-y: auto;
    scrollbar-width: none;
}

#search-results-dropdown .search-modal .group-list::-webkit-scrollbar {
    display: none;
}

/* === Watch Player Overlay Styles === */
#rp-player {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: .75rem .75rem 0 0;
    overflow: hidden;
    background-color: #08080A;
    margin: 0 auto;
}

#rp-player .main-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

/* Player Top Overlay */
#player_top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#rp-player:hover #player_top,
#player_top:hover {
    opacity: 1;
    pointer-events: auto;
}

#player_top .p_t-left .video-info .name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

#player_top .p_t-left .video-info .info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 2px;
}

#player_top .cp-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

#player_top .cp-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

#player_top .cp-icon svg {
    fill: currentColor;
    color: #fff;
}

/* Video Episodes Side Panel */
#video_eps {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: none;
    pointer-events: none;
}

#video_eps.active {
    display: flex;
    pointer-events: auto;
    z-index: 30;
}

#video_eps .eps-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

#video_eps .eps-list {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 80%;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    z-index: 5;
    animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

#video_eps .eps-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

#video_eps .eps-header .name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#video_eps .eps-header .season-quantity {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    white-space: nowrap;
    margin: 0 0.5rem;
}

#video_eps #eps-close {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    transition: color 0.2s;
    flex-shrink: 0;
}

#video_eps #eps-close:hover {
    color: #fff;
}

#video_eps .eps-list-menu {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

#video_eps .eps-list-menu::-webkit-scrollbar {
    width: 4px;
}

#video_eps .eps-list-menu::-webkit-scrollbar-track {
    background: transparent;
}

#video_eps .eps-list-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

#video_eps .item-ep {
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

#video_eps .item-ep:hover {
    background: rgba(255, 255, 255, 0.06);
}

#video_eps .item-ep.active {
    background: rgba(83, 93, 142, 0.3);
    color: var(--primary-color, #E8C547);
}

#video_eps .item-ep .v-title {
    font-weight: 500;
}

#video_eps .item-ep.active .v-title {
    color: var(--primary-color, #E8C547);
}

/* Focus mode: make player-control visible above backdrop */
body.focus-mod .player-control {
    position: relative;
    z-index: 101;
}

/* Focus mode: hide all control items except Rạp phim */
body.focus-mod .player-control .control-items .item {
    visibility: hidden;
}

body.focus-mod .player-control .control-items .item-focus.is-on {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Sidebar Ads - Left & Right */
.site-ads {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    max-width: 160px;
    display: none;
}

.site-ads-left {
    left: 5px;
}

.site-ads-right {
    right: 5px;
}

@media (min-width: 1600px) {
    .site-ads {
        display: block;
    }
}

/* Hide RoX upgrade CTA & wallet */
.call-upgrade,
.dropdown-wallet {
    display: none !important;
}

/* Preloader text */
.text-h1 {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #ffffff30;
    font-weight: 600;
    text-align: center;
    max-width: 950px;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .text-h1 {
        font-size: 1.1rem;
    }
}