:root {
  --bg: #08090a;
  --bg-radial: #1a0f04;
  --surface: #131415;
  --surface-2: #1a1b1d;
  --surface-3: #242527;
  --glass: rgba(16, 17, 18, 0.85);
  --glass-border: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --border-soft: rgba(255, 255, 255, 0.04);
  --red: #ff7a1a;
  --red-dim: #d9600e;
  --red-deep: #2b1405;
  --red-glow: rgba(255, 122, 26, 0.12);
  --text: #ffffff;
  --text-dim: #a7a7ad;
  --text-faint: #55555a;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --safe-top: env(safe-area-inset-top, 18px);
  --safe-bottom: env(safe-area-inset-bottom, 14px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --orange: #ff6a1a;
--orange-soft: #ffa066;
--orange-deep: #a33f0a;
--orange-wash: rgba(255, 106, 26, 0.12);
--card: var(--surface);
--card-hi: var(--surface-2);
--mono: "SF Mono", ui-monospace, monospace;
--display: var(--font-display);
--border-strong: rgba(255, 255, 255, 0.14);
--bg-soft: var(--surface);
--body: var(--font-body);
--frame-w: 460px;
--appbar-h: 52px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

input, textarea {
  user-select: text;
}

img {
  -webkit-user-drag: none;
}

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

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(circle at 50% 50%, var(--bg-radial) 0%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
}

.loader-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
}

.loader-word span {
  color: var(--red);
}

.loader-track {
  width: 120px;
  height: 3px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  animation: fill 1s var(--ease) forwards;
}

@keyframes fill { to { width: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }

.app-shell {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 100dvh;
  background: var(--bg);
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  z-index: 1;
  will-change: transform;
}

.view.pos-center {
  transform: translateX(0);
  z-index: 3;
}

.view.pos-left {
  transform: translateX(-25%);
  z-index: 2;
  opacity: 0.7;
}

.view.pos-right {
  transform: translateX(100%);
  z-index: 2;
}

.scroll-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 150px;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 16px) 16px 12px;
}

.brand-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--red);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring);
}

.avatar-mark:active {
  transform: scale(0.9);
}

.avatar-mark span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.avatar-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: none;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.4px;
  color: #fff;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon-btn {
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s var(--ease);
}

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

.header-icon-btn svg {
  width: 22px;
  height: 22px;
}

.note-icon {
  color: var(--text-dim);
  width: 20px;
  height: 20px;
}

.search-wrap {
  position: relative;
  margin: 8px 16px 16px;
}

.search-wrap svg, .search-wrap i {
  position: absolute;
  left: 14px;
  top: 13px;
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  pointer-events: none;
}

#search-input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

#search-input:focus {
  background: var(--surface-3);
  border-color: rgba(255, 255, 255, 0.08);
}

#search-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}

.suggest-panel {
  position: relative;
  margin: 0 16px 0;
  background: var(--surface-2);
  border-radius: 8px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s var(--ease), opacity 0.2s var(--ease), margin 0.25s var(--ease);
}

.suggest-panel.open {
  max-height: 340px;
  opacity: 1;
  margin: 0 16px 16px;
  border: 1px solid var(--border);
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
}

.suggest-item:last-child {
  border-bottom: none;
}

.suggest-item:active {
  background: var(--surface-3);
}

.suggest-item img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.suggest-meta {
  min-width: 0;
  flex: 1;
}

.suggest-title {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.suggest-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin: 24px 0 12px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.section-label-row .section-label {
  margin: 0;
}

.section-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.section-action:active {
  color: var(--text);
}

.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail-card {
  flex-shrink: 0;
  width: 132px;
  scroll-snap-align: start;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  text-align: left;
  transition: transform 0.2s var(--ease);
}

.rail-card:active {
  transform: scale(0.97);
}

.rail-card img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.rail-card .card-shade {
  display: none;
}

.rail-card .rail-label {
  position: relative;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-card .rail-sub {
  position: relative;
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.rail-card.trending::before {
  content: '🔥';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 2;
}

.rail-empty {
  padding: 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

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

.skeleton-rail {
  display: flex;
  gap: 14px;
  padding: 0 16px;
}

.skeleton-rail .skeleton {
  width: 132px;
  height: 132px;
  border-radius: 6px;
  flex-shrink: 0;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
  padding: 4px 16px 4px;
}

.album-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.album-card:active {
  transform: scale(0.96);
  background: var(--surface-2);
  border-color: var(--border);
}

.album-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.album-card .card-shade {
  display: none;
}

.album-card .card-label {
  position: relative;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--text);
  padding-right: 0;
  margin-top: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-card .card-count {
  position: static;
  transform: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
  padding: 4px 16px;
}

.skeleton-grid .skeleton {
  aspect-ratio: 1/1;
  height: auto;
  border-radius: 14px;
}

.no-results {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 40px 10px;
}

.bottom-spacer {
  height: 150px;
}

.mini-player {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(8px + var(--safe-bottom));
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 20;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  overflow: hidden;
}

.mini-player.visible {
  transform: translateY(0);
}

.mini-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--text);
  transition: width 0.15s linear;
}

.mini-thumb {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-thumb.spin {
  animation: none;
}

.mini-info {
  flex: 1;
  min-width: 0;
}

.mini-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-artist {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.mini-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mini-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s var(--ease);
}

.mini-btn:active {
  transform: scale(0.9);
}

.mini-btn svg {
  width: 20px;
  height: 20px;
}

.mini-play {
  width: 32px;
  height: 32px;
  color: var(--text);
}

.mini-play svg {
  width: 22px;
  height: 22px;
  fill: var(--text);
}

.sub-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: calc(var(--safe-top) + 16px) 16px 12px;
}

.back-btn {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  color: var(--text);
  transition: opacity 0.15s var(--ease);
}

.back-btn:active {
  opacity: 0.6;
}

.back-btn svg {
  width: 24px;
  height: 24px;
}

.sub-header-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: none;
}

.sub-header-action {
  margin-left: auto;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 600;
}

.sub-header-action:active {
  opacity: 0.7;
}

.album-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 24px;
  text-align: center;
}

