/* ─────────────────────────────────────────────────────────────
   We Love You, Amelia — Stylesheet
   Fonts: Great Vibes (script), Cormorant Garamond (serif)
   Palette: warm parchment / sage / dusty rose / deep brown
───────────────────────────────────────────────────────────── */

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

html, body {
  height: 100%;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #3D2410;
  background-color: #e8dfc8;
}

/* ── Full-page background ── */
.page {
  min-height: 100vh;
  background-image: url('background.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
}

/* ── Content column ── */
.content {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* ── "We love you," ── */
.we-love-you {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: #4A2E14;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  line-height: 1.3;
}

/* ── "Amelia" ── */
.amelia {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4.5rem, 16vw, 7rem);
  font-weight: 400;
  color: #3D2410;
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

/* ── Vine SVG dividers ── */
.vine-divider {
  margin: 8px 0 18px;
  opacity: 0.88;
  flex-shrink: 0;
}

.vine-divider svg {
  display: block;
}

/* ── Primary message ── */
.message-primary {
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  color: #4A2E14;
  line-height: 1.65;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

/* ────────────────────────────────────────────────────────────
   Audio Player Card
───────────────────────────────────────────────────────────── */
.player-card {
  width: 100%;
  max-width: 380px;
  background: rgba(242, 232, 207, 0.82);
  border: 1.5px dashed #C4A870;
  border-radius: 20px;
  padding: 18px 20px 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 4px 24px rgba(80, 48, 18, 0.10),
    0 1px 4px rgba(80, 48, 18, 0.06);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Vine top decoration inside card ── */
.player-vine-top {
  opacity: 0.80;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.player-vine-top svg {
  display: block;
}

/* ── Main row: sprigs + play button ── */
.player-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin-bottom: 14px;
}

/* ── Vine sprigs ── */
.player-sprig {
  flex-shrink: 0;
  opacity: 0.78;
}

.player-sprig svg {
  display: block;
}

.player-sprig-right {
  transform: none;
}

/* ── Play/Pause button ── */
.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: #7A8C6A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 3px 12px rgba(80, 100, 60, 0.28),
    0 1px 3px rgba(80, 100, 60, 0.18);
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  position: relative;
}

.play-btn:hover {
  background: #8A9E78;
  transform: scale(1.045);
  box-shadow:
    0 5px 18px rgba(80, 100, 60, 0.32),
    0 2px 5px rgba(80, 100, 60, 0.20);
}

.play-btn:active {
  transform: scale(0.97);
  box-shadow:
    0 2px 8px rgba(80, 100, 60, 0.22),
    0 1px 2px rgba(80, 100, 60, 0.14);
}

.play-btn svg {
  display: block;
}

.play-icon polygon {
  transform: translateX(1px);
}

.hidden {
  display: none !important;
}

/* ── Progress row ── */
.player-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.time-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #8A6A3A;
  letter-spacing: 0.03em;
  min-width: 30px;
  flex-shrink: 0;
  user-select: none;
}

#timeCurrent {
  text-align: right;
}

#timeTotal {
  text-align: left;
}

/* ── Progress track ── */
.progress-track {
  flex: 1;
  height: 6px;
  background: rgba(180, 148, 90, 0.28);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  touch-action: none;
}

.progress-track:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(122, 140, 106, 0.40);
  border-radius: 999px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8A9E78, #7A8C6A);
  border-radius: 999px;
  width: 0%;
  pointer-events: none;
  transition: width 0.08s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7A8C6A;
  border: 2px solid rgba(242, 232, 207, 0.90);
  box-shadow: 0 1px 5px rgba(60, 80, 40, 0.30);
  pointer-events: none;
  transition: left 0.08s linear;
}

/* ── Secondary message ── */
.message-secondary {
  font-size: clamp(0.98rem, 3vw, 1.15rem);
  font-weight: 400;
  font-style: italic;
  color: #4A2E14;
  line-height: 1.65;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

/* ── Heart accent ── */
.heart-accent {
  font-size: 1.1rem;
  color: #B06050;
  margin-bottom: 10px;
  line-height: 1;
  opacity: 0.90;
}

/* ── Footer ── */
.footer-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 500;
  font-style: italic;
  color: #4A2E14;
  letter-spacing: 0.04em;
}

/* ────────────────────────────────────────────────────────────
   Responsive — small phones
───────────────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .page {
    padding: 36px 14px 48px;
  }

  .player-card {
    padding: 14px 14px 16px;
  }

  .play-btn {
    width: 56px;
    height: 56px;
  }

  .player-sprig svg {
    width: 64px;
    height: 30px;
  }

  .player-vine-top svg {
    width: 170px;
    height: 14px;
  }
}

/* ────────────────────────────────────────────────────────────
   Responsive — large screens (keep content comfortably sized)
───────────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .page {
    padding: 72px 20px 80px;
  }

  .content {
    max-width: 520px;
  }
}
