/* ============================================================
   Shared Video Player — Styles
   ============================================================ */

/* Container */
[data-video-src] {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Control bar */
.vp-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 30;
    opacity: 0;
    transition: opacity 0.3s;
}

[data-video-src]:hover .vp-controls,
[data-video-src] .vp-controls.vp-controls-visible {
    opacity: 1;
}

[data-video-src] .vp-controls.vp-paused {
    opacity: 1;
}

/* Buttons — 44px minimum tap target */
.vp-play-btn, .vp-fullscreen-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vp-play-btn:hover, .vp-fullscreen-btn:hover {
    color: #f0c300;
}

/* Time */
.vp-time {
    color: #fff;
    font-size: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}

.vp-separator { margin: 0 0.15rem; opacity: 0.6; }

/* Progress bar */
.vp-progress {
    flex: 1;
    padding: 0.75rem 0;
    cursor: pointer;
    min-width: 0;
}

.vp-progress-bar {
    position: relative;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.vp-progress-filled {
    height: 100%;
    background: #f0c300;
    border-radius: 2px;
    width: 0%;
    position: relative;
}

.vp-progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #f0c300;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.vp-progress:hover .vp-progress-handle,
.vp-progress:active .vp-progress-handle {
    opacity: 1;
}

/* Play overlay */
.vp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    transition: opacity 0.3s;
}

.vp-overlay.vp-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Video element */
.vp-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Hide native controls */
.vp-video::-webkit-media-controls { display: none !important; }
.vp-video::-webkit-media-controls-enclosure { display: none !important; }

/* Thumbnail */
.vp-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    transition: opacity 0.3s;
}

.vp-thumbnail.vp-hidden {
    opacity: 0;
}
