/* ==========================================================================
   Binder 16 — Anti-Infinite 16-Disc CD Binder & Dark-Room Listening Stage
   Strict 2-font system (Plus Jakarta Sans + Newsreader), 3 body sizes
   ========================================================================== */

:root {
  --bg-room: #08080a;
  --bg-elevated: #121216;
  --bg-binder: #141418;
  --bg-pocket: #0e0e12;
  --surface-glass: rgba(15, 15, 20, 0.72);
  --surface-glass-strong: rgba(14, 14, 19, 0.86);

  --ink-primary: #f2efe9;
  --ink-secondary: #b5afa4;
  --ink-muted: #847e74;

  --accent-warm: #d9a15b;
  --accent-warm-soft: rgba(217, 161, 91, 0.16);
  --accent-green: #69b885;
  --accent-rose: #d46d68;

  --line-subtle: rgba(255, 248, 236, 0.08);
  --line-mid: rgba(255, 248, 236, 0.15);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;

  /* Strict 3 body sizes */
  --text-lg: 1.125rem;      /* 18px */
  --text-body: 0.9375rem;   /* 15px */
  --text-sm: 0.8125rem;     /* 13px */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-case: 24px;
  --radius-pocket: 14px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background-color: var(--bg-room);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

button,
input,
select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

body.room-open {
  overflow: hidden;
  background-color: #030305;
}

.hidden {
  display: none !important;
}

/* Warm Tungsten Desk-Lamp Room Wash */
.room-wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(64% 48% at 14% 4%, rgba(217, 161, 91, 0.10), transparent 68%),
    radial-gradient(50% 45% at 88% 92%, rgba(62, 84, 128, 0.09), transparent 72%),
    linear-gradient(180deg, #0b0a0c 0%, #070709 100%);
}

/* ==========================================================================
   Compact Single-Line Top Bar
   ========================================================================== */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: max(10px, env(safe-area-inset-top)) 20px 10px;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.72) 78%, rgba(9, 9, 11, 0) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.top-bar-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-primary);
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #09090b 0 21%, rgba(255,255,255,0.45) 22% 28%, transparent 29%),
    conic-gradient(from 40deg, #c9c3b8, #7e96b8, #e6c697, #9aa4ba, #d8d4cc, #c9c3b8);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 4px 12px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.sleeve-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  justify-self: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  padding: 3px;
}

.sleeve-tab {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.sleeve-tab:hover {
  color: var(--ink-primary);
}

.sleeve-tab[aria-selected="true"] {
  color: #111114;
  background: var(--ink-primary);
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 160ms var(--ease-out);
}

.top-link:hover {
  color: var(--ink-primary);
}

.count-num {
  font-variant-numeric: tabular-nums;
  color: var(--accent-warm);
  font-weight: 600;
}

.conn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-muted);
  transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.conn-dot.connected {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(105, 184, 133, 0.65);
}

/* ==========================================================================
   Main Binder Layout
   ========================================================================== */

.binder-shell {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 6px 20px max(22px, env(safe-area-inset-bottom));
}

.binder-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 12px;
  max-width: 820px;
  padding: 0 4px;
}

.sleeve-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink-primary);
}

.sleeve-heading:focus {
  outline: none;
}

.sleeve-subtitle {
  margin: 3px 0 0;
  font-size: var(--text-body);
  color: var(--ink-secondary);
  max-width: 60ch;
}

.keeper-tally {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Open Zip-Up Ballistic-Nylon CD Binder Case */
.binder-case-wrap {
  position: relative;
  max-width: 876px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 12px;
}

.page-arrow {
  width: 36px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--line-subtle);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-secondary);
  display: grid;
  place-items: center;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.page-arrow:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-mid);
  color: var(--ink-primary);
}

.binder-case {
  position: relative;
  border-radius: var(--radius-case);
  padding: 18px 20px 14px;
  /* Realistic ballistic nylon weave + soft tungsten desk-lamp falloff */
  background-color: #141418;
  background-image:
    radial-gradient(75% 65% at 12% 8%, rgba(217, 161, 91, 0.08), transparent 62%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.017) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 4px),
    linear-gradient(145deg, #1b1b21 0%, #111115 58%, #0d0d11 100%);
  border: 1px solid rgba(255, 248, 236, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 34px rgba(0, 0, 0, 0.45),
    0 28px 70px rgba(0, 0, 0, 0.72),
    0 6px 20px rgba(0, 0, 0, 0.45);
  touch-action: pan-y;
}

/* Outer gunmetal zipper track */
.binder-zipper-edge {
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-case) + 4px);
  border: 2px dotted rgba(164, 158, 148, 0.18);
  pointer-events: none;
}

