:root {
  color-scheme: dark;
  --bg: #170f25;
  --bg-2: #21133a;
  --ink: #fffaf0;
  --muted: #d9cdec;
  --hot: #ff4f87;
  --sun: #ffd166;
  --mint: #7ef3d8;
  --blue: #88b8ff;
  --glass: rgba(255, 255, 255, 0.11);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 26px 90px rgba(9, 3, 24, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 79, 135, 0.34), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(126, 243, 216, 0.26), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg-2) 54%, #321234);
}

button,
input {
  font: inherit;
}

.experience {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  min-height: 100svh;
  padding: clamp(24px, 4.6vw, 64px);
}

.stage {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 0.95;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.8rem, 9.4vw, 8rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.now-card,
.sync-panel,
.memory-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.now-card {
  min-height: 360px;
  padding: clamp(22px, 4vw, 40px);
}

.live-lyrics {
  position: relative;
  overflow: hidden;
  height: clamp(260px, 40vh, 420px);
}

.live-line {
  margin: 0;
  padding: 0 0 clamp(16px, 2.4vh, 30px);
  color: rgba(255, 250, 240, 0.42);
  opacity: 0.72;
  font-size: clamp(1.7rem, 4.3vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.live-line.is-past {
  color: rgba(255, 250, 240, 0.24);
  opacity: 0.45;
}

.live-line.is-future {
  opacity: 0.72;
}

.live-line.is-active {
  color: #ffffff;
  opacity: 1;
  transform: translateX(0);
  text-shadow: 0 0 24px rgba(255, 209, 102, 0.48), 0 0 52px rgba(255, 79, 135, 0.34);
}

.transport {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 760px;
  margin: 22px 0 24px;
}

.play-button,
.ghost-button {
  border: 0;
  color: var(--ink);
  cursor: pointer;
}

.play-button {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun), var(--hot));
  box-shadow: 0 16px 36px rgba(255, 79, 135, 0.35);
}

.play-icon {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid #211022;
}

.play-button.is-playing .play-icon {
  width: 21px;
  height: 26px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, #211022 0 35%, transparent 35% 65%, #211022 65% 100%);
}

.transport-main {
  min-width: 0;
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--sun);
}

.side-rail {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  align-self: center;
}

.memory-panel {
  display: grid;
  grid-template-rows: auto auto minmax(3.3rem, auto);
  overflow: hidden;
}

.memory-photo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(12, 7, 22, 0.42);
}

.memory-photo-wrap::before {
  position: absolute;
  inset: -18px;
  background-image:
    linear-gradient(rgba(20, 10, 31, 0.28), rgba(20, 10, 31, 0.28)),
    var(--memory-image, url("assets/cameos/04-wedding-banner.jpg"));
  background-position: center;
  background-size: cover;
  content: "";
  filter: blur(14px) saturate(1.08);
  opacity: 0.82;
  transform: scale(1.06);
}

.memory-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  transition: opacity 220ms ease;
}

.memory-photo.is-contain {
  object-fit: contain;
}

.memory-photo.is-changing {
  opacity: 0.38;
}

.memory-kicker {
  margin: 16px 18px 6px;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.memory-panel h2 {
  min-height: 3.3rem;
  margin: 0 18px 18px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.sync-panel {
  padding: 22px;
}

.sync-panel h2 {
  font-size: 1.55rem;
}

.sync-panel p {
  min-height: 5.4em;
  margin: 14px 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.sync-panel label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

.ghost-button {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.lyrics-wrap,
.cameo-wrap {
  padding: 38px clamp(22px, 5vw, 74px) 70px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.lyrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lyric-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.075);
}

.lyric-card.is-current {
  border-color: rgba(255, 209, 102, 0.7);
  background: rgba(255, 209, 102, 0.12);
}

.lyric-card h3 {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 0.84rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lyric-card p {
  margin: 0;
  color: rgba(255, 250, 240, 0.74);
  font-size: 1.05rem;
  line-height: 1.45;
}

.cameo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.cameo-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.cameo-card.is-current {
  border-color: rgba(255, 209, 102, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.22), 0 20px 50px rgba(255, 79, 135, 0.2);
}

.cameo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.cameo-card img.is-contain {
  object-fit: contain;
}

.cameo-card div {
  padding: 12px 14px 14px;
}

.cameo-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
}

.cameo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.light-rings {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.light-rings span {
  position: absolute;
  width: 38vmax;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  animation: float 13s ease-in-out infinite;
}

.light-rings span:nth-child(1) {
  top: -12vmax;
  right: 6vmax;
}

.light-rings span:nth-child(2) {
  bottom: 4vmax;
  left: -16vmax;
  width: 52vmax;
  animation-delay: -4s;
}

.light-rings span:nth-child(3) {
  right: -19vmax;
  bottom: -18vmax;
  width: 44vmax;
  animation-delay: -8s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(2vw, -2vh, 0) scale(1.06);
  }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sync-panel {
    align-self: stretch;
  }

  .lyrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cameo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 24px 18px 34px;
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5rem);
  }

  .transport {
    grid-template-columns: 58px minmax(0, 1fr);
  }

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

  .lyrics-grid {
    grid-template-columns: 1fr;
  }

  .cameo-grid {
    grid-template-columns: 1fr;
  }
}

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