:root {
  --bg: #e9dfd0;
  --bg-soft: #f6f1e8;
  --surface: rgba(252, 247, 240, 0.82);
  --surface-strong: rgba(255, 251, 246, 0.94);
  --surface-dark: rgba(41, 32, 24, 0.72);
  --line: rgba(92, 70, 49, 0.14);
  --line-strong: rgba(92, 70, 49, 0.24);
  --ink: #241c16;
  --muted: #6c5e50;
  --accent: #8d5d3a;
  --accent-deep: #684226;
  --accent-soft: #dcc1a8;
  --shadow: 0 24px 60px rgba(77, 56, 36, 0.12);
  --shadow-soft: 0 14px 34px rgba(77, 56, 36, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --title-font: "Iowan Old Style", "Palatino Linotype", "Noto Serif SC", "Songti SC", "STSong", serif;
  --body-font: "Segoe UI Variable Display", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(175, 124, 83, 0.16), transparent 28%),
    radial-gradient(circle at 90% 16%, rgba(138, 164, 142, 0.14), transparent 22%),
    linear-gradient(180deg, #efe6d9 0%, #eadfce 38%, #e5d8c7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 3px,
      rgba(108, 94, 80, 0.028) 4px
    );
  opacity: 0.38;
  mix-blend-mode: multiply;
  z-index: 0;
}

button,
a {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.hero,
.content {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  align-items: end;
}

.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
  border-bottom-left-radius: 44px;
  border-bottom-right-radius: 44px;
}

.hero-backdrop {
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  filter: sepia(0.16) saturate(0.92) contrast(0.94) brightness(0.88);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(245, 238, 226, 0.18), rgba(79, 58, 40, 0.3) 48%, rgba(34, 27, 22, 0.72) 100%),
    radial-gradient(circle at 12% 18%, rgba(255, 243, 226, 0.34), transparent 24%),
    linear-gradient(110deg, rgba(214, 182, 148, 0.18), transparent 30%);
}

.topbar,
.hero-grid,
.content {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.nav-link,
.nav-button {
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 238, 0.28);
  color: #fffaf5;
  background: rgba(46, 34, 24, 0.26);
  backdrop-filter: blur(18px);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: #fff8f1;
}

.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff6ea, #d9b596);
  box-shadow: 0 0 0 6px rgba(255, 248, 239, 0.1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link,
.nav-button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-button {
  cursor: pointer;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 26px;
  align-items: end;
  padding-bottom: 38px;
}

.hero-copy {
  color: #fff8f1;
  padding: 136px 0 12px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.hero-panel .eyebrow {
  color: rgba(255, 244, 232, 0.8);
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 8ch;
  font-size: 6.2rem;
  line-height: 0.94;
  text-shadow: 0 10px 30px rgba(19, 12, 8, 0.26);
}

.hero-text {
  max-width: 40rem;
  margin: 20px 0 0;
  color: rgba(255, 244, 232, 0.9);
  font-size: 1.12rem;
  line-height: 1.88;
  text-shadow: 0 6px 18px rgba(19, 12, 8, 0.2);
}

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

.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 24px;
  border-color: rgba(255, 245, 233, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.16), rgba(53, 39, 27, 0.3)),
    rgba(54, 40, 29, 0.3);
  color: #fff7ef;
}

.hero-range {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat-card {
  padding: 14px 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 248, 238, 0.14);
  background: rgba(255, 248, 239, 0.08);
}

.stat-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 243, 229, 0.7);
}

.stat-value {
  margin: 0;
  font-size: 1.18rem;
  color: #fff9f3;
}

.hero-preview {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.preview-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 248, 238, 0.14);
  background: rgba(255, 248, 239, 0.08);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.preview-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background-position: center;
  background-size: cover;
}

.preview-meta p {
  margin: 0;
}

.preview-date {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 243, 229, 0.72);
}

.preview-title {
  margin-top: 6px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #fff9f3;
}

.preview-count {
  margin-top: 4px;
  font-size: 0.86rem;
  color: rgba(255, 243, 229, 0.72);
}

