* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #222;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.video-container {
    width: 800px;
    max-width: 90%;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

video {
    width: 100%;
    display: block;
}

.video-controls {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-container:hover .video-controls {
    transform: translateY(0);
}

button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    margin: 0 5px;
    outline: none;
}

button:hover {
    color: #ff9800;
}

.progress {
    flex-grow: 1;
    height: 10px;
    margin: 0 10px;
    cursor: pointer;
    background: #444;
    border-radius: 5px;
    appearance: none;
}

.progress::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: #ff9800;
    border-radius: 50%;
    cursor: pointer;
}

.volume {
    width: 80px;
    height: 6px;
    margin: 0 10px;
    cursor: pointer;
    background: #444;
    border-radius: 3px;
    appearance: none;
}

.volume::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #ff9800;
    border-radius: 50%;
    cursor: pointer;
}

.time {
    font-size: 14px;
    margin: 0 10px;
    white-space: nowrap;
}

/* Subtitles styling */
video::cue {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    text-shadow: 1px 1px 2px black;
}

/* Fullscreen styles */
.video-container.fullscreen {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
}

/* Active button state */
button.active {
    color: #ff9800;
}
