@charset "UTF-8";
/* ═══════════════════════════════════════════════════
   KingAnime WordPress Theme — CSS
   Ported 1:1 from original Node.js style.css
   ═══════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────── */
: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: #ffffff10;
    --bg-2: #282b3a;
    --bg-3: #2f3346;
    --bg-4: #3e435c;
    --bg-5: #535d8e;
    --footer-bg: #0f111a;
    --shadow-large: 0 0 20px 20px rgba(0, 0, 0, 0.1);
    --h-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
    --padding-base: 40px;
}

/* ── Reset & Base ──────────────────────────── */
html {
    scroll-behavior: smooth;
}

body,
html {
    position: relative;
    min-height: 100vh;
}

body {
    background: var(--bg-color);
    color: var(--text-base);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    padding: 0;
    margin: 0;
    -webkit-text-size-adjust: none;
}

a {
    cursor: pointer;
    color: #fff;
    text-decoration: none !important;
}

a:hover {
    color: var(--primary-text);
}

button {
    background-color: transparent;
    outline: none;
    border: none;
}

/* Hide WP admin bar on frontend */
#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ── Typography ────────────────────────────── */
.heading-xl {
    font-size: 2.4em;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #fff;
}

.heading-md {
    font-size: 1.8em;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: .5rem;
    color: #fff;
}

.heading-sm {
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: .5rem;
    color: #fff;
}

.heading-xs {
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: .5rem;
    color: #fff;
}

.lim-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal !important;
}

.lim-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal !important;
}

.lim-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal !important;
}

.text-primary {
    color: var(--primary-text) !important;
}

/* ── Button System ─────────────────────────── */
.btn {
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .5rem 1.1rem;
    border-radius: .4rem;
    opacity: 1;
    min-height: 40px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .3s ease;
}

.btn:hover {
    opacity: .9;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    color: var(--primary-button-text) !important;
    border-color: var(--primary-color) !important;
}

.btn-secondary {
    background-color: var(--bg-3) !important;
    color: #fff !important;
    border-color: var(--bg-3) !important;
}

.btn-outline {
    background-color: transparent !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, .5) !important;
}

.btn-rounded {
    border-radius: 2rem;
}

.btn-lg {
    font-size: 16px;
    gap: .6rem;
    padding: .7rem 1.5rem;
    border-radius: .5rem;
    min-height: 50px;
}

.btn-sm {
    font-size: 12px;
    gap: .4rem;
    padding: .3rem .7rem;
    border-radius: .3rem;
    min-height: 30px;
}

.button-play,
.primary-gradient {
    background: #fecf59;
    background: linear-gradient(39deg, #fecf59, #fff1cc);
    color: var(--primary-button-text) !important;
}

.button-play {
    box-shadow: 0 5px 10px 5px rgba(255, 218, 125, .1);
}

.button-play:hover {
    box-shadow: 0 5px 10px 10px rgba(255, 218, 125, .15);
}

.btn-play {
    background: linear-gradient(39deg, #fecf59, #fff1cc);
    color: var(--primary-button-text) !important;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .8rem 2rem;
    border-radius: .5rem;
    box-shadow: 0 5px 10px 5px rgba(255, 218, 125, .1);
    transition: all .3s ease;
    cursor: pointer;
    border: none;
}

.btn-play:hover {
    box-shadow: 0 5px 10px 10px rgba(255, 218, 125, .15);
    transform: translateY(-1px);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: .4rem;
    background-color: var(--bg-3);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all .3s ease;
    min-height: 40px;
}

.btn-action:hover {
    background-color: var(--bg-4);
}

.btn-action.active {
    background-color: var(--primary-color);
    color: var(--primary-button-text);
    border-color: var(--primary-color);
}

/* ── Container ─────────────────────────────── */
.xc-container {
    width: 100%;
    max-width: 1900px;
    padding: 0 50px;
    margin: 0 auto;
}

/* ── Layout ────────────────────────────────── */
#wrapper {
    padding-bottom: 10rem;
    padding-top: 10rem;
    min-height: calc(100vh - 400px);
}

#wrapper.wrapper-w-slide {
    padding-top: 0 !important;
}

.fluid-gap {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* ── Header ────────────────────────────────── */
.xc-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #191b24;
    background: linear-gradient(0deg, rgba(25, 27, 36, 0), #191b24);
    transition: all .3s ease;
}

.xc-header.fixed {
    background-color: var(--footer-bg) !important;
}

.xc-header.fixed .header-inner {
    height: 70px;
}

.header-inner {
    height: 90px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1900px;
    margin: 0 auto;
}

.logo {
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.logo img {
    height: 46px;
    width: auto;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: .4rem;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Header Search */
.header-search {
    width: 100%;
    max-width: 23rem;
    position: relative;
}

.header-search input {
    width: 100%;
    height: 2.8rem;
    line-height: 2rem;
    padding: .4rem 3rem .4rem 3rem;
    background-color: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 1em;
    outline: none !important;
    box-shadow: none !important;
    border-radius: .4rem;
    border: 1px solid transparent !important;
}

.header-search input:focus {
    border-color: #fff !important;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, .6) !important;
}

.header-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 16px;
    pointer-events: none;
}

.search-results {
    position: absolute;
    z-index: 90;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    min-width: 360px;
    background-color: rgba(15, 17, 26, .95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: .4rem;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    display: none;
}

.search-results.active {
    display: block;
}

.search-results .search-item {
    display: flex;
    gap: 1rem;
    padding: .6rem 1rem;
    align-items: center;
    border-radius: .4rem;
    transition: background .2s;
}

.search-results .search-item:hover {
    background-color: rgba(255, 255, 255, .03);
}

.search-results .search-item img {
    width: 50px;
    height: 72px;
    object-fit: cover;
    border-radius: .3rem;
    flex-shrink: 0;
}

.search-results .search-item .info {
    flex-grow: 1;
    min-width: 0;
}

.search-results .search-item .info .item-title {
    color: #fff;
    font-size: 1em;
    margin-bottom: .2rem;
}

.search-results .search-item .info .tag-small {
    font-size: .9em;
    color: var(--text-base);
    margin-right: .6rem;
}

/* Header Nav — WP nav menu */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-nav li {
    position: relative;
    list-style: none;
}

.header-nav>li>a,
.header-nav>.menu-item>a {
    display: block;
    line-height: 36px;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0 .75rem;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

.header-nav>li>a:hover,
.header-nav>.menu-item>a:hover {
    color: var(--primary-text);
    background-color: rgba(255, 255, 255, .08);
    border-radius: 6px;
}

/* Sub-menu indicator arrow */
.header-nav li.menu-item-has-children>a:after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
}

/* SubMenu dropdown */
.header-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: rgba(15, 17, 26, .95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: .4rem;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    z-index: 99;
    padding: .4rem 0;
    list-style: none;
    margin: 0;
}

.header-nav li:hover>.sub-menu {
    display: block;
}

.header-nav .sub-menu li a {
    display: block;
    padding: .5rem 1rem;
    color: #ccc;
    font-size: 13px;
    white-space: nowrap;
    transition: all .2s;
}

.header-nav .sub-menu li a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, .05);
    padding-left: 1.2rem;
}

/* ── Movie card hover overlay (search/list pages) ── */
.movie-card {
    position: relative;
}

.movie-card .thumb {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--card-radius, 8px);
}

.movie-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .3) 40%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: var(--card-radius, 8px);
    pointer-events: none;
    z-index: 5;
}

.movie-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay .card-ol-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
}

.card-overlay .card-ol-sub {
    color: #aaa;
    font-size: 11px;
    margin: 0 0 6px;
}

.card-overlay .card-ol-btn {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary, #ffd875);
    color: #000;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    pointer-events: auto;
    width: fit-content;
}

/* ══════════════════════════════════════════════
   CARD SYSTEM — Movies Grid, Thumbnails, Badges
   ══════════════════════════════════════════════ */

/* ── Cards Row Section ── */
.cards-row {
    padding: 0 var(--padding-base, 40px);
    max-width: 1900px;
    margin: 0 auto;
}

.cards-row.wide {
    padding: 0 var(--padding-base, 40px);
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.category-name {
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* ── Movies Grid (Phim Mới Cập Nhật) ── */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

@media (min-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1600px) {
    .movies-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* ── V-Thumbnail (Portrait) ── */
.v-thumbnail {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: .6rem;
    aspect-ratio: 2/3;
    background-color: var(--bg-2);
}

.v-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.v-thumbnail:hover img {
    transform: scale(1.08);
}

.v-thumbnail:hover {
    box-shadow: 0 0 0 2px var(--primary-text, #ffd875), 0 8px 24px rgba(255, 216, 117, .15);
}

/* ── V-Thumbnail Horizontal ── */
.v-thumbnail-hoz {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: .6rem;
    aspect-ratio: 16/9;
    background-color: var(--bg-2);
}

.v-thumbnail-hoz img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.v-thumbnail-hoz:hover img {
    transform: scale(1.05);
}

/* ── Mask overlay on thumbnail ── */
.v-thumbnail .mask,
.v-thumbnail-hoz .mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

/* ── Pin New Badge ── */
.pin-new {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4444;
    box-shadow: 0 0 6px rgba(255, 68, 68, .6);
}

.m-pin-new::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 68, 68, .4);
    animation: pin-pulse 2s infinite;
}

@keyframes pin-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .3;
        transform: scale(1.4);
    }
}