/* Leather perimeter stitching inside case edge */
.binder-stitching {
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius-case) - 6px);
  border: 1px dashed rgba(255, 245, 228, 0.11);
  pointer-events: none;
}

/* Subtle 3-ring spine down the center on desktop 2x2 spread */
.binder-spine-ring {
  position: absolute;
  top: 22px;
  bottom: 48px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65) 14%, rgba(0, 0, 0, 0.65) 86%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  pointer-events: none;
}

.binder-spine-ring span {
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2a2a32, #64626c, #2a2a32);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* 2x2 Polypropylene Pocket Spread */
.sleeve-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  view-transition-name: binder-spread;
}

/* ==========================================================================
   Individual Polypropylene Sleeve Pocket
   ========================================================================== */

.disc-pocket {
  position: relative;
  border-radius: var(--radius-pocket);
  padding: 12px 13px 11px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.032) 0%, rgba(255, 255, 255, 0.008) 55%, rgba(0, 0, 0, 0.16) 100%),
    #0e0e12;
  border: 1px solid rgba(255, 248, 236, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -8px 22px rgba(0, 0, 0, 0.48);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.disc-pocket:hover {
  border-color: rgba(217, 161, 91, 0.34);
}

.disc-pocket.is-active {
  border-color: rgba(217, 161, 91, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(217, 161, 91, 0.18),
    0 0 0 1px rgba(217, 161, 91, 0.18);
}

/* Clickable Main Pocket Trigger */
.pocket-trigger {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.pocket-trigger:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 4px;
  border-radius: 10px;
}

/* Media Stage inside Pocket (fits entire 2x2 binder cleanly above fold on 1440x900) */
.pocket-stage {
  position: relative;
  aspect-ratio: 1.54 / 1;
  width: 100%;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 48%, #18181f 0%, #0b0b0e 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.65);
}

/* Frosted Translucent Polypropylene Sleeve Flap with Curved Thumb Notch */
.poly-flap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  border-radius: 10px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.015) 38%, transparent 56%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* Subtle semicircular thumb-notch lip at the top edge of every sleeve */
.poly-flap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 56px;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 0 0 34px 34px;
  background: rgba(8, 8, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-top: 0;
}

/* ==========================================================================
   Page 1: Hand-Inked Sharpie CD-Rs
   ========================================================================== */

.cdr-wrap {
  position: relative;
  width: 174px;
  height: 174px;
  max-width: 100%;
  max-height: 100%;
  transition: transform 220ms var(--ease-out);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.65));
}

.disc-pocket:hover .cdr-wrap,
.disc-pocket:focus-within .cdr-wrap {
  transform: translate3d(0, -6px, 0) rotate(-3deg);
}

.cdr-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Pages 2-3: Album Booklet + Peeking Iridescent CD
   ========================================================================== */

