/* tastemaker: macro=single-scene-player mood=warm-nostalgic palette=locked contrast=checked critique=5/5/4/5/5/4 */
:root {
  --ink: #1a1e1d;
  --night: #121615;
  --brown: #403126;
  --cream: #e1ccaa;
  --maroon: #8d161b;
  --ticket: #f1d26a;
  --line: rgba(225, 204, 170, 0.28);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--cream);
  background: var(--night);
  font-family: Inter, system-ui, sans-serif;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.stage {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 14px 24px 20px;
}

.hero-art,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  object-fit: cover;
  z-index: -3;
}

.shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(18, 22, 21, 0.12), rgba(18, 22, 21, 0.16) 42%, rgba(18, 22, 21, 0.36)),
    linear-gradient(90deg, rgba(18, 22, 21, 0.36), rgba(18, 22, 21, 0.02) 44%, rgba(18, 22, 21, 0.2));
}

.topbar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 800;
}

.brand,
nav a {
  color: rgba(255, 244, 220, 0.92);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.hero-title {
  align-self: center;
  justify-self: center;
  text-align: center;
  transform: translateY(-6vh);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  color: #fff7ed;
  font-family: "Noto Sans Devanagari", Eczar, serif;
  font-size: clamp(5.5rem, 15vw, 12rem);
  font-weight: 800;
  line-height: 0.84;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.36);
}

.player-shell {
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: end;
  display: grid;
  grid-template-columns: 74px minmax(220px, 1fr) 78px 120px;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100vw - 32px));
  min-height: 86px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 230, 205, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(141, 22, 27, 0.78), rgba(64, 49, 38, 0.82));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.track-art {
  width: 66px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid rgba(255, 244, 220, 0.72);
  border-radius: 50%;
}

.track-copy {
  min-width: 0;
}

.track-copy h2 {
  overflow: hidden;
  color: #fff7ed;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-copy p {
  margin: 5px 0 0;
  overflow: hidden;
  color: rgba(255, 244, 220, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  color: rgba(255, 244, 220, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.track > span:last-child {
  display: none;
}

.track-line {
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 244, 220, 0.32);
}

.track-line span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: #fff7ed;
}

.play-button,
.close-button {
  display: grid;
  place-items: center;
  border: 0;
  transition:
    transform 140ms var(--ease-out),
    background-color 180ms var(--ease-out);
}

.play-button {
  justify-self: end;
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: #fff7ed;
  border-radius: 50%;
}

svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.play-button svg {
  fill: currentColor;
  stroke: currentColor;
  margin-left: 3px;
}

.play-button:active,
.close-button:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .play-button:hover,
  .close-button:hover {
    transform: translateY(-1px);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 12, 11, 0.68);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.paywall {
  position: relative;
  width: min(430px, 100%);
  padding: 22px;
  border: 1px solid rgba(26, 30, 29, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
  transform: translateY(10px) scale(0.97);
  opacity: 0;
  transition:
    transform 220ms var(--ease-out),
    opacity 180ms var(--ease-out);
}

.modal-backdrop.is-open .paywall {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: rgba(26, 30, 29, 0.08);
  border-radius: 50%;
}

.paywall h2 {
  max-width: 390px;
  color: var(--maroon);
  font-family: Eczar, "Noto Sans Devanagari", serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 0.93;
}

.paywall p {
  margin: 16px 0 0;
  color: rgba(26, 30, 29, 0.78);
  font-size: 1.05rem;
  line-height: 1.55;
}

.qr-card {
  display: block;
  width: min(320px, 78vw);
  margin: 22px auto 0;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(26, 30, 29, 0.18);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 520ms var(--ease-out),
    transform 520ms var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .stage {
    padding: 18px 18px 18px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero-title {
    transform: translateY(-7vh);
  }

  h1 {
    font-size: clamp(4.6rem, 23vw, 7rem);
  }

  .player-shell {
    grid-template-columns: 58px minmax(0, 1fr) 48px;
    width: 100%;
    min-height: 74px;
    padding: 8px 10px 8px 8px;
  }

  .track-art {
    width: 54px;
  }

  .track {
    display: none;
  }

  .play-button {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  [data-reveal],
  .paywall {
    transform: none;
  }
}
