/* =========================================================
   RoPhim VIP Authentic Styling System
   Fully matches rophim1.vip margins, typography & components
   ========================================================= */

:root {
    --bg-color: #191b24;
    --text-base: #aaa;
    --primary-color: #ffd875;
    --primary-color-hover: #ffde8a;
    --primary-button-text: #191b24;
    --primary-text: #ffd875;
    --top-bg-default: #202331;
    --border-color: rgba(255, 255, 255, 0.08);
    --bg-2: #282b3a;
    --bg-3: #202331;
    --bg-4: #3e435c;
    --footer-bg: #0f111a;
    --category-name: #ffffff;
    --shadow-large: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-toggle::after,
#main_menu .dropdown-toggle::after,
.header-nav .dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    overflow-y: auto;
    touch-action: pan-y;
}

body {
    background: var(--bg-color);
    color: var(--text-base);
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: clip;
    overflow-y: auto;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Custom RoPhim VIP Scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 216, 117, 0.3) #11141d;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #11141d;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 216, 117, 0.25);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 216, 117, 0.55);
}


a {
    color: #fff;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-text);
}

/* =========================================================
   AUTHENTIC HEADER (STRICT DESKTOP/LAPTOP HORIZONTAL BAR)
   Prevents any mobile breakpoint collision or floating blue box
   ========================================================= */
header {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10005 !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

header.fly {
    background: linear-gradient(180deg, rgba(25, 27, 36, 0.96) 0%, rgba(25, 27, 36, 0.6) 60%, transparent 100%) !important;
}

header.fixed {
    background: rgba(15, 17, 26, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.65) !important;
}

header .header-elements {
    max-width: 1900px !important;
    width: 100% !important;
    margin: 0 auto !important;
    height: 72px !important;
    padding: 0 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.85rem !important;
    position: relative !important;
}

@media screen and (max-width: 1599px) {
    header .header-elements {
        padding: 0 40px !important;
        gap: 0.65rem !important;
    }
}

/* Hide all mobile hamburger buttons on desktop/laptop */
.for-mobile, .menu-toggle, .search-toggle {
    display: none !important;
}

#logo {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    position: static !important;
    text-decoration: none !important;
}

#logo img {
    height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Search Bar */
#search {
    width: 220px !important;
    max-width: 220px !important;
    position: relative !important;
    flex: 0 0 220px !important;
    display: block !important;
}

#search .search-elements {
    position: relative !important;
    width: 100% !important;
}

#search .search-input {
    width: 100% !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 0.8rem 0 2.4rem !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 0.4rem !important;
    color: #fff !important;
    font-size: 13px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    display: block !important;
}

#search .search-input:focus {
    border-color: var(--primary-color) !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 12px rgba(255, 216, 117, 0.3) !important;
}

#search .search-input::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 12.5px !important;
}

#search .search-icon {
    position: absolute !important;
    left: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
}

/* THE NAVIGATION GROUP: Absolute protection from becoming a blue box */
.el-group, .header-menu-wrap {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
    width: auto !important;
    flex-grow: 1 !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    transform: none !important;
}

#main_menu, .header-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.25rem !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    grid-template-columns: none !important;
    list-style: none !important;
}

#main_menu .menu-item {
    padding: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
    list-style: none !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

#main_menu .menu-item a {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 5px 9px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    background: transparent !important;
}

#main_menu .menu-item a:hover,
#main_menu .menu-item a.active {
    color: var(--primary-text) !important;
    background-color: rgba(255, 216, 117, 0.12) !important;
}

#main_user {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
    width: auto !important;
}

#main_user .button-user.button-login {
    background-color: #ffffff !important;
    color: #191b24 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0.42rem 1.2rem !important;
    border-radius: 2rem !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    flex: 0 0 auto !important;
    width: auto !important;
}

#main_user .button-user.button-login:hover {
    background-color: #ffd875 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(255, 216, 117, 0.4) !important;
}

/* =========================================================
   HERO BANNER - FULL BLEED 100% WIDE WITH CRISP VISUAL
   ========================================================= */
#top_slider, #ro-hotslider, #ro-hotslider.ro-hs-wrap, .top-slide-wrap {
    position: relative;
    width: 100%;
    background-color: #191b24;
}

#ro-hotslider .ro-hs-main, .top-slide-main {
    margin-bottom: 0;
    width: 100%;
    height: 78vh !important;
    min-height: 560px;
    max-height: 840px;
    background-color: #191b24;
    overflow: hidden;
    position: relative;
    border-radius: 0 !important;
}

