/* ============================================
   VLXX.COM - Main Stylesheet
   Clone giao diện gốc: dark theme, sát lề, grid chặt
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #1c1c1c;
    color: #d0d0d0;
    line-height: 1.4;
    min-height: 100vh;
}

a {
    color: #d0d0d0;
    text-decoration: none;
}

a:hover {
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* === Header === */
.site-header {
    background: #111;
    padding: 12px 0 8px;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: #cc0000 !important;
    letter-spacing: 2px;
    font-style: italic;
    text-transform: uppercase;
    font-family: 'Times New Roman', serif;
}

.logo:hover {
    color: #e60000 !important;
}

/* === Navigation — 1 dòng, compact === */
.site-nav {
    background: #1b1b1b;
    padding: 8px 0 3px;
}

.nav-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-bottom: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    color: #dedede;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    background: #252525;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.35;
}

.nav-link:hover {
    color: #ffffff;
    background: #363636;
    border-color: #555555;
}

.nav-link.active {
    background: #97332b;
    border-color: #97332b;
    color: #ffffff;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.nav-icon .fa {
    font-size: 13px;
    line-height: 1;
}

.nav-row-2 {
    margin-bottom: 0;
}

/* === Search Bar Section — PHIM SEX MỚI + search trên 1 dòng === */
.search-bar-section {
    background: #1c1c1c;
    padding: 8px 0 4px;
}

.search-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #d0d0d0;
    text-transform: uppercase;
    word-break: break-word;
    line-height: 1.4;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 350px;
    width: 100%;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #777;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 6px 10px 6px 28px;
    background: #2a2a2a;
    border: 1px solid #555;
    border-right: none;
    border-radius: 3px 0 0 3px;
    color: #d0d0d0;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.search-input:focus {
    border-color: #888;
}

.search-input::placeholder {
    color: #666;
    font-size: 12px;
}

.search-btn {
    padding: 6px 14px;
    background: #cc0000;
    color: #fff;
    border: 1px solid #cc0000;
    border-radius: 0 3px 3px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}

.search-btn:hover {
    background: #e60000;
}

/* === Movie Grid — 5 cột, gap nhỏ, sát nhau === */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 4px 0;
}

.movie-card {
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 200px 180px;
}

.movie-card a {
    display: block;
    color: inherit;
}

.movie-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 68%; /* tỉ lệ khớp giao diện gốc */
    aspect-ratio: 300 / 204;
    overflow: hidden;
    background: #2a2a2a;
}

.movie-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.movie-card:hover .movie-thumb {
    transform: scale(1.04);
}

/* Quality Badge */
.quality-badge {
    position: absolute;
    top: 8px;
    left: 0;
    padding: 3px 7px 3px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    border-left: 3px solid #ff3333;
    border-radius: 0 4px 4px 0;
    letter-spacing: 0.3px;
}

/* Movie title */
.movie-title {
    padding: 6px 2px 10px;
    font-size: 13px;
    color: #bbb;
    line-height: 1.35;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover .movie-title {
    color: #fff;
}

/* === Video Player Container & Cinema Styles === */
.player-container {
    width: 100%;
    margin-bottom: 14px;
    position: relative;
    transition: all 0.3s ease;
}

.vl-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.3s ease;
}


/* Video Viewport */
.vl-video-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

.player-video,
.player-iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
    border: none;
}

/* Center Big Play Button */
.vl-center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    z-index: 5;
    padding: 0;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, border-color 0.2s, opacity 0.3s, visibility 0.3s;
}

.vl-center-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(204, 0, 0, 0.9);
    border-color: #ff3333;
    box-shadow: 0 0 30px rgba(204, 0, 0, 0.7);
}

.vl-icon-play-huge {
    width: 32px;
    height: 32px;
    fill: currentColor;
    margin-left: 4px;
}

.vl-player-wrapper.playing .vl-center-play-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

.vl-player-wrapper.paused .vl-center-play-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Toast Feedback */
.vl-feedback-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
    opacity: 0;
    z-index: 8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.vl-feedback-toast.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Gesture Feedback for Mobile Double Tap */
.vl-gesture-feedback {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 38%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    pointer-events: none;
    opacity: 0;
    z-index: 6;
    transition: opacity 0.25s ease;
}

