/* Crew shelf. Poster tokens only: black field, Departure Mono, phosphor.
   Door motion and the homepage font live in poster.css and are not used here. */

@font-face {
  font-family: "Departure Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/DepartureMono-Regular.woff2") format("woff2");
}

html {
  color-scheme: dark;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  margin: 0;
  background: #000;
  color: #f3fff4;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body { overflow-x: hidden; }
}

body {
  min-height: 100dvh;
  font-family: "Departure Mono", ui-monospace, monospace;
  font-synthesis: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
}

::selection {
  background: #00ff41;
  color: #000;
}

.rr-skip {
  position: absolute;
  left: 8px;
  top: -40px;
  z-index: 100;
  background: #00ff41;
  color: #000;
  padding: 6px 10px;
}

.rr-skip:focus {
  top: 8px;
}

.rr-crew {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 28px var(--rr-stage-gutter, 16px) max(72px, env(safe-area-inset-bottom));
  animation: rr-crew-in 420ms ease-out both;
}

.rr-crew:focus {
  outline: none;
}

.rr-crew:focus-visible {
  outline: 2px solid #f3fff4;
  outline-offset: -4px;
}

.rr-crew__kicker,
.rr-crew h2 {
  margin: 0;
  color: #9dffb0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rr-crew h1 {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .28em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 255, 65, .5), 0 0 2px #00ff41;
}

.rr-crew__lede {
  margin: 14px 0 0;
  max-width: 36em;
  color: #f3fff4;
  font-size: 15px;
}

.rr-crew h2 {
  margin-top: 32px;
}

.rr-crew__channels,
.rr-crew__clips {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rr-crew__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 8px;
  border-bottom: 1px solid rgba(0, 255, 65, .35);
}

.rr-crew__channels a,
.rr-crew__out,
.rr-crew__close {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 0;
  color: #9dffb0;
  font: 400 13px/1.15 "Departure Mono", ui-monospace, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  touch-action: manipulation;
}

.rr-crew__channels a:hover,
.rr-crew__out:hover,
.rr-crew__close:hover {
  color: #00ff41;
  text-shadow: 0 0 12px rgba(0, 255, 65, .55);
}

.rr-crew a:focus-visible,
.rr-crew button:focus-visible {
  color: #f3fff4;
  outline: 2px solid #f3fff4;
  outline-offset: 3px;
}

.rr-crew__clips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 22px 16px;
  margin-top: 12px;
}

.rr-crew__clip {
  margin: 0;
  min-width: 0;
}

.rr-crew__stage:not([hidden]) {
  margin-top: 12px;
}

.rr-crew__play {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 255, 65, .45);
  background: #000;
  color: #00ff41;
  cursor: pointer;
  touch-action: manipulation;
}

.rr-crew__play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rr-crew__mark {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, .72);
  color: #00ff41;
  font: 400 12px/1 "Departure Mono", ui-monospace, monospace;
  letter-spacing: .18em;
}

.rr-crew__play::after {
  content: "";
  position: absolute;
  inset: -8px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 18px 4px rgba(0, 255, 65, .72);
  transition: opacity 120ms ease-out;
}

.rr-crew__play:hover,
.rr-crew__play.is-current {
  border-color: #00ff41;
}

.rr-crew__play:hover .rr-crew__mark {
  color: #f3fff4;
  text-shadow: 0 0 10px #00ff41;
}

.rr-crew__play:active::after {
  opacity: 1;
}

.rr-crew__play:active,
.rr-crew__play:active .rr-crew__mark {
  color: #f3fff4;
  text-shadow: 0 0 10px #00ff41, 0 0 22px rgba(0, 255, 65, .9);
}

.rr-crew__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 255, 65, .45);
  background: #000;
}

.rr-crew__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rr-crew__cap {
  margin-top: 8px;
}

.rr-crew__ch {
  margin: 0;
  color: #9dffb0;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rr-crew__title {
  margin: 4px 0 0;
  color: #f3fff4;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.rr-crew__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}

.rr-crew__close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rr-crew__status {
  margin: 12px 0 0;
  color: #9dffb0;
  font-size: 14px;
}

.rr-crew__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@keyframes rr-crew-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 768px) {
  .rr-crew h1 {
    font-size: 32px;
    letter-spacing: .34em;
  }

  .rr-crew__lede { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .rr-crew { animation: none; }

  .rr-crew__play::after,
  .rr-crew__channels a,
  .rr-crew__out,
  .rr-crew__close,
  .rr-crew__mark {
    transition: none;
  }
}
