@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;700&display=swap');

:root {
  --bg: #09040a;
  --bg-2: #140817;
  --wine: #641c34;
  --rose: #d98aa8;
  --gold: #e8c786;
  --white: #fff7fb;
  --muted: rgba(255, 247, 251, 0.72);
  --glass: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(217, 138, 168, 0.18), transparent 35%),
    radial-gradient(circle at 80% 85%, rgba(232, 199, 134, 0.12), transparent 28%),
    linear-gradient(145deg, #050306 0%, #120812 48%, #220b1c 100%);
}

.app {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.screen {
  width: min(100%, 480px);
  min-height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  animation: enter 680ms cubic-bezier(.2,.8,.2,1);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.card {
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.055));
  backdrop-filter: blur(22px);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.18), transparent 34%);
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 10px;
}

h1, h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.96;
  margin: 0;
}

h1 {
  font-size: clamp(3.1rem, 14vw, 5.5rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2.4rem, 10vw, 4.3rem);
  letter-spacing: -0.045em;
}

p {
  line-height: 1.75;
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.lead {
  font-size: 1.08rem;
  color: rgba(255,247,251,0.86);
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 16px 20px;
  color: #180914;
  background: linear-gradient(135deg, #fff2c4, var(--gold), #d98aa8);
  box-shadow: 0 12px 34px rgba(217, 138, 168, 0.22);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, filter 180ms ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn.secondary {
  color: var(--white);
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--glass-border);
}

.photo-frame {
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  box-shadow: 0 22px 60px rgba(0,0,0,0.36);
  aspect-ratio: 4/5;
  position: relative;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-frame.sky {
  aspect-ratio: 1 / 1.15;
  padding: 10px;
}

.photo-frame.sky img {
  border-radius: 22px;
}

.date-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  color: var(--gold);
  border: 1px solid rgba(232,199,134,0.30);
  background: rgba(232,199,134,0.08);
  padding: 8px 13px;
  font-size: 0.82rem;
  font-weight: 700;
}

.timeline-text {
  display: grid;
  gap: 12px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.10);
  color: var(--white);
  cursor: pointer;
}

.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex: 1;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}

.dot.active {
  background: var(--gold);
  width: 20px;
}

.counter {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(5rem, 24vw, 8rem);
  line-height: 0.9;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(232,199,134,0.24);
}

.player-card {
  text-align: center;
}

.album {
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 70px rgba(0,0,0,0.42);
}

.album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  margin: 18px 0 10px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  border-radius: 999px;
}

.play-btn {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: 0;
  margin: 12px auto;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  color: #180914;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 15px 42px rgba(217,138,168,0.26);
}

.lyrics-box {
  text-align: left;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.11);
}

.stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.85) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(232,199,134,0.8) 0 1px, transparent 1.5px);
  background-size: 86px 86px, 140px 140px;
  background-position: 0 0, 30px 60px;
  opacity: 0.28;
  animation: drift 38s linear infinite;
}

@keyframes drift {
  to {
    transform: translateY(-90px);
  }
}

.glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.36;
  z-index: 0;
}

.glow-one {
  background: var(--wine);
  top: -90px;
  left: -120px;
}

.glow-two {
  background: #8c4a7a;
  right: -140px;
  bottom: -100px;
}

.hidden {
  display: none;
}

@media (min-width: 760px) {
  .screen {
    width: min(100%, 780px);
  }

  .timeline-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 26px;
  }

  .photo-frame {
    aspect-ratio: 4 / 5;
  }
}
