/* ============================================================
   Irama (a parody wordmark) — music-player wedding invitation
   Mobile-first. Dark player shell with a green accent.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg:        #0b0709;
  --surface:   #150f12;
  --card:      #1c1418;
  --card-2:    #2a1e24;
  --line:      #31232a;
  --ink:       #ffffff;
  --muted:     #b8aeb3;
  --dim:       #815d6f;

  --green:     #ff8a5c;
  --green-2:   #ffa37f;
  --green-ink: #2a0f05;

  /* Overwritten from playlist.gradient at boot. */
  --wash-a:    #ff8a5c;
  --wash-b:    #4a1d2c;

  --shell:     560px;
  --r-sm:      4px;
  --r-md:      8px;
  --r-lg:      14px;
  --r-xl:      22px;

  --ui:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --tab-h: 60px;
  --now-h: 58px;
  --ease:  cubic-bezier(.22, .61, .36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; height: 100vh; }

/* Component `display` rules below would otherwise beat the UA's [hidden]. */
[hidden] { display: none !important; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico { width: 24px; height: 24px; flex: none; display: block; }
.ico--sm { width: 16px; height: 16px; }
.ico--flip { transform: rotate(180deg); }

:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- BRAND ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
}

.brand__mark { width: 26px; height: 26px; flex: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s var(--ease), background .18s var(--ease), filter .18s var(--ease);
}

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

.btn--green { background: var(--green); color: var(--green-ink); }
.btn--green:hover { background: var(--green-2); }

.btn--soft {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--soft:hover { border-color: var(--muted); }

.btn--lg { padding: 15px 34px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .16s var(--ease), transform .15s var(--ease);
}

.icon-btn:hover { color: var(--ink); }
.icon-btn:active { transform: scale(.9); }
.icon-btn--lg { width: 44px; height: 44px; }
.icon-btn.is-on { color: var(--green); }

.icon-btn__badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 138, 92, .35);
  transition: transform .16s var(--ease), background .18s var(--ease);
}

.fab:hover { background: var(--green-2); transform: scale(1.05); }
.fab:active { transform: scale(.94); }
.fab--xl { width: 68px; height: 68px; margin: 0; }
.fab--xl .ico { width: 30px; height: 30px; }

/* ============================================================
   COVER
   ============================================================ */
.cover {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  background: var(--surface);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.cover.is-open { opacity: 0; transform: scale(1.06); pointer-events: none; }

.cover__glow {
  position: absolute;
  inset: -30% -30% auto -30%;
  height: 78%;
  background:
    radial-gradient(circle at 50% 20%, var(--wash-a) 0%, transparent 62%),
    radial-gradient(circle at 20% 60%, var(--wash-b) 0%, transparent 58%);
  opacity: .5;
  filter: blur(6px);
}

.cover__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: auto;
  padding: 48px 26px calc(48px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.cover__art {
  width: min(240px, 62vw);
  aspect-ratio: 1;
  margin: 22px 0 8px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--wash-a), var(--wash-b));
  background-size: cover;
  background-position: center;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .6);
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: .02em;
  animation: rise .8s var(--ease) both;
}

.cover__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover__names {
  font-family: var(--serif);
  font-size: clamp(32px, 10vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
}

.cover__date {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .04em;
}

.cover__guest {
  margin-top: 14px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .04);
}

.cover__guest-label {
  display: block;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dim);
}

.cover__guest-name {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  font-weight: 700;
}

.cover__note {
  max-width: 38ch;
  font-size: 13px;
  color: var(--muted);
}

.cover__hint { font-size: 11px; color: var(--dim); }

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  max-width: var(--shell);
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
}

.page {
  padding-bottom: calc(var(--tab-h) + var(--now-h) + 30px + env(safe-area-inset-bottom));
}

/* ---------- TOPBAR ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: 100%;
  max-width: var(--shell);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.topbar.is-stuck {
  background: rgba(21, 15, 18, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.topbar__title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.topbar.is-stuck .topbar__title { opacity: 1; }

.topbar__actions { display: flex; align-items: center; gap: 2px; }

/* ============================================================
   PLAYLIST HEADER
   ============================================================ */
.head { position: relative; padding: 74px 20px 18px; }

.head__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--wash-a) 0%, var(--wash-b) 46%, var(--surface) 100%);
  opacity: .82;
}

.head__inner { position: relative; }

.head__art {
  width: min(216px, 58vw);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--wash-a), var(--wash-b));
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .55);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
}

.head__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

.head__title {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 600;
  line-height: 1.1;
}

.head__desc {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .74);
}

.head__owner {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, .84);
}

.head__avatar {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  background-size: cover;
  background-position: center;
  font-size: 8px;
  font-weight: 800;
}

