/* ========== Rổ Anime - Dark Cinematic Theme ========== */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&family=Sora:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0d0d0f;
    --bg-secondary: #16161a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --bg-input: #1e1e2e;
    --bg-overlay: rgba(13, 13, 15, 0.85);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    --accent: #f5c518;
    --accent-hover: #ffd43b;
    --accent-glow: rgba(245, 197, 24, 0.3);
    --border: #2a2a3e;
    --red: #ef4444;
    --green: #22c55e;
    --blue: #3b82f6;
    --pink: #ec4899;
    --purple: #8b5cf6;
    --gradient-hero: linear-gradient(to right, rgba(13, 13, 15, 0.95) 0%, rgba(13, 13, 15, 0.7) 40%, transparent 70%);
    --gradient-bottom: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
}

.ui-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: -0.14em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ui-icon.icon-fill {
    fill: currentColor;
    stroke: none;
}

.menu-item-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ========== SECTION FADE-IN ANIMATION ========== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-animate {
    animation: fadeSlideUp 0.5s ease-out forwards;
}

.section-stagger-1 {
    animation-delay: 0s;
}

.section-stagger-2 {
    animation-delay: 0.08s;
}

.section-stagger-3 {
    animation-delay: 0.16s;
}

.section-stagger-4 {
    animation-delay: 0.24s;
}

.section-stagger-5 {
    animation-delay: 0.32s;
}

.section-stagger-6 {
    animation-delay: 0.4s;
}

.section-stagger-7 {
    animation-delay: 0.48s;
}

.section-stagger-8 {
    animation-delay: 0.56s;
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 32px;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #000;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--accent);
}

.logo-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: -4px;
}

/* Search */
.header-search {
    flex: 1;
    max-width: 380px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.header-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

.header-search .search-icon .ui-icon {
    width: 14px;
    height: 14px;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1200;
    background: linear-gradient(180deg, rgba(14, 22, 40, 0.985), rgba(10, 16, 32, 0.985));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(3, 8, 20, 0.48);
    overflow: hidden;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none;
}

.search-suggest.active {
    display: block;
}

.search-suggest-head {
    padding: 10px 14px 9px;
    font-size: 13px;
    font-weight: 700;
    color: #cfd9ef;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-suggest-item,
.search-suggest-all {
    width: 100%;
    border: none;
    background: transparent;
    color: #e9eefb;
    cursor: pointer;
}

.search-suggest-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 12px;
    text-align: left;
}

.search-suggest-item img {
    width: 58px;
    height: 78px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.search-suggest-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.search-suggest-text strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.34;
    color: #eef3ff;
}

.search-suggest-text em {
    font-style: normal;
    font-size: 12px;
    color: #a9b8d8;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggest-text small {
    font-size: 12px;
    color: #9baacc;
    line-height: 1.3;
}

.search-suggest-item:hover {
    background: rgba(245, 208, 103, 0.1);
}

.search-suggest-empty {
    padding: 10px 12px;
    color: #9fb0d4;
    font-size: 12px;
}

.search-suggest-all {
    padding: 12px 12px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    position: sticky;
    bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #edf2ff;
    background: rgba(255, 255, 255, 0.05);
}

.search-suggest-all:hover {
    background: rgba(245, 208, 103, 0.12);
}

/* Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.header-nav a,
.header-nav .nav-dropdown>span {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.nav-chat-badge {
    margin-left: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    background: #ef4444;
    color: #fff;
}

.header-nav a:hover,
.header-nav .nav-dropdown:hover>span {
    color: var(--accent);
    background: rgba(245, 197, 24, 0.08);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 46, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    min-width: 460px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-height: 420px;
    overflow-y: auto;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
}

.nav-dropdown-menu a {
    padding: 7px 12px !important;
    font-size: 13px !important;
    border-radius: var(--radius-xs);
    white-space: nowrap;
    color: var(--text-secondary) !important;
    font-weight: 400 !important;
    transition: var(--transition);
}

.nav-dropdown-menu a:hover {
    background: rgba(245, 197, 24, 0.1) !important;
    color: var(--accent) !important;
}

/* Header buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-member {
    padding: 7px 18px;
    background: rgba(245, 197, 24, 0.12);
    border: 1px solid rgba(245, 197, 24, 0.3);
    border-radius: 24px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-member:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.user-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: relative;
}

/* Bridge hover area between account button and dropdown panel */
.user-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    height: 12px;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    min-width: 180px;
    box-shadow: var(--shadow);
    z-index: 100;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown:focus-within .user-dropdown-menu {
    display: block;
}

.user-dropdown-menu a,
.user-dropdown-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover {
    background: rgba(245, 197, 24, 0.1);
    color: var(--accent);
}

/* ========== HERO BANNER ========== */
.hero-section {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 520px;
    max-height: 700px;
    overflow: hidden;
    margin-top: 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.65);
    transition: filter 0.5s ease;
}

.hero-bg-next {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.65);
    opacity: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: var(--gradient-bottom);
}

.hero-content {
    position: absolute;
    bottom: 90px;
    left: 0;
    max-width: 550px;
    padding: 0 48px;
    z-index: 2;
}

.hero-title {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 6px;
    text-shadow: 2px 3px 20px rgba(0, 0, 0, 0.6);
    font-style: italic;
}

.hero-origin {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 14px;
    font-style: italic;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-tag {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.5);
}

.hero-tag.imdb {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 700;
}

.hero-genres {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-height: 60px;
    overflow: hidden;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-play {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-play:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.btn-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.btn-circle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent);
}

