/* ========================================================
   4. SAVE THE DATE (HERO) & NÚT NHẠC
   ======================================================== */
.floating-music {
  position: fixed !important;
  top: auto !important;
  bottom: max(20px, env(safe-area-inset-bottom)) !important;
  right: max(16px, env(safe-area-inset-right)) !important;
  z-index: 998;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-ink);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.6s ease;
}

.floating-music:hover { background: var(--sage-deep); }

.floating-music:focus-visible {
  outline: 2px solid var(--teal-ink) !important;
  outline-offset: 3px;
}

.floating-music .music-icon {
  display: flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
}

.floating-music.playing .music-icon {
  animation: spin-vinyl 4s linear infinite;
}

/* Nút nổi chỉ hiện sau khi mở thiệp, tránh đè lên bìa */
body:not(.invite-open):not(.invite-opening) .floating-music {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Save the date ---------- */
#hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 44px var(--gutter) 48px;
  text-align: left;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--teal-ink);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-track);
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.hero-kicker,
.hero-date-short {
  margin: 0;
  font-variant-numeric: lining-nums tabular-nums;
}

.hero-date-short:empty { display: none; }

.hero-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: min(44px, 11.3vw);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.hero-heading span { color: var(--sage-deep); }

/* Ảnh cưới chính + nhãn ngày */
.envelope-stage {
  position: relative;
  margin-right: 14px;
}

.photo-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sage);
  box-shadow: 14px 14px 0 var(--sage);
}

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

.photo-frame img:not([src]) { display: none; }

.photo-frame:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 4px;
}

.hero-date-badge {
  position: absolute;
  left: -12px;
  bottom: -26px;
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  background: var(--peach);
  color: var(--teal-ink);
}

.hero-weekday {
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-weekday:empty { display: none; }

.hero-daymonth {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}

.hero-date-badge:has(.hero-daymonth:empty) { display: none; }

/* Tên đôi uyên ương canh phải */
.hero-title-box {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-names {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--font-display);
  font-size: min(78px, 20vw);
  font-weight: 700;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.hero-name { max-width: 100%; overflow-wrap: anywhere; }
.hero-name-second { color: var(--sage-deep); }

.hero-amp-row {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-amp-row .line {
  flex: 1;
  height: 1px;
  background: var(--line-peach);
}

.hero-amp-row .amp {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--peach);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--teal-ink);
}

.hero-quote {
  max-width: 380px;
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
  color: var(--teal-ink);
}