.head__owner-name { font-weight: 700; }
.head__tick { color: var(--green-2); }
.head__dot { color: rgba(255, 255, 255, .5); }

.head__meta {
  margin-top: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, .66);
}

.head__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

/* ============================================================
   TRACK LIST
   ============================================================ */
.tracks { padding: 4px 8px 10px; }

.track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .16s var(--ease);
}

.track:hover { background: rgba(255, 255, 255, .06); }
.track:active { background: rgba(255, 255, 255, .1); }

.track__no {
  width: 20px;
  flex: none;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}

.track__body { flex: 1; min-width: 0; }

.track__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track__artist {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track__dur {
  flex: none;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}

.track.is-current .track__title { color: var(--green); }
.track.is-current .track__no { color: var(--green); }

/* Animated equaliser replaces the track number while playing. */
.track__bars {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 20px;
  height: 14px;
}

.track.is-current.is-playing .track__bars { display: flex; }
.track.is-current.is-playing .track__no { display: none; }

.track__bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--green);
  animation: eq .9s var(--ease) infinite alternate;
}

.track__bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.track__bars i:nth-child(2) { height: 90%; animation-delay: .18s; }
.track__bars i:nth-child(3) { height: 60%; animation-delay: .36s; }

/* ============================================================
   SECTION CARDS
   ============================================================ */
.lead {
  padding: 6px 24px 22px;
  font-size: 12px;
  color: var(--dim);
  text-align: center;
}

.card {
  margin: 0 14px 14px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.card.is-in { opacity: 1; transform: none; }

/* Highlight ring when the card is the current "track". */
.card.is-current {
  border-color: rgba(255, 138, 92, .55);
  box-shadow: 0 0 0 1px rgba(255, 138, 92, .22), 0 12px 34px rgba(0, 0, 0, .4);
}

.card__kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--green);
}

.card__title {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}

.card__sub {
  margin-top: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
}

.card__note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.card__note + .btn { margin-top: 16px; }

/* ---------- TRACK 01 — quote ---------- */
.salam {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.quote {
  margin-top: 14px;
  padding: 18px 18px 18px 20px;
  border-left: 3px solid var(--green);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(255, 138, 92, .07);
}

.quote__text {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
}

.quote__src {
  display: block;
  margin-top: 10px;
  font-family: var(--ui);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- TRACK 02 — artists & lyrics ---------- */
.artists {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

@media (min-width: 420px) {
  .artists { grid-template-columns: 1fr 1fr; }
}

.artist {
  padding: 18px 14px;
  border-radius: var(--r-md);
  background: var(--card-2);
  text-align: center;
}

.artist__face {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--wash-a), var(--wash-b));
  background-size: cover;
  background-position: center;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
}

.artist__role {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
}

.artist__name {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.artist__parents {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.artist__link {
  display: inline-block;
  margin-top: 11px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
}

.artist__link:hover { border-color: var(--muted); color: var(--ink); }

.lyrics { margin-top: 12px; display: grid; gap: 2px; }

.lyric {
  padding: 11px 14px;
  border-radius: var(--r-md);
  transition: background .2s var(--ease);
}

.lyric:nth-child(odd) { background: rgba(255, 255, 255, .03); }

.lyric__year {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--green);
}

.lyric__title {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
}

.lyric__text {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- TRACK 03/04 — countdown & events ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.cd {
  padding: 12px 4px;
  border-radius: var(--r-md);
  background: var(--card-2);
  text-align: center;
}

.cd__num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--green);
}

.cd__label {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

.event {
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: var(--r-md);
  background: var(--card-2);
}

.event__name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.event__row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 13px;
  font-size: 13px;
}

.event__row .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--green); }

.event__venue { font-weight: 700; }
.event__addr { margin-top: 2px; font-size: 12px; color: var(--muted); }