.vl-gesture-feedback.left {
    left: 0;
    background: radial-gradient(circle at left center, rgba(204, 0, 0, 0.35) 0%, transparent 75%);
}

.vl-gesture-feedback.right {
    right: 0;
    background: radial-gradient(circle at right center, rgba(204, 0, 0, 0.35) 0%, transparent 75%);
}

.vl-gesture-feedback.active {
    opacity: 1;
}

/* ============================================
 * Watermark / Video Corner Logo Mask Overlay
 * ============================================ */
.vl-watermark-cover {
    position: absolute;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    background: rgba(13, 14, 17, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.25s ease, transform 0.2s ease;
}

.vl-wm-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.vl-watermark-cover a.vl-wm-inner {
    pointer-events: auto;
    cursor: pointer;
}

.vl-watermark-cover a.vl-wm-inner:hover .vl-wm-title {
    color: #ff3333;
}

/* Position Options */
.vl-watermark-cover.vl-wm-top-left {
    top: 12px;
    left: 14px;
}

.vl-watermark-cover.vl-wm-top-right {
    top: 12px;
    right: 14px;
}

.vl-watermark-cover.vl-wm-bottom-left {
    bottom: 50px;
    left: 14px;
}

.vl-watermark-cover.vl-wm-bottom-right {
    bottom: 50px;
    right: 14px;
}

/* Size Options (Desktop Default) */
.vl-watermark-cover.vl-wm-cover-large {
    min-width: 175px;
    min-height: 40px;
    padding: 5px 14px;
}

.vl-watermark-cover.vl-wm-normal {
    min-width: 130px;
    min-height: 34px;
    padding: 4px 10px;
}

.vl-watermark-cover.vl-wm-compact {
    min-width: 95px;
    min-height: 28px;
    padding: 3px 8px;
}

/* Watermark Sub-Elements */
.vl-wm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cc0000;
    box-shadow: 0 0 8px rgba(204, 0, 0, 0.9);
    flex-shrink: 0;
    animation: vlWmPulse 2s infinite ease-in-out;
}

@keyframes vlWmPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.vl-wm-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}

.vl-wm-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    transition: color 0.15s ease;
}

