/* Recap video player */
.rp [hidden] { display: none !important; }
.rp:not(.started) .rp-cap { display: none; }
.rp { position: relative; background: #000; border-radius: 14px; overflow: hidden; outline: none; aspect-ratio: 16 / 9; width: 100%; user-select: none; -webkit-user-select: none; font-family: 'Instrument Sans', system-ui, sans-serif; color: #fff; }
.rp:focus-visible { box-shadow: 0 0 0 2px #22c3ff; }
.rp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; cursor: pointer; }
.rp:fullscreen { border-radius: 0; aspect-ratio: auto; }
.rp-big { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #22c3ff, #1a8dff 45%, #0055fe); box-shadow: 0 18px 50px -10px rgba(0, 85, 254, .8), 0 0 0 8px rgba(255, 255, 255, .12); transition: transform .18s, box-shadow .18s; z-index: 2; }
.rp-big:hover { transform: scale(1.07); box-shadow: 0 18px 50px -10px rgba(0, 85, 254, .9), 0 0 0 12px rgba(255, 255, 255, .14); }
.rp-big svg { width: 34px; height: 34px; margin-left: 5px; }
.rp.playing .rp-big { opacity: 0; pointer-events: none; transform: scale(.9); }
.rp-spin { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #22c3ff; animation: rpspin .8s linear infinite; z-index: 2; }
@keyframes rpspin { to { transform: rotate(360deg); } }
.rp-cap { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); max-width: min(84%, 900px); padding: 8px 14px; border-radius: 10px; background: rgba(0, 0, 0, .72); font-size: clamp(13px, 1.7vw, 19px); line-height: 1.4; text-align: center; z-index: 2; transition: bottom .2s; }
.rp-cap b { color: #22c3ff; margin-right: 6px; font-weight: 600; }
.rp:not(.ui) .rp-cap { bottom: 22px; }
.rp-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); transition: opacity .25s, transform .25s; z-index: 3; }
.rp.started:not(.ui) .rp-ui { opacity: 0; transform: translateY(8px); pointer-events: none; }
.rp.started:not(.ui) { cursor: none; }
.rp-scrub { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.rp-segs { display: flex; gap: 3px; width: 100%; height: 5px; transition: height .15s; }
.rp-scrub:hover .rp-segs, .rp.drag .rp-segs { height: 8px; }
.rp-seg { position: relative; height: 100%; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.rp-seg:hover { background: rgba(255, 255, 255, .32); }
.rp-buf { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .25); }
.rp-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #22c3ff, #1a8dff); }
.rp-marks { position: absolute; inset: 0; pointer-events: none; }
.rp-marks i { position: absolute; top: 50%; width: 4px; height: 12px; margin: -6px 0 0 -2px; border-radius: 2px; background: #ffb547; box-shadow: 0 0 6px rgba(255, 181, 71, .7); }
.rp-knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(34, 195, 255, .35); transform: scale(0); transition: transform .15s; pointer-events: none; }
.rp-scrub:hover .rp-knob, .rp.drag .rp-knob { transform: scale(1); }
.rp-tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: rgba(10, 12, 16, .95); border: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; font-size: 12px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .12s; }
.rp-tip b { display: block; font-weight: 500; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.rp-tip b:empty { display: none; }
.rp-tip span { font-family: 'JetBrains Mono', ui-monospace, monospace; color: #22c3ff; }
.rp-scrub:hover .rp-tip { opacity: 1; }
.rp-row { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.rp-btn { width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .15s; font: 600 13px 'Instrument Sans', system-ui, sans-serif; }
.rp-btn:hover { background: rgba(255, 255, 255, .14); }
.rp-btn svg { width: 22px; height: 22px; }
.rp-btn.on { color: #22c3ff; }
.rp-speed { width: auto; padding: 0 10px; }
.rp-vol { display: flex; align-items: center; }
.rp-vol input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: #22c3ff; }
.rp-vol:hover input, .rp-vol input:focus { width: 80px; opacity: 1; margin-right: 6px; }
.rp-time { font: 500 13px 'JetBrains Mono', ui-monospace, monospace; padding: 0 8px; white-space: nowrap; }
.rp-time i { font-style: normal; opacity: .5; }
.rp-chap { font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rp-sp { flex: 1; }
.rp-menu { position: absolute; right: 60px; bottom: 56px; padding: 6px; border-radius: 12px; background: rgba(18, 21, 27, .97); border: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; min-width: 92px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
.rp-menu button { border: 0; background: transparent; color: #fff; text-align: left; padding: 7px 12px; border-radius: 8px; cursor: pointer; font: 500 13px 'Instrument Sans', system-ui, sans-serif; }
.rp-menu button:hover { background: rgba(34, 195, 255, .12); }
.rp-menu button.on { color: #22c3ff; }
@media (max-width: 640px) {
  .rp-b10, .rp-f10, .rp-chap, .rp-pipb, .rp-vol input { display: none; }
  .rp-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .rp-big svg { width: 26px; height: 26px; }
  .rp-time { font-size: 12px; }
}
