:root {
  --ink: #08080b;
  --ink-2: #0e0e13;
  --charcoal: #16161d;
  --charcoal-2: #1f1f28;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f6;
  --text-dim: #a3a3b0;
  --text-faint: #6e6e7c;
  --crimson: #e0213a;
  --coral: #ff4d5e;
  --coral-soft: #ff8a94;
  --glow: rgba(255, 77, 94, 0.45);
  --cut: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Bahnschrift", "DIN Alternate", "DIN Next", "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Bahnschrift", "SF Mono", "Cascadia Mono", "Segoe UI", ui-monospace, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--coral-soft);
  outline-offset: 3px;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 12% -8%, rgba(224, 33, 58, 0.16), transparent 62%),
    radial-gradient(48rem 30rem at 100% 108%, rgba(224, 33, 58, 0.09), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--ink);
}

.backdrop::after {
  content: "";
  position: absolute;
  top: 0;
  right: max(4vw, 24px);
  width: 1px;
  height: 46vh;
  background: linear-gradient(var(--crimson), transparent);
  opacity: 0.55;
}

.site-header,
.stage,
.site-footer {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) 0 14px;
  animation: rise 0.7s var(--ease) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 14px rgba(224, 33, 58, 0.35));
}

.brand-word {
  width: auto;
  height: 22px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.header-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.header-link:hover {
  color: var(--text);
  border-color: rgba(255, 77, 94, 0.6);
  background: rgba(224, 33, 58, 0.08);
}

.header-link:hover svg {
  transform: translateX(-3px);
}

.stage {
  flex: 1;
  width: min(1240px, 100% - 32px, max(600px, (100vh - 236px) * 16 / 9));
  width: min(1240px, 100% - 32px, max(600px, (100svh - 236px) * 16 / 9));
  padding: clamp(4px, 1.6vw, 16px) 0 clamp(28px, 5vw, 56px);
}

.heading {
  margin-bottom: clamp(16px, 2.2vw, 24px);
  animation: rise 0.7s 0.08s var(--ease) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
}

.eyebrow-mark {
  width: 22px;
  height: 3px;
  background: var(--crimson);
  transform: skewX(-30deg);
}

.eyebrow-sep {
  width: 4px;
  height: 4px;
  background: var(--text-faint);
  transform: rotate(45deg);
}

.eyebrow-dim {
  color: var(--text-faint);
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.title-dash {
  color: var(--crimson);
}

.tagline {
  margin: 10px 0 0;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.player-shell {
  position: relative;
  animation: rise 0.8s 0.16s var(--ease) both;
}

.player-shell::before {
  content: "";
  position: absolute;
  inset: 6% 4% -2%;
  z-index: -1;
  background: rgba(224, 33, 58, 0.28);
  filter: blur(60px);
  opacity: 0.7;
  pointer-events: none;
}

.hud {
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
  border-color: var(--crimson);
  border-style: solid;
  border-width: 0;
}

.hud-top {
  top: -10px;
  right: -10px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.hud-bottom {
  bottom: -10px;
  left: -10px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.player {
  position: relative;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 77, 94, 0.95), rgba(224, 33, 58, 0.25) 28%, rgba(255, 255, 255, 0.07) 55%, rgba(224, 33, 58, 0.55));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  outline: none;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  clip-path: polygon(calc(var(--cut) - 0.5px) 0, 100% 0, 100% calc(100% - var(--cut) + 0.5px), calc(100% - var(--cut) + 0.5px) 100%, 0 100%, 0 calc(var(--cut) - 0.5px));
  isolation: isolate;
}

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player[data-enhanced="true"] .video {
  cursor: pointer;
}

.player[data-enhanced="true"][data-idle="true"] .video {
  cursor: none;
}

.poster,
.spinner,
.flash,
.end-screen,
.error-screen,
.controls {
  display: none;
}

.player[data-enhanced="true"] .poster,
.player[data-enhanced="true"] .spinner,
.player[data-enhanced="true"] .flash,
.player[data-enhanced="true"] .end-screen,
.player[data-enhanced="true"] .error-screen,
.player[data-enhanced="true"] .controls {
  display: flex;
}

.poster {
  position: absolute;
  inset: 0;
  z-index: 4;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.poster-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(8, 8, 11, 0.05), rgba(8, 8, 11, 0.55) 72%),
    linear-gradient(transparent 55%, rgba(8, 8, 11, 0.7));
}

.play-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(72px, 11vw, 112px);
  aspect-ratio: 1;
}

.play-ring {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 138, 148, 0.55);
  animation: orbit 18s linear infinite;
}