.album-bundle {
  position: relative;
  width: 214px;
  height: 164px;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.peeking-disc {
  position: absolute;
  right: 0;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #0d0d11 0 13%, rgba(255, 255, 255, 0.35) 14% 16%, rgba(16, 16, 20, 0.8) 16.5% 24%, rgba(255, 255, 255, 0.22) 24.5% 26%, transparent 26.5%),
    conic-gradient(
      from 18deg,
      var(--disc-c1, #2a2c38),
      var(--disc-c2, #98adc8),
      var(--disc-c3, #efe8dc),
      var(--disc-c2, #8c9db8),
      var(--disc-c1, #2a2c38),
      var(--disc-c3, #e6dcc8),
      var(--disc-c1, #2a2c38)
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.65);
  transition: transform 220ms var(--ease-out);
}

.disc-pocket:hover .peeking-disc,
.disc-pocket:focus-within .peeking-disc {
  transform: translate3d(12px, 0, 0) rotate(18deg);
}

.booklet-cover-card {
  position: relative;
  z-index: 2;
  width: 164px;
  height: 164px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.10);
  transition: transform 220ms var(--ease-out);
}

.disc-pocket:hover .booklet-cover-card,
.disc-pocket:focus-within .booklet-cover-card {
  transform: translate3d(-4px, -3px, 0);
}

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

/* Blind Date Kraft-Paper Wrap + Record-Store Sticky Note */
.blind-wrap {
  position: relative;
  z-index: 3;
  width: 170px;
  height: 170px;
  max-width: 100%;
  max-height: 100%;
  border-radius: 5px;
  padding: 12px 10px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0 2px, transparent 2px 6px),
    linear-gradient(140deg, #9d7d59 0%, #7d6042 56%, #664c33 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 210, 0.25),
    0 12px 26px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 220ms var(--ease-out);
}

.disc-pocket:hover .blind-wrap {
  transform: translate3d(0, -4px, 0) rotate(-1deg);
}

.blind-tape {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 44px;
  height: 13px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(242, 232, 206, 0.56);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.sticky-note {
  width: 100%;
  padding: 10px 10px 9px;
  background: linear-gradient(160deg, #f3e29a 0%, #e5cf7b 100%);
  color: #211d15;
  border-radius: 2px;
  transform: rotate(-1.5deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.34);
}

.sticky-note-head {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.sticky-note-copy {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #2a2419;
}

/* ==========================================================================
   Page 4: Live Studio Room Frames
   ========================================================================== */

.live-thumb-card {
  position: relative;
  z-index: 2;
  width: 268px;
  height: 164px;
  max-width: 100%;
  max-height: 100%;
  border-radius: 7px;
  overflow: hidden;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 220ms var(--ease-out);
}

.disc-pocket:hover .live-thumb-card {
  transform: translate3d(0, -4px, 0);
}

.live-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) contrast(1.04);
}

.live-play-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.05));
}

.live-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(12, 12, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: var(--ink-primary);
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.disc-pocket:hover .live-play-circle {
  transform: scale(1.08);
  background: rgba(217, 161, 91, 0.92);
  color: #111114;
  border-color: transparent;
}

/* ==========================================================================
   Pocket Typography & Quiet Pin Control
   ========================================================================== */

.pocket-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pocket-text {
  min-width: 0;
}

.pocket-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.22;
  color: var(--ink-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pocket-artist {
  margin: 3px 0 0;
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pocket-pin-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.pocket-pin-btn:hover {
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.06);
}

.pocket-pin-btn.is-pinned {
  color: var(--accent-warm);
  background: var(--accent-warm-soft);
  border-color: rgba(217, 161, 91, 0.28);
}

.pocket-pin-btn.is-pinned svg {
  fill: currentColor;
}

/* Binder Bottom Strip */
.binder-footer-bar {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sleeve-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sleeve-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: width 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.sleeve-dot.active {
  width: 20px;
  border-radius: 999px;
  background: var(--accent-warm);
}

.binder-hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.zipper-pull {
  width: 26px;
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(180deg, #4b494f 0%, #242328 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Resume Bar */
.resume-bar {
  margin: 16px auto 0;
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(22, 22, 28, 0.9);
  border: 1px solid rgba(217, 161, 91, 0.28);
  text-align: left;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.resume-bar:hover {
  border-color: rgba(217, 161, 91, 0.55);
  background: rgba(28, 27, 34, 0.96);
}

.resume-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a22;
}

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

.resume-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.resume-copy strong {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-copy span {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
}

.resume-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-warm);
  white-space: nowrap;
}

/* ==========================================================================
   FULL-SCREEN LISTENING ROOM STAGE (Aura / Vesper / Booklet)
   ========================================================================== */

.room-stage {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #030305;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stage-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(4, 4, 7, 0.54) 0%, transparent 24%, transparent 72%, rgba(4, 4, 7, 0.72) 100%);
  opacity: 1;
  transition: opacity 420ms var(--ease-out);
}

.room-stage.hud-hidden .stage-scrim,
.room-stage.hud-hidden .stage-hud-top,
.room-stage.hud-hidden .stage-hud-bottom {
  opacity: 0;
  pointer-events: none;
}

/* Quiet corner title whisper when HUD fades out */
.quiet-whisper {
  position: absolute;
  left: max(22px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 6;
  pointer-events: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-body);
  color: rgba(242, 239, 233, 0.42);
  opacity: 0;
  transition: opacity 520ms var(--ease-out);
}

.room-stage.hud-hidden .quiet-whisper {
  opacity: 1;
}

/* Frosted Top HUD */
.stage-hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 14;
  padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  transition: opacity 320ms var(--ease-out);
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  color: var(--ink-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 999px;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.hud-btn:hover {
  background: rgba(26, 26, 34, 0.88);
  border-color: rgba(255, 255, 255, 0.26);
}

.hud-back {
  justify-self: start;
}

.mode-segment {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.mode-opt {
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.mode-opt:hover {
  color: var(--ink-primary);
}

.mode-opt[aria-checked="true"] {
  background: var(--ink-primary);
  color: #0e0e12;
  font-weight: 600;
}

.hud-top-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vesper-picker {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  outline: none;
}

.vesper-picker option {
  background: #14141a;
  color: var(--ink-primary);
}

.hud-fs-phone {
  display: none;
}

/* ==========================================================================
   Booklet / Dark-Room Liner Notes Mode
   ========================================================================== */

.booklet-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  background:
    radial-gradient(60% 55% at 24% 26%, rgba(217, 161, 91, 0.08), transparent 65%),
    linear-gradient(180deg, #0a0a0d 0%, #050507 100%);
  user-select: text;
  -webkit-user-select: text;
}

.booklet-layer::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 112px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0) 0%, rgba(5, 5, 7, 0.88) 76%, #050507 100%);
}

.booklet-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(78px + env(safe-area-inset-top)) 24px calc(128px + env(safe-area-inset-bottom));
}

.booklet-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.booklet-art-col {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.booklet-disc-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 0;
}

.booklet-cover-large {
  position: relative;
  z-index: 2;
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

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

.booklet-disc-spin {
  position: absolute;
  right: 0;
  width: 72%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #0a0a0d 0 13%, rgba(255, 255, 255, 0.35) 14% 16%, rgba(18, 18, 22, 0.84) 16.5% 24%, rgba(255, 255, 255, 0.22) 24.5% 26%, transparent 26.5%),
    conic-gradient(
      from 22deg,
      var(--disc-c1, #2a2c38),
      var(--disc-c2, #98adc8),
      var(--disc-c3, #efe8dc),
      var(--disc-c2, #8c9db8),
      var(--disc-c1, #2a2c38),
      var(--disc-c3, #e6dcc8),
      var(--disc-c1, #2a2c38)
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 14px 36px rgba(0, 0, 0, 0.72);
  animation: slowSpin 26s linear infinite;
}

.booklet-cdr-large {
  width: min(88%, 310px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  filter: drop-shadow(0 24px 52px rgba(0, 0, 0, 0.8));
  animation: slowSpin 38s linear infinite;
}

.room-stage.is-paused .booklet-disc-spin,
.room-stage.is-paused .booklet-cdr-large {
  animation-play-state: paused;
}

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

.booklet-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink-primary);
}

.booklet-title:focus {
  outline: none;
}

.booklet-byline {
  margin: 8px 0 0;
  font-size: var(--text-body);
  color: var(--accent-warm);
  font-weight: 500;
}

.booklet-essay {
  margin: 20px 0 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.62;
  color: var(--ink-primary);
  max-width: 58ch;
}

.booklet-clerk {
  margin: 12px 0 0;
  font-size: var(--text-body);
  color: var(--ink-secondary);
  max-width: 58ch;
}

.booklet-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-action {
  border: 0;
  background: var(--ink-primary);
  color: #0d0d11;
  font-size: var(--text-body);
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.primary-action:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.subtle-action {
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.subtle-action:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}

.text-action {
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 4px 2px;
  transition: color 160ms var(--ease-out);
}

.text-action:hover {
  color: var(--ink-primary);
}

/* Inline Spotify Embed Drawer */
.inline-spotify-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-subtle);
  background: #121217;
}

.inline-spotify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--line-subtle);
}

.inline-spotify-frame iframe {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
}

/* Tracklist */
.tracklist-section {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-subtle);
}

.tracklist-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tracklist-label {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-primary);
}

.tracklist-meta {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.track-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 9px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 6px;
  transition: background-color 150ms var(--ease-out);
}

.track-row.is-clickable {
  cursor: pointer;
}

.track-row.is-clickable:hover {
  background: rgba(255, 255, 255, 0.045);
}

.track-num {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.track-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.track-name {
  font-size: var(--text-body);
  color: var(--ink-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-sub-artist {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
}

.track-dur {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Direct-Play YouTube Live Studio Frame (Center Stage + Persistent PiP)
   ========================================================================== */

.live-stage-anchor {
  width: 100%;
}

.live-video-shell {
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.78);
}

.live-video-shell.is-inline {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.live-video-shell.is-inline .live-video-chrome {
  display: none;
}

.live-video-shell.is-pip {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 12;
  width: 248px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.82);
}

.live-video-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(12, 12, 16, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
}

.live-video-expand {
  border: 0;
  background: transparent;
  color: var(--accent-warm);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 2px 4px;
}

.live-iframe-host {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.live-iframe-host iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   Frosted Bottom Player & Pandora Taste Dock
   ========================================================================== */

.stage-hud-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 14;
  padding: 12px max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  display: flex;
  justify-content: center;
  transition: opacity 320ms var(--ease-out);
}

.dock-inner {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--surface-glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.68);
}

.dock-now {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dock-disc-thumb {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a22;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dock-disc-thumb img,
.dock-disc-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dock-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dock-title {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-artist {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  display: grid;
  place-items: center;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.icon-btn:hover {
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.08);
}

.dock-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--ink-primary);
  color: #0d0d11;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.dock-play-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.dock-play-icon {
  display: inline-flex;
  align-items: center;
}

.dock-taste {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.taste-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-secondary);
  display: grid;
  place-items: center;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.taste-btn:hover {
  color: var(--ink-primary);
  border-color: rgba(255, 255, 255, 0.26);
}

.taste-btn.active-up {
  color: var(--accent-warm);
  background: var(--accent-warm-soft);
  border-color: rgba(217, 161, 91, 0.45);
}

.taste-btn.active-down {
  color: var(--accent-rose);
  background: rgba(212, 109, 104, 0.16);
  border-color: rgba(212, 109, 104, 0.45);
}

.dock-keep-btn,
.dock-swap-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.dock-keep-btn:hover,
.dock-swap-btn:hover {
  color: var(--ink-primary);
  border-color: rgba(255, 255, 255, 0.26);
}

.dock-keep-btn.is-pinned {
  color: var(--accent-warm);
  background: var(--accent-warm-soft);
  border-color: rgba(217, 161, 91, 0.42);
}

.dock-keep-btn.is-pinned svg {
  fill: currentColor;
}

/* ==========================================================================
   Toast Feedback
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(22, 22, 28, 0.94);
  border: 1px solid rgba(217, 161, 91, 0.38);
  color: var(--ink-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Native Modal Dialogs (Modern Web Guidance compliant)
   ========================================================================== */

dialog.sheet-dialog {
  width: min(500px, calc(100vw - 28px));
  max-height: min(82dvh, 660px);
  padding: 0;
  border-radius: 20px;
  border: 1px solid var(--line-mid);
  background: #131318;
  color: var(--ink-primary);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.82);
  overscroll-behavior: contain;
}

dialog.sheet-dialog::backdrop {
  background: rgba(4, 4, 7, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-inner {
  padding: 22px 22px 20px;
  overflow-y: auto;
  max-height: min(82dvh, 660px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dialog-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.dialog-close {
  border: 1px solid var(--line-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.dialog-close:hover {
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.09);
}

.dialog-subhead {
  margin: 0 0 6px;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-primary);
}

.dialog-intro {
  margin: 0 0 16px;
  font-size: var(--text-body);
  color: var(--ink-secondary);
  line-height: 1.5;
}

.taste-list,
.swap-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.taste-entry,
.swap-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-subtle);
}

.swap-option {
  width: 100%;
  text-align: left;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.swap-option:hover {
  border-color: rgba(217, 161, 91, 0.45);
  background: rgba(217, 161, 91, 0.08);
}

.taste-entry-meta,
.swap-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.taste-entry-meta strong,
.swap-meta strong {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-primary);
}

.taste-entry-meta span,
.swap-meta span {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
}

.taste-verdict {
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.taste-verdict.up {
  color: var(--accent-warm);
}

.taste-verdict.down {
  color: var(--accent-rose);
}

.dialog-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  justify-content: flex-end;
}

.spotify-status-block {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-subtle);
}

.spotify-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-primary);
}

.field-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-mid);
  background: #0b0b0f;
  color: var(--ink-primary);
  font-size: var(--text-body);
}

.field-input:focus {
  outline: 2px solid var(--accent-warm);
  outline-offset: 1px;
}

.field-note {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  word-break: break-all;
}

.mono-inline {
  color: var(--ink-secondary);
}

.spotify-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.field-error {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  color: var(--accent-rose);
}

/* ==========================================================================
   iPhone Portrait & Sideways Portrait-Lock Fullscreen Polish
   ========================================================================== */

@media (max-width: 820px) {
  .binder-case-wrap {
    grid-template-columns: 1fr;
  }

  .page-arrow {
    display: none;
  }

  .booklet-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .booklet-art-col {
    position: static;
  }

  .booklet-disc-showcase {
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .top-bar {
    padding: max(10px, env(safe-area-inset-top)) 14px 8px;
  }

  .top-bar-inner {
    grid-template-columns: 1fr auto;
    row-gap: 10px;
  }

  .sleeve-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
  }

  .sleeve-tab {
    flex: 1;
    text-align: center;
    padding: 7px 6px;
  }

  .binder-shell {
    padding: 8px 14px max(24px, env(safe-area-inset-bottom));
  }

  .binder-header {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
  }

  .sleeve-subtitle {
    font-size: var(--text-sm);
  }

  .binder-case {
    padding: 14px 12px 14px;
    border-radius: 20px;
  }

  .binder-stitching {
    inset: 6px;
    border-radius: 15px;
  }

  .binder-spine-ring {
    display: none;
  }

  .sleeve-grid {
    gap: 11px;
  }

  .disc-pocket {
    padding: 10px 10px 10px;
    gap: 9px;
    border-radius: 12px;
  }

  .pocket-stage {
    aspect-ratio: 1 / 1;
    padding: 8px;
  }

  .poly-flap::before {
    width: 38px;
    height: 10px;
  }

  .cdr-wrap {
    width: 88%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .album-bundle {
    width: 92%;
    height: auto;
    aspect-ratio: 1.24 / 1;
  }

  .peeking-disc {
    width: 68%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .booklet-cover-card {
    width: 74%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .blind-wrap {
    width: 90%;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 9px 8px;
  }

  .sticky-note {
    padding: 7px 7px 6px;
  }

  .sticky-note-copy {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .live-thumb-card {
    width: 96%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .pocket-foot {
    position: static;
  }

  .pocket-title {
    font-size: var(--text-body);
  }

  /* Float pin button cleanly in top-right of sleeve pocket on mobile so disc titles get 100% width */
  .pocket-pin-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 6;
    width: 28px;
    height: 28px;
    background: rgba(11, 11, 15, 0.74);
    border-color: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .binder-footer-bar {
    margin-top: 14px;
    padding-top: 10px;
  }

  .binder-hint {
    display: none;
  }

  /* Listening Room HUD compact mobile stacking — guaranteed <= 390px fit */
  .stage-hud-top {
    grid-template-columns: auto 1fr auto;
    padding: max(12px, env(safe-area-inset-top)) 10px 8px;
    gap: 5px;
  }

  .hud-btn {
    padding: 6px 8px;
    gap: 3px;
  }

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

  .mode-segment {
    padding: 3px;
    gap: 1px;
  }

  .mode-opt {
    padding: 6px 8px;
  }

  .hud-fs-desktop {
    display: none;
  }

  .hud-fs-phone {
    display: inline-flex;
  }

  .vesper-picker {
    position: fixed;
    top: calc(62px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
  }

  .dock-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .dock-controls {
    justify-content: space-between;
  }

  .dock-play-btn {
    flex: 1;
    justify-content: center;
  }

  .dock-taste {
    justify-self: stretch;
    justify-content: space-between;
  }

  .live-video-shell.is-pip {
    right: 12px;
    bottom: calc(176px + env(safe-area-inset-bottom));
    width: 174px;
  }

  .booklet-scroll {
    padding: calc(70px + env(safe-area-inset-top)) 16px calc(210px + env(safe-area-inset-bottom));
  }
}

/* Portrait-Lock Sideways Fullscreen Stage (Vesper-proven 90deg CSS rotation) */
.room-stage.is-phone-landscape {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  width: 100dvh;
  height: 100vw;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
  z-index: 50;
}

.room-stage.is-phone-landscape .stage-hud-top {
  padding: 12px max(18px, env(safe-area-inset-bottom)) 8px max(18px, env(safe-area-inset-top));
}

.room-stage.is-phone-landscape .vesper-picker {
  position: static;
  transform: none;
}

.room-stage.is-phone-landscape .stage-hud-bottom {
  padding: 8px max(18px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-top));
}

.room-stage.is-phone-landscape .dock-inner {
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 8px 12px;
  gap: 10px;
}

.room-stage.is-phone-landscape .dock-play-btn {
  flex: 0 0 auto;
}

.room-stage.is-phone-landscape .dock-taste {
  justify-self: end;
}

.room-stage.is-phone-landscape .live-video-shell.is-pip {
  right: 18px;
  bottom: 84px;
  width: 210px;
}

/* View Transitions & Reduced Motion */
::view-transition-old(binder-spread),
::view-transition-new(binder-spread) {
  animation-duration: 210ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
