﻿.video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 700px;
    background: #f5f5f5;
    overflow: hidden;
}

    .video-box video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: #000;
    }

/* overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    pointer-events: none;
    z-index: 1;
}

/* plyr */
.plyr {
    position: relative;
    z-index: 2;
}

.plyr__controls {
    opacity: 1 !important;
    visibility: visible !important;
}

/* toolbar nhỏ */
.plyr--video .plyr__controls {
    padding: 6px 10px;
    gap: 8px;
    background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.plyr__control {
    padding: 6px;
}

    .plyr__control svg {
        width: 16px;
        height: 16px;
    }

.plyr__progress input[type=range] {
    height: 3px;
}

.plyr--full-ui input[type=range] {
    color: #019680;
}

.video-box {
    position: relative;
    width: 100%;
    max-height: 700px;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

    .video-box video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    pointer-events: none;
    z-index: 1;
}

/* toolbar */
.video-toolbar {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(0,0,0,.55);
    border-radius: 6px;
    z-index: 2;
}

    .video-toolbar button {
        background: none;
        border: none;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
    }

    .video-toolbar input[type=range] {
        flex: 1;
        height: 3px;
        cursor: pointer;
    }
