/* VH-3 — the Launch Media video player. Modeled on Wistia's: a poster, a big rounded play button in
   the account's color, a slim bar that fades while the video plays. --accent comes from the settings. */
:root { --accent: #1c64f2; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font: 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
.lp { position: relative; width: 100%; height: 100%; background: #000; outline: none; user-select: none; -webkit-user-select: none; }
.lp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lp.idle { cursor: none; }

/* big play button: a rounded block in the accent color, a little see-through until hovered */
.lp-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(64px, 16%, 128px); aspect-ratio: 1.6; border: 0; border-radius: 12px; background: var(--accent); opacity: .92; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.25); transition: opacity .15s, transform .15s; padding: 0; }
.lp-big:hover, .lp-big:focus-visible { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
.lp-big svg { width: 42%; height: 60%; fill: #fff; }
.lp-big:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.lp-spin { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: lp-spin .8s linear infinite; pointer-events: none; }
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* control bar */
.lp-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 6px; background: linear-gradient(transparent, rgba(0,0,0,.65)); transition: opacity .25s; }
.lp.idle .lp-bar, .lp.fresh .lp-bar { opacity: 0; pointer-events: none; }
.lp-row { display: flex; align-items: center; gap: 2px; height: 34px; }
.lp-grow { flex: 1; }
.lp-btn { width: 34px; height: 34px; border: 0; background: none; color: #fff; padding: 7px; cursor: pointer; border-radius: 6px; display: grid; place-items: center; }
.lp-btn svg { width: 20px; height: 20px; fill: currentColor; }
.lp-btn:hover { background: rgba(255,255,255,.14); }
.lp-btn:focus-visible { outline: 2px solid #fff; }
.lp .i-pause, .lp.playing .i-play, .lp .i-muted, .lp.muted .i-vol, .lp .i-exit, .lp.full .i-full { display: none; }
.lp.playing .i-pause, .lp.muted .i-muted, .lp.full .i-exit { display: block; }
.lp-time { font-variant-numeric: tabular-nums; padding: 0 8px; opacity: .95; white-space: nowrap; }

/* volume slider opens on hover (desktop only) */
.lp-vol { display: flex; align-items: center; }
.lp-volslider { width: 0; opacity: 0; transition: width .15s, opacity .15s; accent-color: var(--accent); margin: 0; }
.lp-vol:hover .lp-volslider, .lp-volslider:focus { width: 70px; opacity: 1; margin: 0 6px 0 2px; }
@media (hover: none) { .lp-volslider { display: none; } }

/* progress: thick on hover, accent fill, round knob */
.lp-track { position: relative; height: 14px; cursor: pointer; display: flex; align-items: center; touch-action: none; }
.lp-track::before, .lp-buffered, .lp-played { content: ""; position: absolute; left: 0; height: 4px; border-radius: 2px; transition: height .12s; }
.lp-track::before { right: 0; background: rgba(255,255,255,.3); }
.lp-buffered { background: rgba(255,255,255,.45); width: 0; }
.lp-played { background: var(--accent); width: 0; }
.lp-track:hover::before, .lp-track:hover .lp-buffered, .lp-track:hover .lp-played { height: 6px; }
.lp-knob { position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .12s; }
.lp-track:hover .lp-knob, .lp-track:focus-visible .lp-knob { transform: scale(1); }
.lp-track:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lp-hovertime { position: absolute; bottom: 16px; transform: translateX(-50%); background: rgba(0,0,0,.8); padding: 4px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; pointer-events: none; }

/* settings menu */
.lp-menuwrap { position: relative; }
.lp-menu { position: absolute; right: 0; bottom: 40px; min-width: 150px; max-height: 260px; overflow-y: auto; background: rgba(20,20,24,.94); border-radius: 8px; padding: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.lp-menu-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; padding: 8px 8px 4px; }
.lp-opt { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; border: 0; background: none; color: #fff; font: inherit; padding: 7px 8px; border-radius: 5px; cursor: pointer; text-align: left; }
.lp-opt:hover, .lp-opt:focus-visible { background: rgba(255,255,255,.12); outline: none; }
.lp-opt[aria-checked="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.lp-gone { position: absolute; inset: 0; display: grid; place-items: center; background: #111; color: #d4d4d8; font-size: 15px; padding: 16px; text-align: center; }
.lp-gone p { margin: 0; }

/* small embeds: tighter bar, no time */
@media (max-width: 360px) { .lp-time { display: none; } .lp-bar { padding-inline: 4px; } }

/* the link is on but the versions are still being made */
.lp-wait { background: #111; }
.lp-wait > div { display: grid; justify-items: center; gap: 10px; }
.lp-wait .lp-sub { font-size: 13px; opacity: .6; }
.lp-waitspin { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--accent); border-radius: 50%; animation: lp-spin .9s linear infinite; }