.primary-button,
.album-play-button,
.lightbox-dock-primary,
.nav-button {
  border: 0;
  color: #fff8f1;
  background: linear-gradient(135deg, #8f5f3d, #6e4528);
  box-shadow: 0 18px 36px rgba(74, 48, 29, 0.2);
}

.primary-button,
.album-play-button,
.lightbox-dock-button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.secondary-link,
.album-jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 238, 0.24);
  color: #fff8f1;
  background: rgba(255, 248, 238, 0.08);
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-link:hover,
.nav-link:hover,
.nav-button:hover,
.album-play-button:hover,
.album-jump-link:hover,
.preview-card:hover,
.photo-card:hover,
.chip:hover,
.lightbox-dock-button:hover,
.lightbox-close:hover {
  transform: translateY(-2px);
}

.content {
  padding: 34px 0 82px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-card,
.quote-card,
.album-nav,
.album {
  border-radius: var(--radius-xl);
}

.intro-card,
.quote-card {
  padding: 28px;
}

.intro-card .eyebrow,
.album-nav .eyebrow,
.album .eyebrow {
  color: var(--accent);
}

.intro-card h2,
.panel-head h2,
.album-title {
  font-size: 2.6rem;
  line-height: 1.08;
}

.intro-card p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.84;
}

.quote-card {
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(244, 234, 222, 0.82)),
    var(--surface-strong);
}

.quote-mark {
  margin: 0;
  font-size: 4rem;
  line-height: 0.8;
  color: var(--accent-soft);
  font-family: var(--title-font);
}

.quote-text {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.9;
}

.album-nav {
  position: sticky;
  top: 14px;
  z-index: 5;
  margin-top: 22px;
  padding: 24px 26px;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.88), rgba(247, 240, 230, 0.84)),
    var(--surface-strong);
}

.panel-head h2 {
  color: var(--ink);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.chip {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 252, 248, 0.88);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.chip.active,
.chip:hover {
  border-color: rgba(141, 93, 58, 0.36);
  background: rgba(222, 197, 173, 0.42);
}

.albums {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.album {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.94), rgba(247, 240, 230, 0.9)),
    var(--surface-strong);
  scroll-margin-top: 28px;
}

.album-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}

.album-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 6px 12px 4px;
}

.album-summary,
.album-count {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.album-jump-link {
  min-height: 48px;
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.36);
}

.album-cover {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: calc(var(--radius-xl) - 8px);
  background: #ddd2c3;
}

.album-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.08), rgba(51, 37, 27, 0.36)),
    linear-gradient(120deg, rgba(255, 244, 232, 0.3), transparent 34%);
}

.album-cover-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.album-cover-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: #fff8f1;
  background: rgba(34, 27, 22, 0.4);
  backdrop-filter: blur(14px);
}

.album-cover-note-label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 243, 229, 0.72);
}

.album-cover-note-value {
  font-size: 0.98rem;
}

.masonry {
  column-count: 3;
  column-gap: 16px;
}

.photo-card {
  position: relative;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid rgba(100, 73, 49, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 248, 0.82);
  overflow: hidden;
  break-inside: avoid;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.photo-card:hover {
  border-color: rgba(141, 93, 58, 0.3);
  box-shadow: 0 22px 38px rgba(77, 56, 36, 0.16);
}

.photo-thumb {
  width: 100%;
  min-height: 180px;
  object-fit: cover;
  background: #d7c9b8;
}

.photo-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(32, 24, 18, 0.7));
}

.photo-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: rgba(255, 247, 239, 0.94);
  font-size: 0.88rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(141, 93, 58, 0.18), transparent 24%),
    rgba(22, 17, 13, 0.92);
  backdrop-filter: blur(18px);
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 247, 239, 0.14);
  border-radius: 999px;
  background: rgba(255, 247, 239, 0.08);
  color: #fff8f1;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-stage {
  width: min(100%, 1100px);
  display: grid;
  gap: 18px;
  justify-items: center;
  touch-action: pan-y;
}

.lightbox-stage.slide-left {
  animation: slide-left 220ms ease;
}

.lightbox-stage.slide-right {
  animation: slide-right 220ms ease;
}

.lightbox-media {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
}

.lightbox-media img {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.lightbox-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lightbox-hit-left {
  left: 0;
}

.lightbox-hit-right {
  right: 0;
}

.lightbox-meta {
  width: min(100%, 760px);
  text-align: center;
  color: #fff8f1;
}

.lightbox-album,
.lightbox-progress,
.lightbox-mode,
#lightboxCaption {
  margin: 0;
  color: rgba(255, 244, 232, 0.78);
}

