body {
    margin: 0;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.video-container {
    width: 95%;
    max-width: 960px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
    background: #000;
}

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

/* Center Play/Pause Overlay */
.center-play {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.play-icon-glow {
    width: 80px;
    height: 80px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transform: scale(1.5);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container.paused .play-icon-glow,
.video-container.ended .play-icon-glow {
    opacity: 1;
    transform: scale(1);
}

.play-icon-glow svg {
    margin-left: 2px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* Controls Bar */
.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 15px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.video-container:hover .controls,
.video-container.paused .controls,
.video-container.inactive:not(:hover).paused .controls {
    opacity: 1;
    transform: translateY(0);
}

.video-container.inactive:not(:hover):not(.paused) .controls {
    opacity: 0;
    transform: translateY(20px);
}

.video-container.inactive {
    cursor: none;
}

/* Progress Bar */
.progress-wrap {
    width: 100%;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    transition: height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-wrap:hover .progress-container {
    height: 8px;
}

.progress {
    height: 100%;
    width: 0%;
    background: #ff2a2a;
    background: linear-gradient(90deg, #ff2a2a, #ff5e5e);
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 42, 42, 0.6);
}

.progress-handle {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.progress-wrap:hover .progress-handle {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Control Actions */
.control-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.control-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.control-btn:active {
    transform: scale(0.95);
}

.hidden {
    display: none !important;
}

/* Volume Slider */
.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: width 0.3s ease;
}

.volume-slider {
    width: 0;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
    opacity: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform-origin: left;
    cursor: pointer;
    pointer-events: none;
}

.volume-container:hover .volume-slider,
.volume-slider:focus {
    width: 80px;
    opacity: 1;
    pointer-events: auto;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Time Display */
.time-display {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    user-select: none;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.time-separator {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}
