/* Premium thumbnail hover preview. Scoped to .video-hover-preview to avoid layout/theme conflicts. */
.video-hover-preview{position:relative;isolation:isolate;background:#000;cursor:pointer}
.video-hover-preview>img{position:relative;z-index:1;transition:opacity .18s ease,transform .28s ease}
.video-hover-preview.vhp-active>img{opacity:0}
.video-hover-preview.vhp-loading>img{opacity:.28}
.video-hover-preview .duration-badge{z-index:7;transition:opacity .16s ease}
.video-hover-preview.vhp-active .duration-badge,.video-hover-preview.vhp-loading .duration-badge{opacity:0}
.vhp-stage{position:absolute;inset:0;z-index:3;overflow:hidden;border-radius:inherit;background:#000;pointer-events:none;opacity:0;transition:opacity .16s ease}
.video-hover-preview.vhp-active .vhp-stage{opacity:1}
.vhp-stage video,.vhp-stage iframe,.vhp-stage>div{width:100%!important;height:100%!important;display:block;border:0;object-fit:cover;background:#000}
.vhp-loading-indicator{position:absolute;left:50%;top:50%;z-index:6;width:30px;height:30px;margin:-15px 0 0 -15px;border:3px solid rgba(255,255,255,.24);border-top-color:#fff;border-radius:50%;animation:vhp-spin .75s linear infinite;pointer-events:none}
.video-hover-preview:not(.vhp-loading) .vhp-loading-indicator{display:none}
@keyframes vhp-spin{to{transform:rotate(360deg)}}
.vhp-ui{position:absolute;inset:0;z-index:8;pointer-events:none;opacity:0;transition:opacity .16s ease;background:linear-gradient(to bottom,rgba(0,0,0,.18),transparent 42%,rgba(0,0,0,.72))}
.video-hover-preview.vhp-active .vhp-ui{opacity:1}
.vhp-badge{position:absolute;left:8px;top:8px;padding:4px 7px;border-radius:999px;background:rgba(0,0,0,.68);backdrop-filter:blur(8px);color:#fff;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.vhp-controls{position:absolute;left:8px;right:8px;bottom:11px;display:flex;align-items:center;gap:7px;pointer-events:auto}
.vhp-control{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 7px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(12,12,14,.74);backdrop-filter:blur(8px);color:#fff;font-size:11px;font-weight:700;line-height:1;user-select:none;cursor:pointer;box-shadow:0 2px 9px rgba(0,0,0,.22)}
.vhp-control:hover{background:rgba(255,255,255,.22)}
.vhp-time{margin-left:auto;padding:4px 6px;border-radius:6px;background:rgba(0,0,0,.62);color:#fff;font-size:10px;font-variant-numeric:tabular-nums}
.vhp-progress{position:absolute;left:8px;right:8px;bottom:5px;height:4px;border-radius:999px;background:rgba(255,255,255,.34);pointer-events:auto;cursor:pointer;overflow:hidden}
.vhp-progress-fill{width:0;height:100%;border-radius:inherit;background:#fff;box-shadow:0 0 4px rgba(0,0,0,.35)}
.vhp-unavailable{position:absolute;left:50%;top:50%;z-index:9;transform:translate(-50%,-50%);max-width:calc(100% - 22px);padding:7px 9px;border-radius:8px;background:rgba(0,0,0,.78);color:#fff;font-size:11px;text-align:center;pointer-events:none}
.video-hover-preview.vhp-compact .vhp-badge{font-size:8px;padding:3px 5px;left:5px;top:5px}
.video-hover-preview.vhp-compact .vhp-controls{left:5px;right:5px;bottom:9px;gap:4px}
.video-hover-preview.vhp-compact .vhp-control{min-width:23px;height:23px;padding:0 5px;font-size:9px}
.video-hover-preview.vhp-compact .vhp-time{display:none}
.video-hover-preview.vhp-compact .vhp-progress{left:5px;right:5px;bottom:3px;height:3px}
@media (hover:none),(pointer:coarse){.vhp-stage,.vhp-ui,.vhp-loading-indicator,.vhp-unavailable{display:none!important}.video-hover-preview>img{opacity:1!important}}
@media (prefers-reduced-motion:reduce){.video-hover-preview>img,.vhp-stage,.vhp-ui{transition:none}.vhp-loading-indicator{animation-duration:1.3s}}