.lightbox-status-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.lightbox-progress,
.lightbox-mode {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 244, 232, 0.08);
  font-size: 0.84rem;
}

#lightboxTitle {
  margin: 12px 0 8px;
  color: #fff9f3;
  font-size: 2rem;
}

.lightbox-dock {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 232, 0.12);
  background: rgba(28, 21, 16, 0.72);
  backdrop-filter: blur(16px);
}

.lightbox-dock-button {
  border: 1px solid rgba(255, 244, 232, 0.12);
  color: #fff8f1;
  background: rgba(255, 244, 232, 0.08);
}

.lightbox-dock-primary.is-playing {
  background: linear-gradient(135deg, #b67b52, #8d5d3a);
}

.music-player {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  max-width: min(calc(100vw - 36px), 420px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 248, 238, 0.16);
  border-radius: 999px;
  color: #fff8f1;
  background: rgba(37, 28, 22, 0.72);
  box-shadow: 0 16px 36px rgba(34, 24, 18, 0.16);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.music-player:hover {
  transform: translateY(-1px);
  background: rgba(37, 28, 22, 0.78);
}

.music-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 241, 225, 0.36);
  box-shadow: 0 0 0 6px rgba(255, 241, 225, 0.06);
}

.music-dot.is-playing {
  background: #f0c79d;
  box-shadow:
    0 0 0 6px rgba(240, 199, 157, 0.12),
    0 0 16px rgba(240, 199, 157, 0.42);
}

.music-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
  flex: 1 1 auto;
}

.music-label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: rgba(255, 243, 229, 0.72);
}

