
.po-film { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; container-type: inline-size; }
.pv-frame { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "pic"; background: var(--po-night); color: #fff; isolation: isolate; -webkit-user-select: none; user-select: none; }
.pv-frame > * { grid-area: pic; }
.pv-pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--po-night); }
.pv-video, .pv-poster, .pv-poster img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.pv-video { object-fit: contain; background: var(--po-night); }
.pv-poster { z-index: 1; transition: opacity 260ms var(--ease), visibility 0s 260ms; }
.pv-poster img { object-fit: cover; }
.po-film.is-shown .pv-poster { opacity: 0; visibility: hidden; }

.pv-play { --pv-ring: clamp(60px, 6.6cqw, 88px); position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 1.3cqw, 18px); margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: #fff; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pv-play[hidden] { display: none; }
.pv-play::before { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(3, 5, 10, 0.24); transition: opacity var(--t-ui) var(--ease); }
.pv-disc { flex: none; display: grid; place-items: center; width: var(--pv-ring); height: var(--pv-ring); border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.92); background: rgba(3, 5, 10, 0.3); color: rgba(255, 255, 255, 0.9); box-shadow: inset 0 0 0 0 #fff; transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease), scale var(--t-ui) var(--ease), opacity var(--t-ui) var(--ease); }
.pv-disc svg { display: block; width: 38%; height: 38%; translate: 0.84% 0; fill: currentColor; }
.pv-play-w { display: flex; flex-direction: column; align-items: center; gap: 6px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); transition: opacity var(--t-ui) var(--ease); }
.pv-play-t { font-family: var(--po-display); font-size: clamp(20px, 2.1cqw, 27px); line-height: 1; letter-spacing: -0.016em; }
.pv-play-m { font-family: var(--po-plain); font-size: var(--po-mono); line-height: 1.2; letter-spacing: var(--po-mono-ls); font-variant-numeric: lining-nums tabular-nums; color: rgba(255, 255, 255, 0.82); }
.pv-play:focus-visible { outline: none; }
.pv-play:focus-visible .pv-disc { outline: var(--ring-light); outline-offset: 5px; border-color: #fff; background: rgba(3, 5, 10, 0.46); color: #fff; box-shadow: inset 0 0 0 1px #fff; }
@media (hover: hover) { .pv-play:hover .pv-disc { border-color: #fff; background: rgba(3, 5, 10, 0.46); color: #fff; box-shadow: inset 0 0 0 1px #fff; } }
.pv-play:active .pv-disc { scale: 0.97; }
.po-film:is(.is-playing, .is-paused, .is-ended) .pv-play::before { opacity: 0; }
.po-film.is-playing .pv-play > *, .po-film.is-paused .pv-play-w { opacity: 0; }
.po-film.is-playing .pv-play { cursor: default; }
.po-film.is-playing:not(.is-ctl) .pv-play { cursor: none; }
.po-film.is-ended .pv-play { visibility: hidden; }
.po-film.is-wanted .pv-disc { opacity: 0.5; }

.pv-paper { position: relative; z-index: 3; align-self: end; justify-self: start; margin: 0; padding: clamp(12px, 2cqw, 22px); max-width: none; font-family: var(--po-plain); font-size: var(--po-mono); line-height: var(--po-mono-lh); letter-spacing: var(--po-mono-ls); }
.pv-paper[hidden] { display: none; }
.pv-paper a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.pv-paper a:focus-visible { outline: var(--ring-light); outline-offset: 3px; }

.pv-ctl { position: relative; z-index: 5; align-self: end; display: flex; align-items: center; height: 52px; padding: 0 clamp(6px, 0.9cqw, 14px); opacity: 0; pointer-events: none; transition: opacity var(--t-fast) linear; }
.pv-ctl[hidden] { display: none; }
.pv-ctl::before { content: ""; position: absolute; z-index: -1; inset: -64px 0 0 0; pointer-events: none; background: linear-gradient(to top, rgba(3, 5, 10, 0.82), rgba(3, 5, 10, 0.56) 40%, rgba(3, 5, 10, 0)); }
.po-film.is-ctl .pv-ctl { opacity: 1; pointer-events: auto; }
.po-film.is-ended .pv-ctl { opacity: 0; visibility: hidden; }
.pv-cb { flex: none; position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: #fff; cursor: pointer; opacity: 0.9; -webkit-tap-highlight-color: transparent; transition: opacity var(--t-fast) var(--ease); }
.pv-cb[hidden] { display: none; }
.pv-cb svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pv-cb[aria-pressed="false"] { opacity: 0.56; }
@media (hover: hover) { .pv-cb:hover { opacity: 1; } }
.pv-cb:focus-visible, .pv-scrub:focus-visible { outline: var(--ring-light); outline-offset: -4px; }
.pv-cb .is-pause, .po-film.is-playing .pv-cb .is-play { display: none; }
.po-film.is-playing .pv-cb .is-pause { display: inline; }
.pv-cb[aria-pressed="true"] .is-off, .pv-cb[aria-pressed="false"] .is-on { display: none; }
[data-ctl-subs]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 6px; height: 1px; background: currentColor; scale: 0 1; transition: scale var(--t-fast) var(--ease); }
[data-ctl-subs][aria-pressed="true"]::after { scale: 1 1; }
.pv-time { flex: none; margin: 0 16px 0 6px; max-width: none; font-family: var(--po-plain); font-size: var(--po-mono); line-height: var(--po-mono-lh); letter-spacing: var(--po-mono-ls); font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.pv-time-all { color: rgba(255, 255, 255, 0.6); }
.pv-scrub { flex: 1 1 0; position: relative; min-width: 40px; height: 40px; margin: 0 10px 0 0; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; }
.pv-scrub-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(255, 255, 255, 0.26); }
.pv-scrub-line b { position: absolute; inset: 0; background: var(--po-green); transform-origin: 0 50%; scale: var(--at, 0) 1; }
.pv-scrub-at { position: absolute; left: calc(var(--at, 0) * 100%); top: 50%; width: 2px; height: 14px; margin: -7px 0 0 -1px; background: #fff; opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.pv-scrub:focus-visible .pv-scrub-at, .pv-scrub.is-drag .pv-scrub-at { opacity: 1; }
@media (hover: hover) { .pv-scrub:hover .pv-scrub-at { opacity: 1; } }
@media (hover: none) { .pv-scrub-at { opacity: 1; } }
@media (pointer: coarse) { .pv-ctl { height: 56px; } .pv-cb { width: 44px; height: 44px; } .pv-scrub { height: 44px; } }

.pv-subs { position: relative; z-index: 2; align-self: end; justify-self: center; box-sizing: border-box; max-width: calc(100% - 28px); margin: 0 14px clamp(14px, 2.5cqw, 34px); padding: 0.22em 0.6em 0.3em; background: rgba(3, 5, 10, 0.68); color: #fff; font-family: var(--po-serif); font-size: clamp(16px, 1.56cqw, 27px); line-height: 1.32; letter-spacing: 0; font-synthesis: none; text-align: center; white-space: pre-line; text-wrap: balance; pointer-events: none; visibility: hidden; transition: translate var(--t-fast) var(--ease); }
.pv-subs.is-on { visibility: visible; }
.po-film.is-ctl:not(.is-ended) .pv-subs { translate: 0 -40px; }
.po-film.is-raised .pv-subs { translate: 0 calc(-1 * var(--subs-up, 0px)); }
.po-film.is-raised.is-ctl:not(.is-ended) .pv-subs { translate: 0 calc(-1 * max(40px, var(--subs-up, 0px))); }

.pv-wait { position: relative; z-index: 4; align-self: end; height: 2px; overflow: hidden; pointer-events: none; visibility: hidden; }
.pv-wait::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: rgba(255, 255, 255, 0.7); translate: -100% 0; }
.po-film.is-waiting .pv-wait { visibility: visible; }
.po-film.is-waiting .pv-wait::before { animation: pv-wait 1.5s linear infinite; }
@keyframes pv-wait { to { translate: 455% 0; } }

.pv-again { position: relative; z-index: 6; align-self: end; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 clamp(14px, 5.5cqw, 64px); padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font-family: var(--po-serif); font-size: 15px; line-height: 21px; font-synthesis: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pv-again[hidden] { display: none; }
.pv-again .pv-disc { width: 56px; height: 56px; background: none; border: 1px solid var(--ink); color: var(--ink); }
.pv-again .pv-disc svg { width: 20px; height: 20px; }
.pv-again:focus-visible { outline: none; }
.pv-again:focus-visible .pv-disc { outline: var(--ring); outline-offset: 4px; }
@media (hover: hover) { .pv-again:hover .pv-disc { scale: 1.06; } }

.pv-frame:fullscreen { width: 100%; height: 100%; grid-template-rows: minmax(0, 1fr); background: #000; }
.pv-frame:-webkit-full-screen { width: 100%; height: 100%; grid-template-rows: minmax(0, 1fr); background: #000; }
.pv-frame:fullscreen .pv-pic { aspect-ratio: auto; height: 100%; background: #000; }
.pv-frame:-webkit-full-screen .pv-pic { aspect-ratio: auto; height: 100%; background: #000; }
.pv-frame:fullscreen .pv-poster img { object-fit: contain; }

.po-film > .po-cap { margin: var(--po-gap-cap) 0 0 var(--po-indent); max-width: var(--po-measure); }
@media (max-width: 820px) { .po-film > .po-cap { margin-left: 0; max-width: none; } }

@container (max-width: 600px) {
  .pv-frame { grid-template-areas: "pic" "subs" "ctl"; }
  .pv-frame:fullscreen { grid-template-rows: minmax(0, 1fr) auto auto; }
  .pv-frame:-webkit-full-screen { grid-template-rows: minmax(0, 1fr) auto auto; }
  .pv-ctl { grid-area: ctl; align-self: stretch; flex-wrap: wrap; height: auto; padding: 0 2px 2px; background: var(--po-night); }
  .pv-ctl::before { display: none; }
  .po-film:is(.is-playing, .is-paused) .pv-ctl { opacity: 1; pointer-events: auto; }
  .po-film.is-ended .pv-ctl { display: none; }
  .pv-cb { width: 44px; height: 44px; }
  .pv-scrub { order: -1; flex: 0 0 auto; width: calc(100% - 24px); height: 36px; margin: 0 12px -4px; }
  .pv-time { margin: 0 auto 0 4px; }
  .pv-subs { grid-area: subs; justify-self: stretch; display: none; place-content: center; max-width: none; min-height: calc(2.64em + 18px); margin: 0; padding: 9px 8px; background: var(--po-night); font-size: 16px; translate: none; transition: none; visibility: visible; }
  .pv-subs > span { visibility: hidden; }
  .pv-subs.is-on > span { visibility: visible; }
  .po-film.is-subs .pv-subs { display: grid; }
  .po-film.is-ctl:not(.is-ended) .pv-subs, .po-film.is-raised .pv-subs, .po-film.is-raised.is-ctl:not(.is-ended) .pv-subs { translate: none; }
  .pv-play { --pv-ring: 48px; flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 12px; padding: 0 16px 16px; text-align: left; }
  .pv-play::before { background: linear-gradient(to top right, rgba(3, 5, 10, 0.74) 0%, rgba(3, 5, 10, 0.44) 20%, rgba(3, 5, 10, 0.12) 40%, rgba(3, 5, 10, 0) 56%); }
  .pv-play-w { align-items: flex-start; justify-content: center; gap: 5px; min-height: var(--pv-ring); }
  .pv-play-t { font-size: 22px; }
  .po-film.is-paused .pv-play > * { opacity: 0; }
  .pv-again { margin-bottom: 6px; }
  .pv-again .pv-disc { width: 32px; height: 32px; }
  .pv-again .pv-disc svg { width: 13px; height: 13px; }
  .pv-again > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@container (max-width: 380px) { .pv-time-all { display: none; } }

@media (prefers-reduced-motion: reduce) { .pv-poster, .pv-ctl, .pv-subs, .pv-disc, .pv-play-w, .pv-play::before { transition: none; } .po-film.is-waiting .pv-wait::before { animation: none; width: 100%; translate: 0 0; opacity: 0.5; } }
@media print { .pv-play, .pv-ctl, .pv-subs, .pv-wait, .pv-again, .pv-video, .pv-paper { display: none !important; } .po-film { break-inside: avoid; } }