/* ── Badge Quality / Episode ── */
.badge-quality {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    background: rgba(0, 0, 0, .6);
    color: var(--primary-text);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.badge-episode {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 5;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* ── Movie Card (used with .thumb) ── */
.movie-card .thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: .6rem;
    aspect-ratio: 2/3;
    background-color: var(--bg-2);
}

.movie-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.movie-card:hover .thumb img {
    transform: scale(1.08);
}

.movie-card:hover .thumb {
    box-shadow: 0 0 0 2px var(--primary-text, #ffd875), 0 8px 24px rgba(255, 216, 117, .15);
}

/* ── Card Info (below thumbnail) ── */
.card-info {
    padding: .5rem 0;
}

.card-title {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.card-title:hover {
    color: var(--primary-text);
}

.card-meta {
    color: var(--text-base);
    font-size: 12px;
}

/* ── SW Item / Info ── */
.sw-item {
    position: relative;
}

.sw-item .info,
.sw-cover .info {
    padding: .5rem 0;
}

.item-title {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.item-title a {
    color: #fff;
}

.item-title a:hover {
    color: var(--primary-text);
}

.item-desc {
    color: var(--text-base);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.alias-title {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-base);
    margin: 0;
}

.alias-title a {
    color: var(--text-base);
}

/* ── Info-V (Top 10 vertical layout) ── */
.info-v {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.info-v .number {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .15);
    line-height: 1;
    flex-shrink: 0;
    min-width: 28px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 216, 117, .3), transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-line {
    display: flex;
    gap: .4rem;
    margin-top: 2px;
}

/* ── Tag System ── */
.tag-small {
    font-size: 11px;
    color: var(--text-base);
    background: rgba(255, 255, 255, .05);
    padding: 1px 6px;
    border-radius: 3px;
}

/* ── SW Cover ── */
.sw-cover {
    position: relative;
}

.sw-cover .h-item {
    padding: .4rem 0;
}

/* ── Hover Card Overlay (from original) ── */
.movie-card .card-overlay,
.sw-item .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .3) 40%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: .6rem;
    pointer-events: none;
    z-index: 5;
}

.movie-card:hover .card-overlay,
.sw-item:hover .card-overlay {
    opacity: 1;
}

.card-ol-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.card-ol-sub {
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 3px;
}

.card-ol-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 14px;
    background: var(--primary-text);
    color: var(--bg-main);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-align: center;
    width: fit-content;
    transition: background .2s;
}

.card-ol-btn:hover {
    background: var(--primary-hover);
}

/* ══════════════════════════════════════════════
   COMMENT SECTION — Single Movie Page
   ══════════════════════════════════════════════ */

/* ── Comment container (single-xc-phim) ── */
.child-discuss {
    background: var(--bg-2, #282b3a);
    border-radius: .8rem;
    padding: 1.2rem;
    margin-top: 1.5rem;
}

.child-discuss .heading {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    margin-bottom: 1rem;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.child-discuss .heading .inc-icon {
    color: var(--primary-text);
    flex-shrink: 0;
}

.child-content {
    margin-top: .5rem;
}

/* ── Comment form ── */
.discuss-wrap .my-area {
    margin-bottom: 1rem;
}

.my-area .ma-user {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .8rem;
}

.my-area .ma-user .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-3);
}

.my-area .ma-user .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-area .ma-user .info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.my-area .ma-user .info small {
    font-size: 11px;
    color: var(--text-base);
}

.textarea-wrap .ma-input {
    position: relative;
}

.v-form-textarea {
    width: 100%;
    min-height: 80px;
    background: var(--bg-3, #2f3346);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .6rem;
    padding: .8rem;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    transition: border-color .2s;
}

.v-form-textarea:focus {
    outline: none;
    border-color: var(--primary-text);
}

.chac-left {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 11px;
    color: var(--text-base);
    opacity: .6;
}

.ma-buttons {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .6rem;
}

/* Spoiler toggle */
.v-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-base);
}

.v-toggle .toggle-x {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    position: relative;
    transition: background .2s;
}

.v-toggle .toggle-x span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #666;
    transition: all .2s;
}

.v-toggle .toggle-x.on {
    background: var(--primary-text);
}

.v-toggle .toggle-x.on span {
    left: 18px;
    background: var(--bg-main);
}

.btn-basic {
    background: var(--primary-text);
    color: var(--bg-main);
    border: none;
    border-radius: .4rem;
    padding: .5rem 1.2rem;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .3rem;
    transition: opacity .2s;
}

.btn-basic:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-basic:hover:not(:disabled) {
    opacity: .9;
}

/* ── Comments list ── */
.discuss-list .comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.discuss-list .comment-item .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.discuss-list .comment-item .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Model tabs (bình luận / đánh giá) ── */
.model-tabs {
    display: flex;
    gap: 2px;
}

.model-tabs .item {
    padding: .4rem .8rem;
    font-size: 13px;
    color: var(--text-base);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .4rem;
    cursor: pointer;
    transition: all .2s;
}

.model-tabs .item.active {
    background: var(--primary-text);
    color: var(--bg-main);
    border-color: var(--primary-text);
}

/* ── No comments notice ── */
.v-notice {
    text-align: center;
    padding: 2rem;
    color: var(--text-base);
}

.v-notice .icon-notice {
    margin: 0 auto .5rem;
    font-size: 2rem;
}

/* ══════════════════════════════════════════════
   COMMENT SECTION — Watch Page (wm-cmt)
   ══════════════════════════════════════════════ */

.wm-comments {
    background: var(--bg-2, #282b3a);
    border-radius: .8rem;
    padding: 1.2rem;
    margin-top: 1.5rem;
}

.wm-cmt-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    margin-bottom: 1rem;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.wm-cmt-header i {
    color: var(--primary-text);
}

.cmt-my-area {
    margin-bottom: 1rem;
}

.cmt-user {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .8rem;
}

.cmt-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initial {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.cmt-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cmt-user-info small {
    font-size: 11px;
    color: var(--text-base);
}

.cmt-user-info span {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.cmt-textarea-wrap textarea {
    width: 100%;
    min-height: 70px;
    background: var(--bg-3, #2f3346);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .6rem;
    padding: .8rem;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    transition: border-color .2s;
}

.cmt-textarea-wrap textarea:focus {
    outline: none;
    border-color: var(--primary-text);
}

.cmt-actions {
    display: flex;
    align-items: center;
    margin-top: .5rem;
}

.cmt-submit {
    background: var(--primary-text);
    color: var(--bg-main);
    border: none;
    border-radius: .4rem;
    padding: .5rem 1.2rem;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: opacity .2s;
}

.cmt-submit:hover {
    opacity: .9;
}

.cmt-login-notice {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-base);
}

.cmt-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-base);
}

.cmt-empty i {
    font-size: 2rem;
    opacity: .5;
    margin-bottom: .5rem;
    display: block;
}

/* Comments list items */
.comment-item {
    display: flex;
    gap: .8rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.comment-item .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-user {
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    margin-right: .5rem;
}

.comment-time {
    font-size: 12px;
    color: var(--text-base);
}

.comment-text {
    margin-top: .3rem;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    line-height: 1.5;
}

/* Header User */
.header-user-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-auth {
    font-size: 1em;
    padding: .6rem 1.4rem;
    border-radius: 3rem;
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    opacity: .9;
    font-weight: 500;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    display: inline-block;
    transition: all .3s;
}

.btn-auth:hover {
    opacity: 1;
}

.btn-auth.btn-login {
    background-color: #fff;
    color: var(--primary-button-text);
}

.btn-bell {
    font-size: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    position: relative;
}

.noti-badge {
    position: absolute;
    top: -6px;
    left: 55%;
    line-height: 1;
    padding: .3rem .43rem;
    font-size: 12px;
    font-weight: 500;
    background-color: #191b24;
    color: var(--primary-text);
    border-radius: 12px;
}

/* User Avatar Circle */
.user-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd875, #e6a800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s;
    border: 2px solid rgba(255, 255, 255, .2);
}

.user-avatar-circle:hover {
    transform: scale(1.1);
}

/* User Dropdown */
.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background-color: rgba(15, 17, 26, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    overflow: hidden;
    z-index: 200;
}

.user-dropdown.show {
    display: block;
}

.ud-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ud-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.ud-email {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.ud-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #ccc;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}

.ud-item:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.ud-item i {
    width: 16px;
    text-align: center;
}

.ud-sep {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: 4px 0;
}

.ud-logout {
    color: #f87171;
}

.ud-logout:hover {
    color: #fca5a5;
    background: rgba(248, 113, 113, .08);
}

/* ══════════ Auth Popup Modal ══════════ */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal {
    background: #1a1c2e;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    border: 1px solid rgba(255, 255, 255, .06);
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: color .2s;
    line-height: 1;
}

.auth-modal-close:hover {
    color: #fff;
}

.auth-modal-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, .05);
    border-radius: 8px;
    padding: 3px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all .2s;
}

.auth-tab.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}

.auth-field input:focus {
    border-color: rgba(255, 216, 117, .4);
}

.auth-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
}

.auth-field-row label {
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-field-row a {
    color: #ffd875;
    text-decoration: none;
}

.auth-field-row a:hover {
    color: #fff;
}

.auth-msg {
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 20px;
}

.auth-msg.error {
    color: #f87171;
}

.auth-msg.success {
    color: #4ade80;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ffd875, #e6a800);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.auth-submit:hover {
    opacity: .9;
}

.auth-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .auth-modal {
        margin: 0 16px;
        padding: 30px 24px;
    }
}

/* ── Thumbnail System ──────────────────────── */
.v-thumbnail {
    width: 100%;
    padding-bottom: 150%;
    height: 0;
    position: relative;
    border-radius: .5rem;
    overflow: hidden;
    display: block;
    background-color: var(--bg-3);
}

.v-thumbnail img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

.v-thumbnail:hover img {
    opacity: .8;
    transition: opacity .3s ease;
}

/* Thumbnail Pins (quality, episode overlay) */
.v-thumbnail .pin-thumb {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: 0;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0 .6rem;
    background: linear-gradient(0deg, rgba(25, 27, 36, 0), rgba(25, 27, 36, .7));
}

.v-thumbnail .pin-thumb>div {
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    font-size: 13px;
}

.v-thumbnail .pin-thumb>div.e-quality {
    font-size: 15px;
    font-weight: 600;
}

.v-thumbnail .pin-new {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border-radius: .3rem .3rem 0 0;
    overflow: hidden;
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, .1);
}

.v-thumbnail .pin-new .line-center {
    flex: 1 1;
    gap: .2rem;
    justify-content: center;
    padding: .2rem .5rem;
    font-size: 11px;
    font-weight: 400;
    background-color: #5e6070;
    color: #fff;
    display: flex;
    align-items: center;
}

.v-thumbnail .pin-new .line-center.line-lt {
    background-color: #1667cf;
}

.v-thumbnail .pin-new .line-center.line-tm {
    background-color: #2ca35d;
}

/* ── Movie Card (sw-item) ──────────────────── */
.sw-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    position: relative;
}

.sw-item .info {
    min-height: 42px;
    text-align: center;
}

.sw-item .info .item-title {
    color: #fff;
    font-size: 1em;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.5;
}

.sw-item .info .info-line {
    display: block;
}

.sw-item .info .info-line .tag-small {
    font-size: .9em;
    color: var(--text-base);
    white-space: nowrap;
    margin-right: .6rem;
    display: inline;
}

/* ── Cards Grid ────────────────────────────── */
.cards-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1.5rem;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1.5rem;
}

/* ── Cards Row (Section) ───────────────────── */
.cards-row {
    position: relative;
}

.cards-row.wide {
    width: 100%;
    max-width: 1900px;
    padding: 0 50px;
    margin: 0 auto;
}

.section-row {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    position: relative;
    min-height: 44px;
    margin-bottom: 1.2rem;
}