.play-ring::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 0 var(--glow);
  transition: box-shadow 0.4s var(--ease), border-color 0.3s;
}

.play-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff3b4f, #b5122a);
  box-shadow: 0 10px 40px rgba(224, 33, 58, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.play-core svg {
  width: 44%;
  height: 44%;
  margin-left: 8%;
  fill: #fff;
}

.poster-label {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 6%, 40px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 0;
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 8, 11, 0.82);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transform: translateX(-50%);
  white-space: nowrap;
}

.poster-label-bar {
  width: 22px;
  align-self: stretch;
  margin: -9px 0;
  background: var(--crimson);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.poster-label-time {
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

@media (hover: hover) {
  .poster:hover .poster-image {
    transform: scale(1.025);
    filter: saturate(1.08);
  }

  .poster:hover .play-core {
    transform: scale(1.07);
    box-shadow: 0 14px 54px rgba(224, 33, 58, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  .poster:hover .play-ring::after {
    box-shadow: 0 0 0 10px rgba(255, 77, 94, 0.12);
  }
}

.poster:focus-visible {
  outline-offset: -6px;
}

.player:not([data-state="idle"]) .poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  position: absolute;
  inset: 0;
  z-index: 3;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.spinner span {
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--coral);
  border-right-color: var(--coral);
  border-radius: 50%;
  animation: orbit 0.8s linear infinite;
}

.player[data-waiting="true"]:not([data-state="idle"]):not([data-state="error"]) .spinner {
  opacity: 1;
  transition-delay: 0.25s;
}

.flash {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  min-width: 72px;
  height: 72px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(8, 8, 11, 0.62);
  border: 1px solid rgba(255, 77, 94, 0.45);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  pointer-events: none;
}

.flash svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.flash.is-visible {
  animation: flash 0.65s var(--ease) both;
}

.end-screen,
.error-screen {
  position: absolute;
  inset: 0;
  z-index: 5;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(20, 8, 12, 0.72), rgba(8, 8, 11, 0.94));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.player[data-state="ended"] .end-screen,
.player[data-state="error"] .error-screen {
  opacity: 1;
  visibility: visible;
}

.end-kicker {
  margin: 0;
  font-size: clamp(18px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.player[data-state="ended"] .end-kicker {
  animation: rise 0.7s 0.1s var(--ease) both;
}

.end-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.player[data-state="ended"] .end-actions {
  animation: rise 0.7s 0.22s var(--ease) both;
}

.end-replay,
.error-retry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color 0.2s, border-color 0.2s;
}

.end-replay svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease);
}

.end-replay:hover,
.error-retry:hover {
  border-color: rgba(255, 77, 94, 0.7);
  background: rgba(224, 33, 58, 0.14);
}

.end-replay:hover svg {
  transform: rotate(-200deg);
}

.error-title {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.error-text {
  margin: 0;
  max-width: 34em;
  color: var(--text-dim);
}

.error-text a {
  color: var(--coral-soft);
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #ff3b4f, #c4142d);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 10px 34px rgba(224, 33, 58, 0.35);
  transition: filter 0.2s, transform 0.25s var(--ease);
}

.store-button svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.store-button:hover {
  filter: brightness(1.1);
}

.store-button:hover svg {
  transform: translate(2px, -2px);
}

.store-button:active {
  transform: translateY(1px);
}

.controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  flex-direction: column;
  gap: 4px;
  padding: 36px clamp(10px, 2vw, 22px) clamp(8px, 1.4vw, 14px);
  background: linear-gradient(rgba(8, 8, 11, 0), rgba(8, 8, 11, 0.6) 40%, rgba(8, 8, 11, 0.92));
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.player[data-state="idle"] .controls,
.player[data-state="error"] .controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player[data-idle="true"][data-state="playing"] .controls {
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
}

.player[data-state="ended"] .controls {
  z-index: 6;
}

.progress {
  --progress: 0;
  --buffered: 0;
  --hover: 0;
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.progress:focus-visible .progress-track {
  outline: 2px solid var(--coral-soft);
  outline-offset: 5px;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  transition: height 0.2s var(--ease);
}

.progress-buffer,
.progress-hover,
.progress-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
}

.progress-buffer {
  background: rgba(255, 255, 255, 0.24);
  transform: scaleX(var(--buffered));
}

.progress-hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scaleX(var(--hover));
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-fill {
  background: linear-gradient(90deg, #b5122a, var(--crimson) 55%, var(--coral));
  transform: scaleX(var(--progress));
  box-shadow: 0 0 12px var(--glow);
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: calc(var(--progress) * 100%);
  width: 14px;
  height: 14px;
  background: #fff;
  border: 3px solid var(--coral);
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  box-shadow: 0 0 0 0 var(--glow), 0 0 14px var(--glow);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
  pointer-events: none;
}

.progress-tooltip {
  position: absolute;
  bottom: 24px;
  left: calc(var(--hover) * 100%);
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(8, 8, 11, 0.9);
  border: 1px solid rgba(255, 77, 94, 0.5);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}

.progress:hover .progress-track,
.progress:focus-visible .progress-track,
.player[data-scrubbing="true"] .progress-track {
  height: 6px;
}

.progress:hover .progress-handle,
.progress:focus-visible .progress-handle,
.player[data-scrubbing="true"] .progress-handle {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.player[data-scrubbing="true"] .progress-handle {
  box-shadow: 0 0 0 6px rgba(255, 77, 94, 0.22), 0 0 18px var(--glow);
}

@media (hover: hover) {
  .progress:hover .progress-hover {
    opacity: 1;
  }

  .progress:hover .progress-tooltip,
  .player[data-scrubbing="true"] .progress-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.control-row {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.control {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: color 0.15s, transform 0.2s var(--ease);
}

.control[hidden] {
  display: none;
}

.control svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.control svg path {
  transition: opacity 0.15s;
}

.control[data-action="back"] svg,
.control[data-action="forward"] svg,
.control[data-action="pip"] svg,
.control[data-action="fullscreen"] svg,
.control[data-action="mute"] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control[data-action="mute"] .speaker,
.control[data-action="pip"] .fill {
  fill: currentColor;
}

.control text {
  font-family: var(--font);
  font-size: 7px;
  font-weight: 700;
  fill: currentColor;
  stroke: none;
  text-anchor: middle;
}

.control:hover {
  color: var(--coral);
}

.control:active {
  transform: scale(0.92);
}

.control:focus-visible {
  outline-offset: -2px;
}

.control-text {
  width: auto;
  min-width: 44px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.icon-pause,
.icon-collapse {
  display: none;
}

.player[data-state="playing"] .icon-play {
  display: none;
}

.player[data-state="playing"] .icon-pause {
  display: block;
}

.player[data-fullscreen="true"] .icon-expand {
  display: none;
}

.player[data-fullscreen="true"] .icon-collapse {
  display: block;
}

.mute-cross {
  opacity: 0;
}

.player[data-volume="muted"] .mute-cross {
  opacity: 1;
}

.player[data-volume="muted"] .wave-1,
.player[data-volume="muted"] .wave-2,
.player[data-volume="low"] .wave-2 {
  opacity: 0;
}

.volume {
  display: flex;
  align-items: center;
}

.volume-slider {
  --volume: 1;
  width: 0;
  height: 22px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  transition: width 0.3s var(--ease), opacity 0.2s, margin 0.3s var(--ease);
}

.volume:hover .volume-slider,
.volume:focus-within .volume-slider {
  width: 84px;
  margin: 0 8px 0 2px;
  opacity: 1;
}

.player[data-fixed-volume="true"] .volume-slider {
  display: none;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, var(--coral) calc(var(--volume) * 100%), rgba(255, 255, 255, 0.22) calc(var(--volume) * 100%));
}

.volume-slider::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 0;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--glow);
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-moz-range-track {
  height: 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
}

.volume-slider::-moz-range-progress {
  height: 4px;
  background: var(--coral);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--glow);
}

.time {
  margin: 0 0 0 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
}

.time-sep {
  margin: 0 6px;
  color: var(--text-faint);
}

.time-total {
  color: var(--text-dim);
}

.control-spacer {
  flex: 1;
}

.speed {
  position: relative;
}

.speed-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(14, 14, 19, 0.96);
  border: 1px solid rgba(255, 77, 94, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  animation: rise 0.22s var(--ease) both;
}

.speed-menu[hidden] {
  display: none;
}

.speed-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 7px 10px;
  white-space: nowrap;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  text-align: left;
  color: var(--text-dim);
  cursor: pointer;
}

.speed-option::after {
  content: "";
  width: 6px;
  height: 6px;
  background: transparent;
  transform: rotate(45deg);
}

.speed-option[aria-checked="true"] {
  color: #fff;
}

.speed-option[aria-checked="true"]::after {
  background: var(--coral);
}

.speed-option:hover,
.speed-option:focus-visible {
  color: #fff;
  background: rgba(224, 33, 58, 0.16);
  outline: none;
}

.player:fullscreen {
  padding: 0;
  background: #000;
  clip-path: none;
}

.player:fullscreen .player-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  clip-path: none;
  animation: cinema 0.45s var(--ease) both;
}

.player:-webkit-full-screen {
  width: 100%;
  height: 100%;
  padding: 0;
  background: #000;
  clip-path: none;
}

.player:-webkit-full-screen .player-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  clip-path: none;
}

.details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: clamp(18px, 2.4vw, 24px);
  border-top: 1px solid var(--line);
  animation: rise 0.8s 0.24s var(--ease) both;
}

.details-text {
  margin: 0;
  max-width: 44em;
  color: var(--text-dim);
}

.shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  background: var(--charcoal);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
}

