/* Shared glass video player - Clean Liquid Glass Style */
.video-player {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    isolation: isolate;
}

.video-player__media {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    background: #000;
}

.video-player__controls {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(.98);
    transition: opacity .3s cubic-bezier(0.16, 1, 0.3, 1), transform .3s cubic-bezier(0.16, 1, 0.3, 1), visibility .3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Controls show when active */
.video-player.is-active .video-player__controls {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.video-player__play,
.video-player__fullscreen {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    /* Pure frosted glass: flat translucent surface with a fine inner light border */
    background: rgba(40, 40, 45, 0.4);
    color: #fff;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.video-player__play-icon {
    display: inline-block;
    margin-left: 3px;
}

.video-player__play {
    top: 50%;
    left: 50%;
    width: 82px;
    height: 82px;
    font-size: 28px;
    transform: translate(-50%, -50%);
}

.video-player__fullscreen {
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    background: rgba(40, 40, 45, 0.4);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    transform: none;
}

.video-player__play:hover {
    background: rgba(60, 60, 68, 0.55);
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 
        0 12px 36px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.video-player__fullscreen:hover {
    background: rgba(60, 60, 68, 0.55);
    transform: scale(1.04);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.video-player__play:active {
    transform: translate(-50%, -50%) scale(.96);
}

.video-player__fullscreen:active {
    transform: scale(.96);
}

/* Floating pill container for the seek bar */
.video-player__progress {
    position: absolute;
    right: 88px;
    bottom: 24px;
    left: 24px;
    box-sizing: border-box;
    padding: 16px 20px;
    border-radius: 999px;
    pointer-events: auto;
    background: rgba(40, 40, 45, 0.4);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
}

.video-player__progress input {
    width: 100%;
    height: 5px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(to right, #fff var(--progress, 0%), rgba(255, 255, 255, 0.25) var(--progress, 0%));
    cursor: pointer;
}

.video-player__progress input::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background: transparent;
}

.video-player__progress input::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -4.5px;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.video-player__progress input::-moz-range-track {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.video-player__progress input::-moz-range-progress {
    height: 5px;
    border-radius: 999px;
    background: #fff;
}

.video-player__progress input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.video-player:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    background: #000;
}

.video-player:fullscreen .video-player__media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .video-player { border-radius: 20px; }
    .video-player__play { width: 72px; height: 72px; font-size: 22px; }
    .video-player__fullscreen { right: 16px; bottom: 16px; width: 44px; height: 44px; font-size: 15px; }
    .video-player__progress { right: 72px; bottom: 16px; left: 16px; padding: 14px 16px; }
    .video-player__progress input,
    .video-player__progress input::-webkit-slider-runnable-track,
    .video-player__progress input::-moz-range-track,
    .video-player__progress input::-moz-range-progress { height: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .video-player__controls,
    .video-player__play,
    .video-player__fullscreen { transition: none; }
}