:root {
  --bg: #0b0b0b;
  --surface: #101010;
  --surface-elevated: #141414;
  --text: #ede6d8;
  --muted: #b3ab9c;
  --line: rgba(201, 182, 138, 0.16);
  --line-strong: rgba(201, 182, 138, 0.34);
  --accent: #c9b68a;
  --shadow-soft: 0 22px 50px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter Tight", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(201, 182, 138, 0.08), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(201, 182, 138, 0.04), transparent 24%),
    var(--bg);
  letter-spacing: -0.01em;
}

.site-nav {
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.44) !important;
}

.site-nav a {
  text-decoration: none;
}

.hero-title {
  font-size: clamp(4.6rem, 13vw, 11.6rem);
}

.hero-scroll-link {
  position: relative;
  text-decoration: none;
}

.hero-scroll-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left center;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.hero-scroll-link:hover::after {
  transform: scaleX(1.12);
  opacity: 1;
}

.hero-portrait::before {
  display: none !important;
}

.hero-visual-frame {
  width: min(100%, 520px);
  box-shadow: var(--shadow-soft);
}

.works-filter-line {
  user-select: none;
}

.filter-btn {
  border: 0 !important;
  border-radius: 0 !important;
  padding-inline: 0 !important;
  background: transparent !important;
  position: relative;
}

.filter-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18rem;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.filter-btn.active {
  color: var(--text) !important;
}

.filter-btn.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.archive-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 1.9vw, 1.6rem);
}

#archive-grid .archive-card {
  grid-column: span 3;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  text-decoration: none;
  opacity: 1;
}

#archive-grid .archive-card.bento-col-7 {
  grid-column: span 3;
}

#archive-grid .archive-card.bento-col-6 {
  grid-column: span 3;
}

#archive-grid .archive-card.bento-col-5 {
  grid-column: span 3;
}

#archive-grid .archive-card.bento-col-4 {
  grid-column: span 3;
}

#archive-grid .archive-card.bento-col-3 {
  grid-column: span 3;
}

.archive-card__media {
  position: relative;
  overflow: hidden;
  background: #171717;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
  transition: filter 0.32s ease, transform 0.32s ease;
}

.archive-card__media.ratio-cinema {
  aspect-ratio: 2 / 3;
}

.archive-card__media.ratio-poster {
  aspect-ratio: 2 / 3;
}

.archive-card__media.ratio-screen {
  aspect-ratio: 2 / 3;
}

.archive-card__media.ratio-square {
  aspect-ratio: 2 / 3;
}

.archive-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease, filter 0.42s ease;
}

.archive-card:hover .archive-card__image {
  filter: saturate(0.78);
  transform: scale(1.01);
}

.archive-card__caption {
  position: relative;
  margin-top: 0.72rem;
  min-height: 2.45rem;
}

.archive-card__title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 1.95vw, 2.1rem);
  line-height: 1.02;
  font-weight: 420;
  color: var(--text);
  letter-spacing: -0.025em;
  transition: color 0.22s ease;
}

#archive-grid .archive-card[data-project-id="the-feeling"] .archive-card__title {
  font-size: clamp(1.08rem, 1.55vw, 1.6rem);
  line-height: 1.03;
  letter-spacing: -0.018em;
}

#archive-grid .archive-card[data-project-id="the-feeling"] .archive-card__image {
  object-position: 50% 10%;
  transform: scale(1.16);
}

#archive-grid .archive-card[data-project-id="the-feeling"]:hover .archive-card__image {
  transform: scale(1.18);
}

.archive-card__meta {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.archive-card__caption::after {
  content: "";
  display: block;
  margin-top: 0.42rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.26s ease;
}

.archive-card:hover .archive-card__title {
  color: var(--accent);
  font-style: italic;
}

.archive-card:hover .archive-card__caption::after {
  width: 100%;
}

.archive-card__cursor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: 1px solid rgba(237, 230, 216, 0.45);
  color: rgba(237, 230, 216, 0.95);
  font-family: "Inter Tight", sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
  background: rgba(11, 11, 11, 0.35);
  pointer-events: none;
}

.archive-card:hover .archive-card__cursor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#archive-grid:not([data-filter-mode="all"]) .archive-card__caption {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#archive-grid:not([data-filter-mode="all"]) .archive-card:hover .archive-card__caption {
  opacity: 1;
  transform: translateY(0);
}

#archive-grid .archive-card.is-reveal-pending {
  opacity: 0;
  transform: translateY(8px);
}

#archive-grid .archive-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.36s ease, transform 0.36s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.archive-modal {
  border: 0 !important;
  box-shadow: none !important;
  background: #0f0f0f !important;
  overflow-x: hidden !important;
}

@media (max-width: 1023px) {
  .archive-modal [data-modal-layout-grid] > div {
    min-width: 0;
    max-width: 100%;
  }
  .modal-project-title {
    font-size: clamp(1.3rem, 5.5vw, 2rem) !important;
    word-break: break-word;
  }
}

