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

.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);
}

/* Keep portrait recordings within the viewport and preserve their native shape. */
html body .video-player.is-portrait:not(:fullscreen):not(.is-fullscreen) {
    max-width: min(100%, calc(80vh * var(--video-aspect-ratio)));
    max-width: min(100%, calc(80svh * var(--video-aspect-ratio)));
    height: auto;
    margin-inline: auto;
}

html body .video-player.is-portrait:not(:fullscreen):not(.is-fullscreen) .video-player__media {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
}

/* 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__center-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 24px;
}

.video-player__skip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    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 {
    position: relative;
    top: auto;
    left: auto;
    width: 82px;
    height: 82px;
    font-size: 28px;
    transform: none;
}

.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;
}@media (hover: hover) and (pointer: fine) {


.video-player__play:hover {
    background: rgba(60, 60, 68, 0.55);
    transform: 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);
}
}@media (hover: hover) and (pointer: fine) {


.video-player__skip:hover {
    background: rgba(60, 60, 68, 0.55);
    transform: 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);
}
}@media (hover: hover) and (pointer: fine) {


.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: scale(.96);
}

.video-player__skip:active {
    transform: 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;
    border: 0 !important;
    outline: 0 !important;
    background: #000;
}

.video-player.is-fullscreen,
.video-player.is-fullscreen:fullscreen,
.video-player.is-fullscreen:-webkit-full-screen {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.video-player.is-fullscreen::before,
.video-player.is-fullscreen::after,
.video-player:fullscreen::before,
.video-player:fullscreen::after,
.video-player:-webkit-full-screen::before,
.video-player:-webkit-full-screen::after {
    display: none !important;
    content: none !important;
    border: 0 !important;
    outline: 0 !important;
}

.video-player:fullscreen .video-player__media {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-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; }
}

body.video-fullscreen-open { overflow: hidden !important; }

.video-fullscreen-ui {
    position: fixed !important;
    z-index: 2147483000 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: #000 !important;
    background-image: none !important;
}

.video-fullscreen-ui:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: #000 !important;
    background-image: none !important;
}

.video-fullscreen-ui::before,
.video-fullscreen-ui::after { content: none !important; display: none !important; }

.video-fullscreen-ui__stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    background: #000;
}

.video-fullscreen-ui .video-player__media {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    object-fit: contain !important;
    background: #000 !important;
}

.video-fullscreen-ui .video-fullscreen-ui__controls {
    position: absolute !important;
    z-index: 10 !important;
    inset: 0 !important;
    transform: none !important;
    pointer-events: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
}

.video-fullscreen-ui.is-controls-visible .video-fullscreen-ui__controls {
    opacity: 1;
    visibility: visible;
}

.video-fullscreen-ui .video-player__center-controls { z-index: 1; }
.video-fullscreen-ui .video-player__progress { z-index: 2; }
.video-fullscreen-ui .video-player__fullscreen { z-index: 3; }

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