.svp {
--svp-max: 100%;
--svp-ratio: 16/9;
--svp-radius: 20px;
--svp-red: #c4182a;
--svp-ctrl-bg: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
position: relative;
width: 100%;
max-width: var(--svp-max);
margin: 0 auto 1.5em;
padding: 0;
}
.svp.svp-align-left { margin-left: 0; margin-right: auto; }
.svp.svp-align-right { margin-left: auto; margin-right: 0; }
.svp *, .svp *::before, .svp *::after { box-sizing: border-box; }
.svp .svp-stage {
position: relative;
width: 100%;
aspect-ratio: var(--svp-ratio);
overflow: hidden;
border-radius: var(--svp-radius);
background: #000;
outline: none;
isolation: isolate;
}
.svp .svp-video {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
background: #000;
border-radius: 0;
cursor: pointer;
} .svp .svp-stage button.svp-big {
position: absolute;
left: 50%;
top: 50%;
z-index: 3;
width: clamp(56px, 12%, 96px);
height: auto;
margin: 0;
padding: 0;
border: 0;
background: transparent;
box-shadow: none;
transform: translate(-50%, -50%);
cursor: pointer;
line-height: 0;
transition: transform .15s ease, opacity .2s ease;
}
.svp .svp-big svg { display: block; width: 100%; height: auto; fill: var(--svp-red); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.svp .svp-stage button.svp-big:hover,
.svp .svp-stage button.svp-big:focus-visible { transform: translate(-50%, -50%) scale(1.08); background: transparent; }
.svp .svp-stage button.svp-big:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 10px; }
.svp.svp-playing .svp-big { opacity: 0; pointer-events: none; } .svp .svp-controls {
position: absolute;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
display: flex;
align-items: center;
gap: 10px;
padding: 26px 14px 10px;
background: var(--svp-ctrl-bg);
color: #fff;
font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
font-variant-numeric: tabular-nums;
opacity: 0;
transform: translateY(6px);
transition: opacity .2s ease, transform .2s ease;
pointer-events: none;
}
.svp .svp-controls[hidden] { display: none; }
.svp.svp-started.svp-show .svp-controls,
.svp.svp-started.svp-controls-always .svp-controls,
.svp.svp-started:not(.svp-playing) .svp-stage:hover .svp-controls,
.svp.svp-started .svp-controls:has(:focus-visible) {
opacity: 1;
transform: none;
pointer-events: auto;
}
.svp.svp-playing.svp-idle .svp-stage { cursor: none; }
.svp.svp-playing.svp-idle .svp-video { cursor: none; }
.svp .svp-controls button.svp-btn {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
margin: 0;
padding: 4px;
border: 0;
border-radius: 6px;
background: transparent;
box-shadow: none;
color: #fff;
cursor: pointer;
line-height: 0;
}
.svp .svp-controls button.svp-btn:hover,
.svp .svp-controls button.svp-btn:focus-visible { background: rgba(255, 255, 255, .18); color: #fff; outline: none; }
.svp .svp-btn svg { width: 22px; height: 22px; fill: currentColor; } .svp .svp-play svg + svg,
.svp.svp-playing .svp-play svg:first-child,
.svp .svp-mute svg + svg,
.svp.svp-muted .svp-mute svg:first-child { display: none; }
.svp.svp-playing .svp-play svg + svg,
.svp.svp-muted .svp-mute svg + svg { display: block; }
.svp .svp-time, .svp .svp-duration { flex: 0 0 auto; min-width: 34px; text-align: center; opacity: .95; } .svp input[type="range"] {
--val: 0%;
-webkit-appearance: none;
appearance: none;
height: 18px;
margin: 0;
padding: 0;
border: 0;
background: transparent;
cursor: pointer;
box-shadow: none;
}
.svp input[type="range"]:focus { outline: none; }
.svp input[type="range"]::-webkit-slider-runnable-track {
height: 4px;
border-radius: 2px;
background: linear-gradient(to right, var(--svp-red) var(--val), rgba(255, 255, 255, .35) var(--val));
}
.svp input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.svp input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--svp-red); }
.svp input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 13px;
height: 13px;
margin-top: -4.5px;
border: 0;
border-radius: 50%;
background: #fff;
box-shadow: 0 0 0 0 rgba(255, 255, 255, .3);
transition: box-shadow .15s;
}
.svp input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.svp input[type="range"]:hover::-webkit-slider-thumb,
.svp input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(255, 255, 255, .3); }
.svp .svp-seek { flex: 1 1 auto; min-width: 60px; }
.svp .svp-volume { flex: 0 0 auto; display: flex; align-items: center; }
.svp .svp-vol { width: 0; opacity: 0; transition: width .2s ease, opacity .2s ease, margin .2s ease; }
.svp .svp-volume:hover .svp-vol,
.svp .svp-volume:focus-within .svp-vol { width: 80px; opacity: 1; margin-left: 6px; }
.svp.svp-no-volume .svp-vol { display: none; } .svp .svp-stage::after {
content: "";
position: absolute;
left: 50%;
top: 50%;
z-index: 1;
width: 38px;
height: 38px;
margin: -19px 0 0 -19px;
border: 3px solid rgba(255, 255, 255, .35);
border-top-color: #fff;
border-radius: 50%;
opacity: 0;
pointer-events: none;
animation: svp-spin .8s linear infinite;
transition: opacity .2s;
}
.svp.svp-waiting .svp-stage::after { opacity: 1; }
@keyframes svp-spin { to { transform: rotate(360deg); } } .svp .svp-stage:fullscreen { border-radius: 0; aspect-ratio: auto; }
.svp .svp-stage:fullscreen .svp-video { object-fit: contain; }
.svp .svp-caption { margin-top: .6em; font-size: .9em; text-align: center; color: #555; } @media (max-width: 600px) {
.svp .svp-controls { gap: 6px; padding: 22px 8px 6px; }
.svp .svp-volume:hover .svp-vol { width: 0; opacity: 0; margin: 0; }
.svp .svp-time { display: none; }
} .svp:not(.svp-ready) .svp-big,
.svp:not(.svp-ready) .svp-controls { display: none; } .editor-styles-wrapper .svp .svp-video { pointer-events: none; }
.editor-styles-wrapper .svp .svp-video::-webkit-media-controls { display: none !important; }
.editor-styles-wrapper .svp:not(.svp-ready) .svp-big { display: block; pointer-events: none; }
.svp-missing { padding: 1em; border: 1px dashed #c3c4c7; text-align: center; }
@media (prefers-reduced-motion: reduce) {
.svp * { transition: none !important; animation: none !important; }
}