html:has(.watch-buffer[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.watch-buffer [hidden] { display: none; }

.watch-buffer.modal-card {
  position: fixed;
  inset: 0;
  width: min(520px, calc(100% - 40px));
  margin: auto;
  padding-block-start: 56px;
  color: var(--cream);
  overscroll-behavior: contain;
}

.watch-buffer[open] {
  display: grid;
  justify-items: center;
}

.watch-buffer::backdrop { background: #000d; }

.watch-countdown {
  min-height: 1em;
  margin-block-end: 16px;
  color: var(--mint);
  font-size: clamp(3rem, 9vw, 4.5rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.watch-buffer .watch-status {
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.12rem, 4.2vw, 1.5rem);
  font-weight: 800;
}

.watch-buffer .watch-hint {
  min-height: 1.5em;
  margin: 8px 0 20px;
  color: #a2c4bd;
  font-size: .9375rem;
}

.watch-buffer progress {
  width: min(100%, 268px);
  height: 7px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #23463e;
  color: var(--mint);
  direction: ltr;
}

.watch-buffer progress::-webkit-progress-bar { background: #23463e; }

.watch-buffer progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--mint);
}

.watch-buffer progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--mint);
}

.watch-player {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-block-start: 20px;
  padding: 0;
  border: 1px solid #295349;
  border-radius: 13px;
  background: #000;
  color: var(--cream);
  cursor: pointer;
}

.watch-player:focus-visible { outline: 3px solid #8affea; outline-offset: 3px; }

.watch-player-icon {
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  border: 1px solid #6a827c;
  border-radius: 50%;
  background: #10211e;
}

.watch-player-icon::before {
  content: "";
  margin-left: 3px;
  border-block: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.watch-player:not([aria-disabled="true"]):hover .watch-player-icon { background: #205347; }
.watch-player[aria-disabled="true"] { cursor: default; }

.watch-player[aria-busy="true"] .watch-player-icon {
  width: 34px;
  border: 3px solid #29413d;
  border-top-color: var(--mint);
  background: transparent;
  animation: watch-spin .85s linear infinite;
}

.watch-player[aria-busy="true"] .watch-player-icon::before { content: none; }

@keyframes watch-spin {
  to { transform: rotate(360deg); }
}

.age-loading .age-countdown {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  color: var(--mint);
  font-size: 2.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.age-countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid #295349;
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: watch-spin .9s linear infinite;
}

.age-loading h1 {
  margin: 0;
  font-size: clamp(1.375rem, 5vw, 1.75rem);
}

@media (prefers-reduced-motion: reduce) {
  .age-countdown::before,
  .watch-player[aria-busy="true"] .watch-player-icon { animation: none; }
}
