@property --bg { syntax: "<color>"; inherits: true; initial-value: #0b0b0c; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #131315; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #e6b86e; }
@property --accent-soft { syntax: "<color>"; inherits: true; initial-value: rgba(230, 184, 110, 0.13); }
@property --accent-border { syntax: "<color>"; inherits: true; initial-value: rgba(230, 184, 110, 0.48); }

:root {
  --bg: #0b0b0c;
  --surface: #131315;
  --surface-elevated: #1a1a1d;
  --header-bg: rgba(11, 11, 12, 0.84);
  --drawer-bg: rgba(17, 17, 19, 0.96);
  --overlay-bg: rgba(11, 11, 12, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f0eee9;
  --text-muted: #8e9096;
  --text-dim: #5f626a;
  --accent: #e6b86e;
  --accent-soft: rgba(230, 184, 110, 0.13);
  --accent-border: rgba(230, 184, 110, 0.48);
  --room-glow-1: rgba(255, 255, 255, 0.03);
  --room-glow-2: rgba(255, 255, 255, 0.02);
  --spotify: #1db954;
  --apple: #fa2d48;
  --radius: 10px;
  --radius-sm: 6px;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Dynamic cover palette variables (updated from Top 4) */
  --p1: #232833;
  --p2: #2b2430;
  --p3: #1e2829;
  --p4: #2a241c;

  /* Active pick ambient glow (updated per winner) */
  --pick-glow: rgba(230, 184, 110, 0.22);
}

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

html {
  transition:
    --bg 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    --surface 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    --accent 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    --accent-soft 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    --accent-border 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
  overscroll-behavior-y: none;
  transition: background-color 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  position: relative;
}

#root {
  position: relative;
  z-index: 1;
}

/* Subtle analog paper/vinyl grain (compositor-free, pointer-events none) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Dual-layer Top-4 Adaptive Room Canopy — fixed to viewport top so overscroll never exposes a black strip */
#room-canopy {
  position: fixed;
  inset: 0 0 auto 0;
  height: 540px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.room-canopy-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.room-canopy-layer.visible {
  opacity: 1;
}

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

input, textarea {
  font-family: inherit;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* ==================== START PAGE (FEATHERLIGHT, ONE DOOR) ==================== */
.start-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 24px 32px;
  max-width: 500px;
  margin: 0 auto;
}

.start-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.metre-wordmark-svg {
  display: block;
  width: auto;
  flex-shrink: 0;
}

.share-brand,
.share-og-brand {
  display: inline-flex;
  align-items: center;
}

.share-brand .metre-wordmark-svg,
.share-og-brand .metre-wordmark-svg {
  opacity: 0.9;
}

.wordmark-btn {
  cursor: pointer;
  transition: opacity 0.16s ease;
}

.wordmark-btn:hover {
  opacity: 0.78;
}

.wordmark-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.quiet-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 7px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.quiet-login:hover {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.quiet-login:active {
  transform: scale(0.97);
}

.start-center {
  text-align: center;
  margin: auto 0;
  padding: 36px 0 64px;
}

.start-headline {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.start-headline em {
  font-style: italic;
  color: var(--accent);
}

.start-sub {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 360px;
  margin: 0 auto 38px;
}

.start-doors {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
}

.door-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 99px;
  font-size: 14.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.12s ease, background 0.12s ease;
}

.door-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.075);
}

.door-btn:active {
  transform: scale(0.975);
}

.door-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.door-dot.spotify { background: var(--spotify); }
.door-dot.apple { background: var(--apple); }

.start-foot {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ==================== IMPORTING STATE (SNAPPY) ==================== */
.import-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.import-card {
  max-width: 340px;
  width: 100%;
  padding: 16px;
}

.import-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 6px;
}

.import-step {
  font-size: 13px;
  color: var(--text-muted);
  min-height: 20px;
  margin-bottom: 18px;
}

.progress-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==================== APP SHELL (3 TABS, AIRY) ==================== */
.app-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--app-header-h, 61px) + 24px) 20px 88px;
  transition: max-width 0.16s ease;
}

.app-shell.is-crate-view {
  padding: calc(var(--app-header-h, 61px) + 6px) 20px 0;
}

.app-shell.wide {
  max-width: 980px;
}

/* ==================== GLOBAL CHARTS HEADER, QUICK BAR & SLIDE-OUT DRAWER ==================== */
.charts-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.charts-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-strong);
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.charts-filter-trigger:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}

.charts-filter-trigger:active {
  transform: scale(0.97);
}

.charts-filter-trigger.has-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.charts-filter-trigger svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.charts-quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.charts-quick-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}

.quick-seg-group {
  display: inline-flex;
  padding: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.quick-seg-btn {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.14s ease, color 0.14s ease;
}

.quick-seg-btn:hover {
  color: var(--text);
}

.quick-seg-btn.active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

/* Slide-out Filter Drawer */
.charts-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 7, 10, 0);
  backdrop-filter: blur(0px);
  display: flex;
  justify-content: flex-end;
  transition: background 0.24s ease, backdrop-filter 0.24s ease;
}

.charts-drawer-backdrop.open {
  background: rgba(5, 7, 10, 0.6);
  backdrop-filter: blur(5px);
}

.charts-drawer-panel {
  width: min(344px, 88vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--drawer-bg);
  border-left: 1px solid var(--border-strong);
  box-shadow: -20px 0 48px rgba(0, 0, 0, 0.55);
  transform: translateX(100%);
  will-change: transform;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.charts-drawer-backdrop.open .charts-drawer-panel {
  transform: translateX(0);
}

.charts-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.charts-drawer-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
}

.drawer-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: color 0.12s ease, background 0.12s ease;
}

.drawer-close-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.charts-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-seg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.drawer-seg-btn {
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.drawer-seg-btn:hover {
  color: var(--text);
}

.drawer-seg-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.drawer-section {
  display: flex;
  flex-direction: column;
}

.charts-drawer-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: var(--drawer-bg);
  flex-shrink: 0;
}

.rail-section-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 9px;
}

.rail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rail-pills .pill {
  font-size: 12px;
  padding: 4.5px 10px;
}

.rail-vibe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.rail-vibe-btn {
  padding: 7px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 15px;
  text-align: center;
  transition: all 0.12s ease;
}

.rail-vibe-btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.rail-vibe-btn.set {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.rail-vibe-btn.dimmed {
  opacity: 0.3;
}

/* ==================== CHART ROW EMBLEMS (BOOKMARK LIFT & FILL · HEADPHONES BASS PULSE) ==================== */
.chart-row-right {
  gap: 8px;
}

.ranked-row-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.stream-emblem-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.emblem-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--border-strong);
  opacity: 0.7;
  margin: 0 1px;
  flex-shrink: 0;
}

.score-col-inline {
  min-width: 44px;
  text-align: right;
}

.chart-emblem-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 71px;
  flex-shrink: 0;
}

.chart-emblem-group > .emblem-btn:only-child {
  margin: 0 auto;
}

.stream-btn {
  width: 30px;
  height: 30px;
  color: var(--text-dim);
  text-decoration: none;
}

.stream-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stream-btn:hover svg {
  transform: scale(1.14);
}

.stream-spotify:hover {
  color: #1ed760;
  background: rgba(30, 215, 96, 0.08);
  border-color: rgba(30, 215, 96, 0.28);
}

.stream-apple:hover {
  color: #fa586a;
  background: rgba(250, 88, 106, 0.08);
  border-color: rgba(250, 88, 106, 0.28);
}

.chart-score-col {
  min-width: 56px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.emblem-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.emblem-btn:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.emblem-btn svg {
  width: 18px;
  height: 18px;
  overflow: visible;
  will-change: transform;
}

.emblem-btn.is-listened {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.07);
  cursor: default;
}

.emblem-btn.is-listened:hover {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.11);
}

.emblem-btn.is-bookmarked {
  color: var(--accent);
}

/* Bookmark: Lift & Fill */
.anim-bm-lift .bm-shape {
  transform-origin: 12px 12px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-bm-lift .bm-fill {
  opacity: 0;
  transition: opacity 0.22s ease;
}

.anim-bm-lift:hover .bm-shape {
  transform: translateY(-2px);
}

.anim-bm-lift:hover .bm-fill {
  opacity: 0.28;
}

.emblem-btn.is-bookmarked .bm-fill,
.emblem-btn.is-bookmarked:hover .bm-fill {
  opacity: 1;
}

/* Headphones: Bass Pulse */
.anim-hp-bass .hp-group {
  transform-origin: 12px 13px;
  transition: transform 0.2s ease;
}

.anim-hp-bass:hover .hp-group,
.anim-hp-bass:focus-visible .hp-group {
  animation: hpBassPulse 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hpBassPulse {
  0%   { transform: scale(1); }
  32%  { transform: scale(1.13, 0.94); }
  65%  { transform: scale(0.96, 1.05); }
  100% { transform: scale(1.04); }
}

.rerank-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
}

.rerank-hp-icon {
  width: 15px;
  height: 15px;
  opacity: 0.85;
  flex-shrink: 0;
  overflow: visible;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.rerank-btn:hover .rerank-hp-icon {
  color: var(--accent);
  opacity: 1;
}

/* ==================== RECORD-ROOM CHARACTER: SHELF SPINE & HYPE STICKERS ==================== */
.shelf-suffix {
  font-style: italic;
  color: var(--text-muted);
  font-weight: 400;
}

.shelf-color-spine {
  display: flex;
  height: 3px;
  border-radius: 99px;
  overflow: hidden;
  gap: 2px;
  opacity: 0.85;
  margin-top: 8px;
  max-width: 340px;
}

.shelf-spine-seg {
  flex: 1 1 0;
  height: 100%;
  border-radius: 1px;
}

.disco-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.chart-rank-lead {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 80px;
}

.disco-cover-lead {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}

.row-standing-badge {
  position: absolute;
  top: -12px;
  left: -10px;
  z-index: 6;
  transform: rotate(-7deg);
  transform-origin: center center;
}

.row-standing-badge.is-cover-corner {
  top: -9px;
  left: -10px;
}

.row-standing-badge .hype-sticker.is-compact {
  font-size: 8.5px;
  letter-spacing: 0.045em;
  padding: 2px 6px;
  gap: 3px;
}

.row-standing-badge .hype-sticker.is-compact .hype-icon {
  font-size: 8.5px;
}

.row-standing-badge .hype-sticker {
  transform: none;
}

.row-standing-badge .hype-sticker-wrap[data-tip]::after {
  left: 0;
  right: auto;
  transform: translateY(4px);
  text-align: left;
}

.row-standing-badge .hype-sticker-wrap[data-tip]:hover::after,
.row-standing-badge .hype-sticker-wrap[data-tip]:focus-visible::after {
  transform: translateY(0);
}

.global-standing-slot {
  min-width: 76px;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
}

.album-score-global-sticker {
  position: absolute;
  top: -22px;
  right: -34px;
  z-index: 5;
}

.album-score-global-sticker .hype-sticker {
  transform: rotate(11deg);
  transform-origin: center center;
}

.hype-sticker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-shrink: 0;
  outline: none;
}

.hype-sticker-wrap[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 250px;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 40;
}

.hype-sticker-wrap[data-tip]:hover::after,
.hype-sticker-wrap[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.global-standing-slot .hype-sticker-wrap[data-tip]::after {
  left: auto;
  right: 0;
  transform: translateY(4px);
  text-align: right;
}

.album-score-global-sticker .hype-sticker-wrap[data-tip]::after {
  top: calc(100% + 10px);
  bottom: auto;
  left: auto;
  right: 0;
  transform: translateY(-4px);
  text-align: right;
}

.album-score-global-sticker .hype-sticker-wrap[data-tip]:hover::after,
.album-score-global-sticker .hype-sticker-wrap[data-tip]:focus-visible::after,
.global-standing-slot .hype-sticker-wrap[data-tip]:hover::after,
.global-standing-slot .hype-sticker-wrap[data-tip]:focus-visible::after {
  transform: translateY(0);
}

.hype-sticker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  overflow: hidden;
}

.hype-sticker .hype-icon {
  font-size: 10.5px;
  line-height: 1;
}

.hype-sticker.is-compact {
  font-size: 9.5px;
  letter-spacing: 0.045em;
  padding: 2.5px 7px;
  gap: 3.5px;
}

.hype-sticker.is-compact .hype-icon {
  font-size: 9.5px;
}

.hype-diamond {
  color: #0e1522;
  background: linear-gradient(125deg, #f0fbff 0%, #b8e2ff 30%, #e6d4ff 62%, #ffffff 100%);
  background-size: 220% 220%;
  border: 1px solid rgba(226, 246, 255, 0.92);
  box-shadow:
    0 0 18px rgba(174, 224, 255, 0.48),
    0 0 8px rgba(220, 196, 255, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: rotate(-1.6deg);
  animation: hypeDiamondShimmer 4.8s ease-in-out infinite;
}

.hype-diamond::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, 0.78) 50%, transparent 76%);
  transform: translateX(-140%);
  animation: hypeFoilSweep 4.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hypeDiamondShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hype-platinum {
  color: #141820;
  background: linear-gradient(135deg, #f6f8fb 0%, #aeb9c8 50%, #e4ebf3 100%);
  border: 1px solid rgba(232, 240, 250, 0.85);
  box-shadow: 0 2px 14px rgba(196, 212, 234, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: rotate(-1.4deg);
}

.hype-platinum::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 26%, rgba(255, 255, 255, 0.65) 50%, transparent 74%);
  transform: translateX(-140%);
  animation: hypeFoilSweep 5.2s ease-in-out infinite;
  pointer-events: none;
}

.hype-gold {
  color: #f6d58c;
  background: linear-gradient(125deg, rgba(242, 196, 112, 0.2), rgba(212, 154, 58, 0.11));
  border: 1px solid rgba(242, 196, 112, 0.45);
  box-shadow: 0 2px 10px rgba(232, 178, 86, 0.14);
  transform: rotate(-1.2deg);
}

.hype-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 240, 200, 0.34) 50%, transparent 72%);
  transform: translateX(-140%);
  animation: hypeFoilSweep 5.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hypeFoilSweep {
  0%, 72% { transform: translateX(-140%); }
  100%    { transform: translateX(140%); }
}

.hype-cutout {
  color: #f29d7e;
  background: rgba(216, 100, 52, 0.14);
  border: 1px solid rgba(216, 100, 52, 0.38);
  border-radius: 5px;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  padding-right: 11px;
  transform: rotate(1.2deg);
}

.hype-cutout.is-compact {
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%);
  padding-right: 8px;
}

.hype-split {
  color: #e6d6d0;
  background: linear-gradient(108deg, rgba(228, 116, 116, 0.18) 0%, rgba(228, 116, 116, 0.14) 48%, rgba(122, 152, 196, 0.16) 52%, rgba(122, 152, 196, 0.2) 100%);
  border: 1px solid rgba(196, 162, 178, 0.34);
  transform: rotate(-0.6deg);
}

.hype-deep {
  color: #9dc8ab;
  background: rgba(132, 184, 148, 0.09);
  border: 1px dashed rgba(157, 200, 171, 0.42);
}

