/* ===============================
   ROOT
================================ */
:root {
    --vvd-text-main: #111;
    --vvd-text-muted: #555;
    --vvd-border: #e5e7eb;
    --vvd-bg: #ffffff;
    --vvd-soft: #f8fafc;
    --vvd-accent: #2563eb;
}

/* ===============================
   LAYOUT
================================ */
.vvd-app {
    display: flex;
}

.vvd-sidebar {
    width: 260px;
    border-right: 1px solid #ddd;
    padding: 20px;
}

.vvd-main {
    flex: 1;
    padding: 24px;
}

.vvd-single-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

/* ===============================
   TYPOGRAPHY
================================ */
.vvd-page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.vvd-content {
    margin-top: 20px;
    line-height: 1.7;
}

.vvd-breadcrumb {
    font-size: 14px;
    margin-bottom: 10px;
}

/* ===============================
   PLAYER
================================ */
.vvd-player-wrap {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.vvd-player {
    width: 100%;
}

/* DESKTOP */
@media (min-width: 769px) {
    .vvd-player {
        max-width: 900px;
        aspect-ratio: 16 / 9;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .vvd-player.landscape {
        aspect-ratio: 16 / 9;
    }

    .vvd-player.portrait {
        max-width: 420px;
        aspect-ratio: 9 / 16;
        margin: 0 auto;
    }
}

/* IFRAME */
.vvd-player iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block;
}

/* ===============================
   GRID
================================ */
.vvd-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Tablet */
@media (max-width: 900px) {
    .vvd-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 500px) {
    .vvd-video-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   CARD
================================ */
.vvd-video-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #111;
}

/* ===============================
   FIXED HEIGHT THUMB (KEY FIX)
================================ */
.vvd-video-thumb-wrap {
    width: 100%;
    height: 200px; /* 🔥 FIXED HEIGHT */
    overflow: hidden;
    background: #000;
    position: relative;
}

/* IMAGE */
.vvd-video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   TITLE
================================ */
.vvd-video-card h3 {
    padding: 10px 12px;
    font-size: 14px;
    margin: 0;
}
/* ===============================
   NAVIGATION
================================ */
.vvd-nav {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.vvd-nav-box {
    flex: 1;
    padding: 14px;
    background: #f3f4f6;
    border-radius: 10px;
    transition: 0.2s;
}

.vvd-nav-box:hover {
    background: #e5e7eb;
}

.vvd-nav-label {
    font-size: 12px;
    color: #777;
}

/* ===============================
   ROTATE OVERLAY
================================ */
#vvd-rotate-overlay {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 99999;
    display: none;
    align-items: center;
    gap: 8px;
}

/* ===============================
   MOBILE CLEANUP
================================ */
@media (max-width: 768px) {

    .vvd-app {
        flex-direction: column;
    }

    .vvd-sidebar {
        display: none;
    }

    .vvd-main {
        padding: 15px;
    }
}
#vvd-rotate-overlay {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 9999;
    display: none;
    align-items: center;
}
.vvd-video-thumb-wrap::after {
    content: "▶";
    position: absolute;
    font-size: 28px;
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}
.vvd-end-card {
    margin-top: 30px;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 12px;
    text-align: center;
}