/* =========================================================
   Post Office page hero
========================================================= */
.post-hero {
  background: linear-gradient(180deg, #fbeef1 0%, var(--cream) 60%);
  padding: 4.5rem 0;
}

.post-hero-bridge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.3rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid rgba(76, 122, 136, 0.28);
  color: var(--frost-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-hero-bridge:hover { transform: translateY(-2px); border-color: var(--frost-dark); color: var(--frost-dark); }
.post-hero-bridge svg { width: 16px; height: 16px; flex: none; }

.post-hero-doors {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1.2rem;
}
.post-hero-door-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1.5px solid rgba(76, 122, 136, 0.25);
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-hero-door-chip:hover { border-color: var(--cranberry); transform: translateY(-2px); color: var(--ink); }
.post-hero-door-chip svg { width: 15px; height: 15px; color: var(--cranberry); flex: none; }

/* =========================================================
   Per-door eyebrow label
========================================================= */
.door-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cranberry);
  margin-bottom: 0.5rem;
}

/* =========================================================
   Card catalog
========================================================= */
.cards-section {
  background: var(--cream);
  padding: 5rem 0 6rem;
}

.cards-section-head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.cards-section-head .dept-copy { margin-left: auto; margin-right: auto; }

/* =========================================================
   Category tabs
========================================================= */
.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 auto 2.75rem;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid rgba(76, 122, 136, 0.28);
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.category-tab svg { width: 16px; height: 16px; flex: none; }
.category-tab:hover { transform: translateY(-2px); border-color: var(--cranberry); }
.category-tab.is-active {
  background: var(--cranberry);
  border-color: var(--cranberry);
  color: var(--cream);
}
.category-tab .tab-count {
  font-size: 0.78rem;
  opacity: 0.75;
}

.post-card[hidden] { display: none; }

.no-results-msg {
  color: var(--ink-soft);
  font-style: italic;
  padding: 2rem 0 0;
}

.post-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 30px -18px rgba(20, 36, 32, 0.25);
  border: 1px solid rgba(76, 122, 136, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px -18px rgba(20, 36, 32, 0.32);
}

.post-card-art {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  background: var(--cream-2);
  overflow: hidden;
}
.post-card-art svg { width: 100%; height: 100%; display: block; }
.post-card-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-art img { transform: scale(1.05); }

.post-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 36, 32, 0) 55%, rgba(20, 36, 32, 0.55) 100%);
  pointer-events: none;
}

.card-category-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  backdrop-filter: blur(3px);
}
.card-category-badge svg { width: 12px; height: 12px; }
.card-category-badge--digital { background: rgba(76, 122, 136, 0.88); color: var(--cream); }
.card-category-badge--bundled { background: rgba(169, 39, 61, 0.9); color: var(--cream); }
.card-category-badge--soon {
  position: static;
  display: inline-block;
  background: rgba(20, 36, 32, 0.1);
  color: var(--ink);
  backdrop-filter: none;
  margin-bottom: 0.7rem;
}

.door-card-row { max-width: 760px; margin-left: auto; margin-right: auto; }

.post-card-tagline {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.75rem;
  z-index: 2;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.post-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.post-card-tag {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price-badge {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-badge--free { background: rgba(76, 122, 136, 0.15); color: var(--frost-dark); }
.price-badge--paid { background: rgba(200, 155, 60, 0.18); color: #8a6a24; }

.post-card-btn {
  background: var(--cranberry);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}
.post-card-btn:hover { background: var(--cranberry-dark); color: var(--cream); }

/* =========================================================
   Modal
========================================================= */
#cardModal .modal-dialog { max-width: 440px; }
#cardModal .modal-content {
  border-radius: 14px;
  border: none;
}
#cardModal .modal-header {
  border-bottom: 1px solid rgba(76, 122, 136, 0.15);
}
#cardModal .modal-title {
  font-family: var(--font-display);
  font-weight: 600;
}

.modal-card-preview {
  width: 140px;
  aspect-ratio: 3 / 4;
  margin: 0 auto 1.2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px -12px rgba(20, 36, 32, 0.35);
}
.modal-card-preview svg,
.modal-card-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }

