/* ===============================
   APP LAYOUT
================================ */
.vvd-app {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.vvd-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 20px;
    position: sticky;
    top: 0;
}

.vvd-main {
    flex: 1;
    padding: 30px;
}

body {
    overflow-x: hidden;
}

/* ===============================
   SINGLE VIDEO CONTAINER
================================ */
.vvd-single-video {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===============================
   TITLE
================================ */
.vvd-page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 20px 0 25px;
    text-align: center;
}

/* ===============================
   PLAYER
================================ */
.vvd-player-wrap {
    position: relative;
    margin-bottom: 25px;
}

.vvd-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10;
}

.vvd-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===============================
   FULLSCREEN BUTTON
================================ */
.vvd-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
}

.vvd-fullscreen-btn {
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 16px;
    cursor: pointer;
}

/* ===============================
   FULLSCREEN FIX
================================ */
#vvd-fullscreen-container:fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
    z-index: 999999 !important;

    display: flex;
    align-items: center;
    justify-content: center;
}

#vvd-fullscreen-container:fullscreen .vvd-player {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
}

/* FIX LEFT SHIFT */
#vvd-fullscreen-container:fullscreen iframe {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Safari */
#vvd-fullscreen-container:-webkit-full-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
}

/* ===============================
   PROGRESS
================================ */
.vvd-progress {
    margin: 10px 0 20px;
    font-size: 14px;
    color: #666;
}

/* ===============================
   CONTENT
================================ */
.vvd-content {
    margin-top: 10px;
    line-height: 1.7;
    font-size: 16px;
}

.vvd-content p {
    margin-bottom: 14px;
}

/* ===============================
   NAVIGATION (BOTTOM)
================================ */
.vvd-nav {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.vvd-nav-box {
    flex: 1;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* ===============================
   ADS
================================ */
.vvd-ad {
    margin: 25px 0;
    text-align: center;
}

/* ===============================
   GRID (3 COLUMN FIXED)
================================ */
.vvd-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ===============================
   VIDEO CARD (FIXED)
================================ */
.vvd-video-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #111;
    transition: all 0.25s ease;
    padding: 0 !important; /* FIX */
}

.vvd-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* IMAGE */
.vvd-video-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* TITLE GAP FIX */
.vvd-video-card h3 {
    padding: 12px 14px;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.4;
}

/* ===============================
   OVERLAY NAVIGATION FIX
================================ */
.vvd-overlay-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 9999;

    display: flex;
    justify-content: space-between;

    pointer-events: none;
}

.vvd-nav-btn {
    pointer-events: auto;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;

    background: rgba(0,0,0,0.6);
    color: #fff;

    border-radius: 50%;
    margin: 0 10px;
}

.vvd-nav-btn:hover {
    background: rgba(0,0,0,0.9);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .vvd-app {
        flex-direction: column;
    }

    .vvd-sidebar {
        display: none;
    }

    .vvd-main {
        padding: 15px;
    }

    .vvd-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .vvd-grid {
        grid-template-columns: 1fr;
    }

    .vvd-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ===============================
   THEME OVERRIDE
================================ */
body.single-video_deck .container,
body.single-video_deck .wrap,
body.single-video_deck .content,
body.single-video_deck .main-content,
body.single-video_deck .penci-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}