/* ==========================================================================
   CNP HYBRID SHOTS V4 - OBSIDIAN STUDIO & 60FPS HARDWARE-ACCELERATED UI
   - Tông màu: Đen Obsidian (#09090c), Xám Titan (#141419), Trắng Bạc & Đỏ (#e50914)
   - Không màu neon chói, không chi tiết rườm rà kiểu AI
   - Tối ưu GPU 100% cho iOS Safari & Android (0 filter:blur nặng, 60fps/120fps)
   ========================================================================== */

/* Link trong Sidebar đồng bộ 100% với menu gốc (không nhích lề, không làm chói) */
.sidebar-menu ul li a.cnp-sidebar-shots-link,
.sidebar-menu ul li a.cnp-sidebar-music-link {
    color: #ccc;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    transition: 0.3s;
}

.sidebar-menu ul li a.cnp-sidebar-shots-link:hover,
.sidebar-menu ul li a.cnp-sidebar-shots-link.active-link,
.sidebar-menu ul li a.cnp-sidebar-music-link:hover,
.sidebar-menu ul li a.cnp-sidebar-music-link.active-link {
    color: var(--primary-color, #e50914);
    padding-left: 10px;
    background: transparent;
    transform: none;
}

/* Màn hình Loading chuyển tiếp khi mở mục Âm Nhạc từ trang truyện */
.cnp-music-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #09090b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #f4f4f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: cnpMusicFadeIn 0.2s ease forwards;
}

@keyframes cnpMusicFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cnp-music-transition-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.16);
    background: #fff;
    box-shadow: 0 12px 32px rgba(229, 9, 20, 0.28);
}

.cnp-music-transition-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cnp-music-transition-title span {
    color: #e50914;
}

.cnp-music-transition-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 22px;
}

.cnp-music-transition-bars i {
    width: 3.5px;
    height: 6px;
    background: #e50914;
    border-radius: 2px;
    animation: cnpMusicBarPulse 0.6s ease-in-out infinite alternate;
}

.cnp-music-transition-bars i:nth-child(2) { animation-delay: 0.12s; }
.cnp-music-transition-bars i:nth-child(3) { animation-delay: 0.24s; }
.cnp-music-transition-bars i:nth-child(4) { animation-delay: 0.36s; }
.cnp-music-transition-bars i:nth-child(5) { animation-delay: 0.48s; }

@keyframes cnpMusicBarPulse {
    from { height: 5px; opacity: 0.45; }
    to { height: 22px; opacity: 1; }
}

.cnp-music-transition-sub {
    font-size: 13px;
    color: #a1a1aa;
}

/* --------------------------------------------------------------------------
   1. NÚT "XEM REELS" TRÊN HERO & KỆ REELS TRANG CHỦ
   -------------------------------------------------------------------------- */
.cnp-hero-shots-btn {
    padding: 15px 30px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.22) 0%, rgba(20, 20, 28, 0.88) 100%);
    border: 1.5px solid rgba(229, 9, 20, 0.55);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    margin: 0 14px 0 0;
    vertical-align: middle;
    white-space: nowrap;
}

.cnp-hero-shots-btn i {
    color: #ff3b47;
    font-size: 16px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.cnp-hero-shots-btn:hover {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.38) 0%, rgba(32, 32, 44, 0.95) 100%);
    border-color: #ff3b47;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(229, 9, 20, 0.28);
}

.cnp-hero-shots-btn:hover i {
    color: #ffffff;
    transform: scale(1.08);
}

/* Kệ Xem Reels ngoài Trang Chủ - Đồng bộ tự nhiên với .movie-category */
.cnp-home-shots-shelf {
    position: relative;
    z-index: 5;
    margin: 24px 0 36px 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.cnp-shelf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cnp-shelf-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cnp-shelf-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e50914, #b80710);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.cnp-shelf-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.cnp-shelf-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 2px;
}

.cnp-shelf-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cnp-shelf-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(20, 20, 26, 0.78);
    color: #e4e4e7;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cnp-shelf-nav-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.cnp-shelf-more-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e4e4e7;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cnp-shelf-more-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.cnp-shelf-scroll,
.cnp-shots-preview-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 14px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cnp-shelf-scroll::-webkit-scrollbar,
.cnp-shots-preview-scroll::-webkit-scrollbar {
    display: none;
}

