/* NỘI THẤT VIDEO DARK THEME - STYLESHEET */
:root {
    --bg-main: #0c1017;
    --bg-card: #151c28;
    --bg-card-hover: #1c2638;
    --bg-header: rgba(12, 16, 23, 0.92);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(212, 175, 55, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-gold: #d4af37;
    --accent-gold-hover: #e5be49;
    --accent-gold-glow: rgba(212, 175, 55, 0.25);
    --fb-blue: #1877f2;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.dark-theme {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.section-container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    /* border removed */
}
.header-container {
    max-width: 1440px; margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand-link { display: flex; align-items: center; gap: 10px; }
.brand-badge {
    background: linear-gradient(135deg, #d4af37, #f59e0b);
    color: #0c1017; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: var(--radius-sm);
}
.brand-title {
    font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #d4af37 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-menu { display: flex; list-style: none; gap: 28px; }
.nav-menu a { font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-gold); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 600;
    cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background: var(--accent-gold); color: #0c1017; }
.btn-primary:hover { background: var(--accent-gold-hover); box-shadow: 0 0 20px var(--accent-gold-glow); }
.btn-fb { background: rgba(24, 119, 242, 0.15); color: #38bdf8; border: 1px solid rgba(24, 119, 242, 0.35); }
.btn-fb:hover { background: var(--fb-blue); color: #ffffff; }
.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #b89727 100%);
    color: #0c1017; font-weight: 700; padding: 14px 28px; font-size: 1rem;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-gold-glow); }
.btn-outline {
    background: transparent; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px; font-size: 1rem;
}
.btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.btn-block { width: 100%; }

/* HERO BANNER */
.hero-banner {
    position: relative; padding: 90px 24px 80px; text-align: center;
    background-color: #0e141f; background-size: cover; background-position: center;
    /* border removed */
}
.banner-content { max-width: 860px; margin: 0 auto; }
.banner-badge {
    display: inline-block; padding: 6px 16px; background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3); color: var(--accent-gold);
    font-size: 0.85rem; font-weight: 700; border-radius: var(--radius-full); margin-bottom: 20px;
}
.banner-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.2;
    margin-bottom: 18px; color: #ffffff; letter-spacing: -0.8px;
}
.banner-desc { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 34px; line-height: 1.6; }
.banner-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* CATEGORY TABS */
.video-section { padding: 60px 0 90px; }
.category-header { margin-bottom: 40px; }
.section-heading { font-size: 2rem; font-weight: 800; color: #ffffff; letter-spacing: -0.5px; }
.section-subheading { font-size: 1rem; color: var(--text-muted); margin-top: 6px; }
.category-tabs {
    display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap;
    /* border removed */ padding-bottom: 16px;
}
.cat-tab {
    background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary);
    padding: 10px 18px; border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.cat-tab:hover { background: var(--bg-card-hover); color: #ffffff; border-color: rgba(255, 255, 255, 0.2); }
.cat-tab.active { background: var(--accent-gold); color: #0c1017; border-color: var(--accent-gold); font-weight: 700; }
.cat-count { background: rgba(0, 0, 0, 0.25); padding: 2px 7px; border-radius: 10px; font-size: 0.75rem; }

/* 4x4 VIDEO GRID */
.video-grid-4x4 {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.video-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); overflow: hidden; display: flex;
    flex-direction: column; transition: var(--transition); cursor: pointer;
}
.video-card:hover {
    transform: translateY(-5px); border-color: var(--border-hover);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
}
.video-thumbnail-wrap {
    position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000000; overflow: hidden;
}
.video-thumbnail { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video-card:hover .video-thumbnail { transform: scale(1.05); }

.play-button-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.25); transition: var(--transition);
}
.play-icon {
    width: 48px; height: 48px; background: rgba(212, 175, 55, 0.92); color: #0c1017;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 16px; padding-left: 3px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease;
}
.video-card:hover .play-icon { transform: scale(1.15); background: #ffffff; }

.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-sm); text-transform: uppercase; }
.badge-cat { background: rgba(12, 16, 23, 0.85); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.15); }
.badge-source { background: rgba(212, 175, 55, 0.9); color: #0c1017; }
.badge-fb { background: var(--fb-blue); color: #ffffff; }

.video-card-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.video-card-title {
    font-size: 1rem; font-weight: 700; color: #ffffff; line-height: 1.4; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card:hover .video-card-title a { color: var(--accent-gold); }
.video-card-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.video-card-footer {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; border-top: 1px solid var(--border-color);
}
.card-date { font-size: 0.8rem; color: var(--text-muted); }
.btn-watch-quick {
    background: transparent; border: none; color: var(--accent-gold);
    font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.btn-watch-quick:hover { color: #ffffff; text-decoration: underline; }

/* PAGINATION */
.pagination-wrap { margin-top: 48px; display: flex; justify-content: center; }
.pagination-wrap ul { display: flex; list-style: none; gap: 8px; }
.pagination-wrap a, .pagination-wrap span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 14px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-secondary); font-weight: 600; font-size: 0.95rem;
}
.pagination-wrap a:hover { background: var(--bg-card-hover); color: #ffffff; border-color: var(--accent-gold); }
.pagination-wrap span.current { background: var(--accent-gold); color: #0c1017; font-weight: 800; }

/* MODAL LIGHTBOX */
.video-modal {
    position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.video-modal.active { display: flex; }
.modal-overlay {
    position: absolute; inset: 0; background: rgba(4, 7, 12, 0.88);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-container {
    position: relative; z-index: 10; width: 100%; max-width: 960px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}
.modal-close {
    position: absolute; top: 14px; right: 18px; z-index: 20;
    background: rgba(0, 0, 0, 0.6); color: #ffffff; border: none; width: 36px; height: 36px;
    border-radius: 50%; font-size: 24px; cursor: pointer; transition: var(--transition);
}
.modal-close:hover { background: #ef4444; }
.modal-video-box { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.modal-video-box iframe, .modal-video-box video { width: 100%; height: 100%; border: none; display: block; }
.modal-info { padding: 20px 24px; }
.modal-title { font-size: 1.25rem; font-weight: 700; color: #ffffff; margin-bottom: 6px; }
.modal-meta { font-size: 0.9rem; color: var(--accent-gold); }

/* SINGLE VIDEO PAGE */
.single-video-page { padding: 40px 0 80px; }
.back-link { display: inline-block; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; }
.back-link:hover { color: var(--accent-gold); }
.single-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; margin: 12px 0 8px; }
.single-meta { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; }
.meta-dot { margin: 0 8px; }
.single-player-container {
    width: 100%; aspect-ratio: 16 / 9; background: #000;
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.noithat-video-wrapper { width: 100%; height: 100%; }
.noithat-video-wrapper iframe, .noithat-video-wrapper video { width: 100%; height: 100%; border: none; display: block; }
.single-content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 60px; }
.the-content { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }
.the-content p { margin-bottom: 18px; }
.consultation-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 28px; position: sticky; top: 90px;
}
.consultation-card h4 { font-size: 1.25rem; color: #ffffff; margin-bottom: 12px; }
.consultation-card p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 20px; }
.consultation-card .btn { margin-bottom: 10px; }

/* FOOTER */
.site-footer { background: #070a0f; border-top: 1px solid var(--border-color); padding: 60px 0 30px; }
.footer-container {
    max-width: 1440px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 48px; margin-bottom: 40px;
}
.footer-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; color: #ffffff; }
.footer-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.footer-heading { font-size: 1.1rem; font-weight: 700; color: #ffffff; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-gold); }
.contact-item { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 10px; }
.footer-bottom {
    max-width: 1440px; margin: 0 auto; padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; color: var(--text-muted); font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 1200px) { .video-grid-4x4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
    .video-grid-4x4 { grid-template-columns: repeat(2, 1fr); }
    .single-content-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
    .header-container { flex-direction: column; align-items: flex-start; }
    .header-actions { width: 100%; justify-content: space-between; }
    .video-grid-4x4 { grid-template-columns: 1fr; }
    .banner-actions .btn { width: 100%; }
}

/* KHỐNG CHẾ KÍCH THƯỚC LOGO CHUẨN ĐẸP */
.site-branding {
    display: flex;
    align-items: center;
}
.site-branding .custom-logo,
.site-branding img,
.custom-logo-link img {
    max-height: 52px !important;
    max-width: 240px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

/* NÂNG CẤP HERO BANNER */
.hero-banner {
    position: relative;
    padding: 130px 24px 110px !important;
    text-align: center;
    background-color: #0e141f;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    /* border removed */
}

/* HERO BANNER - BỐ CỤC LỆCH TRÁI & MỞ SÁNG KHÔNG GIAN BÊN PHẢI */
.hero-banner {
    position: relative;
    padding: 130px 0 110px !important;
    text-align: left !important;
    background-color: #0c1017;
    background-size: cover !important;
    background-position: center right !important;
    background-repeat: no-repeat !important;
    /* border removed */
}
.banner-split-left {
    max-width: 640px !important;
    margin: 0 !important;
    text-align: left !important;
}
.banner-split-left .banner-badge {
    margin-bottom: 20px;
}
.banner-split-left .banner-title {
    text-align: left !important;
    font-size: clamp(2.2rem, 4.2vw, 3.4rem) !important;
    font-weight: 800;
    line-height: 1.25 !important;
    margin-bottom: 18px !important;
    letter-spacing: -0.8px;
}
.banner-split-left .banner-desc {
    text-align: left !important;
    font-size: 1.15rem !important;
    color: #cbd5e1 !important;
    margin-bottom: 34px !important;
    line-height: 1.6;
}
.banner-split-left .banner-actions {
    justify-content: flex-start !important;
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 90px 0 70px !important;
        background-position: center center !important;
    }
    .banner-split-left {
        max-width: 100% !important;
    }
}

/* FIX LỖI ĐEN MÀN HÌNH FULLSCREEN TRÊN IPHONE (IOS SAFARI) */
.noithat-video-wrapper,
.modal-video-box {
    background-color: #000000 !important;
}

.noithat-video-wrapper video,
.modal-video-box video {
    background: transparent !important;
    background-color: transparent !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* ==========================================================================
   TỐI ƯU BÀI VIẾT ALBUM ẢNH & CUSTOM FACEBOOK FEED (V5.0)
   ========================================================================== */

/* 1. SHOWCASE ẢNH TOÀN CẢNH KHI BÀI KHÔNG CÓ VIDEO */
.single-photo-showcase {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 580px;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
}
.photo-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 16, 23, 0.95) 100%);
    display: flex;
    align-items: center;
}
.photo-showcase-badge {
    background: rgba(212, 175, 55, 0.95);
    color: #0c1017;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 2. HUY HIỆU & ICON CHO CARD ALBUM ẢNH NGOÀI TRANG CHỦ */
.badge-gallery {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
}
.photo-icon {
    font-size: 20px !important;
    background: rgba(16, 185, 129, 0.92) !important;
    color: #ffffff !important;
    padding-left: 0 !important;
}
.photo-album-card:hover .photo-icon {
    background: #ffffff !important;
    color: #059669 !important;
}
.btn-view-gallery {
    color: #34d399 !important;
    font-weight: 700;
}
.btn-view-gallery:hover {
    color: #ffffff !important;
}

/* 3. TỐI ƯU HÓA WORDPRESS GALLERY (BỘ ẢNH TỰ UPLOAD TRỰC TIẾP) */
.photo-gallery-content .wp-block-gallery,
.photo-gallery-content .gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 18px !important;
    margin: 24px 0 !important;
}
.photo-gallery-content .wp-block-gallery figure,
.photo-gallery-content .gallery-item {
    margin: 0 !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: var(--transition);
}
.photo-gallery-content .wp-block-gallery figure:hover,
.photo-gallery-content .gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}
.photo-gallery-content .wp-block-gallery img,
.photo-gallery-content .gallery-item img,
.photo-gallery-content .wp-block-image img {
    border-radius: var(--radius-md) !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
    display: block;
}
.photo-gallery-content .wp-block-gallery figure:hover img {
    transform: scale(1.04);
}
.photo-gallery-content .wp-block-image {
    margin: 24px 0 !important;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* 4. TỐI ƯU GIAO DIỆN DARK MODE CHO PLUGIN CUSTOM FACEBOOK FEED (CFF) */
#cff,
.cff-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 18px !important;
    color: var(--text-primary) !important;
}
.cff-text {
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}
.cff-photo {
    border-radius: var(--radius-sm) !important;
    overflow: hidden !important;
    margin-top: 12px !important;
}
.cff-author .cff-page-name {
    color: var(--accent-gold) !important;
    font-weight: 700 !important;
}
.cff-date {
    color: var(--text-muted) !important;
}

/* ==========================================================================
   IMAGE LIGHTBOX MODAL (PHÓNG TO ẢNH FULLSCREEN SANG TRỌNG)
   ========================================================================== */
.the-content img,
.photo-gallery-content img,
.wp-block-gallery img,
.wp-block-image img,
.single-photo-showcase img {
    cursor: zoom-in !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-gallery-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.image-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.image-lightbox-modal.active {
    display: flex;
}
.image-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 12, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.image-lightbox-container {
    position: relative;
    z-index: 10;
    max-width: 94vw;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: lightboxZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes lightboxZoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.image-lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.image-lightbox-img {
    max-width: 90vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.image-lightbox-bar {
    width: 100%;
    max-width: 800px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}
.image-lightbox-counter {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: var(--radius-full);
}
.image-lightbox-caption {
    color: #f1f5f9;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 720px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.image-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 30;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-lightbox-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.image-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: rgba(12, 16, 23, 0.75);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-lightbox-nav:hover {
    background: var(--accent-gold);
    color: #0c1017;
    border-color: var(--accent-gold);
    transform: translateY(-50%) scale(1.1);
}
.image-lightbox-nav.prev {
    left: 20px;
}
.image-lightbox-nav.next {
    right: 20px;
}

@media (max-width: 768px) {
    .image-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .image-lightbox-nav.prev { left: 8px; }
    .image-lightbox-nav.next { right: 8px; }
    .image-lightbox-close { top: 12px; right: 14px; width: 38px; height: 38px; }
    .image-lightbox-img { max-height: 72vh; max-width: 95vw; }
}

/* ==========================================================================
   SHOWCASE INLINE SLIDER (MŨI TÊN CHUYỂN ẢNH TRỰC TIẾP TRÊN TRANG)
   ========================================================================== */
.single-photo-showcase {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 580px;
    background: #070a0f !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    user-select: none;
}

.photo-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: #070a0f;
    display: block;
    transition: opacity 0.25s ease;
}

/* NÚT MŨI TÊN CHUYỂN ẢNH TRỰC TIẾP TRÊN BỨC ẢNH ĐẦU TIÊN */
.showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(12, 16, 23, 0.8) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.showcase-nav:hover {
    background: var(--accent-gold) !important;
    color: #0c1017 !important;
    border-color: var(--accent-gold) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}
.showcase-nav.prev {
    left: 20px;
}
.showcase-nav.next {
    right: 20px;
}

.photo-showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 24px 18px;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 16, 23, 0.92) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.photo-showcase-badge {
    background: rgba(212, 175, 55, 0.95);
    color: #0c1017;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    pointer-events: auto;
}

.showcase-counter {
    background: rgba(12, 16, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    pointer-events: auto;
}

.showcase-zoom-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 15;
    background: rgba(12, 16, 23, 0.8);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}
.showcase-zoom-btn:hover {
    background: rgba(212, 175, 55, 0.95);
    color: #0c1017;
    border-color: var(--accent-gold);
}

@media (max-width: 768px) {
    .showcase-nav {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .showcase-nav.prev { left: 8px; }
    .showcase-nav.next { right: 8px; }
    .photo-showcase-badge { font-size: 0.75rem; padding: 4px 10px; }
    .showcase-counter { font-size: 0.75rem; padding: 4px 10px; }
    .showcase-zoom-btn span { display: none; }
    .showcase-zoom-btn { padding: 8px; }
}

/* ==========================================================================
   DẢI THUMBNAIL NGAY DƯỚI ẢNH LỚN
   ========================================================================== */
.showcase-thumbnails-strip {
    display: flex;
    gap: 12px;
    margin-top: -24px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 6px 4px 14px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.showcase-thumbnails-strip::-webkit-scrollbar {
    height: 6px;
}
.showcase-thumbnails-strip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.showcase-thumbnails-strip::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 10px;
}
.showcase-thumbnails-strip::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

.showcase-thumb-item {
    width: 100px;
    height: 66px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.12);
    opacity: 0.55;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0c1017;
}
.showcase-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.showcase-thumb-item:hover {
    opacity: 0.9;
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}
.showcase-thumb-item.active {
    opacity: 1;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
    transform: scale(1.06);
}

/* ==========================================================================
   MODULE MÔ TẢ CHI TIẾT HÌNH ẢNH HOẶC VIDEO
   ========================================================================== */
.media-description-module {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 38px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.media-desc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.media-desc-badge-icon {
    font-size: 1.25rem;
}
.media-desc-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin: 0;
}

.media-active-caption {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e2e8f0;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-gold);
    border-radius: 4px;
    display: none;
}

.media-custom-note {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.media-project-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.spec-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: #cbd5e1;
}
.spec-tag strong {
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .showcase-thumbnails-strip {
        margin-top: -16px;
        margin-bottom: 24px;
    }
    .showcase-thumb-item {
        width: 80px;
        height: 54px;
    }
    .media-description-module {
        padding: 18px 20px;
    }
    .media-desc-title {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   NÚT YÊU CẦU TRANG WEB CHO MÁY TÍNH (MOBILE / DESKTOP TOGGLE)
   ========================================================================== */
.desktop-mode-toggle-footer {
    text-align: center;
    margin: 24px 0 12px;
}
.btn-toggle-desktop-mode {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
}
.btn-toggle-desktop-mode:hover {
    background: var(--accent-gold);
    color: #0c1017;
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}
.btn-toggle-desktop-mode.is-desktop-active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Nút nổi góc dưới màn hình khi dùng điện thoại */
.mobile-desktop-float-btn {
    position: fixed;
    bottom: 24px;
    right: 18px;
    z-index: 990;
    display: none;
}
.btn-float-desktop {
    background: rgba(12, 16, 23, 0.92);
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}
.btn-float-desktop:hover {
    background: var(--accent-gold);
    color: #0c1017;
}
.btn-float-desktop.is-desktop-active {
    background: rgba(212, 175, 55, 0.95);
    color: #0c1017;
}

@media (max-width: 992px) {
    .mobile-desktop-float-btn {
        display: block;
    }
}

/* GIAO DIỆN BẢN MÁY TÍNH KHI BẬT TRÊN ĐIỆN THOẠI */
html.forced-desktop-mode body {
    min-width: 1200px !important;
    overflow-x: auto !important;
}
html.forced-desktop-mode .header-container {
    flex-direction: row !important;
    align-items: center !important;
}
html.forced-desktop-mode .video-grid-4x4 {
    grid-template-columns: repeat(4, 1fr) !important;
}
html.forced-desktop-mode .single-content-grid {
    grid-template-columns: 2fr 1fr !important;
}
html.forced-desktop-mode .footer-container {
    grid-template-columns: 2fr 1fr 1.5fr !important;
}
html.forced-desktop-mode .hero-banner {
    padding: 130px 0 110px !important;
    text-align: left !important;
    background-position: center right !important;
}
html.forced-desktop-mode .banner-split-left {
    max-width: 640px !important;
}
html.forced-desktop-mode .mobile-desktop-float-btn {
    display: block !important;
}

/* XÓA BỎ HOÀN TOÀN LINE SÁNG DƯỚI CHÂN HERO BANNER */
.hero-banner {
    border-bottom: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ==========================================================================
   TỶ LỆ KHUNG HÌNH CHUẨN CHO VIDEO DỌC / REELS (9:16)
   ========================================================================== */
.single-player-container.is-reel-container,
.single-player-container.is-reel,
.single-player-container:has(.is-reel) {
    max-width: 440px !important;
    aspect-ratio: 9 / 16 !important;
    height: auto !important;
    max-height: 82vh !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.2) !important;
}

.noithat-video-wrapper.is-reel {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 9 / 16 !important;
}

.noithat-video-wrapper.is-reel iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* POPUP MODAL CHUẨN TỶ LỆ DỌC 9:16 CHO FACEBOOK REELS NGOÀI TRANG CHỦ */
.modal-container.is-reel-modal {
    max-width: 440px !important;
    width: 92vw !important;
    background: #070a0f !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(212, 175, 55, 0.25) !important;
}

.modal-container.is-reel-modal .modal-video-box {
    width: 100% !important;
    aspect-ratio: 9 / 16 !important;
    max-height: 80vh !important;
    background: #000000 !important;
}

.modal-container.is-reel-modal .modal-video-box iframe,
.modal-container.is-reel-modal .modal-video-box video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.modal-container:not(.is-reel-modal) {
    max-width: 960px !important;
    width: 94vw !important;
}

.modal-container:not(.is-reel-modal) .modal-video-box {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
}

/* NÚT BẬT TIẾNG NỔI BẬT KHI TRÌNH DUYỆT CHẶN TIẾNG TỰ ĐỘNG */
.modal-unmute-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 50;
    background: #d4af37 !important;
    color: #0c1017 !important;
    border: none !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.5);
    animation: pulseUnmuteBtn 1.5s infinite;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
@keyframes pulseUnmuteBtn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