.modal-category-pill {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.modal-category-pill--digital { color: var(--frost-dark); }
.modal-category-pill--bundled { color: var(--cranberry); }

.modal-bundled-note {
  background: var(--cream-2);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.modal-bundled-note svg { width: 18px; height: 18px; flex: none; margin-top: 0.1rem; color: var(--cranberry); }

.modal-field-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.1rem 0 0.6rem;
}
.modal-field-section-label:first-of-type { margin-top: 0; }

.modal-address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.modal-address-row .mb-3:last-child { margin-bottom: 0; }
@media (max-width: 420px) {
  .modal-address-row { grid-template-columns: 1fr; }
}

.modal-step[data-fields="bundled"][hidden],
.modal-step[data-fields="digital"][hidden] { display: none; }

.modal-price-row {
  text-align: center;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.modal-price-row .modal-price-amount {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-left: 0.35rem;
}

.modal-submit-btn {
  background: var(--cranberry);
  color: var(--cream);
  font-weight: 600;
}
.modal-submit-btn:hover { background: var(--cranberry-dark); color: var(--cream); }

.modal-spinner {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--ink-soft);
}
.modal-spinner .spinner-border {
  color: var(--cranberry);
  margin-bottom: 0.75rem;
}

.modal-success-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
#modalSuccessText {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.modal-again-btn {
  background: var(--frost-dark);
  color: var(--cream);
  font-weight: 600;
}
.modal-again-btn:hover { background: var(--frost); color: var(--ink); }

/* =========================================================
   Door 2: Order Physical Christmas Cards
========================================================= */
.physical-order-form {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 2.2rem 2.2rem;
  box-shadow: 0 20px 40px -22px rgba(20, 36, 32, 0.28);
  border: 1px solid rgba(76, 122, 136, 0.14);
}

.physical-collections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.physical-collection-card {
  position: relative;
  display: block;
  border-radius: 12px;
  border: 2px solid rgba(76, 122, 136, 0.2);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.physical-collection-card:hover { transform: translateY(-2px); }
.physical-collection-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.physical-collection-card input:checked ~ .physical-collection-name,
.physical-collection-card:has(input:checked) {
  border-color: var(--cranberry);
}
.physical-collection-card:has(input:checked) .physical-collection-name {
  background: var(--cranberry);
  color: var(--cream);
}
/* Fallback for browsers without :has() support — toggled via JS */
.physical-collection-card.is-selected { border-color: var(--cranberry); }
.physical-collection-card.is-selected .physical-collection-name {
  background: var(--cranberry);
  color: var(--cream);
}
.physical-collection-art { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.physical-collection-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.physical-collection-name {
  display: block;
  text-align: center;
  padding: 0.7rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}
@media (max-width: 480px) {
  .physical-collections { grid-template-columns: 1fr; }
}

.physical-options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
@media (max-width: 480px) {
  .physical-options-row { grid-template-columns: 1fr; }
}

.pill-radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-radio {
  position: relative;
  cursor: pointer;
}
.pill-radio input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pill-radio span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(76, 122, 136, 0.28);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.pill-radio input:checked ~ span {
  background: var(--frost-dark);
  border-color: var(--frost-dark);
  color: var(--cream);
}

.physical-email-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.9rem; }
.physical-email-row .form-label { width: 100%; }
.physical-email-row .form-control { flex: 1 1 200px; }
.physical-submit-btn { flex: none; white-space: nowrap; }

.physical-form-note {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}
.physical-form-note.is-success { color: var(--frost-dark); font-weight: 600; }

/* =========================================================
   Door 3: Letters to Santa
========================================================= */
.santa-letter-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.8rem 2rem;
  box-shadow: 0 20px 40px -22px rgba(20, 36, 32, 0.28);
  border: 1px solid rgba(76, 122, 136, 0.14);
}
.santa-form-note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}
.santa-form-note.is-success { color: var(--cranberry); font-weight: 600; }