.cover-diamond-glow {
  box-shadow:
    0 0 0 1px rgba(188, 230, 255, 0.72),
    0 8px 28px rgba(164, 218, 255, 0.32),
    0 0 14px rgba(218, 194, 255, 0.22);
}

.cover-platinum-glow {
  box-shadow:
    0 0 0 1px rgba(214, 226, 244, 0.56),
    0 8px 24px rgba(180, 200, 228, 0.24);
}

.cover-gold-glow {
  box-shadow: 0 0 0 1px rgba(242, 196, 112, 0.55), 0 8px 24px rgba(232, 178, 86, 0.22);
}

.cover-cutout {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.chart-cover.cover-cutout,
.disco-cover.cover-cutout {
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

/* Liner Notes emblem + aligned reserved slot */
.note-emblem-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.note-emblem-slot.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.emblem-btn.note-emblem {
  width: 30px;
  height: 30px;
}

.emblem-btn.note-emblem svg {
  width: 15px;
  height: 15px;
}

.emblem-btn.note-emblem .note-card-shape {
  transform-origin: 12px 12px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.emblem-btn.note-emblem:hover .note-card-shape {
  transform: translateY(-1.5px) rotate(-4deg);
}

.emblem-btn.note-emblem.is-popping .note-card-shape {
  animation: notePeek 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.emblem-btn.note-emblem.is-open {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-border);
  box-shadow: 0 0 12px rgba(230, 184, 110, 0.16);
}

.emblem-btn.note-emblem.is-open .note-card-shape {
  transform: rotate(-3deg);
}

@keyframes notePeek {
  0%   { transform: scale(1) rotate(0deg); }
  35%  { transform: scale(1.18) rotate(-6deg) translateY(-1.5px); }
  68%  { transform: scale(0.95) rotate(2deg); }
  100% { transform: scale(1) rotate(-3deg); }
}

/* Quiet hover tooltip on desktop */
.emblem-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 20;
}

.emblem-btn[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Right-align tooltips on right-edge action clusters so card/row containment never clips them */
.chart-emblem-group .emblem-btn[data-tip]::after,
.discover-card-actions .emblem-btn[data-tip]::after,
.discover-card-foot .emblem-btn:last-child[data-tip]::after,
.search-row-actions .emblem-btn:last-child[data-tip]::after {
  left: auto;
  right: 0;
  transform: translateY(4px);
}

.chart-emblem-group .emblem-btn[data-tip]:hover::after,
.discover-card-actions .emblem-btn[data-tip]:hover::after,
.discover-card-foot .emblem-btn:last-child[data-tip]:hover::after,
.search-row-actions .emblem-btn:last-child[data-tip]:hover::after {
  transform: translateY(0);
}

.app-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 35;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.app-header-bar.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.app-header {
  max-width: 760px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 20px;
  transition: border-color 0.25s ease;
}

.app-header-bar.is-scrolled .app-header {
  border-bottom-color: transparent;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 260px;
  min-width: 140px;
}

.header-search-icon {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  stroke: var(--text-dim);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 0.16s ease;
}

.header-search-input {
  width: 100%;
  padding: 6px 26px 6px 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.3;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.header-search-input::placeholder {
  color: var(--text-dim);
}

.header-search-input:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.header-search-input:focus {
  outline: none;
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.06);
}

.header-search-wrap:focus-within .header-search-icon {
  stroke: var(--accent);
}

.header-search-clear {
  position: absolute;
  right: 7px;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: var(--text-muted);
}

.header-search-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.search-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(420px, calc(100vw - 36px));
  max-height: 420px;
  overflow-y: auto;
  border-radius: 12px;
  background: var(--drawer-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65);
  padding: 6px;
  z-index: 65;
}

.search-group-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 9px 4px;
}

.search-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.search-row:hover {
  background: rgba(255, 255, 255, 0.055);
}

.search-thumb {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.search-thumb.round {
  border-radius: 50%;
}

.search-thumb-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.search-live-status {
  padding: 7px 10px 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.search-row-text {
  min-width: 0;
  flex: 1;
}

.search-row-title {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.14s ease, text-shadow 0.14s ease;
}

.search-album-row:hover .search-row-title,
.search-album-row .search-row-title:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-shadow: 0 0 0.45px currentColor;
}

.search-row-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.search-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.search-row-arrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  padding-right: 2px;
}

.search-empty {
  padding: 14px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 620px) {
  .app-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 11px 0;
  }
  .header-left {
    width: 100%;
  }
  .header-search-wrap {
    max-width: none;
  }
  .nav-tabs {
    width: 100%;
    justify-content: space-between;
  }
}

.nav-tabs {
  display: flex;
  gap: 4px;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.12s ease, background 0.12s ease;
}

.nav-crate-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--accent);
  background: rgba(232, 188, 118, 0.14);
  border: 1px solid rgba(232, 188, 118, 0.28);
}

.nav-crate-count.hidden {
  display: none;
}

.nav-tab.active .nav-crate-count {
  background: rgba(232, 188, 118, 0.22);
  border-color: rgba(232, 188, 118, 0.42);
}

.nav-tab:hover {
  color: var(--text);
}

.nav-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab.nav-tab-reveal {
  animation: navTabReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes navTabReveal {
  0% {
    opacity: 0;
    transform: translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==================== LIVE COVER STRIP (5-ALBUM ZOOMING FILMSTRIP) ==================== */
.strip-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto clamp(29px, 3.8dvh, 36px);
  transition: opacity 0.22s ease;
  z-index: 6;
  flex-shrink: 0;
}

.strip-wrap.receded {
  opacity: 0.76;
}

.strip-wrap.active-beat,
.strip-wrap.has-drawer {
  opacity: 1;
}

.strip-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.72);
}

/* Intuitive descending visual indicator paired right beside FORMING SHELF */
.strip-rank-taper {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 11px;
  opacity: 0.92;
  transform: translateY(-1px);
}

.strip-rank-taper i {
  display: block;
  width: 2.5px;
  border-radius: 1.5px;
}

.strip-rank-taper .t1 { height: 11px; background: rgba(232, 188, 118, 0.92); }
.strip-rank-taper .t2 { height: 8px; background: rgba(232, 188, 118, 0.62); }
.strip-rank-taper .t3 { height: 5.5px; background: rgba(243, 241, 236, 0.36); }
.strip-rank-taper .t4 { height: 3px; background: rgba(243, 241, 236, 0.2); }

.strip-row {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  overflow: visible;
  height: 116px;
  min-height: 116px;
  padding: 23px 0 5px;
}