.album-hero img {
  width: 52vw;
  max-width: 210px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.album-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  margin-top: 20px;
  letter-spacing: -0.4px;
}

.album-hero p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 4px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
  max-width: 280px;
}

.hero-btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 0;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text);
  transition: transform 0.15s var(--ease);
}

.hero-btn.primary {
  background: var(--red);
  color: #fff;
}

.hero-btn:active {
  transform: scale(0.96);
}

.hero-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.song-list {
  padding: 4px 0 150px 0;
}

.song-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  transition: background 0.2s var(--ease);
}

.song-row:active {
  background: var(--surface-2);
}

.song-row.is-playing {
  background: var(--red-deep);
}

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

.song-num {
  width: 20px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 500;
  flex-shrink: 0;
}

.song-row.is-playing .song-num {
  color: var(--red);
}

.song-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.song-meta {
  min-width: 0;
}

.song-title {
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.song-row.is-playing .song-title {
  color: var(--red);
  font-weight: 600;
}

.song-artist {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.song-pulse {
  width: 14px;
  height: 14px;
  color: var(--red);
  flex-shrink: 0;
  display: none;
}

.song-row.is-playing .song-pulse {
  display: block;
}

.song-more {
  color: var(--text-dim);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-more:active {
  color: var(--text);
}

.song-more svg {
  width: 18px;
  height: 18px;
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 16px) 24px 0;
}

.explore-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.explore-pill:active {
  background: var(--surface-3);
}

.explore-pill svg {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
}

.queue-btn {
  color: var(--text);
  display: flex;
  align-items: center;
}

.queue-btn:active {
  opacity: 0.6;
}

.queue-btn svg {
  width: 22px;
  height: 22px;
}

.player-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 24px calc(var(--safe-bottom) + 20px);
  min-height: 0;
}

.artwork-arena {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  position: relative;
}

.artwork-frame {
  width: 82vw;
  height: 82vw;
  max-width: 310px;
  max-height: 310px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease);
}

.artwork-frame.playing {
  transform: scale(1.02);
}

.artwork-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buffer-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  animation: spin 0.8s linear infinite;
}

.artwork-frame.buffering .buffer-spinner {
  opacity: 1;
}

.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 4px 12px;
}

.track-meta {
  min-width: 0;
  flex: 1;
}

.track-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-btn {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.1s var(--ease);
}

.fav-btn:active {
  transform: scale(0.9);
}

.fav-btn svg {
  width: 24px;
  height: 24px;
}

.fav-btn.active {
  color: var(--red);
}

.fav-btn.active svg {
  fill: var(--red);
}

.scrub-wrap {
  margin: 0 4px 16px;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.range-wrap {
  position: relative;
  height: 12px;
  display: flex;
  align-items: center;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  position: absolute;
  z-index: 5;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.1s var(--ease), width 0.1s, height 0.1s;
}

.range-wrap:hover input[type="range"]::-webkit-slider-thumb, 
input[type="range"]:active::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
}

.range-fill {
  position: absolute;
  left: 0;
  top: 4px;
  height: 4px;
  background: #fff;
  border-radius: 4px;
  width: 0%;
  pointer-events: none;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.ctrl-util, .ctrl-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.ctrl-util:active {
  color: var(--text);
}

.ctrl-nav:active {
  transform: scale(0.95);
}

.ctrl-util.active {
  color: var(--red);
}

.ctrl-util svg {
  width: 20px;
  height: 20px;
}

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

.ctrl-nav svg {
  width: 28px;
  height: 28px;
  fill: var(--text);
}

.ctrl-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s var(--ease);
}

.ctrl-play:active {
  transform: scale(0.92);
}

.ctrl-play svg {
  width: 26px;
  height: 26px;
  fill: #000;
  position: relative;
  left: 1px;
}

.util-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.volume-icon {
  color: var(--text-dim);
  flex-shrink: 0;
  display: flex;
}

.volume-icon svg {
  width: 14px;
  height: 14px;
}

.util-row .range-wrap {
  flex: 1;
  height: 12px;
}

.util-row input[type="range"] {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.util-row .range-fill {
  top: 4px;
  height: 4px;
  background: var(--text-dim);
}

.speed-btn {
  flex-shrink: 0;
  background: var(--surface-2);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
}

.player-tag {
  display: none;
}

.empty-state {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 60px 20px;
}

.empty-state svg {
  width: 40px;
  height: 40px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.library-header {
  padding: calc(var(--safe-top) + 16px) 16px 12px;
}

.library-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.4px;
}

.library-grid {
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.library-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  transition: background 0.15s var(--ease);
}

.library-row:active {
  background: var(--surface-2);
}

.library-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.library-icon svg {
  width: 18px;
  height: 18px;
  color: var(--red);
}

.library-icon.plain {
  background: var(--surface-2);
}

.library-icon.plain svg {
  color: var(--text-dim);
}

.library-meta {
  flex: 1;
  min-width: 0;
}

.library-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.library-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1px;
}