.santa-keepsake-card {
  background: var(--cream-2);
  border: 1.5px dashed rgba(20, 36, 32, 0.2);
  border-radius: 16px;
  padding: 1.8rem 1.8rem 2rem;
  height: 100%;
}
.santa-keepsake-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.santa-keepsake-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 0;
}
/* =========================================================
   The Post Office — exterior/interior hotspot experience
   The two supplied photos ARE the UI. We only lay clickable
   regions on top of them (percentage-positioned so they scale
   with the frame) and crossfade between the two images.
========================================================= */

.venue-frame {
  position: relative;
  width: 100%;
  margin: 2.2rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #0e1c17;
  box-shadow: 0 30px 60px -24px rgba(20, 36, 32, 0.5);
}

.venue-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.venue-view.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

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

/* Invisible by default. On desktop, hover gives a subtle gold glow
   plus a gentle enlargement; on touch devices there's no hover, so
   the (generously sized) box itself is the affordance. */
.venue-hotspot {
  position: absolute;
  display: block;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease;
}
.venue-hotspot:hover,
.venue-hotspot:focus-visible {
  transform: scale(1.015);
}
.venue-hotspot:focus-visible { outline: none; }

.venue-hotspot-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(228, 199, 122, 0);
  box-shadow: 0 0 0 0 rgba(228, 199, 122, 0);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.venue-hotspot:hover .venue-hotspot-glow,
.venue-hotspot:focus-visible .venue-hotspot-glow {
  background: rgba(228, 199, 122, 0.16);
  box-shadow: 0 0 0 2px rgba(228, 199, 122, 0.55), 0 0 22px 4px rgba(228, 199, 122, 0.35);
}

/* Spotlight hotspots (the entrance outside, and the three
   areas inside). Nothing shows on load. On hover/focus the rest
   of the photo dims, the area glows gold, and a "Click Here to…"
   label appears in its centre.
   .venue-frame has overflow:hidden, so the dimming shadow stays
   inside the photo. */
.venue-hotspot--spotlight {
  box-shadow: 0 0 0 200vmax rgba(10, 20, 17, 0);
  transition: box-shadow 0.3s ease;
}
.venue-hotspot--spotlight:hover,
.venue-hotspot--spotlight:focus-visible {
  z-index: 2;
  transform: none;
  box-shadow: 0 0 0 200vmax rgba(10, 20, 17, 0.5);
}
.venue-hotspot--spotlight:hover .venue-hotspot-glow,
.venue-hotspot--spotlight:focus-visible .venue-hotspot-glow {
  background: rgba(228, 199, 122, 0.08);
  box-shadow:
    inset 0 0 0 3px rgba(228, 199, 122, 0.85),
    inset 0 0 40px 6px rgba(255, 236, 180, 0.3),
    0 0 34px 8px rgba(228, 199, 122, 0.5);
}

.venue-hotspot-label {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: max-content;
  max-width: 92%;
  pointer-events: none;
  background: var(--spruce);
  color: var(--cream);
  border: 2px solid var(--gold-light);
  border-radius: 999px;
  padding: 0.5em 1.2em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.78rem, 1.4vw, 1.15rem);
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.venue-hotspot--spotlight:hover .venue-hotspot-label,
.venue-hotspot--spotlight:focus-visible .venue-hotspot-label {
  opacity: 1;
  transform: none;
}

.venue-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(20, 36, 32, 0.72);
  color: var(--cream);
  border: 1px solid rgba(228, 199, 122, 0.35);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transition: background-color 0.2s ease;
}
.venue-back svg { width: 15px; height: 15px; }
.venue-back:hover { background: rgba(20, 36, 32, 0.92); }
.venue-back:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* "Tap to hear Joe" — only shown if the browser blocks the
   audio's autoplay attempt when the interior view opens. */
