/* Local poster first. The actual YouTube player is loaded only after a click. */
.trailer-player {
  position: relative;
  background: #070b10;
  color: #e8eef4;
  width: 100%;
  container: trailer / inline-size;
}
/* This supplied trailer has a widescreen picture inside its letterboxed frame.
   Keep 56px clear above that picture, including at intermediate tablet widths.
   The minimum applies to the poster too, preventing a jump when playback starts. */
.trailer-stage {
  position: relative;
  min-height: max(200px, calc(42.56cqw + 112px));
  isolation: isolate;
}
.trailer-art {
  position: relative;
  z-index: 1;
  pointer-events: none;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trailer-art > picture {
  display: block;
  width: 100%;
}
.trailer-art img {
  width: 100%;
  height: auto;
}
.trailer-mount {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070b10;
}
.trailer-mount iframe {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
  display: block;
}
.trailer-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}
.trailer-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  background: #070b10d9;
  border: 1px solid #a3b4c380;
  color: #e8eef4;
  font: 400 14px/1.35 var(--body);
}
.trailer-trigger svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.trailer-trigger:hover {
  color: #fff;
  background: #17222df5;
  border-color: #e8eef4;
}
.trailer-trigger:focus-visible {
  outline: 2px solid #e0a45c;
  outline-offset: 5px;
}
.trailer-trigger:disabled {
  cursor: wait;
}
.trailer-feedback {
  max-width: 420px;
  background: #070b10ed;
  color: #e8eef4;
  font: 400 17px/1.65 var(--body);
  text-align: center;
  padding: 14px 18px;
}
.trailer-feedback:empty {
  display: none;
}
.trailer-player.is-playing .trailer-art {
  visibility: hidden;
}
.trailer-player.is-playing .trailer-mount {
  z-index: 2;
}
/* Cover the full top strip: avatar, long titles, channel and top controls.
   Keep the bottom playback controls and video picture unobstructed.
   This host-page overlay intentionally does not enter native iframe fullscreen. */
.trailer-metadata-mask {
  display: none;
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 3;
  width: 100%;
  height: 56px;
  background: #000;
  pointer-events: auto;
  cursor: default;
}
.trailer-player.is-playing .trailer-metadata-mask {
  display: block;
}
.trailer-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 18px;
  border-top: 1px solid #34404d;
  background: #070b10;
  color: #e8eef4;
  font-size: 15px;
}
.trailer-session button,
.trailer-session a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: #e8eef4;
}
.trailer-session button:focus-visible,
.trailer-session a:focus-visible {
  outline: 2px solid #e0a45c;
  outline-offset: 2px;
}
.trailer-session button:hover,
.trailer-session a:hover {
  color: #e0a45c;
}
.trailer-block > .trailer-player {
  max-width: 1060px;
  margin: auto;
}
.trailer-link > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.trailer-link .text-link {
  margin-left: 25px;
}
@media (max-width: 600px) {
  .trailer-cover {
    padding: 18px;
  }
  .trailer-feedback {
    font-size: 16px;
    max-width: 310px;
  }
  .trailer-session {
    padding: 5px 14px;
    font-size: 14px;
    gap: 15px;
  }
  .trailer-link .text-link {
    margin-left: 0;
    display: flex;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trailer-player * {
    transition: none !important;
    animation: none !important;
  }
}