.vl-wm-sub {
    font-size: 9.5px;
    font-weight: 600;
    color: #a8b0bc;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.vl-wm-img {
    max-height: 28px;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

/* ============================================
 * Responsive adjustments for Tablet (<= 1024px)
 * ============================================ */
@media (max-width: 1024px) {
    .vl-watermark-cover.vl-wm-top-left {
        top: 10px;
        left: 10px;
    }
    .vl-watermark-cover.vl-wm-top-right {
        top: 10px;
        right: 10px;
    }
    .vl-watermark-cover.vl-wm-bottom-left {
        bottom: 46px;
        left: 10px;
    }
    .vl-watermark-cover.vl-wm-bottom-right {
        bottom: 46px;
        right: 10px;
    }
    .vl-watermark-cover.vl-wm-cover-large {
        min-width: 135px;
        max-width: 165px;
        min-height: 32px;
        padding: 3px 10px;
    }
    .vl-watermark-cover.vl-wm-normal {
        min-width: 105px;
        max-width: 130px;
        min-height: 28px;
        padding: 3px 8px;
    }
    .vl-watermark-cover.vl-wm-compact {
        min-width: 85px;
        max-width: 105px;
        min-height: 24px;
        padding: 2px 6px;
    }
    .vl-wm-inner {
        gap: 6px;
    }
    .vl-wm-title {
        font-size: 11px;
        letter-spacing: 0.4px;
    }
    .vl-wm-sub {
        font-size: 8.5px;
    }
    .vl-wm-dot {
        width: 6px;
        height: 6px;
    }
    .vl-wm-img {
        max-height: 22px;
        max-width: 110px;
    }
}

/* ============================================
 * Responsive adjustments for Mobile Phones (<= 640px)
 * ============================================ */
@media (max-width: 640px) {
    .vl-watermark-cover {
        border-radius: 5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(13, 14, 17, 0.92);
    }
    .vl-watermark-cover.vl-wm-top-left {
        top: 6px;
        left: 7px;
    }
    .vl-watermark-cover.vl-wm-top-right {
        top: 6px;
        right: 7px;
    }
    .vl-watermark-cover.vl-wm-bottom-left {
        bottom: 38px;
        left: 7px;
    }
    .vl-watermark-cover.vl-wm-bottom-right {
        bottom: 38px;
        right: 7px;
    }
    .vl-watermark-cover.vl-wm-cover-large {
        min-width: 95px;
        max-width: 125px;
        min-height: 24px;
        padding: 2px 7px;
    }
    .vl-watermark-cover.vl-wm-normal {
        min-width: 80px;
        max-width: 105px;
        min-height: 22px;
        padding: 2px 6px;
    }
    .vl-watermark-cover.vl-wm-compact {
        min-width: 70px;
        max-width: 90px;
        min-height: 19px;
        padding: 1px 5px;
    }
    .vl-wm-inner {
        gap: 5px;
    }
    .vl-wm-title {
        font-size: 9.5px;
        letter-spacing: 0.3px;
        font-weight: 700;
    }
    .vl-wm-sub {
        font-size: 7.5px;
        letter-spacing: 0.2px;
        opacity: 0.85;
        line-height: 1.1;
    }
    .vl-wm-dot {
        width: 5px;
        height: 5px;
    }
    .vl-wm-img {
        max-height: 18px;
        max-width: 80px;
    }
}

/* Extra small mobile (<= 380px) */
@media (max-width: 380px) {
    .vl-watermark-cover.vl-wm-top-left {
        top: 4px;
        left: 5px;
    }
    .vl-watermark-cover.vl-wm-cover-large {
        min-width: 85px;
        max-width: 110px;
        min-height: 22px;
        padding: 2px 5px;
    }
    .vl-wm-title {
        font-size: 8.8px;
    }
    .vl-wm-sub {
        font-size: 7px;
    }
}

/* Loading Spinner Overlay */
.player-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.player-spinner {
    width: 46px;
    height: 46px;
    border: 3.5px solid rgba(255, 255, 255, 0.18);
    border-top-color: #cc0000;
    border-radius: 50%;
    animation: vlSpin 0.8s linear infinite;
}

@keyframes vlSpin {
    to { transform: rotate(360deg); }
}

.player-status-text {
    color: #eee;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    padding: 0 15px;
}

/* === Controls Bar === */
.vl-controls-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.65) 50%, transparent 100%);
    z-index: 7;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.vl-player-wrapper.show-controls .vl-controls-bar,
.vl-player-wrapper.paused .vl-controls-bar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scrubber / Progress Bar */
.vl-progress-area {
    position: relative;
    width: 100%;
    height: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.vl-progress-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    transition: height 0.15s ease;
}

.vl-progress-area:hover .vl-progress-track {
    height: 7px;
}

.vl-progress-buffer {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    pointer-events: none;
}

.vl-progress-played {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #cc0000;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.8);
    pointer-events: none;
}

.vl-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%) scale(0);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6), 0 0 10px #cc0000;
    transition: transform 0.15s ease;
    pointer-events: none;
}

.vl-progress-area:hover .vl-progress-thumb {
    transform: translate(-50%, -50%) scale(1);
}