#ro-hotslider .ro-hs-slide, .slide-elements {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #191b24;
}

#ro-hotslider .ro-hs-cover, .slide-elements .cover-fade {
    width: 100%;
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    transform: none !important;
    max-width: none !important;
    z-index: 1;
}

#ro-hotslider .ro-hs-cover-image, .slide-elements .cover-fade img {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
    object-fit: cover;
    object-position: center 25%;
}

#ro-hotslider .ro-hs-video-player {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    object-fit: cover !important;
    object-position: center 25% !important;
    z-index: 5 !important;
    display: block !important;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(106%) saturate(106%);
    transform: translateZ(0);
    backface-visibility: hidden;
}

#ro-hotslider .ro-hs-video-player.ro-hs-video-player-ready {
    opacity: 1 !important;
}

/* Authentic RoPhim Gradient Vignette Overlay: Clear & sharp right half matching Screenshot 2 */
#ro-hotslider .ro-hs-cover::after, .slide-elements .cover-fade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(25, 27, 36, 0.96) 0%, rgba(25, 27, 36, 0.74) 30%, rgba(25, 27, 36, 0.1) 56%, transparent 72%),
                linear-gradient(0deg, #191b24 0%, rgba(25, 27, 36, 0.65) 12%, transparent 35%);
    pointer-events: none;
    z-index: 10;
}

#ro-hotslider .ro-hs-safe-area, .safe-area {
    width: 100%;
    height: 100% !important;
    max-width: 1900px !important;
    margin: 0 auto !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 20 !important;
    display: flex !important;
    align-items: flex-end !important;
    pointer-events: auto !important;
}

#ro-hotslider .ro-hs-content, .slide-content {
    position: relative;
    z-index: 25;
    max-width: 720px;
    width: 100%;
    padding: 0 50px 65px 50px !important;
    background: transparent !important;
}

#ro-hotslider .ro-hs-title {
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 6px 0;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

#ro-hotslider .ro-hs-title-alt {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 14px;
    color: #cbd5e1;
}

#ro-hotslider .description {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 22px;
    max-width: 620px;
}

#ro-hotslider .touch {
    display: flex;
    align-items: center;
    gap: 16px;
}

#ro-hotslider .button-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffd875;
    color: #191b24 !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(255, 216, 117, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

#ro-hotslider .button-play:hover {
    transform: scale(1.08);
    box-shadow: 0 0 32px rgba(255, 216, 117, 0.7);
}

#ro-hotslider .touch-group {
    display: inline-flex;
    align-items: center;
    background: rgba(30, 30, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 40px;
    padding: 0 10px;
    height: 52px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#ro-hotslider .touch-group .item {
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: color 0.2s ease, transform 0.2s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

#ro-hotslider .touch-group .item:last-child {
    border-right: none;
}

#ro-hotslider .touch-group .item:hover {
    color: #ffd875;
    transform: scale(1.12);
}

/* Authentic RoPhim Controls Bottom Right */
#ro-hotslider .ro-hs-controls {
    position: absolute;
    bottom: 55px;
    right: 50px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 26px;
}

#ro-hotslider .ro-hs-pagination {
    display: flex;
    align-items: center;
    gap: 7px;
}

#ro-hotslider .ro-hs-pagination .hero-slider-dash,
#ro-hotslider .ro-hs-pagination .swiper-pagination-bullet {
    width: 16px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

#ro-hotslider .ro-hs-pagination .hero-slider-dash.active,
#ro-hotslider .ro-hs-pagination .swiper-pagination-bullet-active {
    width: 32px;
    height: 4px;
    background: #ffffff;
}

#ro-hotslider .ro-hs-navigation {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
}

#ro-hotslider .ro-hs-navigation div {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.75) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

#ro-hotslider .ro-hs-navigation div:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    border-color: #ffffff !important;
    transform: scale(1.08);
}

@media screen and (max-width: 1599px) {
    #ro-hotslider .ro-hs-main, .top-slide-main {
        height: 72vh !important;
        min-height: 520px;
    }
    #ro-hotslider .ro-hs-content, .slide-content {
        padding: 0 40px 50px 40px !important;
    }
    #ro-hotslider .ro-hs-controls {
        bottom: 45px !important;
        right: 40px !important;
        gap: 20px !important;
    }
}

