:root {
  --yellow: #eeff41;
  --plum: #1e1520;
  --night: #120c13;
  --ink: #1a1a2e;
  --ink-secondary: rgba(26, 26, 46, 0.7);
  --ink-muted: rgba(26, 26, 46, 0.55);
  --rule: rgba(26, 26, 46, 0.2);
  --glass: rgba(255, 255, 255, 0.18);
  --field: rgba(255, 255, 255, 0.45);
  --error: #a3271e;
  --light: #fff;
  --light-secondary: rgba(255, 255, 255, 0.82);
  --light-muted: rgba(255, 255, 255, 0.55);
  --disc: rgba(18, 12, 19, 0.45);
  --disc-hover: rgba(18, 12, 19, 0.7);
  --inset: 16px;
  --bar: 42px;
  --rail: 64px;
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 16px 20px 40px;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  background: linear-gradient(180deg, #94b3c8 0%, #a8b0cc 18%, #b8b8d0 42%, #c4b0bf 68%, #c8a8a0 88%, #b0afc0 100%);
  background-attachment: fixed;
}

a {
  color: var(--ink);
}

h1 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

header {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  margin-bottom: clamp(28px, 5vh, 48px);
}

.brand img {
  display: block;
  height: clamp(52px, 9vw, 76px);
  width: auto;
}

main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  flex: 1 0 auto;
}

footer {
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

footer a {
  color: var(--ink-secondary);
  font-weight: 500;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.card {
  background: var(--glass);
  border: 1.5px solid var(--rule);
  border-radius: 16px;
  backdrop-filter: blur(2px);
}

.pill {
  display: inline-block;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  border: 1.5px solid var(--rule);
  border-radius: 100px;
  transition: background 0.15s ease, color 0.15s ease;
}

.pill:hover,
.pill:focus-visible {
  color: var(--ink);
  background: var(--field);
}

.cta-row {
  margin-top: 36px;
  text-align: center;
}

.cta {
  display: inline-block;
  padding: 16px 48px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--yellow);
  border-radius: 100px;
}

@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes glow-spin {
  to {
    --glow-angle: 360deg;
  }
}

.cta-glow {
  position: relative;
  display: inline-block;
  padding: 3px;
  border-radius: 100px;
  background: transparent;
  animation: glow-spin 4s linear infinite paused;
  transition: background 0.3s ease;
}

.cta-glow::before {
  content: '';
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 100px;
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    rgba(255, 220, 40, 0.7),
    rgba(255, 50, 140, 0.7),
    rgba(40, 200, 255, 0.7),
    rgba(140, 40, 255, 0.7),
    rgba(255, 220, 40, 0.7)
  );
  filter: blur(28px);
  opacity: 0;
  animation: glow-spin 4s linear infinite paused;
  transition: opacity 0.3s ease;
}

.cta-glow:hover {
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    rgba(255, 220, 40, 1),
    rgba(255, 50, 140, 1),
    rgba(40, 200, 255, 1),
    rgba(140, 40, 255, 1),
    rgba(255, 220, 40, 1)
  );
}

.cta-glow:hover,
.cta-glow:hover::before {
  animation-play-state: running;
}

.cta-glow:hover::before {
  opacity: 1;
}

.cta-glow .cta,
.cta-glow input[type='submit'] {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 100px;
}

:root:has(> body.watch) {
  color-scheme: dark;
}

.watch {
  padding: 0;
  color: var(--light);
  background: var(--plum);
}

.watch header {
  position: absolute;
  top: var(--inset);
  left: var(--inset);
  z-index: 1;
  align-items: center;
  height: var(--bar);
  margin: 0;
  padding: 0;
}

.watch .brand img {
  height: 30px;
  filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0, 0, 0, 0.4));
}

.watch footer {
  margin: 0;
  padding: 32px 20px 40px;
  color: var(--light-muted);
}

.watch footer a {
  color: var(--light-secondary);
}

.watch header a:focus-visible,
.watch footer a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.watch .cta:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.clip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  max-width: none;
  height: 100vh;
  height: 100svh;
}

.clip .cta-row {
  position: absolute;
  top: var(--inset);
  right: var(--inset);
  z-index: 1;
  margin: 0;
}

.clip .cta {
  padding: 0 20px;
  font-size: 14px;
  line-height: calc(var(--bar) - 6px);
}

.screen {
  --lift: 0px;
  position: relative;
  isolation: isolate;
  height: 100%;
  max-width: 100%;
}

.player {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.clip .screen::before,
.screen::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.clip .screen::before {
  top: 0;
  height: 112px;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.03) 80%, transparent);
}

.screen::after {
  bottom: var(--lift);
  height: min(320px, 60%);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.4) 30%,
    rgba(0, 0, 0, 0.16) 65%,
    rgba(0, 0, 0, 0.04) 88%,
    transparent
  );
}

.screen:not([data-player]) {
  --lift: 64px;
}

