* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Video centered in the viewport, link centered beneath it */
.feature {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

/* ~85% of screen height (less on short screens, so Replay + the button still fit
   without scrolling), native 720x900 portrait ratio, never upscaled past native size */
.feature-video {
  display: block;
  height: auto;
  width: min(720px, 100%, calc(85vh * 720 / 900), calc((100vh - 150px) * 720 / 900));
  width: min(720px, 100%, calc(85svh * 720 / 900), calc((100svh - 150px) * 720 / 900));
  aspect-ratio: 720 / 900;
  background: #000;
}

/* Replay: plain text link style. Keeps its space while hidden so nothing shifts when it appears. */
.feature-replay {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #fff;
  font: inherit;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.15em;
  padding: 8px 4px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.feature-replay[hidden] {
  display: block;
  visibility: hidden;
}

.feature-replay:hover,
.feature-replay:focus-visible {
  border-bottom-color: #fff;
  outline: none;
}

/* View More Images: simple outlined button */
.feature-link {
  display: inline-block;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.15em;
  padding: 12px 24px;
}

.feature-link:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
}
