/* ==========================================================================
   AUTHENTIC PINTEREST BOARD — CUSTOM MENSIVE EDITION
   Clean, authentic Pinterest desktop aesthetic with zero emojis.
   ========================================================================== */

:root {
  /* Authentic Pinterest Color Palette */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-muted: #f7f7f7;
  --color-text-main: #111111;
  --color-text-sub: #5f5f5f;
  --color-text-muted: #767676;
  --color-border-subtle: #e2e2e2;
  --color-border-active: #c2c2c2;
  --color-search-bg: #f0f0f0;
  --color-hover-gray: #e9e9e9;
  --color-active-gray: #dedede;

  /* Pinterest Red Signature Accent */
  --color-pin-red: #e60023;
  --color-pin-red-hover: #ad081b;
  --color-pin-red-active: #7a0010;
  --color-pin-saved: #111111;
  --color-accent-rose: #e03e5e;

  /* Geometry & Layout */
  --radius-card: 16px;
  --radius-pill: 9999px;
  --radius-modal: 32px;
  --feed-gap: 16px;

  /* Typographic Hierarchy */
  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-cursive: "Caveat", cursive, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--color-text-main);
  outline-offset: 2px;
}

/* ==========================================================================
   1. AUTHENTIC PINTEREST TOP NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 20px;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pinterest-logo-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-pin-red);
  background: transparent;
  transition: background-color 150ms ease;
}

.pinterest-logo-btn:hover {
  background-color: var(--color-hover-gray);
}

.home-nav-pill {
  background-color: var(--color-text-main);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: opacity 150ms ease;
  cursor: pointer;
}

.home-nav-pill:hover {
  opacity: 0.9;
}

/* Center Search Bar */
.header-center {
  flex: 1;
}

.pinterest-search-box {
  display: flex;
  align-items: center;
  background-color: var(--color-search-bg);
  border-radius: var(--radius-pill);
  height: 48px;
  padding: 0 16px;
  gap: 12px;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.pinterest-search-box:hover {
  background-color: var(--color-hover-gray);
}

.pinterest-search-box:focus-within {
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 132, 255, 0.2), 0 0 0 1px #0084ff;
}

.search-glyph {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.pinterest-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--color-text-main);
  outline: none;
  font-weight: 500;
}

.pinterest-search-input::placeholder {
  color: var(--color-text-muted);
  font-weight: 400;
}

.search-clear-btn {
  background: #c2c2c2;
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 150ms ease;
}

.search-clear-btn:hover {
  background: #767676;
}

/* Right Controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-utility-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease, color 150ms ease;
}

.header-utility-btn:hover {
  background-color: var(--color-hover-gray);
  color: var(--color-text-main);
}

.header-utility-btn.muted {
  color: #c4c4c4;
}

.sparkle-header-btn {
  color: var(--color-pin-red);
}

.header-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.header-avatar-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

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

/* ==========================================================================
   2. AUTHENTIC PINTEREST BOARD PROFILE HEADER
   ========================================================================== */

.pinterest-board-profile {
  max-width: 860px;
  margin: 36px auto 32px;
  padding: 0 20px;
  text-align: center;
}

.board-profile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.board-avatar-wrapper {
  margin-bottom: 4px;
}

.board-avatar-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid #ffffff;
  background: #f0f0f0;
}

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

.board-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.board-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-sub);
  flex-wrap: wrap;
}

.board-curator strong {
  color: var(--color-text-main);
  font-weight: 600;
}

.meta-dot {
  color: var(--color-border-active);
}

.board-bio-text {
  font-size: 15px;
  color: var(--color-text-main);
  line-height: 1.5;
  max-width: 620px;
  margin: 2px 0 6px;
}

.board-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pinterest-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  transition: all 150ms ease;
  cursor: pointer;
}

.pinterest-btn-primary {
  background: var(--color-text-main);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 220ms ease;
}

.pinterest-btn-primary:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.pinterest-btn-primary:active {
  transform: scale(0.96);
}

/* Active / Playing State for Hero Music Button */
#hero-play-music-btn.is-playing {
  background: var(--color-pin-red);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(230, 0, 35, 0.45);
  animation: musicPulse 2.4s infinite ease-in-out;
}

#hero-play-music-btn.is-playing:hover {
  background: #ad081b;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(230, 0, 35, 0.6);
}

