/* ═══════════════════════════════════════════════════════════
   work.css — styles for work/album detail pages
   Album accent colors (--album-accent, etc.) are set
   dynamically by palette extraction JS at runtime.
   Defaults live in concept.css :root.
   ═══════════════════════════════════════════════════════════ */

/* ── ALBUM OVERVIEW (full viewport, centred) ── */
#album-overview {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
}

/* Header/footer contained within the overview viewport */
body:has(#album-overview) { overflow: hidden; height: 100vh; }
body:has(#album-overview) .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
body:has(#album-overview) .site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

/* Hide header/footer during immersive track view */
body:has(.tv-immersive) .site-header,
body:has(.tv-immersive) .site-footer { display: none; }
body:has(.tv-immersive) { overflow: auto; height: auto; }
.overview-centre {
  text-align: center;
  max-width: 640px;
}
.album-art {
  display: block;
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  margin: 0 auto 1.5rem;
}
.album-art-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 6px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  opacity: 0.3;
  margin-bottom: 1.5rem;
}
.album-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  color: var(--album-accent);
  margin: 0 0 0.4rem;
  line-height: 1.1;
}
.album-artist {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 0 0.3rem;
}
.album-artist a { color: var(--album-accent); text-decoration: none; }
.album-artist a:hover { text-decoration: underline; }

.album-meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.album-meta strong {
  color: var(--text);
  font-weight: 400;
}
.meta-sep {
  opacity: 0.3;
}

/* ── INLINE QUOTES ── */
.overview-quotes {
  max-width: 560px;
  margin: 1.5rem auto;
  text-align: left;
}
/* ── "INSIDE:" SUMMARY ── */
.overview-inside {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.8rem 0 1.2rem;
}
/* ── TAB BUTTONS ── */
.overview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.overview-tab-btn {
  background: none;
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  transition: color 0.15s, border-color 0.15s;
}
.overview-tab-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ── OVERVIEW MODALS ── */
.ov-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-modal[hidden] { display: none; }
.ov-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
}
.ov-modal-content {
  position: relative;
  background: var(--surface, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 10px;
  padding: 1.5rem 2rem 2rem;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.ov-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.ov-modal-close:hover { color: var(--text); }
.ov-modal-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 1rem;
}
.ov-modal-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 1.2rem 0 0.5rem;
  font-weight: 400;
}
.ov-modal-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.ov-modal-link {
  display: block;
  font-size: 0.8rem;
  color: var(--album-accent, var(--accent));
  text-decoration: none;
  padding: 0.25rem 0;
}
.ov-modal-link:hover { text-decoration: underline; }
.ov-modal .annotation-block {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-left: 2px solid var(--album-accent, var(--accent));
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.8rem;
  background: rgba(255,255,255,0.02);
  border-radius: 0 4px 4px 0;
}
.ov-quote {
  margin: 0 0 1.2rem;
  padding: 0;
  border: none;
}
.ov-quote p {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin: 0 0 0.3rem;
}
.ov-quote cite {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: normal;
  display: block;
}
.ov-quote-source {
  font-size: 0.65rem;
  color: #555;
  display: block;
  margin-top: 0.15rem;
}

/* ── MODAL CAROUSEL ── */
.ov-carousel-slide { display: none; }
.ov-carousel-slide.active { display: block; animation: tvFadeIn 0.2s ease; }
.ov-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, #2a2a2a);
}
.ov-carousel-prev,
.ov-carousel-next {
  background: none;
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: var(--text-muted, #888);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1;
}
.ov-carousel-prev:hover,
.ov-carousel-next:hover {
  color: var(--text, #f0f0f0);
  border-color: var(--text-muted, #888);
}
.ov-carousel-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted, #888);
  min-width: 3rem;
  text-align: center;
}

/* ── OVERVIEW BODY (constrained width) ── */
.overview-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── DESCRIPTION (truncated with toggle) ── */
.album-description-wrap { position: relative; }
.album-description-wrap:not(.expanded) .album-description {
  max-height: 3.4em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.album-description-wrap.expanded .album-description {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.album-description-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--album-accent, var(--accent));
  font-family: var(--font-sans);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0.2rem 0;
  margin-top: 0.2rem;
}

/* ── NOTES (first visible, rest toggled) ── */
.album-notes {
  margin: 1rem 0;
}
.album-notes-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--album-accent, var(--accent));
  font-family: var(--font-sans);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0.3rem 0;
}

