:root {
  color-scheme: dark;
  --bg: #000000;
  --line: rgba(255, 255, 255, 0.14);
  --surface: rgba(18, 18, 18, 0.44);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --shadow: rgba(0, 0, 0, 0.55);
  --text: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.7);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

body.is-idle {
  cursor: none;
}

body.is-idle .player__topbar,
body.is-idle .player__chrome,
body.is-idle .player__home {
  opacity: 0;
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

.player {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.82));
}

.player__backdrop {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background-image: var(--player-backdrop);
  background-size: cover;
  background-position: center;
  filter: blur(32px) saturate(0.9);
  opacity: 0.38;
  transform: scale(1.06);
}

.player::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, transparent 24%, transparent 68%, rgba(0, 0, 0, 0.8) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.26), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.26));
  pointer-events: none;
}

.player__topbar,
.player__chrome {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-left: clamp(1rem, 2vw, 2rem);
  padding-right: clamp(1rem, 2vw, 2rem);
}

.player__home,
.control {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  transition:
    opacity 0.35s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.player__topbar {
  top: 0;
  padding-top: clamp(1rem, 2vw, 2rem);
  transition: opacity 0.35s ease;
}

.player__home {
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.player__hint {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  backdrop-filter: blur(14px);
}

.player__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.player__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding:
    clamp(4.5rem, 8vh, 7rem)
    clamp(1rem, 3vw, 3rem)
    clamp(9.5rem, 16vh, 13rem);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.player__slide--active {
  opacity: 1;
}

.player__chrome {
  bottom: 0;
  align-items: end;
  padding-bottom: clamp(1rem, 2vw, 2rem);
  transition: opacity 0.35s ease;
}

.player__copy {
  max-width: min(42rem, 64vw);
  padding: clamp(1rem, 2.2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.38), rgba(12, 12, 12, 0.62));
  box-shadow: 0 20px 60px -32px var(--shadow);
  backdrop-filter: blur(18px);
}

.player__copy h1,
.player__copy p {
  margin: 0;
}

.player__eyebrow {
  margin-bottom: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--muted);
}

.player__copy h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.9;
  font-weight: 600;
}

.player__subtitle {
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 3vw, 1.5rem);
}

.player__caption {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.55rem);
  line-height: 1.3;
}

.player__status {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.player__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  max-width: min(28rem, 44vw);
}

.control {
  min-width: 7.25rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  text-align: center;
}

.player__home:hover,
.player__home:focus-visible,
.control:hover,
.control:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: var(--surface-strong);
}

@media (min-width: 1200px) {
  .control {
    min-width: 8.25rem;
    padding: 1.05rem 1.35rem;
    font-size: 1.05rem;
  }

  .player__hint {
    font-size: 0.98rem;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .player {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100svh;
  }

  .player__topbar,
  .player__chrome {
    position: relative;
    left: auto;
    right: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .player__topbar {
    padding-top: 1rem;
  }

  .player__stage {
    position: relative;
    min-height: 56svh;
  }

  .player__slide {
    padding: 1rem 1rem 1.5rem;
  }

  .player__copy,
  .player__controls {
    max-width: none;
  }

  .player__controls {
    justify-content: stretch;
  }

  .control {
    flex: 1 1 10rem;
  }

  .player__hint {
    font-size: 0.82rem;
  }
}