@keyframes musicPulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(230, 0, 35, 0.4);
  }
  50% {
    box-shadow: 0 6px 24px rgba(230, 0, 35, 0.65), 0 0 0 4px rgba(230, 0, 35, 0.16);
  }
}

.music-btn-icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

/* Equalizer Soundwave Animation */
.hero-music-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 14px;
}

.hero-music-equalizer span {
  width: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  animation: soundBars 0.8s ease-in-out infinite alternate;
}

.hero-music-equalizer span:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.hero-music-equalizer span:nth-child(2) { height: 100%; animation-delay: 0.35s; }
.hero-music-equalizer span:nth-child(3) { height: 40%; animation-delay: 0.55s; }
.hero-music-equalizer span:nth-child(4) { height: 80%; animation-delay: 0.2s; }

@keyframes soundBars {
  0% { height: 20%; }
  50% { height: 100%; }
  100% { height: 35%; }
}

.pinterest-btn-secondary {
  background: var(--color-search-bg);
  color: var(--color-text-main);
}

.pinterest-btn-secondary:hover {
  background: var(--color-hover-gray);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pinterest-btn-secondary:active {
  transform: scale(0.96);
}

.pinterest-btn-icon {
  background: var(--color-search-bg);
  color: var(--color-pin-red);
  padding: 12px 14px;
}

.pinterest-btn-icon:hover {
  background: #ffe3e8;
  color: #e03e5e;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 14px rgba(224, 62, 94, 0.25);
}

.pinterest-btn-icon:active {
  transform: scale(0.92);
}

/* ==========================================================================
   3. PINTEREST MASONRY FEED & PIN CARDS
   ========================================================================== */

.feed-main {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

.pinterest-masonry-grid {
  display: flex;
  gap: var(--feed-gap);
  align-items: flex-start;
  width: 100%;
}

.masonry-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--feed-gap);
  min-width: 0;
}

.pin-card {
  position: relative;
  background: transparent;
  border-radius: var(--radius-card);
  overflow: visible;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
  outline: none;
}

.pin-card:hover {
  transform: translateY(-4px);
}

.pin-card:active {
  transform: scale(0.985);
}

.pin-media-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: #ededed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.pin-card:hover .pin-media-container {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}

.pin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 380ms cubic-bezier(0.2, 0, 0, 1), filter 380ms ease;
}

.pin-card:hover .pin-img {
  transform: scale(1.05);
  filter: brightness(0.96);
}

/* Pin Hover Scrim Overlay */
.pin-hover-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  z-index: 5;
}

.pin-card:hover .pin-hover-scrim,
.pin-card:focus-visible .pin-hover-scrim {
  opacity: 1;
  pointer-events: auto;
}

.pin-hover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.pin-custom-tag {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, background-color 180ms ease;
}

.pin-card:hover .pin-custom-tag {
  transform: translateY(1px);
}

.card-btn-save {
  background-color: var(--color-pin-red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(230, 0, 35, 0.35);
  transition: all 180ms ease;
  cursor: pointer;
}

.card-btn-save:hover {
  background-color: #ad081b;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(230, 0, 35, 0.5);
}

.card-btn-save:active {
  transform: scale(0.95);
}

.card-btn-save.is-saved {
  background-color: var(--color-pin-saved);
}

.pin-hover-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.pin-hover-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pin-action-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 150ms ease, transform 150ms ease, color 150ms ease;
}

.pin-action-circle:hover {
  background: #ffffff;
  transform: scale(1.12);
  color: var(--color-pin-red);
}

.pin-action-circle:active {
  transform: scale(0.94);
}

/* Pin Metadata Under Card */
.pin-meta-area {
  padding: 8px 4px 4px;
}

.pin-caption-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Song Pin Specific Styling */
.song-pin-media {
  background: #181818;
}

.pin-audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.song-vinyl-edge {
  position: absolute;
  top: 10%;
  right: -8%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, #222 0%, #111 60%, #050505 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1;
  opacity: 0;
  transform: translateX(-15px) rotate(0deg);
  transition: opacity 250ms ease, transform 300ms ease;
  pointer-events: none;
}

.pin-card:hover .song-vinyl-edge {
  opacity: 0.95;
  transform: translateX(0) rotate(20deg);
}

.song-vinyl-edge.spinning {
  opacity: 0.95;
  transform: translateX(0);
  animation: vinylSpin 4s linear infinite;
}

@keyframes vinylSpin {
  from { transform: translateX(0) rotate(0deg); }
  to { transform: translateX(0) rotate(360deg); }
}