.section-title {
    font-size: 2em;
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 1px rgba(0, 0, 0, .3);
    display: flex;
    align-items: center;
    gap: .75rem;
}

.section-title .icon {
    font-size: .8em;
}

.section-more {
    color: var(--text-base);
    font-size: .9em;
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-left: auto;
}

.section-more:hover {
    color: var(--primary-text);
}

/* ── Hero Slide ────────────────────────────── */
.top-slide-main {
    position: relative;
    width: 100%;
    margin-bottom: -120px;
    height: 860px;
    background-color: var(--top-bg-default);
    overflow: hidden;
}

.top-slide-main::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    z-index: 3;
    background: linear-gradient(0deg, #191b24, rgba(25, 27, 36, 0));
}

.slide-content {
    position: relative;
    z-index: 5;
    max-width: 700px;
    width: 100%;
    padding: 100px 50px;
}

.slide-content .media-title {
    font-size: 3em;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 1px rgba(0, 0, 0, .3);
    color: #fff;
}

.slide-content .description {
    font-size: 1em;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    font-weight: 400;
    margin-bottom: 2rem;
}

/* ── Detail Page ───────────────────────────── */
.top-detail-wrap {
    width: 100%;
    height: 0;
    padding-bottom: 40%;
    position: relative;
    background-color: var(--top-bg-default);
    overflow: hidden;
}

.top-detail-wrap::before,
.top-detail-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    z-index: 3;
    background: linear-gradient(0deg, #191b24, rgba(25, 27, 36, 0));
}

.top-detail-wrap::before {
    top: 0;
    bottom: auto;
    height: 100%;
    background-image: url(/images/dotted.png);
    background-repeat: repeat;
    opacity: .2;
    z-index: 1;
}

