﻿/* ===============================
   MOVIES / GAMES VIDEO LAYOUT
   =============================== */

.movies-layout {
    display: flex;
    gap: 16px;
    padding: 16px;
}

/* ===============================
   VIDEO WINDOW (TRUE 16:9)
   =============================== */

.video-window {
    position: relative;
    flex: 4;
    background: black;
    border-radius: 12px;
    overflow: hidden;
}

    /* 16:9 ratio container */
    .video-window::before {
        content: "";
        display: block;
        padding-top: 56.25%; /* 9 / 16 */
    }

    /* iframe fills the 16:9 area */
    .video-window iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: none;
        background: black;
    }

/* ===============================
   THUMBNAIL IMAGE OVERLAY
   (shown BEFORE video plays)
   =============================== */

.video-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✅ NO CROPPING */
    background: black;
    cursor: pointer;
}

/* ===============================
   FINGERNAILS (VERTICAL)
   =============================== */

.fingernails {
    width: 260px;
    background: #ffffff;
    border-left: 3px solid #005f99;
    overflow-y: auto; /* ✅ ENABLE SCROLL */
    overflow-x: hidden;
    max-height: 100%; /* ✅ REQUIRED */
    padding: 10px;
    border-radius: 12px;
}

.fingernail-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.25s ease, opacity 0.25s ease;

    transform: none; /* ✅ restores native scrolling */
}

/* Individual fingernail */
.fingernail {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 10px;
    padding: 6px;
    background: #f5f5f5;
}

    .fingernail:hover {
        background: #eaf4ff;
    }

    .fingernail.active {
        border-color: #0000FF; /* blue orig: #e0f0ff */
        background: #FFFF00; /* yellow; orig: #005f99 */
    }

    /* Thumbnail image inside fingernail */
        .fingernail img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        display: block;
    }

/* Thumbnail title (senior-friendly) */
.fingernail-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    margin-top: 6px;
    color: #003f66;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 900px) {
    .movies-layout {
        flex-direction: column;
    }

    .fingernails {
        width: 100%;
        border-left: none;
        border-top: 3px solid #005f99;
    }
}