.venue-audio-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(169, 39, 61, 0.85);
  color: var(--cream);
  border: 1px solid rgba(246, 239, 227, 0.4);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(3px);
}
.venue-audio-hint svg { width: 15px; height: 15px; }
/* Stays visible inside the Post Office, even if post-office.js
   tries to hide it after a click */
.venue-audio-hint.d-none { display: inline-flex !important; }
.venue-audio-hint:hover { background: rgba(169, 39, 61, 1); }
.venue-audio-hint:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Gentle "Joe knows where he's standing" pulse on the Santa Mail
   hotspot — fires once, a few seconds into his welcome audio. */
.venue-hotspot-glow.is-illuminated {
  animation: santa-glow-pulse 1.8s ease-out;
}
@keyframes santa-glow-pulse {
  0%   { background: rgba(228, 199, 122, 0); box-shadow: 0 0 0 0 rgba(228, 199, 122, 0); }
  30%  { background: rgba(228, 199, 122, 0.22); box-shadow: 0 0 0 3px rgba(228, 199, 122, 0.6), 0 0 34px 10px rgba(228, 199, 122, 0.4); }
  100% { background: rgba(228, 199, 122, 0); box-shadow: 0 0 0 0 rgba(228, 199, 122, 0); }
}

.venue-tagline {
  margin: 1.3rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--frost-dark);
}

.venue-note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
}
.venue-note code {
  background: rgba(76, 122, 136, 0.12);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .venue-frame { border-radius: 12px; }
  /* Keep tap targets comfortable even where the source art is small */
  .venue-hotspot { min-width: 40px; min-height: 40px; }
}
/* =========================================================
   Postman Joe avatar in the page hero — square and larger
   (overrides the round 220px avatar from style.css)
========================================================= */
.post-hero .avatar-card--post { max-width: 340px; }

.post-hero .avatar-card--post .avatar-gif {
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 25%;
}

@media (max-width: 767.98px) {
  .post-hero .avatar-card--post .avatar-gif { max-width: 260px; }
}
/* =========================================================
   Joe's welcome modal
========================================================= */
#joeModal .modal-dialog { max-width: 400px; }
#joeModal .modal-content { border-radius: 14px; border: none; }
#joeModal .modal-header { border-bottom: 1px solid rgba(76, 122, 136, 0.15); }
#joeModal .modal-title { font-family: var(--font-display); font-weight: 600; }

.joe-modal-body { text-align: center; padding: 1.5rem; }
.joe-modal-avatar {
  width: 130px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 14px;
  border: 4px solid var(--cream);
  box-shadow: 0 14px 28px -12px rgba(20, 36, 32, 0.45);
  margin-bottom: 1.2rem;
}

.joe-player {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--cream);
  border: 1px solid rgba(169, 39, 61, 0.2);
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
}
.joe-player-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--cranberry);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.joe-player-btn:hover { background: var(--cranberry-dark); }
.joe-player-btn svg { width: 18px; height: 18px; fill: currentColor; }
.joe-player-btn svg[hidden] { display: none; }

.joe-player-body { flex: 1; display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.joe-player-progress {
  flex: 1;
  height: 6px;
  background: rgba(169, 39, 61, 0.15);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}
.joe-player-progress-bar { height: 100%; width: 0%; background: var(--cranberry); transition: width 0.15s linear; }
.joe-player-time {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.joe-player-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--cranberry-dark);
}

/* =========================================================
   Stop the page from jumping when a modal opens
   Bootstrap hides the scrollbar and adds padding-right to <body>
   to make up for it, but the sticky header doesn't get that
   padding, so the page shifts sideways. Reserving the scrollbar's
   space up front means nothing has to move at all.
========================================================= */
html { scrollbar-gutter: stable; }
body.modal-open {
  padding-right: 0 !important;
  overflow: hidden;
}