.top-detail-wrap .cover-fade {
    width: 100%;
    max-width: 1900px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    mask-image: linear-gradient(0deg, transparent 0, #000 20%, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 20%, #000 80%, transparent);
}

.top-detail-wrap .cover-fade .cover-image {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 10px, rgba(0, 0, 0, .2) 15%, #000 40%, #000 80%, transparent 99%);
    -webkit-mask-image: linear-gradient(90deg, transparent 10px, rgba(0, 0, 0, .2) 15%, #000 40%, #000 80%, transparent 99%);
}

.detail-bg {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background-color: var(--top-bg-default);
}

.detail-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 300px;
    z-index: 2;
    background: linear-gradient(0deg, #191b24, rgba(25, 27, 36, 0));
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(0deg, transparent 0, #000 30%, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 30%, #000 70%, transparent 100%);
    opacity: .5;
}

.detail-container {
    width: 100%;
    max-width: 1640px;
    padding: 0 20px;
    margin: -200px auto 0;
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.detail-container>div {
    background-color: rgba(25, 27, 36, .3);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* ── DC Side (Left Panel) ──────────────────── */
.detail-container>div.dc-side {
    flex-shrink: 0;
    width: 440px;
    border-radius: 1.25rem 3rem 1.25rem 1.25rem;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.ds-info {
    font-weight: 300;
}

.ds-info .media-name {
    font-size: 1.8em;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: .5rem;
    color: #fff;
}

.ds-info .alias-name {
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.ds-info #toggle-detail {
    display: none;
}

.v-thumb-l {
    width: 120px;
    flex-shrink: 0;
}

.v-thumb-m {
    width: 80px;
    flex-shrink: 0;
}

.detail-more .de-title {
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.detail-more .de-value {
    color: var(--text-base);
}

.detail-more .de-value a {
    color: var(--primary-text);
}

.detail-line {
    margin-bottom: 1.2rem;
}

.detail-line.d-flex {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.hl-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: .75rem;
}

.tag-classic {
    background-color: rgba(255, 255, 255, .063);
    height: 26px;
    padding: 0 .4rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    border-radius: .33rem;
    font-size: 12px;
    border: 1px solid #fff;
}

.tag-topic {
    background-color: rgba(255, 255, 255, .063);
    height: 26px;
    padding: 0 .4rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    border-radius: .33rem;
    font-size: 12px;
}

.tag-topic:hover {
    color: var(--primary-text);
}

.dc-side>div {
    margin-bottom: 2rem;
}

.dc-side>div+div {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ── DC Main (Right Panel) ─────────────────── */
.detail-container>div.dc-main {
    background-color: rgba(25, 27, 36, .6);
    flex-grow: 1;
    border-radius: 3rem 1.25rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
}

/* ── Action Bar (dm-bar) ───────────────────── */
.dm-bar {
    padding: 30px;
}

.dm-bar .elements,
.dm-bar .is-left,
.dm-bar .touch-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
}

.dm-bar .is-left {
    gap: 1rem;
    justify-content: flex-start;
}

.dm-bar .item {
    min-width: 80px;
    padding: .6rem;
    border-radius: .6rem;
    cursor: pointer;
}

.dm-bar .item:hover {
    background-color: rgba(255, 255, 255, .02);
}

.dm-bar .item .item-v {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    font-size: .9em;
    line-height: 1;
}

.dm-bar .item .item-v span {
    color: #fff !important;
}

.button-play {
    background: linear-gradient(39deg, #fecf59, #fff1cc);
    color: var(--primary-button-text) !important;
    box-shadow: 0 5px 10px 5px rgba(255, 218, 125, .1);
    transition: all .3s ease;
}

.button-play:hover {
    box-shadow: 0 5px 10px 10px rgba(255, 218, 125, .15);
}

.btn-xl {
    font-size: 18px;
    gap: 1rem;
    padding: .95rem 2rem;
    border-radius: .6rem;
    min-height: 60px;
}

.btn-rounded {
    border-radius: 2rem;
}

.btn-basic {
    background-color: transparent !important;
    color: #fff !important;
    border-color: transparent !important;
}

.btn-block {
    width: 100%;
}

.v-rating {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
    color: #fff;
}

.ro-rating {
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: #3556b6;
    border-radius: 3rem;
    padding: .5rem .6rem;
}

.ro-rating .point {
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    padding: 0 .3rem 0 .5rem;
}

.ro-rating .a-rate {
    font-size: 11px;
    text-decoration: underline;
    margin: 0 .2rem 0 .5rem;
}

.inc-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.icon-16 {
    width: 16px;
    height: 16px;
}

.icon-20 {
    width: 20px;
    height: 20px;
}

.line-center {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

/* ── Content Gap ───────────────────────────── */
.content-gap {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cg-body-box {
    padding: 40px 0;
}

.cg-body-box .box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.heading-md {
    font-size: 1.8em;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: .5rem;
    color: #fff;
}

/* ── Episode Cards (de-type) ───────────────── */
.de-type {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.de-type .item {
    width: 100%;
    flex: 1 1;
    max-width: 550px;
    position: relative;
    border-radius: .75rem;
    overflow: hidden;
    background-color: var(--bg-4);
    transition: all .3s ease;
    text-decoration: none !important;
}

.de-type .item:hover {
    top: -5px;
}

.de-type .item .m-thumbnail {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 40%;
    max-width: 130px;
    mask-image: linear-gradient(270deg, #000, transparent 95%);
    -webkit-mask-image: linear-gradient(270deg, #000, transparent 95%);
}

.de-type .item .m-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.de-type .item .info {
    position: relative;
    z-index: 2;
    width: 90%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.de-type .item .info .media-title {
    font-weight: 600;
    font-size: 1.2em;
    line-height: 1.5;
    color: #fff;
}

.de-type .item .info .ver {
    font-size: .9em;
    color: rgba(255, 255, 255, .7);
}

.de-type .item.pd {
    background-color: #5e6070;
    color: #fff;
}

.btn-light {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

.btn-sm {
    font-size: 12px;
    gap: .4rem;
    padding: .3rem .7rem;
    border-radius: .3rem;
    min-height: 30px;
}

/* ── Sidebar Top Rankings (cc-top) ─────────── */
.child-box {
    display: block;
    position: relative;
}

.child-box .child-header {
    font-size: 1.6em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 40px;
}

.cc-top .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-top .item+.item {
    margin-top: 1rem;
}

.cc-top .item .position {
    width: 60px;
    flex-shrink: 0;
    text-align: left;
    font-size: 4em;
    font-weight: 800;
    color: var(--bg-color);
    text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
}

.cc-top .item .h-item {
    flex-grow: 1;
    background-color: rgba(255, 255, 255, .02);
    border-radius: .5rem;
    overflow: hidden;
    gap: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.cc-top .item .h-item .info {
    padding: .6rem 1rem;
    flex-grow: 1;
}

.cc-top .item .h-item .info .item-title {
    margin-bottom: .4rem;
}

.h-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.h-item .info {
    flex-grow: 1;
}

.item-title {
    color: #fff;
    font-size: 1em;
    font-weight: 400;
    margin-bottom: .5rem;
    line-height: 1.5;
}

.lim-1,
.lim-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal !important;
}

.lim-1 {
    -webkit-line-clamp: 1;
}

.lim-2 {
    -webkit-line-clamp: 2;
}

.info-line .tag-small {
    font-size: .9em;
    color: var(--text-base);
    white-space: nowrap;
    display: inline;
}

.info-line .tag-small+.tag-small {
    margin-left: 10px;
    padding-left: 10px;
    position: relative;
}

.info-line .tag-small+.tag-small::before {
    content: "";
    width: 5px;
    height: 5px;
    display: inline-block;
    background-color: rgba(255, 255, 255, .19);
    position: absolute;
    left: -3px;
    top: calc(50% - 3px);
    border-radius: 50%;
}

/* ── Comments (child-discuss) ──────────────── */
.child-discuss {
    padding-top: 20px;
}

.discuss-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.discuss-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

/* User avatar */
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-2);
}

.user-avatar img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

.user-avatar:hover img {
    opacity: .8;
}

/* Character counter */
.chac-left {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 11px;
    line-height: 1;
    color: var(--text-base);
}

/* Comment user info */
.ma-user {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ma-user .user-avatar {
    width: 44px;
    height: 44px;
    border: 2px solid #fff;
}

.ma-user .info {
    display: flex;
    flex-direction: column;
}

.ma-user .info small {
    color: #666;
    font-size: 12px;
    margin-bottom: 2px;
}

.ma-user .info span {
    font-weight: 500;
    color: #fff;
}

/* Tabs (Bình luận / Đánh giá) */
.model-tabs {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    border: 1px solid #fff;
    border-radius: .5rem;
    padding: 2px;
    font-size: 14px;
    font-weight: 400;
}

.model-tabs .item {
    height: 26px;
    border-radius: .3rem;
    font-size: 13px;
    padding: 0 .5rem;
    display: flex;
    align-items: center;
    color: #fff;
    cursor: pointer;
    background: transparent;
    border: none;
}

.model-tabs .item.active {
    background-color: #fff;
    color: #000;
}

/* Spoiler toggle */
.v-toggle {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    cursor: pointer;
}

.v-toggle .text {
    color: #fff;
    font-size: .9em;
    white-space: nowrap;
}

.v-toggle .toggle-x {
    border: 1px solid #fff;
    border-radius: 2rem;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    opacity: .3;
    flex-shrink: 0;
    transition: all .3s;
}

.v-toggle .toggle-x span {
    position: absolute;
    top: 5px;
    left: 5px;
    height: 8px;
    width: 8px;
    background-color: #fff;
    border-radius: 20px;
    transition: all .3s;
}

.v-toggle .toggle-x.on {
    opacity: 1;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.v-toggle .toggle-x.on span {
    left: 15px;
}

/* Empty state notice */
.v-notice {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-radius: 1rem;
    color: var(--text-base);
    background-color: rgba(0, 0, 0, .2);
}

.v-notice .icon-notice {
    width: 3rem;
    height: 3rem;
    opacity: .5;
}

/* Utility */
.gap-3 {
    gap: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.v-form-control {
    background-color: transparent !important;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .063);
    border-radius: .4rem;
    color: #fff !important;
    font-size: .95em;
    padding: .5rem 1rem;
}

.v-form-control:focus {
    border-color: #fff !important;
    box-shadow: none !important;
}

.v-form-control::placeholder {
    color: rgba(255, 255, 255, .4);
}

textarea.v-form-control {
    resize: none;
    padding: .6rem 1rem;
    height: auto;
}

.textarea-wrap {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .5rem;
    border-radius: .75rem;
    background-color: rgba(255, 255, 255, .063);
}

.my-area {
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-area .ma-input {
    position: relative;
    width: 100%;
}

.my-area .ma-input .v-form-control {
    padding: 1rem 1.2rem;
    border-radius: .6rem;
    border: 1px solid transparent;
    background-color: var(--bg-color) !important;
    width: 100%;
    min-height: 80px;
}

.ma-buttons {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ma-buttons .btn-submit {
    color: var(--primary-text) !important;
}

/* ── d-block / d-flex utilities ──────────────── */
.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-2 {
    margin-bottom: .5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.primary-text {
    color: var(--primary-text) !important;
}

/* ── Responsive for detail page ──────────────── */
@media screen and (max-width: 1599px) {
    .detail-container {
        margin-top: -100px;
    }

    .cg-body-box .box-header {
        margin-bottom: 1.5rem;
    }
}

@media screen and (max-width: 1359px) {
    .detail-container>div.dc-side {
        padding: 30px;
        width: 380px;
    }
}

@media screen and (max-width: 1279px) {
    .detail-container>div.dc-side {
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        width: 340px;
    }
}

@media screen and (min-width: 1280px) {
    .ds-info .v-thumb-l {
        width: 160px;
    }
}

@media screen and (max-width: 1120px) {
    .top-detail-wrap {
        padding-bottom: 300px;
        opacity: .5;
    }

    .detail-container {
        flex-direction: column;
        margin-top: -150px;
    }

    .detail-container>div.dc-side {
        width: 100%;
    }

    .dc-side>div {
        margin-bottom: 0;
    }

    .dc-side>.child-top {
        display: none;
    }

    .ds-info {
        text-align: center;
        margin-bottom: 1rem;
    }

    .ds-info .alias-name {
        font-size: 13px;
        color: var(--text-base);
        margin-bottom: 1rem;
        margin-top: -.25rem;
    }

    .ds-info .v-thumb-l {
        margin: 0 auto;
    }

    .ds-info .detail-more {
        text-align: left;
        display: none;
        padding: 1.5rem;
        background-color: rgba(0, 0, 0, .2);
        border-radius: .75rem;
    }

    .ds-info .detail-more.show {
        display: block;
    }

    .ds-info #toggle-detail {
        display: block;
        max-width: 300px;
        margin: -.5rem auto 0;
    }

    .detail-container>div.dc-main {
        background-color: transparent;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dm-bar {
        padding: 20px;
    }

    .content-gap {
        padding: 0 20px;
        gap: 30px;
    }
}

@media screen and (max-width: 989px) {
    .de-type {
        grid-template-columns: repeat(2, 1fr);
    }

    .de-type .item .m-thumbnail {
        max-width: 110px;
    }

    .de-type .item {
        top: auto !important;
        max-width: none !important;
    }

    .de-type .item .info {
        padding: 1rem;
        gap: .3rem;
    }
}

@media screen and (max-width: 799px) {
    .content-gap {
        padding: 0;
    }

    .dm-bar .elements {
        flex-direction: column;
        gap: 1rem;
    }

    .dm-bar .elements .button-play {
        min-width: 300px;
    }
}

@media screen and (max-width: 640px) {
    .de-type {
        grid-template-columns: repeat(1, 1fr);
    }

    .dm-bar .elements .button-play {
        font-size: 16px;
        padding: 0 1.4rem;
        height: 50px;
        min-height: auto;
    }

    .cg-body-box {
        padding: 30px 0;
    }

    .heading-md {
        font-size: 1.4em;
    }
}

@media screen and (max-width: 479px) {
    .dm-bar {
        width: 100%;
        padding: 1rem 0;
    }

    .dm-bar .item {
        min-width: auto;
        padding: 0;
        background: none !important;
    }

    .dm-bar .item-comment {
        display: none;
    }

    .dm-bar .is-left {
        gap: 1.5rem;
    }

    .dm-bar .touch-group {
        margin: .5rem 0;
        gap: 1.5rem;
    }

    .top-detail-wrap {
        padding-bottom: 200px;
    }

    .child-box .child-header {
        font-size: 1.3em;
    }
}

/* ── Watch Page ────────────────────────────── */
.watch-container {
    width: 100%;
}

.player-container {
    width: 100%;
    background: #000;
    border-radius: .75rem;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.player-container video,
.player-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none;
}

/* ── Rating Stars ──────────────────────────── */
.rating-stars {
    display: flex;
    gap: 2px;
    font-size: 18px;
    cursor: pointer;
}

.rating-stars .star {
    color: var(--bg-4);
    transition: color .2s;
}

.rating-stars .star.active,
.rating-stars .star:hover {
    color: var(--primary-color);
}

/* ── Comments ──────────────────────────────── */
.comment-section {
    margin-top: 2rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 1rem;
    background-color: var(--bg-2);
    color: #fff;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

.comment-form textarea:focus {
    border-color: var(--primary-color);
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-item .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex-grow: 1;
    min-width: 0;
}

.comment-user {
    color: #fff;
    font-weight: 500;
    margin-right: .5rem;
}

.comment-time {
    font-size: .85em;
    color: var(--text-base);
}

.comment-text {
    margin-top: .4rem;
    line-height: 1.6;
}

/* ── Breadcrumb ────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 13px;
    color: var(--text-base);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-base);
}

.breadcrumb a:hover {
    color: var(--primary-text);
}

.breadcrumb .sep {
    opacity: .5;
}

.breadcrumb .current {
    color: #fff;
}

/* ── Sidebar / Top Rankings ────────────────── */
.sidebar-wrap {
    width: 350px;
    flex-shrink: 0;
}

.top-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}

.top-tab-btn {
    padding: .4rem 1rem;
    border-radius: .4rem;
    font-size: 13px;
    background-color: var(--bg-3);
    color: #fff;
    cursor: pointer;
    border: none;
    transition: all .2s;
}

.top-tab-btn.active {
    background-color: var(--primary-color);
    color: var(--primary-button-text);
    font-weight: 500;
}

.top-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.top-list-item .position {
    width: 40px;
    flex-shrink: 0;
    text-align: center;
    font-size: 2em;
    font-weight: 800;
    color: var(--bg-color);
    text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
}

/* ── Filter Bar ────────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-2);
    border-radius: .75rem;
}

.filter-bar select,
.filter-bar input {
    padding: .5rem 1rem;
    background-color: var(--bg-3);
    color: #fff;
    border: 1px solid var(--border-color);
    border-radius: .4rem;
    font-size: 14px;
    outline: none;
}

.filter-bar select:focus,
.filter-bar input:focus {
    border-color: var(--primary-color);
}

/* ── Pagination ────────────────────────────── */
.pagination {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .6rem;
    border-radius: .4rem;
    font-size: 14px;
    background-color: var(--bg-3);
    color: #fff;
    transition: all .2s;
}

.pagination .current,
.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--primary-button-text);
}

/* ── Footer ────────────────────────────────── */
footer {
    background-color: var(--footer-bg);
}

.footer-elements {
    position: relative;
    min-height: 400px;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-elements>div {
    position: relative;
    z-index: 2;
}

.footer-elements .side-left {
    display: block;
    max-width: 750px;
}

footer .true {
    margin-bottom: 1.5rem;
}

footer .true .line-center {
    font-size: 14px;
    color: #fff;
    padding: .5rem .7rem;
    border-radius: 2rem;
    background-color: #78140f;
}

.sl-brand {
    gap: 3rem;
    margin-bottom: 2rem;
}

.sl-brand .footer-logo {
    display: block;
}

.sl-brand .footer-logo img {
    height: 60px;
    width: auto;
}

.sl-brand .socials {
    gap: .75rem;
    padding-left: 3rem;
    border-left: 1px solid var(--border-color);
}

.sl-brand .socials .social-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-2);
    color: #fff;
    font-size: 16px;
    transition: all .3s;
}

.sl-brand .socials .social-item:hover {
    background-color: var(--primary-color);
    color: var(--primary-button-text);
}

.sl-menu a {
    margin-right: 1.5rem;
    white-space: nowrap;
}

.sl-menu a:last-of-type {
    margin-right: 0;
}

.sl-notice {
    line-height: 1.8;
    font-size: 13px;
    color: var(--text-base);
}

.sl-copyright {
    font-size: 13px;
    color: var(--text-base);
    margin-top: .5rem;
}

/* Footer icon background */
.footer-elements .footer-icon {
    position: absolute !important;
    z-index: 1 !important;
    width: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-14 {
    width: 14px;
    height: 14px;
}

/* Footer responsive */
@media screen and (max-width: 1599px) {
    .footer-elements {
        padding: 2rem;
        height: auto;
        min-height: auto;
    }

    .footer-elements .footer-icon {
        display: none;
    }
}

@media screen and (max-width: 1120px) {
    .footer-elements {
        padding: 3rem 1rem;
        height: auto;
    }

    .footer-elements .side-left {
        width: 100%;
        text-align: center;
    }

    .sl-brand.line-center {
        flex-direction: column;
        gap: 2rem;
    }

    .sl-brand .socials {
        padding-left: 0;
        border: none;
    }
}

@media screen and (max-width: 640px) {
    .footer-elements {
        font-size: 12px;
        padding: 2rem 0;
    }
}

@media screen and (max-width: 479px) {
    .sl-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .sl-menu a {
        margin: 0 !important;
    }
}

/* Go to top */
#totop {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

#totop.show {
    opacity: 1;
    pointer-events: all;
}

#totop:hover {
    background-color: var(--primary-color);
    color: var(--primary-button-text);
}

/* ── Auth Pages ────────────────────────────── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 2rem 0;
}

.auth-box {
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
    background-color: var(--bg-2);
    border-radius: 1rem;
}

.auth-box h2 {
    font-size: 1.6em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    color: #fff;
    font-size: 13px;
    margin-bottom: .4rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .7rem 1rem;
    background-color: var(--bg-3);
    color: #fff;
    border: 1px solid var(--border-color);
    border-radius: .4rem;
    font-size: 14px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: .8rem;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(39deg, #fecf59, #fff1cc);
    color: var(--primary-button-text);
    border: none;
    border-radius: .5rem;
    cursor: pointer;
    transition: all .3s;
}

.btn-submit:hover {
    box-shadow: 0 5px 10px 5px rgba(255, 218, 125, .1);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-text);
    font-weight: 500;
}

/* ── Mobile Nav ────────────────────────────── */
.mobile-nav .mobile-nav-content {
    background-color: var(--bg-2);
    width: 300px;
    height: 100%;
    padding: 1.5rem;
    overflow-y: auto;
}

/* ── Swiper Custom ─────────────────────────── */
.swiper-hero {
    width: 100%;
    height: 100%;
}

.swiper-hero .swiper-slide {
    position: relative;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════ */
@media screen and (max-width: 1599px) {
    .header-inner {
        padding: 0 20px;
        gap: 1.5rem;
    }

    .xc-container {
        padding: 0 20px;
    }

    .logo img {
        height: 40px;
    }

    .header-nav {
        gap: .5rem;
    }

    .header-nav a {
        padding: 0 .7rem;
        font-size: 13px;
    }

    .btn-auth {
        min-width: 125px;
        padding: .5rem .8rem;
    }

    #wrapper {
        padding-top: 7rem;
    }

    .section-title {
        font-size: 1.8em;
    }

    .cards-grid-wrapper,
    .movie-grid {
        gap: 1rem;
    }

    .detail-container {
        margin-top: -100px;
    }
}

@media screen and (max-width: 1359px) {
    .header-search {
        display: none;
    }

    .header-inner {
        padding: 0 6px;
        height: 60px;
    }

    .header-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .cards-grid-wrapper,
    .movie-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }

    #wrapper {
        padding-top: 5rem;
    }

    .detail-side {
        width: 300px;
        padding: 20px;
    }

    .detail-main {
        padding: 30px;
    }

    .episode-list {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media screen and (max-width: 1120px) {

    .cards-grid-wrapper,
    .movie-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .footer-inner {
        min-height: auto;
        padding: 3rem 1rem;
    }
}

@media screen and (max-width: 960px) {

    .cards-grid-wrapper,
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .detail-container {
        flex-direction: column;
        margin-top: -100px;
    }

    .detail-side {
        width: 100%;
        flex-direction: row;
        gap: 2rem;
    }

    .detail-side .poster {
        max-width: 200px;
    }

    .detail-main {
        padding: 25px;
    }

    .episode-list {
        grid-template-columns: repeat(5, 1fr);
    }

    .slide-content .media-title {
        font-size: 2em;
    }
}

@media screen and (max-width: 768px) {
    .xc-container {
        padding: 0 15px;
    }

    .cards-grid-wrapper,
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: .75rem;
    }

    .section-title {
        font-size: 1.4em;
    }

    .detail-bg {
        height: 300px;
    }

    .detail-container {
        margin-top: -80px;
    }

    .detail-side {
        flex-direction: column;
    }

    .detail-side .poster {
        max-width: 180px;
    }

    .detail-main {
        padding: 20px;
    }

    .movie-name {
        font-size: 1.6em;
    }

    .episode-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .filter-bar {
        gap: .5rem;
        padding: 1rem;
    }

    .auth-box {
        padding: 1.5rem;
    }

    .btn-play {
        padding: .6rem 1.5rem;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {

    .cards-grid-wrapper,
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: .5rem;
    }

    .episode-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-main {
        padding: 15px;
    }

    .movie-name {
        font-size: 1.3em;
    }

    .section-title {
        font-size: 1.2em;
    }

    .info-row {
        flex-direction: column;
        gap: .2rem;
    }

    .info-label {
        min-width: auto;
    }
}

/* ══════════════════════════════════════════════
   HOMEPAGE – Hero Slider
   ══════════════════════════════════════════════ */
#wrapper.wrapper-w-slide {
    padding-top: 0 !important;
    margin-top: -90px;
}

.top-slide-main,
.top-slide-wrap {
    position: relative;
}

.top-slide-main {
    width: 100%;
    margin-bottom: -120px;
    height: 860px;
    background-color: var(--top-bg-default, #202331);
    overflow: hidden;
}

.top-slide-main:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    z-index: 3;
    background: linear-gradient(0deg, var(--bg-color), rgba(25, 27, 36, 0));
}

.top-slide-main .cover-fade {
    height: calc(100% - 60px) !important;
}

.top-slide-main .safe-area {
    height: calc(100% - 100px) !important;
}

.top-slide-wrap .swiper-slide-active .cover-fade {
    animation: cover-fade .5s forwards;
}

.top-slide-wrap .swiper-slide-active .cover-image {
    animation: hide-show 1s forwards;
}

.top-slide-wrap .swiper-slide-active .slide-content {
    animation: slide-content .5s forwards;
}

@keyframes cover-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes hide-show {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slide-content {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: var(--top-bg-default, #202331);
}

.slide-elements:before,
.top-detail-wrap:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-image: url(../images/dotted.png);
    background-repeat: repeat;
    opacity: .2;
    z-index: 1;
}

.slide-elements .cover-fade {
    width: 100%;
    max-width: 1900px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    mask-image: linear-gradient(0deg, transparent, #000 20%, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(0deg, transparent, #000 20%, #000 80%, transparent);
}

.slide-elements .cover-fade .cover-image {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 10px, rgba(0, 0, 0, .2) 15%, #000 40%, #000 80%, transparent 99%);
    -webkit-mask-image: linear-gradient(90deg, transparent 10px, rgba(0, 0, 0, .2) 15%, #000 40%, #000 80%, transparent 99%);
}

.slide-elements .background-fade {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: 50%;
    background-size: cover;
    filter: blur(50px);
    -webkit-filter: blur(80px);
    opacity: .2;
}

.slide-elements .safe-area {
    cursor: grab;
    width: 100%;
    height: 100%;
    max-width: 1900px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 2;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.slide-url {
    display: none;
}

.cover-fade .cover-image img,
.v-thumbnail img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

/* Slide content */
.slide-content {
    position: relative;
    z-index: 5;
    max-width: 700px;
    width: 100%;
    padding: 100px 50px;
}

.slide-content .media-title {
    font-size: 3em;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 1px rgba(0, 0, 0, .3);
    color: #fff;
}

.slide-content .media-alias-title {
    font-size: 1.2em;
    color: var(--text-base);
    margin-bottom: .5rem;
    font-weight: 400;
}

.slide-content .description {
    font-size: 1em;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    font-weight: 400;
    margin-bottom: 2rem;
}

.slide-content .touch {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.slide-content .touch .button-play {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-button-text) !important;
    opacity: .95;
}

.slide-content .touch .button-play svg {
    font-size: 28px;
    position: relative;
    left: 2px;
}

.slide-content .touch .button-play:hover {
    opacity: 1;
}

.slide-content .touch-group {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
}

.slide-content .touch-group:hover {
    border-color: #fff !important;
}

.slide-content .touch-group .item {
    height: 50px;
    min-width: 68px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 0 .2rem;
    gap: .3rem;
}

.slide-content .touch-group .item:first-of-type {
    padding-left: .4rem;
}

.slide-content .touch-group .item:last-of-type {
    padding-right: .4rem;
}

.slide-content .touch-group .item:hover {
    background-color: #ffffff05;
}

.slide-content .touch-group .item+.item {
    border-left: 2px solid var(--border-color);
}

/* Tags */
.hl-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: .75rem;
}

.tag-classic,
.tag-topic {
    border-radius: .33rem;
    font-size: 12px;
    background-color: #ffffff10;
    height: 26px;
    padding: 0 .4rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
}

.tag-classic {
    border: 1px solid #fff;
}

.tag-topic {
    text-decoration: none;
}

.tag-imdb {
    background-color: transparent;
    border: 1px solid #f0d25c;
    border-radius: .33rem;
    color: #fff;
    font-weight: 500;
    line-height: 24px;
    font-size: 12px;
    padding: 0 .4rem;
    display: inline-flex;
    align-items: center;
}

.tag-imdb:before {
    content: "IMDb";
    color: #f0d25c;
    font-weight: 500;
    padding-right: 4px;
    font-size: 10px;
    line-height: 1;
}

/* Thumbnail navigation */
.top-slide-wrap .top-slide-small {
    width: 450px !important;
    position: absolute;
    bottom: 212px;
    right: calc(50% - 900px);
}

.top-slide-wrap .top-slide-small .swiper-slide {
    width: 65px;
    height: 45px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 2px;
}

.top-slide-wrap .top-slide-small .swiper-slide:hover {
    border-color: #fff !important;
}

.top-slide-wrap .top-slide-small .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    background-color: var(--bg-2);
}

.top-slide-wrap .top-slide-small .swiper-slide.swiper-slide-thumb-active {
    border-color: #fff !important;
}

/* ══════════════════════════════════════════════
   HOMEPAGE – Fluid Gap & Cards
   ══════════════════════════════════════════════ */
.fluid-gap {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-top: 30px;
    position: relative;
    z-index: 2;
}

.cards-row {
    position: relative;
}

.cards-row.wide {
    max-width: 1900px;
    width: 100%;
    padding: 0 50px;
    margin: 0 auto;
}

.cards-row .row-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    position: relative;
    min-height: 44px;
    margin-bottom: 1.2rem;
}

.cards-row .row-header .category-name {
    font-size: 2em;
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
    color: var(--category-name, #fff);
    text-shadow: 0 2px 1px rgba(0, 0, 0, .3);
}

/* Slider navigation */
.cards-slide-wrapper {
    position: relative;
}

.sw-navigation .sw-button {
    padding: 6px;
    background-color: transparent !important;
    color: #fff;
    outline: none !important;
    border: none !important;
    position: absolute;
    z-index: 10;
    right: 0;
    top: calc(50% - 27px);
    transform: translate(100%, -50%);
    opacity: .5;
}

.sw-navigation .sw-prev {
    right: auto;
    left: 0;
    transform: translate(-100%, -50%);
}

.sw-navigation .sw-button.swiper-button-disabled {
    display: none;
}

.sw-navigation .sw-button:hover {
    opacity: 1;
}

.sw-navigation .sw-button svg {
    width: 48px !important;
    height: 48px !important;
}

/* SW item */
.sw-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    position: relative;
}

.sw-item .v-thumbnail:hover img {
    opacity: .8;
}

.sw-item .info {
    min-height: 42px;
    text-align: center;
}

.sw-item .info .item-title {
    margin-bottom: 0;
}

.sw-item .info-v {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.sw-item .info-v .alias-title {
    font-size: .9em;
    color: var(--text-base);
}

.sw-item .info-v.w-chart {
    padding-left: 66px;
    position: relative;
    text-align: left;
}

.sw-item .info-v.w-chart .number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    line-height: 1;
    text-align: center;
    font-size: 4.2em;
    font-weight: 800;
    font-style: italic;
    background: linear-gradient(39deg, #fecf59, #fff1cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Thumbnail */
.v-thumbnail {
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    padding-bottom: 150%;
    height: 0;
    position: relative;
    border-radius: .5rem;
    overflow: hidden;
    display: block;
    background-color: var(--bg-3);
}

.v-thumbnail.v-thumbnail-hoz {
    padding-bottom: 56%;
}

.v-thumbnail img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

/* Pin badges */
.pin-new {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    border-radius: .3rem .3rem 0 0;
    overflow: hidden;
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, .1);
}

/* Item title */
.item-title {
    color: #fff;
    font-size: 1em;
    font-weight: 400;
    margin-bottom: .5rem;
    line-height: 1.5;
}

.h-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.h-item .info {
    flex-grow: 1;
}

.h-item .info .item-title {
    margin-bottom: .4rem;
}

.sw-cover {
    width: 100%;
    position: relative;
}

.sw-cover .h-item {
    padding: 1rem 1.25rem;
    position: relative;
    z-index: 2;
    gap: 1.25rem;
    align-items: flex-start;
}

.sw-cover .h-item .info .item-title {
    font-weight: 500;
}

.sw-cover.single .h-item {
    padding: 1rem;
}

.sw-cover.single .v-thumbnail.v-thumbnail-hoz {
    padding-bottom: 56%;
}

/* Info line */
.info-line {
    display: block;
}

.info-line .tag-small {
    font-size: .9em;
    color: var(--text-base);
    white-space: nowrap;
    margin-right: 0;
    display: inline;
}

/* ══════════════════════════════════════════════
   HOMEPAGE – Topics / Collection rows
   ══════════════════════════════════════════════ */
.topics-list {
    flex-direction: column;
    gap: 3px;
    margin-top: 2rem;
    align-items: stretch;
}

.row-topic,
.topics-list {
    display: flex;
    justify-content: space-between;
}

.row-topic {
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    position: relative;
    background-color: #ffffff05;
}

.row-topic>div {
    position: relative;
    z-index: 3;
}

.row-topic .intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    width: 200px;
}

.topics-list.single {
    border-radius: 1rem;
    background: linear-gradient(0deg, rgba(40, 43, 58, 0) 20%, #282b3a);
    padding: 2rem;
    gap: 2rem;
}

.topics-list.single .row-topic {
    background-color: transparent;
    padding: 0;
}

.topics-list.single .row-topic .intro {
    padding-right: 1.5rem;
    padding-left: .5rem;
    gap: 1.5rem;
    flex-shrink: unset;
    flex-grow: 1;
}

.topics-list.single .row-topic .intro .heading-md {
    font-size: 2em !important;
    line-height: 1.3;
    font-weight: 700;
}

.topics-list.single .row-topic .row-content {
    position: relative;
    width: calc(100% - 230px);
}

.topics-list.single .sw-item .v-thumbnail {
    border-radius: .4rem;
}

.topics-list.single .sw-item .info {
    min-height: auto;
}

.topics-list.single .sw-item .info .item-title {
    font-size: 13px;
}

.topics-list.single .sw-navigation .sw-button {
    top: calc(50% - 28px);
    background-color: #fff !important;
    opacity: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 20px;
    box-shadow: 0 0 20px 5px #0003;
}

.topics-list.single .sw-navigation .sw-button.sw-prev {
    right: auto;
    left: 20px;
}

.topics-list.single .sw-navigation .sw-button.swiper-button-disabled {
    opacity: 0;
}

.topics-list.single .sw-navigation .sw-button svg {
    width: 20px !important;
    height: 20px !important;
    color: #000;
    position: relative;
    right: -1px;
}

.topics-list.single .sw-navigation .sw-button.sw-prev svg {
    right: auto;
    left: -1px;
}

.topics-list.single .h-item .info .item-title {
    margin-bottom: 0;
}

/* Text gradient */
.text-gradient {
    text-shadow: none !important;
    letter-spacing: 1px;
    font-weight: 700 !important;
    font-size: 2.2em !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cat more button */
.cat-more .line-center {
    padding: 0;
    height: 30px;
    width: 30px;
    border-radius: 2rem;
    border: 1px solid #fff5;
    font-size: 14px;
    justify-content: center;
    gap: 0;
}

.cat-more:hover .line-center {
    width: auto;
    padding: 0 .5rem;
}

.cat-more span {
    display: none;
    font-size: 12px;
    padding: 0 .4rem;
}

.cat-more:hover span {
    display: block;
}

/* ══════════════════════════════════════════════
   HOMEPAGE – Top 10 (clip-path posters)
   ══════════════════════════════════════════════ */
.top-up {
    margin-bottom: 20px;
}

.top-up .sw-item .v-thumbnail {
    background-color: transparent;
}

.top-up .sw-item .v-thumbnail .mask,
.top-up .sw-item .v-thumbnail img {
    border-radius: 0;
    clip-path: polygon(94.239% 100%, 5.761% 100%, 5.761% 100%, 4.826% 99.95%, 3.94% 99.803%, 3.113% 99.569%, 2.358% 99.256%, 1.687% 98.87%, 1.111% 98.421%, .643% 97.915%, .294% 97.362%, .075% 96.768%, 0 96.142%, 0 3.858%, 0 3.858%, .087% 3.185%, .338% 2.552%, .737% 1.968%, 1.269% 1.442%, 1.92% .984%, 2.672% .602%, 3.512% .306%, 4.423% .105%, 5.391% .008%, 6.4% .024%, 94.879% 6.625%, 94.879% 6.625%, 95.731% 6.732%, 96.532% 6.919%, 97.272% 7.178%, 97.942% 7.503%, 98.533% 7.887%, 99.038% 8.323%, 99.445% 8.805%, 99.747% 9.326%, 99.935% 9.88%, 100% 10.459%, 100% 96.142%, 100% 96.142%, 99.925% 96.768%, 99.706% 97.362%, 99.357% 97.915%, 98.889% 98.421%, 98.313% 98.87%, 97.642% 99.256%, 96.887% 99.569%, 96.06% 99.803%, 95.174% 99.95%, 94.239% 100%);
}

.top-up .swiper-slide:nth-child(2n) .v-thumbnail .mask,
.top-up .swiper-slide:nth-child(2n) .v-thumbnail img {
    clip-path: polygon(5.761% 100%, 94.239% 100%, 94.239% 100%, 95.174% 99.95%, 96.06% 99.803%, 96.887% 99.569%, 97.642% 99.256%, 98.313% 98.87%, 98.889% 98.421%, 99.357% 97.915%, 99.706% 97.362%, 99.925% 96.768%, 100% 96.142%, 100% 3.858%, 100% 3.858%, 99.913% 3.185%, 99.662% 2.552%, 99.263% 1.968%, 98.731% 1.442%, 98.08% .984%, 97.328% .602%, 96.488% .306%, 95.577% .105%, 94.609% .008%, 93.6% .024%, 5.121% 6.625%, 5.121% 6.625%, 4.269% 6.732%, 3.468% 6.919%, 2.728% 7.178%, 2.058% 7.503%, 1.467% 7.887%, .962% 8.323%, .555% 8.805%, .253% 9.326%, .065% 9.88%, 0 10.459%, 0 96.142%, 0 96.142%, .075% 96.768%, .294% 97.362%, .643% 97.915%, 1.111% 98.421%, 1.687% 98.87%, 2.358% 99.256%, 3.113% 99.569%, 3.94% 99.803%, 4.826% 99.95%, 5.761% 100%);
}

.top-up .sw-item .v-thumbnail:hover img {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    top: 4px;
    left: 4px;
}

.top-up .sw-item .v-thumbnail .mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(0, 0%, 100%, .05);
}

.top-up .sw-item .v-thumbnail:hover .mask {
    background-color: var(--primary-color);
}

/* ══════════════════════════════════════════════
   HOMEPAGE – Movies Grid
   ══════════════════════════════════════════════ */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (min-width: 1280px) {
    .movies-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1600px) {
    .movies-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* ══════════════════════════════════════════════
   HOMEPAGE – Responsive
   ══════════════════════════════════════════════ */
@media screen and (max-width: 1900px) {
    .top-slide-wrap .top-slide-small {
        right: 50px;
    }

    .top-slide-main {
        height: 760px;
    }
}

@media screen and (max-width: 1599px) {
    .cards-row.wide {
        padding: 0 20px;
    }

    .top-slide-main:before {
        height: 100px;
    }

    .top-slide-wrap .top-slide-main .slide-content {
        padding: 0 30px 60px;
        max-width: 600px;
    }

    .top-slide-wrap .top-slide-small {
        right: 30px;
        bottom: 172px;
    }

    .cards-row .row-header .category-name {
        font-size: 1.8em;
    }

    .topics-list.single .row-topic .row-content {
        width: calc(100% - 200px);
    }

    .topics-list.single .row-topic .intro .heading-md {
        font-size: 1.8em !important;
    }
}

@media screen and (max-width: 1359px) {
    .top-slide-wrap .top-slide-main {
        margin-bottom: 30px;
        height: 600px;
    }

    .top-slide-wrap .top-slide-main:before {
        display: none;
    }

    .top-slide-main .safe-area {
        height: 100% !important;
    }

    .top-slide-wrap .swiper-slide .cover-fade {
        height: 550px !important;
    }

    .top-slide-wrap .swiper-slide .slide-content {
        padding-bottom: 30px;
    }

    .top-slide-wrap .swiper-slide .slide-content .media-title {
        font-size: 2em;
    }

    .top-slide-wrap .top-slide-small {
        bottom: 42px;
    }

    .topics-list.single .row-topic {
        flex-direction: column;
        padding: 0;
        gap: 1rem !important;
    }

    .topics-list.single .row-topic .row-content {
        width: 100%;
    }

    .topics-list.single .row-topic .intro {
        padding: 0;
        flex-direction: row;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }
}

@media screen and (max-width: 1279px) {
    .sw-navigation {
        display: none;
    }

    .top-slide-wrap .top-slide-main {
        height: 600px;
    }
}

@media screen and (max-width: 1120px) {
    .top-slide-wrap .swiper-slide .cover-fade {
        height: 0 !important;
        padding-bottom: 50%;
    }

    .top-slide-wrap .swiper-slide .cover-fade .cover-image {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        height: 100% !important;
    }

    .top-slide-wrap .top-slide-small {
        width: 300px !important;
        right: 20px;
    }

    .top-slide-wrap .top-slide-small .swiper-slide {
        border-radius: 50%;
        overflow: hidden;
        max-width: 30px;
        height: 30px;
        border-width: 2px;
    }
}

@media screen and (max-width: 989px) {
    .slide-url {
        display: block;
        position: absolute;
        z-index: 6;
        top: 0;
        left: 0;
        bottom: 110px;
        right: 0;
    }

    .top-slide-wrap .swiper-slide .cover-fade {
        height: 0 !important;
        padding-bottom: 40%;
    }

    .slide-content .touch .button-play {
        width: 60px;
        height: 60px;
    }

    .top-slide-wrap .top-slide-small {
        bottom: 37px;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
}

@media screen and (max-width: 640px) {
    .cards-row.wide {
        padding: 0 16px;
    }

    .fluid-gap {
        gap: 24px;
    }

    .cards-row .row-header {
        min-height: 32px;
        margin-bottom: .75rem;
    }

    .cards-row .row-header .category-name {
        font-size: 1.6em;
    }

    .item-title {
        font-size: 13px;
    }

    .top-slide-main .safe-area {
        height: calc(100% - 60px) !important;
    }

    .top-slide-wrap .top-slide-main {
        height: 350px;
    }

    .top-slide-wrap .swiper-slide .slide-content .media-title {
        margin-bottom: .75rem;
        font-size: 1.6em;
    }

    .top-slide-wrap .top-slide-main .slide-content {
        text-align: center;
        padding: 0 20px;
    }

    .top-slide-wrap .swiper-slide .hl-tags.mb-4,
    .top-slide-wrap .swiper-slide .touch {
        display: none;
    }

    .top-slide-wrap .top-slide-small {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        padding: 2rem 0 1rem;
        background: linear-gradient(0deg, var(--bg-color), rgba(25, 27, 36, 0));
    }

    .top-slide-wrap .top-slide-small .swiper-slide {
        border-color: hsla(0, 0%, 100%, .3);
    }

    .top-slide-wrap .top-slide-small .swiper-wrapper {
        justify-content: center;
        gap: .2rem;
    }

    .sw-item .info-v.w-chart .number {
        font-size: 2em;
        width: 30px;
    }

    .sw-item .info-v.w-chart {
        padding-left: 36px;
    }

    .sw-item .info-v.w-chart .info-line {
        display: none;
    }

    .heading-md {
        font-size: 1.4em;
    }

    .topics-list.single {
        margin: 0 -16px;
        padding: 1rem;
        gap: 1rem;
        border-radius: .6rem;
    }

    .topics-list.single .row-topic .intro .heading-md {
        font-size: 1.5em !important;
        letter-spacing: 0 !important;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: .75rem;
    }
}

/* Swiper fade fix */
.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

/* ══════════════════════════════════════════════
   MOOD SECTION — Tâm Trạng Của Bạn
   ══════════════════════════════════════════════ */
.mood-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.neon-title {
    color: #fff;
    font-weight: 600;
}

.dice-icon {
    cursor: pointer;
    transition: all .3s ease;
    font-size: 1.2em;
    display: inline-block;
}

.dice-icon:hover {
    transform: scale(1.2);
}

.dice-icon.spinning {
    animation: spinDice 2s ease-in-out;
}

@keyframes spinDice {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(90deg) scale(1.2);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    75% {
        transform: rotate(270deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.mood-list {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: nowrap;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mood-list::-webkit-scrollbar {
    display: none;
}

.mood-list:active {
    cursor: grabbing;
}

.mood-card {
    width: 260px;
    min-height: 130px;
    position: relative;
    padding: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all .3s ease;
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    isolation: isolate;
}

.mood-card-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 16px;
    opacity: 1;
}

.mood-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.mood-card.selected {
    border-color: #fff;
}

.mood-card-main {
    font-size: 28px;
    font-weight: bold;
    z-index: 2;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}

.mood-card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.mood-card-sub {
    color: rgba(235, 235, 245, .6);
    font-size: 13px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

/* Mood Movies Grid */
.mood-movies-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: nowrap;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mood-movies-grid::-webkit-scrollbar {
    display: none;
}

.mood-movies-grid:active {
    cursor: grabbing;
}

.mood-movie-card {
    flex-shrink: 0;
    width: 150px;
}

.mood-movie-card a {
    text-decoration: none;
}

.mood-movie-thumb {
    width: 100%;
    aspect-ratio: 2/3;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.mood-movie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    opacity: 0;
    transition: opacity .3s ease;
}

.mood-movie-card:hover .mood-movie-overlay {
    opacity: 1;
}

.mood-movie-overlay h5 {
    color: #fff;
    font-size: 13px;
    margin: 0 0 4px 0;
    font-weight: bold;
}

.mood-movie-overlay p {
    color: #ccc;
    font-size: 11px;
    margin: 0;
}

.mood-movie-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    background: #ffd875;
    color: #000;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
}

@media (max-width: 768px) {
    .mood-card {
        width: 220px;
        min-height: 110px;
        padding: 16px;
    }

    .mood-card-main {
        font-size: 22px;
    }

    .mood-card-sub {
        font-size: 11px;
    }

    .mood-movie-card {
        width: 120px;
    }
}

/* ══════════════════════════════════════════════
   AVATAR UPLOAD
   ══════════════════════════════════════════════ */
.avatar-upload-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 8px;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, .1);
}

.avatar-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-preview-initial {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffd875, #e6a800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 36px;
    border-radius: 50%;
}

.avatar-edit-icon {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    text-align: center;
    padding: 4px 0;
    font-size: 12px;
    opacity: 0;
    transition: opacity .2s;
}

.avatar-upload-wrap:hover .avatar-edit-icon {
    opacity: 1;
}

/* ══════════════════════════════════════════════
   ITEM DESCRIPTION (2-line clamp below card)
   ══════════════════════════════════════════════ */
.item-desc {
    color: #888;
    font-size: 12px;
    line-height: 1.4;
    margin: 2px 0 0;
}

.item-desc.lim-2,
.lim-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══════════════════════════════════════════════
   HEADER SCROLL — fixed/solid background
   ══════════════════════════════════════════════ */
.xc-header.fixed {
    background: rgba(15, 17, 26, .95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}

/* ══════════════════════════════════════════════
   DASHBOARD — status column fix
   ══════════════════════════════════════════════ */
.dcc-main table td:nth-child(3),
.dcc-main table th:nth-child(3) {
    min-width: 120px;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════
   WATCH PAGE — Full Layout
   ══════════════════════════════════════════════ */

/* Wrapper gradient overlay */
.wrapper-watch {
    position: relative;
}

.wrapper-watch::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 900px;
    background: linear-gradient(0deg, rgba(15, 17, 26, 0), #0f111a);
    pointer-events: none;
}

/* Player Section */
.watch-player {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1640px;
    padding: 0 20px;
    margin: 0 auto;
}

.wp-bread {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 40px;
    width: 100%;
    margin-bottom: 1.5rem;
}

.wp-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: all .2s;
}

.wp-back-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .1);
}

.wp-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.5;
}

.player-ratio {
    position: relative;
    border-radius: .75rem;
    box-shadow: 0 0 20px 20px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.ratio-16x9 {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.ratio-16x9>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ratio-16x9 iframe,
.ratio-16x9 video {
    background: #08080a;
    border-radius: .75rem .75rem 0 0;
}

/* Player Control Bar */
.player-control {
    background-color: #08080a;
    border-radius: 0 0 .75rem .75rem;
    display: flex;
    align-items: center;
    height: 60px;
    width: 100%;
}

.control-items {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: 0 20px;
}

.control-items .item {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    padding: .5rem .75rem;
    cursor: pointer;
    border-radius: .4rem;
    white-space: nowrap;
    font-size: 13px;
    background: none;
    border: none;
    text-decoration: none;
    transition: background .2s;
}

.control-items .item:hover {
    background: rgba(83, 93, 142, .15);
    color: #fff;
}

.control-items .item.active {
    color: var(--primary-color);
}

.control-items .item i {
    font-size: 14px;
}

/* Watch Container */
.watch-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1640px;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

/* Main Column */
.wc-main {
    flex-grow: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Movie Info Section */
.wm-info {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    gap: 1.5rem;
}

.wm-thumb {
    width: 100px;
    flex-shrink: 0;
}

.wm-thumb .v-thumbnail {
    width: 100%;
    padding-bottom: 150%;
    height: 0;
    position: relative;
    border-radius: .5rem;
    overflow: hidden;
    display: block;
    background: var(--bg-3);
}

.wm-thumb .v-thumbnail img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}

.wm-detail {
    width: 400px;
    flex-shrink: 0;
}

.wm-name {
    font-size: 1.4em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 .25rem;
    line-height: 1.5;
}

.wm-name a {
    color: #fff;
}

.wm-name a:hover {
    color: var(--primary-color);
}

.wm-alias {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: .95em;
}

.wm-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .6rem;
}

.tag-imdb {
    background: transparent;
    border: 1px solid #f0d25c;
    border-radius: .33rem;
    color: #fff;
    font-weight: 500;
    font-size: 12px;
    padding: 0 .4rem;
    display: inline-flex;
    align-items: center;
    height: 26px;
}

.tag-imdb::before {
    content: "IMDb";
    color: #f0d25c;
    font-weight: 500;
    padding-right: 4px;
    font-size: 10px;
}

.tag-classic {
    background: rgba(255, 255, 255, .06);
    border: 1px solid #fff;
    border-radius: .33rem;
    color: #fff;
    font-size: 12px;
    padding: 0 .4rem;
    display: inline-flex;
    align-items: center;
    height: 26px;
}

.tag-topic {
    background: rgba(255, 255, 255, .06);
    border-radius: .33rem;
    color: #fff;
    font-size: 12px;
    padding: 0 .5rem;
    display: inline-flex;
    align-items: center;
    height: 26px;
    transition: background .2s;
}

.tag-topic:hover {
    background: rgba(255, 255, 255, .12);
    color: var(--primary-color);
}

.wm-desc {
    flex-grow: 1;
    padding-left: 30px;
}

.wm-desc-text {
    color: #aaa;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.wm-desc-link {
    color: var(--primary-color);
    font-size: .9em;
}

.wm-desc-link i {
    margin-left: 4px;
    font-size: .8em;
}

/* Episodes Grid */
.wm-ep-header h3 {
    font-size: 1.6em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1.5rem;
}

.wm-ep-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.wm-ep-item {
    display: block;
    position: relative;
    border-radius: .75rem;
    overflow: hidden;
    background: #5e6070;
    color: #fff;
    text-decoration: none;
    transition: top .3s;
    top: 0;
}

.wm-ep-item:hover {
    top: -5px;
    color: #fff;
}

.wm-ep-item.active {
    border: 2px solid var(--primary-color);
}

.wm-ep-thumb {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 40%;
    max-width: 130px;
    -webkit-mask-image: linear-gradient(270deg, #000, transparent 95%);
    mask-image: linear-gradient(270deg, #000, transparent 95%);
}

.wm-ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wm-ep-info {
    position: relative;
    z-index: 2;
    width: 90%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
}

.wm-ep-server {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 13px;
    opacity: .8;
}

.wm-ep-name {
    font-weight: 600;
    font-size: 1.1em;
    line-height: 1.5;
}

.wm-ep-btn {
    display: inline-flex;
    align-items: center;
    padding: .3rem .7rem;
    font-size: 12px;
    background: #fff;
    color: #000;
    border-radius: .3rem;
    font-weight: 500;
}

.wm-ep-item.active .wm-ep-btn {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* Comments */
.wm-cmt-header {
    font-size: 1.4em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.cmt-my-area {
    margin-bottom: 2rem;
}

.cmt-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cmt-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, .3);
}

.cmt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cmt-avatar .avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd875, #e6a800);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 18px;
}

.cmt-user-info {
    display: flex;
    flex-direction: column;
}

.cmt-user-info small {
    color: #666;
    font-size: 12px;
    margin-bottom: 2px;
}

.cmt-user-info span {
    font-weight: 500;
    color: #fff;
}

.cmt-textarea-wrap {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .5rem;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .06);
}

.cmt-textarea-wrap textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    background: var(--bg-color);
    border: 1px solid transparent;
    border-radius: .6rem;
    color: #fff;
    padding: .75rem 1rem;
    font-size: .95em;
    outline: none;
}

.cmt-textarea-wrap textarea:focus {
    border-color: #fff;
}

.cmt-textarea-wrap textarea::placeholder {
    color: rgba(255, 255, 255, .4);
}

.cmt-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 .25rem;
}

.cmt-submit {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    padding: .4rem .6rem;
    border-radius: .4rem;
    transition: background .2s;
}

.cmt-submit:hover {
    background: rgba(255, 255, 255, .06);
}

.cmt-login-notice {
    padding: 1rem;
    color: #aaa;
}

.cmt-empty {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-radius: 1rem;
    color: #aaa;
    background: rgba(0, 0, 0, .2);
    margin-top: 1rem;
}

.cmt-empty i {
    font-size: 2rem;
    opacity: .5;
}

.cmt-empty p {
    margin: 0;
}

/* Sidebar */
.wc-side {
    width: 420px;
    padding: 30px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-left: 1px solid rgba(255, 255, 255, .06);
}

.wc-side>div+div {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Rate & Actions */
.ws-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ws-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ws-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    color: #fff;
    font-size: 13px;
}

.ws-action i {
    font-size: 18px;
}

.ws-action:hover {
    color: var(--primary-color);
}

.ws-sep {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, .06);
    margin: 0 5px;
}

.ws-rating-badge {
    display: flex;
    align-items: center;
    background: #3556b6;
    border-radius: 3rem;
    padding: .5rem .6rem;
    color: #fff;
    gap: .3rem;
}

.ws-rating-badge i {
    font-size: 20px;
}

.ws-rating-score {
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

.ws-rating-label {
    font-size: 11px;
    text-decoration: underline;
    margin: 0 .2rem;
}

/* Suggested */
.ws-suggest-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1rem;
}

.ws-suggest-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ws-suggest-item {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, .02);
    border-radius: .5rem;
    overflow: hidden;
    margin-bottom: .75rem;
}

.ws-sg-thumb {
    width: 80px;
    flex-shrink: 0;
}

.ws-sg-info {
    flex-grow: 1;
    padding: .6rem 1rem;
}

.ws-sg-info .item-title {
    color: #fff;
    font-size: 1em;
    font-weight: 400;
    margin-bottom: .3rem;
}

.ws-sg-alias {
    color: #aaa;
    font-size: .85em;
    margin-bottom: .4rem;
}

.ws-sg-meta {
    display: flex;
    gap: .5rem;
    font-size: .85em;
    color: #aaa;
}

.ws-sg-meta span+span::before {
    content: "·";
    margin-right: .5rem;
}

/* Responsive */
@media (max-width: 1599px) {
    .watch-player {
        padding: 0 20px;
    }

    .wp-bread {
        padding: 0;
    }

    .wm-desc {
        padding-left: 0;
    }

    .watch-container {
        padding: 0;
    }

    .wc-main,
    .wc-side {
        padding: 25px;
    }
}

@media (max-width: 1279px) {
    .wm-info {
        display: none;
    }

    .wm-detail {
        width: 360px;
    }

    .wc-side {
        width: 380px;
    }
}

@media (max-width: 1120px) {
    .watch-container {
        flex-direction: column;
    }

    .wc-side {
        border-left: none;
        width: 100%;
    }
}

@media (max-width: 989px) {
    .wm-ep-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wm-ep-item {
        top: auto !important;
    }

    .wm-ep-info {
        padding: 1rem;
        gap: .3rem;
    }

    .player-control {
        height: 54px;
    }

    .control-items {
        padding: 0 10px;
        gap: .4rem;
    }
}

@media (max-width: 640px) {
    .watch-player {
        padding: 0 16px;
    }

    .wc-main,
    .wc-side {
        padding: 20px 16px;
    }

    .wm-ep-grid {
        grid-template-columns: 1fr;
    }

    .wp-title {
        font-size: 14px;
    }

    .wp-bread {
        margin-bottom: 0;
        margin-top: 1rem;
    }

    .player-ratio {
        margin: 0 -16px;
        border-radius: 0;
    }

    .control-items .item span {
        display: none;
    }
}

/* ══════════════════════════════════════════════
   EMOTION CHART (Watch sidebar)
   ══════════════════════════════════════════════ */
.emotion-chart-box {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
    position: relative;
    overflow: hidden;
}

.emotion-chart-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, .03) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.emotion-chart-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.emotion-chart-sub {
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    margin: 0 0 15px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.emotion-row {
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.emotion-bar-wrap {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 8px;
    backdrop-filter: blur(10px);
}

.emotion-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.emotion-emoji {
    font-size: 20px;
}

.emotion-name {
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    flex: 1;
}

.emotion-pct {
    color: #fff;
    font-weight: bold;
    font-size: 13px;
}

.emotion-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, .1);
    border-radius: 3px;
    overflow: hidden;
}

.emotion-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(.4, 0, .2, 1);
}

/* Fix suggest thumbnail sizing */
.ws-sg-thumb {
    width: 80px;
    height: 110px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: .5rem 0 0 .5rem;
    display: block;
}

.ws-sg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════
   MOBILE NAV OVERLAY (Full-screen)
   ═══════════════════════════════════════════ */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    width: 100%;
    max-width: 400px;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-nav-logo img {
    height: 32px;
    width: auto;
}

.mobile-nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.mobile-nav-search i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.mobile-search-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 8px;
}

.mobile-menu-list li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffd875;
}

.mobile-menu-list li a i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

/* Submenu in mobile */
.mobile-menu-list .sub-menu {
    list-style: none;
    padding: 0 0 0 32px;
    margin: 0;
}

.mobile-menu-list .sub-menu li a {
    padding: 10px 12px;
    font-size: 14px;
}

.mobile-nav-auth {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #e6c05a, #ffd875);
    color: #191b24;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.mobile-auth-btn:hover {
    opacity: 0.9;
}

/* ═══════════════════════════════════════════
   MOBILE SEARCH TOGGLE ICON
   ═══════════════════════════════════════════ */
.mobile-search-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════
   AUTH MODAL LOGO: centered, circular, bigger
   ═══════════════════════════════════════════ */
.auth-modal-logo {
    text-align: center;
    margin-bottom: 20px;
}

.auth-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    border: 3px solid rgba(255, 216, 117, 0.3);
}

/* ═══════════════════════════════════════════
   WATCH PAGE: breadcrumb padding fix
   ═══════════════════════════════════════════ */
.wp-bread {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Header on mobile: solid bg, not overlapping slider */
    .xc-header {
        position: relative !important;
        background: var(--bg-main, #0f111a) !important;
    }

    .xc-header.scrolled {
        position: fixed !important;
        top: 0;
        background: var(--bg-main, #0f111a) !important;
    }

    /* Mobile search toggle visible */
    .mobile-search-toggle {
        display: flex;
    }

    /* Hide desktop search bar on mobile */
    .header-search {
        display: none !important;
    }

    /* Show search bar when toggled */
    .header-search.mobile-show {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-2, #1a1d2e);
        padding: 10px 16px;
        z-index: 100;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-search.mobile-show .search-icon {
        left: auto !important;
        right: 1.8rem;
    }

    .header-search.mobile-show input {
        padding-left: 1rem !important;
        padding-right: 3rem !important;
    }

    /* Hide "Thành viên" button on mobile completely */
    .btn-auth.btn-login {
        display: none !important;
    }

    /* Push search icon to right on mobile */
    .header-user-area {
        margin-left: auto;
    }

    /* Remove wrapper padding on mobile */
    #wrapper {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    #wrapper.wrapper-w-slide {
        padding-top: 0 !important;
    }

    /* Movie detail page wrapper should not overlap header on mobile */
    .wrapper-w-slide .xc-header {
        position: relative !important;
        background: var(--bg-main, #0f111a) !important;
    }

    /* Watch page breadcrumb spacing */
    .wp-bread {
        padding: 14px 12px;
    }

    .wp-title {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Detail page mobile fix */
    .detail-container {
        flex-direction: column;
        padding: 0 12px;
    }

    .dc-side {
        width: 100%;
    }

    .dc-main {
        width: 100%;
    }
}