.vl-progress-tooltip {
    position: absolute;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(14, 14, 14, 0.95);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Controls Row */
.vl-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vl-ctrl-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vl-btn {
    background: transparent;
    border: none;
    outline: none;
    color: #e0e0e0;
    width: 36px;
    height: 36px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s, background 0.15s, transform 0.1s;
}

.vl-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.vl-btn:active {
    transform: scale(0.92);
}

.vl-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

/* Play/Pause state */
.vl-btn-play .vl-icon-pause {
    display: none;
}

.vl-player-wrapper.playing .vl-btn-play .vl-icon-play {
    display: none;
}

.vl-player-wrapper.playing .vl-btn-play .vl-icon-pause {
    display: block;
}

/* Volume Slider */
.vl-volume-group {
    display: flex;
    align-items: center;
}

.vl-volume-track-wrap {
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: width 0.25s ease, opacity 0.25s ease, margin 0.25s ease;
    display: flex;
    align-items: center;
}

.vl-volume-group:hover .vl-volume-track-wrap,
.vl-volume-track-wrap:focus-within {
    width: 70px;
    opacity: 1;
    margin-left: 4px;
}

.vl-volume-slider {
    accent-color: #cc0000;
    width: 65px;
    height: 4px;
    cursor: pointer;
}

/* Time display */
.vl-time-box {
    color: #bbb;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    margin-left: 6px;
    font-weight: 500;
    white-space: nowrap;
}

.vl-time-current {
    color: #fff;
    font-weight: 600;
}

.vl-time-sep {
    margin: 0 4px;
    color: #666;
}

/* Dropdowns (Speed Menu) */
.vl-dropdown {
    position: relative;
}

.vl-speed-val {
    font-size: 12px;
    font-weight: 700;
    color: #eee;
}

.vl-dropdown-menu {
    position: absolute;
    bottom: 44px;
    right: 0;
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 5px 0;
    min-width: 110px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    z-index: 20;
}

.vl-dropdown.open .vl-dropdown-menu {
    display: flex;
}

.vl-speed-item {
    padding: 6px 14px;
    font-size: 12px;
    color: #bbb;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.vl-speed-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.vl-speed-item.active {
    color: #ff3333;
    font-weight: 700;
    background: rgba(204, 0, 0, 0.18);
}


/* Fullscreen Mode */
.vl-player-wrapper.fullscreen {
    border-radius: 0 !important;
}

.vl-player-wrapper.fullscreen .vl-video-viewport {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
}

/* ============================================
 * Mobile Force Landscape Rotation Mode
 * ============================================ */
.vl-player-wrapper.vl-force-landscape {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vh !important;
    height: 100vw !important;
    max-width: none !important;
    max-height: none !important;
    transform: rotate(90deg) translateY(-100%);
    transform-origin: top left !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    overflow: hidden !important;
}

.vl-player-wrapper.vl-force-landscape .vl-video-viewport {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
}

.vl-player-wrapper.vl-force-landscape .player-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}


.vl-btn-rotate {
    display: inline-flex;
}

.vl-btn-rotate:hover {
    color: #ff3333;
}

/* Responsive Player Controls for Mobile & Tablet */
@media (max-width: 900px) {
    .vl-controls-bar {
        padding: 20px 10px 8px;
    }
}

@media (max-width: 600px) {
    .vl-center-play-btn {
        width: 52px;
        height: 52px;
    }
    .vl-icon-play-huge {
        width: 24px;
        height: 24px;
    }
    .vl-controls-bar {
        padding: 16px 8px 6px;
        gap: 4px;
    }
    .vl-controls-row {
        gap: 2px;
    }
    .vl-ctrl-group {
        gap: 2px;
    }
    .vl-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    .vl-btn svg {
        width: 17px;
        height: 17px;
    }
    .vl-volume-track-wrap {
        display: none !important;
    }
    .vl-time-box {
        font-size: 11px;
        margin-left: 2px;
    }
    .vl-progress-area {
        height: 14px;
    }
    .vl-progress-track {
        height: 3px;
    }
    .vl-progress-thumb {
        width: 11px;
        height: 11px;
    }
    .vl-progress-tooltip {
        font-size: 10px;
        padding: 2px 5px;
    }
}

@media (max-width: 380px) {
    .vl-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    .vl-btn svg {
        width: 15px;
        height: 15px;
    }
    .vl-time-box {
        font-size: 10px;
        margin-left: 1px;
    }
    .vl-speed-val {
        font-size: 10px;
    }
}

/* Iframe Mode Topbar */
.vl-iframe-mode {
    border: 1px solid #2a2a2a;
}

.vl-iframe-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #141414;
    border-bottom: 1px solid #2a2a2a;
    border-radius: 8px 8px 0 0;
    font-size: 12px;
    color: #999;
}

.vl-iframe-title {
    font-weight: 600;
    color: #bbb;
}

.vl-iframe-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vl-mini-btn {
    background: #242424;
    border: 1px solid #3a3a3a;
    color: #ccc;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.vl-mini-btn:hover {
    background: #333;
    color: #fff;
    border-color: #555;
}

.vl-iframe-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* Source Tabs */
.source-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0 4px;
}

.source-tab {
    display: inline-block;
    padding: 5px 14px;
    background: #262626;
    color: #ccc;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.source-tab:hover {
    background: #363636;
    color: #fff;
    border-color: #555;
}