/* Thẻ Reel Dọc 9:16 Sắc Nét, Hiện Đại */
.cnp-shot-mini-card {
    position: relative;
    width: 188px !important;
    min-width: 188px !important;
    max-width: 188px !important;
    height: 310px !important;
    flex: 0 0 188px !important;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65);
    transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.cnp-shot-mini-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.85);
}

.cnp-shot-mini-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.35s ease;
}

.cnp-shot-mini-card:hover img {
    transform: scale(1.04);
}

/* Nút Play tròn nổi nhẹ giữa thẻ khi di chuột */
.cnp-shot-mini-play-hover {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.88);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 15, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    z-index: 3;
}

.cnp-shot-mini-card:hover .cnp-shot-mini-play-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cnp-shot-mini-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.22) 0%,
        transparent 24%,
        transparent 56%,
        rgba(8, 8, 12, 0.82) 78%,
        rgba(8, 8, 12, 0.96) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 11px 12px 12px 12px;
    z-index: 2;
}

.cnp-shot-mini-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cnp-shot-mini-badge {
    background: rgba(12, 12, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f4f4f5;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cnp-shot-mini-badge.has-video {
    background: rgba(229, 9, 20, 0.9);
    border-color: rgba(229, 9, 20, 0.9);
    color: #ffffff;
}

.cnp-shot-mini-author-tag {
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnp-shot-mini-bottom h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.32;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cnp-shot-mini-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    font-weight: 500;
    color: #9ca3af;
}

/* --------------------------------------------------------------------------
   2. KHUNG TOÀN MÀN HÌNH ĐỘC LẬP (#cnp-shots-view)
   -------------------------------------------------------------------------- */
#cnp-shots-view {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #08080b;
    z-index: 99990;
    display: none;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#cnp-shots-view.active {
    display: block;
}

body.cnp-shots-open {
    overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   3. THANH ĐIỀU HƯỚNG ĐỈNH (TỐI GIẢN, SANG TRỌNG, KHÔNG MÀU CHÓI)
   -------------------------------------------------------------------------- */
.cnp-shots-topbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 980px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px 16px;
    pointer-events: none;
}

.cnp-shots-topbar > * {
    pointer-events: auto;
}

.cnp-shots-back-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(20, 20, 26, 0.9);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cnp-shots-back-btn:hover {
    background: rgba(36, 36, 46, 0.95);
    border-color: rgba(255, 255, 255, 0.28);
}

.cnp-shots-feed-tabs {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(18, 18, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.cnp-shots-feed-tab {
    appearance: none;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.cnp-shots-feed-tab:hover {
    color: #ffffff;
}

.cnp-shots-feed-tab.active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 700;
}

.cnp-shots-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cnp-shots-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(20, 20, 26, 0.9);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cnp-shots-icon-btn:hover {
    background: rgba(36, 36, 46, 0.95);
}

/* --------------------------------------------------------------------------
   4. VIEWPORT CUỘN DỌC SIÊU MƯỢT (HARDWARE-ACCELERATED)
   -------------------------------------------------------------------------- */
.cnp-shots-viewport {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cnp-shots-viewport::-webkit-scrollbar {
    display: none;
}

.cnp-shot-slide {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    contain: layout paint style;
}

/* --------------------------------------------------------------------------
   5. KHUNG SÂN KHẤU DỌC 9:16 (KHÔNG DÙNG BLUR NẶNG GÂY LAG ĐIỆN THOẠI)
   -------------------------------------------------------------------------- */
.cnp-shot-stage-shell {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 440px;
    height: calc(100dvh - 20px);
    max-height: 860px;
    border-radius: 22px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 32%, #1c1c24 0%, #0d0d12 68%, #08080b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Thanh chuyển đổi [Nghe Audio | Xem Video HD] */
.cnp-shot-media-switcher-wrap {
    position: relative;
    z-index: 25;
    display: flex;
    justify-content: center;
    padding-top: 56px;
    pointer-events: none;
}

.cnp-shot-mode-switch {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(16, 16, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px;
    border-radius: 999px;
}

.cnp-shot-mode-pill {
    appearance: none;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.cnp-shot-mode-pill.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. SÂN KHẤU AUDIO: ĐĨA THAN TỐI GIẢN + BÌA TRUYỆN SẮC NÉT
   -------------------------------------------------------------------------- */
.cnp-shot-audio-stage {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 88px 66px 205px 18px;
    cursor: pointer;
}

.cnp-shot-audio-stage.hidden {
    display: none;
}

.cnp-vinyl-artwork-showcase {
    position: relative;
    width: 100%;
    max-width: 276px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Đĩa nhạc than đen nhám sang trọng (Xoay bằng GPU transform) */
.cnp-vinyl-record-wrap {
    position: relative;
    width: 156px;
    height: 156px;
    margin-bottom: -62px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnp-vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        conic-gradient(
            from 40deg,
            rgba(255, 255, 255, 0.1) 0deg,
            transparent 55deg,
            rgba(0, 0, 0, 0.5) 110deg,
            rgba(255, 255, 255, 0.1) 180deg,
            transparent 235deg,
            rgba(0, 0, 0, 0.5) 290deg,
            rgba(255, 255, 255, 0.1) 360deg
        ),
        radial-gradient(circle at center, #1c1c22 0%, #111115 45%, #0a0a0d 75%, #16161c 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    animation: cnpVinylSpin 12s linear infinite;
    animation-play-state: paused;
}

.cnp-shot-slide.is-playing .cnp-vinyl-disc {
    animation-play-state: running;
}

@keyframes cnpVinylSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cnp-vinyl-center-label {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 2px;
    background: rgba(255, 255, 255, 0.22);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnp-vinyl-center-label img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.cnp-vinyl-spindle-hole {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #09090c;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    z-index: 3;
}

/* Khung Ảnh Bìa Sạch Sẽ, Không Bị Nhãn Lòe Loẹt Che Khuất */
.cnp-artwork-sleeve {
    position: relative;
    z-index: 4;
    width: 100%;
    aspect-ratio: 4 / 4.7;
    max-height: 315px;
    border-radius: 16px;
    overflow: hidden;
    background: #14141a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.8);
}

.cnp-shot-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   7. SÂN KHẤU VIDEO: CHUẨN TỈ LỆ DỌC 9:16 TOÀN KHUNG
   -------------------------------------------------------------------------- */
.cnp-shot-video-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
    display: none;
    align-items: center;
    justify-content: center;
    background: #050507;
    overflow: hidden;
    cursor: pointer;
}

.cnp-shot-video-stage.active {
    display: flex;
}

.cnp-shot-video-el {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050507;
}

.cnp-shot-video-stage.fit-cover .cnp-shot-video-el {
    object-fit: cover;
}

.cnp-shot-video-tools {
    position: absolute;
    top: 96px;
    left: 12px;
    right: auto;
    z-index: 26;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.cnp-shot-vtool-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(18, 18, 24, 0.88);
    color: #e4e4e7;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.cnp-shot-vtool-btn:hover {
    background: rgba(36, 36, 46, 0.95);
    color: #ffffff;
}

/* Phản hồi chạm giữa màn hình */
.cnp-shot-tap-feedback {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 16, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 30;
}

.cnp-shot-tap-feedback.show {
    animation: cnpTapPop 0.45s ease-out forwards;
}

@keyframes cnpTapPop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    40% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}

.cnp-double-tap-heart {
    position: fixed;
    font-size: 68px;
    color: #e50914;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%) scale(0);
    animation: cnpHeartFloat 0.75s ease-out forwards;
}

@keyframes cnpHeartFloat {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    40% { transform: translate(-50%, -60%) scale(1.15); opacity: 1; }
    100% { transform: translate(-50%, -125%) scale(1.35); opacity: 0; }
}

/* --------------------------------------------------------------------------
   8. CỘT TƯƠNG TÁC BÊN PHẢI (ĐỒNG BỘ KÍNH TỐI, KHÔNG MÀU LÒE LOẸT)
   -------------------------------------------------------------------------- */
.cnp-shot-right-dock {
    position: absolute;
    right: 12px;
    bottom: 185px;
    z-index: 28;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.cnp-shot-author-avatar-box {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: #14141a;
    cursor: pointer;
    margin-bottom: 6px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.cnp-shot-author-avatar-box:hover {
    transform: scale(1.06);
    border-color: #ffffff;
}

.cnp-shot-author-avatar-box img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.cnp-shot-follow-mini-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e50914;
    color: #ffffff;
    font-size: 9.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #09090c;
    cursor: pointer;
    z-index: 4;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cnp-shot-follow-mini-badge:hover {
    transform: translateX(-50%) scale(1.15);
}

.cnp-shot-follow-mini-badge.followed {
    background: #27272a;
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.45);
}

.cnp-shot-follow-mini-badge.is-channel-home {
    background: #18181b;
    color: #f5c518;
    border-color: rgba(245, 197, 24, 0.5);
}

.cnp-shot-action-item {
    appearance: none;
    border: none;
    background: transparent;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
}

.cnp-shot-action-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(24, 24, 32, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #f4f4f5;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cnp-shot-action-item:hover .cnp-shot-action-circle {
    background: rgba(40, 40, 52, 0.95);
    transform: scale(1.06);
}

.cnp-shot-action-item.liked .cnp-shot-action-circle {
    color: #e50914;
    border-color: rgba(229, 9, 20, 0.45);
    background: rgba(229, 9, 20, 0.14);
}

.cnp-shot-action-item.saved .cnp-shot-action-circle {
    color: #f5c518;
    border-color: rgba(245, 197, 24, 0.45);
    background: rgba(245, 197, 24, 0.14);
}

.cnp-shot-action-label {
    font-size: 11px;
    font-weight: 600;
    color: #d4d4d8;
}

/* --------------------------------------------------------------------------
   9. KHU VỰC THÔNG TIN & ĐIỀU KHIỂN ĐÁY (GỌN GÀNG, CHUYÊN NGHIỆP)
   -------------------------------------------------------------------------- */
.cnp-shot-bottom-deck {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 24;
    padding: 24px 16px calc(14px + env(safe-area-inset-bottom, 0px)) 16px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(8, 8, 11, 0.78) 28%,
        rgba(8, 8, 11, 0.96) 72%,
        #08080b 100%
    );
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cnp-shot-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 52px;
}

.cnp-shot-author-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #d4d4d8;
    cursor: pointer;
}

.cnp-shot-author-pill:hover {
    color: #ffffff;
}

.cnp-shot-author-pill .verified-icon {
    color: #a1a1aa;
    font-size: 12px;
}

.cnp-shot-movie-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.32;
    padding-right: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Thanh Chọn Phần / Tập Chuyên Nghiệp */
.cnp-shot-episode-bar {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cnp-shot-ep-drawer-trigger {
    flex: 1;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(24, 24, 32, 0.9);
    color: #ffffff;
    padding: 8px 13px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cnp-shot-ep-drawer-trigger:hover {
    background: rgba(36, 36, 46, 0.95);
    border-color: rgba(255, 255, 255, 0.28);
}

.cnp-ep-trigger-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cnp-ep-playing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e50914;
    flex-shrink: 0;
}

.cnp-ep-trigger-text {
    font-size: 12.5px;
    font-weight: 600;
    color: #f4f4f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnp-ep-trigger-right {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 9px;
    border-radius: 6px;
    flex-shrink: 0;
}

.cnp-shot-ep-step-btn {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(24, 24, 32, 0.9);
    color: #e4e4e7;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cnp-shot-ep-step-btn:hover {
    background: rgba(40, 40, 52, 0.95);
    color: #ffffff;
}

/* Thanh Tiến Trình Thời Gian */
.cnp-shot-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cnp-shot-time {
    font-size: 11px;
    font-weight: 600;
    color: #a1a1aa;
    min-width: 34px;
    font-variant-numeric: tabular-nums;
}

.cnp-shot-seek-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.cnp-shot-seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

/* Cụm nút điều khiển Phát / Tua / Tốc độ */
.cnp-shot-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.cnp-shot-ctrl-left,
.cnp-shot-ctrl-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.cnp-shot-play-main-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #ffffff;
    color: #09090c;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.cnp-shot-play-main-btn:hover {
    opacity: 0.9;
}

.cnp-shot-mini-ctrl-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(24, 24, 32, 0.9);
    color: #d4d4d8;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cnp-shot-mini-ctrl-btn:hover {
    background: rgba(40, 40, 52, 0.95);
    color: #ffffff;
}

.cnp-shot-mini-ctrl-btn.autonext-on {
    border-color: rgba(255, 255, 255, 0.32);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   10. NGĂN KÉO CHỌN PHẦN / TẬP (#cnp-shots-episode-drawer)
   -------------------------------------------------------------------------- */
.cnp-episode-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.72);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.cnp-episode-drawer-backdrop.open {
    display: flex;
}

.cnp-episode-drawer-sheet {
    width: 100%;
    max-width: 440px;
    max-height: 74dvh;
    background: #121217;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cnp-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cnp-drawer-movie-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cnp-drawer-movie-info img {
    width: 42px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cnp-drawer-movie-text {
    min-width: 0;
}

.cnp-drawer-movie-text h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnp-drawer-movie-text p {
    font-size: 12px;
    color: #a1a1aa;
    margin: 0;
}

.cnp-drawer-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cnp-drawer-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px 4px 16px;
}

.cnp-drawer-tab-btn {
    flex: 1;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #a1a1aa;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cnp-drawer-tab-btn.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.cnp-drawer-list {
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px)) 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.cnp-drawer-ep-card {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1a22;
    border-radius: 10px;
    padding: 11px 12px;
    color: #e4e4e7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
}

.cnp-drawer-ep-card:hover {
    background: #24242f;
    border-color: rgba(255, 255, 255, 0.22);
}

.cnp-drawer-ep-card.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: #ffffff;
    color: #ffffff;
}

.cnp-drawer-ep-left {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
}

.cnp-drawer-ep-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
}

.cnp-drawer-ep-badge.free {
    background: rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
}

.cnp-drawer-ep-badge.vip {
    background: rgba(245, 197, 24, 0.16);
    color: #f5c518;
    border: 1px solid rgba(245, 197, 24, 0.35);
}

/* --------------------------------------------------------------------------
   11. NÚT ĐIỀU HƯỚNG TRÊN PC & TRẠNG THÁI TRỐNG
   -------------------------------------------------------------------------- */
.cnp-shots-pc-nav {
    position: fixed;
    right: calc(50% - 285px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 55;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cnp-pc-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(20, 20, 26, 0.9);
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cnp-pc-nav-btn:hover {
    background: rgba(40, 40, 52, 0.95);
}

.cnp-shots-empty-box {
    width: 100%;
    max-width: 360px;
    padding: 32px 24px;
    border-radius: 18px;
    background: #121217;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #ffffff;
    margin: 0 16px;
}

.cnp-shots-empty-box i.empty-main-icon {
    font-size: 38px;
    color: #a1a1aa;
    margin-bottom: 12px;
}

.cnp-shots-empty-box h3 {
    font-size: 17px;
    margin: 0 0 8px 0;
}

.cnp-shots-empty-box p {
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

/* --------------------------------------------------------------------------
   12. TỐI ƯU RESPONSIVE TOÀN DIỆN CHO MỌI KHUNG HÌNH & THIẾT BỊ
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .cnp-shots-pc-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Tối ưu Hero Banner trên Mobile: Không bao giờ bị thanh tìm kiếm / Dynamic Island đè lên chữ */
    .hero {
        height: auto !important;
        min-height: calc(440px + env(safe-area-inset-top, 0px)) !important;
        padding: calc(156px + env(safe-area-inset-top, 0px)) calc(18px + env(safe-area-inset-right, 0px)) 30px calc(18px + env(safe-area-inset-left, 0px)) !important;
        align-items: flex-end !important;
    }

    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .hero-brand-badge {
        margin-bottom: 8px !important;
        padding: 4px 10px !important;
    }

    .hero-brand-badge-text {
        font-size: 10.5px !important;
    }

    .hero-content h1.hero-main-title {
        width: 100% !important;
        font-size: 21px !important;
        line-height: 1.35 !important;
        margin: 0 0 8px 0 !important;
        letter-spacing: -0.2px !important;
    }

    .hero-content p.hero-description {
        width: 100% !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin: 0 0 14px 0 !important;
    }

    /* CỤM NÚT BỐ CỤC CHUẨN GỐC */
    /* Hàng 1: [ ▶ Xem Ngay ] và [ 🎞 Xem Reels ] chia đôi 50% - 50% cân đối tuyệt đối */
    .hero-buttons {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 0 8px 0 !important;
    }

    .hero-buttons .play-btn,
    .hero-buttons .cnp-hero-shots-btn {
        flex: 1 1 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        margin: 0 !important;
        padding: 11px 8px !important;
        font-size: 14px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        height: 44px !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }

    /* Hàng 2: [ 👑 Nâng Cấp Premium ] trải rộng 100% phía dưới gọn gàng */
    .hero-content .premium-hero-btn {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 11px 14px !important;
        font-size: 14px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        height: 44px !important;
        box-sizing: border-box !important;
    }

    /* Kệ Xem Reels ngoài trang chủ trên Mobile */
    .cnp-shelf-header {
        gap: 10px;
        margin-bottom: 14px;
    }

    .cnp-shelf-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
        border-radius: 10px;
    }

    .cnp-shelf-title {
        font-size: 20px;
    }

    .cnp-shelf-subtitle {
        font-size: 11.5px;
    }

    .cnp-shelf-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .cnp-shelf-more-btn {
        padding: 7px 13px;
        font-size: 12px;
    }

    /* Sân khấu Xem Reels toàn màn hình trên Mobile */
    .cnp-shot-stage-shell {
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .cnp-shots-topbar {
        padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 8px 10px;
        gap: 6px;
    }

    .cnp-shots-back-btn span {
        display: none;
    }

    .cnp-shots-back-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        flex-shrink: 0;
    }

    .cnp-shots-feed-tabs {
        padding: 3px;
        gap: 2px;
    }

    .cnp-shots-feed-tab {
        font-size: 12px;
        padding: 5px 10px;
        gap: 5px;
    }

    .cnp-shots-icon-btn {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .cnp-shot-media-switcher-wrap {
        padding-top: calc(54px + env(safe-area-inset-top, 0px));
    }

    /* Nút Vừa khung nằm bên trái, hoàn toàn tách biệt với cột Avatar bên phải */
    .cnp-shot-video-tools {
        top: calc(92px + env(safe-area-inset-top, 0px));
        left: 10px;
        right: auto;
    }

    .cnp-shot-vtool-btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .cnp-shot-audio-stage {
        padding: 84px 58px 185px 14px;
    }

    .cnp-vinyl-record-wrap {
        width: 140px;
        height: 140px;
        margin-bottom: -54px;
    }

    /* Cột tương tác bên phải gọn gàng, không đụng Topbar hay Bottom Deck */
    .cnp-shot-right-dock {
        right: 10px;
        bottom: 168px;
        gap: 11px;
    }

    .cnp-shot-author-avatar-box {
        width: 42px;
        height: 42px;
        margin-bottom: 5px;
    }

    .cnp-shot-action-circle {
        width: 39px;
        height: 39px;
        font-size: 15.5px;
    }

    .cnp-shot-action-label {
        font-size: 10.5px;
    }

    /* Khu vực điều khiển đáy trên Mobile: Tất cả 5 nút nằm gọn trên 1 hàng, không bao giờ bị tràn */
    .cnp-shot-bottom-deck {
        padding: 20px 12px calc(12px + env(safe-area-inset-bottom, 0px)) 12px;
        gap: 8px;
    }

    .cnp-shot-meta-row,
    .cnp-shot-movie-title {
        padding-right: 48px;
    }

    .cnp-shot-movie-title {
        font-size: 15.5px;
    }

    .cnp-shot-controls-row {
        gap: 4px;
    }

    .cnp-shot-ctrl-left,
    .cnp-shot-ctrl-right {
        gap: 4px;
    }

    .cnp-shot-play-main-btn {
        padding: 6px 11px;
        font-size: 11.5px;
        gap: 5px;
    }

    .cnp-shot-mini-ctrl-btn {
        padding: 5px 8px;
        font-size: 11px;
        gap: 3px;
    }

    .cnp-shot-mini-card {
        width: 148px !important;
        min-width: 148px !important;
        max-width: 148px !important;
        height: 226px !important;
        flex: 0 0 148px !important;
    }
}

/* Màn hình điện thoại nhỏ (iPhone SE / Mini / 360px - 390px) */
@media (max-width: 390px) {
    .hero-content h1.hero-main-title {
        font-size: 18.5px !important;
        line-height: 1.35 !important;
    }

    .hero-buttons .play-btn,
    .hero-buttons .cnp-hero-shots-btn {
        font-size: 13px !important;
        padding: 10px 6px !important;
        height: 42px !important;
    }

    .hero-content .premium-hero-btn {
        font-size: 13px !important;
        padding: 10px 10px !important;
        height: 42px !important;
    }

    .cnp-shots-feed-tab {
        font-size: 11px;
        padding: 5px 8px;
    }

    .cnp-shot-play-main-btn {
        padding: 5px 9px;
        font-size: 11px;
    }

    .cnp-shot-mini-ctrl-btn {
        padding: 5px 7px;
        font-size: 10.5px;
    }
}

/* Màn hình điện thoại chiều dọc thấp (< 740px) */
@media (max-height: 740px) and (max-width: 768px) {
    .cnp-shot-right-dock {
        bottom: 156px;
        gap: 8px;
    }

    .cnp-shot-author-avatar-box {
        width: 38px;
        height: 38px;
        margin-bottom: 4px;
    }

    .cnp-shot-action-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .cnp-vinyl-record-wrap {
        width: 122px;
        height: 122px;
        margin-bottom: -48px;
    }

    .cnp-artwork-sleeve {
        max-height: 250px;
    }
}