.strip-pinned-wing {
  display: inline-flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.strip-pinned-sep {
  display: inline-block;
  width: 1px;
  height: 44px;
  margin: 0 2px 4px;
  background: linear-gradient(180deg, transparent, rgba(232, 188, 118, 0.32), transparent);
  flex-shrink: 0;
}

.strip-zoom-window {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  position: relative;
  will-change: transform, filter, opacity;
}

.strip-edge-cue {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  color: rgba(243, 241, 236, 0.3);
  padding-bottom: 18px;
  user-select: none;
  flex-shrink: 0;
}

/* Warm-to-obsidian horizontal shelf rail tapering left -> right */
.strip-shelf-rail {
  height: 1.5px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(232, 188, 118, 0.62) 0%,
    rgba(232, 188, 118, 0.24) 32%,
    rgba(255, 255, 255, 0.09) 72%,
    transparent 100%
  );
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.strip-sleeve-unit {
  --sleeve-size: 46px;
  position: relative;
  width: var(--sleeve-size);
  flex: 0 0 var(--sleeve-size);
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 5-slot physical taper left -> right, filling the Shelf Rail proportionally */
.strip-sleeve-unit.tier-0 { --sleeve-size: 60px; }
.strip-sleeve-unit.tier-1 { --sleeve-size: 55px; }
.strip-sleeve-unit.tier-2 { --sleeve-size: 51px; }
.strip-sleeve-unit.tier-3 { --sleeve-size: 47px; }
.strip-sleeve-unit.tier-4 { --sleeve-size: 43px; }
.strip-sleeve-unit.tier-pinned { --sleeve-size: 56px; }

/* Newly shelved & scored album sits noticeably larger as the centerpiece of the Forming Shelf */
@keyframes shelvedHeroBloom {
  0% {
    transform: scale(0.88);
  }
  65% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.strip-sleeve-unit.is-shelved-hero {
  --sleeve-size: 88px;
  z-index: 9;
}

.strip-sleeve-unit.is-shelved-hero .strip-item {
  animation: shelvedHeroBloom 0.38s cubic-bezier(0.16, 0.92, 0.24, 1) both;
}

.strip-sleeve-unit.is-shelved-hero .strip-score-cap {
  height: 23px;
}

.strip-sleeve-unit.is-shelved-hero .strip-score-num {
  font-size: 13px;
  font-weight: 700;
}

.strip-sleeve-unit.has-open-drawer {
  z-index: 8;
}

.strip-item {
  width: var(--sleeve-size);
  height: var(--sleeve-size);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #14151a;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, border-color 0.2s ease, border-radius 0.2s ease;
}

.strip-sleeve-unit.tier-0 .strip-item {
  border-color: rgba(232, 188, 118, 0.46);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(232, 188, 118, 0.14);
}

.strip-sleeve-unit.tier-3 .strip-item { opacity: 0.9; }
.strip-sleeve-unit.tier-4 .strip-item { opacity: 0.78; }

.strip-item.provisional {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.24);
  opacity: 0.7;
}

.strip-item.settled {
  cursor: pointer;
}

.strip-item.is-drawer-target {
  border-color: rgba(232, 188, 118, 0.72);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(232, 188, 118, 0.3), 0 6px 16px rgba(0, 0, 0, 0.52);
}

/* Visual mirror of .strip-vertical-drawer: warm-gold score cap rising flush above ONLY the newly shelved album */
@keyframes scoreCapIlluminate {
  0% {
    opacity: 0;
    transform: translateY(100%);
    box-shadow: 0 0 0 0 rgba(232, 188, 118, 0);
  }
  58% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 -4px 18px rgba(232, 188, 118, 0.48), inset 0 1px 0 rgba(255, 242, 212, 0.34);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 -3px 14px rgba(232, 188, 118, 0.26), inset 0 1px 0 rgba(255, 242, 212, 0.22);
  }
}

.strip-score-cap {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 0;
  right: 0;
  width: 100%;
  height: 23px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 1px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #2a241b 0%, #141419 100%);
  border: 1px solid rgba(232, 188, 118, 0.72);
  border-bottom: none;
  box-shadow:
    0 -3px 14px rgba(232, 188, 118, 0.26),
    inset 0 1px 0 rgba(255, 242, 212, 0.22);
  color: #f8dfa9;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1), opacity 0.2s ease;
}

.strip-rank-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Progressive visual weight & bombast from #1 -> Top 4 -> Top 10 -> Top 50 -> Top 100 -> Deep */
.strip-rank-num.rank-tier-1 {
  font-size: 14px;
  font-weight: 900;
  color: #fff9e6;
  text-shadow: 0 0 10px rgba(255, 224, 146, 0.92), 0 0 20px rgba(232, 188, 118, 0.65);
}

.strip-rank-num.rank-tier-top4 {
  font-size: 13px;
  font-weight: 800;
  color: #ffe7ad;
  text-shadow: 0 0 8px rgba(232, 188, 118, 0.65);
}

.strip-rank-num.rank-tier-top10 {
  font-size: 12.5px;
  font-weight: 700;
  color: #f2cb7f;
}

.strip-rank-num.rank-tier-top50 {
  font-size: 11.5px;
  font-weight: 600;
  color: #d6dde8;
}

.strip-rank-num.rank-tier-top100 {
  font-size: 11px;
  font-weight: 500;
  color: rgba(243, 241, 236, 0.72);
}

.strip-rank-num.rank-tier-forming {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(243, 241, 236, 0.72);
}

.strip-rank-num.rank-tier-deep {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(243, 241, 236, 0.48);
}

/* Tier-calibrated cap & sleeve aura intensity */
.strip-score-cap.rank-tier-1 {
  height: 25px;
  background: linear-gradient(180deg, #5c451f 0%, #241c11 100%);
  border-color: rgba(255, 232, 168, 0.96);
  box-shadow:
    0 -4px 22px rgba(245, 206, 124, 0.62),
    0 0 14px rgba(255, 244, 210, 0.35),
    inset 0 1px 0 rgba(255, 252, 236, 0.55);
}

.strip-sleeve-unit.is-shelved-hero.rank-tier-1 .strip-item {
  border-color: rgba(255, 232, 168, 0.96);
  box-shadow:
    0 0 0 1.5px rgba(255, 232, 168, 0.65),
    0 0 28px rgba(242, 196, 108, 0.55),
    0 8px 22px rgba(0, 0, 0, 0.6);
}

.strip-score-cap.rank-tier-top4 {
  background: linear-gradient(180deg, #42331c 0%, #1a1714 100%);
  border-color: rgba(244, 204, 128, 0.85);
  box-shadow: 0 -3px 18px rgba(232, 188, 118, 0.42), inset 0 1px 0 rgba(255, 244, 214, 0.34);
}

.strip-sleeve-unit.is-shelved-hero.rank-tier-top4 .strip-item {
  border-color: rgba(244, 204, 128, 0.86);
  box-shadow: 0 0 0 1px rgba(244, 204, 128, 0.44), 0 0 18px rgba(232, 188, 118, 0.34), 0 8px 18px rgba(0, 0, 0, 0.55);
}

.strip-score-cap.rank-tier-top50 {
  border-color: rgba(206, 216, 232, 0.52);
  background: linear-gradient(180deg, #252831 0%, #14151b 100%);
  box-shadow: 0 -2px 10px rgba(186, 200, 224, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.strip-score-cap.rank-tier-top100,
.strip-score-cap.rank-tier-deep {
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, #1d1e24 0%, #13141a 100%);
  box-shadow: none;
  color: rgba(243, 241, 236, 0.82);
}

.strip-shelved-sticker.rank-tier-1 {
  font-size: 8.5px;
  padding: 3.5px 8px 3.5px 7px;
  color: #130f06;
  background: linear-gradient(125deg, #ffffff 0%, #fff1be 28%, #f3c460 64%, #fff8dc 100%);
  border-color: rgba(255, 252, 238, 0.98);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(255, 222, 140, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.strip-shelved-sticker.rank-tier-top50 {
  color: #141820;
  background: linear-gradient(130deg, #f6f8fb 0%, #bcc6d4 52%, #e6ecf4 100%);
  border-color: rgba(235, 242, 252, 0.88);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.52), 0 0 10px rgba(200, 214, 234, 0.28);
}

.strip-shelved-sticker.rank-tier-top100,
.strip-shelved-sticker.rank-tier-deep {
  color: rgba(243, 241, 236, 0.88);
  background: linear-gradient(135deg, #2b2d36 0%, #1d1f26 100%);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.48);
}

.strip-shelved-sticker.rank-tier-top100 .strip-shelved-star,
.strip-shelved-sticker.rank-tier-deep .strip-shelved-star {
  color: var(--accent);
}

.strip-score-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}

.strip-score-cap.is-just-lit {
  animation: scoreCapIlluminate 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.strip-score-cap.is-retracting {
  opacity: 0;
  transform: translateY(100%);
}

/* Tilted brushed-gold foil "✦ SHELVED" hype sticker perched on the corner of the enlarged cover */
@keyframes shelvedStickerSlap {
  0% {
    opacity: 0;
    transform: rotate(-16deg) scale(1.28) translate(-3px, -5px);
  }
  65% {
    opacity: 1;
    transform: rotate(-8.5deg) scale(0.97) translate(0, 0);
  }
  100% {
    opacity: 1;
    transform: rotate(-9deg) scale(1) translate(0, 0);
  }
}

.strip-shelved-sticker {
  position: absolute;
  top: 6px;
  left: -17px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px 3px 6px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: #191207;
  background: linear-gradient(128deg, #fff4d2 0%, #f1c772 34%, #d99f41 70%, #fae3ab 100%);
  background-size: 200% 200%;
  border: 1px solid rgba(255, 244, 214, 0.88);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.58),
    0 0 12px rgba(232, 188, 118, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: rotate(-9deg);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.22s ease;
}

.strip-shelved-sticker::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, 0.72) 50%, transparent 76%);
  transform: translateX(-140%);
  animation: hypeFoilSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

.strip-shelved-sticker.is-fresh {
  animation: shelvedStickerSlap 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.strip-shelved-sticker.is-retracting {
  opacity: 0;
  transform: rotate(-14deg) scale(0.84) translateY(-4px);
}

.strip-shelved-star {
  font-size: 7.5px;
  line-height: 1;
  color: #2b1d08;
}

.strip-item.settled:hover {
  border-color: rgba(232, 188, 118, 0.58);
}

@keyframes stripIntroPulse {
  0%, 100% {
    box-shadow: 0 0 0 1.5px rgba(232, 188, 118, 0.75), 0 0 16px rgba(232, 188, 118, 0.32);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(246, 212, 148, 0.92), 0 0 24px rgba(232, 188, 118, 0.54);
  }
}

.strip-item.is-drawer-intro {
  animation: stripIntroPulse 2s ease-in-out infinite;
}

.strip-note-dot {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1.5px rgba(12, 12, 15, 0.88);
  pointer-events: none;
}

/* Symbol-only physical vertical drawer sliding straight down from its specific album sleeve */
@keyframes verticalDrawerSlide {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.strip-vertical-drawer {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  width: 100%;
  height: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 1px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #101116 0%, #1a1b23 100%);
  border: 1px solid rgba(232, 188, 118, 0.46);
  border-top: none;
  box-shadow:
    inset 0 5px 7px -4px rgba(0, 0, 0, 0.85),
    0 9px 18px rgba(0, 0, 0, 0.52);
  color: var(--accent);
  cursor: pointer;
  animation: verticalDrawerSlide 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease,
    transform 0.22s cubic-bezier(0.4, 0, 1, 1),
    opacity 0.2s ease;
}

.strip-vertical-drawer:hover,
.strip-vertical-drawer:focus-visible {
  background: linear-gradient(180deg, rgba(24, 22, 19, 0.98) 0%, rgba(38, 33, 25, 0.98) 100%);
  border-color: rgba(232, 188, 118, 0.78);
  color: #fff3da;
  outline: none;
}

.strip-vertical-drawer.is-intro {
  border-color: rgba(232, 188, 118, 0.72);
  box-shadow:
    inset 0 5px 7px -4px rgba(0, 0, 0, 0.85),
    0 9px 20px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(232, 188, 118, 0.28);
}

.strip-vertical-drawer.is-retracting {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.strip-drawer-emblem {
  width: 14px;
  height: 14px;
  display: block;
}

/* Quiet tooltip on hover for the symbol-only vertical drawer */
.strip-vertical-drawer[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-3px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 30;
}

.strip-vertical-drawer[data-tip]:hover::after,
.strip-vertical-drawer[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes stripWhisperIn {
  0% { opacity: 0; transform: translateX(-6px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* One-time intro pulse whisper tucked cleanly beside/below the vertical drawer */
.strip-drawer-intro-whisper {
  position: absolute;
  top: calc(100% + 3px);
  left: calc(100% + 8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(243, 241, 236, 0.82);
  background: rgba(18, 19, 24, 0.96);
  border: 1px solid rgba(232, 188, 118, 0.34);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.52);
  z-index: 20;
  animation: stripWhisperIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.strip-drawer-intro-whisper.is-retracting {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.strip-note-intro-dismiss {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1;
  padding: 1px 4px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.strip-note-intro-dismiss:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Quick Liner Note Overlay */
.quick-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.quick-note-album {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.quick-note-cover {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.quick-note-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

.quick-note-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.quick-note-section-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.quick-note-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.quick-note-hint {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* On-Shelf "Just shelved" + inline Liner Note composer & Album Page Add Note button */
.just-shelved-pill {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232, 188, 118, 0.11);
  border: 1px solid rgba(232, 188, 118, 0.28);
  flex-shrink: 0;
}

.shelf-add-note-row {
  margin-top: 6px;
}

.shelf-add-note-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.shelf-add-note-pill:hover {
  color: #f6ddb0;
  border-color: rgba(232, 188, 118, 0.45);
  background: rgba(232, 188, 118, 0.09);
}

.note-add-emblem {
  opacity: 0.36;
  transition: opacity 0.16s ease, color 0.14s ease, background-color 0.14s ease;
}

.note-add-emblem.is-fresh {
  opacity: 0.72;
  color: var(--accent);
}

.ranked-row:hover .note-add-emblem,
.note-add-emblem:focus-visible {
  opacity: 0.96;
}

.row-notes-edit-btn {
  font-size: 12px;
  padding: 3px 8px;
  color: var(--text-muted);
}

.row-notes-edit-btn:hover {
  color: var(--accent);
}

.shelf-inline-composer {
  margin: 4px 10px 14px 44px;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(16, 17, 22, 0.88);
  border: 1px solid rgba(232, 188, 118, 0.24);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shelf-compose-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shelf-compose-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 52px;
}

.shelf-compose-emojis {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.shelf-compose-emoji {
  width: 30px;
  height: 30px;
  font-size: 14.5px;
}

.shelf-compose-textarea {
  min-height: 62px;
  font-size: 13px;
}

.shelf-compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shelf-compose-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

.shelf-compose-btn {
  padding: 5px 12px;
  font-size: 12px;
}

.album-notes-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.strip-item.bumped {
  border-color: var(--accent);
  animation: stripPop 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.strip-item.just-settled {
  border-style: solid;
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-soft);
  animation: settledGlow 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes settledGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  40% {
    transform: scale(1.16) translateY(-2px);
    box-shadow: 0 0 18px var(--accent-border);
  }
  100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes stripPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.2) translateY(-3px); }
  100% { transform: scale(1) translateY(0); }
}

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

/* ==================== MATCHUP DECK (FRAMELESS, STYLIZED, SNAPPY) ==================== */
.deck-screen {
  max-width: 700px;
  margin: 0 auto;
  padding: 14px 20px 18px;
  height: 100dvh;
  overflow-y: hidden;
  overflow-x: visible;
  display: flex;
  flex-direction: column;
  position: relative;
}

.deck-screen.in-app-shell {
  height: calc(100dvh - var(--app-header-h, 61px) - 7px);
  min-height: 0;
  padding: 6px 8px 12px;
  overflow-y: hidden;
  overflow-x: visible;
}

.deck-screen .deck-stage {
  flex: 1;
  min-height: 0;
  justify-content: safe center;
  padding: 0 0 8px;
}

.deck-screen .deck-prompt {
  margin-bottom: clamp(12px, 2.2dvh, 22px);
}

.deck-screen .matchup-grid {
  justify-items: center;
}

.deck-screen .album-choice-wrap {
  width: 100%;
  max-width: clamp(196px, 34.5dvh, 302px);
}

.deck-screen .micro-toast {
  margin-top: clamp(10px, 2dvh, 18px);
  min-height: 24px;
}

.deck-screen .kbd-hint {
  margin-top: 6px;
}

@media (max-height: 580px), (max-width: 600px) {
  .deck-screen,
  .deck-screen.in-app-shell {
    height: auto;
    min-height: calc(100dvh - 64px);
    overflow: visible;
    padding-bottom: 28px;
  }
  .deck-screen .album-choice-wrap {
    max-width: none;
  }
}

.deck-shell-subbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.deck-clear-focus {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--text-muted);
}

/* Ambient palette aura that softly blooms on pick */
.deck-aura {
  position: fixed;
  top: 42%;
  left: 50%;
  width: 680px;
  height: 680px;
  margin-left: -340px;
  margin-top: -340px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--pick-glow) 0%, transparent 68%);
  opacity: 0;
  transform: scale(0.84);
  will-change: transform, opacity;
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-aura.bloom {
  opacity: 1;
  transform: scale(1.16);
  transition: opacity 0.2s ease-out, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-topbar, .strip-wrap, .deck-stage {
  position: relative;
  z-index: 1;
}

.deck-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.deck-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-progress-label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.deck-progress-mini {
  width: 64px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.deck-progress-mini-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.deck-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 0 12px;
}

.deck-prompt {
  text-align: center;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.matchup-grid {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: 22px;
  align-items: start;
}

/* Focus contrast: hovering one sleeve quietly dims the other */
.matchup-grid:hover .album-choice-wrap:not(:hover) .album-card:not(.outgoing-ghost):not(.is-rack-in):not(.is-rack-in-stagger) {
  opacity: 0.72;
  transform: scale(0.988);
}

/* Soft silent settle beat when user rapid-fires picks (zero warnings, just tactile weight) */
.matchup-grid.is-settling .album-card {
  cursor: default;
}

.matchup-grid.is-settling .album-card:hover .cover-stage {
  transform: translateY(-1px) scale(1.004);
}

.vs-divider {
  align-self: center;
  margin-top: -58px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: rgba(243, 241, 236, 0.78);
  letter-spacing: -0.01em;
  user-select: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.matchup-grid.picking .vs-divider {
  opacity: 0;
  transform: scale(0.7);
}

.album-choice-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Frameless editorial sleeve (no heavy outer card box!) */
.album-card {
  width: 100%;
  text-align: left;
  position: relative;
  will-change: transform, opacity;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
}

.album-card:hover {
  transform: translateY(-2px);
}

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

.cover-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 13px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  will-change: transform, opacity;
  transition:
    border-color 0.18s ease,
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.album-card:hover .cover-stage {
  transform: translateY(-6px) scale(1.016);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.62), 0 0 32px var(--card-tint, rgba(230, 184, 110, 0.18));
}

.album-card:active .cover-stage {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.09s;
}

.album-cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.album-card:hover .album-cover {
  transform: scale(1.022);
}

/* Diagonal vinyl-sleeve sheen sweep on pick */
.cover-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(255, 255, 255, 0.06) 62%,
    transparent 78%
  );
  transform: translateX(-130%);
  opacity: 0;
  will-change: transform, opacity;
}

/* Minimal editorial stamp that appears on the picked sleeve */
/* ---- Apple Fluid Simultaneous Rack-Focus Crossfade (zero wait, zero pop-in) ---- */
.outgoing-ghost {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.outgoing-ghost.ghost-win {
  animation: rackOutWin 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.outgoing-ghost.ghost-win .cover-stage,
.album-card.is-anchored-win .cover-stage {
  border-color: rgba(239, 237, 231, 0.48);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.56), 0 0 54px var(--card-tint, rgba(230, 184, 110, 0.42));
}

.outgoing-ghost.ghost-win .cover-sheen,
.album-card.is-anchored-win .cover-sheen {
  animation: sheenSweep 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.outgoing-ghost.ghost-lose {
  animation: rackOutLose 0.28s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.outgoing-ghost.ghost-toss-left {
  z-index: 6;
  animation: tossOutLeft 0.4s cubic-bezier(0.22, 0.86, 0.34, 1) forwards;
}

.outgoing-ghost.ghost-toss-right {
  z-index: 6;
  animation: tossOutRight 0.4s cubic-bezier(0.22, 0.86, 0.34, 1) forwards;
}

@keyframes tossOutLeft {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  20% {
    opacity: 0.96;
    transform: translate3d(-26px, -12px, 0) rotate(-6deg) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translate3d(-310px, 46px, 0) rotate(-24deg) scale(0.78);
  }
}

@keyframes tossOutRight {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  20% {
    opacity: 0.96;
    transform: translate3d(26px, -12px, 0) rotate(6deg) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translate3d(310px, 46px, 0) rotate(24deg) scale(0.78);
  }
}

@media (prefers-reduced-motion: reduce) {
  .outgoing-ghost.ghost-toss-left,
  .outgoing-ghost.ghost-toss-right {
    animation: rackOutLose 0.18s ease forwards;
  }
}

/* Incoming card emerges smoothly from soft depth right as outgoing ghost clears */
.album-card.is-rack-in {
  animation: rackInFocus 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.06s backwards;
}

.album-card.is-rack-in-stagger {
  animation: rackInFocus 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.095s backwards;
}

/* Anchored target in placement mode: critically damped tactile breath without vanishing */
.album-card.is-anchored-win {
  animation: anchoredWinPulse 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.album-card.is-anchored-yield {
  animation: anchoredYield 0.36s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes rackOutWin {
  0%   { transform: scale(0.985) translateY(0); opacity: 1; filter: blur(0px); }
  38%  { transform: scale(1.035) translateY(-3px); opacity: 0.9; filter: blur(0.6px); }
  100% { transform: scale(1.055) translateY(-6px); opacity: 0; filter: blur(4px); }
}

@keyframes rackOutLose {
  0%   { transform: scale(1); opacity: 1; filter: blur(0px); }
  100% { transform: scale(0.935); opacity: 0; filter: blur(3px); }
}

@keyframes rackInFocus {
  0%   { opacity: 0; transform: scale(0.945) translateY(6px); filter: blur(3.5px); }
  55%  { opacity: 0.92; filter: blur(0.4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0px); }
}

@keyframes anchoredWinPulse {
  0%   { transform: scale(0.982); }
  42%  { transform: scale(1.024) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes anchoredYield {
  0%   { opacity: 1; transform: scale(1); }
  45%  { opacity: 0.68; transform: scale(0.982); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes sheenSweep {
  0%   { transform: translateX(-125%); opacity: 0; }
  32%  { opacity: 0.82; }
  100% { transform: translateX(125%); opacity: 0; }
}

.album-title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.22;
  color: var(--text);
  margin-bottom: 2px;
  padding: 0 2px;
}

.album-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 0 2px;
}

/* Tactile matte die-cut record-shop crimson sticker (opaque, crisp die-cut border, zero glow) */
.not-familiar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 9px;
  min-height: 33px;
  padding: 6px 15px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff6ee;
  background: linear-gradient(180deg, #b9332c 0%, #992520 100%);
  border: 1.5px solid rgba(244, 232, 218, 0.88);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.48),
    0 8px 18px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  transform: rotate(-1.1deg);
  opacity: 1;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    transform 0.15s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.14s ease;
}

#slot-right .not-familiar-btn {
  transform: rotate(1.1deg);
}

.not-familiar-btn svg {
  width: 13px;
  height: 13px;
  color: #fff6ee;
  opacity: 0.94;
  flex-shrink: 0;
  transition: transform 0.14s ease;
}

.not-familiar-btn:hover,
.not-familiar-btn:focus-visible,
#slot-right .not-familiar-btn:hover,
#slot-right .not-familiar-btn:focus-visible {
  color: #ffffff;
  background: linear-gradient(180deg, #ca3a32 0%, #aa2b25 100%);
  border-color: #fff8f0;
  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.5),
    0 12px 22px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px) rotate(0deg);
  outline: none;
}

.not-familiar-btn:hover svg,
.not-familiar-btn:focus-visible svg {
  transform: scale(1.06);
}

.not-familiar-btn:active,
#slot-right .not-familiar-btn:active {
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.38);
  transform: translateY(1px) rotate(0deg);
}

.matchup-grid.picking .not-familiar-btn {
  opacity: 0;
}

/* Post-pick micro-feedback line (quiet typographic whisper, no clunky box) */
.micro-toast {
  margin-top: 20px;
  min-height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.micro-pill {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 99px;
  animation: toastWhisper 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.micro-pill.upset {
  color: var(--accent);
  background: var(--accent-soft);
}

.micro-pill.is-streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 188, 118, 0.1), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(232, 188, 118, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.micro-streak-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(232, 188, 118, 0.65);
  flex-shrink: 0;
}

.micro-streak-artist {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text);
}

.micro-streak-sep {
  font-size: 11.5px;
  color: var(--text-muted);
}

.micro-streak-rec {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(232, 188, 118, 0.14);
  border: 1px solid rgba(232, 188, 118, 0.3);
  font-variant-numeric: tabular-nums;
}

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

.kbd-hint {
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-top: 10px;
}

/* ==================== SNAPSHOT / COMPLETION BEAT ==================== */
.snapshot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin: 20px auto;
  max-width: 540px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.snapshot-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 6px;
}

.snapshot-sub {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.snapshot-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.stat-val {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

/* ==================== SHARE CARD ARTIFACT & STUDIO ==================== */
.share-card-preview {
  border-radius: 14px;
  padding: 20px 22px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 12% 10%, var(--c1, var(--p1)), transparent 58%),
    radial-gradient(circle at 88% 12%, var(--c2, var(--p2)), transparent 58%),
    radial-gradient(circle at 20% 90%, var(--c3, var(--p3)), transparent 58%),
    radial-gradient(circle at 85% 88%, var(--c4, var(--p4)), transparent 58%),
    var(--surface);
  margin-bottom: 18px;
  transition: background 0.22s ease;
}

.share-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.share-card-label {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.share-card-handle {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(239, 237, 231, 0.88);
}

.share-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 14px;
}

.share-cover-tile {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(9, 11, 14, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.065);
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.14s ease;
}

.share-cover-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.share-cover-tile.empty-slot {
  cursor: default;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.012);
  border: 1px dashed rgba(255, 255, 255, 0.09);
}

.share-cover-tile.empty-slot:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.09);
}

.empty-sleeve {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.14);
}

.empty-sleeve svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
}

.tile-spacer {
  visibility: hidden;
  user-select: none;
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.share-cover-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
}

.tile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 9px 9px;
}

.tile-text {
  min-width: 0;
  flex: 1;
}

.share-cover-tile .tile-title {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.14s ease, text-shadow 0.14s ease;
}

.share-cover-tile:not(.empty-slot):hover .tile-title {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-shadow: 0 0 0.45px currentColor;
}

.tile-score {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.tile-score.tier-high { color: var(--accent); }
.tile-score.tier-mid  { color: #dcd9d1; }
.tile-score.tier-low  { color: var(--text-muted); }

.share-cover-tile .tile-artist {
  display: block;
  width: fit-content;
  max-width: 100%;
  text-align: left;
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.share-watermark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.015em;
  color: rgba(239, 237, 231, 0.78);
}

.share-brand {
  margin-left: auto;
}

.card-share-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
}

.card-share-actions .icon-btn {
  padding: 5px 10px;
  font-size: 11.5px;
  background: rgba(9, 11, 14, 0.42);
  border-color: rgba(255, 255, 255, 0.14);
}

.card-share-actions .icon-btn:hover {
  background: rgba(9, 11, 14, 0.68);
  border-color: rgba(255, 255, 255, 0.3);
}

.profile-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.share-btn-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

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

.icon-btn.done {
  border-color: var(--accent-border);
  color: var(--accent);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 17px;
  border-radius: 99px;
  background: var(--text);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.975); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.btn-ghost {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 99px;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* ==================== FLOATING MINI-CRATE DOCK (GLOBAL LIBRARY IMPORT) ==================== */
.app-shell.has-crate {
  padding-bottom: 96px;
}

.floating-crate-dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 45;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 9px 18px 11px 12px;
  border-radius: 9999px;
  background:
    radial-gradient(circle at 14% 50%, var(--dc1, var(--accent-soft)), transparent 58%),
    radial-gradient(circle at 82% 50%, var(--dc2, rgba(120, 124, 134, 0.2)), transparent 58%),
    var(--drawer-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62), 0 0 28px var(--dc1, rgba(230, 184, 110, 0.12));
  color: var(--text);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, box-shadow 0.22s ease;
}

.floating-crate-dock:hover {
  transform: translateX(-50%) translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.7), 0 0 36px var(--dc1, rgba(230, 184, 110, 0.2));
}

.floating-crate-dock:active {
  transform: translateX(-50%) scale(0.98);
}

.crate-fan-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  width: 56px;
  flex-shrink: 0;
}

.crate-fan-stack.pair {
  width: 44px;
}

.crate-fan-stack.single {
  width: 32px;
}

.crate-fan-cover {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  will-change: transform;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.crate-fan-cover.c1 { left: 0; z-index: 3; transform: rotate(-6deg); }
.crate-fan-cover.c2 { left: 12px; z-index: 2; transform: rotate(1deg); }
.crate-fan-cover.c3 { left: 24px; z-index: 1; transform: rotate(7deg); }

.crate-fan-stack.single .crate-fan-cover.c1 { transform: rotate(0deg); }

.floating-crate-dock:hover .crate-fan-cover.c1 { transform: translateX(-3px) rotate(-11deg) translateY(-1px); }
.floating-crate-dock:hover .crate-fan-cover.c2 { transform: translateY(-2.5px) rotate(0deg); }
.floating-crate-dock:hover .crate-fan-cover.c3 { transform: translateX(3px) rotate(11deg) translateY(-1px); }
.floating-crate-dock:hover .crate-fan-stack.single .crate-fan-cover.c1 { transform: scale(1.06) translateY(-1px); }

.crate-dock-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}

.crate-dock-title {
  font-family: var(--serif);
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.crate-dock-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.crate-dock-arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  margin-left: 6px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-crate-dock:hover .crate-dock-arrow {
  transform: translateX(3px);
}

.crate-dock-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.crate-dock-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--dp1, var(--accent)), var(--accent));
  opacity: 0.85;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==================== FEED TAB (HAIRLINE EDITORIAL LIST) ==================== */

.feed-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pill-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.12s ease;
}

.pill.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  color: var(--text);
}

.pill.set {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.pill.dimmed {
  opacity: 0.36;
}

.filter-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.filter-tray {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 10px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.filter-tray-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.tray-section-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.tray-section-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 56px;
}

.review-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
  font-size: 12.5px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-handle {
  font-weight: 600;
  color: var(--text);
}

.handle-link {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color 0.12s ease;
}

.review-user .handle-link,
.review-user .review-handle {
  font-size: 14.5px;
  font-weight: 650;
  color: #f6f2eb;
  letter-spacing: -0.01em;
}

.handle-link:hover,
.review-user .handle-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.artist-link {
  color: inherit;
  cursor: pointer;
  transition: color 0.14s ease, text-shadow 0.14s ease;
}

.artist-link:hover,
.artist-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-shadow: 0 0 0.45px currentColor;
  outline: none;
}

.album-inline-link {
  display: inline;
  font: inherit;
  color: inherit;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.14s ease, text-shadow 0.14s ease;
}

.album-inline-link:hover,
.album-inline-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-shadow: 0 0 0.45px currentColor;
  outline: none;
}

/* ==================== ARTIST PAGE (RYM DEPTH, LETTERBOXD SURFACE) ==================== */
.artist-hero {
  border-radius: 14px;
  padding: 24px 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 22px;
  background:
    radial-gradient(circle at 12% 10%, var(--a1, var(--p1)), transparent 58%),
    radial-gradient(circle at 88% 16%, var(--a2, var(--p2)), transparent 58%),
    linear-gradient(180deg, rgba(17, 20, 25, 0.72), var(--surface));
}

.artist-hero-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.artist-hero-copy {
  flex: 1;
  min-width: 0;
}

.artist-portrait-wrap {
  flex-shrink: 0;
  width: 124px;
  height: 124px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.artist-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.artist-portrait-img.is-loaded {
  opacity: 1;
}

@media (max-width: 540px) {
  .artist-hero-layout {
    gap: 14px;
  }
  .artist-portrait-wrap {
    width: 84px;
    height: 84px;
    border-radius: 12px;
  }
}

.artist-name-h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.artist-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.artist-bio {
  font-size: 14px;
  color: #dcd9d1;
  max-width: 580px;
  margin-bottom: 12px;
  line-height: 1.55;
}

.artist-members {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.artist-meta-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.artist-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 18px;
}

.artist-progress-bar {
  width: 110px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.artist-progress-fill {
  height: 100%;
  background: var(--accent);
}

.disco-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.disco-group-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 16px 0 6px;
}

.disco-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 10px;
  margin: 0 -4px;
  border-radius: 10px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  will-change: transform;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.18s ease,
    box-shadow 0.22s ease,
    border-color 0.18s ease;
}

.disco-row:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.042);
  border-bottom-color: transparent;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.disco-row:focus-within {
  z-index: 2;
}

.disco-row:active {
  transform: translateY(-0.5px) scale(0.996);
}

.disco-cover {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.disco-row:hover .disco-cover {
  transform: scale(1.045);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.disco-title {
  font-family: var(--serif);
  font-size: 16.5px;
  cursor: pointer;
  line-height: 1.2;
  width: fit-content;
  max-width: 100%;
  transition: color 0.14s ease, text-shadow 0.14s ease;
}

.disco-title:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-shadow: 0 0 0.45px currentColor;
}

.disco-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.disco-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.disco-crowd {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.disco-crowd-score {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
}

.disco-crowd-count {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}

.disco-mine {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  min-width: 71px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  cursor: pointer;
}

.disco-mine-score {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.15;
}

.disco-mine-label {
  font-size: 10px;
  color: var(--accent);
  opacity: 0.72;
  margin-top: 2px;
}

.match-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
}

.match-badge.tier-twin {
  color: var(--accent);
}

.match-badge.tier-wavelength {
  color: var(--accent);
  opacity: 0.9;
}

.match-badge.tier-shared {
  color: var(--text-muted);
}

.match-badge.tier-adjacent {
  color: var(--text-muted);
  opacity: 0.85;
}

.match-badge.tier-opposite {
  color: var(--text-dim);
}

/* ==================== 02C PRISMATIC VINYL SHEEN TYPE — 5-TIER HI-FI VU SYSTEM ==================== */
.taste-vu-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  border-radius: 999px;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

.taste-vu-badge.is-compact {
  gap: 4.5px;
}

.taste-vu-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.taste-vu-badge.is-compact .taste-vu-bars {
  gap: 1.5px;
  height: 8.5px;
}

.taste-vu-bar {
  width: 2.2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  transform-origin: bottom center;
}

.taste-vu-badge.is-compact .taste-vu-bar {
  width: 1.8px;
}

.taste-vu-bar.b1 { height: 4px; }
.taste-vu-bar.b2 { height: 6px; }
.taste-vu-bar.b3 { height: 8px; }
.taste-vu-bar.b4 { height: 10px; }
.taste-vu-bar.b5 { height: 12px; }

.taste-vu-badge.is-compact .taste-vu-bar.b1 { height: 2.5px; }
.taste-vu-badge.is-compact .taste-vu-bar.b2 { height: 4px; }
.taste-vu-badge.is-compact .taste-vu-bar.b3 { height: 5.5px; }
.taste-vu-badge.is-compact .taste-vu-bar.b4 { height: 7px; }
.taste-vu-badge.is-compact .taste-vu-bar.b5 { height: 8.5px; }

/* Level 1 — Opposite ends */
.taste-vu-badge.is-lvl-1 {
  padding: 2px 2px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: rgba(242, 237, 230, 0.32);
}

.taste-vu-badge.is-lvl-1.is-compact {
  font-size: 10px;
}

.taste-vu-badge.is-lvl-1 .taste-vu-bar.is-lit {
  background: rgba(242, 237, 230, 0.3);
}

/* Level 2 — Adjacent taste */
.taste-vu-badge.is-lvl-2 {
  padding: 3.5px 9px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.taste-vu-badge.is-lvl-2.is-compact {
  padding: 2px 6px;
  font-size: 10px;
}

.taste-vu-badge.is-lvl-2 .taste-vu-bar.is-lit {
  background: rgba(242, 237, 230, 0.52);
}

/* Level 3 — Shared shelf */
.taste-vu-badge.is-lvl-3 {
  padding: 4px 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: #ded6ca;
  background: rgba(255, 248, 236, 0.045);
  border: 1px solid rgba(255, 245, 230, 0.15);
}

.taste-vu-badge.is-lvl-3.is-compact {
  padding: 2px 7px;
  font-size: 10.5px;
}

.taste-vu-badge.is-lvl-3 .taste-vu-bar.is-lit {
  background: #d5cbbd;
}

/* Level 4 — Same wavelength */
.taste-vu-badge.is-lvl-4 {
  padding: 4.5px 11px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(232, 142, 118, 0.13), rgba(236, 192, 110, 0.13));
  border: 1px solid rgba(242, 174, 128, 0.4);
}

.taste-vu-badge.is-lvl-4.is-compact {
  padding: 2.5px 7.5px;
  font-size: 10.5px;
  font-weight: 500;
  border-color: rgba(242, 174, 128, 0.28);
  background: linear-gradient(90deg, rgba(232, 142, 118, 0.09), rgba(236, 192, 110, 0.09));
}

.taste-vu-badge.is-lvl-4 .taste-vu-label {
  background: linear-gradient(90deg, #f8d294, #f2a898);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.taste-vu-badge.is-lvl-4 .taste-vu-bar.b1.is-lit { background: #f2c278; animation: vuBreathe 2.8s ease-in-out infinite 0s; }
.taste-vu-badge.is-lvl-4 .taste-vu-bar.b2.is-lit { background: #f2b682; animation: vuBreathe 2.8s ease-in-out infinite 0.22s; }
.taste-vu-badge.is-lvl-4 .taste-vu-bar.b3.is-lit { background: #ee9f8c; animation: vuBreathe 2.8s ease-in-out infinite 0.44s; }
.taste-vu-badge.is-lvl-4 .taste-vu-bar.b4.is-lit { background: #eb8c94; animation: vuBreathe 2.8s ease-in-out infinite 0.66s; }

@keyframes vuBreathe {
  0%, 100% { transform: scaleY(1); opacity: 0.9; }
  50%      { transform: scaleY(0.76); opacity: 1; }
}

/* Level 5 — Taste twin (02C Prismatic Vinyl Sheen Type) */
.taste-vu-prism-outer {
  display: inline-flex;
  padding: 1.5px;
  border-radius: 999px;
  background: linear-gradient(120deg, #f6c868, #ec829a, #a992f8, #f6c868);
  background-size: 240% 240%;
  animation: prismBorderShimmer 4.2s ease-in-out infinite;
  box-shadow: 0 0 22px rgba(236, 130, 154, 0.28), 0 0 12px rgba(246, 200, 104, 0.25);
  flex-shrink: 0;
}

.taste-vu-prism-outer.is-compact {
  padding: 1px;
  box-shadow: 0 0 12px rgba(236, 130, 154, 0.2), 0 0 6px rgba(246, 200, 104, 0.16);
}

.taste-vu-badge.is-lvl-5 {
  background: #171314;
  padding: 5px 13px;
  gap: 8px;
}

.taste-vu-badge.is-lvl-5.is-compact {
  padding: 2.5px 8.5px;
  gap: 5px;
}

.taste-vu-badge.is-lvl-5 .taste-vu-label {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ffe9a8, #ff9fb4, #c5b6ff, #ffe9a8);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: prismTextShimmer 3.6s linear infinite;
}

.taste-vu-badge.is-lvl-5.is-compact .taste-vu-label {
  font-size: 12px;
}

.taste-vu-badge.is-lvl-5 .taste-vu-bar.b1.is-lit { background: #f6c868; animation: eqBar 1.05s ease-in-out infinite 0s; }
.taste-vu-badge.is-lvl-5 .taste-vu-bar.b2.is-lit { background: #f2a27c; animation: eqBar 0.92s ease-in-out infinite 0.14s; }
.taste-vu-badge.is-lvl-5 .taste-vu-bar.b3.is-lit { background: #ec829a; animation: eqBar 1.15s ease-in-out infinite 0.28s; }
.taste-vu-badge.is-lvl-5 .taste-vu-bar.b4.is-lit { background: #c48cf0; animation: eqBar 0.98s ease-in-out infinite 0.42s; }
.taste-vu-badge.is-lvl-5 .taste-vu-bar.b5.is-lit { background: #a992f8; animation: eqBar 1.1s ease-in-out infinite 0.18s; }

@keyframes eqBar {
  0%, 100% { transform: scaleY(1); }
  45%      { transform: scaleY(0.46); }
  75%      { transform: scaleY(0.88); }
}

@keyframes prismBorderShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes prismTextShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}

.search-person-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Go find your taste twin — 5-tier ascending VU ladder */
.unlock-taste-ladder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  margin: 6px 0 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.unlock-taste-ladder-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.unlock-taste-ladder-row.is-lvl-5 {
  margin-top: 4px;
}

.review-body-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: start;
}

.review-cover {
  width: 74px;
  height: 74px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.14s ease;
}

.review-cover:hover {
  transform: scale(1.03);
}

.review-album-title {
  font-family: var(--serif);
  font-size: 17px;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
  transition: color 0.14s ease, text-shadow 0.14s ease;
}

.review-album-title:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-shadow: 0 0 0.45px currentColor;
}

.review-album-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.review-text {
  font-size: 14px;
  color: #dad7cf;
  margin-bottom: 9px;
}

.vibe-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.vibe-chip {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 99px;
}

.review-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.comments-box {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  font-size: 12.5px;
}

.comment-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 2.5px 0;
  margin-bottom: 3px;
  color: var(--text-muted);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.comment-line.is-removing {
  opacity: 0;
  transform: translateY(-2px);
}

.comment-main {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
  word-break: break-word;
}

.comment-author-self {
  color: var(--text);
  font-weight: 500;
}

.comment-edited-tag {
  margin-left: 5px;
  font-size: 11px;
  color: var(--text-dim);
}

.comment-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: -1px;
}

.comment-owner-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.comment-line:hover .comment-owner-actions,
.comment-line:focus-within .comment-owner-actions {
  opacity: 1;
}

.comment-action-btn {
  background: none;
  border: none;
  padding: 1px 3px;
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
  opacity: 0.45;
  transition: color 0.14s ease, opacity 0.14s ease;
}

.comment-action-btn:hover,
.comment-action-btn:focus-visible {
  color: var(--text);
  opacity: 1;
}

.comment-action-btn.is-danger:hover,
.comment-action-btn.is-danger:focus-visible {
  color: #e47474;
}

@media (hover: none) {
  .comment-owner-actions {
    opacity: 1;
  }
  .comment-action-btn {
    opacity: 0.78;
  }
}

.btn-ghost.like-btn.comment-like-btn {
  padding: 2px 7px;
  font-size: 11px;
  gap: 4px;
  min-width: 44px;
  justify-content: flex-start;
  font-variant-numeric: tabular-nums;
}

.btn-ghost.like-btn.comment-like-btn:not(.is-liked):not(:hover) {
  color: var(--text-dim);
}

.btn-ghost.like-btn.comment-like-btn .like-heart-glyph {
  font-size: 11.5px;
}

.btn-ghost.like-btn.comment-like-btn .like-count:empty {
  display: none;
}

.comment-edit-form {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.comment-edit-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12.5px;
  color: var(--text);
}

.comment-edit-input:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-line strong {
  color: var(--text);
  font-weight: 500;
}

.comment-timestamp {
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.72;
}

.feed-reply-link {
  background: none;
  border: none;
  padding: 2px 4px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.14s ease;
}

.feed-reply-link:hover {
  color: var(--text);
}

.feed-view-all-replies {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 5px 0 3px;
  padding: 2px 0;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.14s ease;
}

.feed-view-all-replies:hover {
  color: var(--accent);
}

.album-liner-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.album-note-reply-btn {
  font-size: 11.5px;
  padding: 4px 8px;
  color: var(--text-dim);
}

.album-note-reply-btn:hover {
  color: var(--text);
}

/* ==================== REVIEW THREAD PAGE ==================== */
.review-thread-page {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-focal-card {
  margin-bottom: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.026);
  border-color: var(--border-strong);
}

.review-thread-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.review-thread-composer .comment-input {
  border-bottom: none;
  padding: 4px 2px;
  font-size: 13px;
}

.review-thread-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.review-thread-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thread-node {
  padding: 6px 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.thread-node.is-removing {
  opacity: 0;
  transform: translateY(-2px);
}

.review-thread-list > .thread-node {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.review-thread-list > .thread-node:last-child {
  border-bottom: none;
}

.thread-node > .comment-line {
  font-size: 13px;
  margin-bottom: 0;
}

.thread-branch {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 2px;
  margin-top: 4px;
  margin-left: 4px;
}

.thread-branch.is-flat {
  margin-left: 0;
}

.thread-rail-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 2px 0;
  background: none;
  border: none;
  cursor: pointer;
}

.thread-rail-line {
  display: block;
  width: 1px;
  height: 100%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
  transition: background-color 0.16s ease, width 0.16s ease, opacity 0.16s ease;
}

.thread-branch[data-depth="2"] > .thread-rail-btn .thread-rail-line {
  background: rgba(255, 255, 255, 0.1);
}

.thread-branch[data-depth="3"] > .thread-rail-btn .thread-rail-line {
  background: rgba(255, 255, 255, 0.082);
}

.thread-branch[data-depth="4"] > .thread-rail-btn .thread-rail-line {
  background: rgba(255, 255, 255, 0.068);
}

.thread-rail-btn:hover .thread-rail-line,
.thread-rail-btn:focus-visible .thread-rail-line {
  width: 2px;
  background: rgba(230, 184, 110, 0.68);
}

.thread-branch-content {
  min-width: 0;
  padding-left: 4px;
}

.thread-children-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thread-children-list .comment-line {
  font-size: 12.5px;
  margin-bottom: 0;
}

.thread-collapsed-pill {
  display: none;
  align-items: center;
  gap: 5px;
  margin: 2px 0 4px;
  padding: 2.5px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.thread-collapsed-pill:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.thread-branch.is-collapsed > .thread-branch-content > .thread-children-list {
  display: none;
}

.thread-branch.is-collapsed > .thread-branch-content > .thread-collapsed-pill {
  display: inline-flex;
}

.thread-branch.is-collapsed > .thread-rail-btn .thread-rail-line {
  background: rgba(230, 184, 110, 0.32);
}

.comment-replying-to {
  color: var(--text-dim);
  font-size: 11.5px;
  margin-right: 4px;
}

.thread-reply-composer-slot:empty {
  display: none;
}

.thread-inline-reply-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 2px 10px;
  padding-left: 12px;
  border-left: 1px solid var(--accent-border);
}

@media (max-width: 680px) {
  .thread-branch {
    grid-template-columns: 12px minmax(0, 1fr);
    margin-left: 2px;
  }
  .thread-branch-content {
    padding-left: 2px;
  }
}

.thread-empty-note {
  font-size: 13px;
  color: var(--text-dim);
  padding: 16px 2px;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.comment-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 5px 2px;
  font-size: 12.5px;
}

.comment-input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

/* ==================== DISCOVER TAB ==================== */
.search-bar {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 10px 2px;
  font-size: 15px;
  margin-bottom: 14px;
}

.search-bar:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.discover-masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 2px;
}

.discover-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  min-height: 32px;
}

.discover-filter-bar > .filter-trigger-btn {
  flex-shrink: 0;
  align-self: flex-start;
}

.discover-mood-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}

.discover-mood-label {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  letter-spacing: 0.005em;
  user-select: none;
}

.discover-mood-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.discover-mood-pill {
  font-size: 11.5px;
  line-height: 1.25;
  padding: 3px 10px;
  border-radius: 99px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.discover-mood-pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.075);
}

.discover-mood-pill.is-active {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.discover-filter-chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}

.discover-clear-all {
  font-size: 12px;
  padding: 4px 8px;
  color: var(--text-muted);
}

.discover-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

@media (max-width: 680px) {
  .discover-masonry {
    grid-template-columns: 1fr;
  }
  .discover-col:nth-child(2):empty {
    display: none;
  }
}

.discover-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 220px;
  will-change: transform;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.22s ease;
}

.discover-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.036);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.provenance-eyebrow {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.provenance-eyebrow.for-you { color: var(--accent); }
.provenance-eyebrow.likely { color: var(--accent); }
.provenance-eyebrow.global { color: #8cb4d9; }
.provenance-eyebrow.review { color: #c49bc9; }
.provenance-eyebrow.press { color: #d4b996; }

.discover-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.discover-section-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 10px 0 2px;
  line-height: 1.5;
  max-width: 620px;
}

.discover-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.discover-genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.discover-genre-tag {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.25;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background-color 0.14s ease;
}

.discover-genre-tag:hover,
.discover-genre-tag.is-active {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.discover-card .vibe-row {
  margin-top: 6px;
}

.discover-card-foot.align-end {
  justify-content: flex-end;
}

.discover-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.discover-card-foot .press-read-btn {
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
  overflow: hidden;
  padding: 4px 9px;
}

.discover-card-foot .press-read-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discover-card-foot .emblem-btn {
  width: 30px;
  height: 30px;
}

.discover-card-foot .emblem-btn svg {
  width: 16px;
  height: 16px;
}

.discover-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.discover-end-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0 12px;
}

.discover-end-wrap:empty {
  padding: 0;
}

.discover-restart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}

.discover-restart-btn:hover {
  color: var(--text);
  border-color: var(--accent-border);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.discover-restart-btn:active {
  transform: scale(0.975);
}

.press-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.014));
  border-color: rgba(255, 255, 255, 0.11);
}

.press-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.press-outlet-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.press-third-party-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #d4b996;
  opacity: 0.85;
  flex-shrink: 0;
}

.press-rating-pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: #e6d3b8;
  background: rgba(212, 185, 150, 0.12);
  border: 1px solid rgba(212, 185, 150, 0.32);
  padding: 2px 8px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.press-badge-pill {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}

.press-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.press-read-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ==================== ALBUM PAGE LINER NOTES & PRESS ==================== */
.album-notes-section {
  margin-top: 6px;
}

.album-notes-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.album-liner-list {
  display: flex;
  flex-direction: column;
}

.album-liner-card {
  padding: 15px 0;
}

.album-liner-card:first-child {
  padding-top: 6px;
}

.album-liner-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.like-btn,
.album-note-like {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.like-btn .like-heart-glyph {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 12.5px;
  transform-origin: center;
  will-change: transform;
}

.like-btn .like-heart-glyph::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 1.5px solid #e47474;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.like-btn .like-count {
  font-variant-numeric: tabular-nums;
}

.like-btn:hover {
  color: #e47474;
}

.like-btn.is-liked,
.album-note-like.is-liked {
  color: #e47474;
  background: rgba(228, 116, 116, 0.11);
  border-color: rgba(228, 116, 116, 0.24);
}

.like-btn.is-heart-popping .like-heart-glyph {
  animation: heartPop 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.like-btn.is-heart-popping .like-heart-glyph::after {
  animation: heartBurstRing 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.like-btn.is-heart-unliking .like-heart-glyph {
  animation: heartUnlikeSettle 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heartPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.38); }
  65%  { transform: scale(0.9); }
  85%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes heartBurstRing {
  0%   { opacity: 0.72; transform: scale(0.45); }
  65%  { opacity: 0.32; transform: scale(1.65); }
  100% { opacity: 0; transform: scale(1.95); }
}

@keyframes heartUnlikeSettle {
  0%   { transform: scale(0.88); }
  100% { transform: scale(1); }
}

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

.album-press-item {
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.024);
}

.album-press-outlet {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.album-press-date {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ==================== PROGRESSIVE REVEAL EDITORIAL BEAT ==================== */
.micro-pill.settled-beat {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.unlock-beat-card {
  animation: unlockBeatEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes unlockBeatEnter {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.unlock-beat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.unlock-nav-trail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.unlock-trail-item {
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.unlock-trail-item.is-new {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
  animation: navTabReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.unlock-preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 6px;
}

.unlock-preview-tile {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.unlock-preview-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  display: block;
  margin-bottom: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.unlock-preview-title {
  font-family: var(--serif);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unlock-preview-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unlock-emblem-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.unlock-emblem-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.unlock-emblem-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.unlock-emblem-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.unlock-emblem-icon.is-accent {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.unlock-emblem-icon svg {
  width: 12px;
  height: 12px;
}

.unlock-nav-preview {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.unlock-nav-pill {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.unlock-nav-pill.fresh {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.provenance-evidence {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.discover-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.45;
  color: #dcd9d2;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== PROFILE TAB (COVER PALETTE THEME) ==================== */
.profile-hero {
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  border: 1px solid var(--border);
  margin-bottom: 22px;
  background:
    radial-gradient(circle at 10% 0%, var(--p1), transparent 55%),
    radial-gradient(circle at 42% 0%, var(--p2), transparent 55%),
    radial-gradient(circle at 74% 0%, var(--p3), transparent 55%),
    radial-gradient(circle at 96% 10%, var(--p4), transparent 55%),
    linear-gradient(180deg, rgba(17, 20, 25, 0.65), var(--bg));
}

.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

/* Static in-flow Shelf header (zero layout shift on scroll; paired with fixed compact bar below) */
.shelf-header-static {
  margin: -6px 0 14px;
  padding: 6px 0 6px;
}

.profile-sticky-wrap.charts-sticky-only .profile-name {
  font-size: 19px;
}

.profile-sticky-wrap.charts-sticky-only .profile-sticky-main {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.profile-sticky-wrap.charts-sticky-only .sticky-context-inline {
  opacity: 1;
  transform: translateY(0);
  max-width: 600px;
  max-height: 44px;
  margin-left: 0;
  pointer-events: auto;
}

.profile-sticky-wrap.charts-sticky-only .sticky-filter-mini {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==================== STICKY PROFILE USERNAME BAR ==================== */
.profile-sticky-wrap {
  position: sticky;
  top: var(--app-header-h, 58px);
  z-index: 28;
  margin: -10px 0 14px;
  padding: 10px 0 12px;
  overflow-anchor: none;
  transition: padding 0.22s ease;
}

.profile-sticky-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  background: transparent;
  border-bottom: 1px solid transparent;
  pointer-events: none;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.profile-sticky-wrap.is-stuck {
  padding: 8px 0;
}

.profile-sticky-wrap.is-stuck::before {
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

/* Charts tab: no redundant top h1 at rest; fixed compact context bar appears cleanly on scroll with zero layout shift */
.profile-sticky-wrap.charts-sticky-only {
  position: fixed;
  top: var(--app-header-h, 58px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-sticky-wrap.charts-sticky-only::before {
  display: none;
}

.profile-sticky-wrap.charts-sticky-only.is-stuck {
  padding: 0;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.charts-sticky-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 20px;
}

.profile-sticky-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-sticky-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  transition: gap 0.2s ease;
}

.profile-sticky-wrap.is-stuck .profile-sticky-main {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.friend-back-inline {
  padding-left: 0;
  padding-right: 6px;
  flex-shrink: 0;
}

.profile-sticky-identity {
  min-width: 0;
}

.profile-name {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.15;
  transition: font-size 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-sticky-wrap.is-stuck .profile-name {
  font-size: 19px;
}

.profile-stats-line {
  font-size: 12.5px;
  color: var(--text-muted);
  max-height: 58px;
  opacity: 1;
  overflow: visible;
  transition: max-height 0.2s ease, opacity 0.18s ease, margin 0.2s ease;
}

.taste-sig-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.taste-sig-tag {
  font-size: 11.5px;
  line-height: 1.25;
  padding: 2.5px 9px;
  border-radius: 99px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.taste-sig-tag:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.075);
}

.taste-sig-tag.is-active {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.taste-sig-sep {
  color: var(--text-dim);
  opacity: 0.55;
  padding: 0 2px;
  user-select: none;
}

.profile-sticky-wrap.is-stuck .profile-stats-line {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
}

.sticky-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.sticky-context-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(5px);
  max-width: 0;
  max-height: 0;
  margin-left: -10px;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.24s ease,
    margin-left 0.24s ease;
}

.profile-sticky-wrap.is-stuck .sticky-context-inline {
  opacity: 1;
  transform: translateY(0);
  max-width: 520px;
  max-height: 60px;
  margin-left: 0;
  pointer-events: auto;
}

.sticky-ctx-sep {
  color: var(--text-dim);
  font-size: 13px;
  user-select: none;
}

.sticky-ctx-chip {
  font-size: 11.5px;
  line-height: 1.25;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.sticky-ctx-chip.is-mode {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}

.sticky-ctx-chip.is-filter {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.sticky-ctx-chip.is-filter:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sticky-right-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sticky-hide-when-stuck {
  transition: opacity 0.18s ease;
}

.profile-sticky-wrap.is-stuck .sticky-hide-when-stuck {
  display: none;
}

.sticky-filter-mini {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  cursor: pointer;
  animation: stickyChipIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: color 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.profile-sticky-wrap.is-stuck .sticky-filter-mini {
  display: inline-flex;
}

.sticky-filter-mini:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
}

.sticky-filter-mini.has-active {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.provider-refresh-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 6px 1px 4px;
  margin-left: -2px;
  border-radius: 6px;
  font-size: inherit;
  color: var(--text-muted);
  cursor: pointer;
  vertical-align: baseline;
  transition: color 0.14s ease, background-color 0.14s ease;
}

.provider-refresh-link.provider-top-right {
  font-size: 12.5px;
  font-weight: 500;
  gap: 6px;
  padding: 6px 13px;
  margin-left: 0;
  border-radius: 99px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: color 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.provider-refresh-link.provider-top-right:hover:not(:disabled) {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.provider-refresh-link.provider-top-right:active:not(:disabled) {
  transform: scale(0.97);
}

.provider-refresh-link .import-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
  flex-shrink: 0;
  transition: opacity 0.14s ease, color 0.14s ease;
}

.provider-refresh-link:hover:not(:disabled) .import-icon {
  color: var(--accent);
  opacity: 1;
}

.provider-refresh-link[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}

.provider-refresh-link[data-tip]:hover:not(:disabled)::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.provider-refresh-link:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.provider-refresh-link:hover:not(:disabled) .sync-icon {
  color: var(--accent);
}

.provider-refresh-link.is-syncing {
  color: var(--accent);
}

.sync-icon {
  width: 11.5px;
  height: 11.5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
  flex-shrink: 0;
  transition: opacity 0.14s ease, color 0.14s ease;
}

.provider-refresh-link:hover .sync-icon,
.provider-refresh-link.is-syncing .sync-icon {
  opacity: 1;
}

.provider-refresh-link.is-syncing .sync-icon {
  animation: syncSpin 0.8s linear infinite;
}

/* Prototype-only controls — visually distinct and kept outside real product layout */
.proto-dev-dock {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.proto-reset-chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.52;
  cursor: pointer;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.proto-reset-chip:hover {
  opacity: 1;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.34);
}

.sp-redirect-box {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 11px;
  margin-bottom: 14px;
  user-select: all;
}

.sp-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sp-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
}

.sp-input:focus {
  outline: none;
  border-color: var(--accent-border);
}

.sp-error {
  margin-top: 10px;
  font-size: 12.5px;
  color: #f08a8a;
}

.sp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.sp-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.sp-stat strong {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

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

.sync-notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-size: 12.5px;
  color: var(--text);
  animation: stickyChipIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sync-notice-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sync-notice-thumbs {
  display: inline-flex;
  align-items: center;
}

.sync-notice-thumbs img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  margin-left: -6px;
}

.sync-notice-thumbs img:first-child {
  margin-left: 0;
}

.sync-notice-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@keyframes stickyChipIn {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.top4-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 11px;
}

.top4-tile {
  position: relative;
  cursor: pointer;
  transition: transform 0.14s ease;
}

.top4-tile:hover {
  transform: translateY(-2px);
}

.top4-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  display: block;
  margin-bottom: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.top4-tile-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.14s ease, text-shadow 0.14s ease;
}

.top4-tile:hover .top4-tile-title {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-shadow: 0 0 0.45px currentColor;
}

.top4-tile-artist {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranked-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.ranked-row {
  position: relative;
  display: grid;
  grid-template-columns: 32px 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  margin: 0 -4px;
  border-radius: 10px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  will-change: transform;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.18s ease,
    box-shadow 0.22s ease,
    border-color 0.18s ease;
}

.ranked-row:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.042);
  border-bottom-color: transparent;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.ranked-row:active {
  transform: translateY(-0.5px) scale(0.996);
}

.rank-num {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ranked-row img {
  width: 42px;
  height: 42px;
  border-radius: 5px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.ranked-row:hover img {
  transform: scale(1.045);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.ranked-row-item {
  position: relative;
}

.ranked-row-item.is-expanded > .ranked-row {
  background: rgba(255, 255, 255, 0.036);
  border-bottom-color: transparent;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.ranked-row-item.is-expanded > .ranked-row:hover {
  transform: none;
  box-shadow: none;
}

.ranked-cover-link {
  cursor: pointer;
}

.ranked-title-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.ranked-title-link {
  font-family: var(--serif);
  font-size: 15.5px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.14s ease, text-shadow 0.14s ease;
}

.ranked-title-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-shadow: 0 0 0.45px currentColor;
}

.row-emoji-tag {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.row-note-cue {
  font-size: 10.5px;
  color: var(--text-dim);
  flex-shrink: 0;
  opacity: 0.68;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.16s ease, opacity 0.16s ease;
}

.ranked-row.expandable-row:hover .row-note-cue {
  color: var(--accent);
  opacity: 1;
}

.ranked-row-item.is-expanded .row-note-cue {
  transform: rotate(180deg);
  color: var(--accent);
  opacity: 1;
}

.row-notes-drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.ranked-row-item.is-expanded .row-notes-drawer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.row-notes-inner {
  overflow: hidden;
}

.row-notes-body {
  margin: 0 -4px 6px;
  padding: 12px 14px 12px 96px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid var(--border);
}

.row-notes-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.row-notes-time {
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.row-notes-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #ddd9d1;
  margin: 0 0 10px;
}

.row-notes-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.row-notes-album-link {
  padding-left: 0;
  font-size: 12px;
}

.activity-feed-list {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.activity-rank-pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .row-notes-body {
    padding: 12px 12px 12px 16px;
  }
}

.score-pill {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.score-pill.provisional {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 11px;
}

/* ==================== MODAL / OVERLAYS ==================== */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--overlay-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-y: auto;
  padding: 22px 18px 48px;
}

.overlay-inner {
  max-width: 680px;
  margin: 0 auto;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.album-detail-hero {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}

.entity-page {
  padding-top: 4px;
}

.album-detail-hero.has-scores {
  grid-template-columns: 152px minmax(0, 1fr) auto;
}

.album-detail-meta {
  min-width: 0;
}

.album-hero-scores {
  display: inline-flex;
  align-items: stretch;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
  overflow: visible;
}

.album-hero-scores.is-single {
  padding: 12px 18px;
}

.album-score-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 56px;
  gap: 3px;
}

.album-score-cell.is-global {
  position: relative;
}

.album-score-label {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.album-score-cell.is-you .album-score-label {
  color: var(--accent);
  opacity: 0.88;
}

.album-score-cell.is-global .album-score-label {
  color: var(--text-dim);
}

.album-score-value {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.album-score-cell.is-you .album-score-value {
  color: var(--accent);
}

.album-score-cell.is-global .album-score-value {
  color: var(--text);
}

.album-score-value.is-empty {
  color: var(--text-dim);
}

.album-score-rank {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.album-score-cell.is-you .album-score-rank {
  color: var(--accent);
  opacity: 0.74;
}

.album-score-cell.is-global .album-score-rank {
  color: var(--text-muted);
}

.album-score-rank.is-empty {
  color: var(--text-dim);
  opacity: 0.55;
}

/* Compact inline user score box for Feed, Review Thread, and Discover cards (borrows Album Page YOU score box) */
.inline-user-score-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(232, 188, 118, 0.28);
  background: linear-gradient(180deg, rgba(232, 188, 118, 0.095), rgba(232, 188, 118, 0.025));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  cursor: default;
}

.inline-user-score-label {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--accent);
  opacity: 0.82;
}

.inline-user-score-value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.inline-user-score-box.is-crate {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.inline-user-score-box.is-crate .inline-user-score-label {
  color: var(--text-muted);
  opacity: 0.9;
}

.inline-user-score-box[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 25;
}

.inline-user-score-box[data-tip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Stylish top-right reviewer score badge on Feed cards, Review threads, and Album liner notes */
.review-header-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.review-timestamp {
  color: var(--text-dim);
  font-size: 11.5px;
}

.reviewer-score-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: default;
}

.reviewer-score-badge.is-high {
  color: #f0c987;
  border-color: rgba(232, 188, 118, 0.3);
  background: linear-gradient(180deg, rgba(232, 188, 118, 0.1), rgba(255, 255, 255, 0.025));
}

.reviewer-score-badge.is-mid {
  color: #f2efe9;
}

.reviewer-score-badge.is-low {
  color: #a4aab5;
  border-color: rgba(255, 255, 255, 0.1);
}

.reviewer-score-badge[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 25;
}

.reviewer-score-badge[data-tip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.album-score-cell.is-unrated {
  background: transparent;
  border: none;
  padding: 2px 6px;
  margin: -2px -6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.album-score-cell.is-you.is-unrated .album-score-label {
  color: var(--text-dim);
  opacity: 0.65;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.album-score-cell.is-you.is-unrated .album-score-value.is-empty {
  color: var(--text-dim);
  opacity: 0.45;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.album-score-cell.is-you.is-unrated .album-score-rank {
  color: var(--text-dim);
  opacity: 0.6;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.album-score-cell.is-you.is-unrated:hover,
.album-score-cell.is-you.is-unrated:focus-visible {
  background: rgba(232, 188, 118, 0.08);
  outline: none;
}

.album-score-cell.is-you.is-unrated:hover .album-score-label,
.album-score-cell.is-you.is-unrated:focus-visible .album-score-label,
.album-score-cell.is-you.is-unrated:hover .album-score-rank,
.album-score-cell.is-you.is-unrated:focus-visible .album-score-rank {
  color: var(--accent);
  opacity: 0.92;
}

.album-score-hp-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.album-score-hp-icon {
  width: 24px;
  height: 24px;
  color: var(--text-dim);
  opacity: 0.55;
  overflow: visible;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.album-score-cell.is-you.is-unrated:hover .album-score-value.is-empty,
.album-score-cell.is-you.is-unrated:focus-visible .album-score-value.is-empty {
  color: var(--accent);
  opacity: 0.72;
}

.album-score-cell.is-you.is-unrated:hover .album-score-hp-icon,
.album-score-cell.is-you.is-unrated:focus-visible .album-score-hp-icon {
  color: var(--accent);
  opacity: 1;
}

.album-score-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-strong);
  opacity: 0.75;
}

.album-detail-cover-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.album-detail-cover {
  width: 152px;
  height: 152px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  object-fit: cover;
  display: block;
}

.switch-cover-btn {
  width: 152px;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  transition: color 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.switch-cover-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.switch-cover-btn.is-open {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.edition-picker-panel {
  margin: -8px 0 24px;
  padding: 14px 16px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.edition-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.edition-picker-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.edition-reset-btn {
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--border);
  transition: color 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.edition-reset-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.edition-close-btn {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.12s ease, background-color 0.12s ease;
}

.edition-close-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.edition-cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.edition-cover-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.14s ease, background-color 0.14s ease;
}

.edition-cover-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.edition-cover-card.is-selected {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.edition-cover-frame {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
}

.edition-cover-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edition-cover-label {
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edition-cover-card.is-selected .edition-cover-label {
  color: var(--accent);
}

.edition-skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 6px;
}

.edition-skeleton-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  animation: editionPulse 1.3s ease-in-out infinite;
}

.edition-skeleton-line {
  height: 10px;
  width: 76%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  animation: editionPulse 1.3s ease-in-out infinite;
}

@keyframes editionPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

.edition-empty {
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 4px 2px;
}

/* ==================== ALBUM EXPANDABLE TRACKLIST ==================== */
.tracklist-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: color 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.tracklist-toggle-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.tracklist-toggle-btn.is-open {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.tracklist-chevron {
  font-size: 10px;
  line-height: 1;
  opacity: 0.85;
}

.tracklist-drawer {
  margin: -8px 0 22px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.tracklist-list {
  display: flex;
  flex-direction: column;
}

.tracklist-disc-header {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 0 6px;
}

.tracklist-disc-header:first-child {
  padding-top: 2px;
}

.tracklist-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 6px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.tracklist-row:first-child,
.tracklist-disc-header + .tracklist-row {
  border-top: none;
}

.tracklist-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.tracklist-title {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: break-word;
}

.tracklist-dur {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.tracklist-skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px;
}

.tracklist-skeleton-row {
  display: grid;
  grid-template-columns: 28px 1fr 38px;
  gap: 12px;
  align-items: center;
}

.tracklist-skel-num,
.tracklist-skel-title,
.tracklist-skel-dur {
  display: block;
  height: 11px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  animation: editionPulse 1.3s ease-in-out infinite;
}

.tracklist-skel-num {
  width: 18px;
}

.tracklist-skel-dur {
  width: 34px;
  justify-self: end;
}

.tracklist-empty {
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 4px 2px;
}

.feeling-bars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.feeling-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 11px;
}

/* Blind Entry Form */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin: 10px 0 18px;
}

.emoji-btn {
  padding: 7px 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 17px;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.emoji-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.06);
}

.review-textarea {
  width: 100%;
  min-height: 86px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  resize: vertical;
}

/* ==================== SMASH-LANDING REVEAL ANIMATION ==================== */
.reveal-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 18% 46%, var(--rc1, var(--accent-soft)), transparent 62%),
    radial-gradient(circle at 86% 52%, var(--rc2, rgba(120, 130, 150, 0.14)), transparent 60%),
    var(--surface);
  transition: border-color 0.4s ease, box-shadow 0.45s ease;
}

.reveal-card.is-landed {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58), 0 0 56px var(--rc1, rgba(230, 184, 110, 0.18));
}

.reveal-viewport {
  position: relative;
  height: 368px;
  overflow: hidden;
  border-radius: 10px;
  margin: 0;
  cursor: pointer;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
}

.reveal-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 6px;
  will-change: transform;
  transform: translateY(0);
}

.reveal-row {
  display: grid;
  grid-template-columns: 32px 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(10, 12, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.065);
  will-change: transform, opacity;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease, background 0.35s ease, border-color 0.35s ease;
}

.reveal-row.is-neighbor {
  opacity: 0.62;
}

.reveal-row img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.reveal-row-title {
  font-family: var(--serif);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reveal-row-artist {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reveal-row.target-pending {
  opacity: 0;
  transform: scale(1.12) translateY(-8px);
}

.reveal-row.landed-target {
  padding: 11px 14px;
  background: linear-gradient(100deg, var(--rc1, var(--accent-soft)), rgba(18, 19, 22, 0.72) 64%, var(--rc2, var(--accent-soft)));
  border-color: var(--accent-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 24px var(--rc1, var(--accent-soft));
  animation: albumSlam 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-row.landed-target img {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.reveal-row.landed-target .reveal-row-title {
  font-size: 16.5px;
  color: var(--text);
}

.reveal-row.landed-target .rank-num {
  color: var(--accent);
  font-weight: 600;
}

.reveal-row.landed-target .score-pill {
  font-size: 16.5px;
}

@keyframes albumSlam {
  0%   { opacity: 0; transform: scale(1.12) translateY(-8px); }
  55%  { opacity: 1; transform: scale(0.985) translateY(1px); }
  100% { opacity: 1; transform: scale(1.02) translateY(0); }
}

.reveal-row.part-up {
  transform: translateY(-6px);
}

.reveal-row.part-down {
  transform: translateY(6px);
}

/* ==================== 1-TAP SHARE EMBLEM & SHARE SHEET MODAL ==================== */
.share-emblem-btn {
  color: var(--text-dim);
}

.share-emblem-btn:hover,
.share-emblem-btn:focus-visible {
  color: var(--text);
}

.sticky-title-group .share-emblem-btn[data-tip]::after {
  top: calc(100% + 6px);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
}

.sticky-title-group .share-emblem-btn[data-tip]:hover::after {
  transform: translateX(-50%) translateY(0);
}

.share-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.16s ease;
}

.share-sheet-modal {
  width: 100%;
  max-width: 484px;
  border-radius: 16px;
  background: linear-gradient(180deg, #181a20, #111216);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.share-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-sheet-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  margin: 0;
}

.share-sheet-close {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
  border-radius: 8px;
}

.share-og-preview {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 14% 16%, var(--c1, rgba(64, 76, 98, 0.25)), transparent 58%),
    radial-gradient(circle at 86% 18%, var(--c2, rgba(50, 62, 82, 0.22)), transparent 58%),
    radial-gradient(circle at 22% 86%, var(--c3, rgba(46, 56, 74, 0.2)), transparent 58%),
    radial-gradient(circle at 84% 88%, var(--c4, rgba(40, 48, 66, 0.18)), transparent 58%),
    #0d0f14;
  padding: 14px 15px 11px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
}

.share-og-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.share-og-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.share-og-handle {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.share-og-card-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}

.share-og-card-handle {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==================== SONIC SHAPE PILL & HARMONIC PRISM PANEL ==================== */
.taste-sig-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 2px;
  flex-shrink: 0;
}

.sonic-shape-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2.5px 10px 2.5px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.2s ease;
}

.sonic-shape-pill-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.2);
}

.sonic-shape-pill-btn.is-open {
  color: #f8e2b8;
  background: rgba(232, 188, 118, 0.18);
  border-color: rgba(232, 188, 118, 0.72);
  box-shadow: 0 0 14px rgba(232, 188, 118, 0.24), inset 0 1px 0 rgba(255, 240, 208, 0.18);
}

.sonic-shape-pill-btn.is-open:hover {
  background: rgba(232, 188, 118, 0.24);
  border-color: #e8bc76;
}

.sonic-shape-pill-icon {
  width: 14px;
  height: 11px;
  flex-shrink: 0;
}

/* 3D Hero Card Flip Stage (Side A: Top 4 Hero Card ↔ Side B: Harmonic Prism Sonic Shape) */
.hero-flip-stage {
  perspective: 1500px;
  margin-bottom: 18px;
}

.hero-flip-inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-flip-stage.is-flipped .hero-flip-inner {
  transform: rotateY(180deg);
}

.hero-flip-face {
  grid-area: 1 / 1;
  min-width: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-flip-front {
  transform: rotateY(0deg);
}

.hero-flip-back {
  transform: rotateY(180deg);
}

.hero-flip-stage:not(.is-flipped) .hero-flip-back {
  pointer-events: none;
}

.hero-flip-stage:not(.is-flipped) .prism-unfold-tray {
  display: none;
}

.hero-flip-stage.is-flipped .hero-flip-front {
  pointer-events: none;
}

.hero-flip-front .share-card-preview {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.harmonic-prism-panel {
  margin: 0;
  padding: 20px 22px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 14px;
  background:
    radial-gradient(circle at 14% 8%, var(--prism-glow, rgba(232, 188, 118, 0.14)), transparent 58%),
    linear-gradient(180deg, rgba(22, 24, 30, 0.96), rgba(14, 15, 19, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.prism-panel-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.prism-slot {
  position: relative;
  width: 100%;
}

.prism-slot-top {
  height: 98px;
}

.prism-slot-bottom {
  height: 98px;
}

.prism-strata-bar.is-covered,
.prism-era-wrap.is-covered {
  opacity: 0.16;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.prism-overlay-drawer {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 6px 10px 7px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(16, 18, 24, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(232, 188, 118, 0.42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.prism-overlay-drawer.is-over-eras {
  animation: prismDropDown 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.prism-overlay-drawer.is-over-strata {
  animation: prismBumpUp 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes prismDropDown {
  from {
    opacity: 0;
    transform: translateY(-9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.prism-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 20px;
  flex-shrink: 0;
}

.prism-drawer-head .prism-unfold-close {
  width: 20px;
  height: 20px;
  font-size: 15px;
}

.prism-drawer-title {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1;
  color: var(--text);
}

.prism-drawer-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prism-drawer-dig {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent);
  padding: 1.5px 8px;
  border-radius: 999px;
  background: rgba(232, 188, 118, 0.12);
  border: 1px solid rgba(232, 188, 118, 0.34);
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.prism-drawer-dig:hover {
  background: rgba(232, 188, 118, 0.22);
  border-color: rgba(232, 188, 118, 0.62);
}

.prism-sub-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  margin-top: 5px;
  flex: 1;
  min-height: 0;
}

.prism-sub-card.is-compact {
  padding: 5px 8px 6px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}

.prism-sub-card.is-compact .prism-sub-top {
  margin-bottom: 0;
  line-height: 1.15;
}

.prism-sub-card.is-compact .prism-sub-name {
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prism-sub-card.is-compact .prism-sub-era {
  font-size: 9px;
  flex-shrink: 0;
}

.prism-sub-card.is-compact .prism-sub-track {
  height: 3px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.prism-sub-card.is-compact .prism-sub-albums {
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prism-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prism-flip-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.prism-flip-back-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.09);
}

.prism-flip-back-btn svg {
  width: 12px;
  height: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-flip-inner {
    transition: transform 0.01ms linear;
  }
}

.prism-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.prism-panel-headline {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}

.prism-panel-headline em {
  color: var(--accent);
  font-style: italic;
}

.prism-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.prism-close-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.prism-strata-bar {
  display: flex;
  gap: 6px;
  height: 100%;
  width: 100%;
  margin-bottom: 0;
  transition: opacity 0.18s ease;
}

@media (max-width: 560px) {
  .prism-strata-bar {
    flex-wrap: wrap;
    height: auto;
  }
  .prism-stratum {
    min-height: 78px;
    flex-basis: calc(50% - 4px) !important;
  }
}

.prism-stratum {
  position: relative;
  min-width: 72px;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.16s ease, border-color 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.prism-stratum:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  filter: brightness(1.09);
}

.prism-stratum.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(232, 188, 118, 0.4), 0 10px 24px rgba(0, 0, 0, 0.42);
}

.prism-stratum-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.24;
  pointer-events: none;
}

.prism-stratum-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.prism-stratum-kind {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.76;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prism-stratum-mark {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.72;
  flex-shrink: 0;
}

.prism-stratum-main {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.prism-stratum-label {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prism-stratum-sub {
  font-size: 11px;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.prism-era-wrap {
  height: 100%;
  padding: 10px 12px 6px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.18s ease;
}

.prism-era-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.prism-era-title {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.prism-era-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.prism-era-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}

.prism-dot-friend,
.prism-dot-you {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 99px;
}

.prism-dot-friend {
  background: #e8bc76;
}

.prism-dot-you {
  background: #7cc6d6;
  margin-left: 4px;
}

.prism-era-peak {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
}

.prism-era-svg {
  width: 100%;
  height: 54px;
  display: block;
  overflow: visible;
}

.prism-era-node.is-clickable {
  cursor: pointer;
}

.prism-era-node.is-clickable:hover circle {
  r: 5.2;
}

.prism-unfold-tray {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 188, 118, 0.34);
  animation: fadeIn 0.18s ease;
}

.prism-unfold-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.prism-unfold-crumb {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.prism-unfold-title {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text);
}

.prism-unfold-kind {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.prism-unfold-close {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.prism-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.prism-sub-card {
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.14s ease;
}

.prism-sub-card:hover {
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

.prism-sub-card.is-active-filter {
  border-color: var(--accent);
  background: rgba(232, 188, 118, 0.12);
  box-shadow: 0 0 0 1px rgba(232, 188, 118, 0.28);
}

.prism-sub-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.prism-sub-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.prism-sub-era {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-dim);
}

.prism-sub-track {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 6px;
}

.prism-sub-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
}

.prism-sub-albums {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.prism-unfold-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
}

.prism-dig-btn {
  font-size: 12px;
  padding: 6px 13px;
}

.prism-filter-btn {
  font-size: 12px;
  padding: 6px 11px;
  color: var(--text-muted);
}

/* Share Sheet live preview for Sonic Shape */
.share-og-prism-headline {
  font-family: var(--serif);
  font-size: 14.5px;
  color: var(--text);
  margin: 8px 0 9px;
  line-height: 1.25;
}

.share-og-prism-headline em {
  color: var(--accent);
  font-style: italic;
}

.share-og-prism-strata {
  display: flex;
  gap: 5px;
  height: 52px;
  margin-bottom: 8px;
}

.share-og-prism-band {
  min-width: 52px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.share-og-prism-bkind {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-og-prism-blabel {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-og-prism-era {
  padding: 5px 8px 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.share-og-prism-era svg {
  width: 100%;
  height: 36px;
  display: block;
}

.share-og-slice {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(232, 188, 118, 0.13);
  border: 1px solid rgba(232, 188, 118, 0.32);
}

.share-og-brand {
  font-family: var(--serif);
  font-size: 13.5px;
  color: rgba(242, 239, 233, 0.72);
  flex-shrink: 0;
}

.share-og-preview .shelf-color-spine {
  margin-top: 7px;
  max-width: 220px;
}

.share-og-covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.share-og-cover-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #14171f;
}

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

.share-og-score {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 1.5px 5px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: #f4efe6;
  background: rgba(10, 12, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.share-og-sigs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.share-og-sig-pill {
  font-size: 10.5px;
  color: rgba(240, 236, 228, 0.82);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}

.share-og-album-row,
.share-og-note-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.share-og-album-cover {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.share-og-album-copy {
  min-width: 0;
  flex: 1;
}

.share-og-album-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.share-og-global-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px 7px;
  border-radius: 999px;
}

.share-og-album-title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
}

.share-og-album-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.share-og-emojis {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.share-og-note-author {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.share-og-quote {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(242, 239, 233, 0.9);
}

.share-og-url {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
  flex-shrink: 0;
}

.share-og-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.share-og-footer .share-og-sigs {
  margin-top: 0;
}

.share-og-footer .share-og-brand {
  margin-left: auto;
}

.share-link-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-strong);
}

.share-link-url {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-copy-btn {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--accent);
  color: #13100c;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.14s ease, filter 0.14s ease, background-color 0.16s ease;
}

.share-copy-btn:hover {
  filter: brightness(1.07);
}

.share-copy-btn.is-copied {
  background: #84c59b;
  color: #0e1611;
}

.share-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.share-copy-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.share-social-label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.share-social-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.share-social-btn {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.share-social-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.86;
  transition: opacity 0.14s ease;
}

.share-social-btn.share-social-x svg {
  width: 14px;
  height: 14px;
}

.share-social-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.share-social-btn:hover:not(:disabled) svg {
  opacity: 1;
}

.share-social-reddit:hover:not(:disabled) {
  color: #ff7a45;
  border-color: rgba(255, 87, 0, 0.42);
  background: rgba(255, 87, 0, 0.11);
}

.share-social-x:hover:not(:disabled) {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.share-social-ig:hover:not(:disabled) {
  color: #f48bb4;
  border-color: rgba(228, 64, 95, 0.42);
  background: rgba(228, 64, 95, 0.11);
}

.share-social-btn.is-copied {
  color: #9de0b4;
  border-color: rgba(132, 197, 155, 0.45);
  background: rgba(132, 197, 155, 0.14);
}

.share-social-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.share-social-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 30;
}

.share-social-btn[data-tip]:hover::after,
.share-social-btn[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.share-social-btn:last-child[data-tip]::after {
  left: auto;
  right: 0;
  transform: translateY(4px);
}

.share-social-btn:last-child[data-tip]:hover::after,
.share-social-btn:last-child[data-tip]:focus-visible::after {
  transform: translateY(0);
}

.share-sheet-status {
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: -10px;
  font-size: 11.5px;
  color: #9de0b4;
  text-align: right;
  opacity: 0;
  transition: opacity 0.16s ease, max-height 0.16s ease, margin-top 0.16s ease;
}

.share-sheet-status.is-visible {
  max-height: 20px;
  margin-top: -6px;
  opacity: 0.92;
}

.share-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.share-action-btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.84;
  flex-shrink: 0;
}

.share-action-btn .share-shape-card {
  width: 21px;
  height: 13px;
}

.share-action-btn .share-shape-grid {
  width: 13px;
  height: 16px;
}

.share-action-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.24);
}

.share-action-btn.is-copied {
  color: #9de0b4;
  border-color: rgba(132, 197, 155, 0.45);
  background: rgba(132, 197, 155, 0.12);
}

.share-action-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* ==================== PHASE 1 & 2: ALWAYS-ON CRATE, BEGIN GRID, CLAIM HANDLE ==================== */
.emblem-btn.is-in-crate {
  color: var(--accent);
  background: rgba(232, 188, 118, 0.11);
  border-color: rgba(232, 188, 118, 0.34);
}

.emblem-btn.is-in-crate:hover {
  background: rgba(232, 188, 118, 0.18);
  border-color: rgba(232, 188, 118, 0.52);
}

.crate-snackbar {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(14px);
  z-index: 88;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px 9px 16px;
  border-radius: 999px;
  background: rgba(22, 24, 30, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.crate-snackbar.is-low {
  bottom: 26px;
}

.crate-snackbar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.crate-snackbar-cta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(232, 188, 118, 0.12);
  border: 1px solid rgba(232, 188, 118, 0.32);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, filter 0.14s ease;
}

.crate-snackbar-cta:hover {
  background: rgba(232, 188, 118, 0.22);
}

.start-doors-v2 {
  justify-content: center;
}

.start-primary-cta {
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
}

.start-import-link {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.14s ease;
}

.start-import-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.import-options-modal {
  max-width: 460px;
}

.import-options-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.import-lane-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.import-lane-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.import-lane-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.import-lane-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.import-lane-btn {
  flex-shrink: 0;
  padding: 5px 11px;
  font-size: 12px;
}

/* Begin Grid onboarding */
.begin-grid-screen {
  min-height: 100vh;
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px 20px 110px;
}

.begin-grid-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.begin-grid-search-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
}

.begin-grid-search-input {
  width: 100%;
  padding: 8px 30px 8px 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.begin-grid-search-input:focus {
  border-color: rgba(232, 188, 118, 0.45);
  background: rgba(255, 255, 255, 0.065);
}

.begin-grid-head {
  margin-bottom: 20px;
}

.begin-grid-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 6px;
}

.begin-grid-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.begin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
  gap: 16px 14px;
}

.begin-tile {
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.18s ease;
}

.begin-tile:hover {
  transform: translateY(-2px);
}

.begin-tile-cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #14171f;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, filter 0.18s ease, opacity 0.18s ease;
}

.begin-tile-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.begin-tile-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--accent);
  color: #13100c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.begin-tile.is-picked .begin-tile-cover-wrap {
  border-color: rgba(232, 188, 118, 0.72);
  box-shadow: 0 0 0 1px rgba(232, 188, 118, 0.45);
}

.begin-tile.is-picked .begin-tile-cover {
  opacity: 0.42;
  filter: saturate(0.65);
}

.begin-tile.is-picked .begin-tile-check {
  opacity: 1;
  transform: scale(1);
}

.begin-tile-title {
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.begin-tile-artist {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.begin-grid-empty {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 28px 0;
}

.begin-grid-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: linear-gradient(180deg, rgba(12, 14, 18, 0), rgba(12, 14, 18, 0.94) 30%, #0c0e12);
  padding: 18px 20px 20px;
}

.begin-grid-bar-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(22, 24, 30, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.begin-grid-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.begin-picked-stack {
  display: inline-flex;
  align-items: center;
  padding-left: 2px;
}

.begin-picked-thumb {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.52);
  margin-left: -10px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.begin-picked-thumb:first-child {
  margin-left: 0;
  transform: rotate(-4deg);
}

.begin-picked-thumb:nth-child(2) {
  transform: rotate(2deg);
}

.begin-picked-thumb:nth-child(3) {
  transform: rotate(-2deg);
}

.begin-picked-thumb:nth-child(4) {
  transform: rotate(4deg);
}

.begin-picked-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.begin-picked-badge.is-ready {
  background: rgba(232, 188, 118, 0.11);
  border-color: rgba(232, 188, 118, 0.42);
  box-shadow: 0 0 18px rgba(232, 188, 118, 0.12);
}

.begin-pips {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.begin-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease;
}

.begin-pip.is-lit {
  background: var(--accent);
  transform: scale(1.12);
  box-shadow: 0 0 8px rgba(232, 188, 118, 0.55);
}

.begin-picked-label {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
}

.begin-picked-label strong {
  color: var(--text);
  font-weight: 600;
}

.begin-picked-badge.is-ready .begin-picked-label {
  color: #f4dfba;
}

.begin-picked-badge.is-ready .begin-picked-label strong {
  color: #fff3da;
}

.begin-picked-of {
  color: var(--text-dim);
}

.begin-start-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* Deck subtle mode pill */
.deck-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-mode-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

/* First Draft Reveal: optional Claim metre.fm/<name> strip */
.claim-handle-strip {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.claim-handle-strip.is-claimed {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #9de0b4;
  background: rgba(132, 197, 155, 0.09);
  border-color: rgba(132, 197, 155, 0.32);
}

.claim-handle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.claim-handle-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}

.claim-optional-tag {
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 4px;
}

.claim-avail-pill {
  font-family: var(--mono);
  font-size: 11px;
}

.claim-avail-pill.is-ok {
  color: #9de0b4;
}

.claim-avail-pill.is-err {
  color: #f09c86;
}

.claim-handle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.claim-input-wrap {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(10, 12, 16, 0.65);
  border: 1px solid var(--border-strong);
  font-family: var(--mono);
  font-size: 12.5px;
}

.claim-prefix {
  color: var(--text-dim);
  user-select: none;
}

.claim-handle-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
}

.claim-passkey-btn {
  padding: 7px 13px;
  font-size: 12.5px;
  white-space: nowrap;
}

.claim-alt-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-dim);
}

.claim-alt-chip {
  font-size: 11.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.14s ease;
}

.claim-alt-chip:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==================== PHASE 3: ORGANIC RADIAL SONIC SHAPE ==================== */
.sonic-shape-panel {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 14px 0 18px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 248, 236, 0.038), rgba(14, 16, 22, 0.72));
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: fadeIn 0.2s ease;
}

.sonic-shape-panel.is-friend-panel {
  background: linear-gradient(165deg, rgba(226, 134, 178, 0.05), rgba(14, 16, 22, 0.74));
}

.sonic-shape-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sonic-shape-svg {
  width: 100%;
  max-width: 332px;
  height: auto;
  overflow: visible;
  user-select: none;
}

.sonic-axis-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  fill: rgba(242, 237, 230, 0.46);
  cursor: pointer;
  transition: fill 0.14s ease, font-weight 0.14s ease;
}

.sonic-axis-label.is-deep {
  fill: rgba(242, 237, 230, 0.78);
}

.sonic-axis-label:hover,
.sonic-axis-label:focus-visible {
  fill: #fff;
  outline: none;
}

.sonic-axis-label.is-selected {
  fill: var(--accent);
  font-weight: 600;
}

.sonic-shape-panel.is-friend-panel .sonic-axis-label.is-selected {
  fill: #f5a6be;
}

.sonic-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.sonic-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sonic-legend-sep {
  color: var(--text-dim);
}

.sonic-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
}

.sonic-dot.is-friend {
  background: #ec8ca8;
  box-shadow: 0 0 8px rgba(236, 140, 168, 0.6);
}

.sonic-dot.is-you {
  background: #e8bc72;
  box-shadow: 0 0 8px rgba(232, 188, 114, 0.5);
}

.sonic-shape-detail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sonic-summary-text {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.32;
  color: var(--text);
}

.sonic-hint-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-dim);
}

.sonic-zoom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sonic-zoom-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--text);
}

.sonic-zoom-clear {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sonic-subgenre-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sonic-sub-row {
  display: grid;
  grid-template-columns: minmax(90px, 136px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 2px 4px;
  border-radius: 6px;
}

.sonic-sub-row.is-clickable {
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.sonic-sub-row.is-clickable:hover {
  background: rgba(255, 255, 255, 0.045);
}

.sonic-sub-name {
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sonic-sub-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.sonic-sub-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(236, 186, 112, 0.55), #f2c982);
}

.sonic-sub-fill.is-friend {
  background: linear-gradient(90deg, rgba(186, 128, 228, 0.65), #ec8ca8);
}

.sonic-zoom-empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.sonic-dig-cta {
  align-self: flex-start;
  margin-top: 2px;
  padding: 7px 14px;
  font-size: 12.5px;
  border-color: rgba(232, 188, 118, 0.36);
  color: var(--accent);
}

.sonic-dig-cta:hover {
  background: rgba(232, 188, 118, 0.12);
  border-color: rgba(232, 188, 118, 0.55);
}

@media (max-width: 640px) {
  .sonic-shape-panel {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .share-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .matchup-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .vs-divider {
    display: none;
  }
  .snapshot-stats {
    grid-template-columns: 1fr;
  }
  .album-detail-hero,
  .album-detail-hero.has-scores {
    grid-template-columns: 1fr;
  }
  .album-hero-scores {
    justify-self: start;
  }
  .edition-cover-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
  .emoji-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ==================== FOLLOW GRAPH, @HANDLE SEARCH & 6-DIGIT OTP CLAIM ==================== */
.search-group-people-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent);
}

.search-mode-hint {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.search-person-covers {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 2px;
}

.search-mini-cover {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-raised);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.search-mini-cover + .search-mini-cover {
  margin-left: -8px;
}

.follow-toggle-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(232, 188, 118, 0.45);
  background: rgba(232, 188, 118, 0.13);
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.follow-toggle-btn:hover {
  background: rgba(232, 188, 118, 0.22);
  border-color: rgba(232, 188, 118, 0.7);
}

.follow-toggle-btn.is-following {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.follow-toggle-btn.is-following:hover {
  border-color: rgba(232, 118, 118, 0.45);
  color: #f3b0b0;
  background: rgba(232, 118, 118, 0.09);
}

.follow-rel-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.follow-rel-pill.is-mutual {
  color: var(--accent);
  background: rgba(232, 188, 118, 0.12);
  border-color: rgba(232, 188, 118, 0.32);
}

.profile-follow-counts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

.follow-count-link {
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.14s ease, background-color 0.14s ease;
}

.follow-count-link strong {
  color: var(--text);
  font-weight: 600;
}

.follow-count-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.follow-count-dot {
  color: var(--text-dim);
  opacity: 0.5;
}

.follow-list-card {
  padding: 18px 20px;
}

.follow-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.follow-list-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.follow-list-tab {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.follow-list-tab span {
  font-size: 11px;
  opacity: 0.7;
  margin-left: 3px;
}

.follow-list-tab.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}

.follow-list-search-wrap {
  margin-bottom: 10px;
}

.follow-list-filter-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 13px;
}

.follow-list-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
}

.follow-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.follow-list-row:hover {
  background: rgba(255, 255, 255, 0.045);
}

.follow-self-tag {
  font-size: 11px;
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* 6-digit OTP + Magic Link Claim Flow */
.claim-email-flow {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.claim-email-step,
.claim-otp-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.claim-email-input,
.claim-otp-input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
}

.claim-otp-input {
  font-family: var(--mono);
  letter-spacing: 0.24em;
  text-align: center;
}

.claim-otp-hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.claim-flow-status {
  font-size: 11.5px;
  color: var(--accent);
  min-height: 14px;
}


/* ==================== FULL ALBUM REVIEW SHARE CARD POPUP ==================== */
.review-card-modal {
  padding: 18px 20px 20px;
}

.review-card-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.review-share-card {
  position: relative;
  border-radius: 16px;
  padding: 18px 18px 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 20% 20%, var(--c1, rgba(232, 188, 118, 0.2)), transparent 62%),
    radial-gradient(circle at 84% 84%, var(--c2, rgba(64, 78, 102, 0.22)), transparent 58%),
    linear-gradient(165deg, rgba(20, 20, 26, 0.98), rgba(11, 11, 15, 0.99));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.review-share-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.review-share-author-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.review-share-author {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.review-share-rank {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(232, 188, 118, 0.12);
  border: 1px solid rgba(232, 188, 118, 0.32);
}

.review-share-hero {
  display: flex;
  align-items: center;
  gap: 15px;
}

.review-share-cover {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.52);
}

.review-share-meta {
  min-width: 0;
  flex: 1;
}

.review-share-title {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 3px;
}

.review-share-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.review-share-score-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.review-share-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 10px;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f8dfa9;
  background: linear-gradient(180deg, rgba(232, 188, 118, 0.22), rgba(232, 188, 118, 0.1));
  border: 1px solid rgba(232, 188, 118, 0.55);
  box-shadow: 0 0 16px rgba(232, 188, 118, 0.22);
}

.review-share-emoji {
  font-size: 20px;
  line-height: 1;
}

.review-share-vibes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.review-share-vibe-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(243, 241, 236, 0.88);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.review-share-quote {
  margin: 13px 0 0;
  padding: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.46;
  color: rgba(245, 242, 234, 0.92);
}

.review-share-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-share-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.review-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.review-card-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-card-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(232, 188, 118, 0.42);
  color: var(--accent);
}

.review-card-share-btn:hover {
  background: rgba(232, 188, 118, 0.14);
  border-color: rgba(232, 188, 118, 0.68);
}
