  :root {
    --bg: #f6f3ec; --surface: #ffffff; --text: #1c1a17;
    --muted: #6b6660; --tertiary: #9a948c; --border: rgba(0,0,0,0.08); --cover: 360px;
  }
  @media (max-width: 760px) { :root { --cover: 300px; } }
  @media (max-width: 480px) { :root { --cover: 220px; } }
  @media (max-width: 360px) { :root { --cover: 180px; } }
  @media (prefers-color-scheme: dark) {
    :root { --bg: #161412; --surface: #1f1c19; --text: #ece8e1; --muted: #a8a39b; --tertiary: #6f6a62; --border: rgba(255,255,255,0.1); }
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; height: 100%; }
  body { font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", system-ui, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow: hidden; }

  /* Top bar */
  .topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--bg); }
  .topbar-fade { position: fixed; top: 0; left: 0; right: 0; height: 160px; z-index: 49; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 55%, rgba(0,0,0,0) 100%); }
  .bottom-fade { position: fixed; bottom: 0; left: 0; right: 0; height: 60px; z-index: 49; pointer-events: none; background: linear-gradient(0deg, var(--bg) 0%, rgba(0,0,0,0) 100%); }
  @media (max-width: 480px) { .topbar { padding: 10px 14px; } .topbar-fade { height: 130px; } .brand svg { height: 36px !important; } .brand div { font-size: 10px !important; } }
  .brand { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
  .view-toggle { display: inline-flex; gap: 0; border-radius: 999px; padding: 0; position: relative; }
  .view-toggle .indicator { position: absolute; bottom: 0; left: 0; height: 0.5px; background: var(--text); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s ease; z-index: 0; pointer-events: none; opacity: 0.5; }
  .view-toggle button { position: relative; z-index: 1; background: transparent; border: none; padding: 8px 14px; font-size: 12px; color: var(--tertiary); cursor: pointer; font-family: inherit; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s ease; }
  .view-toggle button.active { color: var(--text); }

  /* Stream */
  .stream { height: 100vh; overflow-y: auto; scroll-behavior: smooth; padding-bottom: 60px; opacity: 1; transition: opacity 0.35s ease; }
  .stream.fading { opacity: 0; pointer-events: none; }
  .stream::-webkit-scrollbar { display: none; }
  .stream { scrollbar-width: none; }
  .stream-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 120px 20px 40px; position: relative; border-bottom: 0.5px solid var(--border); }
  @media (max-width: 480px) {
    .stream-card { padding: 105px 14px 28px; }
    h1 { font-size: 18px; }
    .meta { font-size: 13px; }
  }
  .card-inner { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: stretch; }
  .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
  .meta-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: nowrap; width: 100%; margin: 4px 0 14px; }
  .meta-row .meta { margin: 0; flex: 1; min-width: 0; }
  @media (max-width: 480px) {
    .meta-row { flex-wrap: wrap; }
    .meta-row .waxlog { width: 100%; text-align: left; }
  }
  .label { font-size: 12px; color: var(--tertiary); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 4px; }
  h1 { font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
  .meta { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
  .waxlog { font-size: 11px; color: var(--tertiary); text-decoration: none; letter-spacing: 0.04em; white-space: nowrap; }
  .waxlog:hover { color: var(--text); }

  .stage { padding: 32px 0 0; margin: 0; overflow: visible; user-select: none; -webkit-user-select: none; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; }
  .track { position: relative; width: var(--cover); height: var(--cover); }
  .wrap { position: absolute; top: 0; left: 50%; width: var(--cover); height: var(--cover); margin-left: calc(var(--cover) / -2); will-change: transform; }
  .wrap.back { z-index: 1; opacity: 0; }
  .wrap.front { z-index: 3; cursor: grab; touch-action: pan-y; }
  .face { position: relative; width: 100%; height: 100%; border-radius: 1px; box-sizing: border-box; overflow: hidden; z-index: 1; }
  .face .baseImg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
  .face.vertical .baseImg { transform: rotate(-90deg); transform-origin: center center; }
  .face.vertical.face-front .baseImg { transform: rotate(0deg); transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
  .face.vertical.face-front { overflow: visible; }
  .face .neighbourStrip { position: absolute; top: 0; bottom: 0; width: 0px; pointer-events: none; opacity: 0; z-index: 2; background-repeat: no-repeat; background-size: var(--cover) var(--cover); transition: opacity 0.35s ease, width 0.35s ease; }
  .bevel-light { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255,255,255,0.15); pointer-events: none; z-index: 5; }
  .bevel-shadow { position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0)); pointer-events: none; z-index: 5; }
  .seam-shadow { position: absolute; top: -4px; bottom: -4px; width: 16px; pointer-events: none; opacity: 0; z-index: 4; transition: opacity 0.25s ease; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%); }
  .drag-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,0.95); background: rgba(0,0,0,0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; pointer-events: none; z-index: 6; letter-spacing: 0.04em; opacity: 1; transition: opacity 0.35s ease; white-space: nowrap; }
  .drag-hint.hidden { opacity: 0; }
  .drag-hint .hint-arrow { width: 14px; height: 14px; }
  .side-label { position: absolute; top: 0; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tertiary); writing-mode: vertical-rl; transform-origin: center; pointer-events: none; opacity: 0; transition: opacity 0.5s ease; padding: 2px 0; }
  .side-label.show { opacity: 1; }

  .tune-btn { background: transparent; border: 0.5px solid var(--border); border-radius: 999px; width: 22px; height: 22px; padding: 0; cursor: pointer; color: var(--tertiary); display: inline-flex; align-items: center; justify-content: center; transition: color 0.2s ease, border-color 0.2s ease; flex-shrink: 0; margin-left: 8px; }
  .tune-btn:hover { color: var(--text); border-color: var(--muted); }
  .tune-btn svg { width: 12px; height: 12px; }
  .tune-panel { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, margin 0.45s cubic-bezier(0.22, 1, 0.36, 1); margin: 0; }
  .tune-panel.open { opacity: 1; margin: 8px 0 14px; }
  .tune-inner { padding: 14px 16px; background: var(--surface); border: 0.5px solid var(--border); border-radius: 8px; }
  .tune-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 18px; }
  .tune-slider-wide { grid-column: 1 / -1; }
  .tune-slider { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
  .tune-slider .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .tune-slider .name { font-size: 11px; color: var(--tertiary); letter-spacing: 0.05em; text-transform: uppercase; }
  .tune-slider .val { font-size: 11px; color: var(--text); font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
  .tune-slider input[type=range] { width: 100%; }
  .tune-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 0.5px solid var(--border); flex-wrap: wrap; }
  .tune-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
  .tune-reset, .tune-auto { background: transparent; color: var(--text); border: 0.5px solid var(--border); border-radius: 6px; padding: 5px 12px; font-size: 11px; font-family: inherit; cursor: pointer; transition: border-color 0.2s ease; letter-spacing: 0.04em; }
  .tune-reset:hover, .tune-auto:hover { border-color: var(--muted); }
  .rotate-btn { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 999px; background: rgba(0,0,0,0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; border: 0.5px solid rgba(255,255,255,0.2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 7; }
  .rotate-btn.show { opacity: 1; pointer-events: auto; }
  .rotate-btn svg { width: 16px; height: 16px; }
  .rotate-btn:hover { background: rgba(0,0,0,0.7); }
  .vertical-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.985); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.45s ease; }
  .vertical-overlay.show { opacity: 1; pointer-events: auto; }
  .vertical-overlay-inner { position: relative; max-width: 80vw; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
  .vertical-overlay img.combined { display: block; max-width: 80vw; max-height: 80vh; object-fit: contain; box-shadow: 0 0 60px rgba(0,0,0,0.6); }
  .vertical-overlay .close-btn { position: fixed; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.08); color: #fff; border: 0.5px solid rgba(255,255,255,0.25); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s ease, border-color 0.2s ease; z-index: 201; }
  .vertical-overlay .close-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
  .vertical-overlay .close-btn svg { width: 16px; height: 16px; }
  .vertical-overlay .overlay-label { position: absolute; right: -22px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); writing-mode: vertical-rl; transform: rotate(180deg); transform-origin: center; pointer-events: none; padding: 2px 0; }
  .vertical-overlay .overlay-label-top { top: 0; }
  .vertical-overlay .overlay-label-bottom { bottom: 0; }
  .tune-stats { margin-top: 14px; padding-top: 12px; border-top: 0.5px solid var(--border); }
  .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px 18px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
  .stat { display: flex; justify-content: space-between; gap: 10px; }
  .stat-label { font-size: 10px; color: var(--tertiary); letter-spacing: 0.05em; text-transform: uppercase; font-family: -apple-system, sans-serif; }
  .stat-val { font-size: 11px; color: var(--text); }
  .stat-bar { margin-top: 10px; height: 3px; background: var(--border); border-radius: 999px; overflow: hidden; }
  .stat-bar-fill { height: 100%; background: var(--text); width: 0%; transition: width 0.25s ease, background 0.25s ease; border-radius: 999px; }
  
  .designer { font-size: 12px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-style: italic; margin: 4px 0 0; letter-spacing: 0.01em; opacity: 0; transform: translateY(4px); transition: opacity 0.4s ease, transform 0.4s ease; text-align: center; }
  .designer b { color: var(--text); font-weight: 500; }
  .story { font-size: 13px; color: var(--muted); max-width: 540px; margin: 14px auto 0; padding: 0 12px; line-height: 1.55; text-align: center; opacity: 0; transform: translateY(4px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .story.story-front { opacity: 1; transform: none; }
  .story.story-expansion { margin-top: 2px; }
  .but-hint { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 14px; color: var(--muted); text-align: center; margin: 14px auto 0; opacity: 1; transition: opacity 0.45s ease; }
  .but-hint .dots { display: inline-block; margin-left: 6px; letter-spacing: 0.25em; }
  .but-hint .dot { display: inline-block; opacity: 0.3; animation: butDot 4.8s ease-in-out infinite; }
  .but-hint .dot:nth-child(1) { animation-delay: 0s; }
  .but-hint .dot:nth-child(2) { animation-delay: 0.5s; }
  .but-hint .dot:nth-child(3) { animation-delay: 1s; }
  .but-hint.hidden { opacity: 0; }
  @keyframes butDot { 0%, 25%, 100% { opacity: 0.25; } 12% { opacity: 1; } }
  .story b { color: var(--text); font-weight: 500; }

  /* Stream nav hint */
  .scroll-hint { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--tertiary); letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; opacity: 0.6; padding: 4px 10px; border-radius: 999px; z-index: 50; }
  @media (max-width: 480px) { .scroll-hint { bottom: 12px; font-size: 9px; } }

  /* List view */
  .list { display: none; height: 100vh; overflow-y: auto; padding: 120px 20px 40px; opacity: 0; transition: opacity 0.35s ease; }
  .list.show { display: block; opacity: 1; }
  @media (max-width: 480px) { .list { padding: 105px 12px 40px; } }
  .list.show { display: block; }
  .list-rows { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; }
  .list-row { display: flex; align-items: center; gap: 16px; padding: 12px 8px; border-bottom: 0.5px solid var(--border); cursor: pointer; transition: background 0.2s ease; }
  .list-row:hover { background: var(--surface); }
  .list-row .cover-img { width: 56px; height: 56px; background: var(--surface); border: 0.5px solid var(--border); border-radius: 2px; background-size: cover; background-position: center; flex-shrink: 0; }
  .list-row-text { flex: 1; min-width: 0; }
  .list-row-title { font-size: 14px; margin: 0; font-weight: 500; }
  .list-row-meta { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
  .list-row-year { font-size: 12px; color: var(--tertiary); white-space: nowrap; font-variant-numeric: tabular-nums; }

  /* Placeholder for non-real releases */
  .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; background: var(--surface); border: 0.5px solid var(--border); border-radius: 1px; text-align: center; padding: 20px; pointer-events: none; }
  .placeholder p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
  .placeholder .ph-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--tertiary); }
  .placeholder b { color: var(--text); font-weight: 500; }