/* ============================================
   LYNK VIDEO SECTION - Glassmorphism + Emerald & Deep Sea
   ============================================ */

/* Font được load qua functions.php để tránh block rendering */

.lynk-video-section {
    max-width: 1400px;
    margin: 100px auto 20px;
    padding: 20px;
    font-family: 'Quicksand', sans-serif;
    position: relative;
    min-height: 600px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.15s ease-out, filter 0.15s ease-out, transform 0.15s ease-out;
    transition-delay: 0s;
}

.lynk-video-section.v-section-hidden,
.v-final-art-system.v-section-hidden {
    opacity: 0.2;
    filter: blur(4px) brightness(0.3);
    transform: scale(0.98);
    pointer-events: none;
    z-index: 1;
}

/* Portal Navigation */
.v-portal-nav {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

.v-portal-link {
    text-decoration: none !important;
    color: rgba(0, 242, 173, 0.4);
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 700;
    transition: 0.4s;
    position: relative;
}

.v-portal-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background: #00F2AD;
    transition: 0.4s;
}

.v-portal-link:hover {
    color: #00F2AD !important;
    text-shadow: 0 0 10px #00F2AD;
}

.v-portal-link:hover::after {
    width: 100%;
}

/* Film Strip Container */
.v-film-strip-container {
    position: relative;
    width: 100%;
    padding: 40px 0;
    margin: auto 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    display: flex;
    align-items: center;
    transform: translateX(100%);
    opacity: 0;
}