.toggle {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  background: none;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.toggle .icon {
  width: 76px;
  height: 76px;
  opacity: 0.9;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.4));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.screen[data-playing] .toggle .icon {
  opacity: 0;
  transform: scale(1.3);
}

.toggle:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.info {
  position: absolute;
  right: calc(var(--rail) + 20px);
  bottom: calc(var(--lift) + 26px);
  left: 16px;
  z-index: 2;
  text-align: left;
  pointer-events: none;
}

.info a {
  pointer-events: auto;
}

.info h1 {
  font-size: clamp(20px, 5.6vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

h1 .credit {
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--light-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.byline {
  margin-top: 6px;
  font-size: 14px;
  color: var(--light-secondary);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.byline a {
  font-weight: 600;
  color: var(--light);
  text-decoration: none;
}

.byline time {
  white-space: nowrap;
}

h1 .credit:hover,
.byline a:hover {
  text-decoration: underline;
}

.info a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 2px;
}

.rail {
  position: absolute;
  right: 8px;
  bottom: calc(var(--lift) + 26px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: var(--rail);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--light);
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.control .icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 50%;
  background: var(--disc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) {
  .control:hover .icon {
    background: var(--disc-hover);
  }
}

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

.control:focus-visible {
  outline: none;
}

.control:focus-visible .icon {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.sound[aria-pressed='false'] .icon-sound-on,
.sound[aria-pressed='true'] .icon-sound-off {
  display: none;
}

.progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 22px;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.progress::before,
.progress-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  transition: height 0.15s ease;
}

.progress::before {
  content: '';
  background: rgba(255, 255, 255, 0.3);
}

.progress-bar {
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
}

.progress:active::before,
.progress:active .progress-bar,
.progress:focus-visible::before,
.progress:focus-visible .progress-bar {
  height: 6px;
}

@media (hover: hover) {
  .progress:hover::before,
  .progress:hover .progress-bar {
    height: 6px;
  }
}

.progress:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

@media (min-width: 640px) and (min-height: 600px) {
  .clip {
    padding: var(--inset);
  }

  .clip .screen {
    overflow: hidden;
    border-radius: 16px;
    background: var(--night);
  }

  .watch .brand img {
    height: 34px;
  }
}

.embed {
  position: fixed;
  inset: 0;
  max-width: none;
  background: #000;
}

.embed .screen {
  width: 100%;
  max-width: none;
}

.embed .screen::after {
  height: min(140px, 40%);
}

.embed .player {
  width: 100%;
}

.embed .cta {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 7px 14px;
  font-size: 13px;
}

.profile h1,
.report h1,
.message h1 {
  text-align: center;
}

.profile h1::after,
.report h1::after,
.message h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 24px auto 0;
  background: var(--yellow);
  border-radius: 2px;
}

.profile {
  max-width: 880px;
}

.profile h1 {
  margin-bottom: 32px;
  font-size: clamp(36px, 7vw, 60px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  list-style: none;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
  }
}

.cards .card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 10px 12px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cards .card:hover,
.cards .card:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
}

.cards img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--plum);
}

.cards .title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cards .meta {
  font-size: 13px;
  color: var(--ink-muted);
}

.empty {
  text-align: center;
  color: var(--ink-secondary);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink-muted);
}

.report,
.message {
  max-width: 520px;
}

.report h1,
.message h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.report h1 {
  margin-bottom: 24px;
}

.lede {
  margin-bottom: 24px;
  text-align: center;
  color: var(--ink-secondary);
}

.error {
  margin-bottom: 20px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--error);
  border: 1.5px solid var(--error);
  border-radius: 12px;
  background: var(--glass);
}

.report .card {
  padding: 28px 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

label,
.caption {
  font-size: 14px;
  font-weight: 600;
}

select,
textarea,
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

select:focus,
textarea:focus,
input[type='text']:focus,
input[type='email']:focus,
input[type='tel']:focus,
input[type='url']:focus {
  border-color: var(--ink);
}

input[type='checkbox']:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.invalid,
.invalid:focus {
  border-color: var(--error);
}

.field-error {
  font-size: 13px;
  color: var(--error);
}

.hint {
  margin: -4px 0 20px;
  font-size: 13px;
  color: var(--ink-muted);
}

.field.check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 10px;
}

.field.check label {
  font-weight: 400;
  color: var(--ink-secondary);
}

.field.check .field-error {
  grid-column: 2;
}

input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--ink);
}

.submit {
  margin-top: 8px;
}

.submit .cta-glow {
  display: block;
}

input[type='submit'] {
  width: 100%;
  padding: 15px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  cursor: pointer;
}

.message .card {
  padding: clamp(36px, 5vh, 48px) clamp(24px, 4vw, 40px);
  text-align: center;
}

.message h1 {
  margin-bottom: 24px;
}

.message p {
  color: var(--ink-secondary);
}

.message .cta-row {
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  .cta-glow,
  .cta-glow::before {
    animation: none;
  }

  .pill,
  .cards .card,
  .toggle .icon,
  .control .icon,
  .progress::before,
  .progress-bar {
    transition: none;
  }
}