.event__map {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.event__map .ico { width: 16px; height: 16px; }

/* ---------- TRACK 05 — gallery ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 18px;
}

@media (min-width: 420px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.cell {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.cell__art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
  transition: transform .35s var(--ease);
}

.cell__art--empty {
  background: linear-gradient(150deg, var(--card-2), #130d10);
  color: var(--dim);
  font-size: 22px;
  font-weight: 800;
}

.cell:hover .cell__art { transform: scale(1.05); }

.cell__cap {
  position: absolute;
  inset: auto 0 0;
  padding: 16px 8px 7px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82));
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  color: #fff;
}

/* ---------- TRACK 06 — dress code ---------- */
.dress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.dress__art {
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: var(--r-sm);
  background: linear-gradient(150deg, var(--wash-a), var(--wash-b));
}

.dress__name { font-size: 17px; font-weight: 700; }
.dress__meta { margin-top: 2px; font-size: 12px; color: var(--muted); }

.palette { margin-top: 16px; }

.sw {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
}

.sw:last-child { border-bottom: 0; }

.sw__no {
  width: 18px;
  flex: none;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}

.sw__chip {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.sw__name { flex: 1; font-size: 13px; font-weight: 600; }

.sw__hex {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- TRACK 07 — rsvp state ---------- */
.rsvp-state {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 138, 92, .1);
  font-size: 12.5px;
  color: var(--green-2);
}

/* ---------- TRACK 09 — wishes rail ---------- */
.rail {
  display: flex;
  gap: 10px;
  margin: 18px -20px 16px;
  padding: 2px 20px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.wish-card {
  flex: none;
  width: 220px;
  padding: 15px 15px 16px;
  border-radius: var(--r-md);
  background: var(--card-2);
  scroll-snap-align: start;
}

.wish-card__top { display: flex; align-items: center; gap: 9px; }

.wish-card__face {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--wash-a), var(--wash-b));
  font-size: 12px;
  font-weight: 800;
}

.wish-card__name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wish-card__msg {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.wish-card__time { margin-top: 9px; font-size: 11px; color: var(--dim); }

/* ---------- TRACK 10 — outro ---------- */
.card--outro { text-align: center; }

.outro__text {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
  color: var(--muted);
}

.outro__salam { margin-top: 16px; font-size: 13px; font-weight: 600; }

.outro__sign { margin-top: 22px; font-size: 12px; color: var(--dim); }

.outro__names {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.outro__families {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- FOOTER ---------- */
.foot { padding: 30px 24px 10px; text-align: center; }

.foot__end {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
}

.foot__note { margin-top: 8px; font-size: 13px; color: var(--muted); }

.foot__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.foot__tags span {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
}

.foot__credit { margin-top: 18px; font-size: 11px; color: var(--dim); }

/* ============================================================
   NOW PLAYING BAR
   ============================================================ */
.nowbar {
  position: fixed;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  width: calc(100% - 16px);
  max-width: calc(var(--shell) - 16px);
  height: var(--now-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 8px;
  border-radius: var(--r-md);
  background: linear-gradient(100deg, #4a2b3c, #2c1f27);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  overflow: hidden;
}

.nowbar__open {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nowbar__art {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: linear-gradient(150deg, var(--wash-a), var(--wash-b));
  background-size: cover;
  background-position: center;
  font-size: 11px;
  font-weight: 800;
}

.nowbar__text { min-width: 0; }

.nowbar__title,
.nowbar__artist {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nowbar__title { font-size: 12.5px; font-weight: 700; }
.nowbar__artist { font-size: 11px; color: var(--muted); }

.nowbar__bar {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: rgba(255, 255, 255, .16);
}

.nowbar__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width .25s linear;
}

/* ============================================================
   TAB BAR
   ============================================================ */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 65;
  width: 100%;
  max-width: var(--shell);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, rgba(21, 15, 18, .82), #0c080a 62%);
  backdrop-filter: blur(14px);
}

.tabbar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .16s var(--ease);
}

.tabbar__btn .ico { width: 21px; height: 21px; }
.tabbar__btn:hover { color: var(--muted); }
.tabbar__btn.is-active { color: var(--ink); }

/* ============================================================
   FULL-SCREEN PLAYER
   ============================================================ */
.player {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  animation: slide-up .35s var(--ease) both;
}

.player__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--wash-a) 0%, var(--wash-b) 44%, var(--surface) 88%);
  opacity: .75;
}

.player__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px 6px;
}

.player__from {
  flex: 1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, .82);
}

.player__body {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 10px 26px calc(30px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.player__art {
  width: min(300px, 74vw);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--wash-a), var(--wash-b));
  background-size: cover;
  background-position: center;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 600;
}

.player__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.player__artist { margin-top: 4px; font-size: 14px; color: var(--muted); }

.player__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
}

.player__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--ink);
  transition: width .25s linear;
}

.player__times {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.player__controls .icon-btn { color: var(--ink); }

/* ============================================================
   SHEETS
   ============================================================ */
.sheet { position: fixed; inset: 0; z-index: 220; display: flex; align-items: flex-end; }

.sheet__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .68); animation: fade .3s var(--ease) both; }

.sheet__panel {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--card);
  box-shadow: 0 -14px 46px rgba(0, 0, 0, .6);
  animation: slide-up .34s var(--ease) both;
}

.sheet__panel--tall { height: 88vh; }

.sheet__grab {
  width: 38px;
  height: 4px;
  margin: 9px auto 0;
  border-radius: 999px;
  background: var(--line);
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--line);
}