.music-title {
  overflow: hidden;
  color: #fff8f1;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-subtitle {
  overflow: hidden;
  color: rgba(255, 241, 225, 0.7);
  font-size: 0.74rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-switch {
  flex: 0 0 auto;
  min-width: 48px;
  padding-left: 8px;
  color: rgba(255, 243, 229, 0.86);
  font-size: 0.8rem;
  text-align: right;
}

.music-player.is-blocked .music-switch {
  color: #f0c79d;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.lightbox-lock {
  overflow: hidden;
  touch-action: none;
}

@keyframes slide-left {
  0% {
    opacity: 0.56;
    transform: translateX(24px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-right {
  0% {
    opacity: 0.56;
    transform: translateX(-24px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .album-head {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 120px;
  }

  h1 {
    font-size: 5.2rem;
  }

  .hero-panel {
    max-width: 680px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    column-count: 2;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 12px;
  }

  .topbar,
  .hero-grid,
  .content {
    width: calc(100% - 24px);
    max-width: calc(100vw - 24px);
  }

  .hero {
    min-height: auto;
    padding: 12px 0 18px;
    overflow: hidden;
  }

  .hero-backdrop {
    background-position: 58% center;
    transform: scale(1.02);
  }

  .hero-backdrop,
  .hero-overlay {
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(33, 27, 22, 0.1), rgba(33, 27, 22, 0.35) 42%, rgba(33, 27, 22, 0.74) 100%),
      linear-gradient(90deg, rgba(31, 26, 22, 0.28), transparent 62%);
  }

  .topbar {
    top: 12px;
    gap: 8px;
    align-items: center;
    flex-direction: row;
    width: calc(100% - 24px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand,
  .topbar-actions {
    width: auto;
  }

  .topbar-actions {
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
  }

  .brand {
    min-width: 0;
    max-width: 45%;
    padding: 10px 12px;
    overflow: hidden;
    white-space: nowrap;
  }

  .nav-link,
  .nav-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 13px;
  }

  .topbar .nav-button {
    display: none;
  }

  .hero-grid {
    gap: 14px;
    padding: 92px 0 0;
    min-width: 0;
    overflow: hidden;
  }

  .hero-copy {
    padding: 14px 14px 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(26, 20, 16, 0.08), rgba(26, 20, 16, 0.18));
    backdrop-filter: blur(6px);
  }

  h1 {
    font-size: 4rem;
    max-width: 100%;
  }

  .hero-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 21rem;
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.68;
  }

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

  .primary-button,
  .secondary-link {
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-label {
    font-size: 0.66rem;
    margin-bottom: 6px;
  }

  .stat-value {
    font-size: 1rem;
  }

  .hero-panel {
    padding: 14px;
    border-radius: 18px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    background:
      linear-gradient(180deg, rgba(255, 248, 239, 0.16), rgba(35, 27, 21, 0.28)),
      rgba(45, 35, 28, 0.56);
  }

  .hero-panel .eyebrow {
    margin-bottom: 8px;
  }

  .hero-range {
    font-size: 1rem;
  }

  .hero-preview {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    min-width: 0;
    margin: 14px -14px -2px 0;
    padding: 0 14px 2px 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .hero-preview::-webkit-scrollbar {
    display: none;
  }

  .preview-card {
    min-width: 222px;
    flex: 0 0 222px;
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 8px;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .preview-thumb {
    border-radius: 10px;
  }

  .preview-title {
    margin-top: 4px;
    font-size: 0.92rem;
    line-height: 1.36;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .album-nav {
    position: static;
    top: auto;
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
  }

  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 14px;
  }

  .intro-card,
  .quote-card,
  .album {
    padding: 16px;
  }

  .intro-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .intro-grid::-webkit-scrollbar {
    display: none;
  }

  .intro-card,
  .quote-card {
    min-width: calc(100vw - 48px);
    flex: 0 0 calc(100vw - 48px);
    border-radius: 18px;
    scroll-snap-align: start;
  }

  .intro-card h2,
  .quote-text {
    line-height: 1.34;
  }

  .album-head {
    gap: 14px;
    margin-bottom: 16px;
  }

  .album-cover {
    order: -1;
    min-height: 198px;
    border-radius: 16px;
  }

  .album-cover-note {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .album-copy {
    padding: 0;
  }

  .album-summary,
  .album-count {
    margin-top: 10px;
    line-height: 1.68;
  }

  .album-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .album-play-button,
  .album-jump-link {
    width: 100%;
    min-height: 48px;
  }

  .masonry {
    column-count: 1;
  }

  .photo-card {
    margin-bottom: 12px;
    border-radius: 16px;
  }

  .photo-thumb {
    min-height: 220px;
  }

  .lightbox {
    align-items: start;
    padding: 14px 12px calc(124px + env(safe-area-inset-bottom));
  }

  .music-player {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: none;
  }

  body.lightbox-lock .music-player {
    display: none;
  }

  .content {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .lightbox-stage {
    width: 100%;
    min-height: calc(100svh - 148px);
    gap: 10px;
    align-content: center;
  }

  .lightbox-media img {
    width: 100%;
    max-height: 58svh;
    object-fit: contain;
    border-radius: 16px;
  }

  .lightbox-hit {
    width: 28%;
  }

  .lightbox-meta {
    width: 100%;
    padding-bottom: 0;
  }

  .lightbox-status-row {
    margin-top: 8px;
    gap: 8px;
  }

  #lightboxTitle {
    margin: 10px 0 6px;
    font-size: 1.65rem;
  }

  #lightboxCaption {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    padding: 0 10px;
    line-height: 1.45;
  }

  .lightbox-dock {
    width: calc(100% - 24px);
    max-width: 400px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 22px;
    transform: translateX(-50%);
  }

  .lightbox-dock-button {
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

}

@media (max-width: 420px) {
  .hero-copy {
    padding-top: 0;
  }

  .hero-panel {
    padding: 14px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel-head h2,
  .intro-card h2,
  .album-title {
    font-size: 1.9rem;
  }

  .quote-text {
    font-size: 1.02rem;
  }

  h1 {
    font-size: 3.5rem;
  }

  .brand {
    padding: 9px 11px;
    font-size: 0.92rem;
  }

  .nav-link,
  .nav-button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.9rem;
  }

  .hero-text {
    line-height: 1.68;
  }

  .preview-card {
    min-width: 214px;
    flex-basis: 214px;
  }

  .album,
  .album-nav {
    border-radius: 18px;
  }

  .music-player {
    gap: 10px;
    padding: 10px 12px;
  }

  .preview-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .topbar,
  .hero-grid,
  .content {
    width: calc(100% - 18px);
  }

  .brand-mark {
    display: none;
  }

  .brand,
  .nav-link,
  .nav-button {
    font-size: 0.84rem;
  }

  h1 {
    font-size: 3.15rem;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .music-player {
    border-radius: 16px;
  }

  .music-switch {
    display: none;
  }
}
