/* ===========================
   VIDEOPLAYER
=========================== */

.video-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    background: #000;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    color: #fff;
}

/* Video */

.video-container video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    background: #000;
    object-fit: contain;
}

/* ===========================
   CONTROLS
=========================== */

.controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    box-sizing: border-box;
    background: #151515;
}

/* Buttons */

.controls button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 21px;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}

.controls button:hover {
    color: #00aaff;
}

/* Progressbar */

.progress {
    flex: 1;
    min-width: 30px;
    cursor: pointer;
    accent-color: #00aaff;
}

/* Time */

.time {
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Volume */

.volume {
    width: 85px;
    flex-shrink: 0;
    accent-color: #00aaff;
}

/* Full-screen */

.video-container:fullscreen {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    border-radius: 0;
    background: #000;
}

.video-container:fullscreen video {
    width: 100%;
    height: calc(100% - 60px);
    max-height: none;
    object-fit: contain;
}

/* ===========================
   MOBIL / IPHONE
=========================== */

@media (max-width: 600px) {

    .video-container {
        width: 100%;
        margin: 10px 0;
        border-radius: 8px;
    }

    .video-container video {
        width: 100%;
        max-height: none;
        height: auto;
    }

    .controls {
        gap: 7px;
        padding: 10px 8px;
    }

    .controls button {
        font-size: 20px;
        padding: 5px;
    }

    .time {
        font-size: 11px;
    }

    /* Hide volume slider on mobile */
    .volume {
        display: none;
    }

    /* Little less spacing around the time display */
    #currentTime,
    #duration {
        min-width: 38px;
        text-align: center;
    }

    /* Full-screen on mobile */
    .video-container:fullscreen video {
        width: 100%;
        height: calc(100% - 55px);
        object-fit: contain;
    }

}

/* Extra small screens */

@media (max-width: 380px) {

    .controls {
        gap: 4px;
        padding: 8px 5px;
    }

    .controls button {
        font-size: 18px;
    }

    .time {
        font-size: 10px;
    }

    #currentTime,
    #duration {
        min-width: 34px;
    }

}