/* --- CINEMATIC NATIVE VIDEO PLAYER --- */
.video-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

#main-video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.video-overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(18, 18, 18, 0.85);
    color: #D4AF37;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(214, 175, 55, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    opacity: 1;
    z-index: 2;
}

.video-player-wrapper:hover .video-overlay-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(214, 175, 55, 0.9);
    color: #121212;
}

/* Control Infrastructure */
.video-control-container {
    background: rgba(80, 80, 80, 0.2);
    padding: 6px 10px;
    border-radius: 0 0 30px 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-top: none;
    box-sizing: border-box;
}

.v-skip-btn {
    background: #1e1e1e;
    color: #d3d3d3;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.v-skip-btn:hover {
    background: #D4AF37;
    color: #121212;
    transform: scale(1.1);
}

.v-console {
    background: #121212;
    border-radius: 30px;
    padding: 4px 8px 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 210px;
    height: 48px;               /* Maintained strict 48px height */
    justify-content: flex-start;
    position: relative;
    overflow: visible;          /* Replicated audio safety valve to prevent bottom clip */
}

/* Timeline & Row Configurations */
.v-interface-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 30px;
}

.v-play-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    padding: 0 4px;
    transition: color 0.2s;
}

.v-play-toggle:hover { color: #D4AF37; }

.v-timeline-wrapper {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    padding: 4px 0; /* Padding forms a larger physical invisible hit-box */
    background-clip: content-box;
}

.v-progress-bar {
    width: 0%;
    height: 4px;
    background: #D4AF37;
    border-radius: 2px;
    position: absolute;
    top: 4px;
    left: 0;
    pointer-events: none;
}

/* Playlist Dropdown Panel */
#video-title {
    color: #ffffff !important; 
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 90%;
    cursor: pointer;
    position: absolute;
    top: 31px;                  /* Replicated audio player exact resting placement */
    left: 50%;
    transform: translateX(-50%);
    background: #121212;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 100;
    height: 20px;
    max-height: 20px;  
    display: block;     
    line-height: 20px;  
    white-space: nowrap;
    overflow: hidden;
    touch-action: pan-y !important; /* Replicated audio mobile touch property */
}

#video-title:hover, #video-title:active {
    height: auto;
    max-height: 150px;
    overflow-y: auto !important;     /* Replicated audio forced scrolling behavior */
    -webkit-overflow-scrolling: touch; /* Replicated smooth audio iOS scroll physics */
    padding: 4px 0;
    width: 100%;
    top: 30px;                      /* Replicated audio player exact hover placement */
    white-space: normal;
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Replicated matching custom scrollbar indicators from audio tracklist */
#video-title::-webkit-scrollbar {
    width: 4px;
}
#video-title::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 10px;
}

.v-menu-item {
    padding: 8px 5px;
    display: block;
    opacity: 0.6;
    transition: 0.2s;
    border-bottom: 1px solid #222;
    font-size: 9px;
    width: 100%;
    box-sizing: border-box;
}

.v-menu-item:last-child { border-bottom: none; }
.v-menu-item:hover { opacity: 1; background: #1e1e1e; }
.v-menu-item.v-active-link { opacity: 1; color: #fff; font-weight: bold; }