.modal-project-title {
  font-size: clamp(1.75rem, 3.05vw, 3rem) !important;
  font-style: italic;
  line-height: 1.02 !important;
  letter-spacing: -0.022em;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
}

.modal-stage {
  background: #0c0c0c !important;
}

.modal-stage img {
  width: 100%;
  height: clamp(300px, 56vh, 690px) !important;
  object-fit: contain !important;
  background: #090909 !important;
}

.modal-stage__video-frame {
  background: #090909 !important;
}

.modal-stage__video-frame video {
  object-fit: contain !important;
  max-height: min(62vh, 760px) !important;
}

.archive-modal.modal-poster-mode [data-modal-layout-grid] {
  grid-template-columns: minmax(300px, 0.74fr) minmax(460px, 1.26fr) !important;
}

@media (max-width: 1023px) {
  .archive-modal [data-modal-layout-grid],
  .archive-modal.modal-poster-mode [data-modal-layout-grid] {
    grid-template-columns: 1fr !important;
  }
  .archive-modal.modal-poster-mode .modal-stage img {
    height: auto !important;
    max-height: min(58vh, 520px) !important;
  }
}

.archive-modal.modal-poster-mode .modal-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: transparent !important;
}

.archive-modal.modal-poster-mode .modal-stage img {
  width: auto !important;
  max-width: 100% !important;
  height: min(74vh, 860px) !important;
  margin: 0 auto;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.modal-thumb-strip .media-thumb {
  width: 8.8rem !important;
  border-radius: 0 !important;
}

.modal-player-toggle {
  background: rgba(201, 182, 138, 0.14) !important;
  border-color: rgba(201, 182, 138, 0.4) !important;
  color: var(--text) !important;
}

.modal-player-toggle.is-playing {
  background: rgba(201, 182, 138, 0.34) !important;
  color: #0b0b0b !important;
}

.modal-track-row {
  border-bottom-color: rgba(201, 182, 138, 0.16) !important;
  padding: 0.74rem 0.25rem !important;
}

.modal-track-row.is-active {
  border-left: 2px solid var(--accent);
  padding-left: 0.58rem !important;
  color: var(--text) !important;
  background: linear-gradient(90deg, rgba(201, 182, 138, 0.14), transparent 70%) !important;
}

.modal-meta-block + .modal-meta-block {
  border-top-color: rgba(201, 182, 138, 0.18) !important;
  margin-top: 1.35rem !important;
  padding-top: 1.35rem !important;
}

#modalCredits {
  white-space: pre-line;
}

.modal-waveform {
  height: 68px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  touch-action: none;
}

.modal-waveform__canvas {
  height: 68px !important;
}

.progress-range {
  height: 2px !important;
  background: rgba(237, 230, 216, 0.28) !important;
}

.progress-range::-webkit-slider-thumb {
  width: 11px !important;
  height: 11px !important;
  background: var(--accent) !important;
}

.progress-range::-moz-range-thumb {
  width: 11px !important;
  height: 11px !important;
  background: var(--accent) !important;
}

#playerProgressWrap {
  display: none !important;
}

#playerCurrentTime {
  margin-right: auto;
}

.sticky-mini-player {
  position: fixed;
  left: 1rem;
  /* Reserve room on the right for the "Ma sélection" floating panel
     (position:fixed; right:20px; width ~195px). */
  right: calc(1rem + 215px);
  bottom: 1rem;
  z-index: 980;
  display: grid;
  grid-template-columns: minmax(170px, 320px) auto auto minmax(220px, 1fr) auto auto;
  grid-template-areas: "meta toggle star waveform time open";
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(201, 182, 138, 0.34);
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.sticky-mini-player__meta {
  grid-area: meta;
  min-width: 0;
}

.sticky-mini-player__title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  line-height: 1.06;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-mini-player__project {
  margin: 0.2rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-mini-player__toggle {
  grid-area: toggle;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 182, 138, 0.44);
  background: rgba(201, 182, 138, 0.18);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sticky-mini-player__star {
  grid-area: star;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 182, 138, 0.28);
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.sticky-mini-player__star:hover {
  color: var(--accent);
  border-color: rgba(201, 182, 138, 0.6);
}

.sticky-mini-player__star.is-starred {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201, 182, 138, 0.14);
}

.sticky-mini-player__star .material-symbols-outlined {
  font-size: 1.25rem;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.sticky-mini-player__star.is-starred .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.sticky-mini-player__star:active {
  transform: scale(0.94);
}

.sticky-mini-player__waveform {
  grid-area: waveform;
  width: 100%;
  height: 36px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  touch-action: none;
}

.sticky-mini-player__waveform-canvas {
  width: 100%;
  height: 36px;
  display: block;
}

.sticky-mini-player__progress-wrap {
  display: none;
}

.sticky-mini-player__progress {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: rgba(237, 230, 216, 0.32);
  cursor: pointer;
}

.sticky-mini-player__progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
  border: 0;
}

.sticky-mini-player__progress::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
  border: 0;
}

