/* Youth team: one entrance, then a restrained living portrait. */
.head--youth {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  column-gap: clamp(20px, 3vw, 48px);
  padding-top: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.youth-stage {
  grid-area: mascots;
  position: relative;
  align-self: center;
  min-width: 0;
  width: 100%;
  isolation: isolate;
}

.youth-stage__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}

/* Let the studio plate dissolve into the page's black background. */
.youth-stage__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, #000, transparent 8%, transparent 92%, #000),
    linear-gradient(180deg, #000, transparent 20%, transparent 86%, #000);
}

/* Keep the stage empty until the entrance arrives. Original artwork is only
   shown when motion is unavailable or paused before the first frame. */
.youth-stage__team {
  position: absolute;
  z-index: 0; /* Keep every fallback tiger's internal layer below the videos. */
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  background: radial-gradient(ellipse at 50% 83%, rgba(196, 0, 0, .22), transparent 57%);
}

.youth-stage[data-motion="static"] .youth-stage__team,
.youth-stage.show-fallback .youth-stage__team { visibility: visible; }

.youth-stage__team::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 0, 0, .68), transparent);
}

.youth-stage__tiger {
  position: absolute;
  width: auto;
  object-fit: contain;
  object-position: center bottom;
  bottom: 8%;
}

.youth-stage__tiger--striker { left: 0; width: 33%; height: 88%; z-index: 1; }
.youth-stage__tiger--guardian { left: 25%; width: 29%; height: 65%; z-index: 2; }
.youth-stage__tiger--scrappy { right: 23%; width: 30%; height: 65%; z-index: 3; }
.youth-stage__tiger--knee { right: 0; width: 32%; height: 89%; z-index: 1; }

.youth-stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

/* The controller swaps decoded frames atomically; no overlapping poses. */
.youth-stage__video.is-visible { opacity: 1; }
.youth-stage__video.is-front { z-index: 2; }

.youth-stage__footer {
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.youth-stage__caption {
  color: #aaa;
  font-family: var(--utility);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.youth-stage__controls { display: flex; gap: 2px; flex: none; }
.youth-stage__controls[hidden] { display: none; }

.youth-stage__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  color: #c8c8c8;
  background: transparent;
  font-family: var(--utility);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color 140ms ease, background-color 140ms ease;
  touch-action: manipulation;
}

.youth-stage__control svg { width: 13px; height: 13px; flex: none; }
.youth-stage__control [hidden] { display: none; }
.youth-stage__control:focus-visible { outline-offset: -3px; }
.youth-stage__control:active { background: var(--surface-2); color: var(--white); }

@media (hover: hover) and (pointer: fine) {
  .youth-stage__control:hover { background: var(--surface-2); color: var(--white); }
}

.youth-stage[data-motion="static"] .youth-stage__video {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.youth-stage__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 899px) {
  .head--youth {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "mascots" "intro";
    row-gap: 22px;
  }
  .youth-stage { width: min(100%, 700px); justify-self: center; }
  .head--youth .line { margin-top: 0; }
  .youth-head__intro { max-width: 52ch; }
}

@media (max-width: 399px) {
  .youth-stage__caption { font-size: 9px; letter-spacing: .08em; }
  .youth-stage__control { padding-inline: 7px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .youth-stage__team { visibility: visible; }
  .youth-stage__video { opacity: 0; visibility: hidden; transition: none; }
  .youth-stage__controls { display: none; }
  .youth-stage__control { transition: none; }
}