.vinyl-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: var(--color-pin-red);
  border: 3px solid #ffffff;
}

.song-pin-play-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
}

.card-play-trigger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-pin-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 150ms ease, background-color 150ms ease;
}

.card-play-trigger:hover {
  transform: scale(1.08);
  background-color: var(--color-pin-red-hover);
}

.song-time-chip {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.song-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.song-title-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-text-main);
}

.song-artist-name {
  font-size: 12.5px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.song-quote {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--color-text-sub);
  font-style: italic;
}

/* Letter Pin Specific Styling */
.pin-letter-badge {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.letter-hover-btn {
  background: #ffffff;
  color: var(--color-text-main);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   4. AUTHENTIC 2-COLUMN PINTEREST DETAIL MODAL
   ========================================================================== */

.pin-modal-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
  overflow-y: auto;
}

.pin-modal-layer.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-scrim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1001;
}

.modal-floating-nav {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1010;
}

.floating-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--color-text-main);
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: background-color 150ms ease, transform 150ms ease;
  cursor: pointer;
}

.floating-back-pill:hover {
  background-color: var(--color-hover-gray);
  transform: scale(1.03);
}

.modal-card-wrapper {
  position: relative;
  z-index: 1005;
  width: 100%;
  max-width: 920px;
  margin: auto;
}

.pinterest-detail-card {
  background: #ffffff;
  border-radius: var(--radius-modal);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  width: 100%;
}

.detail-columns-wrapper {
  display: flex;
  min-height: 520px;
  width: 100%;
}

/* Left Column: Media */
.modal-media-wrap {
  flex: 1.1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.modal-main-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

/* Right Column: Info */
.modal-info-side {
  flex: 1;
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  gap: 20px;
  overflow-y: auto;
  max-height: 85vh;
}

.modal-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.modal-left-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-search-bg);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease;
}

.modal-icon-btn:hover {
  background-color: var(--color-hover-gray);
}

.modal-type-pill {
  background: var(--color-search-bg);
  color: var(--color-text-main);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  text-transform: lowercase;
}

.modal-save-btn {
  background-color: var(--color-pin-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 150ms ease;
}

.modal-save-btn:hover {
  background-color: var(--color-pin-red-hover);
}

.modal-save-btn.is-saved {
  background-color: var(--color-pin-saved);
}

/* Modal Curator Breadcrumb */
.modal-curator-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.modal-curator-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.modal-curator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-curator-text {
  font-size: 13px;
  color: var(--color-text-sub);
}

.modal-curator-text strong {
  color: var(--color-text-main);
}

.modal-text-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-caption-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.3;
}

.modal-song-sub {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.modal-full-story {
  font-size: 15px;
  color: var(--color-text-main);
  line-height: 1.6;
  white-space: pre-line;
}

.modal-location-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  font-weight: 500;
  padding-top: 6px;
}