.sticky-mini-player__time {
  grid-area: time;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sticky-mini-player__open {
  grid-area: open;
  border: 1px solid rgba(201, 182, 138, 0.38);
  background: transparent;
  color: var(--text);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 0.65rem;
}

.sticky-mini-player__open:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.overflow-hidden .sticky-mini-player {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .archive-bento-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #archive-grid .archive-card,
  #archive-grid .archive-card.bento-col-3,
  #archive-grid .archive-card.bento-col-4 {
    grid-column: span 3;
  }

  #archive-grid .archive-card.bento-col-5,
  #archive-grid .archive-card.bento-col-6,
  #archive-grid .archive-card.bento-col-7 {
    grid-column: span 3;
  }

  .sticky-mini-player {
    /* Shortlist FAB collapses to icon+count at this breakpoint (see below) */
    right: calc(1rem + 90px);
    grid-template-columns: minmax(160px, 1fr) auto auto;
    grid-template-areas:
      "meta star toggle"
      "waveform waveform waveform"
      "time open open";
    row-gap: 0.55rem;
  }

  .shortlist-panel__fab-label {
    display: none;
  }

  .sticky-mini-player__meta {
    grid-area: meta;
  }

  .sticky-mini-player__toggle {
    grid-area: toggle;
    justify-self: end;
  }

  .sticky-mini-player__time {
    grid-area: time;
  }

  .sticky-mini-player__open {
    grid-area: open;
    justify-self: end;
  }
}

@media (max-width: 767px) {
  .hero-grid-editorial {
    align-items: start;
  }

  .hero-title {
    font-size: clamp(2.6rem, 14vw, 6.6rem);
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none;
  }

  .archive-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  #archive-grid .archive-card,
  #archive-grid .archive-card.bento-col-3,
  #archive-grid .archive-card.bento-col-4,
  #archive-grid .archive-card.bento-col-5,
  #archive-grid .archive-card.bento-col-6,
  #archive-grid .archive-card.bento-col-7 {
    grid-column: span 1;
    padding: 0.55rem;
  }

  .archive-card__media.ratio-cinema,
  .archive-card__media.ratio-poster,
  .archive-card__media.ratio-screen,
  .archive-card__media.ratio-square {
    aspect-ratio: 3 / 4;
  }

  .archive-card__title {
    font-size: 0.95rem !important;
    letter-spacing: -0.015em;
    line-height: 1.1;
  }

  .archive-card__caption {
    margin-top: 0.55rem;
    min-height: 1.9rem;
  }

  /* Cards that should span full width on mobile for visual rhythm */
  #archive-grid .archive-card:first-child {
    grid-column: span 2;
  }
  #archive-grid .archive-card:first-child .archive-card__media {
    aspect-ratio: 16 / 10;
  }
  #archive-grid .archive-card:first-child .archive-card__title {
    font-size: 1.35rem !important;
  }

  .archive-card__cursor {
    display: none;
  }

  .sticky-mini-player {
    left: 0.65rem;
    right: calc(0.65rem + 80px);
    bottom: 0.65rem;
  }
}

/* ============================================================
   Playlist section — discover / search split
   ============================================================ */
.playlist-intro {
  max-width: 48rem;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.playlist-intro strong {
  color: var(--text);
  font-weight: 500;
}

.playlist-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 3.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-family: "Inter Tight", sans-serif;
}

.playlist-divider::before,
.playlist-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ============================================================
   Search results — dedicated list below the search bar
   ============================================================ */
.search-results {
  margin-top: 2rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(201, 182, 138, 0.22);
  border-radius: 4px;
  background:
    radial-gradient(ellipse at top left, rgba(201, 182, 138, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(20, 19, 16, 0.85), rgba(11, 11, 11, 0.92));
  animation: searchResultsIn 0.4s ease-out;
}

@keyframes searchResultsIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-results[hidden] {
  display: none;
}

/* Loading card — shown while the LLM reranks */
.search-loading {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 0.5rem 0.25rem 1rem;
}

.search-loading[hidden] {
  display: none;
}

.search-results__content[hidden] {
  display: none;
}

.search-loading__orb {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-loading__orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(201, 182, 138, 0.22), transparent 70%);
  animation: orbPulse 2.4s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.search-loading__orb-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 999px;
  margin: 0 2px;
  animation: orbDot 1.2s ease-in-out infinite;
}