.library-chevron {
  color: var(--text-faint);
  flex-shrink: 0;
}

.library-chevron svg {
  width: 14px;
  height: 14px;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
  padding: 4px 16px calc(16px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
  max-height: 75vh;
  display: flex;
  flex-direction: column;
}

.sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  margin: 8px auto 16px;
  flex-shrink: 0;
}

.sheet-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  padding: 0 4px;
  flex-shrink: 0;
}

.sheet-body {
  overflow-y: auto;
  flex: 1;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 6px;
  margin-bottom: 1px;
}

.action-item:active {
  background: var(--surface-3);
}

.action-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.action-item span {
  font-size: 0.92rem;
  font-weight: 500;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-soft);
}

.queue-item img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.queue-item .song-meta {
  flex: 1;
  min-width: 0;
}

.queue-drag {
  color: var(--text-faint);
  flex-shrink: 0;
}

.queue-drag svg {
  width: 16px;
  height: 16px;
}

.queue-now-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  margin: 4px 4px 8px;
  letter-spacing: 0.5px;
}

.queue-next-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin: 16px 4px 8px;
  letter-spacing: 0.5px;
}

.modal-wrap {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s;
}

.modal-wrap.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 310px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transform: scale(1.04);
  transition: transform 0.2s var(--ease);
}

.modal-wrap.open .modal-card {
  transform: scale(1);
}

.modal-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
  text-align: center;
}

.modal-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  font-family: var(--font-body);
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-btn {
  flex: 1;
  padding: 11px;
  border-radius: 20px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--surface-3);
}

.modal-btn.primary {
  background: var(--text);
  color: #000;
}

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

.toast {
  position: absolute;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.profile-photo-row {
  display: flex;
  justify-content: center;
  margin: 4px 0 18px;
}

.profile-photo-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, var(--red) 0%, var(--red-dim) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: none;
  background: var(--surface-2);
}

.profile-email {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 14px;
}

.logout-btn {
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--red);
}

.menu-btn {
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s var(--ease-spring);
}

.menu-btn:active {
  transform: scale(0.88);
}

.menu-btn svg {
  width: 22px;
  height: 22px;
}

.menu-layer {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s var(--ease);
}

.menu-layer.open {
  pointer-events: auto;
  visibility: visible;
}

.menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.menu-layer.open .menu-overlay {
  opacity: 1;
}

.side-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  max-width: 290px;
  height: 100%;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: calc(var(--safe-top) + 28px) 18px calc(var(--safe-bottom) + 20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
  box-shadow: 24px 0 50px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.menu-layer.open .side-menu {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 6px 26px;
}

.side-menu-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(155deg, var(--red) 0%, var(--red-dim) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.3);
}

.side-menu-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.4px;
}

.side-menu-brand span {
  color: var(--red);
}

.side-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.side-menu-item:active {
  background: var(--surface-2);
}

.side-menu-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--text-dim);
}

.side-menu-item.active {
  color: var(--text);
  background: var(--surface-2);
}

.side-menu-item.active svg {
  color: var(--red);
}

.menu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1DB954;
  margin-left: auto;
  box-shadow: 0 0 8px rgba(29, 185, 84, 0.6);
  flex-shrink: 0;
}

.albums-showcase-container {
  padding: 0 20px;
  margin-top: 24px;
}

.showcase-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 16px;
}

.tab-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #8e8e93;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 0.825rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.tab-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.tab-pill.active {
  background: #ffffff;
  color: #0a0a0b;
  border-color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.showcase-content {
  display: none;
}

.showcase-content.open {
  display: block;
  animation: meshFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.modern-albums-mesh {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 18px;
}

@media(min-width: 768px) {
  .modern-albums-mesh {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 24px;
  }
}

.mesh-album-card {
  position: relative;
  cursor: pointer;
}

.mesh-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mesh-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.mesh-play-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(10, 10, 11, 0.5) 0%, rgba(10, 10, 11, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.35s ease;
}

.mesh-play-overlay i {
  width: 36px;
  height: 36px;
  color: #fff;
  fill: #fff;
  transform: scale(0.8);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mesh-album-card:hover .mesh-cover-wrap {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5);
}

.mesh-album-card:hover .mesh-cover-wrap img {
  transform: scale(1.06);
}

.mesh-album-card:hover .mesh-play-overlay {
  opacity: 1;
}

.mesh-album-card:hover .mesh-play-overlay i {
  transform: scale(1);
}

.mesh-meta {
  margin-top: 14px;
  padding: 0 4px;
}

.mesh-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.mesh-artist {
  font-size: 0.75rem;
  font-weight: 500;
  color: #7c7c82;
  margin-top: 4px;
}

.circle-albums-strip {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
  padding: 10px 0;
}

@media(min-width: 480px) {
  .circle-albums-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media(min-width: 768px) {
  .circle-albums-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

.vinyl-album-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: 24px;
  transition: background 0.4s, border-color 0.4s;
}

.vinyl-album-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.vinyl-disk-system {
  position: relative;
  width: 150px;
  height: 150px;
}

.vinyl-jacket {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 8px 12px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.vinyl-plate {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #3a3a3c 2px, #0b0b0c 40%, #000000 80%);
  border-radius: 50%;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.15), 4px 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.vinyl-plate::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.vinyl-center-label {
  position: absolute;
  top: 33%;
  left: 33%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.vinyl-album-card:hover .vinyl-jacket {
  transform: translateX(-30px) rotate(-6deg);
}

.vinyl-album-card:hover .vinyl-plate {
  transform: translateX(35px) rotate(180deg);
}

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

@media (max-width: 340px) {
  .rail-card { width: 116px; }
  .rail-card img { width: 116px; height: 116px; }
}

.announcements-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px;
}

.announcement-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}

.announcement-card:active {
  transform: scale(0.985);
  background: var(--surface-3);
  border-color: rgba(255, 255, 255, 0.09);
}

.announcement-card.critical {
  border-left: 3.5px solid var(--red);
}

.announcement-card.feature {
  border-left: 3.5px solid #1db954;
}

.announcement-card.standard {
  border-left: 3.5px solid var(--text-faint);
}

.announcement-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.announcement-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.critical .announcement-badge {
  background: var(--red-deep);
  color: var(--red);
}

.feature .announcement-badge {
  background: rgba(29, 185, 84, 0.1);
  color: #1db954;
}

.standard .announcement-badge {
  background: var(--surface-3);
  color: var(--text-dim);
}

.announcement-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.announcement-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  line-height: 1.3;
}

.announcement-desc {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dim);
  user-select: text;
}

