html.cp-lock { overflow: hidden; }
.cplayer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 32px; border: 0; background: rgba(4, 7, 11, .88); color: var(--tx-1); display: none; align-items: center; justify-content: center; overscroll-behavior: contain; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cplayer[open] { display: flex; animation: cp-in 180ms var(--ease-out); }
.cplayer::backdrop { background: transparent; }
@keyframes cp-in { from { opacity: 0; } to { opacity: 1; } }
.cplayer .cp-box { position: relative; width: min(1120px, calc(100vw - 64px), calc((100dvh - 190px) * 16 / 9)); min-width: min(560px, calc(100vw - 64px)); display: flex; flex-direction: column; gap: 16px; }
.cplayer .cp-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #05080C; box-shadow: 0 24px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--bd-2); }
.cplayer .cp-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #05080C; object-fit: contain; }
.cplayer [data-ns-quality] { display: none; }
.cplayer .cp-close { position: absolute; z-index: 5; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(12, 18, 26, .72); border: 1px solid rgba(255, 255, 255, .2); transition: background-color 140ms ease, transform 160ms var(--ease-out); }
.cplayer .cp-close:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .cplayer .cp-close:hover { background: rgba(32, 44, 58, .92); } }
.cplayer .cp-close:focus-visible, .cplayer .cp-nav:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.cplayer .cp-nav { position: absolute; z-index: 3; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(12, 18, 26, .62); border: 1px solid rgba(255, 255, 255, .18); opacity: 0; transition: opacity 160ms ease, background-color 140ms ease; }
.cplayer .cp-nav[hidden] { display: none; }
.cplayer .cp-nav.is-prev { left: 14px; }
.cplayer .cp-nav.is-next { right: 14px; }
.cplayer .cp-stage:hover .cp-nav, .cplayer .cp-nav:focus-visible { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cplayer .cp-nav:hover { background: rgba(32, 44, 58, .92); } }
.cplayer .cp-fail { position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: rgba(5, 8, 12, .9); }
.cplayer .cp-fail[hidden] { display: none; }
.cplayer .cp-fail .i { color: var(--bad); }
.cplayer .cp-fail-text { font-size: 15px; font-weight: 650; }
.cplayer .cp-fail-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cplayer .cp-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.cplayer .cp-text { min-width: 0; flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.cplayer .cp-title { font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cplayer .cp-sub { font-size: 16px; line-height: 22px; color: var(--tx-3); }
.cplayer .cp-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.cplayer .cp-actions .btn { height: 44px; padding-inline: 18px; font-size: 15px; font-weight: 650; }
.cplayer .cp-actions .btn-icon { width: 44px; padding: 0; }
.cplayer .cp-actions [hidden] { display: none; }
.cplayer .cp-menu-anchor { position: relative; display: inline-flex; }
.cplayer .cp-menu { top: auto; bottom: calc(100% + 6px); right: 0; min-width: 240px; }
.cplayer .cp-save.is-on .i { fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .cplayer[open] { animation: none; } }
@media (max-width: 760px) {
  .cplayer { padding: 0; align-items: stretch; justify-content: stretch; background: #06090d; }
  .cplayer .cp-box { width: 100%; min-width: 0; height: 100%; gap: 0; }
  .cplayer .cp-stage { border-radius: 0; box-shadow: none; margin-top: env(safe-area-inset-top); }
  .cplayer .cp-close { top: calc(env(safe-area-inset-top) + 10px); right: 10px; width: 40px; height: 40px; }
  .cplayer .cp-nav { display: none; }
  .cplayer .cp-info { flex: 1 1 auto; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 16px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; }
  .cplayer .cp-text { flex: none; }
  .cplayer .cp-title { font-size: 22px; line-height: 28px; }
  .cplayer .cp-sub { font-size: 15px; }
  .cplayer .cp-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .cplayer .cp-actions .cp-send { grid-column: 1 / -1; }
  .cplayer .cp-actions .btn { height: 48px; }
  .cplayer .cp-actions .btn-icon { width: 48px; }
  .cplayer .cp-menu { bottom: calc(100% + 6px); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .cplayer { padding: 0; }
  .cplayer .cp-box { width: 100%; min-width: 0; height: 100%; flex-direction: row; gap: 12px; }
  .cplayer .cp-stage { flex: 1 1 auto; aspect-ratio: auto; border-radius: 0; height: 100%; }
  .cplayer .cp-info { flex: 0 0 260px; flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding: 56px 12px 12px 0; overflow-y: auto; }
  .cplayer .cp-actions { flex-direction: column; align-items: stretch; }
}

.ct-thumb { position: relative; overflow: hidden; }
.ct-hit { position: absolute; inset: 0; z-index: 3; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.ct-hit[hidden] { display: none; }
.ct-hit.is-static { cursor: default; }
.ct-hit .play-btn { position: absolute; left: 12px; right: auto; top: auto; bottom: 12px; margin: 0; width: 44px; height: 44px; pointer-events: none; transition: transform 200ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
.ct-hit .play-btn .i { --i-size: 18px; }
.play-btn.is-make { background: var(--acc); color: var(--tx-inv); border-color: transparent; }
.play-btn.is-glyph .i { fill: none; stroke: currentColor; margin-left: 0; }
.play-btn.is-wait { background: rgba(8, 12, 18, .72); color: #fff; }
.play-btn.is-wait .i { fill: none; stroke: currentColor; margin-left: 0; }
.play-btn .spin-sm { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .28); border-top-color: currentColor; animation: spin 800ms linear infinite; }
.ct-hit .duration { position: absolute; right: 10px; bottom: 10px; height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(10, 15, 18, .72); font-size: 13px; font-weight: 600; }
.ct-hit .ct-chip { position: absolute; right: 10px; bottom: 10px; height: 24px; padding: 0 9px; font-size: 12px; font-weight: 600; background: rgba(8, 12, 18, .72); color: #fff; border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); }
.ct-hit .ct-chip.chip--bad { color: #FFB3B3; border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.ct-hit .ct-chip[hidden], .ct-hit .duration[hidden] { display: none; }
.ct-hit .ct-label { position: absolute; left: 68px; right: 12px; bottom: 25px; font-size: 13px; line-height: 16px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-hit .render-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 0; background: rgba(255, 255, 255, .16); }
.ct-hit .render-progress > i { border-radius: 0; }
@media (hover: hover) and (pointer: fine) {
  a.ct-hit:hover .play-btn, button.ct-hit:hover .play-btn { transform: scale(1.08); background: rgba(255, 199, 71, .95); color: var(--tx-inv); }
}
.ct-hit:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
