.plvs {
    --plvs-max: 880px; --plvs-ratio: 16/9; --plvs-fit: contain;
    --plvs-accent: #3172bc; --plvs-text: #858585; --plvs-gap: 54px;
    --plvs-arrow: #59616a; --plvs-active-border: #3172bc; --plvs-inactive-border: #eef1f4;
    position: relative; width: 100%; max-width: 100%; margin: 0 auto !important;
    isolation: isolate;
}
.plvs.plvs-surface-dark { --plvs-arrow: #fff; --plvs-inactive-border: #f0f2f4; }
.plvs, .plvs * { box-sizing: border-box; }
.plvs [hidden] { display: none !important; }
.plvs > p.plvs-type-probe { position: absolute !important; visibility: hidden !important; pointer-events: none; margin: 0 !important; padding: 0 !important; width: auto; height: auto; }
.plvs .plvs-frame {
    width: 100%; max-width: var(--plvs-max); margin: 0 auto;
    padding: 12px 13px; border: 1px solid rgba(255,255,255,.82); border-radius: 30px;
    background: linear-gradient(145deg,rgba(238,241,244,.96),rgba(226,233,240,.94));
    box-shadow: 0 18px 44px rgba(27,49,69,.23), 0 5px 14px rgba(27,49,69,.10), inset 0 0 12px rgba(255,255,255,.3);
}
.plvs .plvs-screen { position: relative; width: 100%; aspect-ratio: var(--plvs-ratio); border-radius: 23px; overflow: hidden; background: #e5e8eb; }
.plvs .plvs-media { position: absolute; inset: 0; }
.plvs .plvs-video, .plvs .plvs-poster { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: var(--plvs-fit); }
.plvs .plvs-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #69727b; font: inherit; }
.plvs .plvs-poster ~ .plvs-placeholder, .plvs.plvs-has-frame .plvs-placeholder { display: none; }
.plvs.plvs-has-frame .plvs-media { background: #f4f6f8; }
.plvs .plvs-hold { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: var(--plvs-fit); background: #f4f6f8; pointer-events: none; }
.plvs .plvs-navigation { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; max-width: var(--plvs-timeline-max,100%); margin: var(--plvs-gap) auto 0; }
.plvs .plvs-viewport { position: relative; min-width: 0; overflow: hidden; padding: 23px 0 5px; margin: -23px 0 -5px; }
.plvs .plvs-viewport.has-overflow { mask-image: linear-gradient(to right,transparent,#000 var(--plvs-peek),#000 calc(100% - var(--plvs-peek)),transparent); -webkit-mask-image: linear-gradient(to right,transparent,#000 var(--plvs-peek),#000 calc(100% - var(--plvs-peek)),transparent); }
.plvs .plvs-track { overflow: visible !important; display: flex; gap: var(--plvs-tile-gap,10px); width: max-content; margin: 0; padding: 0; }
.plvs .plvs-track.plvs-is-moving { will-change: transform; }
.plvs button.plvs-tile, .plvs button.plvs-arrow, .plvs button.plvs-resume, .plvs button.plvs-preview, .plvs button.plvs-pause {
    appearance: none; -webkit-appearance: none; font: inherit; text-transform: none;
    margin: 0; min-width: 0; min-height: 0; cursor: pointer; outline-offset: 3px; letter-spacing: inherit;
}
.plvs button.plvs-tile {
    position: relative; display: grid; align-items: center; flex: 0 0 var(--plvs-tile,var(--plvs-card-width,142px)); width: var(--plvs-tile,var(--plvs-card-width,142px));
    height: var(--plvs-card-height,40px); min-height: var(--plvs-card-height,40px); grid-template-rows: minmax(0,1fr); padding: 0 10px; overflow: visible !important;
    border: 1px solid var(--plvs-inactive-border); border-radius: 7px;
    background: rgba(237,240,243,.88); color: var(--plvs-text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
    font-family: var(--plvs-font-family,inherit); font-size: var(--plvs-font-size,inherit);
    font-weight: var(--plvs-font-weight,inherit); font-style: var(--plvs-font-style,inherit);
    line-height: var(--plvs-line-height,inherit); letter-spacing: var(--plvs-letter-spacing,inherit);
    text-transform: var(--plvs-text-transform,none); text-align: center;
}
.plvs button.plvs-tile.is-active { background: #3172bc; color: #fff; border-color: var(--plvs-active-border); }
.plvs .plvs-fill-mask { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; pointer-events: none; }
.plvs .plvs-fill { position: absolute; inset: 0; background: linear-gradient(110deg,rgba(255,255,255,.30),rgba(255,255,255,.12)),var(--plvs-accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
/* Identical text geometry; complementary clipping prevents a dark ghost
   underneath the white text. The inner span truncates both copies identically. */
.plvs .plvs-label, .plvs .plvs-label-filled { position: absolute; inset: 0; display: flex; align-items: center; margin: 0; padding: 0 10px; min-width: 0; overflow: hidden; pointer-events: none; font: inherit; color: inherit; text-shadow: none; }
.plvs .plvs-label-text { display: block; width: 100%; min-width: 0; margin: 0; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: inherit; color: inherit; text-align: center; text-shadow: none; }
.plvs .plvs-label-filled { color: #fff; clip-path: inset(0 100% 0 0); }
.plvs .plvs-marker { position: absolute; z-index: 2; left: -1px; top: -3px; bottom: -1px; width: 2px; background: #fff; filter: drop-shadow(0 0 .65px rgba(34,53,64,.7)); pointer-events: none; transform: translate3d(0,0,0); }
.plvs .plvs-marker::before { content: ''; position: absolute; top: -2px; left: -4px; width: 10px; height: 10px; background: #fff; clip-path: polygon(0 0,100% 0,50% 100%); }
.plvs .plvs-scrubber { position: absolute; z-index: 3; left: 50%; top: 15px; transform: translateX(-50%); height: calc(var(--plvs-card-height,40px) + 16px); min-width: 0; max-width: none; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: auto; clip-path: inset(0 11px); cursor: ew-resize; touch-action: none; appearance: none; -webkit-appearance: none; }
.plvs .plvs-scrubber::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 24px; height: calc(var(--plvs-card-height,40px) + 16px); pointer-events: auto; cursor: ew-resize; }
.plvs .plvs-scrubber::-moz-range-thumb { width: 24px; height: calc(var(--plvs-card-height,40px) + 16px); border: 0; pointer-events: auto; cursor: ew-resize; }
.plvs .plvs-scrubber::-moz-range-track { border: 0; }
.plvs.plvs-is-scrubbing .plvs-marker { filter: drop-shadow(0 0 2px rgba(20,42,67,.7)); }
.plvs .plvs-tile:not(.is-active) .plvs-fill, .plvs .plvs-tile:not(.is-active) .plvs-label-filled, .plvs .plvs-tile:not(.is-active) .plvs-marker { display: none; }
.plvs .plvs-tile.is-active .plvs-fill, .plvs .plvs-tile.is-active .plvs-marker { will-change: transform; }
.plvs button.plvs-arrow { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 40px; padding: 7px; border: 0; border-radius: 7px; background: transparent; box-shadow: none; color: var(--plvs-arrow); opacity: .86; }
.plvs .plvs-arrow svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.plvs button.plvs-arrow:hover { opacity: 1; background: rgba(127,139,150,.12); }
.plvs button:focus-visible { outline: 2px solid var(--plvs-accent); }
.plvs button.plvs-resume, .plvs button.plvs-preview { position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%,-50%); display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; padding: 12px 22px; background: #3172bc; color: #fff; box-shadow: 0 6px 20px rgba(20,42,67,.24); font: inherit; }
.plvs button.plvs-resume::before { content: ''; width: 16px; height: 18px; background: currentColor; clip-path: polygon(15% 0,100% 50%,15% 100%); }
.plvs button.plvs-resume:hover, .plvs button.plvs-preview:hover { background: #2765aa; }
.plvs.plvs-is-editor:not(.plvs-preview-running) .plvs-placeholder { padding-bottom: 95px; }
.plvs.plvs-preview-running button.plvs-preview { top: 12px; bottom: auto; left: 12px; transform: none; padding: 6px 12px; font-size: 14px; }
.plvs button.plvs-pause { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; padding: 0; background: rgba(255,255,255,.92); color: #3172bc; box-shadow: 0 5px 18px rgba(20,42,67,.3); opacity: 0; transition: opacity .18s, background .18s; }
.plvs .plvs-pause svg { display: block; width: 22px; height: 22px; fill: currentColor; }
.plvs .plvs-icon-play, .plvs.plvs-is-paused .plvs-icon-pause { display: none; }
.plvs.plvs-is-paused .plvs-icon-play { display: block; }
.plvs button.plvs-pause:hover { background: #fff; }
.plvs .plvs-screen:hover .plvs-pause, .plvs .plvs-screen:focus-within .plvs-pause, .plvs.plvs-is-paused .plvs-pause { opacity: 1; }
.plvs .plvs-status { position: absolute; z-index: 3; left: 16px; right: 76px; bottom: 12px; color: #fff; background: rgba(0,0,0,.75); padding: 9px 12px; border-radius: 7px; font-size: 13px; }
.plvs .plvs-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
    .plvs .plvs-frame { padding: 7px; border-radius: 20px; }
    .plvs .plvs-screen { border-radius: 14px; }
}
@media (hover: none) { .plvs button.plvs-pause { opacity: .8; } }

/* Natural title width also works in the editor's static, media-free preview. */
.plvs.plvs-auto-width button.plvs-tile:not([data-position]) { width: max-content; flex-basis: auto; max-width: 100%; }
.plvs.plvs-auto-width button.plvs-tile:not([data-position]) > .plvs-label { position: relative; inset: auto; padding: 0; }

.plvs .plvs-transition { position: absolute; inset: 0; z-index: 2; background: #fff; opacity: 0; pointer-events: none; }