.shortcut-sep {
  width: 3px;
  height: 3px;
  margin: 0 6px;
  background: var(--text-faint);
  transform: rotate(45deg);
}

.store-button-large {
  flex: none;
  min-height: 52px;
  padding: 0 26px;
}

.site-footer {
  padding: 22px 0 max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--coral-soft);
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-sep {
  width: 4px;
  height: 4px;
  margin: 0 12px;
  background: var(--crimson);
  transform: rotate(45deg);
}

.footer-legal {
  margin-top: 6px !important;
  font-size: 12px;
}

@media (max-width: 760px) {
  :root {
    --cut: 12px;
  }

  .details {
    flex-direction: column;
    align-items: stretch;
  }

  .shortcuts {
    display: none;
  }

  .store-button-large {
    width: 100%;
  }

  .hud {
    width: 22px;
    height: 22px;
  }

  .hud-top {
    top: -7px;
    right: -7px;
  }

  .hud-bottom {
    bottom: -7px;
    left: -7px;
  }

  .header-link span {
    display: none;
  }

  .header-link {
    padding: 8px 10px;
  }
}

@media (max-width: 520px) {
  .controls {
    padding-top: 28px;
  }

  .control {
    width: 36px;
    height: 36px;
  }

  .control[data-action="back"],
  .control[data-action="forward"] {
    display: none;
  }

  .time {
    margin-left: 4px;
    font-size: 12px;
  }

  .poster-label {
    padding: 7px 14px 7px 0;
    letter-spacing: 0.2em;
  }

  .poster-label-bar {
    margin: -7px 0;
  }

  .footer-sep {
    margin: 0 8px;
  }
}

@media (pointer: coarse) {
  .progress {
    height: 30px;
  }

  .progress-track {
    height: 5px;
  }

  .progress-handle {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }

  .volume-slider {
    display: none;
  }

  .control {
    width: 44px;
    height: 44px;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes flash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@keyframes cinema {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .play-ring {
    animation: none;
  }
}