.search-loading__orb-dot:nth-child(2) { animation-delay: 0.15s; }
.search-loading__orb-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes orbDot {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.search-loading__story {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.search-loading__beat {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  animation: beatFadeIn 0.5s ease forwards;
}

@keyframes beatFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Legacy single-message fallback, kept in case anything still references it */
.search-loading__message.is-fading {
  opacity: 0;
}

.search-results__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(201, 182, 138, 0.18);
}

.search-results__heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.search-results__eyebrow {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-results__query {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  display: block;
}

.search-results__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.search-results__count {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.search-results__clear {
  border: 1px solid rgba(201, 182, 138, 0.35);
  background: transparent;
  color: var(--text);
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.search-results__clear:hover {
  background: rgba(201, 182, 138, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.search-results__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.search-result__row,
.feature-track__row,
.modal-track-row__wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-result__row .search-result--play,
.feature-track__row > .feature-track,
.modal-track-row__wrap > .modal-track-row {
  flex: 1 1 auto;
  min-width: 0;
}

.search-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(201, 182, 138, 0.12);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  font-family: inherit;
}

.search-result:hover {
  background: rgba(201, 182, 138, 0.06);
  border-color: rgba(201, 182, 138, 0.3);
}

.search-result.is-active {
  background: rgba(201, 182, 138, 0.1);
  border-color: var(--accent);
}

.search-result__index {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  min-width: 1.8rem;
}

.search-result.is-active .search-result__index {
  color: var(--accent);
}

.search-result__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.search-result__title {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result__project {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result__reason {
  display: block;
  margin-top: 0.3rem;
  font-family: "Fraunces", serif;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.4;
  color: rgba(201, 182, 138, 0.82);
  white-space: normal;
}

.search-result__play {
  color: var(--muted);
  font-size: 22px !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.search-result:hover .search-result__play,
.search-result.is-active .search-result__play {
  color: var(--accent);
  transform: scale(1.1);
}

/* ============================================================
   Playlist search — natural-language input
   ============================================================ */
.playlist-search {
  margin: 0;
}

.playlist-search__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(11, 11, 11, 0.92));
  border-radius: 3px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow:
    inset 0 1px 0 rgba(201, 182, 138, 0.06),
    0 10px 30px rgba(0, 0, 0, 0.35);
}

.playlist-search__label:hover {
  border-color: rgba(201, 182, 138, 0.55);
}

.playlist-search__label:focus-within {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(201, 182, 138, 0.1),
    0 0 0 1px rgba(201, 182, 138, 0.45),
    0 0 36px rgba(201, 182, 138, 0.12),
    0 10px 30px rgba(0, 0, 0, 0.45);
}

.playlist-search__icon {
  color: var(--accent);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Raised specificity + !important because some browsers (and Tailwind's
   preflight on type=search) force a white pill no matter what. The combo
   of selectors below wins against both. */
input.playlist-search__input,
input[type="search"].playlist-search__input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  outline: none !important;
  color: var(--text) !important;
  caret-color: var(--accent);
  font-family: "Fraunces", "Inter Tight", serif !important;
  font-size: 1.15rem !important;
  font-style: italic !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* Safari autofill turns the field yellow/white; the inset shadow trick
   re-paints it with our transparent bg + text color. */
input.playlist-search__input:-webkit-autofill,
input.playlist-search__input:-webkit-autofill:hover,
input.playlist-search__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: var(--accent);
}

.playlist-search__input::placeholder {
  color: var(--muted);
  opacity: 0.85;
  font-style: italic;
}

.playlist-search__input::-webkit-search-cancel-button,
.playlist-search__input::-webkit-search-decoration,
.playlist-search__input::-webkit-search-results-button,
.playlist-search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

.playlist-search__status {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0.9;
}

.playlist-search__clear {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.playlist-search__clear:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.playlist-search__hint {
  margin: 1rem 0 0;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
}

.playlist-search__hint-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
  margin-right: 0.25rem;
}

.playlist-search__example {
  background: rgba(201, 182, 138, 0.08);
  border: 1px solid rgba(201, 182, 138, 0.22);
  padding: 0.4rem 0.8rem;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.playlist-search__example:hover {
  background: rgba(201, 182, 138, 0.18);
  border-color: var(--accent);
  color: var(--accent);
}

.feature-track__score {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 1px 6px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  border-radius: 2px;
}

.feature-track__reason {
  display: block;
  margin-top: 0.35rem;
  font-family: "Fraunces", "Inter Tight", serif;
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.35;
  color: rgba(201, 182, 138, 0.78);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
}

/* ---------- Contact form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 768px) {
  .contact-form {
    padding: 36px;
  }
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .contact-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__label {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.55);
}

.contact-form__label-hint {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 10px;
  margin-left: 6px;
  color: rgba(245, 239, 228, 0.35);
}

.contact-form__input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 12px 14px;
  color: #f5efe4 !important;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  appearance: none;
  color-scheme: dark;
  -webkit-text-fill-color: #f5efe4;
  caret-color: #f5efe4;
}

.contact-form__input::placeholder {
  color: rgba(245, 239, 228, 0.3);
}

.contact-form__input:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-form__input:focus {
  outline: none;
  border-color: rgba(217, 197, 138, 0.65);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(217, 197, 138, 0.12);
}

/* Override browser autofill (Chrome/Safari paints fields white/yellow otherwise,
   which makes our light crème text invisible). The box-shadow trick is the only
   reliable way to force a dark background on autofilled inputs. */
.contact-form__input:-webkit-autofill,
.contact-form__input:-webkit-autofill:hover,
.contact-form__input:-webkit-autofill:focus,
.contact-form__input:-webkit-autofill:active {
  -webkit-text-fill-color: #f5efe4 !important;
  -webkit-box-shadow: 0 0 0 1000px #15140f inset !important;
  box-shadow: 0 0 0 1000px #15140f inset !important;
  caret-color: #f5efe4;
  transition: background-color 9999s ease-in-out 0s;
}

.contact-form__input:autofill {
  background-color: #15140f !important;
  color: #f5efe4 !important;
}

.contact-form__select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(245, 239, 228, 0.5) 50%),
    linear-gradient(135deg, rgba(245, 239, 228, 0.5) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 18px,
    calc(100% - 11px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid rgba(217, 197, 138, 0.5);
  border-radius: 3px;
  background: rgba(217, 197, 138, 0.08);
  color: #f5efe4;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-form__submit:hover {
  background: rgba(217, 197, 138, 0.16);
  border-color: rgba(217, 197, 138, 0.8);
}

.contact-form__submit:active {
  transform: translateY(1px);
}

.contact-form__submit:disabled,
.contact-form__submit.is-loading {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-form__status {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(245, 239, 228, 0.7);
  flex: 1 1 200px;
}

.contact-form__status.is-success {
  color: #9ad3b0;
}

.contact-form__status.is-error {
  color: #e8a7a7;
}

.contact-form__status.is-pending {
  color: rgba(245, 239, 228, 0.5);
}

/* ---------- Shortlist: star button on search results ---------- */
.search-result__star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  background: transparent;
  color: rgba(245, 239, 228, 0.45);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
  flex-shrink: 0;
  align-self: center;
}

.search-result__star:hover {
  color: #d9c58a;
  border-color: rgba(217, 197, 138, 0.5);
  background: rgba(217, 197, 138, 0.08);
}

.search-result__star.is-starred {
  color: #d9c58a;
  border-color: rgba(217, 197, 138, 0.6);
  background: rgba(217, 197, 138, 0.12);
}

.search-result__star.is-starred:hover {
  background: rgba(217, 197, 138, 0.22);
}

.search-result__star .material-symbols-outlined {
  font-size: 20px;
  transition: font-variation-settings 200ms ease;
  font-variation-settings: "FILL" 0;
}

.search-result__star.is-starred .material-symbols-outlined {
  font-variation-settings: "FILL" 1;
}

.search-result__star:active {
  transform: scale(0.92);
}

/* ---------- Shortlist: floating panel ---------- */
.shortlist-panel {
  position: fixed;
  z-index: 1100;
  right: 20px;
  bottom: 20px;
  max-width: calc(100vw - 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.shortlist-panel > * {
  pointer-events: auto;
}

.shortlist-panel__fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(217, 197, 138, 0.55);
  border-radius: 999px;
  background: #15140f;
  color: #f5efe4;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.shortlist-panel__fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  border-color: rgba(217, 197, 138, 0.85);
}

.shortlist-panel__fab-icon {
  font-size: 18px;
  color: #d9c58a;
  font-variation-settings: "FILL" 1;
}

.shortlist-panel__fab-label {
  white-space: nowrap;
}

.shortlist-panel__fab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(217, 197, 138, 0.18);
  color: #d9c58a;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.shortlist-panel__body {
  width: 360px;
  max-width: calc(100vw - 40px);
  max-height: min(72vh, 620px);
  display: none;
  flex-direction: column;
  background: #0f0e0b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  animation: shortlistPopIn 220ms ease;
}

@keyframes shortlistPopIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.shortlist-panel.is-open .shortlist-panel__body {
  display: flex;
}

.shortlist-panel.is-open .shortlist-panel__fab {
  border-color: rgba(217, 197, 138, 0.85);
}

.shortlist-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shortlist-panel__eyebrow {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.45);
  margin: 0 0 4px;
}

.shortlist-panel__heading {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.15;
  color: #f5efe4;
  margin: 0;
}

.shortlist-panel__close {
  background: transparent;
  border: none;
  color: rgba(245, 239, 228, 0.5);
  cursor: pointer;
  padding: 4px;
  transition: color 180ms ease;
}

.shortlist-panel__close:hover {
  color: #f5efe4;
}

.shortlist-panel__name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px 10px;
}

.shortlist-panel__label {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.45);
}

.shortlist-panel__name-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 9px 11px;
  color: #f5efe4 !important;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 180ms ease, background 180ms ease;
  /* Force dark color scheme so native UI (caret, scrollbar, selection) stays dark */
  color-scheme: dark;
  -webkit-text-fill-color: #f5efe4;
  caret-color: #f5efe4;
}

.shortlist-panel__name-input::placeholder {
  color: rgba(245, 239, 228, 0.28);
}

.shortlist-panel__name-input:focus {
  outline: none;
  border-color: rgba(217, 197, 138, 0.55);
  background: rgba(0, 0, 0, 0.55);
}

/* Same autofill override as .contact-form__input: browsers repaint the
   field white/yellow for autofilled values, which renders our cream text
   unreadable. Box-shadow inset is the only reliable way to force a dark
   background on autofilled inputs. */
.shortlist-panel__name-input:-webkit-autofill,
.shortlist-panel__name-input:-webkit-autofill:hover,
.shortlist-panel__name-input:-webkit-autofill:focus,
.shortlist-panel__name-input:-webkit-autofill:active {
  -webkit-text-fill-color: #f5efe4 !important;
  -webkit-box-shadow: 0 0 0 1000px #0f0e0b inset !important;
  box-shadow: 0 0 0 1000px #0f0e0b inset !important;
  caret-color: #f5efe4;
  transition: background-color 9999s ease-in-out 0s;
}

.shortlist-panel__name-input:autofill {
  background-color: #0f0e0b !important;
  color: #f5efe4 !important;
}

.shortlist-panel__list {
  flex: 1 1 auto;
  overflow-y: auto;
  margin: 0;
  padding: 4px 10px 4px;
  list-style: none;
  min-height: 0;
}

.shortlist-panel__empty {
  padding: 8px 20px 16px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(245, 239, 228, 0.5);
}

.shortlist-panel__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 3px;
  transition: background 160ms ease;
}

.shortlist-panel__item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.shortlist-panel__item-body {
  flex: 1 1 auto;
  min-width: 0;
}

.shortlist-panel__item-title {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: #f5efe4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shortlist-panel__item-project {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(245, 239, 228, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.shortlist-panel__item-remove {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: rgba(245, 239, 228, 0.4);
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  transition: color 160ms ease, background 160ms ease;
}

.shortlist-panel__item-remove:hover {
  color: #e8a7a7;
  background: rgba(232, 167, 167, 0.08);
}

.shortlist-panel__actions {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.shortlist-panel__action {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: transparent;
  color: rgba(245, 239, 228, 0.8);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.shortlist-panel__action:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f5efe4;
}

.shortlist-panel__action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.shortlist-panel__action--primary {
  border-color: rgba(217, 197, 138, 0.5);
  background: rgba(217, 197, 138, 0.08);
  color: #f5efe4;
}

.shortlist-panel__action--primary:hover {
  border-color: rgba(217, 197, 138, 0.85);
  background: rgba(217, 197, 138, 0.18);
}

.shortlist-panel__toast {
  margin: 0;
  padding: 0 20px 14px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(245, 239, 228, 0);
  min-height: 20px;
  transition: color 220ms ease;
}

.shortlist-panel__toast.is-visible {
  color: #9ad3b0;
}

.shortlist-panel__toast.is-error {
  color: #e8a7a7;
}

/* Banner shown when the visitor arrives via a shared shortlist URL */
.shortlist-banner {
  margin: 14px 0 0;
  padding: 16px 20px;
  border: 1px solid rgba(217, 197, 138, 0.35);
  border-left: 3px solid #d9c58a;
  border-radius: 3px;
  background: rgba(217, 197, 138, 0.06);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.shortlist-banner__icon {
  color: #d9c58a;
  font-size: 22px;
  font-variation-settings: "FILL" 1;
}

.shortlist-banner__text {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #f5efe4;
}

.shortlist-banner__text strong {
  color: #d9c58a;
  font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* Video-sync preview modal                                            */
/* ------------------------------------------------------------------ */

.search-results__video {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(201, 182, 138, 0.5);
  background: rgba(201, 182, 138, 0.08);
  color: var(--accent);
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.search-results__video:hover {
  background: rgba(201, 182, 138, 0.2);
  border-color: var(--accent);
  color: #f5efe4;
}

.video-sync {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.video-sync:not([hidden]) {
  display: flex;
}

.video-sync__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.video-sync__dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: #111110;
  border: 1px solid rgba(201, 182, 138, 0.18);
  border-radius: 4px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #ede6d8;
}

@media (min-width: 768px) {
  .video-sync__dialog {
    padding: 2rem 2.25rem 2.25rem;
    gap: 1.25rem;
  }
}

.video-sync__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(201, 182, 138, 0.15);
}

.video-sync__search {
  flex: 1;
  max-width: 520px;
  min-width: 220px;
}

.video-sync__search-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(201, 182, 138, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.video-sync__search-label:focus-within {
  border-color: var(--accent);
  background: rgba(201, 182, 138, 0.08);
}

.video-sync__search-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.video-sync__search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ede6d8;
  font-family: "Inter Tight", sans-serif;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.video-sync__search-input::placeholder {
  color: rgba(179, 171, 156, 0.65);
}

.video-sync__search-status {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
  white-space: nowrap;
}

.video-sync__search-clear {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(201, 182, 138, 0.12);
  color: #b3ab9c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.video-sync__search-clear:hover {
  background: rgba(201, 182, 138, 0.22);
  color: var(--accent);
}

@media (max-width: 640px) {
  .video-sync__header {
    flex-wrap: wrap;
  }
  .video-sync__search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }
}

.video-sync__eyebrow {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.video-sync__heading {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  color: #ede6d8;
}

.video-sync__close {
  border: 1px solid rgba(201, 182, 138, 0.2);
  background: transparent;
  color: #b3ab9c;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.video-sync__close:hover {
  color: #ede6d8;
  border-color: var(--accent);
  background: rgba(201, 182, 138, 0.1);
}

.video-sync__stage {
  position: relative;
  background: #000;
  border: 1px solid rgba(201, 182, 138, 0.12);
  border-radius: 3px;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-sync__drop {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  text-align: center;
  padding: 1rem;
  transition: background 0.2s ease;
}

.video-sync__drop:hover,
.video-sync__drop.is-dragover {
  background: rgba(201, 182, 138, 0.07);
}

.video-sync__drop-icon {
  font-size: 2.6rem !important;
  color: rgba(201, 182, 138, 0.55);
  font-variation-settings: "FILL" 0;
}

.video-sync__drop-label {
  font-family: "Inter Tight", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #ede6d8;
}

.video-sync__drop-hint {
  font-family: "Inter Tight", sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #8f887d;
}

.video-sync__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* .video-sync__change styles are now handled by .video-sync__overlay-btn */

.video-sync__track {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: rgba(201, 182, 138, 0.05);
  border: 1px solid rgba(201, 182, 138, 0.12);
  border-radius: 3px;
}

.video-sync__nav {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(201, 182, 138, 0.25);
  background: transparent;
  color: #b3ab9c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.video-sync__nav:hover:not(:disabled) {
  color: #ede6d8;
  border-color: var(--accent);
  background: rgba(201, 182, 138, 0.12);
}

.video-sync__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.video-sync__track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.video-sync__track-label {
  font-family: "Inter Tight", sans-serif;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #7e776d;
}

.video-sync__track-title {
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ede6d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-sync__track-pos {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #7e776d;
}

.video-sync__transport {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-sync__play {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.2s ease;
}

.video-sync__play:hover {
  transform: scale(1.05);
  background: #d9c58a;
}

.video-sync__play:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.video-sync__time {
  font-family: "Inter Tight", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7e776d;
  min-width: 3.2rem;
  text-align: center;
}

/* Overlay controls that sit on top of the video (mute + change video) */
.video-sync__overlay {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.video-sync__overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem;
  min-width: 34px;
  min-height: 34px;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(201, 182, 138, 0.3);
  color: #ede6d8;
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.video-sync__overlay-btn--labeled {
  padding: 0.4rem 0.7rem;
}

.video-sync__overlay-btn:hover {
  background: rgba(201, 182, 138, 0.2);
  border-color: var(--accent);
  color: #f5efe4;
}

.video-sync__overlay-btn[aria-pressed="true"] {
  background: rgba(201, 182, 138, 0.25);
  border-color: var(--accent);
  color: var(--accent);
}

/* Track volume slider inside the track panel (visually attached to the track) */
.video-sync__track-volume {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(201, 182, 138, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  min-width: 120px;
}

.video-sync__track-volume-icon {
  color: var(--accent);
  font-variation-settings: "FILL" 1;
}

.video-sync__track-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 3px;
  background: rgba(201, 182, 138, 0.25);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.video-sync__track-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #111;
  cursor: pointer;
}

.video-sync__track-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #111;
  cursor: pointer;
}

/* Timeline header (title + music volume + clear button) */
.video-sync__timeline-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.video-sync__timeline-title {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #b3ab9c;
  flex: 1;
}

.video-sync__clear-regions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(201, 182, 138, 0.25);
  background: transparent;
  color: #b3ab9c;
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.video-sync__clear-regions:hover {
  color: #f2d3d0;
  border-color: #b35a5a;
  background: rgba(179, 90, 90, 0.12);
}

/* Timeline container */
.video-sync__timeline {
  border: 1px solid rgba(201, 182, 138, 0.18);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.45rem 0 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Ruler (time labels) */
.video-sync__ruler {
  position: relative;
  height: 14px;
  margin: 0 0.6rem;
}

.video-sync__ruler-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: "Inter Tight", sans-serif;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: #7e776d;
  white-space: nowrap;
  pointer-events: none;
}

.video-sync__ruler-tick::after {
  content: "";
  display: block;
  width: 1px;
  height: 4px;
  background: rgba(201, 182, 138, 0.28);
  margin: 2px auto 0;
}

/* Lane (where regions live) */
.video-sync__lane {
  position: relative;
  height: 56px;
  margin: 0 0.6rem;
  border: 1px dashed rgba(201, 182, 138, 0.18);
  border-radius: 2px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% / 20 - 1px),
      rgba(201, 182, 138, 0.05) calc(100% / 20 - 1px),
      rgba(201, 182, 138, 0.05) calc(100% / 20)
    );
  cursor: crosshair;
}

.video-sync__lane-hint {
  font-family: "Inter Tight", sans-serif;
  font-size: 11px;
  color: #7e776d;
  margin: 0.2rem 0.6rem 0;
  text-align: center;
}

/* Playhead (follows video.currentTime) */
.video-sync__playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 8px rgba(201, 182, 138, 0.5);
}

.video-sync__playhead::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -4px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid #111;
}

/* Region (a track placed on the lane) */
.video-sync__region {
  --region-hue: 42;
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 10%;
  padding: 0 14px; /* leave room for trim handles */
  background: linear-gradient(
    180deg,
    hsl(var(--region-hue), 40%, 55%) 0%,
    hsl(var(--region-hue), 35%, 42%) 100%
  );
  border: 1px solid hsl(var(--region-hue), 50%, 65%);
  border-radius: 2px;
  cursor: grab;
  color: #0b0b0b;
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  transition: box-shadow 0.15s ease, filter 0.15s ease;
  z-index: 1;
}

/* Trim handles (left + right edges of a region) */
.video-sync__region-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  cursor: ew-resize;
  z-index: 2;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.video-sync__region-handle--start {
  left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.video-sync__region-handle--end {
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.video-sync__region-handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 45%;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1px;
}

.video-sync__region:hover .video-sync__region-handle,
.video-sync__region.is-dragging .video-sync__region-handle {
  opacity: 1;
}

.video-sync__region-handle:hover {
  background: rgba(0, 0, 0, 0.4);
}

.video-sync__region:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.video-sync__region.is-dragging {
  cursor: grabbing;
  z-index: 4;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.2) inset;
  filter: brightness(1.15);
}

.video-sync__region-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: screen;
  z-index: 0;
}

.video-sync__region-title {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.video-sync__region-remove {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  padding: 0;
}

.video-sync__region-remove:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Playlist chips (click to add to timeline) */
.video-sync__playlist-label {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #7e776d;
  margin: 0.5rem 0 0;
}

.video-sync__playlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 140px;
  overflow-y: auto;
  padding: 0.15rem;
}

.video-sync__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.2rem 0.2rem 0.2rem 0.2rem;
  background: transparent;
  border: 1px solid rgba(201, 182, 138, 0.22);
  color: #b3ab9c;
  font-family: "Inter Tight", sans-serif;
  font-size: 11px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  max-width: 280px;
}

.video-sync__chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201, 182, 138, 0.08);
}

.video-sync__chip.is-previewing {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201, 182, 138, 0.12);
  box-shadow: 0 0 0 1px rgba(201, 182, 138, 0.25);
}