.source-tab.active {
    background: #cc0000;
    border-color: #cc0000;
    color: #fff;
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.4);
}

/* Modern Video Action Bar */
.video-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 10px;
}

.video-action-left,
.video-action-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.action-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #242424;
    border: 1px solid #383838;
    border-radius: 20px;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.action-pill-btn:hover {
    background: #333;
    color: #fff;
    border-color: #4a4a4a;
}

.action-pill-btn.active-like {
    background: rgba(76, 175, 80, 0.18);
    border-color: #4CAF50;
    color: #4CAF50;
}

.action-pill-btn.active-dislike {
    background: rgba(244, 67, 54, 0.18);
    border-color: #f44336;
    color: #f44336;
}

.action-pill-btn.active-theater {
    background: rgba(204, 0, 0, 0.2);
    border-color: #cc0000;
    color: #ff4444;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 13px;
    padding: 4px 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.stat-like { color: #4CAF50; }
.stat-dislike { color: #f44336; }
.stat-heart { color: #e91e63; }
.stat-views { color: #999; }

/* Video Info */
.video-info {
    padding: 10px 0;
}

.video-code {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
    word-break: break-all;
}

.video-code a {
    color: #cc0000;
}

.video-description {
    font-size: 13px;
    color: #bbb;
    line-height: 1.65;
    margin: 10px 0;
}

.video-actors {
    margin: 8px 0;
    padding: 6px 0;
    border-top: 1px solid #2a2a2a;
}

.actor-name {
    display: inline-block;
    padding: 3px 10px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: #ccc;
    font-size: 13px;
    margin: 2px;
}

.actor-name:hover {
    background: #3a3a3a;
    color: #fff;
}

/* Genre Tags */
.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 0;
}

.genre-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: #ccc;
    font-size: 13px;
}

.genre-tag:hover {
    background: #3a3a3a;
    color: #fff;
}

.genre-tag-icon {
    color: #888;
    font-size: 11px;
}

/* Related Movies Section */
.related-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    color: #d0d0d0;
    margin-bottom: 8px;
}

/* === Pagination === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 20px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    padding: 0 8px;
    background: transparent;
    border: 1px solid #555;
    border-radius: 3px;
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
}

.page-link:hover {
    background: #333;
    color: #fff;
}

.page-link.active {
    background: #cc0000;
    border-color: #cc0000;
    color: #fff;
}

.page-dots {
    color: #666;
    padding: 0 3px;
}

/* === Footer === */
.site-footer {
    background: #141414;
    border-top: 1px solid #2a2a2a;
    padding: 20px 0 15px;
    margin-top: 20px;
}

.top-search {
    margin-bottom: 15px;
}

.top-search-title {
    font-size: 14px;
    font-weight: 700;
    color: #d0d0d0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.keyword-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: #aaa;
    font-size: 12px;
}

.keyword-tag:hover {
    background: #3a3a3a;
    color: #fff;
}

.disclaimer {
    margin: 15px 0;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}

.disclaimer p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 3px;
}

.text-red {
    color: #cc0000 !important;
}

.text-red:hover {
    color: #ff2222 !important;
}

.copyright {
    padding-top: 10px;
    border-top: 1px solid #2a2a2a;
}

.copyright p {
    font-size: 12px;
    color: #555;
}

/* === Empty / 404 === */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.empty-state h2 {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    color: #555;
}

.page-404 {
    text-align: center;
    padding: 60px 20px;
}

.page-404 h1 {
    font-size: 3.5rem;
    color: #cc0000;
    margin-bottom: 8px;
}

.page-404 p {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.page-404 a {
    display: inline-block;
    padding: 8px 20px;
    background: #cc0000;
    color: #fff;
    border-radius: 3px;
    font-weight: 600;
}

.page-404 a:hover {
    background: #e60000;
    color: #fff;
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 6px;
    }

    .site-header {
        padding: 8px 0 6px;
    }

    .logo {
        font-size: 1.6rem;
    }

    .nav-link {
        padding: 5px 8px;
        font-size: 12px;
    }

    .search-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .search-form {
        max-width: 100%;
    }

    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .movie-title {
        font-size: 12px;
        padding: 4px 2px 8px;
    }

    .video-stats {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 12px;
        gap: 8px;
    }

    .pagination {
        gap: 3px;
    }

    .page-link {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .keyword-tag {
        font-size: 11px;
        padding: 3px 7px;
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 4px 6px;
        font-size: 11px;
    }
}

/* ============================================
 * Player Ads Engine (TVC Video Ad & Overlays)
 * ============================================ */
.vl-tvc-layer {
    position: absolute;
    inset: 0;
    z-index: 25;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}

.vl-tvc-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.vl-tvc-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 15, 15, 0.88);
    color: #ffcc00;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 204, 0, 0.4);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 26;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.vl-tvc-badge .tvc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffcc00;
    animation: tvcPulse 1.2s infinite;
}

