/* Video Template Specific Styles */
.video-single-post {
    margin-top: 3rem;
    margin-bottom: 6rem;
}

.container-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.video-post-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.video-breadcrumb {
    margin-bottom: 1.5rem;
    text-align: left;
}

.video-breadcrumb a {
    color: var(--text-muted, #666);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-breadcrumb a:hover {
    color: var(--primary, #000);
}

.video-post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 1rem 0;
}

.video-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted, #888);
    font-size: 0.85rem;
    font-weight: 500;
}

.video-post-meta .meta-sep {
    opacity: 0.3;
}

/* --- VIDEO 16:9 STANDARD LAYOUT (User Style) --- */
.box-content {
    margin-bottom: 3.5rem;
    overflow: hidden;
    background: #000;
    border-radius: 15px; /* Khớp với bo góc của wrapper */
}

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* Tỉ lệ 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    border: 5px solid rgba(255, 0, 0, 0); /* Khung viền đỏ theo yêu cầu */
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 0;
}

/* --- VIDEO 9:16 REEL/SHORTS VERTICAL LAYOUT (User Style) --- */
.box-content-reel {
    max-width: 30em; /* Tương đương 480px */
    width: 100%; /* Để không bị tràn trên màn hình nhỏ */
    margin: 0 auto 3.5rem auto;
}

.videoWrapperReel {
    position: relative;
    padding-bottom: 177.78%; /* Tỷ lệ 9:16 */
    height: 0;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #ffffff00;
    background: #000;
}

.videoWrapperReel iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 0;
}

/* Hero image fallback */
.video-post-hero {
    margin-bottom: 3.5rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.video-post-hero img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

/* Content */
.video-post-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #222;
    margin-bottom: 4rem;
}

.video-post-content p {
    margin-bottom: 2rem;
}

/* Footer & Nav */
.video-post-footer {
    border-top: 1px solid var(--border-color, #eee);
    padding-top: 2rem;
    margin-top: 4rem;
}

.video-post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color, #eee);
    border-bottom: 1px solid var(--border-color, #eee);
}

.video-post-nav a {
    color: var(--primary, #000);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.video-post-nav .nav-prev a:hover {
    color: var(--primary-hover, #333);
    transform: translateX(-5px);
    display: inline-block;
}

.video-post-nav .nav-next a:hover {
    color: var(--primary-hover, #333);
    transform: translateX(5px);
    display: inline-block;
}

@media (max-width: 768px) {
    .video-post-title {
        font-size: 2rem;
    }
    .video-post-content {
        font-size: 1.1rem;
    }
}