.video-sync__chip-preview,
.video-sync__chip-add {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.video-sync__chip-preview:hover,
.video-sync__chip-add:hover {
  background: rgba(201, 182, 138, 0.18);
  color: var(--accent);
}

.video-sync__chip.is-previewing .video-sync__chip-preview {
  color: var(--accent);
}

.video-sync__chip-title {
  flex: 1;
  padding: 0 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.video-sync__scrub,
.video-sync__offset-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(201, 182, 138, 0.18);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.video-sync__scrub::-webkit-slider-thumb,
.video-sync__offset-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #111;
  cursor: pointer;
}

.video-sync__scrub::-moz-range-thumb,
.video-sync__offset-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #111;
  cursor: pointer;
}

.video-sync__offset {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(201, 182, 138, 0.12);
  border-radius: 3px;
}

.video-sync__offset-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.video-sync__offset-label {
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #b3ab9c;
}

.video-sync__offset-value {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.video-sync__offset-steps {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.video-sync__offset-steps button {
  border: 1px solid rgba(201, 182, 138, 0.18);
  background: transparent;
  color: #b3ab9c;
  font-family: "Inter Tight", sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.video-sync__offset-steps button:hover {
  color: #ede6d8;
  border-color: var(--accent);
  background: rgba(201, 182, 138, 0.1);
}

.video-sync__offset-hint {
  font-family: "Inter Tight", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #7e776d;
  margin: 0;
}

.video-sync__empty {
  font-family: "Inter Tight", sans-serif;
  font-size: 12px;
  color: #b3ab9c;
  text-align: center;
  margin: 0.5rem 0 0;
}

body.video-sync-open {
  overflow: hidden;
}

/* ---------- About modal — redesigned layout ---------- */
.about-modal__portrait img {
  filter: grayscale(0.15) contrast(1.02);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}
.about-modal__lead::first-letter {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.6em;
  line-height: 0.9;
  float: left;
  margin: 0.08em 0.1em 0 0;
  color: var(--md-sys-color-on-surface, #f4efe6);
}
@media (max-width: 767px) {
  .about-modal__portrait img {
    max-height: 52vh;
    width: auto;
    margin: 0 auto;
    display: block;
  }
  .about-modal__lead::first-letter {
    font-size: 2.2em;
  }
}
.about-modal__currently {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
}