@keyframes tvcPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.vl-tvc-skip-box {
    position: absolute;
    bottom: 24px;
    right: 18px;
    z-index: 27;
}

.vl-tvc-skip-btn {
    background: rgba(18, 18, 18, 0.88);
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: not-allowed;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.vl-tvc-skip-btn.can-skip {
    background: #cc0000;
    border-color: #ff3333;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(204, 0, 0, 0.6);
}

.vl-tvc-skip-btn.can-skip:hover {
    background: #e60000;
    transform: scale(1.04);
}

.vl-tvc-visit-link {
    position: absolute;
    bottom: 24px;
    left: 18px;
    background: rgba(18, 18, 18, 0.82);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 26;
    transition: background 0.2s, border-color 0.2s;
}

.vl-tvc-visit-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
}

.vl-tvc-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 26;
}

.vl-tvc-progress-fill {
    height: 100%;
    width: 0%;
    background: #ffcc00;
    transition: width 0.1s linear;
}

/* In-player Pause Banner Ad */
.vl-pause-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: none;
    max-width: 90%;
}

.vl-pause-banner.visible {
    display: block;
}

.vl-pause-banner-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #cc0000;
    color: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* ============================================
 * On-Site Ads Styles (Banner Header, Bottom, Floats)
 * ============================================ */
.site-header-banner-wrap {
    margin: 10px auto;
    text-align: center;
    max-width: 100%;
}

.site-header-banner-wrap img {
    max-height: 110px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: inline-block;
}

.site-under-video-banner-wrap {
    margin: 14px 0;
    text-align: center;
}

.site-under-video-banner-wrap img {
    max-height: 110px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Floating Left & Right Sticky Banners on PC */
.site-float-banner {
    position: fixed;
    top: 140px;
    z-index: 99;
    width: 160px;
    display: none;
}

@media (min-width: 1450px) {
    .site-float-banner {
        display: block;
    }
    .site-float-banner.float-left {
        left: 12px;
    }
    .site-float-banner.float-right {
        right: 12px;
    }
    .site-float-banner img {
        width: 160px;
        height: auto;
        border-radius: 6px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
        transition: transform 0.2s;
    }
    .site-float-banner img:hover {
        transform: scale(1.02);
    }
}

/* Sticky Bottom Catfish Banner */
.site-sticky-bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
}

.site-sticky-bottom-inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.site-sticky-bottom-inner img {
    max-height: 75px;
    max-width: 100%;
    border-radius: 4px;
    display: inline-block;
}

.btn-close-bottom-ad {
    position: absolute;
    top: -14px;
    right: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #cc0000;
    color: #fff;
    border: 2px solid #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    z-index: 101;
}

/* Category & Actor SEO Description Card */
.category-hero-card {
    background: linear-gradient(135deg, #181c26 0%, #11141c 100%);
    border: 1px solid #282f42;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.category-hero-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.category-hero-icon {
    font-size: 28px;
    line-height: 1;
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.12);
    border-radius: 8px;
    flex-shrink: 0;
}

.category-hero-body {
    flex: 1;
}

.category-hero-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.category-hero-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f3f4f6;
    letter-spacing: 0.3px;
}

.category-hero-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 12px;
}

.category-hero-desc {
    color: #9ca3af;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .category-hero-inner {
        gap: 12px;
    }
    .category-hero-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    .category-hero-card {
        padding: 12px 14px;
        margin-bottom: 16px;
    }
}