/* ── CREDITS META LINK ── */
.meta-credits-link {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--album-accent, var(--accent));
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.meta-credits-link:hover {
  text-decoration: underline;
}
.meta-credits-link .meta-key {
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── CREDITS MODAL ── */
.credits-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.credits-modal[hidden] { display: none; }
.credits-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}
.credits-modal-content {
  position: relative;
  background: var(--surface, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  max-width: 420px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.credits-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.credits-modal-close:hover { color: var(--text); }
.credits-modal-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 1rem;
}

/* ── BANDCAMP EMBED PLAYER ── */
.tracklist-embed {
  margin: 0 auto 1.2rem;
  max-width: 700px;
  border-radius: 6px;
  overflow: hidden;
}
.tracklist-embed iframe {
  display: block;
}

/* ── BANDCAMP LISTEN BUTTON (fallback when no embed ID) ── */
.tracklist-listen {
  margin-bottom: 1.2rem;
}
.bandcamp-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--album-accent-border);
  border-radius: 6px;
  color: var(--album-accent);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  transition: background 0.15s, border-color 0.15s;
}
.bandcamp-listen-btn:hover {
  background: var(--album-accent-dim);
  border-color: var(--album-accent);
}
.bandcamp-listen-btn .bandcamp-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* ── TRACKLIST ── */
.tracklist-section {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
.section-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.tracklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tracklist li {
  display: flex;
  align-items: baseline;
  padding: 0.45rem 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tracklist li:last-child { border-bottom: none; }
.track-num {
  width: 2rem;
  text-align: right;
  margin-right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.track-title { flex: 1; }
.track-duration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 1rem;
}
.track-annotation {
  display: flex;
  padding: 0.3rem 0 0.5rem;
  padding-left: 3rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  opacity: 0.8;
}
.track-annotation::before {
  content: '🤔';
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.tracklist li.has-annotation { border-bottom: none; }
.track-quote {
  display: block;
  padding: 0.4rem 0 0.5rem;
  padding-left: 3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  opacity: 0.85;
}
.track-quote p::before {
  content: '💬';
  margin-right: 0.4rem;
}
.track-quote blockquote {
  margin: 0;
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  border-left: 2px solid var(--album-accent, #aa895c);
  padding-left: 0.6rem;
}
.track-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 0.2rem;
  padding-left: 0.8rem;
}

/* ── VOICE CAROUSEL ── */
.voice-heading {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 1.5rem 0 0.6rem;
}
.voice-count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-left: 0.5rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}
.album-carousel {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
}
.album-carousel .artist-voice {
  padding: 1rem 1.2rem;
  cursor: pointer;
}
.album-carousel .voice-label {
  display: block;
  margin-bottom: 0.4rem;
}
.album-carousel .voice-label { color: var(--album-accent); }
.album-carousel .carousel-arrow:hover { border-color: var(--album-accent); color: var(--album-accent); }

/* ── DETAILS ROW (notes + credits) ── */
.details-row {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.details-col .section-title { margin-top: 0; }
.annotation-block {
  background: var(--surface);
  border-left: 3px solid var(--album-accent);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.credits-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
}
.credit-role {
  color: var(--text-muted);
  text-align: right;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding-top: 0.1rem;
}
.credit-name { color: var(--text); }

/* ── RECEPTION SECTION ── */
.reception-section {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
.reception-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.reception-entry {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.reception-source {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  min-width: 120px;
  max-width: 260px;
  text-align: right;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reception-score {
  font-weight: 700;
  font-size: 0.85rem;
}
.reception-score.high { color: var(--album-accent); }
.reception-summary { flex: 1; }

/* ── VARIATIONS CROSS-NAV ── */
.variations-section {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
.variations-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.var-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-muted);
  transition: background 0.15s;
}
a.var-row:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.var-row.var-current { background: rgba(255,255,255,0.03); color: var(--text); }
.var-row-art { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.var-row-art-placeholder { width: 48px; height: 48px; border-radius: 4px; background: var(--surface); flex-shrink: 0; }
.var-row-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.var-row-title { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.var-row-meta { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ── TWO-COLUMN LAYOUT (tracklist + notes/insights) ── */
.work-columns {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.work-col-main { min-width: 0; }
.work-col-side { min-width: 0; }
.work-col-side .annotation-block { margin-bottom: 0.75rem; }
.work-col-side .album-carousel { margin-top: 0.75rem; }

/* ── SPLIT RELEASE TRACKS ── */
.tracklist li.split-other { opacity: 0.5; }
.tracklist li.split-other .track-title { color: var(--text-muted); }
.track-artist-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
}

/* ═══════════════════════════════════════════════════════════
   TRACK VIEW — Duration bar, track panels, nav
   ═══════════════════════════════════════════════════════════ */

/* ── TRACK VIEW WRAPPER ── */
#track-view {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 500;
  background: var(--bg, #0f0f0f);
  flex-direction: column;
  overflow: hidden;
}
#track-view.tv-immersive {
  display: flex;
}

/* Mode system — sip/bc visibility. Hide both until a mode is set. */
#track-view:not(.bc-mode):not(.sip-mode) .bc-only,
#track-view:not(.bc-mode):not(.sip-mode) .sip-only,
#track-view.sip-mode .bc-only { display: none !important; }
#track-view.bc-mode .sip-only { display: none !important; }

#track-view:fullscreen {
  background: var(--bg, #0f0f0f);
}

/* Old fixed-position button styles removed — back/fullscreen now use .tv-nav-btn in flex layout */

/* ── NAV BUTTONS (prev/next in controls row) ── */
.tv-nav-btn {
  width: 48px; height: 48px;
  border-radius: 200px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #8a8a8a;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.tv-nav-btn:hover { background: rgba(255,255,255,0.12); color: #ccc; }
.tv-nav-btn:disabled { opacity: 0.3; pointer-events: none; }

/* ── TOP BAR (duration bar + info) ── */
.tv-top-bar {
  flex: 0 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 10px 10px 0;
}
.tv-top-bar-center { flex: 1; min-width: 0; }
.tv-top-bar .duration-bar { width: 100%; }
.tv-top-bar-info {
  display: flex;
  justify-content: space-between;
  padding: 5px 0 0;
  font: 300 15px/1 var(--font-sans);
  color: var(--text-muted);
  opacity: 0.66;
}
/* .tv-info-text removed — replaced by .tv-top-bar-info */

/* ── DURATION BAR ── */
.duration-bar {
  display: flex;
  gap: 2px;
  padding: 0;
}
.dur-seg {
  position: relative;
  height: 20px;
  border: none;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  padding: 0;
  overflow: hidden;
}
.dur-seg:hover {
  background: rgba(255,255,255,0.15);
  transform: scaleY(1.3);
}
.dur-seg.visited {
  background: rgba(255,255,255,0.12);
}
.dur-seg.active {
  background: var(--album-accent, var(--accent, #f5a623));
}
.dur-seg-label {
  display: none; /* hidden — tooltip shows names instead */
}
.dur-seg-dot {
  display: none; /* removed per design feedback */
}

/* ── SEGMENT TOOLTIP ── */
.tv-seg-tooltip {
  position: absolute;
  z-index: 520;
  background: var(--surface, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text, #f0f0f0);
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}
.tv-seg-tooltip[hidden] { display: none; }

/* ── TRACK PANELS ── */
.track-panel { display: none; }
.track-panel.active {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  animation: tvFadeIn 0.2s ease;
}
@keyframes tvFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TITLE ROW ── */
.tv-title-row {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 68px 0;
}
.tv-title-row .track-panel-title {
  flex: 1;
  font: 500 clamp(1.2rem, 3vw, 2rem) var(--font-serif);
  color: var(--album-accent, #ff5);
  margin: 0;
}

/* ── PLAYER CONTROLS ── */
.tv-player-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 600px;
}
.tv-ctrl-btn {
  width: 34px; height: 34px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #8a8a8a;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv-ctrl-btn:hover { background: rgba(255,255,255,0.08); color: #ccc; }
.tv-ctrl-btn.tv-play-btn {
  width: 36px; height: 36px;
  background: rgba(var(--album-accent-rgb, 255,255,85), 0.11);
  border-color: var(--album-accent, #ff5);
}
.tv-ctrl-time {
  font: 300 15px var(--font-sans);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── PLAYER AREA ── */
.tv-player-area {
  flex: 0 0 auto;
  padding: 20px 0 0;
}
.tv-spectrogram { height: 200px; overflow: hidden; position: relative; background: var(--bg); }
.tv-waveform { height: 48px; }
.tv-pins-rail {
  height: 34px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.tv-bc-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tv-bc-area .bc-track-embed {
  width: 100%;
  max-width: 700px;
  height: 120px;
  border: 0;
}
.tv-timeline-bar {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 30px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
/* Indent timeline to align with Bandcamp embed's own progress bar */
#track-view.bc-mode .tv-timeline-bar {
  max-width: none;
  padding-left: 188px;
  padding-right: 100px;
  box-sizing: border-box;
}
.tv-timeline-line {
  flex: 1;
  height: 1px;
  background: var(--p-accent, #aa895c);
  position: relative;
}
.tv-timeline-bar.tv-empty .tv-timeline-line {
  border-top: 1px dashed rgba(var(--album-accent-rgb, 170,137,92), 0.4);
  background: none;
}
.tv-timeline-cap {
  width: 1px;
  height: 10px;
  background: var(--p-accent, #aa895c);
  flex-shrink: 0;
}
/* Status line below timeline bar */
.tv-timeline-status {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font: 300 12px var(--font-sans);
  color: var(--text-muted);
  padding: 4px 0 0;
  min-height: 18px;
}
#track-view.bc-mode .tv-timeline-status {
  max-width: none;
  padding-left: 188px;
  padding-right: 100px;
}
.tv-timeline-status a {
  color: var(--p-accent, #aa895c);
  cursor: pointer;
  text-decoration: none;
}
.tv-timeline-status a:hover { text-decoration: underline; }

/* Marks on timeline bar */
.tv-timeline-line .eb-mark {
  top: 50%;
  font-size: 1.3rem;
}
/* Marks on spectrogram — dark pill background for visibility */
.tv-spectrogram .eb-mark,
#isi-spec-inner .eb-mark {
  top: auto;
  bottom: 6px;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* ── CONTENT CARDS ── */
.tv-cards {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 20px 40px 0;
}
.tv-left-card {
  width: 480px;
  max-width: 480px;
  max-height: 100%;
  flex-shrink: 0;
  background: #1a1a1a;
  border-left: 3px solid var(--album-accent, #ff5);
  border-radius: 0 6px 6px 0;
  padding: 16px 19px 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  opacity: 0.8;
  transform-origin: left center;
}
.tv-left-card[hidden] { display: none; }
.tv-left-card .tv-card-icon { font-size: 24px; color: var(--text-muted); }
.tv-left-card .tv-card-attrib {
  font: 300 15px var(--font-sans);
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
}
.tv-left-card .tv-card-text {
  font: 400 15px/1.45 var(--font-serif);
  color: #f0f0f0;
}
.tv-right-card {
  flex: 0 1 600px;
  max-width: 600px;
  max-height: 100%;
  min-width: 0;
  background: #1a1a1a;
  border-radius: 0 6px 6px 0;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  opacity: 0.8;
}
.tv-right-card .tv-slide-content {
  overflow-y: auto;
  max-height: 100%;
  flex: 1;
  min-width: 0;
}
.tv-right-card.tv-border-yellow { border-left: 3px solid var(--album-accent, #ff5); }
.tv-right-card.tv-border-red { border-left: 3px solid red; }
.tv-right-card.tv-border-prompt {
  border-left: none;
  background: #151515;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.tv-cards.tv-single-col { justify-content: center; }
.tv-cards.tv-single-col .tv-right-card { max-width: 600px; }
.tv-carousel-btn {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 200px;
  border: 1px solid #2d2d2d;
  background: none;
  color: #8b8b8b;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv-carousel-btn:hover { border-color: #555; color: #ccc; }

/* ── PINS ── */
.tv-pin {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.15s;
}
.tv-pin-needle {
  width: 2px;
  height: 12px;
  background: var(--text-muted);
  opacity: 0.5;
}
.tv-pin-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.8;
}
.tv-pin-circle img { width: 100%; height: 100%; object-fit: cover; }
.tv-pin.tv-pin-active .tv-pin-needle { background: var(--album-accent); opacity: 1; }
.tv-pin.tv-pin-active .tv-pin-circle { opacity: 1; }
.tv-pin:hover .tv-pin-circle { opacity: 1; }

/* ── ANIMATIONS ── */
@keyframes tvBounceIn {
  0% { transform: scale(0); }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes tvBounceOut {
  0% { transform: scale(1); }
  100% { transform: scale(0); }
}
.tv-left-card.tv-bounce-in { animation: tvBounceIn 150ms ease-out forwards; }
.tv-left-card.tv-bounce-out { animation: tvBounceOut 120ms ease-in forwards; }
.tv-right-card { transition: flex 200ms ease, max-width 200ms ease; }

@keyframes tvMarkIn {
  0% { transform: translate(-50%, -50%) scale(0); }
  60% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Old track-panel-header, track-annotation, track-quote, track-credits styles removed
   — replaced by .tv-* card system */

/* ── CTA BUTTONS ── */
.album-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 0 0;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--album-accent, var(--accent, #f5a623));
  border-radius: 8px;
  background: var(--album-accent-dim, rgba(245,166,35,0.10));
  color: var(--album-accent, var(--accent, #f5a623));
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.cta-primary:hover {
  background: var(--album-accent-border, rgba(245,166,35,0.20));
  transform: scale(1.02);
}
/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  #album-overview { padding: 1.5rem 1rem; }
  .album-art, .album-art-placeholder { width: 160px; height: 160px; }
  .tracklist-section { padding: 0 1rem; }
  .work-columns { padding: 0 1rem; grid-template-columns: 1fr; gap: 1.5rem; }
  .details-row { padding: 0 1rem; grid-template-columns: 1fr; gap: 1.5rem; }
  .reception-section { padding: 0 1rem; }

  /* Track view mobile */
  .dur-seg { height: 16px; }
  .album-cta { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════════════════════
   EMOJI MARKS — Placed reactions on timeline and spectrogram
   ═══════════════════════════════════════════════════════════ */

/* ── USER'S OWN MARKS ── */
.eb-mark {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  transition: transform 0.15s;
  line-height: 1;
}
.eb-mark:hover {
  transform: translate(-50%, -50%) scale(1.3);
  z-index: 3;
}


/* ═══════════════════════════════════════════════════════════
   BARISTA PROMPTS — Guided Sip prompt UI
   ═══════════════════════════════════════════════════════════ */

.barista-container { max-width: 380px; margin: 1.5rem auto; }

.barista-prompt { text-align: center; position: relative; margin-bottom: 1.2rem; }
.barista-prompt.minimised .bp-question,
.barista-prompt.minimised .bp-choices,
.barista-prompt.minimised .bp-freetext,
.barista-prompt.minimised .bp-reveal { display: none; }
.barista-prompt.minimised .bp-summary { display: block; }

.bp-summary { display: none; font-size: 0.75rem; color: var(--text-muted); padding: 0.4rem 0.8rem; background: var(--surface); border-radius: 12px; cursor: pointer; }
.bp-question { font-size: 0.9rem; color: var(--text); line-height: 1.6; margin-bottom: 0.8rem; }
.bp-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.bp-pill { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 0.45rem 1rem; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; transition: all 0.15s; font-family: inherit; }
.bp-pill:hover { border-color: var(--album-accent, var(--accent)); color: var(--album-accent, var(--accent)); }
.bp-pill.selected { background: rgba(var(--album-accent-rgb, 245,166,35), 0.15); border-color: var(--album-accent, var(--accent)); color: var(--album-accent, var(--accent)); }
.bp-pill:disabled { cursor: default; opacity: 0.6; }

.bp-freetext { margin-top: 0.5rem; }
.bp-textarea { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem; font-size: 0.85rem; color: var(--text); resize: vertical; font-family: inherit; }
.bp-submit { margin-top: 0.5rem; background: none; border: 1px solid var(--border); border-radius: 4px; padding: 0.4rem 1rem; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; font-family: inherit; }

.bp-minimise { position: absolute; top: 0; right: 0; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.7rem; padding: 0.2rem 0.4rem; }

.bp-reveal { margin-top: 1rem; animation: fadeReveal 0.3s ease; }
.ir-text { font-size: 0.85rem; color: var(--text); line-height: 1.7; text-align: center; }
.ir-source { font-size: 0.7rem; color: var(--text-muted); display: block; margin-top: 0.3rem; text-align: center; }
.ir-save { margin-top: 0.5rem; background: none; border: 1px solid var(--border); border-radius: 4px; padding: 0.35rem 0.8rem; font-size: 0.7rem; color: var(--text-muted); cursor: pointer; font-family: inherit; }

.barista-transition { max-width: 400px; margin: 1rem auto; text-align: center; }
.bt-text { font-size: 0.85rem; color: var(--text-muted); font-style: italic; line-height: 1.6; }

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

/* ═══════════════════════════════════════════════════════════
   SIP PLAYER — Full-width spectrogram player
   ═══════════════════════════════════════════════════════════ */

/* #sip-player is a JS mount point only — all visible content renders in panel-level containers */
.sip-player { display: none; }