/* Animation trượt từ phải vào khi vào trang #video */
.v-film-strip-container.v-animate-in {
    animation: slideInFromRightVideo 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInFromRightVideo {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.v-film-strip-container.v-slide-left {
    transform: translateX(-70%);
    pointer-events: none;
}

/* Film Strip Navigation Buttons - Giống Fashion với SVG */
.v-film-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    color: #00F2AD;
    cursor: pointer;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 11;
    padding: 0;
    opacity: 0.5;
}

.v-film-nav-btn svg {
    width: 60px;
    height: 60px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.v-film-nav-btn:hover {
    background: transparent !important;
    border: none !important;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    color: #00F2AD;
}

.v-film-nav-btn:hover svg {
    filter: drop-shadow(0 0 20px #00F2AD);
}

.v-film-prev {
    left: -70px;
}

.v-film-next {
    right: -70px;
}

/* CONTAINER CHỨA CẢ DẢI PHIM */
.v-film-strip {
    position: relative;
    width: 100%;
    /* 1. Nền kính mờ */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    padding: 40px 20px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* 2. CHIẾN THUẬT MỚI: Dùng Mask để đục thủng */
    /* Chúng ta vẽ một tấm bình phong đen toàn bộ, sau đó đục lỗ lên tấm đó */
    -webkit-mask-image:
        linear-gradient(#000, #000),
        /* Lớp nền giữ lại toàn bộ kính */
        repeating-linear-gradient(to right, #000 0, #000 14px, transparent 14px, transparent 30px),
        /* Dải đục trên */
        repeating-linear-gradient(to right, #000 0, #000 14px, transparent 14px, transparent 30px);
    /* Dải đục dưới */
    mask-image:
        linear-gradient(#000, #000),
        repeating-linear-gradient(to right, #000 0, #000 14px, transparent 14px, transparent 30px),
        repeating-linear-gradient(to right, #000 0, #000 14px, transparent 14px, transparent 30px);

    /* Định vị kích thước cho từng dải - gần với nội dung hơn */
    -webkit-mask-size: 100% 100%, 100% 16px, 100% 16px;
    mask-size: 100% 100%, 100% 16px, 100% 16px;
    -webkit-mask-position: 0 0, top 5px left 0, bottom 5px left 0;
    mask-position: 0 0, top 5px left 0, bottom 5px left 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    /* QUAN TRỌNG: Lệnh loại trừ để đục lỗ thủng ra khỏi nền kính */
    -webkit-mask-composite: source-out;
    mask-composite: exclude;
}

/* ĐẢM BẢO NỘI DUNG KHÔNG BỊ MẤT */
.v-film-strip>* {
    position: relative;
    z-index: 2;
}

/* Xóa bỏ hoàn toàn các lớp giả lập cũ */
.v-film-strip::before,
.v-film-strip::after {
    content: none !important;
    display: none !important;
}

.v-film-strip-content {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 10px;
    scroll-behavior: smooth;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.v-film-strip-content::-webkit-scrollbar {
    display: none;
}

.v-film-strip-content:active {
    cursor: grabbing;
}

/* Film Frame (Playlist Item) */
.v-film-frame {
    flex: 0 0 280px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 242, 173, 0.3);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.v-film-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 173, 0.2), transparent);
    transition: left 0.5s;
}

.v-film-frame:hover::before {
    left: 100%;
}

.v-film-frame:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #00F2AD;
    box-shadow: 0 8px 30px rgba(0, 242, 173, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.v-frame-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.v-frame-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.v-film-frame:hover .v-frame-thumb::after {
    opacity: 1;
}

.v-frame-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
}

.v-frame-count {
    font-size: 0.85rem;
    color: #00F2AD;
    text-align: center;
    opacity: 0.7;
}

/* Clips Container */
.v-clips-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -100%;
    width: 85%;
    max-width: 1400px;
    height: auto;
    min-height: 500px;
    max-height: calc(100vh - 250px);
    margin-top: 0;
    padding: 30px 30px 25px;
    background: linear-gradient(135deg, rgba(0, 242, 173, 0.15) 0%, rgba(0, 150, 200, 0.2) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 2px solid rgba(0, 242, 173, 0.4);
    box-shadow:
        0 0 0 1px rgba(0, 242, 173, 0.2),
        0 0 40px rgba(0, 242, 173, 0.3),
        0 0 80px rgba(0, 242, 173, 0.2),
        inset 0 0 60px rgba(0, 242, 173, 0.1);
    transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    overflow-y: auto;
    overflow-x: visible;
    opacity: 0;
    pointer-events: none;
}

.v-clips-container.v-slide-in {
    right: 0;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%);
}

.v-back-btn {
    background: rgba(0, 242, 173, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 242, 173, 0.4);
    color: #00F2AD;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 0;
    display: inline-block;
}

.v-back-btn:hover {
    background: transparent !important;
    border-color: #00F2AD;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 242, 173, 0.5);
}

.v-back-btn:active,
.v-back-btn:focus,
.v-back-btn:focus-visible {
    background: transparent !important;
    border-color: #00F2AD;
    color: #fff;
    outline: none !important;
    box-shadow: 0 0 15px rgba(0, 242, 173, 0.5);
}

.v-clips-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 50px;
}

.v-clips-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00F2AD;
    text-shadow: 0 0 10px rgba(0, 242, 173, 0.5);
    margin: 0;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    pointer-events: none;
}

.v-back-btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.v-clips-grid-wrapper {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.v-clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 15px;
    padding: 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    position: relative;
}

.v-clips-grid::-webkit-scrollbar {
    display: none;
}

.v-clips-grid:active {
    cursor: grabbing;
}

.v-clips-nav-btn {
    position: static;
    background: rgba(0, 242, 173, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 242, 173, 0.4) !important;
    border-radius: 0;
    color: #00F2AD;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 25;
    opacity: 0.7;
    padding: 0;
    margin: 0;
}

.v-clips-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.v-clips-nav-btn:hover {
    background: rgba(0, 242, 173, 0.3) !important;
    border-color: #00F2AD !important;
    opacity: 1;
    transform: scale(1.05);
    color: #fff;
}

.v-clips-nav-btn:hover svg {
    filter: drop-shadow(0 0 20px #00F2AD);
}

.v-clips-nav-btn.show {
    display: flex;
}

.v-clips-nav-group {
    display: flex;
    gap: 0;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.v-clips-prev-btn {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-right: 1px solid rgba(0, 242, 173, 0.4);
}

.v-clips-next-btn {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.v-clip-item {
    width: 200px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 242, 173, 0.3);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.v-clip-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #00F2AD;
    box-shadow: 0 8px 30px rgba(0, 242, 173, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.v-clip-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 112.5px;
    overflow: hidden;
}

.v-clip-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.v-clip-item:hover .v-clip-thumb {
    transform: scale(1.1);
}

.v-clip-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.v-clip-item:hover .v-clip-play-overlay {
    opacity: 1;
}

.v-play-icon {
    width: 60px;
    height: 60px;
    color: #00F2AD;
    filter: drop-shadow(0 0 10px rgba(0, 242, 173, 0.8));
}

.v-clip-info {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.v-clip-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v-clip-duration {
    font-size: 0.7rem;
    color: #00F2AD;
    opacity: 0.8;
    margin-top: auto;
}

.v-clips-loading,
.v-clips-empty,
.v-clips-error {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Video Modal */
.v-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed !important;
}

.v-video-modal.v-modal-open {
    opacity: 1;
    pointer-events: auto;
    z-index: 100000;
}

.v-video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 242, 173, 0.5) 0%, rgba(0, 200, 150, 0.6) 50%, rgba(0, 150, 200, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.v-video-modal-overlay.v-overlay-visible {
    opacity: 1;
}

.v-video-modal-container {
    position: relative;
    z-index: 100000;
    background: linear-gradient(135deg, rgba(0, 242, 173, 0.85) 0%, rgba(0, 200, 150, 0.9) 50%, rgba(0, 150, 200, 0.85) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2px solid rgba(0, 242, 173, 0.5);
    border-radius: 20px;
    width: 92%;
    max-width: 1200px;
    max-height: 90vh;
    box-shadow:
        0 0 0 1px rgba(0, 242, 173, 0.3),
        0 0 60px rgba(0, 242, 173, 0.5),
        0 0 120px rgba(0, 242, 173, 0.3),
        inset 0 0 80px rgba(0, 242, 173, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.92) translateY(30px);
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

.v-video-modal-container.v-container-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.v-video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 242, 173, 0.4);
    border-radius: 50%;
    color: #00F2AD;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100002;
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    padding: 0;
    box-shadow:
        0 0 0 0 rgba(0, 242, 173, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

.v-video-modal-close:hover {
    background: rgba(0, 242, 173, 0.3);
    border-color: #00F2AD;
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow:
        0 0 0 4px rgba(0, 242, 173, 0.2),
        0 0 20px rgba(0, 242, 173, 0.6),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

.v-video-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00F2AD;
    padding: 25px 30px 15px;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 242, 173, 0.5);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    font-family: 'Quicksand', sans-serif;
    text-transform: uppercase;
    background: linear-gradient(135deg, #F7E7CE 0%, #00F2AD 50%, #F7E7CE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
}

.v-video-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px 30px;
    position: relative;
}

.v-video-modal-body::-webkit-scrollbar {
    display: none;
    width: 0;
}

.v-video-modal-body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.v-video-nav {
    display: none !important;
}

/* Ẩn music player khi video modal mở - KHÔNG dùng display: none để tránh reset layout */
.v-video-modal.v-modal-open~.lynk-main-ui,
body:has(.v-video-modal.v-modal-open) .lynk-main-ui {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    /* KHÔNG thay đổi position để giữ nguyên layout */
    /* Chỉ đưa xuống dưới video modal về mặt z-index */
    z-index: 1 !important;
    /* Đảm bảo không bị ảnh hưởng bởi transform hoặc transition của modal */
    transform: none !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* Sửa fullscreen cho presto player và iframe trong video modal */
/* Sử dụng :has và class .v-is-fullscreen (JS toggled) */
.v-video-modal-container.v-is-fullscreen,
.v-video-modal-container:has(:fullscreen),
.v-video-modal-container:has(iframe:fullscreen),
.v-video-modal-container:has(video:fullscreen),
.v-video-modal-container:has(.plyr--fullscreen-fallback),
.v-video-modal-container:has(.plyr--fullscreen-active),
.v-video-modal-container:has(.elementor-video-iframe:fullscreen) {
    max-height: none !important;
    height: 100vh !important;
    max-width: none !important;
    width: 100vw !important;
    transform: none !important;
    /* Quan trọng: remove transform để fix context */
    overflow: visible !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    inset: 0 !important;
    position: fixed !important;
    z-index: 2147483647 !important;
    background: #000 !important;
    /* Nền đen khi fullscreen */
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Force video/iframe to fill container */
.v-video-modal-container.v-is-fullscreen iframe,
.v-video-modal-container.v-is-fullscreen video,
.v-video-modal-container.v-is-fullscreen .presto-player__wrapper,
.v-video-modal-container.v-is-fullscreen .plyr,
.v-video-modal-container:has(:fullscreen) iframe,
.v-video-modal-container:has(:fullscreen) video,
.v-video-modal-container:has(:fullscreen) .presto-player__wrapper,
.v-video-modal-container:has(:fullscreen) .plyr,
.v-video-modal-container:has(.plyr--fullscreen-fallback) iframe,
.v-video-modal-container:has(.plyr--fullscreen-fallback) video {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2147483647 !important;
    background: #000 !important;
}

/* Ẩn các thành phần không cần thiết khi fullscreen */
.v-video-modal-container.v-is-fullscreen .v-video-modal-close,
.v-video-modal-container.v-is-fullscreen .v-video-modal-title,
.v-video-modal-container.v-is-fullscreen .v-video-nav,
.v-video-modal-container:has(:fullscreen) .v-video-modal-close,
.v-video-modal-container:has(:fullscreen) .v-video-modal-title,
.v-video-modal-container:has(:fullscreen) .v-video-nav {
    display: none !important;
}

.v-video-nav-btn {
    background: transparent !important;
    border: none !important;
    color: #00F2AD;
    cursor: pointer;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0.5;
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    padding: 10px;
}

.v-video-nav-btn svg {
    width: 50px;
    height: 50px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.v-video-nav-btn:hover {
    background: transparent !important;
    border: none !important;
    opacity: 1;
    transform: scale(1.1);
    color: #00F2AD;
}

.v-video-nav-btn:hover svg {
    filter: drop-shadow(0 0 20px #00F2AD);
}

.v-video-prev {
    margin-left: 40px;
}

.v-video-next {
    margin-right: 40px;
}

.v-video-loading,
.v-video-error {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.v-video-embed {
    width: 100%;
    margin: 20px 0;
}

.v-video-embed iframe,
.v-video-embed video {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 173, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .v-film-prev {
        left: -10px;
    }

    .v-film-prev svg {
        width: 50px;
        height: 50px;
    }

    .v-film-next {
        right: -10px;
    }

    .v-film-next svg {
        width: 50px;
        height: 50px;
    }

    .v-clips-container {
        width: 90%;
    }
}

@media (max-width: 900px) {

    .v-film-prev,
    .v-film-next {
        width: 50px;
        height: 50px;
    }

    .v-film-prev svg,
    .v-film-next svg {
        width: 40px;
        height: 40px;
    }

    .v-film-prev {
        left: 5px;
    }

    .v-film-next {
        right: 5px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .lynk-video-section {
        margin: 60px auto 20px;
        padding: 15px;
        max-width: 100%;
        min-height: auto;
        height: auto;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .v-film-strip-container {
        position: relative;
        transform: none;
        opacity: 1;
    }

    .v-film-strip {
        padding: 25px 18px;
        width: 92%;
        max-width: 720px;
        margin: 0 auto;
        /* Đục lỗ dọc hai bên cho mobile/tablet */
        -webkit-mask-image:
            linear-gradient(#000, #000),
            repeating-linear-gradient(to bottom, #000 0, #000 14px, transparent 14px, transparent 30px),
            repeating-linear-gradient(to bottom, #000 0, #000 14px, transparent 14px, transparent 30px);
        mask-image:
            linear-gradient(#000, #000),
            repeating-linear-gradient(to bottom, #000 0, #000 14px, transparent 14px, transparent 30px),
            repeating-linear-gradient(to bottom, #000 0, #000 14px, transparent 14px, transparent 30px);
        -webkit-mask-size: 100% 100%, 16px 100%, 16px 100%;
        mask-size: 100% 100%, 16px 100%, 16px 100%;
        -webkit-mask-position: 0 0, left 2px top 0, right 2px top 0;
        mask-position: 0 0, left 2px top 0, right 2px top 0;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    .v-film-strip-content {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: calc(100vh - 300px);
        gap: 15px;
        padding: 15px 10px;
        touch-action: pan-y;
        overscroll-behavior: contain;
    }

    .v-film-frame {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .v-film-prev,
    .v-film-next {
        display: none !important;
    }

    .v-clips-container {
        position: relative;
        top: auto;
        transform: none;
        right: auto;
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 200px);
        margin-top: 10px;
        padding: 25px 20px 20px;
        overscroll-behavior: contain;
    }

    .v-clips-grid-wrapper {
        padding: 15px 20px;
    }

    .v-clips-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        grid-auto-flow: row;
        gap: 12px;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 50vh;
        overscroll-behavior: contain;
    }

    .v-clip-item {
        width: 100%;
    }
}

/* Mobile - VERTICAL SLIDER */
@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {

    /* Section container - VERTICAL SLIDER */
    #video {
        position: relative !important;
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .lynk-video-section {
        margin: 0 auto;
        padding: 60px 15px 20px 15px;
        min-height: auto;
        height: 100% !important;
        max-height: 100vh !important;
        overflow-y: auto;
        display: flex !important;
        flex-direction: column !important;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .v-portal-nav {
        display: none !important;
    }

    .v-portal-link {
        display: none !important;
    }

    .v-film-strip-container {
        position: relative;
        transform: none;
        opacity: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 25px !important;
        /* Dịch lên 15px (từ 40px → 25px) */
    }

    .v-film-strip {
        padding: 20px 18px;
        border-radius: 16px;
        width: 94%;
        max-width: 520px;
        margin: 0 auto;
        /* Đục lỗ dọc hai bên cho mobile */
        -webkit-mask-image:
            linear-gradient(#000, #000),
            repeating-linear-gradient(to bottom, #000 0, #000 14px, transparent 14px, transparent 30px),
            repeating-linear-gradient(to bottom, #000 0, #000 14px, transparent 14px, transparent 30px);
        mask-image:
            linear-gradient(#000, #000),
            repeating-linear-gradient(to bottom, #000 0, #000 14px, transparent 14px, transparent 30px),
            repeating-linear-gradient(to bottom, #000 0, #000 14px, transparent 14px, transparent 30px);
        -webkit-mask-size: 100% 100%, 16px 100%, 16px 100%;
        mask-size: 100% 100%, 16px 100%, 16px 100%;
        -webkit-mask-position: 0 0, left 2px top 0, right 2px top 0;
        mask-position: 0 0, left 2px top 0, right 2px top 0;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    .v-film-strip-content {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 60vh;
        gap: 15px;
        padding: 15px 10px;
        flex: 1 !important;
        display: flex;
        align-items: center;
        touch-action: pan-y;
        overscroll-behavior: contain;
    }

    .v-film-frame {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        padding: 12px;
    }

    /* Disable hover/zoom effects on touch devices */
    .v-film-frame,
    .v-clip-item,
    .v-clip-thumb,
    .v-clip-play-overlay,
    .v-frame-thumb::after {
        transition: none !important;
    }

    .v-film-frame:hover {
        transform: none !important;
        border-color: rgba(0, 242, 173, 0.3) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        background: rgba(0, 0, 0, 0.4) !important;
    }

    .v-film-frame:hover::before {
        left: -100% !important;
    }

    .v-film-frame:hover .v-frame-thumb::after {
        opacity: 0 !important;
    }

    .v-clip-item:hover {
        transform: none !important;
        border-color: rgba(0, 242, 173, 0.3) !important;
        box-shadow: none !important;
        background: rgba(0, 0, 0, 0.4) !important;
    }

    .v-clip-item:hover .v-clip-thumb {
        transform: none !important;
    }

    .v-clip-item:hover .v-clip-play-overlay {
        opacity: 0 !important;
    }

    .v-frame-title {
        font-size: 1rem;
    }

    .v-frame-count {
        font-size: 0.8rem;
    }

    .v-film-prev,
    .v-film-next {
        display: none !important;
    }

    .v-clips-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        padding: 20px 15px 15px;
        max-height: calc(100vh - 180px);
        margin-top: 95px !important;
        /* Cách top 95px (thêm 15px) */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 100;
        background: linear-gradient(135deg, rgba(0, 242, 173, 0.15) 0%, rgba(0, 150, 200, 0.2) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-radius: 16px;
        border: 2px solid rgba(0, 242, 173, 0.4);
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
        overscroll-behavior: contain;
    }

    .v-clips-container.v-slide-in {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .v-clips-header {
        margin-bottom: 15px;
    }

    .v-clips-title {
        font-size: 1.2rem;
    }

    .v-back-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .v-clips-grid-wrapper {
        padding: 15px 15px;
    }

    .v-clips-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-auto-flow: row;
        gap: 12px;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 45vh;
        overscroll-behavior: contain;
    }

    .v-clip-item {
        width: 100%;
    }

    .v-clip-thumb-wrapper {
        height: 90px;
    }

    .v-clip-title {
        font-size: 0.8rem;
    }

    .v-clip-duration {
        font-size: 0.65rem;
    }

    .v-video-modal {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        overflow-y: auto;
    }

    .v-video-modal-container {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        border-radius: 16px;
        padding: 15px;
        margin: auto;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .v-video-modal-container.v-container-visible {
        transform: translateX(0) !important;
    }

    .v-video-modal-title {
        font-size: 1.2rem;
        padding: 20px 20px 12px;
    }

    .v-video-modal-body {
        padding: 15px 20px 20px;
    }
}

/* Small Mobile - VERTICAL SLIDER */
@media (max-width: 480px) {
    #video {
        height: 100vh !important;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .v-portal-nav {
        display: none !important;
    }

    .v-portal-link {
        display: none !important;
    }

    .lynk-video-section {
        margin: 0 auto;
        padding: 50px 10px 15px 10px;
        max-height: 100vh !important;
        height: 100% !important;
        overflow-y: auto;
        display: flex !important;
        flex-direction: column !important;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .v-film-strip-container {
        position: relative;
        transform: none;
        opacity: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 25px !important;
        /* Dịch lên 15px (từ 40px → 25px) */
    }

    .v-film-strip {
        padding: 15px 16px;
        border-radius: 12px;
        width: 94%;
        max-width: 380px;
        margin: 0 auto;
        /* Đục lỗ dọc hai bên cho mobile nhỏ */
        -webkit-mask-image:
            linear-gradient(#000, #000),
            repeating-linear-gradient(to bottom, #000 0, #000 14px, transparent 14px, transparent 30px),
            repeating-linear-gradient(to bottom, #000 0, #000 14px, transparent 14px, transparent 30px);
        mask-image:
            linear-gradient(#000, #000),
            repeating-linear-gradient(to bottom, #000 0, #000 14px, transparent 14px, transparent 30px),
            repeating-linear-gradient(to bottom, #000 0, #000 14px, transparent 14px, transparent 30px);
        -webkit-mask-size: 100% 100%, 16px 100%, 16px 100%;
        mask-size: 100% 100%, 16px 100%, 16px 100%;
        -webkit-mask-position: 0 0, left 0 top 0, right 0 top 0;
        mask-position: 0 0, left 0 top 0, right 0 top 0;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    .v-film-strip-content {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 60vh;
        gap: 12px;
        padding: 12px 8px;
        display: flex;
        align-items: center;
        touch-action: pan-y;
        overscroll-behavior: contain;
    }

    .v-film-frame {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 10px;
    }

    .v-portal-nav {
        margin-bottom: 12px;
        padding: 0 5px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .v-portal-link {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .v-frame-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .v-frame-count {
        font-size: 0.75rem;
    }

    .v-film-prev,
    .v-film-next {
        display: none !important;
    }

    .v-clips-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        padding: 18px 12px 12px;
        max-height: calc(100vh - 180px);
        margin-top: 95px !important;
        /* Cách top 95px (thêm 15px) */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 100;
        background: linear-gradient(135deg, rgba(0, 242, 173, 0.15) 0%, rgba(0, 150, 200, 0.2) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-radius: 12px;
        border: 2px solid rgba(0, 242, 173, 0.4);
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
        overscroll-behavior: contain;
    }

    .v-clips-container.v-slide-in {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .v-clips-title {
        font-size: 1rem;
    }

    .v-back-btn {
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    .v-clips-grid-wrapper {
        padding: 12px 12px;
    }

    .v-clips-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        grid-auto-flow: row;
        gap: 10px;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 40vh;
        overscroll-behavior: contain;
    }

    .v-clip-item {
        width: 100%;
    }

    .v-clip-thumb-wrapper {
        height: 67.5px;
    }

    .v-clip-info {
        padding: 8px 10px 10px;
    }

    .v-clip-title {
        font-size: 0.75rem;
    }

    .v-clip-duration {
        font-size: 0.6rem;
    }

    .v-video-modal {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        overflow-y: auto;
    }

    .v-video-modal-container {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        border-radius: 16px;
        padding: 15px;
        margin: auto;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .v-video-modal-container.v-container-visible {
        transform: translateX(0) !important;
    }

    .v-video-modal-title {
        font-size: 1rem;
        padding: 15px 15px 10px;
    }

    .v-video-modal-body {
        padding: 10px 15px 15px;
    }
}