/* Hero thumbnails (right side) */
.hero-thumbs {
    position: absolute;
    bottom: 90px;
    right: 48px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-thumb {
    width: 72px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: var(--transition);
}

.hero-thumb.active,
.hero-thumb:hover {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== QUICK FILTER CHIPS ========== */
.filter-section {
    padding: 32px 48px 16px;
    max-width: 1440px;
    margin: 0 auto;
}

.filter-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    font-style: italic;
}

.filter-chips {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex-shrink: 0;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.filter-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    opacity: 0.15;
    transition: var(--transition);
}

.filter-chip:nth-child(2)::before {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
}

.filter-chip:nth-child(3)::before {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.filter-chip:nth-child(4)::before {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.filter-chip:nth-child(5)::before {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.filter-chip:nth-child(6)::before {
    background: linear-gradient(135deg, #14b8a6, #22c55e);
}

.filter-chip:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-chip:hover::before {
    opacity: 0.3;
}

.filter-chip-sub {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* ========== MOVIE SECTIONS ========== */
.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px 60px;
}

.movie-section {
    margin-bottom: 44px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title span {
    color: var(--accent);
    font-style: italic;
}

.section-link {
    font-size: 13px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-link:hover {
    gap: 8px;
}

/* Movie Carousel */
.movie-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
    cursor: grab;
}

.movie-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-wrapper {
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    backdrop-filter: blur(8px);
}

.carousel-wrapper:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.carousel-btn.prev {
    left: -16px;
}

.carousel-btn.next {
    right: -16px;
}

/* ========== ANIME VAULT FEATURED SECTION ========== */
.anime-vault-section {
    margin: 16px 0 56px;
    overflow: visible;
}

.anime-vault-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.anime-vault-title {
    font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
    font-size: clamp(27px, 2.2vw, 40px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.anime-vault-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #eef2ff;
    background: rgba(8, 12, 24, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0;
    flex: 0 0 auto;
    transition: var(--transition);
}

.anime-vault-link span {
    font-size: 22px;
    line-height: 1;
    transform: translateX(1px);
}

.anime-vault-link:hover {
    border-color: rgba(255, 255, 255, 0.54);
    background: rgba(16, 22, 38, 0.88);
}

.anime-vault-shell {
    position: relative;
    min-height: 500px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(143, 199, 255, 0.2);
    background: #0b1222;
    box-shadow: 0 10px 24px rgba(4, 8, 18, 0.42);
    cursor: grab;
    touch-action: pan-y;
    contain: paint;
}

/* 2026 redesign */
:root {
    --bg-primary: #030508;
    --bg-secondary: #081018;
    --bg-card: rgba(9, 14, 18, 0.82);
    --bg-card-hover: rgba(15, 22, 28, 0.9);
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-overlay: rgba(3, 6, 8, 0.82);
    --text-primary: #f6fbf8;
    --text-secondary: #c0c8c4;
    --text-muted: #74807a;
    --accent: #1edf75;
    --accent-hover: #4af39a;
    --accent-glow: rgba(30, 223, 117, 0.24);
    --accent-gold: #f5c567;
    --border: rgba(255, 255, 255, 0.09);
    --radius: 18px;
    --radius-sm: 14px;
    --radius-xs: 10px;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

html {
    background: #030508;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(30, 223, 117, 0.08), transparent 24%),
        radial-gradient(circle at top left, rgba(32, 126, 255, 0.08), transparent 20%),
        linear-gradient(180deg, #020508 0%, #050a10 42%, #030508 100%);
    color: var(--text-primary);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 100%);
    opacity: 0.32;
    z-index: 0;
}

#app,
.site-footer,
.site-header {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4,
.section-title,
.logo-text,
.detail-title,
.dv2-movie-title,
.mobile-detail-title {
    font-family: 'Sora', sans-serif;
}

.site-header {
    background: rgba(4, 7, 10, 0.72);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.site-header.header-liquid {
    background: linear-gradient(180deg, rgba(4, 7, 10, 0.86), rgba(4, 7, 10, 0.08));
    border-bottom-color: transparent;
    box-shadow: none;
}

.site-header.header-solid {
    background: rgba(4, 7, 10, 0.84);
}

.header-inner {
    max-width: none;
    height: 72px;
    padding: 0 24px;
    gap: 18px;
}

.site-header .logo-icon,
.mobile-menu-logo .logo-icon,
.site-footer .logo-icon {
    display: none;
}

.logo {
    gap: 0;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.logo-text span {
    color: var(--accent);
}

.logo-sub {
    margin-top: 2px;
    color: rgba(192, 200, 196, 0.68);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.header-search {
    max-width: 380px;
}

.header-search input {
    min-height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #f5fbf7;
}

.header-search input:focus {
    border-color: rgba(30, 223, 117, 0.42);
    box-shadow: 0 0 0 4px rgba(30, 223, 117, 0.12);
}

.header-nav {
    gap: 4px;
}

.header-nav a,
.header-nav .nav-dropdown>span {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    color: rgba(236, 244, 239, 0.78);
}

.header-nav a:hover,
.header-nav .nav-dropdown:hover>span,
.nav-dropdown.is-open>span {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-menu {
    background: rgba(7, 11, 14, 0.96);
    border-color: var(--border);
    border-radius: 20px;
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.42);
}

.btn-member {
    min-height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 15px;
}

.btn-member:hover {
    background: linear-gradient(135deg, var(--accent), #10954c);
    color: #041108;
    border-color: transparent;
}

.cinema-rail {
    display: none;
}

@media (min-width: 1100px) {
    .cinema-rail {
        position: fixed;
        top: 96px;
        left: 18px;
        bottom: 24px;
        width: 78px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px 10px;
        border-radius: 24px;
        background: rgba(7, 11, 14, 0.8);
        border: 1px solid var(--border);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(18px);
        z-index: 980;
    }

    .cinema-rail-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        padding: 10px 4px;
        border-radius: 18px;
        color: rgba(206, 216, 210, 0.72);
        transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
        text-align: center;
    }

    .cinema-rail-link:hover,
    .cinema-rail-link.is-active {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        transform: translateY(-1px);
    }

    .cinema-rail-link.is-active .cinema-rail-icon {
        background: linear-gradient(135deg, rgba(30, 223, 117, 0.22), rgba(30, 223, 117, 0.08));
        color: var(--accent);
        border-color: rgba(30, 223, 117, 0.26);
    }

    .cinema-rail-icon {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.04);
    }

    .cinema-rail-icon .ui-icon {
        width: 18px;
        height: 18px;
    }

    .cinema-rail-label {
        font-size: 11px;
        line-height: 1.2;
        font-weight: 600;
    }

    .site-header {
        padding-left: 92px;
    }

    #app,
    .site-footer {
        padding-left: 92px;
    }
}

.hero-section {
    margin: 98px 24px 24px;
    min-height: 640px;
    height: min(82vh, 780px);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.4);
    background: #020406;
    isolation: isolate;
}

.hero-bg,
.hero-bg-next {
    filter: brightness(0.38) saturate(1.08);
    transform: scale(1.04);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 5, 7, 0.98) 0%, rgba(2, 5, 7, 0.9) 35%, rgba(2, 5, 7, 0.3) 67%, rgba(2, 5, 7, 0.12) 100%),
        radial-gradient(circle at 82% 28%, rgba(30, 223, 117, 0.16), transparent 32%);
}

.hero-bottom-fade {
    height: 240px;
    background: linear-gradient(180deg, transparent 0%, rgba(3, 5, 8, 0.16) 30%, #030508 100%);
}

.hero-content {
    left: 56px;
    bottom: 118px;
    max-width: 620px;
    padding: 0;
}

.hero-kicker {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(50px, 5.2vw, 84px);
    font-style: normal;
    line-height: 0.98;
    letter-spacing: -0.08em;
    text-shadow: none;
}

.hero-origin {
    margin-bottom: 18px;
    color: rgba(228, 236, 231, 0.82);
    font-size: 22px;
    font-style: normal;
}

.hero-tags {
    gap: 10px;
    margin-bottom: 18px;
}

.hero-tag {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(241, 247, 243, 0.88);
}

.hero-tag.imdb {
    color: var(--accent-gold);
    border-color: rgba(245, 197, 103, 0.22);
    background: rgba(245, 197, 103, 0.12);
}

.hero-tag.quality {
    color: #031208;
    background: #f8faf9;
}

.hero-desc {
    max-width: 56ch;
    color: rgba(229, 237, 232, 0.72);
    font-size: 15px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-play {
    min-height: 54px;
    padding: 0 28px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), #10974d);
    color: #041208;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 16px 36px rgba(30, 223, 117, 0.2);
}

.btn-play:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}

.hero-action-pill.btn-circle {
    width: auto;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: #f7fbf9;
}

.hero-action-pill.btn-circle span {
    font-size: 13px;
    font-weight: 700;
}

.hero-thumbs {
    right: 42px;
    bottom: 36px;
    gap: 12px;
}

.hero-thumb {
    width: 90px;
    height: 126px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.hero-thumb.active {
    border-color: rgba(30, 223, 117, 0.42);
    transform: translateY(-4px);
}

.hero-dots {
    bottom: 30px;
    left: 58px;
    justify-content: flex-start;
}

.hero-dot {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.hero-dot.active {
    background: var(--accent);
}

.mobile-home-tabs {
    top: 22px;
    left: 22px;
    right: auto;
    gap: 10px;
}

.mobile-home-tab {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(6, 11, 14, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eef6f1;
}

.main-content {
    max-width: none;
    padding: 0 24px 60px;
}

.movie-section,
.top10-section,
.community-panel,
.mobile-spotlight-section,
.filter-section {
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(7, 11, 14, 0.72);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.section-divider {
    display: none;
}

.filter-title,
.section-title {
    color: #f6fbf8;
    letter-spacing: -0.04em;
}

.section-title span,
.filter-title span {
    color: var(--accent);
}

.filter-title {
    font-size: 30px;
    margin-bottom: 18px;
}

.filter-chips {
    gap: 12px;
}

.filter-chip {
    min-height: 88px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(30, 223, 117, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-chip strong {
    font-size: 16px;
}

.filter-chip-sub {
    margin-top: 8px;
    color: rgba(210, 219, 214, 0.72);
}

.section-header {
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(22px, 2vw, 30px);
}

.section-link {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(244, 250, 246, 0.84);
    font-size: 13px;
    font-weight: 600;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 11, 14, 0.88);
    color: #fff;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.movie-carousel,
.top10-carousel {
    gap: 16px;
}

.movie-card {
    width: 184px;
    flex: 0 0 184px;
    background: transparent;
    border: none;
    padding: 0;
}

.movie-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-info {
    padding: 12px 6px 0;
}

.movie-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.movie-origin {
    margin-top: 5px;
    color: rgba(195, 204, 199, 0.72);
    font-size: 12px;
}

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.movie-meta-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(223, 230, 226, 0.72);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.poster-badges {
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-card .badge {
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    border: none;
    font-size: 10px;
    font-weight: 800;
}

.movie-card .badge-quality {
    background: rgba(245, 197, 103, 0.92);
    color: #151515;
}

.movie-card .badge-lang {
    background: rgba(30, 223, 117, 0.92);
    color: #041008;
}

.movie-card .badge-ep {
    background: rgba(255, 255, 255, 0.94);
    color: #0c1318;
}

.movie-card .badge-rating {
    background: rgba(8, 16, 12, 0.82);
    color: var(--accent);
    border: 1px solid rgba(30, 223, 117, 0.16);
}

.top10-card {
    width: 240px;
    flex: 0 0 240px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(12, 18, 22, 0.96), rgba(7, 11, 14, 0.86));
}

.top10-poster {
    border-radius: 18px;
    overflow: hidden;
}

.top10-rank {
    color: rgba(255, 255, 255, 0.14);
}

.top10-name {
    color: #fff;
}

.top10-subtitle,
.top10-extra {
    color: rgba(202, 212, 206, 0.72);
}

.community-head {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 800;
    color: #f7fbf8;
}

.community-card,
.community-col,
.community-comment-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-page-v2 {
    padding: 96px 24px 40px;
}

.detail-page-v2 .detail-backdrop {
    height: 420px;
    margin-bottom: 22px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-page-v2 .detail-backdrop-img {
    filter: brightness(0.36) saturate(1.05);
}

.detail-page-v2 .detail-backdrop-overlay {
    background:
        linear-gradient(90deg, rgba(3, 6, 8, 0.98) 0%, rgba(3, 6, 8, 0.92) 38%, rgba(3, 6, 8, 0.32) 70%, rgba(3, 6, 8, 0.1) 100%),
        linear-gradient(180deg, transparent 0%, rgba(3, 6, 8, 0.18) 36%, #030508 100%);
}

.detail-page-v2 .dv2-shell {
    max-width: none;
    padding: 0;
}

.detail-page-v2 .dv2-main-layout {
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 24px;
}

.detail-page-v2 .dv2-info-col {
    position: sticky;
    top: 96px;
    padding: 0 0 18px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(7, 11, 14, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.detail-page-v2 .dv2-poster-side {
    width: 100%;
    margin: 0 0 18px;
    border-radius: 0;
}

.detail-page-v2 .dv2-poster-side img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-page-v2 .dv2-movie-title,
.detail-page-v2 .dv2-movie-origin,
.detail-page-v2 .dv2-movie-tags,
.detail-page-v2 .dv2-genre-row,
.detail-page-v2 .dv2-inline-actions,
.detail-page-v2 .dv2-info-section,
.detail-page-v2 .dv2-meta-list,
.detail-page-v2 .dv2-cast-section,
.detail-page-v2 .detail-sidebar {
    padding-left: 22px;
    padding-right: 22px;
}

.detail-page-v2 .dv2-main-stack {
    gap: 22px;
}

.detail-page-v2 .dv2-hero-card,
.detail-page-v2 .dv2-episode-card,
.detail-page-v2 .dv2-comments-col,
.detail-page-v2 .dv2-alt-panel,
.detail-page-v2 .sidebar-widget {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 11, 14, 0.74);
    box-shadow: var(--shadow);
}

.detail-page-v2 .dv2-hero-content {
    padding: 28px;
}

.detail-page-v2 .dv2-btn-watch {
    min-height: 52px;
    padding: 0 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), #10974d);
    color: #041109;
    box-shadow: 0 14px 34px rgba(30, 223, 117, 0.18);
}

.detail-page-v2 .dv2-hero-action-btns {
    gap: 12px;
}

.detail-page-v2 .dv2-action-icon {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f7fbf8;
}

.detail-page-v2 .dv2-action-icon.active,
.detail-page-v2 .dv2-action-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.detail-page-v2 .dv2-rating-badge {
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 197, 103, 0.94), rgba(255, 224, 148, 0.92));
    color: #171717;
    border: none;
}

.detail-page-v2 .dv2-tabs-container {
    padding: 0 24px 18px;
}

.detail-page-v2 .dv2-tab {
    color: rgba(209, 219, 213, 0.68);
}

.detail-page-v2 .dv2-tab.active {
    color: #fff;
}

.detail-page-v2 .dv2-tab.active::after {
    background: var(--accent);
}

.detail-page-v2 .dv2-episode-alert {
    background: linear-gradient(135deg, rgba(30, 223, 117, 0.12), rgba(6, 24, 14, 0.42));
    color: #d9fbe8;
    border: 1px solid rgba(30, 223, 117, 0.2);
}

.detail-page-v2 .dv2-content-container {
    padding: 0;
}

.detail-page-v2 .dv2-episode-card {
    padding: 24px;
}

.detail-page-v2 .dv2-server-btn,
.mobile-detail-server {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(235, 243, 239, 0.78);
}

.detail-page-v2 .dv2-server-btn.active,
.mobile-detail-server.active {
    background: var(--accent);
    border-color: transparent;
    color: #041008;
}

.detail-page-v2 .dv2-ep-opt.active {
    color: var(--accent);
}

.detail-page-v2 .dv2-ep-btn {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5faf7;
}

.detail-page-v2 .dv2-ep-btn.active {
    background: #f8faf9;
    color: #07110c;
}

.detail-page-v2 .dv2-comments-col .comments-section,
.detail-page-v2 .dv2-comments-col .comment-item,
.detail-page-v2 .dv2-comments-col .comment-form textarea {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.site-footer {
    margin: 24px;
    border-radius: 28px;
    background: rgba(7, 11, 14, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.footer-inner {
    max-width: none;
    padding: 34px 28px 28px;
}

.footer-desc,
.footer-col a {
    color: rgba(201, 210, 205, 0.74);
}

.footer-col h4 {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(180, 188, 184, 0.68);
}

.sovereignty-banner {
    color: var(--accent);
    background: transparent;
}

.boot-brand-title span,
.boot-brand-sub,
.boot-logo-play {
    color: var(--accent);
}

@media (max-width: 900px) {
    body::before,
    .cinema-rail {
        display: none !important;
    }

    .site-header {
        background: rgba(4, 7, 10, 0.82);
    }

    .header-inner {
        height: 64px;
        padding: 0 14px;
        gap: 12px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-sub {
        display: none;
    }

    .mobile-head-btn {
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-bottom-nav {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        border-radius: 22px;
        background: rgba(8, 12, 15, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    }

    .mobile-bottom-link.is-active {
        color: var(--accent);
    }

    .hero-section {
        margin: calc(var(--mobile-header-total-h) + 6px) 0 16px !important;
        min-height: 560px;
        height: auto;
        border-left: none;
        border-right: none;
        border-radius: 0 0 28px 28px;
    }

    .hero-bg,
    .hero-bg-next {
        filter: brightness(0.48) saturate(1.12);
        transform: none;
    }

    .hero-content {
        left: 16px;
        right: 16px;
        bottom: 74px;
        max-width: none;
    }

    .hero-kicker {
        font-size: 11px;
        letter-spacing: 0.18em;
    }

    .hero-title {
        max-width: 76%;
        font-size: clamp(34px, 11vw, 50px);
    }

    .hero-origin {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .hero-actions-mobile {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .btn-play,
    .btn-info-mobile {
        min-height: 48px;
        width: 100%;
        border-radius: 16px;
    }

    .main-content {
        padding: 0 12px 106px !important;
    }

    .movie-section,
    .top10-section,
    .community-panel,
    .mobile-spotlight-section,
    .filter-section {
        margin-bottom: 16px;
        padding: 16px !important;
        border-radius: 24px;
    }

    .filter-title,
    .section-title {
        font-size: 18px;
    }

    .movie-carousel .movie-card {
        width: 130px !important;
        flex: 0 0 130px !important;
    }

    .movie-poster {
        border-radius: 16px;
    }

    .movie-info {
        padding: 10px 2px 0;
    }

    .movie-name {
        font-size: 12px;
    }

    .movie-origin {
        font-size: 10px;
    }

    .movie-meta-row {
        margin-top: 6px;
    }

    .top10-carousel .top10-card {
        width: 78vw !important;
        flex: 0 0 78vw !important;
    }

    .site-footer {
        margin: 0 12px 106px;
        border-radius: 24px;
    }

    .footer-inner {
        padding: 24px 16px 18px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .detail-mobile-cinema {
        padding-top: calc(var(--mobile-header-total-h) - 4px);
    }

    .mobile-detail-hero {
        position: relative;
        min-height: 430px;
        overflow: hidden;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    .mobile-detail-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.44) saturate(1.08);
    }

    .mobile-detail-overlay {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(180deg, rgba(3, 6, 8, 0.12), rgba(3, 6, 8, 0.64) 44%, #030508 100%),
            radial-gradient(circle at 82% 22%, rgba(30, 223, 117, 0.14), transparent 36%);
    }

    .mobile-detail-back-btn {
        position: absolute;
        top: 16px;
        left: 16px;
        z-index: 2;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        background: rgba(7, 11, 14, 0.62);
        color: #fff;
    }

    .mobile-detail-hero-inner {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 114px minmax(0, 1fr);
        gap: 14px;
        align-items: end;
        padding: 118px 16px 18px;
    }

    .mobile-detail-poster {
        overflow: hidden;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    }

    .mobile-detail-poster img {
        width: 100%;
        aspect-ratio: 2 / 3;
        object-fit: cover;
    }

    .mobile-detail-flags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .mobile-detail-flag {
        min-height: 28px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #f5faf7;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .mobile-detail-flag.is-solid {
        background: var(--accent);
        color: #031208;
        border-color: transparent;
    }

    .mobile-detail-title {
        font-size: clamp(28px, 8vw, 40px);
        line-height: 1.02;
        letter-spacing: -0.07em;
    }

    .mobile-detail-origin {
        margin-top: 6px;
        color: rgba(218, 227, 221, 0.74);
    }

    .mobile-detail-micro {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 12px;
        margin-top: 12px;
        color: rgba(218, 227, 221, 0.72);
        font-size: 12px;
    }

    .mobile-detail-play-btn {
        width: 100%;
        min-height: 50px;
        margin-top: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: none;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--accent), #10974d);
        color: #031208;
        font-weight: 800;
    }

    .mobile-detail-panel {
        position: relative;
        z-index: 2;
        display: grid;
        gap: 14px;
        padding: 0 12px 106px;
        margin-top: -6px;
    }

    .mobile-detail-toolbar,
    .mobile-detail-summary-card,
    .mobile-detail-tabs,
    .mobile-detail-tab-panel {
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(7, 11, 14, 0.78);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(18px);
    }

    .mobile-detail-toolbar {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        padding: 10px 6px;
    }

    .mobile-detail-tool {
        border: none;
        background: transparent;
        color: rgba(228, 235, 231, 0.82);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-size: 10px;
        font-weight: 700;
    }

    .mobile-detail-tool .ui-icon {
        width: 18px;
        height: 18px;
    }

    .mobile-detail-tool.active-like {
        color: #ff6d90;
    }

    .mobile-detail-tool.active-bookmark {
        color: #7cbcff;
    }

    .mobile-detail-summary-card {
        padding: 16px;
    }

    .mobile-detail-genre-row {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin-bottom: 14px;
        scrollbar-width: none;
    }

    .mobile-detail-genre-row::-webkit-scrollbar {
        display: none;
    }

    .mobile-detail-genre-row .genre-tag {
        white-space: nowrap;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: rgba(241, 247, 243, 0.84);
        font-size: 11px;
    }

    .mobile-detail-desc-row {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

    .mobile-detail-desc {
        flex: 1;
        margin: 0;
        color: rgba(211, 220, 214, 0.72);
        font-size: 13px;
        line-height: 1.72;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mobile-detail-desc.is-expanded {
        display: block;
        -webkit-line-clamp: unset;
    }

    .mobile-detail-more {
        flex-shrink: 0;
        border: none;
        background: transparent;
        color: var(--accent);
        font-size: 12px;
        font-weight: 800;
    }

    .mobile-detail-facts {
        display: grid;
        gap: 10px;
        margin-top: 16px;
    }

    .mobile-detail-facts div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        font-size: 12px;
    }

    .mobile-detail-facts span {
        color: rgba(175, 184, 179, 0.7);
    }

    .mobile-detail-facts strong {
        color: #f7fbf8;
        text-align: right;
        font-weight: 700;
    }

    .mobile-detail-tabs {
        position: sticky;
        top: calc(var(--mobile-header-total-h) + 6px);
        z-index: 15;
        display: flex;
        gap: 18px;
        padding: 0 16px;
    }

    .mobile-detail-tabs .tab-btn-modern {
        position: relative;
        padding: 16px 0;
        border: none;
        background: transparent;
        color: rgba(206, 215, 210, 0.64);
        font-size: 14px;
        font-weight: 700;
    }

    .mobile-detail-tabs .tab-btn-modern.active {
        color: #fff;
    }

    .mobile-detail-tabs .active-line {
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 2px;
        background: var(--accent);
        border-radius: 999px;
    }

    .mobile-detail-tab-panel {
        padding: 14px;
    }

    .mobile-detail-server-row {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin-bottom: 14px;
        scrollbar-width: none;
    }

    .mobile-detail-server-row::-webkit-scrollbar {
        display: none;
    }

    .mobile-detail-server {
        min-height: 38px;
        padding: 0 14px;
        white-space: nowrap;
    }

    .mobile-detail-episode-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .mobile-detail-ep-btn {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #f7fbf8;
        font-size: 13px;
        font-weight: 700;
        text-align: center;
    }

    .mobile-detail-ep-btn.active {
        background: var(--accent);
        color: #031208;
        border-color: transparent;
    }

    .mobile-detail-cast-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .mobile-detail-cast-card {
        text-align: center;
    }

    .mobile-detail-cast-avatar {
        width: 72px;
        height: 72px;
        margin: 0 auto 8px;
        overflow: hidden;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-detail-cast-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-detail-cast-name {
        color: rgba(232, 239, 235, 0.82);
        font-size: 12px;
        line-height: 1.4;
    }

    .mobile-detail-empty {
        color: rgba(176, 186, 181, 0.74);
        font-size: 13px;
    }
}

.anime-vault-shell.anime-vault-dragging {
    cursor: grabbing;
    touch-action: pan-y;
}

.anime-vault-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.anime-vault-backdrop-layer {
    position: absolute;
    inset: 0;
}

.anime-vault-backdrop-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(6, 10, 20, 0.42) 0%, rgba(6, 10, 20, 0.08) 56%, rgba(6, 10, 20, 0.66) 100%);
}

.anime-vault-backdrop-base,
.anime-vault-backdrop-fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.anime-vault-backdrop-base {
    transform: scale(1.02);
    animation: none;
}

.anime-vault-backdrop-fx {
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.anime-vault-backdrop-fx.is-active {
    opacity: 1;
    transform: scale(1.03);
}

.anime-vault-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 15, 31, 0.93) 0%, rgba(10, 15, 31, 0.86) 30%, rgba(10, 15, 31, 0.42) 57%, rgba(10, 15, 31, 0.2) 73%, rgba(10, 15, 31, 0.7) 100%),
        linear-gradient(180deg, rgba(8, 12, 25, 0.2) 0%, rgba(8, 12, 25, 0.22) 58%, rgba(8, 12, 25, 0.9) 100%);
}

.anime-vault-grain {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.45) 1px, transparent 0);
    background-size: 2px 2px;
    mix-blend-mode: normal;
}

.anime-vault-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 48px 44px 156px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.anime-vault-content.is-leaving {
    opacity: 0.12;
    transform: translateY(6px);
}

.anime-vault-content.is-enter {
    animation: animeVaultCopyIn 0.22s ease;
}

.anime-vault-name {
    font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
    font-size: clamp(40px, 3vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.018em;
    margin-bottom: 10px;
    color: #f4f7ff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.44);
    max-width: 100%;
    min-height: 2.16em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-vault-origin {
    color: #f3cd58;
    font-style: italic;
    font-size: clamp(23px, 1.55vw, 30px);
    margin-bottom: 12px;
    min-height: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-vault-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 14px;
    min-height: 34px;
    max-height: 34px;
    overflow: hidden;
}

.anime-vault-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 11px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(8, 11, 20, 0.72);
    color: #f3f4f8;
    font-size: 14px;
    font-weight: 700;
    min-width: 0;
    max-width: 165px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.anime-vault-chip-imdb {
    border-color: rgba(255, 218, 112, 0.9);
    background: rgba(245, 197, 24, 0.18);
    color: #ffd965;
}

.anime-vault-chip-genre {
    border-color: rgba(126, 224, 255, 0.6);
    color: #9be9ff;
}

.anime-vault-desc {
    max-width: 560px;
    color: #e7e8ef;
    font-size: clamp(16px, 1.02vw, 19px);
    line-height: 1.58;
    margin-bottom: 18px;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.42);
    min-height: 4.2em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-vault-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.anime-vault-play {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 32% 30%, #ffe08a 0%, #f5c518 56%, #d99b08 100%);
    color: #0e1426;
    font-size: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(245, 197, 24, 0.34);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.anime-vault-play:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 42px rgba(245, 197, 24, 0.4);
}

.anime-vault-icon-group {
    display: inline-flex;
    align-items: stretch;
    min-height: 60px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.anime-vault-icon-btn {
    min-width: 76px;
    height: 60px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #f5f7ff;
    font-size: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.anime-vault-icon-btn+.anime-vault-icon-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.anime-vault-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.anime-vault-strip-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    z-index: 3;
    width: min(88%, 1280px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.anime-vault-strip {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding: 3px 6px 6px;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.anime-vault-strip::-webkit-scrollbar {
    display: none;
}

.anime-vault-tab {
    flex: 0 0 auto;
    width: 64px;
    height: 94px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    overflow: hidden;
    background: rgba(10, 14, 26, 0.82);
    opacity: 0.78;
    transform: translateY(0);
    transition: transform 0.28s ease, opacity 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.anime-vault-tab img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anime-vault-tab.active,
.anime-vault-tab:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.015);
    border-color: rgba(245, 197, 24, 0.95);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(245, 197, 24, 0.36);
}

@keyframes animeVaultCopyIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animeVaultBgPan {
    from {
        transform: scale(1.04) translateX(0);
    }

    to {
        transform: scale(1.09) translateX(1.1%);
    }
}

@media (max-width: 1200px), (prefers-reduced-motion: reduce) {
    .anime-vault-backdrop-base,
    .anime-vault-backdrop-fx,
    .anime-vault-content,
    .anime-vault-tab,
    .anime-vault-play {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

@media (max-width: 1024px) {
    .anime-vault-shell {
        min-height: 438px;
    }

    .anime-vault-content {
        max-width: 520px;
        padding: 30px 24px 134px;
    }

    .anime-vault-name {
        font-size: clamp(30px, 3.6vw, 40px);
        margin-bottom: 10px;
    }

    .anime-vault-origin {
        font-size: clamp(18px, 2.2vw, 24px);
        margin-bottom: 10px;
    }

    .anime-vault-chip {
        height: 30px;
        font-size: 13px;
        padding: 0 11px;
    }

    .anime-vault-desc {
        font-size: 14px;
        line-height: 1.55;
        min-height: 3.2em;
        margin-bottom: 15px;
    }

    .anime-vault-play {
        width: 76px;
        height: 76px;
        font-size: 24px;
    }

    .anime-vault-icon-group {
        min-height: 50px;
    }

    .anime-vault-icon-btn {
        min-width: 62px;
        height: 50px;
        font-size: 18px;
    }

    .anime-vault-strip-wrap {
        width: min(95%, 940px);
        bottom: 10px;
    }

    .anime-vault-tab {
        width: 56px;
        height: 84px;
    }
}

@media (max-width: 768px) {
    .anime-vault-header {
        margin-bottom: 10px;
        gap: 10px;
    }

    .anime-vault-title {
        font-size: clamp(27px, 6.6vw, 36px);
    }

    .anime-vault-link {
        width: 32px;
        height: 32px;
    }

    .anime-vault-link span {
        font-size: 20px;
    }

    .anime-vault-shell {
        min-height: 0;
        border-radius: 18px;
    }

    .anime-vault-overlay {
        background:
            linear-gradient(180deg, rgba(8, 12, 24, 0.86) 0%, rgba(8, 12, 24, 0.5) 38%, rgba(8, 12, 24, 0.92) 100%),
            linear-gradient(90deg, rgba(8, 12, 24, 0.88) 0%, rgba(8, 12, 24, 0.5) 66%, rgba(8, 12, 24, 0.78) 100%);
    }

    .anime-vault-content {
        max-width: none;
        padding: 18px 14px 10px;
    }

    .anime-vault-name {
        font-size: clamp(24px, 7.6vw, 31px);
        margin-bottom: 6px;
        min-height: 2.28em;
    }

    .anime-vault-origin {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .anime-vault-meta {
        gap: 6px;
        min-height: 28px;
        max-height: 56px;
        flex-wrap: wrap;
    }

    .anime-vault-chip {
        height: 26px;
        font-size: 11px;
        padding: 0 8px;
        max-width: 130px;
    }

    .anime-vault-desc {
        font-size: 13px;
        line-height: 1.48;
        margin-bottom: 12px;
        min-height: 3em;
        -webkit-line-clamp: 3;
    }

    .anime-vault-play {
        width: 54px;
        height: 54px;
        font-size: 20px;
    }

    .anime-vault-icon-group {
        min-height: 42px;
    }

    .anime-vault-icon-btn {
        min-width: 50px;
        height: 42px;
        font-size: 15px;
    }

    .anime-vault-strip-wrap {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        bottom: auto;
        width: calc(100% - 14px);
        padding: 0;
        margin: 0 0 8px;
        gap: 8px;
    }

    .anime-vault-strip {
        gap: 8px;
        padding: 2px;
    }

    .anime-vault-tab {
        width: 48px;
        height: 70px;
        border-radius: 10px;
    }

}

/* Movie Card  */
.movie-card {
    flex-shrink: 0;
    width: 185px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: var(--transition);
}

.movie-card:hover {
    transform: translateY(-6px);
}

.movie-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.08);
}

/* Hover play overlay */
.movie-poster::after {
    content: '▶';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius);
}

.movie-card:hover .movie-poster::after {
    opacity: 1;
}

.poster-badges {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    z-index: 2;
}

.badge {
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.badge-quality {
    background: var(--green);
    color: #fff;
}

.badge-lang {
    background: var(--blue);
    color: #fff;
}

.badge-ep {
    background: rgba(245, 197, 24, 0.9);
    color: #000;
}

.badge-year {
    background: var(--purple);
    color: #fff;
}

.movie-info {
    padding: 8px 2px;
}

.movie-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-origin {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== TOP 10 SECTION ========== */
.top10-section {
    margin-bottom: 44px;
}

.top10-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
    cursor: grab;
}

.top10-carousel::-webkit-scrollbar {
    display: none;
}

.top10-card {
    flex-shrink: 0;
    width: 180px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.top10-card:hover {
    transform: translateY(-6px);
}

.top10-poster {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.top10-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top10-rank {
    position: absolute;
    bottom: -16px;
    left: -8px;
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 3px var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
    z-index: 2;
}

.top10-info {
    padding: 10px 2px 0 24px;
}

.top10-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top10-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========== DETAIL PAGE ========== */
.detail-page {
    margin-top: 60px;
}

/* ========== DETAIL PAGE V2 (DESKTOP NEW UI) ========== */
.detail-page-v2 {
    margin-top: 60px;
}

/* Hero Container */
.dv2-hero-container {
    max-width: 1440px;
    margin: -180px auto 0;
    padding: 0 48px;
    position: relative;
    z-index: 3;
}

.dv2-hero-content {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    position: relative;
}

.dv2-poster-wrap {
    width: clamp(160px, 13vw, 220px);
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    aspect-ratio: 2/3;
}

.dv2-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dv2-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    padding-bottom: 8px;
}

.dv2-btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.dv2-btn-watch:hover {
    background: #e0e0e0;
    transform: scale(1.03);
}

.dv2-hero-action-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dv2-action-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.dv2-action-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.dv2-action-icon.active {
    color: var(--accent, #f5c518);
}

.dv2-action-icon span {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Rating Badge */
.dv2-rating-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f5c518, #e6a800);
    border-radius: 12px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(245, 197, 24, 0.3);
}

.dv2-rating-badge:hover {
    transform: scale(1.05);
}

.dv2-rating-val {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.dv2-rating-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
}

/* Tabs Navigation */
.dv2-tabs-container {
    max-width: 1440px;
    margin: 32px auto 0;
    padding: 0 48px;
    position: relative;
    z-index: 3;
}

.dv2-tabs-nav {
    display: flex;
    gap: 0;
}

.dv2-tab {
    background: none;
    border: none;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.dv2-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.dv2-tab.active {
    color: #fff;
    font-weight: 700;
}

.dv2-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--accent, #f5c518);
    border-radius: 2px 2px 0 0;
}

.dv2-tabs-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Episode Alert */
.dv2-episode-alert {
    max-width: 1440px;
    margin: 20px auto 0;
    padding: 0 48px;
    position: relative;
    z-index: 3;
}

.dv2-episode-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    max-width: 1440px;
    margin: 20px auto 0;
}

/* Episode Section */
.dv2-content-container {
    max-width: 1440px;
    margin: 20px auto 0;
    padding: 0 48px;
    position: relative;
    z-index: 3;
}

.dv2-episode-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 0;
}

.dv2-episode-part {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dv2-episode-filters {
    display: flex;
    gap: 8px;
}

.dv2-server-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.15s;
}

.dv2-server-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dv2-server-btn.active {
    background: var(--accent, #f5c518);
    color: #000;
    border-color: var(--accent, #f5c518);
    font-weight: 700;
}

.dv2-episode-options {
    display: flex;
    gap: 12px;
}

.dv2-ep-opt {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.15s;
}

.dv2-ep-opt:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.dv2-episode-collapse {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.dv2-episode-collapse:hover {
    color: #fff;
}

/* Episode Grid */
.dv2-episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
}

.dv2-ep-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: all 0.15s;
    text-align: center;
    min-width: 72px;
}

.dv2-ep-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.dv2-ep-btn.active {
    background: var(--accent, #f5c518);
    color: #000;
    font-weight: 800;
    border-color: var(--accent, #f5c518);
}

/* Two Column Layout */
.dv2-two-col {
    max-width: 1440px;
    margin: 30px auto 0;
    padding: 0 48px 60px;
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 36px;
    position: relative;
    z-index: 3;
}

/* Left Column: Movie Info */
.dv2-info-col {
    min-width: 0;
    max-width: 360px;
    overflow: hidden;
}

.dv2-movie-title {
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.3;
    color: #fff;
}

.dv2-movie-origin {
    font-size: 14px;
    color: var(--accent, #f5c518);
    margin-bottom: 14px;
    font-style: italic;
}

.dv2-movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.dv2-tag-pill {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.04);
}

.dv2-tag-pill.accent {
    border-color: var(--accent, #f5c518);
    color: var(--accent, #f5c518);
    background: rgba(245, 197, 24, 0.08);
}

.dv2-inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.dv2-link-fav,
.dv2-link-rate {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.15s;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.dv2-link-fav:hover,
.dv2-link-rate:hover {
    color: var(--accent, #f5c518);
    text-decoration-color: currentColor;
}

.dv2-link-sep {
    color: rgba(255, 255, 255, 0.2);
}

.dv2-info-section {
    margin-bottom: 20px;
}

.dv2-section-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 8px;
}

.dv2-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin: 0;
}

.dv2-meta-list {
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.8;
}

.dv2-meta-row {
    color: rgba(255, 255, 255, 0.6);
}

.dv2-meta-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 6px;
}

/* Cast Section */
.dv2-cast-section {
    margin-bottom: 28px;
}

.dv2-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.dv2-cast-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.dv2-cast-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.dv2-cast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dv2-cast-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    line-height: 1.3;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Right Column: Comments - inside dv2-two-col */
.dv2-comments-col {
    min-width: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px;
    max-height: 900px;
    overflow-y: auto;
}

.dv2-comments-col::-webkit-scrollbar {
    width: 4px;
}

.dv2-comments-col::-webkit-scrollbar-track {
    background: transparent;
}

.dv2-comments-col::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Responsive: hide v2 desktop on mobile */
@media (max-width: 900px) {

    .detail-page-v2 .dv2-hero-container,
    .detail-page-v2 .dv2-tabs-container,
    .detail-page-v2 .dv2-episode-alert,
    .detail-page-v2 .dv2-content-container,
    .detail-page-v2 .dv2-two-col {
        padding-left: 16px;
        padding-right: 16px;
    }

    .dv2-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dv2-poster-wrap {
        width: 140px;
    }

    .dv2-hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .dv2-rating-badge {
        margin-left: 0;
    }

    .dv2-two-col {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .dv2-episode-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dv2-episode-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dv2-cast-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet adjustments for v2 */
@media (min-width: 901px) and (max-width: 1200px) {
    .dv2-two-col {
        grid-template-columns: minmax(240px, 320px) 1fr;
        gap: 24px;
    }
}

.detail-backdrop {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
}

.detail-backdrop-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5) blur(2px);
}

.detail-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, rgba(13, 13, 15, 0.5) 50%, rgba(13, 13, 15, 0.3) 100%);
}

.detail-container {
    max-width: 1440px;
    margin: -200px auto 0;
    padding: 0 48px 60px;
    position: relative;
    z-index: 2;
}

.detail-header {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.detail-poster {
    width: 200px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 2/3;
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-meta {
    flex: 1;
}

.detail-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-watch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-watch:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    transition: var(--transition);
    padding: 4px 8px;
    cursor: pointer;
}

.action-btn:hover {
    color: var(--accent);
}

.action-btn .icon {
    font-size: 20px;
}

.action-btn.active {
    color: var(--accent);
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    margin-left: auto;
    cursor: pointer;
    transition: var(--transition);
}

.rating-badge:hover {
    transform: scale(1.05);
}

.rating-badge .star {
    font-size: 20px;
}

.detail-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.detail-origin {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
    font-style: italic;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.detail-tag {
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
}

.detail-tag.accent {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.genre-tag {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.genre-tag:hover {
    background: rgba(245, 197, 24, 0.1);
    color: var(--accent);
}

.detail-status {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-xs);
    font-size: 12px;
    color: var(--red);
    margin-bottom: 12px;
}

.detail-status.completed {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--green);
}

.detail-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
    font-size: 13px;
}

.detail-info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-info-value {
    color: var(--text-secondary);
}

/* Stats row */
.stats-row {
    display: flex;
    gap: 24px;
    margin: 16px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.stats-row .stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-row .stat-icon {
    font-size: 16px;
}

/* Cast */
.cast-section {
    margin: 24px 0;
}

.cast-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.cast-grid::-webkit-scrollbar {
    display: none;
}

.cast-card {
    flex-shrink: 0;
    text-align: center;
    width: 80px;
}

.cast-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 6px;
    border: 2px solid var(--border);
}

.cast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-name {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Episode Grid */
.episode-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.season-select {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-size: 13px;
}

.server-btn {
    padding: 5px 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.server-btn.active,
.server-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.ep-btn {
    padding: 8px 4px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ep-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ep-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 700;
}

.ep-btn .play-icon {
    font-size: 10px;
}

/* Detail layout with sidebar */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

.detail-main {
    min-width: 0;
}

/* Sidebar top weekly */
.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
}

.sidebar-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover {
    opacity: 0.8;
}

.sidebar-rank {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    width: 28px;
    flex-shrink: 0;
    text-align: center;
}

.sidebar-thumb {
    width: 50px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-info {
    flex: 1;
    min-width: 0;
}

.sidebar-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-origin {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-meta {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========== WATCH PAGE ========== */
.watch-page {
    margin-top: 60px;
}

.breadcrumb {
    padding: 12px 48px;
    font-size: 13px;
    color: var(--text-muted);
    max-width: 1440px;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--accent);
}

.player-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.toolbar-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.toolbar-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.toolbar-btn .icon {
    font-size: 14px;
}

.toolbar-sep {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.toolbar-btn.report {
    margin-left: auto;
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Watch info below player */
.watch-info {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    align-items: flex-start;
}

.watch-thumb {
    width: 80px;
    height: 110px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.watch-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-meta {
    flex: 1;
}

.watch-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.watch-origin {
    font-size: 13px;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 6px;
}

.watch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.watch-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.watch-link {
    color: var(--accent);
    font-size: 12px;
}

.watch-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    align-items: flex-end;
}

.watch-stat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.watch-stat-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.watch-stat-btn.active {
    color: var(--accent);
    border-color: var(--accent);
}

/* ========== COMMENTS ========== */
.comments-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.comments-title {
    font-size: 18px;
    font-weight: 700;
}

.comments-count {
    color: var(--text-muted);
    font-size: 14px;
}

.comment-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    resize: vertical;
    outline: none;
    transition: var(--transition);
}

.comment-form textarea:focus {
    border-color: var(--accent);
}

.comment-form-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.comment-form input[type="text"],
.comment-form input[type="email"] {
    flex: 1;
    min-width: 140px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.comment-form input:focus {
    border-color: var(--accent);
}

.comment-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    justify-content: space-between;
}

.spoiler-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.spoiler-check input {
    accent-color: var(--accent);
}

.btn-submit {
    padding: 8px 24px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--accent-hover);
}

.comment-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Comment items */
.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.comment-time {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 6px 0;
    line-height: 1.6;
}

.comment-text.spoiler {
    filter: blur(5px);
    cursor: pointer;
    transition: var(--transition);
}

.comment-text.spoiler:hover {
    filter: none;
}

.comment-actions {
    display: flex;
    gap: 12px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.comment-action-btn:hover {
    color: var(--accent);
}

.comment-replies {
    margin-left: 52px;
}

.comment-like-btn.active {
    color: var(--accent);
    font-weight: 700;
}

/* ========== AUTH MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    width: 90%;
    max-width: 420px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.modal-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.modal-switch a {
    color: var(--accent);
    cursor: pointer;
    font-weight: 500;
}

.form-error {
    color: var(--red);
    font-size: 12px;
    margin-top: 4px;
}

.form-success {
    color: var(--green);
    font-size: 12px;
    margin-top: 4px;
}

/* ========== SHARE MODAL ========== */
.share-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 70px;
}

.share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.share-btn .icon {
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========== RATING MODAL ========== */
.rating-stars {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 20px 0;
}

.rating-star {
    font-size: 32px;
    cursor: pointer;
    color: var(--border);
    transition: var(--transition);
}

.rating-star.active,
.rating-star:hover {
    color: var(--accent);
}

.rating-value {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 48px 0;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 32px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.social-link .ui-icon {
    width: 17px;
    height: 17px;
}

.social-link:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.footer-links {
    flex: 2;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    padding: 3px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 16px 0;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.sovereignty-banner {
    background: linear-gradient(90deg, #da251d, #ff4444);
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ========== LIST / SEARCH PAGE ========== */
.list-page {
    margin-top: 60px;
    padding: 24px 0;
}

.list-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

.list-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* ========== LOADING ========== */
.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    z-index: 3000;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow);
}

.toast.success {
    background: var(--green);
    color: #fff;
}

.toast.error {
    background: var(--red);
    color: #fff;
}

.toast.info {
    background: var(--blue);
    color: #fff;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        display: none;
    }

    .episode-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .header-nav {
        display: none;
    }
}

@media (max-width: 768px) {

    .main-content,
    .filter-section,
    .player-container,
    .detail-container,
    .list-container,
    .site-footer,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .hero-content {
        padding: 0 16px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-thumbs {
        display: none;
    }

    .hero-section {
        height: 55vh;
        min-height: 380px;
    }

    .detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail-poster {
        width: 150px;
    }

    .detail-actions-row {
        justify-content: center;
    }

    .episode-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .movie-card {
        width: 140px;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .filter-chip {
        min-width: 120px;
        padding: 10px 16px;
    }

    .player-toolbar {
        gap: 2px;
    }

    .toolbar-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .watch-info {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .episode-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .movie-card {
        width: 120px;
    }

    .top10-card {
        width: 140px;
    }
}

/* ========== UTILITY ========== */
.hidden {
    display: none !important;
}

/* ========== 2026 UI REVAMP OVERRIDES ========== */
:root {
    --page-max: 1700px;
    --bg-primary: #0b1223;
    --bg-secondary: #0b1328;
    --bg-card: #141f35;
    --bg-card-hover: #1a2741;
    --bg-input: #17233b;
    --text-primary: #f4f7ff;
    --text-secondary: #c4cedf;
    --text-muted: #8a97b3;
    --accent: #f5d067;
    --accent-hover: #ffdf85;
    --accent-glow: rgba(245, 208, 103, 0.35);
    --border: #233352;
    --shadow: 0 18px 48px rgba(2, 7, 23, 0.42);
    --radius: 16px;
    --radius-sm: 11px;
    --radius-xs: 8px;
}

html,
body {
    overflow-x: clip;
}

body {
    font-family: 'Be Vietnam Pro', 'Segoe UI', Tahoma, sans-serif;
    background:
        radial-gradient(1200px 520px at 20% -5%, rgba(34, 98, 197, 0.24), transparent 70%),
        radial-gradient(900px 440px at 88% 7%, rgba(21, 54, 121, 0.28), transparent 70%),
        linear-gradient(180deg, #0a1223 0%, #0a1325 45%, #0b1223 100%);
    letter-spacing: 0.01em;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.16;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 4px 4px;
}

#app {
    min-height: calc(100vh - 340px);
}

.site-header {
    background: linear-gradient(180deg, rgba(9, 14, 26, 0.96), rgba(9, 14, 26, 0.86));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: var(--page-max);
    height: 76px;
    padding: 0 28px;
    gap: 20px;
}

.logo {
    gap: 10px;
}

.logo-icon {
    position: relative;
    width: 44px;
    height: 44px;
    background: radial-gradient(circle at 30% 20%, #fff4ce, #f5d067 52%, #d9ad3f);
    box-shadow: 0 8px 22px rgba(245, 208, 103, 0.35);
}

.logo-ring {
    position: absolute;
    inset: 6px;
    border: 2px solid #0e1a34;
    border-radius: 999px;
}

.logo-play {
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #0d1831;
}

.logo-text {
    font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
    font-size: 36px;
    font-size: clamp(24px, 2.05vw, 33px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.logo-sub {
    margin-top: 0;
    font-size: 11px;
    color: #a6b2cc;
}

.header-search {
    max-width: 470px;
}

.header-search input {
    font-size: 14px;
    padding: 11px 16px 11px 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.header-search .search-icon {
    font-size: 15px;
}

.header-nav {
    gap: 4px;
}

.header-nav a,
.header-nav .nav-dropdown>span {
    padding: 9px 12px;
    font-size: 13px;
    color: #d2d8e5;
}

.header-nav a:hover,
.header-nav .nav-dropdown:hover>span {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-menu {
    min-width: 540px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 26, 46, 0.95);
}

.nav-reviews {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.new-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    min-width: 28px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: #f3cd69;
    color: #1f2937;
}

.btn-member {
    background: #f7f8fb;
    color: #111827;
    border-color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 999px;
}

.btn-member:hover {
    background: #ffffff;
    color: #111827;
    border-color: #fff;
}

.hero-section {
    margin-top: 76px;
    min-height: 620px;
    height: clamp(620px, 82vh, 920px);
    max-height: 920px;
}

.hero-bg,
.hero-bg-next {
    filter: brightness(0.74) saturate(1.1);
}

.hero-overlay {
    background:
        linear-gradient(92deg, rgba(10, 17, 35, 0.95) 0%, rgba(10, 17, 35, 0.75) 34%, rgba(10, 17, 35, 0.24) 66%, rgba(10, 17, 35, 0.58) 100%),
        radial-gradient(circle at 74% 30%, rgba(249, 234, 173, 0.16), transparent 44%);
}

.hero-bottom-fade {
    height: 300px;
    background: linear-gradient(to top, rgba(10, 17, 35, 1) 0%, rgba(10, 17, 35, 0.88) 46%, rgba(10, 17, 35, 0) 100%);
}

.hero-content {
    max-width: 740px;
    bottom: 130px;
    padding: 0 58px;
}

.hero-title {
    font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
    font-size: clamp(35px, 3.3vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

.hero-origin {
    font-size: 24px;
    font-weight: 600;
    color: #f2f5fb;
    margin-bottom: 14px;
}

.hero-tags {
    margin-bottom: 16px;
}

.hero-tag {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    border-color: rgba(255, 255, 255, 0.23);
    color: #dce3f3;
    background: rgba(11, 18, 35, 0.45);
}

.hero-tag.imdb {
    background: linear-gradient(135deg, #f5d067, #f0b94f);
    border-color: transparent;
}

.hero-tag.subtle {
    color: #e9eef9;
    background: rgba(58, 77, 112, 0.45);
}

.hero-desc {
    max-width: 660px;
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(233, 238, 250, 0.86);
    -webkit-line-clamp: 3;
}

.hero-actions {
    gap: 10px;
}

.btn-play {
    padding: 16px 34px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 999px;
}

.btn-circle {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 20px;
    font-weight: 700;
}

.hero-thumbs {
    right: 58px;
    bottom: 130px;
    gap: 10px;
}

.hero-thumb {
    width: 96px;
    height: 54px;
    border-radius: 9px;
    border-width: 2px;
}

.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-divider {
    width: min(980px, 82%);
    margin: 0 auto 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(220, 230, 247, 0.75) 50%, transparent 100%);
}

.filter-section {
    max-width: var(--page-max);
    padding: 38px 56px 18px;
}

.filter-title {
    font-size: clamp(34px, 2.9vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
}

.filter-chips {
    gap: 16px;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
}

.filter-chip {
    min-width: 250px;
    min-height: 146px;
    padding: 22px 22px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(145deg, rgba(248, 202, 140, 0.25), rgba(95, 137, 223, 0.2));
    border-color: rgba(255, 255, 255, 0.16);
    scroll-snap-align: start;
}

.filter-chip strong {
    position: relative;
    z-index: 2;
    font-size: 34px;
    font-size: clamp(20px, 1.65vw, 30px);
    line-height: 1.2;
}

.filter-chip-sub {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    font-size: 14px;
    color: rgba(231, 238, 250, 0.85);
}

.filter-chip::before {
    opacity: 0.9;
}

.filter-chip:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.22);
}

.filter-chips.dragging .filter-chip {
    user-select: none;
}

.main-content {
    max-width: var(--page-max);
    padding: 0 56px 86px;
}

.movie-section,
.top10-section {
    margin-bottom: 56px;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(22px, 1.95vw, 34px);
    font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
    letter-spacing: -0.02em;
}

.section-link {
    font-size: 14px;
}

.carousel-wrapper {
    border-radius: 16px;
}

.movie-carousel,
.top10-carousel,
.cast-grid,
.watch-side-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.movie-carousel,
.top10-carousel {
    gap: 16px;
    scroll-snap-type: x proximity;
    padding-bottom: 10px;
}

.movie-carousel.dragging,
.top10-carousel.dragging,
.filter-chips.dragging,
.cast-grid.dragging,
.watch-side-list.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.movie-card img,
.top10-card img,
.hero-thumb img,
.watch-side-thumb img,
.sidebar-thumb img {
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
}

.carousel-btn {
    opacity: 0;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(8, 13, 24, 0.82);
}

.carousel-wrapper:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn.prev {
    left: -12px;
}

.carousel-btn.next {
    right: -12px;
}

.movie-card {
    width: clamp(180px, 14vw, 248px);
    transition: transform 0.28s ease, filter 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
}

.movie-poster,
.top10-poster {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 24px rgba(8, 13, 24, 0.34);
}

.movie-poster::after {
    font-size: 30px;
}

.poster-img {
    transition: filter 0.28s ease, transform 0.34s ease, opacity 0.24s ease;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    will-change: auto;
}

.poster-img.is-loading {
    opacity: 0.82;
    filter: blur(0.45px) saturate(1) brightness(0.98);
}

.poster-img.is-loaded {
    opacity: 1;
    filter: none;
}

.movie-poster::before,
.top10-poster::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.25) 30%, rgba(255, 255, 255, 0.04) 46%, transparent 72%);
    transform: translateX(-120%);
    pointer-events: none;
}

.movie-poster:not(.poster-ready)::before,
.top10-poster:not(.poster-ready)::before {
    opacity: 0.85;
    animation: posterSweep 1.25s ease-in-out infinite;
}

.poster-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at 76% 14%, rgba(254, 231, 166, 0.22), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.poster-ready .poster-glow {
    opacity: 1;
}

.poster-badges {
    z-index: 2;
}

.movie-info {
    padding: 10px 3px 4px;
}

.movie-grid .movie-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
}

.movie-name {
    font-size: 15px;
}

.movie-origin {
    font-size: 12px;
}

.top10-card {
    width: clamp(190px, 15vw, 260px);
}

.top10-rank {
    font-size: clamp(72px, 5vw, 96px);
    bottom: -20px;
    -webkit-text-stroke-width: 2.6px;
}

.top10-info {
    padding-left: 18px;
}

.detail-page {
    margin-top: 76px;
}

.detail-backdrop {
    height: 58vh;
    min-height: 430px;
}

.detail-backdrop-img {
    filter: brightness(0.55) blur(3px) saturate(1.06);
}

.detail-container {
    max-width: var(--page-max);
    margin-top: -220px;
    padding: 0 56px 70px;
}

.detail-header {
    gap: 30px;
    background: linear-gradient(145deg, rgba(15, 25, 46, 0.9), rgba(12, 20, 38, 0.84));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 20px;
}

.detail-poster {
    width: clamp(190px, 16.5vw, 285px);
    border-radius: 14px;
}

.detail-title {
    font-size: clamp(31px, 2.6vw, 46px);
    line-height: 1.1;
}

.detail-origin {
    font-size: 16px;
}

.detail-tags {
    gap: 8px;
}

.detail-tag {
    font-size: 12px;
    padding: 5px 11px;
}

.detail-status {
    margin-top: 2px;
}

.detail-desc {
    font-size: 14px;
    line-height: 1.8;
}

.stats-row {
    gap: 18px;
    flex-wrap: wrap;
}

.detail-layout {
    margin-top: 30px;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.detail-main {
    background: linear-gradient(145deg, rgba(15, 25, 46, 0.78), rgba(12, 20, 38, 0.62));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 20px 20px 10px;
}

.tabs-nav {
    margin-bottom: 22px;
}

.tab-btn {
    font-size: 15px;
    padding: 12px 24px;
}

.episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.ep-btn {
    min-height: 42px;
    font-size: 13px;
}

.sidebar-widget {
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.09);
    background: linear-gradient(145deg, rgba(17, 28, 51, 0.96), rgba(14, 23, 43, 0.95));
}

.sidebar-item {
    padding: 10px 0;
}

.sidebar-rank {
    font-size: 24px;
}

.sidebar-thumb {
    width: 58px;
    height: 82px;
}

.watch-page {
    margin-top: 76px;
}

.watch-layout {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 56px 70px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.watch-main {
    min-width: 0;
}

.watch-sidebar {
    position: sticky;
    top: 96px;
}

.watch-sidebar-widget {
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(145deg, rgba(17, 28, 51, 0.96), rgba(14, 23, 43, 0.95));
}

.watch-side-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: 760px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.watch-side-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: var(--transition);
}

.watch-side-item:hover {
    transform: translateX(2px);
    border-color: rgba(245, 208, 103, 0.3);
    background: rgba(245, 208, 103, 0.08);
}

.watch-side-thumb {
    width: 62px;
    height: 86px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.watch-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-side-meta {
    min-width: 0;
}

.watch-side-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.38;
    color: #f5f8ff;
}

.watch-side-origin,
.watch-side-extra {
    font-size: 11px;
    color: #9facc8;
    line-height: 1.45;
    margin-top: 2px;
}

.breadcrumb {
    max-width: none;
    padding: 12px 0;
    margin: 0;
    font-size: 14px;
}

.player-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.player-wrapper {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 44px rgba(4, 10, 23, 0.45);
}

.player-toolbar {
    margin-top: 10px;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.toolbar-btn {
    padding: 8px 14px;
    font-size: 13px;
}

.toolbar-btn.report {
    margin-left: auto;
}

.watch-info {
    margin-top: 14px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-thumb {
    width: 124px;
    height: 174px;
    border-radius: 11px;
}

.watch-title {
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1.15;
}

.watch-origin {
    font-size: 15px;
}

.watch-desc {
    font-size: 14px;
    line-height: 1.75;
}

.watch-link {
    font-size: 13px;
}

.watch-episodes {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-episode-panel:not(.hidden) {
    margin-top: 10px;
}

/* Watch HLS Player (Plyr + Hls.js) */
:root {
    --plyr-color-main: #f5d067;
    --plyr-video-control-color: #f7f9ff;
    --plyr-video-control-background-hover: rgba(245, 208, 103, 0.24);
}

.player-wrapper.watch-player-shell {
    aspect-ratio: auto;
    overflow: hidden;
    background: #0b1122;
}

.watch-player-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(21, 32, 58, 0.94), rgba(12, 20, 40, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-player-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.watch-player-dot.red {
    background: #ff5f57;
}

.watch-player-dot.yellow {
    background: #ffbd2e;
}

.watch-player-dot.green {
    background: #28c840;
}

#watchPlayerTitle {
    margin-left: 6px;
    font-size: 12px;
    color: #b8c3dc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-player-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.watch-player-video-wrap video,
.watch-player-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #000;
}

.watch-player-video-wrap .plyr {
    width: 100%;
    height: 100%;
}

.watch-player-loading {
    position: absolute;
    inset: 0;
    z-index: 9;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.58);
}

.watch-player-loading.active {
    display: flex;
}

.watch-player-spinner {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 4px solid rgba(255, 255, 255, 0.26);
    border-top-color: #f5d067;
    animation: watchPlayerSpin 0.8s linear infinite;
}

.watch-player-empty {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    color: #cbd4e6;
    font-size: 14px;
    line-height: 1.6;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 58%), #080c16;
}

.plyr--video .plyr__controls {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
}

@keyframes watchPlayerSpin {
    to {
        transform: rotate(360deg);
    }
}

.comments-section {
    margin-top: 24px;
}

.comment-form {
    border-radius: 14px;
}

.site-footer {
    margin-top: 14px;
    background:
        radial-gradient(circle at 50% 112%, rgba(24, 52, 116, 0.22), transparent 52%),
        linear-gradient(180deg, #0b1223 0%, #090f1d 100%);
    border-top-color: rgba(255, 255, 255, 0.08);
    padding: 56px 56px 0;
}

.footer-inner {
    max-width: var(--page-max);
    padding-bottom: 36px;
}

.site-footer .logo-text {
    font-size: clamp(24px, 1.7vw, 30px);
}

.footer-desc,
.footer-col a {
    font-size: 13px;
}

.footer-bottom {
    font-size: 12px;
}

.list-page {
    margin-top: 76px;
    padding-top: 30px;
}

.list-container {
    max-width: var(--page-max);
    padding: 0 56px;
}

.list-title {
    font-size: clamp(28px, 2.3vw, 40px);
    font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
}

.movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 22px;
}

.movie-grid .movie-card {
    width: 100%;
}

.list-infinite-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
}

.list-load-more-btn {
    min-height: 40px;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
}

.list-load-more-btn:disabled {
    opacity: 0.56;
    cursor: not-allowed;
}

.light-sweep {
    position: relative;
    overflow: hidden;
}

.light-sweep::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 14%, rgba(255, 255, 255, 0.4) 32%, transparent 56%);
    transform: translateX(-120%);
    animation: lightSweep 1.5s ease-in-out infinite;
}

.loading-skeleton {
    background: linear-gradient(110deg, rgba(18, 31, 56, 0.88), rgba(54, 75, 114, 0.88), rgba(18, 31, 56, 0.88));
    background-size: 260% 100%;
    animation: shimmer 1.15s linear infinite;
    filter: saturate(0.94);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.toast {
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

@keyframes posterSweep {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

@keyframes lightSweep {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

@media (max-width: 1400px) {
    .header-nav {
        gap: 1px;
    }

    .header-nav a,
    .header-nav .nav-dropdown>span {
        padding: 8px 9px;
        font-size: 12px;
    }

    .watch-layout,
    .main-content,
    .filter-section,
    .detail-container,
    .list-container,
    .site-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .watch-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 20px;
    }
}

@media (max-width: 1180px) {
    .header-nav {
        display: none;
    }

    .watch-layout {
        grid-template-columns: 1fr;
    }

    .watch-sidebar {
        position: static;
        order: 3;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        order: 2;
    }
}

@media (max-width: 900px) {
    .hero-section {
        min-height: 520px;
        height: 66vh;
    }

    .hero-content {
        padding: 0 20px;
        bottom: 64px;
        max-width: 100%;
    }

    .hero-thumbs {
        display: none;
    }

    .filter-chip {
        min-width: 190px;
        min-height: 112px;
        padding: 16px;
    }

    .watch-info {
        flex-direction: column;
    }

    .watch-stats {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .toolbar-btn.report {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 66px;
        padding: 0 12px;
        gap: 10px;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-sub {
        display: none;
    }

    .header-search {
        max-width: none;
    }

    .btn-member {
        padding: 8px 12px;
        font-size: 12px;
    }

    .hero-section,
    .watch-page,
    .detail-page,
    .list-page {
        margin-top: 66px;
    }

    .hero-title {
        font-size: 33px;
    }

    .hero-origin {
        font-size: 17px;
    }

    .hero-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .btn-play {
        padding: 12px 22px;
        font-size: 14px;
    }

    .btn-circle {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .section-divider {
        margin-bottom: 18px;
    }

    .filter-title {
        font-size: 30px;
    }

    .main-content,
    .filter-section,
    .detail-container,
    .watch-layout,
    .list-container,
    .site-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .watch-layout {
        gap: 14px;
    }

    .detail-container {
        margin-top: -130px;
    }

    .detail-header {
        flex-direction: column;
        padding: 14px;
        gap: 14px;
    }

    .detail-poster {
        width: 190px;
        margin: 0 auto;
    }

    .detail-actions-row {
        gap: 10px;
    }

    .rating-badge {
        margin-left: 0;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 13px;
    }

    .episode-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-grid .movie-card {
        min-width: 0;
    }

    .watch-thumb {
        width: 102px;
        height: 144px;
    }

    .watch-title {
        font-size: 25px;
    }

    .watch-side-list {
        max-height: none;
    }

    .site-footer {
        padding-top: 32px;
    }
}

/* ========== 2026.02 HOME + DETAIL POLISH ========== */
.hero-section {
    background: #081126;
    touch-action: pan-x pan-y;
}

.hero-bg,
.hero-bg-next {
    will-change: opacity, transform;
    transform: translateZ(0);
}

.hero-section.hero-pending .hero-content,
.hero-section.hero-pending .hero-thumbs {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.hero-section.hero-ready .hero-content,
.hero-section.hero-ready .hero-thumbs {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.42s ease, transform 0.42s ease;
}

.hero-section.hero-dragging {
    cursor: ew-resize;
}

.hero-content {
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.hero-content.hero-content-swapping {
    opacity: 0.08;
    transform: translateY(8px);
    pointer-events: none;
}

.hero-copy-item {
    will-change: transform, opacity, filter;
}

.hero-content.hero-content-entering .hero-copy-item {
    animation: heroCopyIn 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content.hero-content-entering .hero-copy-origin {
    animation-delay: 0.05s;
}

.hero-content.hero-content-entering .hero-copy-tags {
    animation-delay: 0.11s;
}

.hero-content.hero-content-entering .hero-copy-desc {
    animation-delay: 0.17s;
}

.hero-content.hero-content-entering .hero-copy-actions {
    animation-delay: 0.23s;
}

@keyframes heroCopyIn {
    from {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-thumbs {
    max-width: min(56vw, 860px);
    overflow-x: auto;
    padding: 5px 2px 8px;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.hero-thumbs::-webkit-scrollbar {
    display: none;
}

.hero-thumbs.dragging {
    cursor: grabbing;
}

.hero-thumb {
    flex: 0 0 auto;
}

.btn-play,
.btn-watch {
    background: linear-gradient(135deg, #f9dd7b, #f3c648);
    color: #151821;
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: 0 10px 26px rgba(245, 208, 103, 0.34);
}

.btn-play:hover,
.btn-watch:hover {
    background: linear-gradient(135deg, #ffe48f, #f8cf5c);
    color: #121623;
    border-color: rgba(255, 255, 255, 0.74);
    transform: translateY(-1px);
}

.btn-watch {
    font-weight: 800;
}

.detail-actions-row {
    gap: 18px;
}

.action-btn {
    min-width: 58px;
    color: #cfd8ec;
}

.action-btn .icon {
    font-size: 18px;
}

.action-btn.active,
.action-btn:hover {
    color: #f6d772;
}

.rating-badge {
    background: linear-gradient(135deg, #f8dc80, #f0c34a);
    color: #1a1b20;
}

.detail-origin {
    color: #f5d067;
    font-style: italic;
    font-weight: 600;
}

.section-title-top10 {
    font-size: clamp(32px, 2.4vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.top10-section .section-header {
    margin-bottom: 18px;
}

.top10-carousel {
    display: flex;
    gap: 18px;
    padding: 6px 2px 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    cursor: grab;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.top10-card {
    flex: 0 0 auto;
    width: clamp(242px, 16vw, 300px);
    transform: none;
    transition: filter 0.22s ease;
    scroll-snap-align: start;
}

.top10-card:hover {
    transform: none;
    filter: brightness(1.03);
}

.top10-poster-shell {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.top10-poster {
    aspect-ratio: 2 / 3;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 34px rgba(6, 12, 24, 0.34);
}

.top10-badges {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    gap: 5px;
    z-index: 3;
}

.top10-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top10-badge-pd {
    background: rgba(76, 96, 142, 0.96);
    color: #edf2ff;
}

.top10-badge-tm {
    background: rgba(31, 168, 123, 0.96);
    color: #f1fffa;
}

.top10-meta-row {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.top10-rank {
    position: static;
    min-width: 32px;
    font-size: clamp(48px, 3vw, 66px);
    line-height: 0.8;
    color: #f4da88;
    font-weight: 900;
    text-shadow: 0 6px 14px rgba(5, 9, 20, 0.48);
    -webkit-text-stroke-width: 0;
}

.top10-info {
    padding: 2px 0 0 2px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: none;
}

.top10-name {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.28;
    color: #f4f7ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top10-subtitle {
    font-size: 14px;
    color: #9fadca;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top10-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #e2e8f7;
    font-weight: 600;
    line-height: 1.2;
}

.top10-extra span {
    position: relative;
    padding-right: 10px;
}

.top10-extra span:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: 1px;
    top: 0;
    color: #7e8eb0;
}

@media (max-width: 900px) {
    .hero-thumbs {
        display: none;
    }

    .section-title-top10 {
        font-size: clamp(28px, 7vw, 38px);
    }

    .top10-card {
        width: clamp(178px, 58vw, 232px);
    }

    .top10-meta-row {
        gap: 7px;
    }

    .top10-info {
        padding-top: 0;
    }

    .top10-rank {
        min-width: 26px;
        font-size: clamp(38px, 10vw, 50px);
    }

    .top10-name {
        font-size: 14px;
    }

    .top10-subtitle,
    .top10-extra {
        font-size: 12px;
    }
}

/* Keep browser zoom at 100%; use layout density for desktop */
@media (min-width: 1200px) {
    html {
        zoom: 1;
    }
}

/* Desktop polish (non-TV) */
@media (min-width: 1180px) {
    body.desktop-mode {
        --page-max: min(1960px, calc(100vw - 8px));
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    body.desktop-mode .header-inner {
        max-width: var(--page-max);
        padding-left: clamp(14px, 1.45vw, 24px);
        padding-right: clamp(14px, 1.45vw, 24px);
    }

    body.desktop-mode .main-content,
    body.desktop-mode .filter-section,
    body.desktop-mode .detail-container,
    body.desktop-mode .watch-layout,
    body.desktop-mode .list-container,
    body.desktop-mode .site-footer {
        padding-left: clamp(14px, 1.45vw, 24px);
        padding-right: clamp(14px, 1.45vw, 24px);
    }

    body.desktop-mode .movie-carousel,
    body.desktop-mode .top10-carousel {
        gap: 12px;
    }

    body.desktop-mode .movie-card {
        width: clamp(166px, 11.4vw, 218px);
    }

    body.desktop-mode .top10-card {
        width: clamp(214px, 13.2vw, 268px);
    }

    body.desktop-mode .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
        gap: 18px;
    }

    body.desktop-mode .filter-chip {
        min-width: 196px;
    }

    body.desktop-mode .sidebar-item,
    body.desktop-mode .watch-side-item,
    body.desktop-mode .filter-chip {
        will-change: transform;
    }

    body.desktop-mode .movie-card,
    body.desktop-mode .top10-card {
        will-change: auto;
    }

    body.desktop-mode .movie-card:hover .movie-poster img {
        transform: scale(1.012);
    }

    body.desktop-mode .hero-bg,
    body.desktop-mode .hero-bg-next {
        image-rendering: auto;
        backface-visibility: hidden;
        transform: translateZ(0);
    }
}

@supports (content-visibility: auto) {
    @media (min-width: 1180px) {

        body.desktop-mode .movie-section,
        body.desktop-mode .top10-section,
        body.desktop-mode .community-panel {
            content-visibility: auto;
            contain-intrinsic-size: 1px 760px;
        }
    }
}

/* ========== Header Liquid Glass + Card Hover Adjust ========== */
.site-header {
    transition: background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease, backdrop-filter 0.32s ease;
}

.site-header.header-liquid {
    background: linear-gradient(180deg, rgba(9, 14, 26, 0.38), rgba(9, 14, 26, 0.18));
    border-bottom-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header.header-solid {
    background: linear-gradient(180deg, rgba(9, 14, 26, 0.96), rgba(9, 14, 26, 0.86));
    border-bottom-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.01);
}

.movie-card:hover {
    transform: translateY(-2px);
}

.movie-poster::after {
    content: '';
    background: linear-gradient(180deg, rgba(6, 10, 20, 0.04), rgba(6, 10, 20, 0.22));
    font-size: 0;
    opacity: 0;
}

.movie-card:hover .movie-poster::after {
    opacity: 0.18;
}

/* Hero tint restored (softer than original) */
.hero-section {
    background: #081126;
}

.hero-bg,
.hero-bg-next {
    filter: brightness(0.82) saturate(1.06);
}

.hero-overlay {
    background:
        linear-gradient(92deg, rgba(10, 17, 35, 0.74) 0%, rgba(10, 17, 35, 0.52) 34%, rgba(10, 17, 35, 0.16) 66%, rgba(10, 17, 35, 0.44) 100%),
        radial-gradient(circle at 74% 30%, rgba(249, 234, 173, 0.1), transparent 44%);
}

.hero-bottom-fade {
    background: linear-gradient(to top, rgba(10, 17, 35, 0.82) 0%, rgba(10, 17, 35, 0.54) 46%, rgba(10, 17, 35, 0) 100%);
}

/* Keep hero tint persistent while slide background crossfades */
.hero-bg {
    z-index: 0;
}

.hero-bg-next {
    z-index: 1;
}

.hero-overlay,
.hero-bottom-fade {
    z-index: 2;
    pointer-events: none;
}

.hero-content,
.hero-thumbs {
    z-index: 3;
}

/* Hero drag cursor (open hand / grabbing hand) */
#heroSection,
#heroSection .hero-bg,
#heroSection .hero-bg-next,
#heroSection .hero-overlay,
#heroSection .hero-bottom-fade,
#heroSection .hero-content {
    cursor: grab;
}

#heroSection.hero-dragging,
#heroSection.hero-dragging .hero-bg,
#heroSection.hero-dragging .hero-bg-next,
#heroSection.hero-dragging .hero-overlay,
#heroSection.hero-dragging .hero-bottom-fade,
#heroSection.hero-dragging .hero-content {
    cursor: grabbing !important;
}

/* ========== AUTH + ACCOUNT + COMMUNITY (2026.02) ========== */
#authModal .modal-box {
    width: min(94vw, 960px);
    max-width: 960px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

#authModal .modal-close {
    z-index: 9;
    color: #f2f5ff;
}

.auth-layout {
    display: grid;
    grid-template-columns: 46% 54%;
    min-height: 560px;
    background: #1b2448;
}

.auth-side-panel {
    position: relative;
    padding: 24px;
    overflow: hidden;
    background: #0f172e;
}

.auth-side-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04) brightness(1.02);
    z-index: 0;
}

.auth-side-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(7, 12, 24, 0.2), rgba(7, 12, 24, 0.62)),
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.1), transparent 50%);
}

.auth-side-logo {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.auth-side-logo .logo-text {
    font-size: clamp(34px, 3vw, 50px);
}

.auth-main-panel {
    padding: 54px 52px 40px;
    background: #222c59;
}

.auth-main-panel .modal-title {
    text-align: left;
    margin-bottom: 8px;
    color: #f5f8ff;
    font-size: 40px;
}

.auth-main-panel .modal-subtitle {
    text-align: left;
    margin-bottom: 18px;
    color: #b7c2dd;
}

.auth-main-panel .modal-subtitle a {
    color: #f5d067;
    cursor: pointer;
}

.auth-main-panel .form-group {
    margin-bottom: 10px;
}

.auth-main-panel .form-group input {
    height: 48px;
}

.auth-avatar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.auth-avatar-row img {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: #f0f4ff;
    font-weight: 600;
    font-size: 14px;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.account-page {
    margin-top: 76px;
    padding: 30px 0 70px;
}

.account-layout {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 56px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
}

.account-sidebar {
    border-radius: 16px;
    padding: 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 520px;
}

.account-sidebar h3 {
    font-size: 30px;
    margin-bottom: 8px;
    line-height: 1.1;
}

.account-side-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 12px;
    color: #c9d3e7;
    font-size: 14px;
}

.account-side-link.active,
.account-side-link:hover {
    background: rgba(245, 208, 103, 0.12);
    color: var(--accent);
}

.account-side-user {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

.account-side-avatar {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    object-fit: cover;
    margin-bottom: 8px;
}

.account-side-name {
    font-weight: 700;
}

.account-side-mail {
    color: #a1afcb;
    font-size: 12px;
    margin-bottom: 12px;
}

.account-main {
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.account-main h2 {
    font-size: 34px;
    margin-bottom: 2px;
}

.account-sub {
    color: #aab7d2;
    margin-bottom: 18px;
    font-size: 14px;
}

.account-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 24px;
    align-items: start;
}

.account-form .form-group input[readonly] {
    opacity: 0.78;
}

.account-form textarea {
    width: 100%;
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    outline: none;
    resize: vertical;
}

.account-gender-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #cdd6ea;
}

.account-password-block {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.account-password-block h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.account-avatar-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 26, 0.5);
    padding: 14px;
    text-align: center;
}

.account-avatar-card img {
    width: 140px;
    height: 140px;
    border-radius: 999px;
    margin: 0 auto 10px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.35);
}

#avatarPickerModal .avatar-picker-modal-box {
    width: min(94vw, 780px);
    max-width: 780px;
    background: #2b3560;
}

.avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
    max-height: 62vh;
    overflow-y: auto;
    padding-right: 4px;
}

.avatar-choice {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
}

.avatar-choice img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.avatar-choice.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(245, 208, 103, 0.32);
}

.avatar-picker-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.community-panel {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17, 25, 46, 0.95), rgba(14, 21, 40, 0.95));
}

.community-head {
    padding: 16px 18px 10px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.community-top-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 0 12px 14px;
}

.community-card {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    cursor: pointer;
    transition: var(--transition);
}

.community-card:hover {
    border-color: rgba(245, 208, 103, 0.38);
    transform: translateY(-2px);
}

.community-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.community-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
}

.community-mini-poster {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.community-user {
    font-weight: 700;
    font-size: 14px;
}

.community-user span {
    color: var(--accent);
}

.community-text {
    margin-top: 6px;
    font-size: 13px;
    color: #c4cfe6;
    min-height: 44px;
}

.community-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #9dadcb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.community-like-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #d8e1f5;
    border-radius: 999px;
    height: 26px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.community-like-btn:hover {
    border-color: rgba(245, 208, 103, 0.45);
    color: var(--accent);
}

.community-like-btn.active {
    border-color: rgba(245, 208, 103, 0.65);
    color: #111827;
    background: var(--accent);
}

.community-like-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.community-grid {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.community-col {
    padding: 16px 14px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.community-col:last-child {
    border-right: none;
}

.community-col h4 {
    font-size: 22px;
    margin-bottom: 12px;
}

.community-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.community-row-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
}

.community-row-btn:hover {
    background: rgba(245, 208, 103, 0.08);
}

.community-row span {
    width: 20px;
    color: #8b98b4;
}

.community-row p {
    margin: 0;
    font-size: 14px;
}

.community-tag {
    background: rgba(245, 208, 103, 0.2);
    padding: 3px 10px;
    border-radius: 999px;
}

.community-comment-item {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 8px;
}

.community-comment-btn {
    width: 100%;
    border: 1px solid transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.community-comment-btn:hover {
    border-color: rgba(245, 208, 103, 0.32);
    background: rgba(245, 208, 103, 0.07);
}

.community-comment-item img {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
}

.community-comment-item strong {
    color: #f6f8ff;
}

.community-comment-item small {
    color: #9eabca;
}

@media (max-width: 1180px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-side-panel {
        min-height: 180px;
    }

    .auth-main-panel {
        padding: 22px 18px 18px;
    }

    .account-layout {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .account-main-grid {
        grid-template-columns: 1fr;
    }

    .community-top-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .community-col {
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .community-col:first-child {
        border-top: none;
    }
}

/* ========== COMMENT UX + NOTIFICATIONS (2026.02.1) ========== */
.continue-meta {
    margin-top: 4px;
    font-size: 11px;
    color: #9eadcb;
    line-height: 1.4;
}

.user-dropdown-menu a,
.user-dropdown-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.comment-form-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.comment-counter {
    font-size: 11px;
    color: #99a7c7;
    min-width: 56px;
    text-align: right;
}

.comment-item {
    align-items: flex-start;
}

.comment-item.depth-1,
.comment-item.depth-2,
.comment-item.depth-3,
.comment-item.depth-4,
.comment-item.depth-5 {
    margin-left: 16px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-replies {
    margin-left: 14px;
    padding-left: 10px;
    border-left: 1px dashed rgba(255, 255, 255, 0.12);
}

.comment-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #f7f9ff;
}

.comment-reply-to {
    font-size: 11px;
    color: #f5d067;
    background: rgba(245, 208, 103, 0.12);
    border: 1px solid rgba(245, 208, 103, 0.28);
    border-radius: 999px;
    padding: 2px 8px;
}

.comment-reply-box {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.comment-reply-box textarea {
    width: 100%;
    min-height: 86px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 18, 34, 0.72);
    color: #f1f5ff;
    padding: 10px 12px;
    font-size: 13px;
    resize: vertical;
    outline: none;
}

.comment-reply-box textarea:focus {
    border-color: rgba(245, 208, 103, 0.6);
    box-shadow: 0 0 0 2px rgba(245, 208, 103, 0.18);
}

.comment-reply-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-reply-actions-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.comment-target {
    border-radius: 12px;
    background: rgba(245, 208, 103, 0.1);
    box-shadow: inset 0 0 0 1px rgba(245, 208, 103, 0.36);
}

.notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-item {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    transition: var(--transition);
}

.notif-item:hover {
    border-color: rgba(245, 208, 103, 0.35);
    background: rgba(245, 208, 103, 0.08);
}

.notif-item.unread {
    border-color: rgba(245, 208, 103, 0.45);
    background: rgba(245, 208, 103, 0.09);
}

.notif-item img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-body {
    min-width: 0;
}

.notif-title {
    font-size: 14px;
    color: #f6f8ff;
    line-height: 1.4;
}

.notif-text {
    margin-top: 4px;
    font-size: 13px;
    color: #c7d2ea;
    line-height: 1.5;
}

.notif-time {
    margin-top: 6px;
    font-size: 11px;
    color: #98a8c7;
}

/* ========== BOOT SPLASH (HOME RELOAD) ========== */
body.splash-lock {
    overflow: hidden;
}

.boot-splash {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(1200px 700px at 50% -12%, rgba(56, 94, 181, 0.2), transparent 70%),
        linear-gradient(145deg, #0a1121 0%, #121a31 100%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.boot-splash.active {
    display: flex;
    opacity: 1;
}

.boot-splash.exiting {
    opacity: 0;
}

.boot-splash-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.22) 1px, transparent 0);
    background-size: 4px 4px;
}

.boot-splash-core {
    position: relative;
    z-index: 1;
    width: min(92vw, 980px);
    text-align: center;
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.boot-splash.active .boot-splash-core {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.boot-brand-row {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.boot-logo-icon {
    position: relative;
    width: clamp(74px, 7vw, 102px);
    height: clamp(74px, 7vw, 102px);
}

.boot-logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 6px solid #f5f7fc;
    border-bottom-color: transparent;
    box-shadow: 0 0 18px rgba(245, 247, 252, 0.15);
}

.boot-logo-wave {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 2px;
    height: 34%;
    border-bottom: 6px solid #f5d067;
    border-radius: 0 0 48px 48px;
}

.boot-logo-play {
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #f5f7fc;
}

.boot-brand-copy {
    text-align: left;
}

.boot-brand-title {
    margin: 0;
    font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
    font-size: clamp(54px, 6.3vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #f8fbff;
}

.boot-brand-title span {
    color: #f5d067;
}

.boot-brand-sub {
    margin: 6px 0 0;
    font-size: clamp(24px, 2.1vw, 34px);
    color: #b9c4dc;
    letter-spacing: 0.01em;
}

.boot-brand-message {
    margin: 22px auto 26px;
    max-width: 920px;
    font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
    font-size: clamp(30px, 2.8vw, 54px);
    line-height: 1.28;
    font-weight: 700;
    color: rgba(222, 231, 248, 0.42);
    letter-spacing: -0.02em;
    animation: bootMessageReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both,
        bootMessagePulse 3.4s ease-in-out infinite 0.9s;
}

@keyframes bootMessageReveal {
    0% {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(7px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes bootMessagePulse {

    0%,
    100% {
        color: rgba(222, 231, 248, 0.38);
        text-shadow: 0 0 0 rgba(245, 208, 103, 0);
    }

    50% {
        color: rgba(232, 239, 255, 0.66);
        text-shadow: 0 8px 24px rgba(245, 208, 103, 0.18);
    }
}

.boot-progress {
    width: min(520px, 86vw);
    margin: 0 auto;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.boot-progress span {
    display: block;
    height: 100%;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f5d067 0%, #ffeaa3 60%, #f5d067 100%);
    animation: bootProgressSweep 1.2s ease-in-out infinite;
    box-shadow: 0 0 16px rgba(245, 208, 103, 0.48);
}

@keyframes bootProgressSweep {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(300%);
    }
}

@media (max-width: 860px) {
    .boot-brand-row {
        flex-direction: column;
        gap: 10px;
    }

    .boot-brand-copy {
        text-align: center;
    }

    .boot-brand-message {
        font-size: clamp(20px, 6.5vw, 34px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .boot-splash,
    .boot-splash-core {
        transition: none;
    }

    .boot-brand-message,
    .hero-content.hero-content-entering .hero-copy-item {
        animation: none !important;
    }

    .boot-progress span {
        animation-duration: 2.4s;
    }
}

/* ========== ADULT GATE (18+) ========== */
body.age-gate-lock {
    overflow: hidden;
}

.age-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 5600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(900px 460px at 50% -20%, rgba(94, 36, 61, 0.28), transparent 72%),
        radial-gradient(1100px 640px at 50% 110%, rgba(23, 43, 98, 0.22), transparent 70%),
        rgba(5, 8, 18, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.age-gate-overlay.active {
    opacity: 1;
}

.age-gate-overlay.closing {
    opacity: 0;
}

.age-gate-panel {
    width: min(92vw, 760px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(150deg, rgba(20, 30, 56, 0.98), rgba(15, 23, 43, 0.98)),
        linear-gradient(0deg, rgba(245, 208, 103, 0.05), rgba(245, 208, 103, 0.05));
    box-shadow: 0 22px 64px rgba(1, 4, 14, 0.56);
    padding: clamp(22px, 3vw, 34px);
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.age-gate-overlay.active .age-gate-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.age-gate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.35);
}

.age-gate-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.age-gate-logo {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.age-gate-logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 5px solid #f5f7fc;
    border-bottom-color: transparent;
}

.age-gate-logo-wave {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 2px;
    height: 33%;
    border-bottom: 5px solid #f5d067;
    border-radius: 0 0 48px 48px;
}

.age-gate-logo-play {
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #f5f7fc;
}

.age-gate-brand-copy h2 {
    margin: 0;
    font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
    font-size: clamp(30px, 3.1vw, 44px);
    line-height: 1;
    color: #f7fbff;
    letter-spacing: -0.03em;
}

.age-gate-brand-copy h2 span {
    color: #f5d067;
}

.age-gate-brand-copy p {
    margin: 5px 0 0;
    color: #aeb9d4;
    font-size: 14px;
}

.age-gate-panel h3 {
    margin: 0 0 8px;
    color: #f8fbff;
    font-size: clamp(24px, 2.3vw, 32px);
    letter-spacing: -0.02em;
}

.age-gate-panel p {
    margin: 0;
    color: #c7d1e7;
    font-size: 15px;
    line-height: 1.72;
}

.age-gate-warning {
    margin-top: 12px !important;
    color: #f9c0a6 !important;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.26);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
}

.age-gate-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.age-gate-btn {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5ff;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.22s ease;
}

.age-gate-btn:hover {
    transform: translateY(-1px);
}

.age-gate-btn-accept {
    background: linear-gradient(135deg, #f7d97c, #f2c34a);
    color: #151923;
    border-color: rgba(255, 255, 255, 0.58);
}

.age-gate-btn-accept:hover {
    background: linear-gradient(135deg, #ffe395, #f8cb5b);
}

.age-gate-btn-deny {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ffd5d5;
}

.age-gate-btn-deny:hover {
    background: rgba(239, 68, 68, 0.22);
}

@media (max-width: 640px) {
    .age-gate-panel {
        padding: 18px 14px;
    }

    .age-gate-actions {
        grid-template-columns: 1fr;
    }
}

/* ========== TV SMART (Samsung) FOCUS UX ========== */
body.tv-mode .focusable {
    transition: box-shadow 0.18s ease, outline-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.tv-mode .focusable:focus {
    outline: 3px solid rgba(245, 208, 103, 0.95);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(245, 208, 103, 0.24);
}

body.tv-mode .movie-card.focusable:focus,
body.tv-mode .top10-card.focusable:focus,
body.tv-mode .filter-chip.focusable:focus,
body.tv-mode .sidebar-item.focusable:focus,
body.tv-mode .watch-side-item.focusable:focus,
body.tv-mode .community-card.focusable:focus,
body.tv-mode .notif-item.focusable:focus {
    transform: translateY(-2px);
}

body.tv-mode .focusable:disabled,
body.tv-mode .focusable[aria-disabled="true"] {
    outline: none;
    box-shadow: none;
}

/* ========== TABLET MODE (iPad / Android Tablet) ========== */
@media (min-width: 768px) and (max-width: 1199px) {
    body.tablet-mode {
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    body.tablet-mode .header-inner {
        height: 76px;
        padding: 0 20px;
        gap: 14px;
    }

    body.tablet-mode .header-nav {
        display: flex !important;
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body.tablet-mode .header-nav::-webkit-scrollbar {
        display: none;
    }

    body.tablet-mode .header-search {
        max-width: 420px;
        flex: 0 0 clamp(260px, 34vw, 420px);
    }

    body.tablet-mode .header-search input {
        font-size: 15px;
        padding: 11px 16px 11px 44px;
        min-height: 44px;
    }

    body.tablet-mode .header-search .search-icon {
        left: 13px;
        font-size: 16px;
    }

    body.tablet-mode .search-suggest-item {
        padding: 12px;
    }

    body.tablet-mode .search-suggest-text strong {
        font-size: 15px;
    }

    body.tablet-mode .search-suggest-text em,
    body.tablet-mode .search-suggest-text small {
        font-size: 12px;
    }

    body.tablet-mode .logo-text {
        font-size: clamp(24px, 2.8vw, 30px);
    }

    body.tablet-mode .btn-member {
        padding: 9px 14px;
        font-size: 13px;
    }

    body.tablet-mode .hero-section,
    body.tablet-mode .watch-page,
    body.tablet-mode .detail-page,
    body.tablet-mode .list-page,
    body.tablet-mode .account-page {
        margin-top: 76px;
    }

    body.tablet-mode .hero-section {
        min-height: 560px;
        height: 72vh;
    }

    body.tablet-mode .hero-content {
        padding: 0 22px;
        bottom: 96px;
        max-width: 640px;
    }

    body.tablet-mode .hero-title {
        font-size: clamp(36px, 4.8vw, 50px);
    }

    body.tablet-mode .hero-origin {
        font-size: 18px;
    }

    body.tablet-mode .hero-desc {
        font-size: 15px;
        line-height: 1.65;
    }

    body.tablet-mode .hero-thumbs {
        right: 20px;
        bottom: 96px;
    }

    body.tablet-mode .main-content,
    body.tablet-mode .filter-section,
    body.tablet-mode .detail-container,
    body.tablet-mode .watch-layout,
    body.tablet-mode .list-container,
    body.tablet-mode .site-footer,
    body.tablet-mode .breadcrumb {
        padding-left: 20px;
        padding-right: 20px;
    }

    body.tablet-mode .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 16px;
    }

    body.tablet-mode .movie-grid .movie-card {
        width: 100%;
    }

    body.tablet-mode .top10-card {
        width: clamp(220px, 24vw, 280px);
    }

    body.tablet-mode .filter-chip {
        min-width: 220px;
        min-height: 128px;
        padding: 16px 18px;
    }

    body.tablet-mode .filter-chip strong {
        font-size: clamp(22px, 2.3vw, 30px);
    }

    body.tablet-mode .watch-info {
        gap: 14px;
    }

    body.tablet-mode .watch-layout {
        grid-template-columns: minmax(0, 1fr) clamp(260px, 31vw, 320px) !important;
        gap: 20px !important;
    }

    body.tablet-mode .watch-sidebar {
        position: sticky !important;
        top: 92px !important;
        order: unset !important;
    }

    body.tablet-mode .detail-layout {
        grid-template-columns: minmax(0, 1fr) clamp(260px, 31vw, 320px) !important;
        gap: 22px !important;
    }

    body.tablet-mode .detail-sidebar {
        display: block !important;
        order: unset !important;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    body.tablet-mode .header-search {
        max-width: 360px;
        flex: 0 0 360px;
    }

    body.tablet-mode .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    body.tablet-mode .header-nav {
        display: flex !important;
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body.tablet-mode .header-nav::-webkit-scrollbar {
        display: none;
    }

    body.tablet-mode .header-search {
        max-width: 320px;
        flex: 0 0 320px;
    }

    body.tablet-mode .watch-sidebar {
        position: sticky !important;
        top: 88px !important;
        order: unset !important;
    }

    body.tablet-mode .detail-sidebar {
        display: block !important;
    }
}

@supports (content-visibility: auto) {
    @media (min-width: 768px) and (max-width: 1199px) {

        body.tablet-mode .movie-section,
        body.tablet-mode .top10-section,
        body.tablet-mode .community-panel {
            content-visibility: auto;
            contain-intrinsic-size: 1px 700px;
        }
    }
}

/* ========== TABLET DESKTOP-PARITY POLISH (2026.02) ========== */
@media (min-width: 768px) and (max-width: 1199px) {
    body.tablet-mode .header-inner {
        height: 74px;
        padding: 0 16px;
        gap: 12px;
    }

    body.tablet-mode .header-search {
        flex: 0 0 clamp(220px, 30vw, 360px);
        max-width: clamp(220px, 30vw, 360px);
    }

    body.tablet-mode .header-search .search-icon {
        left: 14px;
        width: 26px;
        height: 26px;
        pointer-events: none;
    }

    body.tablet-mode .header-search input {
        min-height: 46px;
        padding: 12px 16px 12px 44px;
        border-radius: 26px;
        font-size: 14px;
    }

    body.tablet-mode .header-nav {
        display: flex !important;
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body.tablet-mode .header-nav a,
    body.tablet-mode .header-nav .nav-dropdown>span {
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: 12px;
    }

    body.tablet-mode .header-nav .nav-dropdown>span {
        touch-action: manipulation;
    }

    body.tablet-mode .nav-dropdown.is-open .nav-dropdown-menu {
        display: grid;
    }

    body.tablet-mode .nav-dropdown-menu {
        min-width: min(74vw, 420px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: min(62vh, 380px);
    }

    body.tablet-mode .header-actions {
        margin-left: 0;
    }

    body.tablet-mode .hero-content {
        max-width: min(56vw, 620px);
        bottom: 84px;
    }

    body.tablet-mode .hero-thumbs {
        display: flex !important;
        right: 22px;
        bottom: 84px;
        max-width: min(45vw, 500px);
    }

    body.tablet-mode .watch-layout {
        grid-template-columns: minmax(0, 1fr) clamp(250px, 30vw, 320px) !important;
        gap: 20px !important;
    }

    body.tablet-mode .detail-layout {
        grid-template-columns: minmax(0, 1fr) clamp(250px, 30vw, 320px) !important;
        gap: 22px !important;
    }

    body.tablet-mode .watch-sidebar {
        display: block !important;
        position: sticky !important;
        top: 90px !important;
        order: unset !important;
    }

    body.tablet-mode .detail-sidebar {
        display: block !important;
        order: unset !important;
    }

    body.tablet-mode .watch-info {
        flex-direction: row !important;
        align-items: flex-start;
    }

    body.tablet-mode .watch-stats {
        align-items: flex-end !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    body.tablet-mode .toolbar-btn.report {
        margin-left: auto !important;
    }

    body.tablet-mode .search-suggest-item {
        min-height: 88px;
    }

    body.tablet-mode .search-suggest-all {
        font-size: 18px;
        min-height: 52px;
    }
}

/* ========== UNIFIED DESKTOP LAYOUT (Desktop + Tablet + TV) ========== */
@media (min-width: 901px) {

    body.desktop-mode,
    body.tablet-mode,
    body.tv-mode {
        --page-max: min(1960px, calc(100vw - 8px));
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-inner {
        max-width: var(--page-max);
        height: 76px;
        padding: 0 clamp(14px, 1.45vw, 24px);
        gap: 14px;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-nav {
        display: flex !important;
        align-items: center;
        gap: 1px;
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-nav::-webkit-scrollbar {
        display: none;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .site-header,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-inner {
        overflow: visible;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-nav.menu-open {
        overflow: visible !important;
    }

    body.desktop-mode .header-nav {
        overflow: visible;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-nav .nav-dropdown>span {
        touch-action: manipulation;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .nav-dropdown.is-open .nav-dropdown-menu {
        display: grid;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .nav-dropdown.is-open>span {
        background: rgba(255, 255, 255, 0.14);
        color: #f8fbff;
    }

    body:is(.desktop-mode, .tv-mode) .nav-dropdown-menu {
        min-width: min(70vw, 580px);
        max-width: min(90vw, 700px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px;
        padding: 12px 14px;
    }

    body:is(.desktop-mode, .tv-mode) .nav-dropdown-menu a {
        padding: 7px 10px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        border-radius: var(--radius-xs);
        border: none;
        background: transparent;
    }

    body:is(.desktop-mode, .tv-mode) .nav-dropdown-menu a:hover {
        background: rgba(245, 208, 103, 0.12) !important;
        color: var(--accent) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-search {
        flex: 0 0 clamp(220px, 30vw, 420px);
        max-width: clamp(220px, 30vw, 420px);
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-search input {
        min-height: 44px;
        padding: 10px 16px 10px 42px;
        font-size: 14px;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-search .search-icon {
        left: 13px;
        pointer-events: none;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .main-content,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .filter-section,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .detail-container,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .watch-layout,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .list-container,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .site-footer,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .breadcrumb {
        padding-left: clamp(14px, 1.45vw, 24px);
        padding-right: clamp(14px, 1.45vw, 24px);
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-carousel,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .top10-carousel {
        gap: 12px;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card {
        width: clamp(166px, 11.4vw, 218px);
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .top10-card {
        width: clamp(214px, 13.2vw, 268px);
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
        gap: 18px;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .list-page .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
        gap: 20px 16px;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .list-page .movie-name {
        -webkit-line-clamp: 1;
        min-height: 1.35em;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .list-page .movie-origin {
        font-size: 12px;
        opacity: 0.9;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .filter-chip {
        min-width: 196px;
        min-height: 108px;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-thumbs {
        display: flex !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .watch-layout {
        grid-template-columns: minmax(0, 1fr) clamp(250px, 30vw, 340px) !important;
        gap: 22px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .detail-layout {
        grid-template-columns: minmax(0, 1fr) clamp(250px, 30vw, 340px) !important;
        gap: 22px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .watch-sidebar {
        display: block !important;
        position: sticky !important;
        top: 96px !important;
        order: unset !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .detail-sidebar {
        display: block !important;
        order: unset !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .watch-info {
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .watch-stats {
        align-items: flex-end !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    body:is(.tablet-mode, .tv-mode) .list-load-more-btn {
        min-height: 44px;
        padding: 10px 22px;
    }
}

/* ========== ROANIME CHAT (DISCORD-LIKE) ========== */
.rochat-page {
    margin-top: 76px;
    min-height: calc(100vh - 76px);
    height: calc(100vh - 76px);
    padding: 14px;
    display: grid;
    grid-template-columns: 74px 290px minmax(0, 1fr) 330px;
    gap: 12px;
    background: linear-gradient(180deg, rgba(10, 16, 31, 0.96), rgba(8, 13, 24, 0.98));
    overflow: hidden;
}

.rochat-loading {
    grid-column: 1 / -1;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #d6dff3;
    font-size: 15px;
    font-weight: 600;
}

.rochat-serverbar,
.rochat-sidebar,
.rochat-main,
.rochat-friends {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(20, 30, 54, 0.92), rgba(13, 21, 39, 0.94));
    min-height: 0;
    height: 100%;
}

.rochat-serverbar {
    padding: 14px 8px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.rochat-server-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8dd87, #f2c754);
    color: #18203a;
    font-size: 22px;
    box-shadow: 0 10px 20px rgba(245, 208, 103, 0.3);
}

.rochat-serverbar h2 {
    font-size: 13px;
    line-height: 1.35;
    color: #eff4ff;
}

.rochat-serverbar p {
    font-size: 11px;
    color: #98a6c5;
}

.rochat-sidebar {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.rochat-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rochat-sidebar-head h3 {
    font-size: 16px;
}

.rochat-sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rochat-group h4 {
    font-size: 11px;
    color: #98a5c5;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.rochat-group-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rochat-channel-btn,
.rochat-dm-btn {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #d5dded;
    text-align: left;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rochat-channel-btn:hover,
.rochat-dm-btn:hover {
    border-color: rgba(245, 208, 103, 0.34);
    background: rgba(245, 208, 103, 0.08);
}

.rochat-channel-btn.active,
.rochat-dm-btn.active {
    border-color: rgba(245, 208, 103, 0.58);
    background: rgba(245, 208, 103, 0.16);
    color: #f7dd8b;
}

.rochat-channel-mark {
    color: #9fb0d3;
    font-size: 16px;
    line-height: 1;
}

.rochat-channel-lock {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.9;
}

.rochat-channel-text {
    min-width: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rochat-dm-head {
    font-size: 12px;
    font-weight: 700;
    color: #9fb0d3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rochat-dm-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    max-height: none;
    min-height: 120px;
}

.rochat-dm-btn img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.rochat-dm-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.rochat-unread-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    margin-left: 2px;
}

.rochat-dm-meta strong {
    font-size: 13px;
    color: #f5f8ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rochat-dm-meta em {
    font-style: normal;
    font-size: 11px;
    color: #9fb0d3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rochat-presence-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.rochat-presence-dot.on {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.rochat-presence-dot.off {
    background: #64748b;
}

.rochat-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.rochat-main-head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
}

.rochat-main-head h3 {
    font-size: 18px;
    color: #f7faff;
    display: flex;
    align-items: center;
    gap: 7px;
}

.rochat-main-head p {
    margin-top: 2px;
    font-size: 12px;
    color: #9cadce;
}

.rochat-history-loader {
    display: none;
    padding: 7px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5d067;
    font-size: 12px;
    font-weight: 600;
    background: rgba(245, 208, 103, 0.08);
}

.rochat-history-loader.active {
    display: block;
}

.rochat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overscroll-behavior: contain;
}

.rochat-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rochat-avatar-btn {
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 999px;
    cursor: pointer;
}

.rochat-avatar-btn img {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
}

.rochat-message-body {
    min-width: 0;
    max-width: min(720px, 90%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 10px;
}

.rochat-message.mine .rochat-message-body {
    background: rgba(245, 208, 103, 0.12);
    border-color: rgba(245, 208, 103, 0.28);
}

body.rochat-active .site-footer {
    display: none !important;
}

.rochat-message-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.rochat-message-head strong {
    font-size: 13px;
    color: #f5f8ff;
}

.rochat-message-head time {
    font-size: 11px;
    color: #9eadcc;
}

.rochat-message-text {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.6;
    color: #e8eefc;
    white-space: normal;
    word-break: break-word;
}

.rochat-message-image {
    margin-top: 8px;
    width: auto;
    max-width: min(680px, 100%);
    max-height: 520px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    cursor: zoom-in;
}

.rochat-message-reply-quote {
    margin-top: 5px;
    border-left: 2px solid rgba(245, 208, 103, 0.55);
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rochat-message-reply-quote span {
    font-size: 12px;
    color: #f2d372;
}

.rochat-message-reply-quote em {
    font-size: 12px;
    color: #aebad5;
    font-style: normal;
}

.rochat-message-actions {
    margin-top: 7px;
}

.rochat-message-reply {
    border: none;
    background: transparent;
    color: #9fb0d3;
    font-size: 12px;
    padding: 0;
}

.rochat-message-reply:hover {
    color: #f5d067;
}

.rochat-empty-messages,
.rochat-empty {
    color: #94a3c6;
    font-size: 13px;
    padding: 6px 2px;
}

.rochat-composer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 12px 14px;
    background: rgba(9, 14, 26, 0.45);
    position: relative;
}

.rochat-composer.readonly {
    opacity: 0.82;
}

.rochat-composer.readonly .rochat-compose-row {
    filter: grayscale(0.15);
}

.rochat-replying {
    display: none;
}

.rochat-replying.active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid rgba(245, 208, 103, 0.32);
    background: rgba(245, 208, 103, 0.08);
    color: #f6dc85;
    padding: 6px 9px;
    margin-bottom: 8px;
    font-size: 12px;
}

.rochat-replying button {
    border: none;
    background: transparent;
    color: #f8e5a3;
    font-size: 12px;
}

.rochat-attachment {
    display: none;
}

.rochat-attachment.active {
    display: block;
    margin-bottom: 8px;
}

.rochat-attach-item {
    width: fit-content;
    position: relative;
}

.rochat-attach-item img {
    max-width: 180px;
    max-height: 130px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    object-fit: cover;
}

.rochat-attach-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 14px;
}

.rochat-uploading {
    font-size: 12px;
    color: #f5d067;
}

.rochat-compose-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rochat-tool-btn,
.rochat-send-btn,
.rochat-emoji-btn {
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rochat-tool-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: #dce4f5;
    font-size: 20px;
    line-height: 1;
}

.rochat-tool-btn .ui-icon {
    width: 20px;
    height: 20px;
}

.rochat-emoji-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: #dce4f5;
    font-size: 22px;
    line-height: 1;
}

.rochat-send-btn {
    min-width: 88px;
    height: 50px;
    padding: 0 14px;
    background: linear-gradient(135deg, #f7db80, #f2c754);
    color: #1b223c;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

.rochat-input {
    flex: 1;
    min-height: 54px;
    max-height: 190px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #f4f8ff;
    padding: 13px 12px;
    line-height: 1.45;
    resize: none;
    outline: none;
}

.rochat-input:focus {
    border-color: rgba(245, 208, 103, 0.52);
    box-shadow: 0 0 0 2px rgba(245, 208, 103, 0.18);
}

.rochat-emoji-picker {
    position: absolute;
    right: 106px;
    bottom: 72px;
    z-index: 25;
    width: min(92vw, 320px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 16, 31, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    display: none;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
}

.rochat-emoji-picker.active {
    display: grid;
}

.rochat-emoji-item {
    width: 100%;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 20px;
    line-height: 1;
}

.rochat-emoji-item:hover {
    border-color: rgba(245, 208, 103, 0.5);
    background: rgba(245, 208, 103, 0.14);
}

.rochat-readonly-info {
    border: 1px solid rgba(245, 208, 103, 0.34);
    background: rgba(245, 208, 103, 0.1);
    border-radius: 12px;
    padding: 12px 13px;
    color: #f4e6b2;
    margin-bottom: 8px;
}

.rochat-readonly-info h4 {
    font-size: 14px;
    margin-bottom: 6px;
}

.rochat-readonly-info p {
    font-size: 13px;
    line-height: 1.62;
    color: #ffeec4;
}

.rochat-friends {
    padding: 12px;
    overflow-y: auto;
    min-height: 0;
}

.rochat-friend-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.rochat-friend-head h3 {
    font-size: 17px;
}

.rochat-friend-head span {
    font-size: 12px;
    color: #9fb0d3;
}

.rochat-add-friend {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.rochat-add-friend input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #f1f5ff;
    padding: 0 10px;
    outline: none;
}

.rochat-add-friend input:focus {
    border-color: rgba(245, 208, 103, 0.52);
}

.rochat-add-btn {
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(245, 208, 103, 0.38);
    background: rgba(245, 208, 103, 0.14);
    color: #f6dc89;
}

.rochat-panel-block {
    margin-top: 12px;
}

.rochat-panel-block h4 {
    font-size: 12px;
    color: #9fb0d3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 7px;
}

.rochat-request-item,
.rochat-friend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 7px;
    margin-bottom: 7px;
}

.rochat-request-item img,
.rochat-friend-item img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
}

.rochat-user-avatar {
    cursor: pointer;
}

.rochat-request-meta,
.rochat-friend-meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rochat-request-meta strong,
.rochat-friend-meta strong {
    font-size: 13px;
    color: #f4f8ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rochat-request-meta small,
.rochat-friend-meta small {
    font-size: 11px;
    color: #9fb0d3;
}

.rochat-request-actions,
.rochat-friend-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rochat-request-btn,
.rochat-friend-btn,
.rochat-remove-btn {
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #d8e0ef;
    font-size: 12px;
    padding: 0 9px;
}

.rochat-request-btn.accept,
.rochat-friend-btn {
    border-color: rgba(34, 197, 94, 0.32);
    background: rgba(34, 197, 94, 0.14);
    color: #9cf1be;
}

.rochat-request-btn.reject,
.rochat-remove-btn {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: #ffc2c2;
}

.rochat-mention {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.24);
    color: #cfe3ff;
    font-weight: 700;
}

.rochat-message.jump-highlight .rochat-message-body {
    box-shadow: 0 0 0 2px rgba(245, 208, 103, 0.55), 0 0 22px rgba(245, 208, 103, 0.28);
    transition: box-shadow 0.24s ease;
}

.rochat-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 6500;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.82);
    padding: 24px;
}

.rochat-image-viewer.active {
    display: flex;
}

.rochat-image-viewer img {
    max-width: min(92vw, 1500px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.rochat-image-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.rochat-user-card-overlay {
    position: fixed;
    inset: 0;
    z-index: 6400;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    padding: 18px;
}

.rochat-user-card-overlay.active {
    display: flex;
}

.rochat-user-card {
    width: min(94vw, 420px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, #1b2548, #101933);
    color: #eef3ff;
    position: relative;
}

.rochat-user-card-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.36);
    color: #fff;
    font-size: 22px;
}

.rochat-user-banner {
    height: 86px;
    background: linear-gradient(135deg, #5b6fb0, #2a3f77);
}

.rochat-user-head {
    margin-top: -34px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.rochat-user-head img {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    border: 4px solid #101933;
    object-fit: cover;
}

.rochat-user-meta h3 {
    font-size: 24px;
    line-height: 1.1;
}

.rochat-user-meta p {
    font-size: 13px;
    color: #a9b8d9;
    margin-top: 2px;
}

.rochat-user-status {
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.rochat-user-status.on {
    background: rgba(34, 197, 94, 0.2);
    color: #a9f1c1;
}

.rochat-user-status.off {
    background: rgba(148, 163, 184, 0.2);
    color: #d4deef;
}

.rochat-user-stats {
    margin-top: 12px;
    padding: 0 14px;
    display: flex;
    gap: 14px;
    color: #b6c4e2;
    font-size: 13px;
}

.rochat-user-bio {
    margin-top: 10px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #eef4ff;
}

.rochat-user-chat-status {
    margin-top: 8px;
    padding: 0 14px;
    color: #f7dc86;
    font-size: 13px;
}

.rochat-user-last {
    padding: 8px 14px 0;
    color: #9eb0d3;
    font-size: 12px;
}

.rochat-user-missing {
    margin-top: 8px;
    padding: 8px 14px 0;
    font-size: 12px;
    color: #f9c8c8;
}

.rochat-user-actions {
    padding: 12px 14px 14px;
    display: flex;
    gap: 10px;
}

.rochat-user-actions .btn-primary,
.rochat-user-actions .btn-ghost {
    width: auto;
    min-width: 120px;
    height: 42px;
}

.rochat-user-actions .btn-ghost:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.account-chat-block {
    margin-top: 14px;
}

.rochat-toast-host {
    position: fixed;
    right: 16px;
    top: 92px;
    z-index: 6200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.rochat-toast {
    pointer-events: auto;
    width: min(92vw, 360px);
    border: 1px solid rgba(245, 208, 103, 0.45);
    background: rgba(12, 18, 34, 0.96);
    border-radius: 12px;
    color: #edf3ff;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.rochat-toast.active {
    opacity: 1;
    transform: translateX(0);
}

.rochat-toast img {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
}

.rochat-toast span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.rochat-toast strong {
    font-size: 13px;
    line-height: 1.35;
    color: #ffe9a5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rochat-toast em {
    font-style: normal;
    font-size: 12px;
    color: #d2ddf5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) and (max-width: 1280px) {
    .rochat-page {
        grid-template-columns: 64px 250px minmax(0, 1fr) 300px;
        gap: 10px;
        padding: 10px;
    }
}

@media (max-width: 1024px) {
    .rochat-page {
        grid-template-columns: 64px 240px minmax(0, 1fr);
    }

    .rochat-friends {
        display: none;
    }
}

@media (max-width: 767px) {
    .rochat-page {
        margin-top: 66px;
        height: auto;
        min-height: calc(100vh - 66px);
        grid-template-columns: 1fr;
        padding: 10px;
        overflow: visible;
    }

    .rochat-serverbar,
    .rochat-sidebar,
    .rochat-main {
        min-height: auto;
    }

    .rochat-serverbar {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 10px;
    }

    .rochat-sidebar {
        order: 2;
    }

    .rochat-main {
        order: 1;
        min-height: 70vh;
    }

    .rochat-friends {
        display: block;
        order: 3;
    }

    .rochat-emoji-picker {
        right: 12px;
        bottom: 78px;
        width: calc(100% - 24px);
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

/* ========== COMPACT HEADER MENU (HAMBURGER) ========== */
body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #f5f8ff;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1220;
    background: rgba(3, 8, 18, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-menu-drawer {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(92vw, 370px);
    z-index: 1230;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    background:
        radial-gradient(560px 220px at 12% 0%, rgba(117, 151, 236, 0.24), transparent 60%),
        linear-gradient(180deg, rgba(57, 74, 132, 0.98), rgba(49, 65, 122, 0.98));
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.active {
    transform: translateX(0);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 10px 12px;
}

.mobile-menu-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #ff7a7a;
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-menu-logo .logo-text {
    font-size: 42px;
    font-size: clamp(18px, 5.2vw, 34px);
}

.mobile-menu-logo .logo-sub {
    font-size: 11px;
}

.mobile-menu-panel {
    padding: 0 12px 14px;
    overflow-y: auto;
}

.mobile-menu-account {
    margin-bottom: 12px;
}

.mobile-menu-account-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(248, 250, 255, 0.94);
    color: #1a2546;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 22px;
    font-size: clamp(14px, 4vw, 20px);
    font-weight: 700;
    padding: 8px 12px;
}

.mobile-menu-account-btn img {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    object-fit: cover;
}

.mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.mobile-menu-grid>a,
.mobile-menu-drop>summary {
    min-height: 40px;
    border-radius: 10px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: #f6f9ff;
    font-size: 22px;
    font-size: clamp(14px, 3.8vw, 19px);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu-drop {
    margin: 0;
}

.mobile-menu-drop>summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-drop>summary::-webkit-details-marker {
    display: none;
}

.mobile-menu-drop>summary span {
    font-size: 12px;
    opacity: 0.8;
    transition: transform 0.22s ease;
}

.mobile-menu-drop[open]>summary span {
    transform: rotate(180deg);
}

.mobile-menu-sub {
    margin-top: 6px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 13, 28, 0.26);
    display: grid;
    gap: 6px;
    max-height: 38vh;
    overflow-y: auto;
}

.mobile-menu-sub a {
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 14px;
    color: #e6edff;
    background: rgba(255, 255, 255, 0.04);
}

.mobile-menu-reviews {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .header-search,
    .header-nav,
    .header-actions {
        display: none !important;
    }

    .header-inner {
        height: 66px !important;
        padding: 0 12px !important;
        gap: 10px !important;
    }

    .header-inner .logo-text {
        font-size: 28px;
        font-size: clamp(20px, 7vw, 34px);
    }

    .header-inner .logo-sub {
        font-size: 10px;
    }
}

/* ========== HEADER + CHAT HOTFIX (2026.02.22) ========== */
.header-actions {
    min-width: 0;
}

.user-dropdown {
    max-width: 100%;
}

.user-dropdown .btn-member {
    max-width: 100%;
}

.btn-member {
    min-width: 0;
    max-width: min(44vw, 260px);
}

.btn-member-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1199px) and (min-width: 901px) {
    .header-inner {
        gap: 10px;
    }

    .header-search {
        flex: 1 1 clamp(190px, 28vw, 330px);
        max-width: clamp(190px, 28vw, 330px);
        min-width: 170px;
    }

    .header-actions {
        max-width: min(34vw, 220px);
    }

    .btn-member {
        max-width: 100%;
        padding: 8px 12px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    body.tablet-mode .header-inner {
        gap: 10px;
    }

    body.tablet-mode .header-nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    body.tablet-mode .header-search {
        flex: 0 1 clamp(180px, 26vw, 310px);
        max-width: clamp(180px, 26vw, 310px);
        min-width: 160px;
    }

    body.tablet-mode .header-actions {
        flex: 0 0 auto;
        min-width: 0;
        max-width: min(32vw, 220px);
    }

    body.tablet-mode .btn-member {
        max-width: 100%;
        min-width: 0;
        padding: 8px 12px;
    }

    body.tablet-mode .btn-member-label {
        max-width: 14ch;
    }
}

@media (min-width: 768px) and (max-width: 930px) {
    body.tablet-mode .header-search {
        flex: 0 1 220px;
        max-width: 220px;
    }

    body.tablet-mode .btn-member-label {
        max-width: 9ch;
    }
}

/* ========== ACCOUNT BUTTON SHRINK FIX (2026.02.22.2) ========== */
@media (min-width: 901px) {
    body.desktop-mode .header-actions {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 100%;
        margin-left: auto;
        padding-left: 6px;
        position: relative;
        z-index: 2;
    }

    body.desktop-mode .user-dropdown {
        min-width: 0;
        max-width: 100%;
    }

    body.desktop-mode .user-dropdown .btn-member {
        min-width: 0;
        max-width: clamp(122px, 16vw, 220px);
        padding: 8px 12px;
        gap: 8px;
        white-space: nowrap;
    }

    body.desktop-mode .user-avatar-small {
        flex-shrink: 0;
    }

    body.desktop-mode .btn-member-label {
        display: block;
        min-width: 0;
        max-width: 14ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Keep nav from overlapping the account button when desktop width is reduced */
    body.desktop-mode .header-nav {
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-right: 2px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    body.desktop-mode .header-nav.menu-open {
        overflow: visible !important;
    }

    body.desktop-mode .header-nav:has(.nav-dropdown.is-open) {
        overflow: visible !important;
    }

    body.desktop-mode .header-nav::-webkit-scrollbar {
        display: none;
    }
}

@media (min-width: 901px) and (max-width: 1380px) {

    body.desktop-mode .header-nav a,
    body.desktop-mode .header-nav .nav-dropdown>span {
        padding: 8px 9px;
        font-size: 12px;
    }

    body.desktop-mode .btn-member-label {
        max-width: 10ch;
    }
}

.movie-carousel.drag-release,
.top10-carousel.drag-release,
.filter-chips.drag-release,
.cast-grid.drag-release,
.watch-side-list.drag-release,
.hero-thumbs.drag-release,
.anime-vault-strip.drag-release,
.header-nav.drag-release {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

/* Horizontal swipe performance tuning */
.movie-carousel,
.top10-carousel,
.filter-chips,
.cast-grid,
.hero-thumbs,
.anime-vault-strip,
.watch-side-list,
.header-nav {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
}

.movie-carousel.dragging,
.top10-carousel.dragging,
.filter-chips.dragging,
.cast-grid.dragging,
.hero-thumbs.dragging,
.anime-vault-strip.dragging,
.watch-side-list.dragging,
.header-nav.dragging {
    scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {

    .movie-carousel,
    .top10-carousel,
    .filter-chips,
    .cast-grid,
    .hero-thumbs,
    .anime-vault-strip,
    .watch-side-list,
    .header-nav {
        scroll-behavior: auto !important;
    }
}

.rochat-serverbar {
    display: none !important;
}

.rochat-page {
    grid-template-columns: 290px minmax(0, 1fr) 330px;
}

@media (min-width: 768px) and (max-width: 1280px) {
    .rochat-page {
        grid-template-columns: 250px minmax(0, 1fr) 300px;
    }
}

@media (max-width: 1024px) {
    .rochat-page {
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .rochat-page {
        grid-template-columns: 1fr;
    }
}

body.rochat-active .site-footer {
    display: none !important;
}

@media (min-width: 768px) {
    body.rochat-active {
        overflow: hidden;
        overscroll-behavior-y: none;
    }

    body.rochat-active #app {
        height: 100vh;
        overflow: hidden;
    }

    body.rochat-active .rochat-page {
        overscroll-behavior: contain;
    }
}

/* ========== MOVIE CARD HOVER PREVIEW + BADGE REMASTER (2026.02.22) ========== */
.movie-card .badge-quality {
    display: none !important;
}

.movie-card .poster-badges {
    left: 10px;
    right: auto;
    bottom: 10px;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 5px;
    z-index: 3;
}

.movie-card .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 21px;
    min-width: 34px;
    padding: 2px 9px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 4px 10px rgba(3, 9, 18, 0.3);
}

.movie-card .badge-lang {
    background: linear-gradient(145deg, #3b63a8, #2a4b86);
    color: #f4f8ff;
}

.movie-card .badge-ep {
    background: linear-gradient(145deg, #f7dc7c, #efbf42);
    color: #241700;
    border-color: rgba(255, 243, 195, 0.8);
}

.movie-hover-preview {
    position: fixed;
    z-index: 7100;
    width: min(92vw, 392px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, #2b3454, #242e4b);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.52);
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.movie-hover-preview.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.movie-hover-hero {
    position: relative;
    height: 214px;
    background-size: cover;
    background-position: center;
}

.movie-hover-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(35, 45, 74, 0.95) 0%, rgba(35, 45, 74, 0.16) 62%, rgba(35, 45, 74, 0.02) 100%),
        linear-gradient(to right, rgba(6, 10, 19, 0.26), rgba(6, 10, 19, 0.1));
}

.movie-hover-body {
    padding: 11px 12px 12px;
}

.movie-hover-body h4 {
    font-size: clamp(14px, 2vw, 20px);
    line-height: 1.15;
    color: #f5f8ff;
    letter-spacing: 0;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-hover-body p {
    color: #f4d665;
    font-size: 13px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-hover-actions {
    display: grid;
    grid-template-columns: 1.18fr 1fr 1fr;
    gap: 7px;
    margin-bottom: 8px;
}

.movie-hover-btn {
    min-height: 40px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.04);
    color: #f3f8ff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
}

.movie-hover-btn .ui-icon {
    width: 14px;
    height: 14px;
}

.movie-hover-btn.primary {
    background: linear-gradient(145deg, #f7dc80, #f0c34e);
    border-color: rgba(255, 236, 173, 0.96);
    color: #1f2336;
}

.movie-hover-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-hover-tag {
    min-height: 21px;
    padding: 2px 8px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #f4f8ff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.movie-hover-tag-imdb {
    background: rgba(245, 197, 24, 0.15);
    border-color: rgba(245, 197, 24, 0.7);
    color: #f9e08a;
}

.movie-hover-tag-lang {
    background: rgba(64, 116, 207, 0.2);
    border-color: rgba(112, 158, 239, 0.7);
    color: #dcecff;
}

.movie-hover-genres {
    margin-top: 7px;
    color: #dce4f7;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .movie-hover-preview {
        width: min(90vw, 352px);
    }

    .movie-hover-hero {
        height: 196px;
    }
}

/* ========== DONATE QR MODAL (2026.02.23) ========== */
.nav-donate .new-pill,
.mobile-menu-donate .new-pill {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #f4fff8;
}

.donate-modal-box {
    width: min(94vw, 460px);
    max-width: 460px;
}

.donate-qr-wrap {
    margin: 0 auto 14px;
    width: min(100%, 280px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.donate-qr-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.donate-bank-info {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 11px 12px;
    margin-bottom: 14px;
    display: grid;
    gap: 8px;
}

.donate-bank-info div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #d5def1;
}

.donate-bank-info span {
    color: #9eb0d3;
}

.donate-bank-info strong {
    color: #f7fbff;
    text-align: right;
    font-weight: 700;
}

.donate-copy-btn {
    margin-top: 0;
}

@media (max-width: 640px) {
    .donate-modal-box {
        padding: 20px 14px;
    }

    .donate-bank-info div {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .donate-bank-info strong {
        text-align: left;
    }
}

/* ========== MOVIE CARD HOVER TUNE (2026.02.23) ========== */
.movie-card,
.movie-card .movie-poster,
.movie-card .movie-info,
.movie-card .movie-name,
.movie-card .movie-origin {
    -webkit-user-select: none;
    user-select: none;
}

.movie-card .movie-name,
.movie-card .movie-origin,
.movie-card .poster-img {
    -webkit-user-drag: none;
    user-drag: none;
}

.movie-card .movie-info {
    pointer-events: none;
}

.movie-card:hover {
    transform: none;
}

.movie-card:hover .movie-poster img {
    transform: none;
    filter: brightness(0.88);
}

.movie-poster::after {
    background: linear-gradient(180deg, rgba(4, 8, 18, 0.08), rgba(4, 8, 18, 0.3));
    transition: opacity 0.22s ease;
}

.movie-card:hover .movie-poster::after {
    opacity: 0.22;
}

.movie-hover-preview {
    transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========== TOP10 NO-COPY + ANIMATION TUNE (2026.02.23) ========== */
.top10-section,
.top10-section * {
    -webkit-user-select: none;
    user-select: none;
}

.top10-card,
.top10-card * {
    -webkit-user-drag: none;
    user-drag: none;
}

.top10-carousel .top10-card {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    animation: top10CardReveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.top10-carousel .top10-card:nth-child(1) {
    animation-delay: 0.03s;
}

.top10-carousel .top10-card:nth-child(2) {
    animation-delay: 0.06s;
}

.top10-carousel .top10-card:nth-child(3) {
    animation-delay: 0.09s;
}

.top10-carousel .top10-card:nth-child(4) {
    animation-delay: 0.12s;
}

.top10-carousel .top10-card:nth-child(5) {
    animation-delay: 0.15s;
}

.top10-carousel .top10-card:nth-child(6) {
    animation-delay: 0.18s;
}

.top10-carousel .top10-card:nth-child(7) {
    animation-delay: 0.21s;
}

.top10-carousel .top10-card:nth-child(8) {
    animation-delay: 0.24s;
}

.top10-card {
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), filter 0.24s ease, box-shadow 0.24s ease;
}

.top10-card:hover {
    transform: translateY(-3px) scale(1.01);
    filter: brightness(1.06);
}

.top10-card .top10-poster img {
    transition: transform 0.34s ease;
}

.top10-card:hover .top10-poster img {
    transform: scale(1.02);
}

@keyframes top10CardReveal {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ========== MOBILE UI REFRESH (2026.02.26) ========== */
.mobile-head-actions,
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    :root {
        --mobile-header-h: 64px;
        --mobile-dock-h: 72px;
        --cap-statusbar-fallback: 32px;
        --safe-top-inset: env(safe-area-inset-top);
        --mobile-header-total-h: calc(var(--mobile-header-h) + var(--safe-top-inset));
    }

    html.capacitor-android.cap-statusbar-overlay {
        --safe-top-inset: max(env(safe-area-inset-top), var(--cap-statusbar-fallback));
    }

    html.capacitor-android.cap-statusbar-nooverlay {
        --safe-top-inset: env(safe-area-inset-top);
    }

    body {
        background:
            radial-gradient(640px 240px at 18% -12%, rgba(99, 130, 221, 0.18), transparent 68%),
            radial-gradient(520px 240px at 94% 0%, rgba(23, 95, 196, 0.12), transparent 74%),
            #090f1f;
        -webkit-tap-highlight-color: transparent;
    }

    #app {
        padding-bottom: calc(var(--mobile-dock-h) + 12px);
        padding-bottom: calc(var(--mobile-dock-h) + env(safe-area-inset-bottom) + 12px);
    }

    .site-header {
        padding-top: var(--safe-top-inset);
        background:
            linear-gradient(180deg, rgba(11, 20, 43, 0.97), rgba(12, 23, 48, 0.93));
        border-bottom: 1px solid rgba(147, 172, 233, 0.18);
        box-shadow: 0 10px 24px rgba(1, 4, 12, 0.34);
    }

    .header-inner {
        height: var(--mobile-header-h) !important;
        gap: 10px !important;
        padding: 0 10px 0 12px !important;
    }

    .header-inner .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-inner .logo-icon {
        width: 32px;
        height: 32px;
    }

    .header-inner .logo-text {
        font-size: 18px;
        letter-spacing: 0.01em;
    }

    .header-inner .logo-sub {
        display: block;
        font-size: 9px;
        color: #93a7d8;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        border: 1px solid rgba(180, 203, 255, 0.26);
        background: rgba(15, 30, 63, 0.55);
    }

    .mobile-head-actions {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .mobile-head-btn {
        width: 34px;
        height: 34px;
        border: 1px solid rgba(180, 203, 255, 0.25);
        border-radius: 999px;
        background: rgba(15, 30, 63, 0.52);
        color: #f2f7ff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .mobile-head-btn .ui-icon {
        width: 18px;
        height: 18px;
    }

    .mobile-head-btn img {
        width: 100%;
        height: 100%;
        border-radius: inherit;
        object-fit: cover;
    }

    .mobile-head-btn.has-avatar {
        padding: 0;
        overflow: hidden;
        border-color: rgba(247, 222, 148, 0.5);
    }

    .header-search {
        display: none !important;
        position: fixed;
        top: calc(var(--mobile-header-total-h) + 6px);
        left: 10px;
        right: 10px;
        z-index: 1240;
        margin: 0;
        max-width: none;
        border-radius: 14px;
        border: 1px solid rgba(165, 187, 236, 0.22);
        background: rgba(7, 16, 35, 0.92);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    }

    body.mobile-search-open .header-search {
        display: flex !important;
    }

    body.mobile-search-open .header-search input {
        height: 48px;
        padding-right: 12px;
        padding-left: 42px;
        font-size: 14px;
    }

    body.mobile-search-open .header-search .search-icon {
        left: 14px;
        font-size: 16px;
        color: #d7e4ff;
    }

    body.mobile-search-open .search-suggest {
        top: calc(100% + 8px);
        border-radius: 14px;
        border: 1px solid rgba(167, 187, 233, 0.2);
        background: linear-gradient(180deg, rgba(16, 27, 52, 0.98), rgba(10, 18, 37, 0.97));
        max-height: min(62vh, 420px);
        overflow-y: auto;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    }

    .mobile-menu-overlay {
        background: rgba(4, 8, 18, 0.72);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .mobile-menu-drawer {
        width: min(94vw, 380px);
        border-right: 1px solid rgba(157, 178, 230, 0.26);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.38);
        background:
            radial-gradient(560px 250px at 12% 0%, rgba(134, 162, 238, 0.22), transparent 62%),
            linear-gradient(180deg, rgba(18, 31, 63, 0.98), rgba(11, 20, 42, 0.98));
    }

    .mobile-menu-head {
        min-height: var(--mobile-header-total-h);
        padding: 10px 12px;
        border-bottom: 1px solid rgba(170, 191, 238, 0.16);
    }

    .mobile-menu-panel {
        padding: 12px;
    }

    .mobile-menu-account {
        margin-bottom: 10px;
    }

    .mobile-menu-account-btn {
        min-height: 40px;
        border-radius: 999px;
        font-size: 13px;
    }

    .mobile-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mobile-menu-grid>a,
    .mobile-menu-drop>summary {
        min-height: 42px;
        border-radius: 12px;
        padding: 10px;
        font-size: 13px;
        font-weight: 700;
        border: 1px solid rgba(173, 193, 237, 0.15);
        background: rgba(255, 255, 255, 0.035);
    }

    .mobile-menu-sub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        max-height: 42vh;
        background: rgba(7, 13, 30, 0.56);
    }

    .mobile-menu-sub a {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 8px;
        font-size: 12px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 8px;
        bottom: calc(env(safe-area-inset-bottom) + 8px);
        z-index: 1250;
        height: var(--mobile-dock-h);
        border-radius: 18px;
        border: 1px solid rgba(173, 195, 239, 0.24);
        background:
            linear-gradient(180deg, rgba(15, 27, 56, 0.97), rgba(8, 15, 34, 0.98));
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 6px;
        gap: 4px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .mobile-bottom-link {
        border: none;
        background: transparent;
        color: #d4e0fb;
        border-radius: 12px;
        padding: 4px 2px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-weight: 600;
        min-width: 0;
    }

    .mobile-bottom-icon {
        width: 24px;
        height: 24px;
        border-radius: 999px;
        border: 1px solid rgba(175, 197, 240, 0.2);
        background: rgba(255, 255, 255, 0.06);
        color: #f6f9ff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }

    .mobile-bottom-icon img {
        width: 100%;
        height: 100%;
        border-radius: inherit;
        object-fit: cover;
    }

    .mobile-bottom-link span:last-child {
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
        letter-spacing: 0.02em;
    }

    .mobile-bottom-link.is-active {
        color: #ffe28d;
        background: rgba(245, 197, 24, 0.12);
    }

    .mobile-bottom-link.is-active .mobile-bottom-icon {
        background: linear-gradient(135deg, #ffe38d, #f2c658);
        border-color: rgba(255, 235, 171, 0.95);
        color: #121722;
    }

    .mobile-bottom-link.has-avatar .mobile-bottom-icon {
        padding: 0;
        overflow: hidden;
    }

    body.mobile-menu-open .mobile-bottom-nav {
        opacity: 0;
        transform: translateY(12px);
        pointer-events: none;
    }

    body.rochat-active .mobile-bottom-nav {
        display: none;
    }

    .hero-section,
    .watch-page,
    .detail-page,
    .list-page,
    .rochat-page {
        margin-top: var(--mobile-header-total-h) !important;
    }

    .hero-section {
        min-height: 0;
        height: auto;
    }

    .hero-content {
        padding: 0 14px;
        bottom: auto;
        max-width: 100%;
        position: relative;
    }

    .hero-title {
        font-size: clamp(24px, 7.1vw, 32px);
    }

    .hero-origin {
        font-size: 13px;
        opacity: 0.95;
    }

    .hero-tag {
        font-size: 11px;
        padding: 4px 8px;
    }

    .hero-desc {
        font-size: 13px;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .hero-actions {
        gap: 8px;
    }

    .btn-play {
        min-height: 46px;
        padding: 12px 16px;
        flex: 1;
        justify-content: center;
        border-radius: 999px;
        font-size: 14px;
    }

    .btn-circle {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .hero-thumbs {
        max-width: 100%;
        padding: 4px 10px 8px;
        gap: 8px;
    }

    .hero-thumb {
        width: 58px;
        min-width: 58px;
        border-radius: 10px;
    }

    .filter-section {
        padding: 14px 12px 4px;
    }

    .filter-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .filter-chips {
        gap: 10px;
        padding-bottom: 8px;
    }

    .filter-chip {
        min-width: 172px;
        min-height: 96px;
        padding: 12px 12px 10px;
        border-radius: 14px;
    }

    .filter-chip strong {
        font-size: 14px;
    }

    .filter-chip-sub {
        font-size: 11px;
    }

    .main-content,
    .list-container,
    .detail-container,
    .watch-layout,
    .player-container,
    .breadcrumb {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .section-header {
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .movie-carousel,
    .top10-carousel {
        gap: 12px;
        padding-bottom: 6px;
        scroll-padding-left: 12px;
        scroll-snap-type: x proximity;
        touch-action: manipulation !important;
        overscroll-behavior-y: auto;
    }

    .movie-carousel .movie-card {
        width: 142px;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-items: start;
    }

    .movie-grid .movie-card {
        width: 100%;
        min-width: 0;
        padding: 6px;
        border-radius: 13px;
        background: linear-gradient(180deg, rgba(23, 34, 66, 0.96), rgba(12, 20, 42, 0.97));
        border: 1px solid rgba(164, 188, 236, 0.14);
        box-shadow: 0 10px 24px rgba(2, 6, 16, 0.38);
    }

    .movie-grid .movie-poster {
        border-radius: 10px;
    }

    .movie-grid .movie-info {
        padding: 8px 1px 2px;
    }

    .movie-grid .movie-name {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 2px;
    }

    .movie-grid .movie-origin {
        font-size: 10px;
        line-height: 1.3;
    }

    .poster-badges {
        left: 6px;
        right: 6px;
        bottom: 6px;
    }

    .badge {
        font-size: 9px;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .top10-section {
        margin-bottom: 28px;
    }

    .top10-carousel .top10-card {
        width: min(76vw, 300px);
    }

    .top10-rank {
        font-size: 54px;
        left: 4px;
        bottom: 8px;
        -webkit-text-stroke: 2px #ffe08d;
        text-shadow: none;
    }

    .top10-meta-row {
        padding: 10px 8px 0;
    }

    .top10-name {
        font-size: 13px;
    }

    .top10-subtitle,
    .top10-extra {
        font-size: 10px;
    }

    .detail-backdrop {
        min-height: 270px;
        height: 42vh;
    }

    .detail-container {
        margin-top: -128px !important;
        padding-bottom: 28px;
    }

    .detail-header {
        gap: 12px;
        padding: 12px;
        border-radius: 16px;
        border: 1px solid rgba(165, 188, 238, 0.17);
        background: linear-gradient(180deg, rgba(12, 23, 48, 0.95), rgba(8, 16, 34, 0.96));
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
    }

    .detail-poster {
        width: 124px;
        border-radius: 12px;
    }

    .detail-actions-row {
        gap: 8px;
        margin-bottom: 12px;
    }

    .detail-actions-row .btn-watch {
        width: 100%;
        justify-content: center;
        min-height: 46px;
        border-radius: 999px;
        padding: 12px 18px;
        font-size: 14px;
    }

    .action-btn {
        flex: 1;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        gap: 6px;
        padding: 8px 10px;
        border: 1px solid rgba(164, 189, 236, 0.17);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        font-size: 11px;
    }

    .action-btn .icon {
        font-size: 14px;
    }

    .rating-badge {
        margin-left: 0;
        min-height: 40px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .detail-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .detail-origin {
        font-size: 12px;
    }

    .detail-tag,
    .genre-tag {
        font-size: 10px;
        border-radius: 999px;
        padding: 4px 8px;
    }

    .detail-desc {
        font-size: 12px;
        line-height: 1.55;
    }

    .stats-row {
        gap: 10px;
        margin: 12px 0;
        flex-wrap: wrap;
        font-size: 11px;
    }

    .tabs-nav {
        position: sticky;
        top: calc(var(--mobile-header-total-h) + 6px);
        z-index: 7;
        border-radius: 12px;
        border: 1px solid rgba(163, 186, 232, 0.16);
        background: rgba(8, 15, 32, 0.9);
        backdrop-filter: blur(10px);
        overflow: hidden;
    }

    .tab-btn {
        min-height: 40px;
        padding: 9px 10px;
        font-size: 12px;
    }

    .watch-layout {
        gap: 14px;
    }

    .breadcrumb {
        font-size: 12px;
        padding-top: 10px;
        padding-bottom: 8px;
    }

    .player-wrapper {
        border-radius: 14px;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
    }

    .player-toolbar {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 10px 0 8px;
        scrollbar-width: none;
    }

    .player-toolbar::-webkit-scrollbar {
        display: none;
    }

    .toolbar-btn {
        flex: 0 0 auto;
        min-height: 34px;
        border-radius: 999px;
        padding: 7px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .toolbar-sep {
        display: none;
    }

    .watch-info {
        margin-top: 2px;
        border: 1px solid rgba(166, 190, 236, 0.16);
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(14, 25, 52, 0.94), rgba(9, 17, 36, 0.95));
        padding: 12px;
        gap: 12px;
    }

    .watch-thumb {
        width: 90px;
        height: 128px;
        border-radius: 10px;
    }

    .watch-title {
        font-size: 18px;
    }

    .watch-origin {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .watch-desc {
        font-size: 12px;
        margin-top: 4px;
    }

    .watch-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    .watch-stat-btn {
        justify-content: center;
        min-height: 34px;
        border-radius: 10px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .watch-episodes {
        border: 1px solid rgba(165, 189, 236, 0.16);
        border-radius: 14px;
        background: rgba(8, 16, 33, 0.74);
        padding: 12px;
    }

    .episode-controls {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 6px;
    }

    .episode-controls::-webkit-scrollbar {
        display: none;
    }

    .server-btn {
        flex: 0 0 auto;
        min-height: 34px;
        border-radius: 999px;
        padding: 0 12px;
        font-size: 12px;
        border: 1px solid rgba(166, 188, 231, 0.2);
        background: rgba(255, 255, 255, 0.04);
    }

    .server-btn.active {
        border-color: rgba(255, 230, 154, 0.92);
        background: linear-gradient(135deg, #ffe28d, #f2c658);
        color: #121723;
    }

    .episode-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .ep-btn {
        min-height: 38px;
        border-radius: 10px;
        padding: 8px 6px;
        font-size: 12px;
    }

    .comments-section {
        margin-top: 20px;
        padding-top: 16px;
    }

    .comments-header {
        margin-bottom: 12px;
        gap: 10px;
    }

    .comment-form {
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 14px;
    }

    .comment-form textarea {
        min-height: 90px;
        border-radius: 10px;
        font-size: 13px;
    }

    .comment-form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"] {
        width: 100%;
        min-width: 0;
    }

    .comment-form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .comment-form-right {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .btn-submit {
        min-width: 106px;
        min-height: 36px;
        border-radius: 999px;
        padding: 8px 14px;
    }

    .comment-item {
        gap: 10px;
        padding: 12px 0;
    }

    .comment-avatar {
        width: 34px;
        height: 34px;
    }

    .comment-author {
        font-size: 12px;
    }

    .comment-text {
        font-size: 12px;
        margin: 4px 0;
    }

    .comment-actions {
        gap: 10px;
        flex-wrap: wrap;
    }

    .comment-action-btn {
        font-size: 11px;
    }

    .site-footer {
        margin-top: 22px;
        padding-top: 20px;
        border-top: 1px solid rgba(166, 188, 232, 0.16);
        background: linear-gradient(180deg, rgba(8, 14, 30, 0.98), rgba(6, 11, 24, 0.98));
    }

    .footer-inner {
        display: block;
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-desc {
        max-width: 340px;
        margin: 10px auto 12px;
        text-align: center;
        font-size: 11px;
    }

    .social-links {
        justify-content: center;
        gap: 8px;
        margin-bottom: 14px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .footer-col h4 {
        margin-bottom: 6px;
        text-align: center;
        font-size: 12px;
    }

    .footer-col a {
        display: block;
        text-align: center;
        font-size: 11px;
        line-height: 1.45;
    }

    .sovereignty-banner {
        margin: 6px auto 10px;
        max-width: fit-content;
        font-size: 11px;
    }

    .footer-bottom {
        text-align: center;
        font-size: 10px;
        padding: 12px 0 calc(12px + var(--mobile-dock-h));
    }
}

@media (max-width: 640px) {
    :root {
        --mobile-dock-h: 68px;
    }

    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
        padding: 5px;
        gap: 2px;
    }

    .mobile-bottom-link {
        gap: 4px;
    }

    .mobile-bottom-link span:last-child {
        font-size: 9px;
    }

    .hero-thumbs {
        display: none;
    }

    .filter-chip {
        min-width: 156px;
    }

    .movie-carousel .movie-card {
        width: 136px;
    }

    .top10-carousel .top10-card {
        width: min(84vw, 280px);
    }

    .detail-actions-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-actions-row .btn-watch {
        grid-column: 1 / -1;
    }

    .rating-badge {
        grid-column: span 2;
        justify-content: center;
    }

    .episode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   📱 MOBILE PREMIUM POLISH 2026.02 — Rổ Anime
   Tối ưu nhẹ nhàng, không phá layout hiện có
   ============================================================ */

/* --- Fix scroll bị cứng trên hero / ảnh lớn --- */
@media (max-width: 900px) {

    html,
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    /* CRITICAL: allow vertical scroll everywhere */
    .hero-section,
    .hero-section *,
    .filter-section,
    .filter-section *,
    .filter-chips,
    .filter-chip,
    .main-content,
    #app {
        touch-action: auto;
    }

    .hero-bg,
    .hero-bg-next,
    .hero-overlay,
    .hero-bottom-fade {
        pointer-events: none;
    }

    img,
    .poster-img,
    .movie-poster,
    .detail-backdrop {
        -webkit-user-drag: none;
    }

    .movie-carousel,
    .top10-carousel,
    .episode-controls {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
    }

    /* filter-chips horizontal scroll must allow both directions */
    .filter-chips {
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- Hero section mobile redesign --- */
@media (max-width: 900px) {
    .hero-section {
        border-radius: 0 0 20px 20px;
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        padding-top: 0;
        padding-bottom: 10px;
        overflow: visible;
    }

    .hero-bg {
        filter: brightness(0.25) blur(8px);
    }

    .hero-bg-next {
        filter: brightness(0.25) blur(8px);
    }

    .hero-bottom-fade {
        border-radius: 0 0 20px 20px;
        height: 120px;
    }

    .hero-overlay {
        background: linear-gradient(to bottom,
                rgba(9, 15, 31, 0.3) 0%,
                rgba(9, 15, 31, 0.55) 40%,
                rgba(9, 15, 31, 0.9) 100%);
    }

    /* --- Poster Carousel (3 cards visible, swipe) --- */
    .hero-poster-carousel {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 30vw 8px;
        position: relative;
        z-index: 3;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
    }

    .hero-poster-carousel::-webkit-scrollbar {
        display: none;
    }

    .hero-poster-card {
        flex: 0 0 auto;
        width: 42vw;
        max-width: 200px;
        aspect-ratio: 2/3;
        border-radius: 14px;
        overflow: hidden;
        opacity: 0.5;
        transform: scale(0.85);
        transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        scroll-snap-align: center;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    .hero-poster-card.active {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }

    .hero-poster-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 14px;
    }

    /* Hero content below poster */
    .hero-content {
        position: relative;
        bottom: auto;
        left: auto;
        max-width: 100%;
        padding: 8px 20px 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 3;
    }

    /* DISABLE hero animations on mobile — always visible */
    .hero-section.hero-pending .hero-content,
    .hero-section.hero-pending .hero-thumbs,
    .hero-section.hero-pending .hero-poster-carousel,
    .hero-section.hero-pending .hero-dots {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .hero-content.hero-content-swapping {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .hero-title {
        text-align: center;
        font-size: clamp(18px, 5.2vw, 24px);
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .hero-origin {
        text-align: center;
        font-size: 12px;
        margin-bottom: 12px;
        opacity: 0.65;
        font-style: italic;
    }

    /* Mobile hero actions — "Xem Phim" + "Thông tin" side by side */
    .hero-actions-mobile {
        display: flex !important;
        width: 100%;
        max-width: 320px;
        gap: 10px;
        justify-content: center;
        margin-bottom: 10px;
    }

    .hero-actions-mobile .btn-play {
        flex: 1;
        min-height: 42px;
        padding: 10px 16px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 700;
        justify-content: center;
        gap: 6px;
        display: inline-flex;
        align-items: center;
        background: #fff;
        color: #000;
        border: none;
    }

    .hero-actions-mobile .btn-play:active {
        transform: scale(0.96);
    }

    .btn-info-mobile {
        flex: 1;
        min-height: 42px;
        padding: 10px 16px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        border: 1.5px solid rgba(255, 255, 255, 0.3);
        cursor: pointer;
        font-family: inherit;
        transition: background 0.15s ease;
    }

    .btn-info-mobile:active {
        transform: scale(0.96);
        background: rgba(255, 255, 255, 0.18);
    }

    .btn-info-mobile .ui-icon {
        width: 1em;
        height: 1em;
    }

    /* Hide desktop actions on mobile */
    .hero-actions-desktop {
        display: none !important;
    }

    .hero-tags {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 8px;
        width: 100%;
        max-width: 340px;
    }

    .hero-tag {
        border-radius: 6px !important;
        font-size: 10px !important;
        padding: 4px 8px !important;
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 600 !important;
        white-space: nowrap;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-tag.imdb {
        background: #f5c518 !important;
        color: #000 !important;
        border-color: #f5c518 !important;
        font-weight: 700 !important;
    }

    /* Tiết kiệm không gian trên màn hình rất nhỏ: Ẩn bớt genre tag/episode nếu quá nhiều */
    @media (max-width: 380px) {
        .hero-tag.subtle:nth-of-type(n+5) {
            display: none !important;
        }

        .hero-tag {
            padding: 3px 6px !important;
            font-size: 9px !important;
        }
    }

    .hero-desc {
        text-align: center;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: 12px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 6px;
    }

    .hero-genres {
        justify-content: center;
    }

    /* Dots indicator */
    .hero-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        padding: 6px 0 2px;
        z-index: 3;
        position: relative;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .hero-dot.active {
        width: 22px;
        background: var(--accent, #f5c518);
    }

    /* Hide old thumbs on mobile */
    .hero-thumbs {
        display: none !important;
    }

    /* Force mobile hero mode when viewport <= 900 even if body keeps desktop/tablet classes */
    body:is(.desktop-mode, .tablet-mode, .tv-mode) #heroSection .hero-thumbs {
        display: none !important;
    }

    /* Hide mobile poster element (now using carousel) */
    .hero-mobile-poster {
        display: none;
    }
}

/* Desktop: hide mobile-only elements */
@media (min-width: 901px) {
    .hero-poster-carousel {
        display: none !important;
    }

    .hero-dots {
        display: none !important;
    }

    .hero-actions-mobile {
        display: none !important;
    }

    .btn-info-mobile {
        display: none !important;
    }

    .hero-actions-desktop {
        display: flex !important;
    }

    .hero-mobile-poster {
        display: none !important;
    }
}

/* --- Bottom nav polish (giữ nguyên 5 cột) --- */
@media (max-width: 900px) {
    .mobile-bottom-nav {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s linear;
        will-change: transform;
        backface-visibility: hidden;
        transform: translate3d(0, 0, 0);
        contain: paint;
    }

    .mobile-bottom-link {
        transition: transform 0.15s ease;
    }

    .mobile-bottom-link:active {
        transform: scale(0.88);
    }

    .mobile-bottom-link.is-active {
        position: relative;
    }

    .mobile-bottom-link.is-active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 18px;
        height: 2.5px;
        border-radius: 0 0 3px 3px;
        background: var(--accent, #f5c518);
    }

    .mobile-bottom-link.is-active .mobile-bottom-icon {
        filter: drop-shadow(0 0 6px rgba(245, 197, 24, 0.3));
    }

    /* Hide on scroll down */
    body.mobile-nav-hidden .mobile-bottom-nav {
        transform: translate3d(0, calc(100% + 10px), 0);
        opacity: 0;
        pointer-events: none;
    }
}

/* --- Movie cards polish --- */
@media (max-width: 900px) {
    .movie-carousel {
        scroll-snap-type: x proximity;
        scroll-padding-left: 14px;
    }

    .movie-carousel .movie-card {
        scroll-snap-align: start;
    }

    .movie-card {
        border-radius: 12px;
        transition: transform 0.15s ease;
    }

    .movie-card:active {
        transform: scale(0.97);
    }

    .movie-card .card-poster {
        border-radius: 12px 12px 0 0;
    }

    .movie-card .card-poster img {
        border-radius: 12px 12px 0 0;
    }

    /* Skeleton shimmer */
    .poster-img.is-loading {
        background: linear-gradient(110deg,
                rgba(255, 255, 255, 0.03) 8%,
                rgba(255, 255, 255, 0.07) 18%,
                rgba(255, 255, 255, 0.03) 33%);
        background-size: 200% 100%;
        animation: skeletonShimmer 1.5s ease-in-out infinite;
    }

    @keyframes skeletonShimmer {
        to {
            background-position: -200% 0;
        }
    }

    /* Section titles */
    .section-title,
    .section-divider {
        font-weight: 800;
    }
}

/* --- Top 10 polish --- */
@media (max-width: 900px) {
    .top10-carousel {
        scroll-snap-type: x proximity;
    }

    .top10-carousel .top10-card {
        scroll-snap-align: center;
        border-radius: 14px;
        transition: transform 0.15s ease;
    }

    .top10-carousel .top10-card:active {
        transform: scale(0.97);
    }
}

/* --- Detail page polish --- */
@media (max-width: 900px) {
    .detail-backdrop {
        border-radius: 0 0 18px 18px;
    }

    .detail-backdrop img {
        border-radius: 0 0 18px 18px;
    }

    .detail-header {
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .detail-poster {
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    }

    .detail-actions-row .btn-watch {
        border-radius: 999px;
        transition: transform 0.15s ease;
    }

    .detail-actions-row .btn-watch:active {
        transform: scale(0.97);
    }

    .detail-actions-row .btn-ghost {
        border-radius: 999px;
        transition: transform 0.15s ease;
    }

    .detail-actions-row .btn-ghost:active {
        transform: scale(0.97);
    }

    .ep-btn {
        border-radius: 10px;
        transition: transform 0.12s ease;
    }

    .ep-btn:active {
        transform: scale(0.94);
    }

    .ep-btn.active,
    .ep-btn.watching {
        box-shadow: 0 2px 8px rgba(245, 197, 24, 0.2);
    }
}

/* --- Watch page polish --- */
@media (max-width: 900px) {
    .watch-stat-btn {
        border-radius: 10px;
        transition: transform 0.12s ease;
    }

    .watch-stat-btn:active {
        transform: scale(0.95);
    }

    .server-btn {
        border-radius: 999px;
        transition: transform 0.12s ease;
    }

    .server-btn:active {
        transform: scale(0.94);
    }

    .server-btn.active {
        box-shadow: 0 2px 10px rgba(245, 197, 24, 0.2);
    }

    .watch-side-item {
        border-radius: 12px;
        transition: transform 0.15s ease;
    }

    .watch-side-item:active {
        transform: scale(0.98);
    }
}

/* --- Mobile menu drawer polish --- */
@media (max-width: 900px) {
    .mobile-menu-overlay {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .mobile-menu-drawer {
        border-radius: 0 18px 18px 0;
    }

    .mobile-menu-grid>a,
    .mobile-menu-drop>summary {
        border-radius: 12px;
        transition: transform 0.12s ease;
    }

    .mobile-menu-grid>a:active,
    .mobile-menu-drop>summary:active {
        transform: scale(0.97);
    }

    .mobile-menu-sub a {
        border-radius: 10px;
        transition: transform 0.12s ease;
    }

    .mobile-menu-sub a:active {
        transform: scale(0.95);
    }
}

/* --- Comments polish --- */
@media (max-width: 900px) {
    .comment-form {
        border-radius: 14px;
    }

    .comment-form textarea {
        border-radius: 10px;
    }

    .comment-form textarea:focus {
        border-color: rgba(245, 197, 24, 0.35);
        box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.08);
    }

    .btn-submit {
        border-radius: 999px;
        transition: transform 0.12s ease;
    }

    .btn-submit:active {
        transform: scale(0.96);
    }
}

/* --- Footer polish --- */
@media (max-width: 900px) {
    .site-footer {
        border-radius: 20px 20px 0 0;
    }

    .social-links a {
        border-radius: 10px;
        transition: transform 0.12s ease;
    }

    .social-links a:active {
        transform: scale(0.9);
    }
}

/* --- Auth pages polish --- */
@media (max-width: 900px) {
    .auth-card {
        border-radius: 18px;
    }

    .auth-card input {
        border-radius: 12px;
    }

    .auth-card input:focus {
        border-color: rgba(245, 197, 24, 0.35);
        box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.08);
    }

    .auth-card .btn-primary {
        border-radius: 999px;
    }
}

/* --- Smooth poster fade-in --- */
@media (max-width: 900px) {
    .poster-img {
        transition: opacity 0.4s ease;
    }
}

/* --- GPU acceleration for key mobile elements --- */
@media (max-width: 900px) {

    .hero-bg,
    .hero-bg-next,
    .hero-content,
    .mobile-bottom-nav,
    .mobile-menu-drawer,
    .mobile-menu-overlay {
        will-change: transform, opacity;
    }

    /* Disable hover effects on touch */
    @media (hover: none) {
        .movie-hover-preview {
            display: none !important;
        }
    }
}

/* --- Small phone (≤400px) --- */
@media (max-width: 400px) {
    .hero-actions {
        flex-direction: column;
        max-width: 260px;
    }

    .hero-actions .btn-play {
        width: 100%;
    }
}

/* --- Landscape mobile --- */
@media (max-width: 900px) and (orientation: landscape) {
    .hero-section {
        min-height: 280px;
        height: 75vh;
        max-height: 380px;
    }

    .hero-desc {
        display: none;
    }
}

/* ========== DESKTOP HERO RESTORE (2026.02.26) ========== */
@media (min-width: 901px) {

    #heroSection .hero-poster-carousel,
    #heroSection .hero-dots,
    #heroSection .hero-actions-mobile,
    #heroSection .btn-info-mobile {
        display: none !important;
    }

    #heroSection .hero-thumbs {
        display: flex !important;
        position: absolute !important;
        right: 48px !important;
        bottom: 90px !important;
        gap: 8px !important;
    }

    #heroSection .hero-content {
        position: absolute !important;
        left: 0 !important;
        bottom: 90px !important;
        max-width: 760px !important;
        padding: 0 52px !important;
        text-align: left !important;
        display: block !important;
    }

    #heroSection .hero-title {
        font-size: clamp(42px, 3.6vw, 64px) !important;
        line-height: 1.02 !important;
        margin-bottom: 6px !important;
    }

    #heroSection .hero-origin {
        font-size: clamp(20px, 1.65vw, 28px) !important;
        margin-bottom: 14px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #heroSection .hero-tags {
        justify-content: flex-start !important;
        margin-bottom: 16px !important;
    }

    #heroSection .hero-desc {
        max-width: 740px !important;
        font-size: 16px !important;
        line-height: 1.65 !important;
        margin-bottom: 20px !important;
        -webkit-line-clamp: 2 !important;
    }

    #heroSection .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
    }
}

/* ========== MOBILE HLS EMBED ========== */
.mobile-hls-page {
    margin-top: 60px;
    height: calc(100vh - 60px);
    background: #000;
}

.mobile-hls-page iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

@media (max-width: 900px) {
    body.watch-mobile-active .site-header,
    body.watch-mobile-active .mobile-bottom-nav {
        display: none !important;
    }

    body.watch-mobile-active .mobile-hls-page {
        margin-top: 0;
        height: 100vh;
    }
}

/* ========== DETAIL PAGE V2 DESKTOP REWORK (2026.02.27) ========== */
@media (min-width: 901px) {
    .detail-page-v2 {
        position: relative;
        margin-top: 60px;
    }

    .detail-page-v2 .detail-backdrop {
        height: clamp(420px, 62vh, 700px);
        min-height: 420px;
        overflow: hidden;
    }

    .detail-page-v2 .detail-backdrop::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.55px, transparent 0.65px);
        background-size: 7px 7px;
        mix-blend-mode: soft-light;
        opacity: 0.16;
        pointer-events: none;
    }

    .detail-page-v2 .detail-backdrop-img {
        filter: brightness(0.84) saturate(1.06);
        background-position: 50% 34%;
        transform: scale(1.08);
    }

    .detail-page-v2 .detail-backdrop-overlay {
        background:
            radial-gradient(120% 78% at 50% 0%, rgba(13, 19, 38, 0.03) 0%, rgba(10, 16, 34, 0.24) 60%, rgba(8, 12, 24, 0.6) 100%),
            linear-gradient(to bottom, rgba(8, 12, 24, 0.04) 0%, rgba(8, 12, 24, 0.8) 74%, var(--bg-primary) 100%);
    }

    .detail-page-v2 .dv2-shell {
        max-width: min(1680px, calc(100vw - 28px));
        width: 100%;
        margin: 0 auto;
        padding: 0 clamp(20px, 2.2vw, 38px);
        position: relative;
        z-index: 4;
    }

    .detail-page-v2 .dv2-hero-container {
        max-width: none;
        margin: -170px 0 0;
        padding: 0;
    }

    .detail-page-v2 .dv2-hero-card {
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        backdrop-filter: none;
    }

    .detail-page-v2 .dv2-hero-content {
        display: flex;
        align-items: flex-end;
        gap: 20px;
        padding: 0 4px 10px;
    }

    .detail-page-v2 .dv2-poster-wrap {
        width: clamp(106px, 8.4vw, 148px);
        border-radius: 8px;
        border: 1px solid rgba(220, 232, 255, 0.22);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
        transform: translateY(6px);
        margin-bottom: 0;
    }

    .detail-page-v2 .dv2-hero-actions {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        flex: 1;
        min-width: 0;
        padding-bottom: 14px;
    }

    .detail-page-v2 .dv2-watch-stack {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
    }

    .detail-page-v2 .dv2-btn-watch {
        min-height: 48px;
        padding: 0 28px;
        border-radius: 999px;
        background: linear-gradient(135deg, #f7de86, #f1c65b);
        color: #0f1320;
        border: none;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0.01em;
        box-shadow: 0 8px 22px rgba(245, 206, 108, 0.25);
    }

    .detail-page-v2 .dv2-btn-watch:hover {
        transform: translateY(-1px);
        background: linear-gradient(135deg, #ffe99e, #f5cf73);
    }

    .detail-page-v2 .dv2-hero-action-btns {
        gap: 10px;
        align-items: center;
    }

    .detail-page-v2 .dv2-action-icon {
        min-width: 66px;
        padding: 0;
        background: transparent;
        color: rgba(224, 234, 255, 0.74);
        border: none;
        gap: 6px;
    }

    .detail-page-v2 .dv2-action-icon span {
        font-size: 11px;
        font-weight: 600;
    }

    .detail-page-v2 .dv2-action-icon:hover {
        background: transparent;
        color: #ffffff;
    }

    .detail-page-v2 .dv2-action-icon.active {
        color: var(--accent);
    }

    .detail-page-v2 .dv2-hero-rating-slot {
        margin-left: auto;
        align-self: flex-start;
        flex-shrink: 0;
    }

    .detail-page-v2 .dv2-hero-rating-slot .dv2-rating-badge {
        margin-left: 0;
    }

    .detail-page-v2 .dv2-rating-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 16px;
        border-radius: 999px;
        border: 1px solid rgba(165, 194, 255, 0.52);
        background: linear-gradient(135deg, #2f62f0, #4e84ff);
        color: #f8fbff;
        box-shadow: 0 10px 26px rgba(78, 132, 255, 0.34);
        cursor: pointer;
    }

    .detail-page-v2 .dv2-rating-badge:hover {
        transform: translateY(-1px);
    }

    .detail-page-v2 .dv2-rating-val {
        font-size: 17px;
        font-weight: 800;
        line-height: 1;
    }

    .detail-page-v2 .dv2-rating-label {
        font-size: 10px;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        opacity: 0.95;
        font-weight: 700;
    }

    .detail-page-v2 .dv2-episode-header .dv2-rating-badge {
        display: none;
    }

    .detail-page-v2 .dv2-tabs-container {
        margin: 0;
        padding: 0 0 12px;
        max-width: none;
    }

    .detail-page-v2 .dv2-tabs-nav {
        display: flex;
        gap: 4px;
        align-items: center;
    }

    .detail-page-v2 .dv2-tab {
        padding: 12px 14px;
        font-size: 13px;
        font-weight: 600;
        color: rgba(215, 227, 255, 0.66);
    }

    .detail-page-v2 .dv2-tab.active {
        color: #ffffff;
    }

    .detail-page-v2 .dv2-tab.active::after {
        left: 10px;
        right: 10px;
        height: 2px;
        background: #f0c44f;
    }

    .detail-page-v2 .dv2-tabs-separator {
        background: rgba(210, 225, 255, 0.2);
    }

    .detail-page-v2 .dv2-episode-alert {
        max-width: none;
        margin: 10px 0 0;
        padding: 10px 14px;
        border-radius: 9px;
        border: 1px solid rgba(216, 135, 255, 0.42);
        background: linear-gradient(90deg, rgba(81, 88, 255, 0.38), rgba(224, 82, 202, 0.46));
        color: #f8f1ff;
        font-size: 12px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .detail-page-v2 .dv2-content-container {
        max-width: none;
        margin: 16px 0 0;
        padding: 0;
    }

    .detail-page-v2 .dv2-episode-card {
        background: rgba(11, 18, 36, 0.56);
        border: 1px solid rgba(161, 186, 229, 0.24);
        border-radius: 12px;
        padding: 12px 14px 16px;
    }

    .detail-page-v2 .dv2-episode-header {
        margin-bottom: 12px;
        padding: 0;
        gap: 12px;
        align-items: center;
    }

    .detail-page-v2 .dv2-episode-part {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        color: #edf2ff;
        font-size: 15px;
        font-weight: 700;
    }

    .detail-page-v2 .dv2-episode-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .detail-page-v2 .dv2-server-btn {
        padding: 6px 11px;
        border-radius: 6px;
        border: 1px solid rgba(165, 189, 227, 0.24);
        background: rgba(212, 225, 255, 0.08);
        color: rgba(218, 230, 255, 0.78);
        font-size: 11px;
        font-weight: 600;
    }

    .detail-page-v2 .dv2-server-btn:hover {
        background: rgba(212, 225, 255, 0.15);
        color: #ffffff;
    }

    .detail-page-v2 .dv2-server-btn.active {
        background: #f0c44f;
        color: #10131c;
        border-color: #f0c44f;
    }

    .detail-page-v2 .dv2-episode-options {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .detail-page-v2 .dv2-ep-opt {
        padding: 6px 10px;
        border-radius: 6px;
        border: 1px solid rgba(165, 189, 227, 0.18);
        background: rgba(211, 225, 255, 0.06);
        color: rgba(216, 230, 255, 0.62);
        font-size: 11px;
        font-weight: 600;
    }

    .detail-page-v2 .dv2-ep-opt.active {
        color: #f7d979;
        border-color: rgba(240, 196, 79, 0.55);
        background: rgba(240, 196, 79, 0.18);
    }

    .detail-page-v2 .dv2-episode-collapse {
        margin-left: 4px;
        border: none;
        background: transparent;
        color: rgba(216, 230, 255, 0.58);
        font-size: 11px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .detail-page-v2 .dv2-episode-collapse:hover {
        color: #ffffff;
    }

    .detail-page-v2 .dv2-episode-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
        gap: 8px;
        padding-bottom: 0;
    }

    .detail-page-v2 .dv2-ep-btn {
        min-width: 0;
        padding: 9px 8px;
        border-radius: 7px;
        border: 1px solid rgba(165, 189, 227, 0.22);
        background: rgba(213, 225, 255, 0.08);
        color: #eaf1ff;
        font-size: 12px;
        font-weight: 600;
        text-align: center;
    }

    .detail-page-v2 .dv2-ep-btn:hover {
        background: rgba(213, 225, 255, 0.18);
        border-color: rgba(165, 189, 227, 0.4);
    }

    .detail-page-v2 .dv2-ep-btn.active {
        background: rgba(240, 196, 79, 0.95);
        color: #0f1320;
        border-color: rgba(240, 196, 79, 0.95);
        font-weight: 700;
    }

    .detail-page-v2 .dv2-empty-state {
        color: var(--text-muted);
        font-size: 13px;
        padding: 12px 2px;
    }

    .detail-page-v2 .dv2-two-col {
        max-width: none;
        margin: 20px 0 0;
        padding: 0 0 54px;
        display: grid;
        grid-template-columns: minmax(220px, 292px) minmax(0, 1fr);
        gap: 24px;
    }

    .detail-page-v2 .dv2-info-col {
        max-width: none;
        min-width: 0;
    }

    .detail-page-v2 .dv2-movie-title {
        font-size: clamp(34px, 2.3vw, 44px);
        line-height: 1.08;
        margin-bottom: 4px;
        color: #ffffff;
        letter-spacing: -0.01em;
    }

    .detail-page-v2 .dv2-movie-origin {
        margin-bottom: 12px;
        color: #f2cf73;
        font-size: 14px;
        font-style: italic;
    }

    .detail-page-v2 .dv2-movie-tags {
        margin-bottom: 10px;
        gap: 6px;
    }

    .detail-page-v2 .dv2-tag-pill {
        border-radius: 4px;
        border: 1px solid rgba(165, 189, 227, 0.36);
        background: rgba(212, 224, 255, 0.08);
        color: rgba(220, 232, 255, 0.84);
        padding: 3px 8px;
        font-size: 10px;
        letter-spacing: 0.01em;
    }

    .detail-page-v2 .dv2-tag-pill.accent {
        border-color: rgba(240, 196, 79, 0.54);
        background: rgba(240, 196, 79, 0.16);
        color: #f8da8d;
    }

    .detail-page-v2 .dv2-genre-row {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        margin-bottom: 12px;
    }

    .detail-page-v2 .dv2-genre-row .genre-tag {
        border: 1px solid rgba(166, 188, 224, 0.3);
        background: rgba(212, 224, 255, 0.08);
        color: rgba(214, 227, 255, 0.84);
        padding: 5px 11px;
        border-radius: 999px;
        font-size: 11px;
    }

    .detail-page-v2 .dv2-inline-actions {
        gap: 8px;
        margin-bottom: 18px;
        font-size: 12px;
    }

    .detail-page-v2 .dv2-link-fav,
    .detail-page-v2 .dv2-link-rate {
        color: rgba(214, 228, 255, 0.72);
    }

    .detail-page-v2 .dv2-link-fav:hover,
    .detail-page-v2 .dv2-link-rate:hover {
        color: #f3cf76;
    }

    .detail-page-v2 .dv2-info-section {
        margin-bottom: 18px;
    }

    .detail-page-v2 .dv2-section-label {
        margin: 0 0 8px;
        font-size: 16px;
        color: #f6f8ff;
    }

    .detail-page-v2 .dv2-desc {
        color: rgba(219, 230, 255, 0.72);
        font-size: 13px;
        line-height: 1.75;
    }

    .detail-page-v2 .dv2-meta-list {
        margin: 16px 0 24px;
        font-size: 13px;
    }

    .detail-page-v2 .dv2-meta-row {
        color: rgba(211, 225, 255, 0.76);
    }

    .detail-page-v2 .dv2-meta-label {
        color: rgba(162, 179, 214, 0.9);
    }

    .detail-page-v2 .dv2-cast-section {
        margin-bottom: 24px;
        padding-top: 16px;
        border-top: 1px solid rgba(164, 186, 227, 0.24);
    }

    .detail-page-v2 .dv2-cast-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .detail-page-v2 .dv2-cast-avatar {
        width: 56px;
        height: 56px;
        border: 1px solid rgba(182, 204, 242, 0.36);
        background: rgba(211, 225, 255, 0.08);
    }

    .detail-page-v2 .dv2-cast-name {
        max-width: 74px;
        font-size: 11px;
        color: rgba(220, 232, 255, 0.8);
    }

    .detail-page-v2 .detail-sidebar {
        margin-top: 20px;
        display: block;
    }

    .detail-page-v2 .sidebar-widget {
        background: rgba(10, 17, 34, 0.7);
        border: 1px solid rgba(165, 189, 227, 0.22);
        border-radius: 12px;
        padding: 12px;
    }

    .detail-page-v2 .sidebar-title {
        margin-bottom: 10px;
        color: #f5f8ff;
        font-size: 18px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .detail-page-v2 .sidebar-item {
        gap: 8px;
        align-items: center;
        padding: 7px 0;
        border-bottom: 1px solid rgba(164, 186, 227, 0.14);
    }

    .detail-page-v2 .sidebar-rank {
        width: 26px;
        font-size: 42px;
        font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
        font-weight: 800;
        line-height: 0.88;
        color: transparent;
        -webkit-text-stroke: 1.3px rgba(226, 236, 255, 0.9);
        text-align: left;
    }

    .detail-page-v2 .sidebar-thumb {
        width: 44px;
        height: 58px;
        border-radius: 6px;
        border: 1px solid rgba(167, 189, 227, 0.26);
    }

    .detail-page-v2 .sidebar-name {
        font-size: 12px;
        color: #f4f8ff;
        font-weight: 600;
    }

    .detail-page-v2 .sidebar-origin {
        font-size: 10px;
        color: #9eb2d9;
    }

    .detail-page-v2 .sidebar-meta {
        font-size: 10px;
        color: #8094bc;
    }

    .detail-page-v2 .dv2-comments-col {
        min-width: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        max-height: none;
        overflow: visible;
    }

    .detail-page-v2 .dv2-comments-col .comments-section {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .detail-page-v2 .dv2-comments-col .comments-header {
        margin-bottom: 14px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(165, 189, 227, 0.22);
    }

    .detail-page-v2 .dv2-comments-col .comments-title {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.01em;
        color: #f6f9ff;
    }

    .detail-page-v2 .dv2-comments-col .comments-count {
        font-size: 13px;
        color: rgba(191, 206, 238, 0.9);
    }

    .detail-page-v2 .dv2-comments-col .comment-form {
        margin-bottom: 14px;
        padding: 14px;
        border-radius: 12px;
        border: 1px solid rgba(165, 189, 227, 0.24);
        background: rgba(11, 18, 36, 0.62);
    }

    .detail-page-v2 .dv2-comments-col .comment-form textarea {
        min-height: 88px;
        border-radius: 10px;
        border-color: rgba(165, 189, 227, 0.22);
        background: rgba(7, 13, 27, 0.76);
        color: #edf3ff;
    }

    .detail-page-v2 .dv2-comments-col .comment-form textarea:focus {
        border-color: rgba(240, 196, 79, 0.62);
        box-shadow: 0 0 0 2px rgba(240, 196, 79, 0.18);
    }

    .detail-page-v2 .dv2-comments-col .comment-form input[type="text"],
    .detail-page-v2 .dv2-comments-col .comment-form input[type="email"] {
        border-color: rgba(165, 189, 227, 0.22);
        background: rgba(7, 13, 27, 0.7);
    }

    .detail-page-v2 .dv2-comments-col .btn-submit {
        border-radius: 8px;
        padding: 8px 16px;
        font-size: 12px;
        font-weight: 700;
    }

    .detail-page-v2 .dv2-comments-col .comment-note,
    .detail-page-v2 .dv2-comments-col .spoiler-check,
    .detail-page-v2 .dv2-comments-col .comment-counter {
        color: #98aacd;
    }

    .detail-page-v2 .dv2-comments-col .comment-item {
        padding: 14px 0;
        border-bottom: 1px solid rgba(165, 189, 227, 0.14);
    }

    .detail-page-v2 .dv2-comments-col .comment-avatar {
        width: 42px;
        height: 42px;
    }

    .detail-page-v2 .dv2-comments-col .comment-author-name {
        font-size: 13px;
    }

    .detail-page-v2 .dv2-comments-col .comment-time {
        color: #93a7cf;
    }

    .detail-page-v2 .dv2-comments-col .comment-text {
        margin: 4px 0 8px;
        color: #d2ddf7;
        font-size: 13px;
    }

    .detail-page-v2 .dv2-comments-col .comment-action-btn {
        color: #98aacd;
        font-size: 11px;
    }

    .detail-page-v2 .dv2-comments-col .comment-action-btn:hover {
        color: #f1cf73;
    }

    .detail-page-v2 .dv2-alt-panel {
        margin-top: 22px;
        padding: 22px;
        border-radius: 12px;
        border: 1px solid rgba(165, 189, 227, 0.2);
        background: rgba(11, 18, 36, 0.54);
    }

    .detail-page-v2 .dv2-alt-panel p {
        color: var(--text-muted);
        margin: 0;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .detail-page-v2 .dv2-shell {
        padding: 0 clamp(16px, 2vw, 24px);
    }

    .detail-page-v2 .dv2-two-col {
        grid-template-columns: minmax(208px, 268px) minmax(0, 1fr);
        gap: 18px;
    }

    .detail-page-v2 .dv2-watch-stack {
        gap: 12px;
    }

    .detail-page-v2 .dv2-comments-col .comments-title {
        font-size: 24px;
    }
}

/* ========== DETAIL PAGE V2 DESKTOP TUNE (PASS 3) ========== */
@media (min-width: 901px) {
    .detail-page-v2 .detail-backdrop {
        height: clamp(430px, 62vh, 720px);
    }

    .detail-page-v2 .detail-backdrop-img {
        background-position: 50% 26%;
        transform: scale(1.1);
        filter: brightness(0.82) saturate(1.05);
    }

    .detail-page-v2 .dv2-hero-container {
        margin-top: -168px;
    }

    .detail-page-v2 .dv2-hero-card {
        background: linear-gradient(180deg, rgba(11, 18, 34, 0.88) 0%, rgba(8, 14, 28, 0.9) 100%);
        border: 1px solid rgba(161, 186, 229, 0.24);
        border-radius: 18px;
        box-shadow: 0 18px 50px rgba(4, 8, 18, 0.4);
        padding: 0 20px;
    }

    .detail-page-v2 .dv2-hero-content {
        padding: 10px 0 8px;
        gap: 12px;
    }

    .detail-page-v2 .dv2-hero-actions {
        padding-bottom: 0;
        align-items: flex-start;
    }

    .detail-page-v2 .dv2-hero-rating-slot {
        align-self: flex-start;
    }

    .detail-page-v2 .dv2-watch-stack {
        gap: 16px;
    }

    .detail-page-v2 .dv2-tabs-container {
        padding: 0 0 10px;
    }

    .detail-page-v2 .dv2-main-layout {
        display: grid;
        grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
        gap: 24px;
        margin-top: -152px;
        padding-bottom: 56px;
        align-items: start;
    }

    .detail-page-v2 .dv2-main-stack {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .detail-page-v2 .dv2-main-stack>.dv2-alt-panel {
        margin-top: 0;
    }

    .detail-page-v2 .dv2-main-col {
        min-width: 0;
    }

    .detail-page-v2 .dv2-main-col .dv2-content-container {
        margin-top: 0;
        padding: 0;
    }

    .detail-page-v2 .dv2-main-col .dv2-episode-alert {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .detail-page-v2 .dv2-main-col .dv2-episode-card {
        border-radius: 14px;
        padding: 16px 18px 20px;
    }

    .detail-page-v2 .dv2-main-col .dv2-episode-header {
        gap: 14px;
        margin-bottom: 14px;
    }

    .detail-page-v2 .dv2-main-col .dv2-episode-part {
        font-size: 18px;
        font-weight: 700;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .detail-page-v2 .dv2-main-col .dv2-server-btn {
        padding: 10px 16px;
        min-height: 44px;
        border-radius: 10px;
        font-size: 14px;
    }

    .detail-page-v2 .dv2-main-col .dv2-ep-opt {
        padding: 10px 14px;
        min-height: 44px;
        border-radius: 10px;
        font-size: 14px;
    }

    .detail-page-v2 .dv2-main-col .dv2-episode-collapse {
        min-height: 44px;
        font-size: 14px;
        padding: 0 6px;
    }

    .detail-page-v2 .dv2-main-col .dv2-episode-grid {
        grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
        gap: 10px;
    }

    .detail-page-v2 .dv2-main-col .dv2-ep-btn {
        min-height: 52px;
        padding: 12px 10px;
        border-radius: 10px;
        font-size: 16px;
    }

    .detail-page-v2 .dv2-poster-side {
        width: clamp(180px, 14vw, 250px);
        max-width: 100%;
        transform: none;
        margin: 0 0 20px;
        border-radius: 12px;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
    }

    .detail-page-v2 .dv2-info-col {
        max-width: none;
        min-width: 0;
        padding-right: 4px;
        margin-top: 0;
    }

    .detail-page-v2 .dv2-movie-title {
        font-size: clamp(20px, 1.45vw, 30px);
        line-height: 1.16;
        letter-spacing: -0.01em;
        margin-bottom: 6px;
    }

    .detail-page-v2 .dv2-movie-origin {
        font-size: 14px;
        line-height: 1.22;
        margin-bottom: 12px;
        color: #f2cf73;
        font-weight: 600;
        font-style: italic;
    }

    .detail-page-v2 .dv2-meta-list {
        margin-bottom: 24px;
    }

    .detail-page-v2 .detail-sidebar {
        margin-top: 28px;
    }

    .detail-page-v2 .sidebar-widget {
        padding: 16px;
        border-radius: 14px;
    }

    .detail-page-v2 .sidebar-title {
        font-size: 28px;
        line-height: 1.08;
        margin-bottom: 14px;
    }

    .detail-page-v2 .sidebar-item {
        display: grid;
        grid-template-columns: 48px 82px minmax(0, 1fr);
        gap: 12px;
        padding: 11px 10px;
        margin-bottom: 10px;
        border-radius: 12px;
        border-bottom: none;
        background: rgba(255, 255, 255, 0.035);
    }

    .detail-page-v2 .sidebar-item:last-child {
        margin-bottom: 0;
    }

    .detail-page-v2 .sidebar-rank {
        width: auto;
        text-align: center;
        font-size: 66px;
        line-height: 0.83;
        -webkit-text-stroke: 1.4px rgba(226, 236, 255, 0.94);
    }

    .detail-page-v2 .sidebar-thumb {
        width: 82px;
        height: 112px;
        border-radius: 10px;
    }

    .detail-page-v2 .sidebar-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 18px;
        line-height: 1.24;
        margin-bottom: 2px;
    }

    .detail-page-v2 .sidebar-origin {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
        line-height: 1.22;
    }

    .detail-page-v2 .sidebar-meta {
        font-size: 13px;
        margin-top: 5px;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .detail-page-v2 .dv2-main-layout {
        grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
        gap: 18px;
        margin-top: -140px;
    }

    .detail-page-v2 .dv2-info-col {
        margin-top: 0;
    }

    .detail-page-v2 .dv2-poster-side {
        width: clamp(160px, 18vw, 212px);
        margin: 0 0 18px;
    }

    .detail-page-v2 .dv2-movie-title {
        font-size: clamp(18px, 2vw, 24px);
    }

    .detail-page-v2 .dv2-movie-origin {
        font-size: clamp(13px, 1.35vw, 16px);
    }

    .detail-page-v2 .sidebar-title {
        font-size: 24px;
    }

    .detail-page-v2 .sidebar-item {
        grid-template-columns: 40px 70px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 8px;
    }

    .detail-page-v2 .sidebar-rank {
        font-size: 54px;
    }

    .detail-page-v2 .sidebar-thumb {
        width: 70px;
        height: 98px;
    }

    .detail-page-v2 .sidebar-name {
        font-size: 16px;
    }

    .detail-page-v2 .sidebar-origin {
        font-size: 13px;
    }

    .detail-page-v2 .sidebar-meta {
        font-size: 13px;
    }
}

/* ========== MOBILE MODAL HOTFIX (2026.03) ========== */
.modal-close {
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 900px) {
    .modal-overlay {
        padding: 14px;
    }

    #shareModal .modal-box,
    #ratingModal .modal-box,
    #donateModal .modal-box {
        width: min(94vw, 420px);
        max-width: 420px;
        max-height: min(88vh, 640px);
        overflow-y: auto;
        padding: 22px 16px 16px;
        border-radius: 14px;
    }

    #shareModal .share-options {
        margin-top: 12px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #shareModal .share-btn {
        min-width: 0;
        min-height: 74px;
        padding: 10px 8px;
        border-radius: 10px;
        font-size: 12px;
        justify-content: center;
    }

    #shareModal .share-btn .icon {
        font-size: 22px;
    }

    #ratingModal .rating-value {
        font-size: 52px;
        line-height: 1;
        margin-bottom: 10px;
    }

    #ratingModal .rating-stars {
        margin: 10px 0 14px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px 6px;
        justify-items: center;
        align-items: center;
    }

    #ratingModal .rating-star {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 34px;
        font-size: 30px;
        line-height: 1;
    }

    #ratingModal #submitRatingBtn {
        min-height: 46px;
        font-size: 15px;
    }
}

/* ========== DEVICE LOCK: DESKTOP/TABLET KEEP DESKTOP UI ========== */
body:is(.desktop-mode, .tablet-mode, .tv-mode) {
    --page-max: min(1960px, calc(100vw - 8px));
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) #app {
    padding-bottom: 0 !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .mobile-menu-toggle,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .mobile-head-actions,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .mobile-menu-overlay,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .mobile-menu-drawer,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .mobile-bottom-nav {
    display: none !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-inner {
    max-width: var(--page-max);
    height: 76px !important;
    padding: 0 clamp(14px, 1.45vw, 24px) !important;
    gap: 14px !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-nav {
    display: flex !important;
    align-items: center;
    gap: 1px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-nav::-webkit-scrollbar {
    display: none;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-search {
    display: block !important;
    position: relative !important;
    flex: 0 0 clamp(220px, 30vw, 420px);
    max-width: clamp(220px, 30vw, 420px);
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-actions {
    display: flex !important;
    margin-left: auto;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-poster-carousel,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-dots,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-actions-mobile,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .btn-info-mobile,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-mobile-poster {
    display: none !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-actions-desktop {
    display: flex !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-thumbs {
    display: flex !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-section {
    margin-top: 76px !important;
    height: 78vh !important;
    min-height: 520px !important;
    max-height: 700px !important;
    border-radius: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .watch-page,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .detail-page,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .list-page {
    margin-top: 76px !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .main-content,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .filter-section,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .detail-container,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .watch-layout,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .list-container,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .site-footer,
body:is(.desktop-mode, .tablet-mode, .tv-mode) .breadcrumb {
    padding-left: clamp(14px, 1.45vw, 24px) !important;
    padding-right: clamp(14px, 1.45vw, 24px) !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .watch-layout {
    grid-template-columns: minmax(0, 1fr) clamp(250px, 30vw, 340px) !important;
    gap: 22px !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .detail-layout {
    grid-template-columns: minmax(0, 1fr) clamp(250px, 30vw, 340px) !important;
    gap: 22px !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .watch-sidebar {
    display: block !important;
    position: sticky !important;
    top: 96px !important;
    order: unset !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .detail-sidebar {
    display: block !important;
    order: unset !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .watch-info {
    flex-direction: row !important;
    align-items: flex-start !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .watch-stats {
    align-items: flex-end !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .toolbar-btn.report {
    margin-left: auto !important;
}

/* ========== MOBILE HOME REBUILD (2026.03) ========== */
@media (max-width: 900px) {
    :root {
        --mobile-header-h: 58px;
        --mobile-dock-h: 82px;
        --cap-statusbar-fallback: 32px;
        --safe-top-inset: env(safe-area-inset-top);
        --mobile-header-total-h: calc(var(--mobile-header-h) + var(--safe-top-inset));
    }

    html.capacitor-android.cap-statusbar-overlay {
        --safe-top-inset: max(env(safe-area-inset-top), var(--cap-statusbar-fallback));
    }

    html.capacitor-android.cap-statusbar-nooverlay {
        --safe-top-inset: env(safe-area-inset-top);
    }

    body.mobile-mode {
        background:
            radial-gradient(1200px 420px at 50% -14%, rgba(74, 102, 184, 0.2), transparent 68%),
            linear-gradient(180deg, #0a0f1f 0%, #0a142a 52%, #091327 100%) !important;
        color: #eef3ff;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        overflow-x: hidden;
    }

    body.mobile-mode #app {
        min-height: 100vh;
        padding-bottom: calc(var(--mobile-dock-h) + env(safe-area-inset-bottom) + 10px) !important;
    }

    body.mobile-mode .site-header {
        padding-top: var(--safe-top-inset);
        background: linear-gradient(180deg, rgba(7, 12, 24, 0.95), rgba(7, 12, 24, 0.84)) !important;
        border-bottom: 1px solid rgba(158, 179, 224, 0.2) !important;
        box-shadow: 0 10px 28px rgba(1, 4, 12, 0.45);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    body.mobile-mode .header-inner {
        height: var(--mobile-header-h) !important;
        gap: 8px !important;
        padding: 0 10px !important;
        max-width: none !important;
    }

    body.mobile-mode .mobile-menu-toggle,
    body.mobile-mode .header-nav,
    body.mobile-mode .header-actions {
        display: none !important;
    }

    body.mobile-mode .header-inner .logo {
        min-width: 0;
        flex: 1 1 auto;
        gap: 8px;
    }

    body.mobile-mode .header-inner .logo-icon {
        width: 34px;
        height: 34px;
        box-shadow: 0 6px 16px rgba(245, 208, 103, 0.24);
    }

    body.mobile-mode .header-inner .logo-ring {
        inset: 4px;
    }

    body.mobile-mode .header-inner .logo-play {
        border-top-width: 6px;
        border-bottom-width: 6px;
        border-left-width: 9px;
    }

    body.mobile-mode .header-inner .logo-text {
        font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
        font-size: clamp(16px, 6.1vw, 26px);
        line-height: 1;
        letter-spacing: -0.03em;
    }

    body.mobile-mode .header-inner .logo-sub {
        display: block;
        margin-top: 1px;
        font-size: 9px;
        color: #a8b4cf;
        line-height: 1.2;
    }

    body.mobile-mode .mobile-head-actions {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    body.mobile-mode .mobile-head-btn {
        width: 38px;
        height: 38px;
        border-radius: 999px;
        border: 1px solid rgba(179, 199, 239, 0.34);
        background: rgba(18, 30, 62, 0.58);
        color: #f4f8ff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        position: relative;
        transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    }

    body.mobile-mode .mobile-head-btn:active {
        transform: scale(0.94);
    }

    body.mobile-mode .mobile-head-btn .ui-icon {
        width: 19px;
        height: 19px;
    }

    body.mobile-mode .mobile-head-btn.has-unread {
        border-color: rgba(245, 208, 103, 0.64);
        background: rgba(24, 39, 74, 0.78);
    }

    body.mobile-mode .mobile-head-badge {
        position: absolute;
        top: -4px;
        right: -5px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        border: 1px solid rgba(7, 12, 24, 0.9);
        background: #ef4444;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
    }

    body.mobile-mode .header-search {
        display: none !important;
        position: fixed !important;
        top: calc(var(--mobile-header-total-h) + 8px) !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
        z-index: 1400;
        border-radius: 14px;
        border: 1px solid rgba(174, 194, 236, 0.24);
        background: rgba(8, 15, 33, 0.96);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    }

    body.mobile-mode.mobile-search-open .header-search {
        display: flex !important;
    }

    body.mobile-mode.mobile-search-open .header-search input {
        min-height: 48px;
        padding: 11px 14px 11px 42px;
        font-size: 14px;
        border-radius: 14px;
        background: transparent;
        border: 0;
    }

    body.mobile-mode.mobile-search-open .header-search .search-icon {
        left: 14px;
        color: #cedaf5;
    }

    body.mobile-mode.mobile-search-open .search-suggest {
        top: calc(100% + 8px);
        border-radius: 14px;
        border: 1px solid rgba(174, 194, 236, 0.2);
        background: linear-gradient(180deg, rgba(14, 24, 49, 0.98), rgba(10, 18, 36, 0.98));
    }

    body.mobile-mode .hero-section {
        margin-top: var(--mobile-header-total-h) !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 0 0 30px 30px;
        overflow: hidden;
        padding: 90px 0 18px;
        background: #091327;
        position: relative;
    }

    body.mobile-mode .hero-bg,
    body.mobile-mode .hero-bg-next {
        filter: brightness(0.45) blur(14px) saturate(1.1) !important;
        transform: scale(1.18);
        transform-origin: center;
    }

    body.mobile-mode .hero-overlay {
        background:
            radial-gradient(circle at 50% 22%, rgba(255, 214, 132, 0.14), transparent 44%),
            linear-gradient(180deg, rgba(8, 13, 27, 0.52) 0%, rgba(8, 13, 27, 0.8) 44%, rgba(8, 13, 27, 0.95) 100%) !important;
    }

    body.mobile-mode .hero-bottom-fade {
        height: 180px;
        background: linear-gradient(to top, rgba(9, 19, 39, 1), rgba(9, 19, 39, 0.12));
    }

    body.mobile-mode .mobile-home-tabs {
        position: absolute;
        top: 14px;
        left: 12px;
        right: 12px;
        z-index: 8;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        touch-action: pan-x pan-y;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    body.mobile-mode .mobile-home-tabs::-webkit-scrollbar {
        display: none;
    }

    body.mobile-mode .mobile-home-tab {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0 18px;
        border-radius: 999px;
        border: 1px solid rgba(234, 242, 255, 0.56);
        background: rgba(14, 22, 44, 0.35);
        color: #f2f6ff;
        font-size: 15px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        white-space: nowrap;
    }

    body.mobile-mode .mobile-home-tab.is-active {
        background: #ffffff;
        color: #141b2f;
        border-color: rgba(255, 255, 255, 0.9);
    }

    body.mobile-mode .mobile-home-tab-toggle {
        font-family: inherit;
        cursor: pointer;
    }

    body.mobile-mode .hero-poster-carousel {
        padding: 0 30vw 8px;
        gap: 12px;
        align-items: center;
        touch-action: pan-x pan-y;
    }

    body.mobile-mode .hero-poster-card {
        width: min(56vw, 244px);
        border-radius: 28px;
        border: 3px solid rgba(234, 244, 255, 0.66);
        opacity: 0.46;
        transform: translateY(16px) scale(0.78) rotate(-8deg);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
        overflow: hidden;
        touch-action: pan-x pan-y;
        transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
    }

    body.mobile-mode .hero-poster-card:nth-child(2n) {
        transform: translateY(16px) scale(0.78) rotate(8deg);
    }

    body.mobile-mode .hero-poster-card.active {
        opacity: 1;
        border-color: rgba(255, 255, 255, 0.92);
        transform: translateY(0) scale(1) rotate(0);
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46);
    }

    body.mobile-mode .hero-poster-card img {
        border-radius: inherit;
    }

    body.mobile-mode .hero-content {
        position: relative;
        left: auto;
        bottom: auto;
        max-width: none;
        padding: 8px 18px 0;
        text-align: center;
        transform: none !important;
    }

    body.mobile-mode .hero-title {
        font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
        font-size: clamp(28px, 9vw, 46px);
        line-height: 1.14;
        letter-spacing: -0.02em;
        margin-bottom: 4px;
        text-align: center;
    }

    body.mobile-mode .hero-origin {
        margin-bottom: 14px;
        color: rgba(222, 230, 246, 0.86);
        font-size: clamp(15px, 4.8vw, 24px);
        text-align: center;
    }

    body.mobile-mode .hero-actions-mobile {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: min(760px, 100%);
        margin: 0 auto 14px;
    }

    body.mobile-mode .hero-actions-mobile .btn-play,
    body.mobile-mode .hero-actions-mobile .btn-info-mobile {
        min-height: 56px;
        border-radius: 16px;
        font-size: clamp(15px, 4.6vw, 22px);
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 12px;
    }

    body.mobile-mode .hero-actions-mobile .btn-play {
        border: 1px solid rgba(255, 232, 170, 0.85);
        background: linear-gradient(135deg, #f7e7b0, #f3d981);
        color: #101827;
        box-shadow: none;
        transform: none;
    }

    body.mobile-mode .hero-actions-mobile .btn-info-mobile {
        border: 1px solid rgba(238, 245, 255, 0.86);
        background: linear-gradient(180deg, #ffffff, #f0f2f6);
        color: #101827;
    }

    body.mobile-mode .hero-tags {
        justify-content: center;
        gap: 8px;
        margin: 0 auto 10px;
        max-width: 100%;
    }

    body.mobile-mode .hero-tag {
        min-height: 32px;
        border-radius: 12px;
        padding: 0 12px;
        font-size: 13px;
        font-weight: 700;
        border-color: rgba(231, 239, 255, 0.34);
        background: rgba(20, 32, 60, 0.55);
        color: #eaf0fc;
    }

    body.mobile-mode .hero-tag.imdb {
        background: rgba(245, 208, 103, 0.2);
        color: #f5d067;
        border-color: rgba(245, 208, 103, 0.72);
    }

    body.mobile-mode .hero-desc {
        max-width: 92%;
        margin: 0 auto 10px;
        font-size: 13px;
        line-height: 1.55;
        color: rgba(225, 234, 249, 0.84);
        -webkit-line-clamp: 2;
        text-align: center;
    }

    body.mobile-mode .hero-dots {
        gap: 10px;
        padding: 8px 0 4px;
    }

    body.mobile-mode .hero-dot {
        width: 12px;
        height: 12px;
        border-radius: 999px;
        background: rgba(226, 236, 255, 0.35);
    }

    body.mobile-mode .hero-dot.active {
        width: 44px;
        background: #f1f5ff;
    }

    body.mobile-mode .hero-thumbs {
        display: none !important;
    }

    body.mobile-mode .main-content {
        max-width: none;
        padding: 10px 0 24px !important;
    }

    body.mobile-mode .filter-section {
        max-width: none;
        padding: 16px 14px 8px !important;
    }

    body.mobile-mode .filter-title {
        font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
        font-size: clamp(36px, 7.7vw, 46px);
        margin-bottom: 12px;
        line-height: 1.06;
    }

    body.mobile-mode .filter-chips {
        gap: 10px;
        padding-bottom: 4px;
    }

    body.mobile-mode .filter-chip {
        min-width: min(46vw, 220px);
        min-height: 116px;
        border-radius: 16px;
        border: 1px solid rgba(162, 182, 226, 0.22);
        box-shadow: none;
    }

    body.mobile-mode .movie-section {
        margin-bottom: 22px;
        padding: 0 14px;
    }

    body.mobile-mode .section-header {
        margin-bottom: 10px;
        align-items: center;
    }

    body.mobile-mode .section-title {
        font-family: 'Sora', 'Be Vietnam Pro', sans-serif;
        font-size: clamp(24px, 7vw, 38px);
        letter-spacing: -0.02em;
    }

    body.mobile-mode .section-link {
        min-width: 30px;
        justify-content: flex-end;
        font-size: 0;
        color: rgba(245, 248, 255, 0.92);
    }

    body.mobile-mode .section-link::before {
        content: '›';
        font-size: 44px;
        line-height: 0.76;
    }

    body.mobile-mode .carousel-btn {
        display: none !important;
    }

    body.mobile-mode .movie-carousel {
        gap: 12px;
        padding-bottom: 2px;
    }

    body.mobile-mode .movie-carousel .movie-card {
        width: min(39vw, 178px);
        transition: none;
    }

    body.mobile-mode .movie-card:hover,
    body.mobile-mode .movie-card:hover .movie-poster img {
        transform: none !important;
        filter: none !important;
    }

    body.mobile-mode .movie-poster {
        border-radius: 16px;
        border: 1px solid rgba(176, 196, 236, 0.24);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.36);
    }

    body.mobile-mode .movie-card .poster-badges {
        left: 8px;
        right: auto;
        bottom: 8px;
        gap: 6px;
    }

    body.mobile-mode .movie-card .badge {
        border-radius: 999px;
        min-height: 23px;
        padding: 0 9px;
        font-size: 12px;
    }

    body.mobile-mode .movie-name {
        font-size: 16px;
        margin-top: 2px;
    }

    body.mobile-mode .movie-origin {
        font-size: 12px;
        color: #99a9cc;
    }

    body.mobile-mode .top10-section {
        margin: 0 14px 22px;
        padding: 14px 12px 14px;
        border-radius: 26px;
        border: 1px solid rgba(173, 195, 239, 0.16);
        background: linear-gradient(180deg, rgba(18, 31, 63, 0.9), rgba(11, 21, 43, 0.92));
    }

    body.mobile-mode .top10-section .section-header {
        margin-bottom: 12px;
    }

    body.mobile-mode .top10-carousel {
        gap: 10px;
        padding: 2px 0 4px;
    }

    body.mobile-mode .top10-carousel .top10-card {
        width: min(56vw, 230px);
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }

    body.mobile-mode .top10-card:hover,
    body.mobile-mode .top10-card:hover .top10-poster img {
        transform: none !important;
    }

    body.mobile-mode .top10-poster-shell,
    body.mobile-mode .top10-poster {
        border-radius: 14px;
    }

    body.mobile-mode .top10-rank {
        font-size: 52px;
        min-width: 22px;
    }

    body.mobile-mode .top10-name {
        font-size: 18px;
    }

    body.mobile-mode .top10-subtitle {
        font-size: 12px;
    }

    body.mobile-mode .top10-extra {
        font-size: 11px;
    }

    body.mobile-mode .mobile-spotlight-section {
        margin: 0 14px 24px;
    }

    body.mobile-mode .mobile-spotlight-card {
        position: relative;
        border-radius: 24px;
        overflow: hidden;
        border: 1px solid rgba(174, 195, 236, 0.2);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
    }

    body.mobile-mode .mobile-spotlight-card img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    body.mobile-mode .mobile-spotlight-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(9, 17, 36, 0.08), rgba(9, 17, 36, 0.28));
        pointer-events: none;
    }

    body.mobile-mode .mobile-spotlight-actions {
        margin-top: 12px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.mobile-mode .mobile-spotlight-btn {
        min-height: 56px;
        border-radius: 16px;
        border: 1px solid rgba(231, 239, 255, 0.74);
        background: linear-gradient(180deg, #ffffff, #eff2f7);
        color: #111827;
        font-size: 16px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    body.mobile-mode .mobile-spotlight-btn-primary {
        background: linear-gradient(135deg, #f7e7b1, #f3d97f);
        border-color: rgba(255, 233, 166, 0.84);
    }

    body.mobile-mode .mobile-spotlight-meta {
        margin-top: 10px;
        color: #edf3ff;
    }

    body.mobile-mode .mobile-spotlight-meta h3 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 3px;
    }

    body.mobile-mode .mobile-spotlight-meta p {
        font-size: 14px;
        color: #a8b5d1;
    }

    body.mobile-mode .site-footer {
        display: none;
    }

    body.mobile-mode .mobile-bottom-nav {
        position: fixed;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1300;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        align-items: stretch;
        height: calc(var(--mobile-dock-h) + env(safe-area-inset-bottom));
        padding: 8px 14px calc(env(safe-area-inset-bottom) + 8px) !important;
        border-radius: 0 !important;
        border: 0 !important;
        border-top: 1px solid rgba(162, 183, 228, 0.2) !important;
        background: linear-gradient(180deg, rgba(10, 18, 38, 0.98), rgba(8, 14, 30, 0.99)) !important;
        box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.46) !important;
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
        gap: 2px !important;
    }

    body.mobile-mode .mobile-bottom-link {
        border: 0;
        border-radius: 12px;
        background: transparent !important;
        color: #8f9dbb;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0;
        min-width: 0;
        min-height: 0;
        transition: color 0.18s ease;
    }

    body.mobile-mode .mobile-bottom-link.is-active {
        color: #f2d983;
        box-shadow: none;
    }

    body.mobile-mode .mobile-bottom-link.is-active::before {
        display: none !important;
    }

    body.mobile-mode .mobile-bottom-icon {
        width: 28px;
        height: 28px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: currentColor;
    }

    body.mobile-mode .mobile-bottom-icon .ui-icon {
        width: 26px;
        height: 26px;
        stroke-width: 2.1;
    }

    body.mobile-mode .mobile-bottom-link span:last-child {
        font-size: clamp(11px, 3.4vw, 16px);
        font-weight: 600;
        letter-spacing: 0;
        line-height: 1;
    }

    body.mobile-mode .mobile-bottom-link.has-avatar .mobile-bottom-icon {
        border-radius: 999px;
        overflow: hidden;
    }

    body.mobile-mode.mobile-nav-hidden .mobile-bottom-nav {
        transform: translateY(calc(100% + 4px));
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 420px) {
    body.mobile-mode .hero-poster-carousel {
        padding: 0 32vw 8px;
    }

    body.mobile-mode .hero-poster-card {
        width: min(58vw, 230px);
    }

    body.mobile-mode .hero-actions-mobile .btn-play,
    body.mobile-mode .hero-actions-mobile .btn-info-mobile,
    body.mobile-mode .mobile-spotlight-btn {
        min-height: 52px;
        font-size: 15px;
    }

    body.mobile-mode .movie-carousel .movie-card {
        width: min(42vw, 172px);
    }
}

@media (min-width: 901px) {
    .mobile-home-tabs,
    .mobile-spotlight-section {
        display: none !important;
    }
}

/* ========== MOBILE HOME MATCH + SWIPE FIX (2026.03.02) ========== */
@media (max-width: 900px) {
    html,
    body {
        overscroll-behavior-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body.mobile-mode,
    body.mobile-mode #app {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body.mobile-mode #app,
    body.mobile-mode .hero-section,
    body.mobile-mode .main-content,
    body.mobile-mode .filter-section {
        touch-action: auto !important;
    }

    body.mobile-mode .hero-poster-carousel,
    body.mobile-mode .hero-poster-card,
    body.mobile-mode .mobile-home-tabs,
    body.mobile-mode .filter-chips,
    body.mobile-mode .movie-carousel,
    body.mobile-mode .top10-carousel,
    body.mobile-mode .episode-controls {
        touch-action: pan-x pan-y !important;
        -webkit-overflow-scrolling: touch;
    }

    body.mobile-mode .site-header {
        background: linear-gradient(180deg, rgba(8, 12, 24, 0.72), rgba(8, 12, 24, 0.34)) !important;
        border-bottom: 1px solid rgba(222, 232, 248, 0.2) !important;
        box-shadow: none !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    body.mobile-mode .header-inner {
        height: var(--mobile-header-h) !important;
        padding: 0 12px !important;
        gap: 8px !important;
    }

    body.mobile-mode .header-inner .logo-icon {
        width: 32px;
        height: 32px;
    }

    body.mobile-mode .header-inner .logo-text {
        font-size: clamp(17px, 5.8vw, 28px);
        letter-spacing: -0.01em;
    }

    body.mobile-mode .header-inner .logo-sub {
        margin-top: 1px;
        font-size: 10px;
        color: rgba(226, 235, 248, 0.75);
    }

    body.mobile-mode .mobile-head-btn {
        width: 34px;
        height: 34px;
        border: 1px solid rgba(229, 238, 252, 0.54);
        background: rgba(10, 16, 31, 0.2);
    }

    body.mobile-mode .hero-section {
        border-radius: 0 0 24px 24px;
        padding: 76px 0 14px;
    }

    body.mobile-mode .hero-bg,
    body.mobile-mode .hero-bg-next {
        filter: brightness(0.44) blur(12px) saturate(1.06) !important;
        transform: scale(1.15);
    }

    body.mobile-mode .hero-overlay {
        background:
            radial-gradient(circle at 50% 24%, rgba(251, 197, 127, 0.16), transparent 46%),
            linear-gradient(180deg, rgba(9, 15, 31, 0.42) 0%, rgba(9, 15, 31, 0.78) 42%, rgba(9, 15, 31, 0.94) 100%) !important;
    }

    body.mobile-mode .mobile-home-tabs {
        top: 10px;
        left: 12px;
        right: 12px;
        gap: 8px;
    }

    body.mobile-mode .mobile-home-tab {
        min-height: 42px;
        padding: 0 18px;
        border-radius: 999px;
        border: 1.5px solid rgba(238, 245, 255, 0.72);
        background: rgba(10, 18, 34, 0.24);
        font-size: 14px;
        font-weight: 600;
    }

    body.mobile-mode .mobile-home-tab.is-active {
        background: #ffffff;
        color: #141b2f;
        border-color: #ffffff;
    }

    body.mobile-mode .hero-poster-carousel {
        padding: 0 28vw 8px;
        gap: 10px;
    }

    body.mobile-mode .hero-poster-card {
        width: min(49vw, 214px);
        border-radius: 22px;
        border: 2px solid rgba(237, 245, 255, 0.8);
        opacity: 0.56;
        transform: translateY(10px) scale(0.84) rotate(-6deg);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
    }

    body.mobile-mode .hero-poster-card:nth-child(2n) {
        transform: translateY(10px) scale(0.84) rotate(6deg);
    }

    body.mobile-mode .hero-poster-card.active {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }

    body.mobile-mode .hero-content {
        padding: 8px 16px 0;
    }

    body.mobile-mode .hero-title {
        font-family: 'Be Vietnam Pro', 'Sora', sans-serif;
        font-size: clamp(24px, 8.9vw, 52px);
        line-height: 1.08;
        font-weight: 800;
        font-style: normal;
        margin-bottom: 4px;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.42);
    }

    body.mobile-mode .hero-origin {
        margin-bottom: 12px;
        color: rgba(228, 235, 248, 0.86);
        font-size: clamp(13px, 4.9vw, 22px);
        font-style: normal;
    }

    body.mobile-mode .hero-actions-mobile {
        gap: 10px;
        margin: 0 auto 12px;
    }

    body.mobile-mode .hero-actions-mobile .btn-play,
    body.mobile-mode .hero-actions-mobile .btn-info-mobile {
        min-height: 52px;
        border-radius: 16px;
        font-size: clamp(14px, 4.6vw, 20px);
        font-weight: 800;
    }

    body.mobile-mode .hero-tags {
        gap: 8px;
        margin: 0 auto 10px;
    }

    body.mobile-mode .hero-tag {
        min-height: 34px;
        border-radius: 11px;
        padding: 0 11px;
        font-size: 13px;
    }

    body.mobile-mode .hero-desc {
        max-width: 92%;
        margin: 0 auto 12px;
        font-size: 13px;
        line-height: 1.56;
        -webkit-line-clamp: 2;
        color: rgba(226, 233, 246, 0.86);
    }

    body.mobile-mode .hero-dot {
        width: 11px;
        height: 11px;
    }

    body.mobile-mode .hero-dot.active {
        width: 42px;
    }

    body.mobile-mode .filter-title {
        font-size: clamp(28px, 7.2vw, 38px);
    }
}

/* ========== MOBILE NATIVE CONSISTENCY HOTFIX (2026.03.02) ========== */
@media (max-width: 900px) {
    body.mobile-mode .hero-actions-mobile {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        align-items: stretch;
    }

    body.mobile-mode .hero-actions-mobile .btn-play,
    body.mobile-mode .hero-actions-mobile .btn-info-mobile {
        min-height: 50px !important;
        padding: 0 12px !important;
        font-size: clamp(14px, 4.2vw, 18px) !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0;
    }

    body.mobile-mode .hero-title {
        font-size: clamp(22px, 7vw, 34px) !important;
        line-height: 1.12 !important;
        margin: 0 auto 6px !important;
        max-width: 94%;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

    body.mobile-mode .hero-origin {
        font-size: clamp(13px, 4.2vw, 18px) !important;
        margin: 0 auto 10px !important;
        max-width: 92%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.mobile-mode .section-title {
        font-size: clamp(18px, 6.2vw, 30px) !important;
        line-height: 1.16 !important;
    }

    body.mobile-mode .section-link::before {
        font-size: 34px !important;
    }

    body.mobile-mode .top10-section {
        margin: 0 12px 18px !important;
        padding: 12px 10px !important;
    }

    body.mobile-mode .top10-carousel {
        gap: 10px !important;
        padding: 2px 0 6px !important;
        touch-action: pan-x pan-y !important;
        -webkit-overflow-scrolling: touch;
    }

    body.mobile-mode .top10-carousel .top10-card {
        width: min(62vw, 232px) !important;
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
        filter: none !important;
        scroll-snap-align: start;
    }

    body.mobile-mode .top10-name {
        font-size: 15px !important;
        line-height: 1.3 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal !important;
    }

    body.mobile-mode .top10-subtitle {
        font-size: 12px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.mobile-mode .mobile-spotlight-section {
        margin: 0 12px 20px !important;
    }

    body.mobile-mode .mobile-spotlight-carousel {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 6px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y !important;
        scrollbar-width: none;
    }

    body.mobile-mode .mobile-spotlight-carousel::-webkit-scrollbar {
        display: none;
    }

    body.mobile-mode .mobile-spotlight-slide {
        flex: 0 0 calc(100% - 2px);
        min-width: 0;
        scroll-snap-align: start;
    }

    body.mobile-mode .mobile-spotlight-card {
        border-radius: 20px !important;
    }

    body.mobile-mode .mobile-spotlight-card img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    body.mobile-mode .mobile-spotlight-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 10px !important;
    }

    body.mobile-mode .mobile-spotlight-btn {
        min-height: 50px !important;
        padding: 0 10px !important;
        font-size: clamp(14px, 4.2vw, 18px) !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.mobile-mode .mobile-spotlight-meta h3 {
        font-size: clamp(19px, 6.2vw, 28px) !important;
        line-height: 1.16 !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal !important;
    }

    body.mobile-mode .mobile-spotlight-meta p {
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Final override */
body {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    background:
        radial-gradient(circle at top right, rgba(30, 223, 117, 0.08), transparent 24%),
        radial-gradient(circle at top left, rgba(32, 126, 255, 0.08), transparent 20%),
        linear-gradient(180deg, #020508 0%, #050a10 42%, #030508 100%) !important;
    color: var(--text-primary) !important;
}

body .site-header {
    background: rgba(4, 7, 10, 0.84) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body .header-inner {
    max-width: none !important;
    height: 72px !important;
    padding: 0 24px !important;
}

body .site-header .logo-icon,
body .mobile-menu-logo .logo-icon,
body .site-footer .logo-icon {
    display: none !important;
}

body .logo-text {
    font-family: 'Sora', sans-serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -0.06em !important;
    text-transform: uppercase !important;
}

body .logo-text span {
    color: var(--accent) !important;
}

body .header-search input {
    min-height: 44px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body .header-nav a,
body .header-nav .nav-dropdown>span,
body .btn-member {
    min-height: 42px !important;
    border-radius: 15px !important;
}

body .btn-member {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

@media (min-width: 1100px) {
    body .cinema-rail {
        position: fixed !important;
        top: 96px !important;
        left: 18px !important;
        bottom: 24px !important;
        width: 78px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 16px 10px !important;
        border-radius: 24px !important;
        background: rgba(7, 11, 14, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        z-index: 980 !important;
    }

    body .cinema-rail-link {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 7px !important;
        padding: 10px 4px !important;
        border-radius: 18px !important;
        text-align: center !important;
    }

    body .cinema-rail-link.is-active,
    body .cinema-rail-link:hover {
        background: rgba(255, 255, 255, 0.06) !important;
        color: #fff !important;
    }

    body .cinema-rail-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: rgba(255, 255, 255, 0.04) !important;
    }

    body .cinema-rail-link.is-active .cinema-rail-icon {
        color: var(--accent) !important;
        background: rgba(30, 223, 117, 0.12) !important;
        border-color: rgba(30, 223, 117, 0.24) !important;
    }

    body .site-header {
        padding-left: 92px !important;
    }

    body #app,
    body .site-footer {
        padding-left: 92px !important;
    }
}

body .hero-section {
    margin: 98px 24px 24px !important;
    min-height: 640px !important;
    height: min(82vh, 780px) !important;
    border-radius: 32px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.4) !important;
    background: #020406 !important;
}

body .hero-bg,
body .hero-bg-next {
    filter: brightness(0.38) saturate(1.08) !important;
}

body .hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 5, 7, 0.98) 0%, rgba(2, 5, 7, 0.9) 35%, rgba(2, 5, 7, 0.3) 67%, rgba(2, 5, 7, 0.12) 100%),
        radial-gradient(circle at 82% 28%, rgba(30, 223, 117, 0.16), transparent 32%) !important;
}

body .hero-content {
    left: 56px !important;
    bottom: 118px !important;
    max-width: 620px !important;
    padding: 0 !important;
}

body .hero-kicker {
    margin-bottom: 14px !important;
    color: var(--accent) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.26em !important;
    text-transform: uppercase !important;
}

body .hero-title {
    font-family: 'Sora', sans-serif !important;
    font-size: clamp(50px, 5.2vw, 84px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.08em !important;
    font-style: normal !important;
}

body .hero-origin {
    color: rgba(228, 236, 231, 0.82) !important;
    font-size: 22px !important;
    font-style: normal !important;
}

body .hero-tag {
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body .hero-desc {
    color: rgba(229, 237, 232, 0.72) !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
}

body .btn-play {
    min-height: 54px !important;
    padding: 0 28px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, var(--accent), #10974d) !important;
    color: #041208 !important;
    font-weight: 800 !important;
}

body .hero-action-pill.btn-circle {
    width: auto !important;
    height: 52px !important;
    padding: 0 18px !important;
    gap: 10px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body .main-content {
    max-width: none !important;
    padding: 0 24px 60px !important;
}

body .movie-section,
body .top10-section,
body .community-panel,
body .mobile-spotlight-section,
body .filter-section {
    margin-bottom: 24px !important;
    padding: 24px !important;
    border-radius: 28px !important;
    background: rgba(7, 11, 14, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34) !important;
}

body .movie-card {
    width: 184px !important;
    flex: 0 0 184px !important;
    background: transparent !important;
}

body .movie-poster {
    aspect-ratio: 2 / 3 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body .movie-info {
    padding: 12px 6px 0 !important;
}

body .movie-name {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

body .movie-origin {
    color: rgba(195, 204, 199, 0.72) !important;
    font-size: 12px !important;
}

body .movie-meta-row {
    display: flex !important;
    gap: 8px !important;
    margin-top: 8px !important;
}

body .movie-meta-row span {
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    font-size: 10px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

body .top10-card {
    width: 240px !important;
    flex: 0 0 240px !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, rgba(12, 18, 22, 0.96), rgba(7, 11, 14, 0.86)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body .detail-page-v2 {
    padding: 96px 24px 40px !important;
}

body .detail-page-v2 .dv2-main-layout {
    grid-template-columns: 380px minmax(0, 1fr) !important;
    gap: 24px !important;
}

body .detail-page-v2 .dv2-info-col,
body .detail-page-v2 .dv2-hero-card,
body .detail-page-v2 .dv2-episode-card,
body .detail-page-v2 .dv2-comments-col,
body .detail-page-v2 .sidebar-widget,
body .detail-page-v2 .dv2-alt-panel {
    border-radius: 28px !important;
    background: rgba(7, 11, 14, 0.74) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body .detail-page-v2 .dv2-btn-watch {
    background: linear-gradient(135deg, var(--accent), #10974d) !important;
    color: #041109 !important;
    border-radius: 18px !important;
}

body .detail-page-v2 .dv2-rating-badge {
    background: linear-gradient(135deg, rgba(245, 197, 103, 0.94), rgba(255, 224, 148, 0.92)) !important;
    color: #171717 !important;
    border: none !important;
    border-radius: 18px !important;
}

body .detail-page-v2 .dv2-server-btn.active,
body .detail-page-v2 .dv2-ep-btn.active {
    background: var(--accent) !important;
    color: #031208 !important;
    border-color: transparent !important;
}

body .site-footer {
    margin: 24px !important;
    border-radius: 28px !important;
    background: rgba(7, 11, 14, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 900px) {
    body .header-inner {
        height: 64px !important;
        padding: 0 14px !important;
    }

    body .logo-text {
        font-size: 18px !important;
    }

    body .logo-sub,
    body .cinema-rail {
        display: none !important;
    }

    body .mobile-bottom-nav {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        width: auto !important;
        border-radius: 22px !important;
        background: rgba(8, 12, 15, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    body .hero-section {
        margin: calc(var(--mobile-header-total-h) + 6px) 0 16px !important;
        min-height: 560px !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 0 28px 28px !important;
    }

    body .hero-content {
        left: 16px !important;
        right: 16px !important;
        bottom: 74px !important;
        max-width: none !important;
    }

    body .hero-title {
        max-width: 76% !important;
        font-size: clamp(34px, 11vw, 50px) !important;
    }

    body .hero-origin {
        font-size: 16px !important;
    }

    body .main-content {
        padding: 0 12px 106px !important;
    }

    body .movie-section,
    body .top10-section,
    body .community-panel,
    body .mobile-spotlight-section,
    body .filter-section {
        margin-bottom: 16px !important;
        padding: 16px !important;
        border-radius: 24px !important;
    }

    body .movie-carousel .movie-card {
        width: 130px !important;
        flex: 0 0 130px !important;
    }

    body .top10-carousel .top10-card {
        width: 78vw !important;
        flex: 0 0 78vw !important;
    }

    body .site-footer {
        margin: 0 12px 106px !important;
        border-radius: 24px !important;
    }

    body .detail-mobile-cinema {
        padding-top: calc(var(--mobile-header-total-h) - 4px) !important;
    }

    body .mobile-detail-hero {
        position: relative !important;
        min-height: 430px !important;
        overflow: hidden !important;
        border-bottom-left-radius: 28px !important;
        border-bottom-right-radius: 28px !important;
    }

    body .mobile-detail-backdrop {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body .mobile-detail-overlay {
        position: absolute !important;
        inset: 0 !important;
        background:
            linear-gradient(180deg, rgba(3, 6, 8, 0.12), rgba(3, 6, 8, 0.64) 44%, #030508 100%),
            radial-gradient(circle at 82% 22%, rgba(30, 223, 117, 0.14), transparent 36%) !important;
    }

    body .mobile-detail-hero-inner {
        position: relative !important;
        z-index: 1 !important;
        display: grid !important;
        grid-template-columns: 114px minmax(0, 1fr) !important;
        gap: 14px !important;
        align-items: end !important;
        padding: 118px 16px 18px !important;
    }

    body .mobile-detail-panel {
        display: grid !important;
        gap: 14px !important;
        padding: 0 12px 106px !important;
        margin-top: -6px !important;
    }

    body .mobile-detail-toolbar,
    body .mobile-detail-summary-card,
    body .mobile-detail-tabs,
    body .mobile-detail-tab-panel {
        background: rgba(7, 11, 14, 0.78) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 24px !important;
    }

    body .mobile-detail-toolbar {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        padding: 10px 6px !important;
    }

    body .mobile-detail-server-row {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        margin-bottom: 14px !important;
    }

    body .mobile-detail-episode-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body .mobile-detail-ep-btn.active,
    body .mobile-detail-server.active {
        background: var(--accent) !important;
        color: #031208 !important;
        border-color: transparent !important;
    }
}

/* Home page lock */
body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-thumbs {
    display: none !important;
}

body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-dots {
    left: auto !important;
    right: 56px !important;
    bottom: 32px !important;
    justify-content: flex-end !important;
}

body .section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

body .section-link {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body .movie-carousel {
    padding-bottom: 2px !important;
}

body .movie-card {
    width: 202px !important;
    flex: 0 0 202px !important;
}

body .movie-card:hover {
    transform: translateY(-4px) !important;
}

body .movie-card .movie-poster {
    border-radius: 22px !important;
}

body .movie-card .poster-badges {
    top: 10px !important;
    bottom: auto !important;
    left: 10px !important;
    right: auto !important;
    display: inline-flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    max-width: calc(100% - 20px) !important;
    pointer-events: none !important;
}

body .movie-card .badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    width: auto !important;
    height: auto !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 8px !important;
    border-radius: 8px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
}

body .movie-card .badge-rating {
    background: linear-gradient(135deg, #f6b51d, #ffd36d) !important;
    color: #201300 !important;
    border: none !important;
    box-shadow: 0 8px 18px rgba(246, 181, 29, 0.24) !important;
}

body .movie-card .badge-quality,
body .movie-card .badge-lang,
body .movie-card .badge-ep {
    display: none !important;
}

body .movie-info {
    padding: 14px 2px 0 !important;
}

body .movie-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.32 !important;
}

body .movie-origin {
    margin-top: 4px !important;
    font-size: 12px !important;
    color: rgba(214, 223, 218, 0.68) !important;
}

body .movie-meta-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
}

body .movie-meta-row span {
    min-height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(219, 227, 223, 0.72) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

body .movie-meta-row span.is-accent {
    background: rgba(30, 223, 117, 0.14) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(30, 223, 117, 0.18) !important;
}

body .top10-card {
    width: 210px !important;
    flex: 0 0 210px !important;
    padding: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
}

body .top10-poster-shell {
    padding: 12px 12px 0 !important;
}

body .top10-meta-row {
    padding: 12px 14px 16px !important;
}

body .top10-rank {
    font-size: 54px !important;
    line-height: 0.92 !important;
}

@media (max-width: 900px) {
    body .section-header {
        align-items: flex-start !important;
    }

    body .section-link {
        min-height: 38px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }

    body .movie-card .poster-badges {
        top: 8px !important;
        left: 8px !important;
    }

    body .movie-card .badge {
        min-height: 22px !important;
        max-height: 22px !important;
        font-size: 10px !important;
        padding: 0 7px !important;
        border-radius: 7px !important;
    }

    body .movie-name {
        font-size: 13px !important;
    }

    body .movie-origin {
        font-size: 11px !important;
    }
}

@media (min-width: 901px) {
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-inner {
        max-width: none !important;
        height: 72px !important;
        padding: 0 24px !important;
        gap: 18px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-section {
        margin: 98px 24px 24px !important;
        height: min(82vh, 780px) !important;
        min-height: 640px !important;
        max-height: none !important;
        border-radius: 32px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        overflow: hidden !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-content {
        left: 56px !important;
        bottom: 118px !important;
        max-width: 620px !important;
        padding: 0 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .main-content,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .filter-section,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .site-footer {
        padding-left: 24px !important;
        padding-right: 24px !important;
        max-width: none !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-section,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .top10-section,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .community-panel,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .mobile-spotlight-section,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .filter-section {
        margin-bottom: 24px !important;
        padding: 24px !important;
        border-radius: 28px !important;
        background: rgba(7, 11, 14, 0.72) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card {
        width: 202px !important;
        flex: 0 0 202px !important;
        background: transparent !important;
        padding: 0 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card .movie-poster {
        border-radius: 22px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card .poster-badges {
        top: 10px !important;
        bottom: auto !important;
        left: 10px !important;
        right: auto !important;
        display: inline-flex !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: auto !important;
        max-width: calc(100% - 20px) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card .badge {
        min-height: 24px !important;
        max-height: 24px !important;
        width: auto !important;
        padding: 0 8px !important;
        border-radius: 8px !important;
        writing-mode: horizontal-tb !important;
        transform: none !important;
        align-self: flex-start !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card .badge-quality,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card .badge-lang,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card .badge-ep {
        display: none !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .top10-card {
        width: 210px !important;
        flex: 0 0 210px !important;
        padding: 0 !important;
        border-radius: 22px !important;
        overflow: hidden !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .site-footer {
        margin: 24px !important;
        border-radius: 28px !important;
    }
}

/* ========== FINAL DESKTOP CINEMA MATCH (2026.03) ========== */
@media (min-width: 901px) {
    body:is(.desktop-mode, .tablet-mode, .tv-mode) {
        --accent: #00e16a !important;
        --accent-hover: #25f18b !important;
        --accent-glow: rgba(0, 225, 106, 0.28) !important;
        background:
            radial-gradient(circle at 84% 0%, rgba(0, 225, 106, 0.08), transparent 18%),
            linear-gradient(180deg, #010304 0%, #020609 48%, #010304 100%) !important;
        color: #f3f6f7 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode)::before {
        opacity: 0.08 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .site-header {
        padding-left: 0 !important;
        background: linear-gradient(180deg, rgba(2, 7, 10, 0.94), rgba(2, 7, 10, 0.82)) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
        backdrop-filter: blur(20px) saturate(1.12) !important;
        -webkit-backdrop-filter: blur(20px) saturate(1.12) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-inner {
        height: 78px !important;
        max-width: none !important;
        padding: 0 28px 0 32px !important;
        gap: 18px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .logo {
        min-width: 244px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .logo-text {
        font-size: 27px !important;
        letter-spacing: -0.04em !important;
        line-height: 1 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .logo-text span {
        color: #f2c85a !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .logo-sub {
        color: rgba(224, 231, 235, 0.7) !important;
        font-size: 11px !important;
        letter-spacing: 0.01em !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-search {
        flex: 0 0 470px !important;
        max-width: 470px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-search input {
        min-height: 42px !important;
        padding: 9px 16px 9px 42px !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: #edf3f7 !important;
        font-size: 14px !important;
        box-shadow: none !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-search input::placeholder {
        color: rgba(198, 206, 214, 0.52) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-nav {
        display: flex !important;
        align-items: center !important;
        gap: 22px !important;
        margin-left: 10px !important;
        overflow: visible !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-nav a,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-nav .nav-dropdown>span {
        min-height: auto !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: rgba(232, 238, 244, 0.84) !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-nav a:hover,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-nav .nav-dropdown:hover>span,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .nav-dropdown.is-open>span {
        background: transparent !important;
        color: #ffffff !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .nav-dropdown-menu {
        top: calc(100% + 18px) !important;
        left: 0 !important;
        transform: none !important;
        min-width: 520px !important;
        border-radius: 18px !important;
        background: rgba(5, 10, 14, 0.98) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42) !important;
        padding: 14px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .header-actions {
        margin-left: auto !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .btn-member {
        min-height: 42px !important;
        padding: 0 18px !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .btn-member:hover {
        background: rgba(255, 255, 255, 0.09) !important;
        border-color: rgba(255, 255, 255, 0.18) !important;
        color: #ffffff !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-section {
        margin: 78px 0 0 !important;
        width: 100% !important;
        min-height: 640px !important;
        height: min(80vh, 760px) !important;
        max-height: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
        background: #020507 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-bg,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-bg-next {
        background-position: center center !important;
        filter: brightness(0.72) saturate(0.94) !important;
        transform: scale(1.01) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-overlay {
        background:
            linear-gradient(90deg, rgba(2, 6, 10, 0.94) 0%, rgba(2, 6, 10, 0.8) 32%, rgba(2, 6, 10, 0.3) 64%, rgba(2, 6, 10, 0.16) 100%),
            linear-gradient(180deg, rgba(2, 6, 10, 0.12) 0%, rgba(2, 6, 10, 0.12) 56%, rgba(2, 6, 10, 0.74) 100%) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-bottom-fade {
        height: 190px !important;
        background: linear-gradient(180deg, rgba(2, 6, 10, 0) 0%, rgba(2, 6, 10, 0.18) 42%, #020507 100%) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-content {
        left: clamp(56px, 8vw, 108px) !important;
        bottom: 110px !important;
        max-width: 560px !important;
        padding: 0 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-kicker {
        margin-bottom: 12px !important;
        color: var(--accent) !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        letter-spacing: 0.18em !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-title {
        font-size: clamp(54px, 5.2vw, 84px) !important;
        line-height: 0.98 !important;
        letter-spacing: -0.06em !important;
        color: #ffffff !important;
        text-shadow: 0 12px 34px rgba(0, 0, 0, 0.36) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-origin {
        margin-bottom: 18px !important;
        color: rgba(226, 232, 237, 0.86) !important;
        font-size: 18px !important;
        font-weight: 500 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-tags {
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-tag {
        min-height: 30px !important;
        padding: 0 12px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: rgba(242, 246, 249, 0.86) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-tag.imdb {
        background: rgba(0, 225, 106, 0.18) !important;
        border-color: rgba(0, 225, 106, 0.26) !important;
        color: #baffd7 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-tag.quality {
        background: #00e16a !important;
        border-color: transparent !important;
        color: #041008 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-desc {
        max-width: 35ch !important;
        margin-bottom: 24px !important;
        color: rgba(222, 229, 234, 0.76) !important;
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-actions {
        gap: 12px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .btn-play {
        min-height: 48px !important;
        padding: 0 28px !important;
        border-radius: 999px !important;
        border: none !important;
        background: linear-gradient(135deg, #00db62, #00bf55) !important;
        color: #ffffff !important;
        box-shadow: 0 14px 30px rgba(0, 219, 98, 0.22) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .btn-play:hover {
        background: linear-gradient(135deg, #16ed7a, #00d060) !important;
        transform: translateY(-1px) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-poster-carousel,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-thumbs,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) #heroSection .hero-thumbs {
        display: none !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-dots,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) #heroSection .hero-dots {
        left: auto !important;
        right: 34px !important;
        bottom: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-dot {
        width: 8px !important;
        height: 8px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.28) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-dot.active {
        width: 26px !important;
        background: var(--accent) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .cinema-filter-section,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .filter-section {
        display: none !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .main-content {
        max-width: none !important;
        padding: 34px 28px 76px 28px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-section,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .top10-section,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .community-panel,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .mobile-spotlight-section {
        margin-bottom: 46px !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .section-header {
        margin-bottom: 18px !important;
        padding: 0 2px !important;
        align-items: center !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .section-title {
        font-size: clamp(28px, 2.4vw, 42px) !important;
        font-weight: 800 !important;
        letter-spacing: -0.04em !important;
        color: #ffffff !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .section-link {
        min-height: auto !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: rgba(224, 231, 239, 0.86) !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        gap: 8px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .section-link:hover {
        color: #ffffff !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-carousel,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .top10-carousel {
        gap: 20px !important;
        padding-bottom: 10px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card {
        width: 226px !important;
        flex: 0 0 226px !important;
        background: transparent !important;
        padding: 0 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card:hover {
        transform: translateY(-3px) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card .movie-poster {
        aspect-ratio: 2 / 3 !important;
        border-radius: 14px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card .poster-badges {
        top: 8px !important;
        left: 8px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-card .badge {
        min-height: 22px !important;
        max-height: 22px !important;
        padding: 0 8px !important;
        border-radius: 6px !important;
        font-size: 11px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-info {
        padding: 12px 0 0 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-name {
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.32 !important;
        color: #ffffff !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .movie-origin {
        margin-top: 4px !important;
        font-size: 12px !important;
        color: rgba(190, 198, 205, 0.72) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .main-content .movie-section .movie-meta-row {
        display: none !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .carousel-btn {
        width: 54px !important;
        height: 54px !important;
        border-radius: 999px !important;
        background: rgba(232, 236, 241, 0.92) !important;
        border: none !important;
        color: #0d1318 !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .carousel-btn:hover {
        background: #ffffff !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .top10-card {
        width: 226px !important;
        flex: 0 0 226px !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .top10-poster-shell,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .top10-meta-row {
        padding: 0 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .site-footer {
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        background: linear-gradient(180deg, #020507 0%, #010304 100%) !important;
        padding: 54px 30px 0 30px !important;
        box-shadow: none !important;
    }
}

@media (min-width: 1100px) {
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .cinema-rail {
        position: fixed !important;
        top: 78px !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 104px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 20px 0 18px !important;
        border-radius: 0 !important;
        background: linear-gradient(180deg, rgba(2, 6, 10, 0.76), rgba(2, 6, 10, 0.96)) !important;
        border: none !important;
        border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
        box-shadow: inset -26px 0 44px rgba(0, 0, 0, 0.22) !important;
        backdrop-filter: blur(18px) !important;
        -webkit-backdrop-filter: blur(18px) !important;
        z-index: 980 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .cinema-rail::before {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        pointer-events: none !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 16%, transparent 84%, rgba(0, 225, 106, 0.04)) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .cinema-rail-link {
        position: relative !important;
        z-index: 1 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 9px !important;
        padding: 8px 12px 10px !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: rgba(168, 176, 186, 0.74) !important;
        text-align: center !important;
        transform: none !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .cinema-rail-link::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 12px !important;
        bottom: 12px !important;
        width: 3px !important;
        border-radius: 0 999px 999px 0 !important;
        background: transparent !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .cinema-rail-link:hover,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .cinema-rail-link.is-active {
        background: transparent !important;
        color: #eef4f7 !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .cinema-rail-link.is-active::before {
        background: var(--accent) !important;
        box-shadow: 0 0 16px rgba(0, 225, 106, 0.34) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .cinema-rail-icon {
        width: 44px !important;
        height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 14px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: rgba(255, 255, 255, 0.03) !important;
        color: rgba(220, 226, 232, 0.72) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .cinema-rail-link.is-active .cinema-rail-icon {
        background: rgba(0, 225, 106, 0.12) !important;
        border-color: rgba(0, 225, 106, 0.22) !important;
        color: var(--accent) !important;
        box-shadow: 0 10px 24px rgba(0, 225, 106, 0.12) !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .cinema-rail-icon .ui-icon {
        width: 19px !important;
        height: 19px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .cinema-rail-label {
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.22 !important;
        color: inherit !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) #app,
    body:is(.desktop-mode, .tablet-mode, .tv-mode) .site-footer {
        padding-left: 92px !important;
    }

    body:is(.desktop-mode, .tablet-mode, .tv-mode) .hero-section {
        margin-left: -92px !important;
        width: calc(100% + 92px) !important;
    }
}

