.frac-race-watch-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin: 16px 0; }
.frac-race-replay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid #a58a46;
  border-radius: 8px;
  background: #092b32;
  color: #f3d47b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 3px 8px rgb(9 43 50 / 15%);
}
.frac-race-replay-button svg { flex-shrink: 0; }
.frac-race-replay-button:hover { background: #15434a; color: #fff0c1; text-decoration: none; }
.frac-race-replay-button:focus-visible { outline: 3px solid #092b32; outline-offset: 3px; }
.frac-replay {
  box-sizing: border-box;
  width: min(960px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border: 2px solid #a58a46;
  border-radius: 16px;
  background: #f5f1e8;
  color: #092b32;
  overflow: auto;
  overscroll-behavior: contain;
}
.frac-replay::backdrop { background: rgb(0 0 0 / 75%); }
.frac-replay-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.frac-replay-heading h2 { flex: 1; margin: 0; font-size: clamp(18px, 3vw, 26px); }
.frac-replay-caption { margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.frac-replay-heading button { flex-shrink: 0; }
.frac-replay-player { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.frac-replay-player video, .frac-replay-player iframe {
  display: block; width: 100%; height: 100%; border: 0; object-fit: contain;
}
.frac-replay-player:fullscreen { display: grid; place-items: center; background: #000; }
html.frac-replay-open, html.frac-replay-open body { overflow: hidden; }
@media (max-width: 600px) {
  .frac-replay { padding: 12px; }
  .frac-replay-heading { align-items: flex-start; gap: 10px; }
}
