/* The homepage layout places this figure; these rules only lay out the player. */
.c2o-card { margin: 0; min-width: 0; border: 1px solid #526075; border-radius: 4px; overflow: hidden; background: #101720; color: #eaeef6; }
.c2o-media, .c2o-playback { position: relative; aspect-ratio: 16 / 9; min-width: 0; overflow: hidden; background: #111924; }
.c2o-poster { position: absolute; inset: 0; display: grid; place-items: center; color: #121d30; }
.c2o-poster[hidden], .c2o-error[hidden] { display: none; }
.c2o-poster img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.c2o-play-icon { position: relative; display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; color: #121d30; background: #f1f5fb; box-shadow: 0 2px 13px #070d19a0; }
.c2o-play-icon svg { width: 20px; height: 20px; }
/* SITE-C2O-TIDY-01 (Ross R2034, 19112026): the card is the picture and the play mark, nothing else. Was: a caption bar under the
   picture with the film's name, 0:40 and a four corners expand control (.c2o-caption, .c2o-info, .c2o-name, .c2o-runtime, .c2o-expand-icon). */
.c2o-poster:focus-visible, .c2o-card video:focus-visible { outline: 2px solid #a8c4ff; outline-offset: -3px; }
.c2o-playback { width: 100%; }
.c2o-playback video { display: block; width: 100%; height: 100%; object-fit: contain; background: #080c11; }
.c2o-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 8px; text-align: center; color: #eaeef6; background: #101720; font-size: 14px; }
.c2o-error button { min-height: 36px; border: 1px solid #8294b0; border-radius: 4px; background: #121a27; color: #eaeef6; font: inherit; padding: 4px 12px; cursor: pointer; }
.c2o-dialog { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; padding: max(12px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border: 0; background: #080d15f2; color: #eaeef6; box-sizing: border-box; overscroll-behavior: contain; }
.c2o-dialog[open] { display: grid; align-items: center; justify-items: center; }
.c2o-dialog::backdrop { background: #06090c; }
.c2o-dialog-frame { width: min(1152px, 100%, calc(177.77778vh - 170px)); width: min(1152px, 100%, calc(177.77778dvh - 170px)); min-width: 0; }
.c2o-screen { border: 1px solid #344151; border-radius: 4px; overflow: hidden; }
/* SITE-C2O-TIDY-01 (R2034 "Just have an X"): no name over the film, and the close control is a plain X: no box, no border and no
   fill at rest or on hover (hover brightens the X). Its tap area stays 44 by 44 points. The focus ring stays for the keyboard; a
   dialog opened by a tap or a click ([data-pointer], js/watch.js) hides it until a key is pressed.
   Was: the film's name left of the X, a dark fill behind the X on hover, and the ring on every opening (the box in Ross's iPhone picture). */
.c2o-bar { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 4px; }
.c2o-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; color: #d4dfef; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.c2o-close svg { width: 22px; height: 22px; }
.c2o-close:hover { color: #fff; }
.c2o-close:focus-visible, .c2o-error button:focus-visible { outline: 2px solid #a8c4ff; outline-offset: -2px; }
.c2o-dialog[data-pointer] .c2o-close:focus-visible, .c2o-dialog[data-pointer] .c2o-close:focus { outline: none; }

@media (max-width: 640px), (max-aspect-ratio: 4/5), (pointer: coarse) and (max-height: 500px) {
  /* SITE-C2O-TIDY-01 (R2034): no grey line above or below the film; the card is the picture alone (its size and place: css/launch.css).
     Was: a row of a small picture (123 wide) and the caption, between two grey lines. */
  .c2o-card { border: 0; border-radius: 4px; background: transparent; }
  .c2o-media { border-radius: 4px; }
  .c2o-poster::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(186,204,230,.44); border-radius: 4px; pointer-events: none; }
  .c2o-play-icon { width: 44px; height: 44px; }
  .c2o-play-icon svg { width: 18px; height: 18px; }
  /* SITE-C2O-TIDY-01 (R2034, his iPhone picture: the film small in the middle of an empty screen): the open film fills the width
     edge to edge on black (the phone's own black, so the strips by the clock and the browser bar no longer show as a second dark),
     with the plain X just above its right end, where a thumb reaches it. Was: 8 points of margin each side, a grey edge round the
     film, the name above it, on a blue black (#080d15). */
  .c2o-dialog { padding: max(12px, env(safe-area-inset-top)) 0 max(12px, env(safe-area-inset-bottom)); background: #000; }
  .c2o-dialog::backdrop { background: #000; }
  .c2o-dialog-frame { width: 100%; }
  .c2o-bar { padding-right: max(4px, env(safe-area-inset-right)); }
  .c2o-screen { border: 0; border-radius: 0; }
  .c2o-playback video { background: #000; }
}
/* SITE-C2O-TIDY-01 (R2034): a phone turned on its side: the film fills the screen's height, centred, with black either side; the X
   sits in the top right corner of the screen, off the picture. Was: the film about 60 per cent of the height, under its name. */
@media (pointer: coarse) and (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .c2o-dialog { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
  .c2o-dialog-frame { width: min(100% - 2 * max(52px, env(safe-area-inset-right)), 100dvh * 16 / 9); }
  .c2o-bar { position: fixed; top: max(4px, env(safe-area-inset-top)); right: max(4px, env(safe-area-inset-right)); margin: 0; padding: 0; z-index: 1; }
}

/* SITE-C2O-REVIEW-01 (Ross R2028): on a computer the large player sits in the middle of the window over the dimmed page,
   about 78 per cent of the window wide (16:9, never taller than the window allows). The phone keeps the full-screen player above.
   While it is open the small player keeps its poster with the play mark dimmed: one film plays, never two. */
.c2o-card.is-playing .c2o-play-icon { opacity: .35; }
@media (min-width: 641px) and (min-aspect-ratio: 4/5) and (not ((pointer: coarse) and (max-height: 500px))) {
  .c2o-dialog { background: transparent; }
  .c2o-dialog::backdrop { background: rgba(4, 7, 11, .74); }
  .c2o-dialog-frame { width: min(78vw, calc((100vh - 140px) * 16 / 9)); width: min(78vw, calc((100dvh - 140px) * 16 / 9)); padding: 12px 16px 16px; border: 1px solid #344151; border-radius: 8px; background: #0c121b; box-shadow: 0 24px 80px #000000b3; box-sizing: border-box; }
}