/* Song Modal Player Styling */
.song-modal-media {
  flex-direction: column;
  padding: 30px 20px;
  gap: 24px;
  background: radial-gradient(circle at center, #262626 0%, #111111 100%);
}

.modal-song-cover-box {
  position: relative;
  width: 240px;
  height: 240px;
}

.modal-album-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

.modal-vinyl-disc {
  position: absolute;
  top: 5%;
  right: -25%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2a 0%, #141414 70%, #000 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  z-index: 1;
  transition: transform 300ms ease;
}

.modal-vinyl-disc.spinning {
  animation: vinylSpin 3.5s linear infinite;
}

.modal-audio-player-box {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.player-scrub-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.player-scrub-fill {
  height: 100%;
  background: var(--color-pin-red);
  border-radius: 999px;
  transition: width 100ms linear;
}

.player-time-display {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.player-btns-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.modal-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-pin-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(230, 0, 35, 0.4);
  transition: transform 150ms ease, background-color 150ms ease;
}

.modal-play-btn:hover {
  transform: scale(1.06);
  background-color: var(--color-pin-red-hover);
}

.modal-dedication-card {
  background: var(--color-surface-muted);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dedication-lead {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-pin-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dedication-quote {
  font-size: 14.5px;
  color: var(--color-text-main);
  line-height: 1.5;
  font-style: italic;
}

/* Full Letter Sheet Styling */
.letter-modal-side {
  background: #ffffff;
}

.full-letter-sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0;
}

.letter-salute {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
}

.letter-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.letter-p {
  font-size: 14.5px;
  color: var(--color-text-main);
  line-height: 1.65;
}

.letter-close {
  font-size: 14.5px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.letter-sig {
  font-family: var(--font-cursive);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-pin-red);
}

/* ==========================================================================
   5. COMMENTS SECTION INSIDE MODAL
   ========================================================================== */

.modal-comments-section {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-main);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-bubble {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.comment-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-content {
  background: var(--color-surface-muted);
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
}

.comment-user-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.curator-badge {
  background: var(--color-pin-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.comment-bubble.is-curator-reply .comment-content {
  background: #fff5f7;
  border: 1px solid #ffe3e8;
}

.comment-user {
  font-weight: 700;
  color: var(--color-text-main);
}

.comment-text {
  color: var(--color-text-main);
  word-break: break-word;
}

.comment-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.comment-input-box {
  flex: 1;
  background: var(--color-search-bg);
  border: none;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  outline: none;
}

.comment-input-box:focus {
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--color-text-main);
}

.comment-send-btn {
  background: var(--color-pin-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: opacity 150ms ease;
}

.comment-send-btn:hover {
  opacity: 0.9;
}

/* ==========================================================================
   6. INTERACTIVE PARTICLES & DOUBLE TAP BURST
   ========================================================================== */

.heart-burst-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100;
  animation: heartPop 650ms cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.heart-burst-icon {
  width: 84px;
  height: 84px;
  color: #ff2b54;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
}

@keyframes heartPop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-15deg); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.25) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.1) rotate(5deg); opacity: 0; }
}

.love-particles-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.floating-love-particle {
  position: absolute;
  pointer-events: none;
  animation: floatLove 1.8s ease-out forwards;
}

@keyframes floatLove {
  0% {
    opacity: 0.9;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-50px) scale(1.1) rotate(-12deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(0.9) rotate(15deg);
  }
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATION
   ========================================================================== */

/* Universal touch & mobile polish */
button, a, .pin-card, .floating-back-pill, .pinterest-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 900px) {
  .detail-columns-wrapper {
    flex-direction: column;
    min-height: auto;
  }
  .modal-media-wrap {
    min-height: auto;
    width: 100%;
    background: #ffffff;
    padding: 12px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-main-img {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    display: block;
    border-radius: 12px;
  }
  .modal-info-side {
    max-height: none;
    padding: 20px 18px 24px;
    gap: 16px;
  }
  .board-title {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  :root {
    --feed-gap: 8px;
    --radius-card: 16px;
    --radius-modal: 20px;
  }
  
  .pin-modal-layer {
    padding: 10px 6px;
    align-items: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  
  .modal-card-wrapper {
    margin: 44px auto 20px;
    max-width: 100%;
  }

  .modal-floating-nav {
    top: 10px;
    left: 10px;
  }

  .floating-back-pill {
    padding: 8px 14px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .feed-main {
    padding: 0 8px 60px;
  }

  .pin-meta-area {
    padding: 6px 2px 2px;
  }

  .pin-caption-text {
    font-size: 12px;
    line-height: 1.35;
  }

  .site-header {
    padding: 0 10px;
    height: 58px;
    gap: 8px;
  }

  .pinterest-search-box {
    height: 40px;
    padding: 0 12px;
    gap: 8px;
  }

  .pinterest-search-input {
    font-size: 13.5px;
  }

  .home-nav-pill {
    display: none;
  }

  .board-title {
    font-size: 22px;
  }

  .board-bio-text {
    font-size: 13.5px;
    padding: 0 6px;
  }

  .pinterest-board-profile {
    margin: 18px auto 16px;
    padding: 0 12px;
  }

  .board-avatar-circle {
    width: 80px;
    height: 80px;
  }

  .board-actions-row {
    gap: 8px;
  }

  .pinterest-btn {
    padding: 10px 18px;
    font-size: 13.5px;
  }

  .modal-caption-title {
    font-size: 19px;
  }

  .modal-full-story {
    font-size: 14px;
  }

  .letter-salute, .letter-p, .letter-close {
    font-size: 14px;
  }

  .comment-input-box {
    font-size: 12.5px;
    padding: 8px 12px;
  }
}

@media (max-width: 380px) {
  .board-title {
    font-size: 20px;
  }
  
  .pinterest-btn {
    padding: 9px 14px;
    font-size: 12.5px;
  }
}