.content-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--bg);
  display: block;
}

.frame-page-body {
  padding: calc(var(--safe-top) + 16px) 0 150px;
  min-height: 100%;
}

.frame-intro {
  padding: 0 20px 20px;
}

.frame-intro h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  color: var(--text);
}

.frame-intro p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 6px;
  line-height: 1.5;
}

.frame-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 60px 24px;
}

.frame-empty i {
  width: 34px;
  height: 34px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 24px 28px;
}

.about-photo-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, var(--red) 0%, var(--red-dim) 100%);
  position: relative;
  cursor: pointer;
}

.about-photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--surface-3);
}

.about-photo-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-edit i {
  width: 14px;
  height: 14px;
  color: #fff;
}

.about-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.4px;
  margin-top: 18px;
}

.about-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 4px;
}

.about-bio {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 340px;
}

.about-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.about-social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}

.about-social-btn:active {
  transform: scale(0.96);
  background: var(--surface-3);
}

.about-social-btn i {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
}

.about-section {
  padding: 24px 20px 0;
}

.about-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
}

.about-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-chip {
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.about-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.about-stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}

.about-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--red);
}

.about-stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.about-photo-input {
  display: none;
}

.frame-view-toggle {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}

.frame-view-toggle button {
  flex: 1;
  padding: 10px 0;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.frame-view-toggle button.active {
  background: var(--text);
  color: #000;
  border-color: var(--text);
}

@media (min-width: 480px) {
  .albums-showcase-container { padding: 0 20px; }
}

.streak-page * { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html.streak-page, body.streak-page{
  margin:0; height:auto; min-height:100%; width:100%; overflow-x:hidden; overflow-y:auto;
  background:radial-gradient(560px 320px at 85% -8%, rgba(255,106,26,.16), transparent 60%), var(--bg);
  color:var(--text); font-family:var(--body);
  -webkit-overflow-scrolling:touch; overscroll-behavior-y:contain;
}
.streak-page ::selection{ background:var(--orange); color:#160800; }
.streak-page a{ color:inherit; text-decoration:none; }
.streak-page button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; }
.streak-page :focus-visible{ outline:2px solid var(--orange-soft); outline-offset:3px; border-radius:4px; }

.streak-page .sk-standalone-back{
  display:none; align-items:center; gap:6px;
  max-width:var(--frame-w); margin:0 auto;
  padding:14px 18px 0; font-family:var(--mono); font-size:11.5px;
  color:var(--text-faint); letter-spacing:.04em;
}
.streak-page .sk-standalone-back:hover{ color:var(--orange-soft); }
.streak-page .sk-standalone-back svg{ width:14px; height:14px; }

.streak-page .sk-wrap{
  max-width:var(--frame-w); margin:0 auto;
  padding:22px 20px 40px;
}

/* Brand row */
.streak-page .sk-brand-row{ display:flex; align-items:center; gap:12px; margin-bottom:22px; }
.streak-page .sk-logo{ width:34px; height:34px; flex:none; }
.streak-page .sk-kicker{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--orange-soft); margin-bottom:2px;
}
.streak-page .sk-wrap h1{
  font-family:var(--display); font-weight:700; font-size:21px; margin:0; letter-spacing:-.01em;
}
.streak-page.embedded .sk-brand-row{ display:none; }

/* Hero */
.streak-page .sk-hero{
  background:linear-gradient(160deg, var(--card-hi), var(--card));
  border:1px solid var(--border); border-radius:20px;
  padding:28px 20px; text-align:center; margin-bottom:16px;
}
.streak-page .sk-flame{
  width:52px; height:52px; margin:0 auto 10px; border-radius:50%;
  background:var(--orange-wash); border:1px solid rgba(255,106,26,.3);
  display:flex; align-items:center; justify-content:center;
}
.streak-page .sk-flame svg{ width:24px; height:24px; color:var(--orange); }
.streak-page .sk-streak-num{ font-family:var(--display); font-weight:800; font-size:44px; line-height:1; color:var(--text); }
.streak-page .sk-streak-label{ font-size:13px; color:var(--text-dim); margin-top:4px; }
.streak-page .sk-longest{ font-family:var(--mono); font-size:11px; color:var(--text-faint); margin-top:14px; }
.streak-page .sk-longest span{ color:var(--orange-soft); font-weight:700; }

/* Week card */
.streak-page .sk-week-card{
  background:var(--card); border:1px solid var(--border); border-radius:16px;
  padding:16px; margin-bottom:16px;
}
.streak-page .sk-week-head{
  display:flex; align-items:center; justify-content:space-between;
  font-family:var(--display); font-size:12.5px; margin-bottom:14px;
}
.streak-page .sk-week-head span:last-child{ font-family:var(--mono); font-size:10.5px; color:var(--text-faint); }
.streak-page .sk-week-grid{ display:flex; justify-content:space-between; gap:6px; }
.streak-page .sk-day{ display:flex; flex-direction:column; align-items:center; gap:6px; flex:1; }
.streak-page .sk-dot{
  width:30px; height:30px; border-radius:50%; background:var(--bg-soft);
  border:1px solid var(--border-strong); display:flex; align-items:center; justify-content:center;
}
.streak-page .sk-dot svg{ width:14px; height:14px; color:#160800; }
.streak-page .sk-day.done .sk-dot{ background:linear-gradient(145deg, var(--orange-soft), var(--orange-deep)); border-color:transparent; }
.streak-page .sk-day.today .sk-dot{ box-shadow:0 0 0 2px var(--orange); }
.streak-page .sk-day-label{ font-family:var(--mono); font-size:9.5px; color:var(--text-faint); }
.streak-page .sk-day.today .sk-day-label{ color:var(--orange-soft); font-weight:700; }

/* Buttons */
.streak-page .sk-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:13px 16px; border-radius:12px;
  font-weight:700; font-size:13.5px; margin-bottom:8px;
}
.streak-page .sk-btn svg{ width:16px; height:16px; }
.streak-page .sk-btn-primary{ background:var(--orange); color:#160800; }
.streak-page .sk-btn-primary:hover{ background:var(--orange-soft); }
.streak-page .sk-btn-ghost{ background:var(--card); border:1px solid var(--border-strong); color:var(--text); }
.streak-page .sk-btn-ghost:hover{ border-color:var(--orange); color:var(--orange-soft); }
.streak-page .sk-hint{
  font-size:11px; color:var(--text-faint); line-height:1.5; margin:0 0 22px;
}
.streak-page .sk-hint code{
  font-family:var(--mono); background:var(--card); border:1px solid var(--border);
  padding:1px 5px; border-radius:5px; color:var(--text-dim);
}

/* Shareable report card */
.streak-page .sk-report-card{
  width:100%; max-width:300px; margin:0 auto 16px; aspect-ratio:9/13; border-radius:22px; position:relative;
  background:
    radial-gradient(240px 200px at 100% 0%, rgba(255,106,26,.35), transparent 60%),
    radial-gradient(200px 180px at 0% 100%, rgba(255,106,26,.18), transparent 60%),
    linear-gradient(180deg, #141013, #0a0809);
  border:1px solid var(--border-strong);
  padding:22px; display:flex; flex-direction:column; align-items:center;
  box-shadow:0 20px 50px rgba(0,0,0,.55);
}
.streak-page .sk-rc-mark{ display:flex; align-items:center; gap:7px; align-self:flex-start; font-family:var(--display); font-weight:700; font-size:12px; }
.streak-page .sk-rc-mark img{ width:16px; height:16px; }
.streak-page .sk-rc-date{ align-self:flex-start; font-family:var(--mono); font-size:9.5px; color:var(--text-faint); margin-top:2px; }
.streak-page .sk-rc-flame{
  width:64px; height:64px; margin:22px auto 6px; border-radius:50%;
  background:var(--orange-wash); border:1px solid rgba(255,106,26,.3);
  display:flex; align-items:center; justify-content:center;
}
.streak-page .sk-rc-flame svg{ width:30px; height:30px; color:var(--orange); }
.streak-page .sk-rc-num{ font-family:var(--display); font-weight:800; font-size:38px; line-height:1; }
.streak-page .sk-rc-label{ font-size:11.5px; color:var(--text-dim); margin-top:2px; margin-bottom:auto; }
.streak-page .sk-rc-week{ display:flex; gap:6px; margin:18px 0 4px; }
.streak-page .sk-rc-pip{ width:9px; height:9px; border-radius:50%; background:var(--border-strong); }
.streak-page .sk-rc-pip.done{ background:var(--orange); box-shadow:0 0 6px var(--orange); }
.streak-page .sk-rc-foot{ font-family:var(--mono); font-size:9px; letter-spacing:.1em; color:var(--text-faint); text-transform:uppercase; margin-top:10px; }

/* Toast */
.streak-page .sk-toast{
  position:fixed; left:50%; bottom:24px; transform:translate(-50%, 12px);
  max-width:calc(var(--frame-w) - 40px);
  background:#161113; border:1px solid rgba(255,106,26,.35);
  color:var(--text); font-size:12.5px; font-weight:600;
  padding:11px 16px; border-radius:12px;
  display:flex; align-items:center; gap:8px;
  opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease;
  z-index:60; box-shadow:0 10px 30px rgba(0,0,0,.5);
}
.streak-page .sk-toast svg{ width:15px; height:15px; color:var(--orange-soft); }
.streak-page .sk-toast.show{ opacity:1; transform:translate(-50%, 0); }

@media (min-width:560px){ :root{ --frame-w:520px; } }

   .doc-page * { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
  html.doc-page, body.doc-page {
    height:auto; min-height:100%; width:100%; overflow-x:hidden; overflow-y:auto;
    margin:0; padding:0;
    background:
      radial-gradient(560px 320px at 85% -8%, rgba(255,106,26,.16), transparent 60%),
      var(--bg);
    color:var(--text);
    font-family:var(--body);
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain;
  }
  .doc-page ::selection { background:var(--orange); color:#160800; }
  .doc-page a { color:inherit; text-decoration:none; }
  .doc-page button { font:inherit; color:inherit; background:none; border:none; cursor:pointer; }
  .doc-page ul { margin:0; padding:0; list-style:none; }

  .doc-page :focus-visible { outline:2px solid var(--orange-soft); outline-offset:3px; border-radius:4px; }

  .doc-page .doc-wrap {
    max-width:var(--frame-w);
    margin:0 auto;
    min-height:100vh;
    position:relative;
    background:var(--bg-soft);
  }

  /* ---------- App bar (native app menu bar) ---------- */
  .doc-page .appbar {
    position:sticky; top:0; z-index:40;
    max-width:var(--frame-w);
    margin:0 auto;
    height:var(--appbar-h);
    display:flex; align-items:center; justify-content:flex-start; gap:6px;
    padding:0 8px;
    background:rgba(10,10,11,.82);
    backdrop-filter:blur(14px) saturate(140%);
    -webkit-backdrop-filter:blur(14px) saturate(140%);
    border-bottom:1px solid var(--border);
  }
  .doc-page .appbar-btn {
    width:40px; height:40px; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    color:var(--text-dim);
    transition:background .15s ease, color .15s ease;
  }
  .doc-page .appbar-btn:hover { background:var(--card); color:var(--text); }
  .doc-page .appbar-btn svg { width:20px; height:20px; }

  .doc-page .progress-rail {
    position:sticky; top:var(--appbar-h); z-index:39;
    height:2px; width:100%;
    background:var(--border);
    max-width:var(--frame-w); margin:0 auto;
  }
  .doc-page .progress-fill {
    height:100%; width:0%;
    background:linear-gradient(90deg, var(--orange-deep), var(--orange), var(--orange-soft));
    transition:width .08s linear;
  }

  /* Embedded inside index.html's iframe: index already renders its own
     back arrow + page title there, so this page's own appbar would be a
     second header stacked under it. Hide it and let the progress rail
     sit flush at the top instead. */
  .doc-page.embedded .appbar { display:none; }
  .doc-page.embedded .progress-rail { top:0; }
  .doc-page.embedded .doc-section { scroll-margin-top:14px; }

  /* ---------- Drawer tracklist (mobile nav) ---------- */
  .doc-page .drawer-backdrop {
    position:fixed; inset:0; background:rgba(0,0,0,.6);
    opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:49;
  }
  .doc-page .drawer {
    position:fixed; top:0; left:0; bottom:0;
    width:min(320px, 84vw);
    background:var(--bg-soft);
    border-right:1px solid var(--border-strong);
    transform:translateX(-100%);
    transition:transform .25s cubic-bezier(.2,.8,.2,1);
    z-index:50;
    padding:18px 14px 24px;
    overflow-y:auto;
  }
  .doc-page body.drawer-open .drawer { transform:translateX(0); }
  .doc-page body.drawer-open .drawer-backdrop { opacity:1; pointer-events:auto; }
  .doc-page .drawer-head { display:flex; align-items:center; justify-content:space-between; padding:4px 6px 16px; }
  .doc-page .drawer-head .brand { display:flex; align-items:center; gap:8px; font-family:var(--display); font-weight:700; font-size:13px; }
  .doc-page .drawer-head .brand .dot { width:9px; height:9px; border-radius:50%; background:var(--orange); box-shadow:0 0 10px var(--orange); }
  .doc-page .drawer-close { width:32px; height:32px; border-radius:9px; display:flex; align-items:center; justify-content:center; color:var(--text-dim); }
  .doc-page .drawer-close:hover { background:var(--card); color:var(--text); }
  .doc-page .side-label {
    font-family:var(--mono); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
    color:var(--orange-soft); margin:18px 6px 8px; opacity:.9;
  }
  .doc-page .side-label:first-of-type { margin-top:4px; }
  .doc-page .track-link {
    display:flex; align-items:baseline; gap:10px;
    padding:9px 6px; border-radius:9px;
    color:var(--text-dim); font-size:13.5px;
  }
  .doc-page .track-link:hover { background:var(--card); color:var(--text); }
  .doc-page .track-link.active { color:var(--orange-soft); background:var(--orange-wash); }
  .doc-page .track-link .n { font-family:var(--mono); font-size:11px; color:var(--text-faint); width:18px; flex:none; }
  .doc-page .track-link.active .n { color:var(--orange); }

  /* ---------- Hero ---------- */
  .doc-page .hero {
    padding:36px 22px 26px;
    position:relative;
    overflow:hidden;
    border-bottom:1px solid var(--border);
  }
  .doc-page .vinyl {
    position:absolute; right:-46px; top:-30px;
    width:190px; height:190px; border-radius:50%;
    background:
      repeating-radial-gradient(circle at 50% 50%, #17110c 0 2px, #0e0b08 3px 6px);
    box-shadow:0 0 0 1px var(--border), 0 20px 40px rgba(0,0,0,.5);
    animation:doc-spin 14s linear infinite;
  }
  .doc-page .vinyl::after {
    content:''; position:absolute; inset:0; margin:auto;
    width:56px; height:56px; border-radius:50%;
    background:radial-gradient(circle at 35% 30%, var(--orange-soft), var(--orange) 55%, var(--orange-deep));
  }
  .doc-page .vinyl::before {
    content:''; position:absolute; inset:0; margin:auto;
    width:9px; height:9px; border-radius:50%;
    background:#0a0a0b; z-index:2;
  }
  @keyframes doc-spin{ to{ transform:rotate(360deg); } }
  @media (prefers-reduced-motion:reduce){ .doc-page .vinyl{ animation:none; } }

  .doc-page .eyebrow {
    display:inline-flex; align-items:center; gap:7px;
    font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
    color:var(--orange-soft); background:var(--orange-wash);
    border:1px solid rgba(255,106,26,.28);
    padding:5px 10px; border-radius:999px; margin-bottom:16px;
  }
  .doc-page .eyebrow svg { width:12px; height:12px; }
  .doc-page h1.hero-title {
    font-family:var(--display); font-weight:700;
    font-size:32px; line-height:1.08; letter-spacing:-.01em;
    max-width:280px; margin:0 0 12px;
  }
  .doc-page h1.hero-title em { font-style:normal; color:var(--orange); }
  .doc-page .hero-sub {
    color:var(--text-dim); font-size:14.5px; line-height:1.6;
    max-width:300px; margin:0 0 22px;
  }
  .doc-page .hero-actions { display:flex; gap:10px; flex-wrap:wrap; }
  .doc-page .btn {
    display:inline-flex; align-items:center; gap:8px;
    padding:11px 16px; border-radius:12px;
    font-weight:700; font-size:13px;
  }
  .doc-page .btn svg { width:16px; height:16px; }
  .doc-page .btn-primary { background:var(--orange); color:#160800; }
  .doc-page .btn-primary:hover { background:var(--orange-soft); }
  .doc-page .btn-ghost { background:var(--card); border:1px solid var(--border-strong); color:var(--text); }
  .doc-page .btn-ghost:hover { border-color:var(--orange); color:var(--orange-soft); }

  .doc-page .stat-strip { display:flex; gap:8px; margin-top:24px; }
  .doc-page .stat-chip {
    flex:1; background:var(--card); border:1px solid var(--border);
    border-radius:12px; padding:10px 8px; text-align:center;
  }
  .doc-page .stat-chip .v { font-family:var(--display); font-size:16px; color:var(--orange-soft); }
  .doc-page .stat-chip .l { font-size:10px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.08em; margin-top:2px; }

  /* ---------- Tracklist (inline, on page) ---------- */
  .doc-page .toc { padding:22px; border-bottom:1px solid var(--border); }
  .doc-page .toc-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
  .doc-page .toc-head h2 { font-family:var(--display); font-size:13px; letter-spacing:.03em; margin:0; }
  .doc-page .toc-head span { font-family:var(--mono); font-size:11px; color:var(--text-faint); }
  .doc-page .toc-grid { display:flex; flex-direction:column; gap:2px; }

  /* ---------- Content sections ---------- */
  .doc-page .doc-section {
    padding:30px 22px; border-bottom:1px solid var(--border); scroll-margin-top:calc(var(--appbar-h) + 14px);
  }
  .doc-page .doc-section:last-of-type { border-bottom:none; }
  .doc-page .sec-kicker {
    display:flex; align-items:center; gap:10px; margin-bottom:10px;
  }
  .doc-page .sec-kicker .num {
    font-family:var(--mono); font-size:12px; color:var(--orange);
    border:1px solid rgba(255,106,26,.35); background:var(--orange-wash);
    width:30px; height:30px; border-radius:9px;
    display:flex; align-items:center; justify-content:center; flex:none;
  }
  .doc-page .sec-kicker .side { font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); }
  .doc-page h3.sec-title { font-family:var(--display); font-size:19px; font-weight:600; margin:0 0 10px; letter-spacing:-.01em; }
  .doc-page .doc-section p { color:var(--text-dim); font-size:14px; line-height:1.75; margin:0 0 12px; }
  .doc-page .doc-section p strong { color:var(--text); font-weight:600; }
  .doc-page .doc-list { display:flex; flex-direction:column; gap:10px; margin:14px 0; }
  .doc-page .doc-list li {
    display:flex; gap:10px; align-items:flex-start;
    font-size:13.5px; color:var(--text-dim); line-height:1.6;
  }
  .doc-page .doc-list li svg { width:15px; height:15px; color:var(--orange); flex:none; margin-top:2px; }
  .doc-page .doc-list b { color:var(--text); font-weight:600; }

  .doc-page .note {
    display:flex; gap:10px; padding:13px 14px; border-radius:12px;
    background:var(--card); border-left:3px solid var(--orange);
    font-size:13px; color:var(--text-dim); line-height:1.6; margin:14px 0;
  }
  .doc-page .note svg { width:16px; height:16px; color:var(--orange-soft); flex:none; margin-top:1px; }

  .doc-page .kbd-grid { display:flex; flex-direction:column; gap:1px; border-radius:12px; overflow:hidden; border:1px solid var(--border); margin:14px 0; }
  .doc-page .kbd-row { display:flex; align-items:center; justify-content:space-between; padding:11px 14px; background:var(--card); }
  .doc-page .kbd-row:nth-child(even) { background:var(--card-hi); }
  .doc-page .kbd-row .action { font-size:13px; color:var(--text-dim); }
  .doc-page .kbd {
    font-family:var(--mono); font-size:11.5px; color:var(--text);
    background:#0e0e10; border:1px solid var(--border-strong);
    border-bottom-width:2px; padding:3px 8px; border-radius:6px;
  }

  .doc-page .track-card {
    background:var(--card); border:1px solid var(--border); border-radius:14px;
    padding:16px; margin:16px 0;
  }
  .doc-page .track-card .app-icon {
    width:38px; height:38px; border-radius:10px;
    background:linear-gradient(145deg, var(--orange), var(--orange-deep));
    display:flex; align-items:center; justify-content:center; margin-bottom:10px;
  }
  .doc-page .track-card .app-icon svg { width:18px; height:18px; color:#160800; }
  .doc-page .track-card h4 { font-family:var(--display); font-size:13.5px; margin:0 0 6px; }
  .doc-page .track-card p { margin:0; font-size:13px; }

  .doc-page .faq-item { border-bottom:1px solid var(--border); padding:14px 0; }
  .doc-page .faq-item:first-child { padding-top:0; }
  .doc-page .faq-item:last-child { border-bottom:none; padding-bottom:0; }
  .doc-page .faq-q {
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    font-size:13.5px; font-weight:600; color:var(--text);
  }
  .doc-page .faq-q svg { width:16px; height:16px; color:var(--orange); transition:transform .2s ease; flex:none; }
  .doc-page .faq-item.open .faq-q svg { transform:rotate(45deg); }
  .doc-page .faq-a {
    max-height:0; overflow:hidden; transition:max-height .25s ease;
    color:var(--text-dim); font-size:13px; line-height:1.7;
  }
  .doc-page .faq-item.open .faq-a { max-height:220px; margin-top:9px; }

  .doc-page .changelog-item { display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); }
  .doc-page .changelog-item:last-child { border-bottom:none; }
  .doc-page .changelog-item .ver {
    font-family:var(--mono); font-size:11.5px; color:var(--orange-soft);
    background:var(--orange-wash); border:1px solid rgba(255,106,26,.28);
    border-radius:7px; padding:3px 7px; height:fit-content; flex:none;
  }
  .doc-page .changelog-item .cl-body b { display:block; font-size:13px; color:var(--text); margin-bottom:3px; }
  .doc-page .changelog-item .cl-body span { font-size:12.5px; color:var(--text-faint); }

  /* ---------- Footer ---------- */
  .doc-page .doc-footer {
    padding:28px 22px 40px; text-align:center;
  }
  .doc-page .doc-footer .mark { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:8px; }
  .doc-page .doc-footer .mark .dot { width:8px; height:8px; border-radius:50%; background:var(--orange); box-shadow:0 0 8px var(--orange); }
  .doc-page .doc-footer .mark span { font-family:var(--display); font-weight:700; font-size:13px; }
  .doc-page .doc-footer p { color:var(--text-faint); font-size:12px; margin:0; }
  .doc-page .doc-footer .foot-btn { margin-top:16px; }

  /* ---------- Floating record (scroll progress + back to top) ---------- */
  .doc-page .disc-fab {
    position:fixed; right:18px; bottom:18px; z-index:41;
    width:52px; height:52px; border-radius:50%;
    background:
      repeating-radial-gradient(circle at 50% 50%, #17110c 0 2px, #0e0b08 3px 6px);
    box-shadow:0 8px 22px rgba(0,0,0,.55), 0 0 0 1px var(--border-strong);
    display:flex; align-items:center; justify-content:center;
    transform:rotate(0deg);
  }
  .doc-page .disc-fab::after {
    content:''; width:16px; height:16px; border-radius:50%;
    background:radial-gradient(circle at 35% 30%, var(--orange-soft), var(--orange) 55%, var(--orange-deep));
  }
  .doc-page .disc-fab svg { position:absolute; width:16px; height:16px; color:#fff; opacity:0; transition:opacity .15s ease; }
  .doc-page .disc-fab:hover svg { opacity:1; }
  .doc-page .disc-fab:hover::after { opacity:.25; }

  .doc-page .toast {
    position:fixed; left:50%; bottom:84px; transform:translate(-50%, 12px);
    max-width:calc(var(--frame-w) - 40px);
    background:#161113; border:1px solid rgba(255,106,26,.35);
    color:var(--text); font-size:12.5px; font-weight:600;
    padding:11px 16px; border-radius:12px;
    display:flex; align-items:center; gap:8px;
    opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease;
    z-index:60; box-shadow:0 10px 30px rgba(0,0,0,.5);
  }
  .doc-page .toast svg { width:15px; height:15px; color:var(--orange-soft); }
  .doc-page .toast.show { opacity:1; transform:translate(-50%, 0); }

  @media (min-width: 560px){
    :root{ --frame-w:520px; }
    .doc-page .doc-wrap { border-left:1px solid var(--border); border-right:1px solid var(--border); box-shadow:0 0 60px rgba(0,0,0,.4); }
  }

  .doc-page .standalone-back {
    display:none; align-items:center; gap:6px;
    max-width:var(--frame-w); margin:0 auto;
    padding:10px 14px; font-family:var(--mono); font-size:11.5px;
    color:var(--text-faint); letter-spacing:.04em;
  }
  .doc-page .standalone-back:hover { color:var(--orange-soft); }
  .doc-page .standalone-back svg { width:14px; height:14px; }