.sheet__title { font-size: 17px; font-weight: 800; }

.sheet__body {
  padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.sheet__body--list { flex: 1; padding-bottom: 8px; }

.sheet__lead { font-size: 12.5px; color: var(--muted); }

/* ---------- FORM ---------- */
.form { display: grid; gap: 17px; }

.field { position: relative; display: block; }

.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__label em { font-style: normal; color: var(--dim); text-transform: none; letter-spacing: 0; }

.field__count { position: absolute; right: 2px; bottom: -16px; font-size: 10px; color: var(--dim); }

.input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card-2);
  color: var(--ink);
  font: inherit;
  transition: border-color .18s var(--ease);
}

.input::placeholder { color: var(--dim); }
.input:focus { outline: 0; border-color: var(--green); }
.input.is-invalid { border-color: #e0245e; }
.input--area { resize: vertical; min-height: 84px; }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice span {
  display: block;
  padding: 11px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card-2);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all .18s var(--ease);
}

.choice input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: var(--green-ink);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card-2);
}

.stepper__btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font-size: 19px;
  cursor: pointer;
}

.stepper__btn:hover { background: rgba(255, 255, 255, .07); }

.stepper__value {
  width: 52px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: center;
  -moz-appearance: textfield;
}

.stepper__value::-webkit-outer-spin-button,
.stepper__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.form__note { font-size: 11px; color: var(--dim); text-align: center; }

/* ---------- SUCCESS ---------- */
.success { text-align: center; padding: 12px 0 4px; animation: rise .4s var(--ease) both; }

.success__mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
}

.success__title { font-family: var(--serif); font-size: 25px; font-weight: 600; }
.success__text { margin: 9px 0 20px; font-size: 13px; color: var(--muted); }

/* ---------- WISHES LIST ---------- */
.wishes { display: grid; gap: 4px; }

.wish {
  display: flex;
  gap: 11px;
  padding: 12px 8px;
  border-radius: var(--r-md);
}

.wish:nth-child(odd) { background: rgba(255, 255, 255, .03); }

.wish__face {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--wash-a), var(--wash-b));
  font-size: 14px;
  font-weight: 800;
}

.wish__body { flex: 1; min-width: 0; }

.wish__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wish__name { font-size: 13.5px; font-weight: 700; }

.wish__badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wish__badge--hadir { background: rgba(255, 138, 92, .18); color: var(--green-2); }
.wish__badge--ragu  { background: rgba(245, 197, 24, .18); color: #f5c518; }
.wish__badge--tidak { background: rgba(255, 255, 255, .1); color: var(--muted); }

.wish__msg { margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.wish__time { margin-top: 5px; font-size: 11px; color: var(--dim); }

.wishes__empty { padding: 34px 12px; text-align: center; font-size: 13px; color: var(--dim); }

/* ---------- COMPOSER ---------- */
.composer {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--card);
}

.composer__fields { flex: 1; display: grid; gap: 7px; }

.composer__name,
.composer__msg {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-2);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.composer__name::placeholder,
.composer__msg::placeholder { color: var(--dim); }
.composer__name:focus,
.composer__msg:focus { outline: 0; border-color: var(--green); }
.composer__name.is-invalid,
.composer__msg.is-invalid { border-color: #e0245e; }

.composer__send {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  cursor: pointer;
}

.composer__send:hover { background: var(--green-2); }

/* ---------- BANKS ---------- */
.banks { display: grid; gap: 10px; margin-top: 16px; }

.bank {
  position: relative;
  display: block;
  width: 100%;
  padding: 15px 46px 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card-2);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.bank:hover { border-color: var(--muted); }
.bank.is-copied { border-color: var(--green); background: rgba(255, 138, 92, .12); }

.bank__name {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
}

.bank__number {
  display: block;
  margin-top: 5px;
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.bank__holder { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

.bank__copy { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); color: var(--dim); }

.ship {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}

.ship__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}

.ship__name { margin-top: 6px; font-size: 15px; font-weight: 700; }
.ship__addr { margin-top: 5px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .95);
  animation: fade .25s var(--ease) both;
}

.lightbox__close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; color: #fff; }

.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

.lightbox__figure { width: min(88vw, 460px); text-align: center; }

.lightbox__stage {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--card-2), #0f0b0d);
  background-size: cover;
  background-position: center;
  font-size: 46px;
  font-weight: 800;
  color: var(--dim);
}

.lightbox__caption { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + var(--now-h) + 20px + env(safe-area-inset-bottom));
  z-index: 320;
  max-width: calc(100% - 40px);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #140e11;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes slide-up {
  from { transform: translateY(26px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

@keyframes eq {
  from { height: 22%; }
  to   { height: 100%; }
}

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