@media screen and (max-width: 1200px) {
    #ro-hotslider .ro-hs-content, .slide-content {
        padding: 0 25px 40px 25px !important;
    }
    #ro-hotslider .ro-hs-controls {
        bottom: 35px !important;
        right: 25px !important;
    }
}

.hl-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.tag-model {
    background-color: #ffffff;
    color: #191b24;
    font-weight: 700;
    font-size: 12px;
    padding: 0.25rem 0.65rem;
    border-radius: 0.35rem;
}

.tag-imdb {
    border: 1px solid #f0d25c;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    height: auto;
    line-height: 20px;
    gap: 4px;
}

.tag-classic,
.tag-topic {
    background-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    min-height: 24px;
    height: auto;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.media-title {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85);
    letter-spacing: -0.5px;
}

@media screen and (max-width: 768px) {
    .media-title {
        font-size: 2.2rem;
    }
}

.description {
    font-size: 1rem;
    line-height: 1.65;
    color: #e2e8f0;
    margin-bottom: 2rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    max-width: 680px;
}

.touch {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.hero-btn-play {
    background: linear-gradient(135deg, #ffd875 0%, #f6bd38 100%) !important;
    color: #11141d !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    padding: 13px 32px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(246, 189, 56, 0.45) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.hero-btn-play:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 12px 30px rgba(246, 189, 56, 0.65) !important;
}

.hero-btn-play svg {
    fill: #11141d !important;
    color: #11141d !important;
    display: block !important;
}

.hero-btn-info {
    background: rgba(25, 29, 43, 0.8) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 1.02rem !important;
    padding: 13px 26px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.hero-btn-info:hover {
    background: rgba(255, 216, 117, 0.18) !important;
    color: #ffd875 !important;
    border-color: rgba(255, 216, 117, 0.5) !important;
    transform: translateY(-2px) !important;
}

.hero-btn-info svg {
    fill: currentColor !important;
    color: currentColor !important;
    display: block !important;
}

.touch-group .item {
    height: 48px;
    padding: 0 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    font-weight: 500;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.touch-group .item:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* =========================================================
   CONTAINERS & SECTION ALIGNMENT (1900px WIDE WITH 50px GUTTERS)
   ========================================================= */
.wrapper-w-slide {
    position: relative;
    z-index: 9;
}

.fluid-gap {
    display: flex;
    flex-direction: column;
    gap: 55px;
    padding-bottom: 90px;
}

.cards-row.wide {
    width: 100% !important;
    max-width: 1900px !important;
    padding: 0 50px !important;
    margin: 0 auto !important;
    position: relative;
    scroll-margin-top: 85px;
}

@media screen and (max-width: 1599px) {
    .cards-row.wide {
        padding: 0 40px !important;
        scroll-margin-top: 85px;
    }
}

/* Row Header */
.cards-row .row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 10px;
    margin-bottom: 1.35rem;
}

.category-name {
    font-size: 1.65rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--category-name);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.3px;
    margin: 0;
}

.cat-more {
    font-size: 0.85rem;
    color: var(--primary-color);
    border: 1px solid rgba(255, 216, 117, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cat-more:hover {
    background-color: var(--primary-color);
    color: var(--primary-button-text);
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(255, 216, 117, 0.3);
}

/* Quick Filter Pills */
.v-tabs.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 25px 0;
}

.v-tabs.nav-pills .nav-link {
    background-color: var(--bg-2);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.v-tabs.nav-pills .nav-link:hover,
.v-tabs.nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
    color: var(--primary-button-text) !important;
    border-color: var(--primary-color) !important;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(255, 216, 117, 0.3);
}

/* =========================================================
   MOVIE CARDS & GRID (.sw-item & .v-thumbnail)
   ========================================================= */
.cards-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1.25rem;
    width: 100%;
}

@media screen and (max-width: 1680px) {
    .cards-grid-wrapper {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media screen and (max-width: 1440px) {
    .cards-grid-wrapper {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media screen and (max-width: 1200px) {
    .cards-grid-wrapper {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media screen and (max-width: 960px) {
    .cards-grid-wrapper {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

@media screen and (max-width: 720px) {
    .cards-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .cards-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

/* Movie Card */
.sw-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    text-align: left;
}

.sw-item .v-thumbnail {
    width: 100%;
    padding-bottom: 150%;
    position: relative;
    border-radius: 0.55rem;
    overflow: hidden;
    background-color: var(--bg-3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.28s ease;
}

.sw-item:hover .v-thumbnail {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 12px rgba(255, 216, 117, 0.2);
}

.sw-item .v-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.25s ease;
}

.sw-item:hover .v-thumbnail img {
    transform: scale(1.06);
    filter: brightness(1.08);
}

/* Badges */
.v-thumbnail .pin-thumb {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(25, 27, 36, 0.82) 0%, transparent 100%);
    z-index: 2;
}

.v-thumbnail .pin-thumb .e-quality {
    background-color: var(--primary-color);
    color: var(--primary-button-text);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.2;
}

.v-thumbnail .pin-thumb .pin-ep {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.v-thumbnail .pin-new {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.pin-new .line-lt {
    background-color: #1667cf;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
}

.pin-new .line-tm {
    background-color: #2ca35d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
}

.v-thumbnail .pin-rating {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(25, 27, 36, 0.85);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Card Info */
.sw-item .info {
    padding-top: 8px;
}

.sw-item .item-title {
    color: #fff;
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.sw-item:hover .item-title {
    color: var(--primary-text);
}

.sw-item .alias-title {
    font-size: 0.8rem;
    color: #8c93a8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.sw-item .info-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: #6b7280;
}

/* =========================================================
   AUTHENTIC FOOTER
   ========================================================= */
footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px 0;
    position: relative;
}

footer .container {
    max-width: 1900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

@media screen and (max-width: 1599px) {
    footer .container {
        padding: 0 25px;
    }
}

.footer-elements {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-elements .footer-icon {
    position: absolute !important;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
    pointer-events: none;
    max-width: 400px;
}

.footer-elements .side-left {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.domain-pulse-link {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.domain-pulse {
    background-color: #a71a13;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 0 12px rgba(255, 72, 72, 0.4);
}

.sl-brand {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.sl-brand .socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
}

.social-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-item:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.sl-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.sl-menu a {
    color: #d1d5db;
    font-size: 13px;
    font-weight: 500;
}

.sl-menu a:hover {
    color: var(--primary-color);
}

.sl-notice {
    font-size: 12.5px;
    color: #8c93a8;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.sl-copyright {
    font-size: 12px;
    color: #6b7280;
}

/* =========================================================
   SEARCH MODAL SUGGESTIONS
   ========================================================= */
.search-modal {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: rgba(30, 33, 46, 0.98);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    max-height: 460px;
    overflow-y: auto;
    padding: 8px;
}

.search-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-modal-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.search-modal-item img {
    width: 44px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-modal-info {
    flex-grow: 1;
    overflow: hidden;
}

.search-modal-info .sm-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.search-modal-info .sm-meta {
    font-size: 12px;
    color: var(--primary-color);
    display: flex;
    gap: 8px;
}

/* =========================================================
   AUTHENTIC ROPHIM ⚡ BÌNH LUẬN MỚI SECTION (Screenshot 1)
   ========================================================= */
.section-new-comments {
    max-width: 1900px !important;
    width: 100% !important;
    margin: 0 auto 2.2rem auto !important;
    padding: 0 50px !important;
    box-sizing: border-box !important;
    position: relative;
}

@media screen and (max-width: 1599px) {
    .section-new-comments {
        padding: 0 40px !important;
    }
}

@media screen and (max-width: 768px) {
    .section-new-comments {
        padding: 0 16px !important;
    }
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.comments-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-title .lightning-icon {
    color: #ffd875;
    display: inline-flex;
    align-items: center;
}

.comments-nav-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-nav-btn:hover {
    background: rgba(255, 216, 117, 0.2);
    border-color: #ffd875;
    color: #ffd875;
    transform: scale(1.05);
}

.comments-scroll-container {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
}

.comments-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.comment-card {
    flex: 0 0 310px;
    max-width: 310px;
    height: 125px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background-color: #191c28;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
}

.comment-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 216, 117, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.comment-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 19, 29, 0.94) 0%, rgba(20, 24, 37, 0.88) 60%, rgba(25, 29, 45, 0.72) 100%);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.comment-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.comment-user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 216, 117, 0.6);
    flex-shrink: 0;
    background: #252a3d;
}

.comment-username {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-movie-thumb {
    width: 44px;
    height: 58px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.comment-content-text {
    font-size: 12px;
    line-height: 1.45;
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 6px;
    word-break: break-word;
}

/* =========================================================
   AUTHENTIC ROPHIM DYNAMIC COLLECTIONS & SLIDER CAROUSELS
   ========================================================= */
#dynamicCollectionsContainer {
    max-width: 1900px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 50px !important;
    box-sizing: border-box !important;
}

@media screen and (max-width: 1599px) {
    #dynamicCollectionsContainer {
        padding: 0 40px !important;
    }
}

@media screen and (max-width: 768px) {
    #dynamicCollectionsContainer {
        padding: 0 16px !important;
    }
}

.rophim-collection-section {
    margin-bottom: 2.5rem;
    position: relative;
    width: 100%;
}

.collection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.collection-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.collection-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.collection-title:hover {
    color: #ffd875;
}

.collection-title .chevron-icon {
    width: 20px;
    height: 20px;
    color: #ffd875;
    transition: transform 0.2s ease;
}

.collection-title:hover .chevron-icon {
    transform: translateX(4px);
}

.collection-slider-wrap {
    position: relative;
    width: 100%;
}

.collection-cards-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 2px 14px 2px;
    scrollbar-width: none;
}

.collection-cards-track::-webkit-scrollbar {
    display: none;
}

.collection-cards-track .sw-item {
    flex: 0 0 172px;
    max-width: 172px;
}

@media screen and (max-width: 768px) {
    .collection-cards-track .sw-item {
        flex: 0 0 135px;
        max-width: 135px;
    }
}

/* =========================================================
   AUTHENTIC RANKED CARDS (Top 30 Phim Bộ & Phim Lẻ - Screenshot 3)
   ========================================================= */
.collection-cards-track-ranked .sw-item-ranked {
    flex: 0 0 255px;
    max-width: 255px;
}

@media screen and (max-width: 1280px) {
    .collection-cards-track-ranked .sw-item-ranked {
        flex: 0 0 210px;
        max-width: 210px;
    }
}

@media screen and (max-width: 768px) {
    .collection-cards-track-ranked .sw-item-ranked {
        flex: 0 0 160px;
        max-width: 160px;
    }
}

.sw-item .info-v.w-chart {
    padding-left: 64px;
    position: relative;
    text-align: left;
    margin-top: 10px;
    min-height: 56px;
}

.sw-item .info-v.w-chart .number {
    position: absolute;
    left: 0;
    top: -6px;
    width: 50px;
    line-height: 1;
    text-align: center;
    font-size: 3.9em;
    font-weight: 900;
    font-style: italic;
    background: rgb(254, 207, 89);
    background: linear-gradient(39deg, rgba(254, 207, 89, 1) 0%, rgba(255, 241, 204, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    font-family: 'Inter', sans-serif;
}

.sw-item .info-v.w-chart .item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-item .info-v.w-chart .alias-title {
    font-size: 11.5px;
    color: #94a3b8;
    margin-bottom: 3px;
    margin-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-item .info-v.w-chart .info-line {
    font-size: 11.5px;
    color: #64748b;
}

@media screen and (max-width: 768px) {
    .sw-item .info-v.w-chart {
        padding-left: 38px;
    }
    .sw-item .info-v.w-chart .number {
        font-size: 2.3em;
        width: 32px;
        top: 0;
    }
}

.pin-thumb-ranked {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    gap: 4px;
    z-index: 3;
}

.badge-pd {
    background: #0284c7;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.badge-tm {
    background: #10b981;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.pin-thumb-bottom {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.badge-phude {
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2.5px 12px;
    border-radius: 4px;
    line-height: 1.3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.slider-floating-next,
.slider-floating-prev {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(16, 18, 27, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    opacity: 0;
}

.collection-slider-wrap:hover .slider-floating-next,
.collection-slider-wrap:hover .slider-floating-prev {
    opacity: 1;
}

.slider-floating-prev {
    left: -18px;
}

.slider-floating-next {
    right: -18px;
}

.slider-floating-next:hover,
.slider-floating-prev:hover {
    background: #ffd875;
    color: #11141d;
    border-color: #ffd875;
    transform: translateY(-50%) scale(1.1);
}


/* =========================================================
   AUTHENTIC TV SHOWS SPOTLIGHT HERO (Screenshot 4)
   ========================================================= */
.tv-spotlight-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #141724;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
    margin-bottom: 2.5rem;
}

.tv-spotlight-banner {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 40px 24px 40px;
    transition: background-image 0.4s ease;
}

.tv-spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #11141df2 0%, #11141de0 35%, #11141d80 70%, transparent 100%);
    pointer-events: none;
}

.tv-spotlight-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.tv-spotlight-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.25;
}

.tv-spotlight-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #ffd875;
    margin-bottom: 12px;
}

.tv-spotlight-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.tv-tag-pill {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.tv-spotlight-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.tv-spotlight-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tv-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffd875;
    color: #0b0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 6px 20px rgba(255, 216, 117, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

.tv-play-btn:hover {
    transform: scale(1.08);
    background: #ffe399;
}

.tv-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tv-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffd875;
}

/* TV Shows Bottom Selection Strip */
.tv-strip-container {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 6px;
}

.tv-strip-container::-webkit-scrollbar {
    display: none;
}

.tv-strip-item {
    flex: 0 0 96px;
    width: 96px;
    height: 135px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: all 0.25s ease;
}

.tv-strip-item.active {
    border-color: #ffd875;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(255, 216, 117, 0.4);
}

.tv-strip-item:hover {
    opacity: 1;
    border-color: rgba(255, 216, 117, 0.5);
}

.tv-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   AUTHENTIC 16:9 LANDSCAPE CARDS (Screenshot 5)
   Hoạt Hình Trẻ Em & Rổ Phim Sắp Chiếu
   ========================================================= */
.collection-cards-track-landscape .sw-item-landscape {
    flex: 0 0 280px;
    max-width: 280px;
    position: relative;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .collection-cards-track-landscape .sw-item-landscape {
        flex: 0 0 220px;
        max-width: 220px;
    }
}

.landscape-thumb-wrap {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #1e2230;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.sw-item-landscape:hover .landscape-thumb-wrap {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 14px rgba(255, 216, 117, 0.2);
}

.landscape-thumb-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sw-item-landscape:hover .landscape-thumb-wrap img {
    transform: scale(1.05);
}

.landscape-mini-poster {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 44px;
    height: 62px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.landscape-badge {
    position: absolute;
    bottom: 8px;
    left: 58px;
    background: rgba(16, 19, 29, 0.85);
    border: 1px solid rgba(255, 216, 117, 0.3);
    color: #ffd875;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    z-index: 2;
}

.landscape-info {
    margin-top: 8px;
}

.landscape-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.landscape-sub {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   AUTHENTIC FLOATING PIP MINI TRAILER PLAYER (Screenshot 5)
   ========================================================= */
.floating-pip-trailer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 280px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    border: 1.5px solid rgba(255, 216, 117, 0.4);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
    z-index: 999;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media screen and (max-width: 768px) {
    .floating-pip-trailer {
        width: 200px;
        height: 115px;
        bottom: 16px;
        right: 16px;
    }
}

.floating-pip-trailer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pip-controls {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    pointer-events: auto;
}

.pip-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.pip-btn:hover {
    background: #ffd875;
    color: #11141d;
    border-color: #ffd875;
}

/* =========================================================
   AUTHENTIC POLICY & FAQ PAGE VIEW (.policy-view-container)
   ========================================================= */
.policy-view-container {
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto 4rem auto;
    padding: 0 1rem;
}

.policy-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.policy-breadcrumbs a {
    color: #ffd875;
    text-decoration: none;
}

.policy-breadcrumbs a:hover {
    text-decoration: underline;
}

.policy-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.policy-back-btn:hover {
    background: #ffd875;
    color: #11141d;
    border-color: #ffd875;
}

.policy-card {
    background: #191c28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 2.2rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 768px) {
    .policy-card {
        padding: 1.5rem 1rem;
    }
}

.policy-card h1, .policy-card h2, .policy-card h3 {
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.policy-card h2 {
    font-size: 22px;
    color: #ffd875;
    border-bottom: 1px solid rgba(255, 216, 117, 0.2);
    padding-bottom: 0.5rem;
}

.policy-card h3 {
    font-size: 17px;
    color: #ffd875;
}

.policy-card p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.policy-card .question-box {
    list-style: none;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2rem;
}

.policy-card .question-box li {
    margin-bottom: 8px;
}

.policy-card .question-box a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.policy-card .question-box a:hover {
    color: #ffd875;
}

/* =========================================================
   MOBILE HIGH-PERFORMANCE 60FPS OPTIMIZATIONS
   ========================================================= */

/* 1. Virtualize collection rendering (Skip off-screen DOM reflow) */
.rophim-collection-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 360px;
}

/* 2. Hardware-accelerated smooth touch scrolling on mobile */
.collection-cards-track,
.rophim-slider-track,
.cw-scroll-row,
.new-comments-track,
.tv-strip-container,
.v-tabs {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    will-change: scroll-position;
    transform: translateZ(0);
}

/* 3. Mobile rules (@media <= 768px) */
/* =========================================================
   AUTHENTIC ROPHIM1.VIP MOBILE RESPONSIVE SYSTEM
   ========================================================= */

/* Mobile Bottom Navigation Bar Base */
.mobile-bottom-nav {
    display: none;
}

.mobile-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.mobile-drawer-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

@media screen and (max-width: 768px) {
    /* 1. Body & Viewport layout */
    body {
        padding-bottom: 68px !important;
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    html, #app {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    /* Hide floating PiP trailer completely on mobile phones */
    #floatingPipPlayer,
    .floating-pip-trailer {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    /* 2. Mobile Header */
    header.fly,
    header.fixed,
    header {
        height: 60px !important;
        background: rgba(14, 16, 23, 0.98) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 900 !important;
    }

    header .header-elements {
        height: 60px !important;
        padding: 0 12px !important;
        gap: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .header-elements .for-mobile {
        display: flex !important;
        cursor: pointer;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        flex-shrink: 0;
        font-size: 16px;
        color: #fff;
    }

    .header-elements .for-mobile:hover,
    .header-elements .for-mobile:active {
        background-color: rgba(255, 255, 255, 0.08);
    }

    /* RoPhim hamburger 3 lines animated icon */
    .icon-menu {
        width: 20px;
        height: 16px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .icon-menu span {
        width: 100%;
        height: 2px;
        background-color: #fff;
        display: block;
        transition: all 0.25s ease;
        border-radius: 2px;
    }

    .icon-menu span:nth-child(2) {
        width: 70%;
    }

    .menu-toggle.toggled .icon-menu span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: #ff6c5d;
    }

    .menu-toggle.toggled .icon-menu span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.toggled .icon-menu span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: #ff6c5d;
    }

    /* RoPhim mobile search animated icon */
    .icon-search {
        width: 20px;
        height: 20px;
        line-height: 20px;
        text-align: center;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-toggle.toggled .icon-search svg {
        display: none;
    }

    .search-toggle.toggled .icon-search::before,
    .search-toggle.toggled .icon-search::after {
        content: '';
        position: absolute;
        width: 18px;
        height: 2px;
        background-color: #ff6c5d;
        border-radius: 2px;
    }

    .search-toggle.toggled .icon-search::before {
        transform: rotate(45deg);
    }

    .search-toggle.toggled .icon-search::after {
        transform: rotate(-45deg);
    }

    #logo img {
        height: 32px !important;
        width: auto !important;
    }

    /* 3. Search Bar on Mobile */
    #search {
        display: none;
    }

    #search.toggled {
        display: block !important;
        position: absolute !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 12px !important;
        background: rgba(14, 16, 23, 0.98) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        z-index: 1000 !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    }

    #search.toggled .search-input {
        width: 100% !important;
        height: 2.6rem !important;
        font-size: 14px !important;
        padding: 0.3rem 2.6rem !important;
        border-radius: 8px !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

    #search.toggled .search-modal {
        top: calc(100% + 2px) !important;
        left: 10px !important;
        right: 10px !important;
        min-width: unset !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }

    /* 4. Mobile Drawer Menu (.el-group.toggled) matching rophim1.vip */
    .el-group {
        display: none;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        width: 82% !important;
        max-width: 320px !important;
        height: calc(100vh - 60px) !important;
        background-color: rgba(20, 24, 35, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        padding: 18px 16px !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 0 16px 16px 0 !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        transform: translateX(-100%) !important;
        opacity: 0 !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.7) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    .el-group.toggled {
        display: flex !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    .el-group #main_menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .el-group #main_menu .menu-item {
        line-height: normal !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .el-group #main_menu .menu-item a {
        display: flex !important;
        align-items: center !important;
        padding: 10px 14px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #e2e8f0 !important;
        background: rgba(255, 255, 255, 0.03) !important;
    }

    .el-group #main_menu .menu-item a:hover,
    .el-group #main_menu .menu-item a.active {
        background: rgba(255, 216, 117, 0.12) !important;
        color: #ffd875 !important;
    }

    .el-group #main_menu .main_menu-dropdown {
        position: static !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        padding: 8px !important;
        margin-top: 4px !important;
    }

    .el-group #main_menu .main_menu-dropdown .m-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
    }

    .el-group #main_menu .main_menu-dropdown .dropdown-item {
        padding: 6px 8px !important;
        font-size: 13px !important;
    }

    .el-group #main_user {
        width: 100% !important;
        gap: 8px !important;
    }

    .el-group #main_user .button-user {
        width: 100% !important;
        border-radius: 8px !important;
        padding: 10px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: center !important;
    }

    /* 5. Movie Cards Grid - 2 Columns on Mobile */
    .cards-grid-wrapper,
    .cards-row.fixed .cards-grid-wrapper,
    .cards-row.wide .cards-grid-wrapper,
    .actors-grid-wrapper,
    .cards-row.fixed.min .cards-grid-wrapper,
    #homeTrendingList,
    #homeSeriesList,
    #homeSingleList,
    #homeCinemaList,
    #homeCartoonList,
    #homeTvShowsList,
    #filteredMoviesList,
    #allMoviesList {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    .cards-row.fixed,
    .cards-row.wide,
    .container {
        padding: 0 10px !important;
        max-width: 100% !important;
    }

    .cards-row {
        margin-bottom: 24px !important;
    }

    .cards-row .row-header {
        margin-bottom: 10px !important;
        min-height: 32px !important;
    }

    .cards-row .row-header .category-name {
        font-size: 1.25em !important;
    }

    .cards-row .row-header .inc-icon {
        width: 22px !important;
        height: 22px !important;
    }

    /* Movie card styling */
    .v-thumbnail {
        border-radius: 6px !important;
        padding-bottom: 145% !important;
    }

    .v-item-movie .item-title,
    .sw-item .info .item-title {
        font-size: 12.5px !important;
        line-height: 1.35 !important;
        margin-top: 4px !important;
        white-space: normal !important;
    }

    .v-thumbnail .pin-thumb {
        height: 24px !important;
        padding: 0 6px !important;
    }

    .v-thumbnail .pin-thumb > div {
        font-size: 10.5px !important;
    }

    .v-thumbnail .pin-thumb > div.e-quality {
        font-size: 11px !important;
    }

    /* 6. Authentic Mobile Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 58px !important;
        background: rgba(15, 17, 26, 0.97) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        z-index: 1000 !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 0 2px !important;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5) !important;
    }

    .mobile-bottom-nav .mb-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        height: 100% !important;
        color: #94a3b8 !important;
        text-decoration: none !important;
        font-size: 10px !important;
        font-weight: 500 !important;
        gap: 3px !important;
        transition: color 0.15s ease, transform 0.15s ease !important;
        cursor: pointer !important;
    }

    .mobile-bottom-nav .mb-nav-item svg {
        transition: stroke 0.15s ease !important;
    }

    .mobile-bottom-nav .mb-nav-item.active,
    .mobile-bottom-nav .mb-nav-item:active {
        color: #ffd875 !important;
    }

    .mobile-bottom-nav .mb-nav-item.active svg {
        stroke: #ffd875 !important;
    }

    /* 7. Watch / Player Page on Mobile */
    .watch-layout,
    .watch-container,
    #watch_area,
    .watch-page-wrapper {
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .watch-player-col,
    #watch_left {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .watch-sidebar-col,
    #watch_right {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 10px !important;
    }

    .player-frame-container,
    .video-wrapper,
    #playerContainer {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        border-radius: 0 !important;
        border: none !important;
    }

    /* Episode buttons on mobile */
    .episodes-grid,
    .server-episodes-list {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }

    .ep-btn,
    .episode-item {
        min-height: 36px !important;
        font-size: 12px !important;
        padding: 6px 4px !important;
    }

    /* 8. Hero Slider on Mobile */
    .top-slide-main {
        height: 380px !important;
        margin-bottom: 0 !important;
    }

    .slide-content {
        padding: 40px 16px 20px !important;
    }

    .slide-content .media-title {
        font-size: 1.6em !important;
        line-height: 1.25 !important;
        margin-bottom: 0.5rem !important;
    }

    .slide-content .description {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slide-content .touch {
        gap: 1rem !important;
    }

    .slide-content .touch .button-play {
        width: 48px !important;
        height: 48px !important;
    }

    .slide-content .touch .button-play svg {
        font-size: 20px !important;
    }

    /* 9. Footer on Mobile */
    .footer-elements {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 24px 12px !important;
        text-align: center !important;
    }

    .footer-elements .side-left,
    .footer-elements .side-right {
        max-width: 100% !important;
        align-items: center !important;
    }

    .sl-brand {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .sl-brand .socials {
        padding-left: 0 !important;
        border-left: none !important;
        justify-content: center !important;
    }

    .sr-links {
        justify-content: center !important;
    }
}


