:root {
  --ink: #f7efe6;
  --ink-soft: rgba(247, 239, 230, 0.72);
  --ink-mute: rgba(247, 239, 230, 0.52);
  --rose: #f0b7c4;
  --rose-deep: #e08aa0;
  --lantern: #f0c56a;
  --lantern-hot: #ffd98a;
  --wood: #3a2a2f;
  --glass: rgba(34, 24, 30, 0.55);
  --glass-strong: rgba(28, 18, 24, 0.72);
  --line: rgba(240, 197, 106, 0.16);
  --shadow: 0 18px 50px rgba(8, 4, 8, 0.35);
  --radius: 22px;
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: #140e12;
  overflow-x: hidden;
}

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

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere-photo {
  position: absolute;
  inset: -4%;
  background:
    url("../assets/atmosphere.jpg") center 28% / cover no-repeat;
  filter: blur(18px) saturate(1.15) brightness(0.55);
  transform: scale(1.08);
  animation: drift 28s ease-in-out infinite alternate;
}

.atmosphere-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 20%, rgba(240, 197, 106, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 45% at 15% 75%, rgba(224, 138, 160, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(12, 8, 10, 0.35) 0%, rgba(12, 8, 10, 0.55) 45%, rgba(12, 8, 10, 0.78) 100%);
}

.lantern {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
  animation: glow 6s ease-in-out infinite alternate;
}

.lantern-a {
  width: 180px;
  height: 180px;
  top: 8%;
  right: 12%;
  background: radial-gradient(circle, var(--lantern-hot) 0%, transparent 70%);
}

.lantern-b {
  width: 120px;
  height: 120px;
  top: 42%;
  left: 6%;
  background: radial-gradient(circle, #ffb070 0%, transparent 70%);
  animation-delay: 1.2s;
}

.lantern-c {
  width: 220px;
  height: 220px;
  bottom: 6%;
  right: 28%;
  background: radial-gradient(circle, rgba(240, 183, 196, 0.9) 0%, transparent 70%);
  animation-delay: 2.4s;
}

.page {
  position: relative;
  z-index: 1;
  width: min(740px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.hub-link {
  color: var(--lantern);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(240, 197, 106, 0.28);
}

.hub-link:hover,
.hub-link:focus-visible {
  color: var(--lantern-hot);
  border-bottom-color: rgba(255, 217, 138, 0.7);
  outline: none;
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  letter-spacing: 0.08em;
  text-shadow: 0 0 24px rgba(240, 197, 106, 0.35);
}

.hub-body {
  min-height: 100vh;
}

.hub-page {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 28px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.hub-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.hub-desc {
  margin: 0 0 28px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.hub-list {
  display: grid;
  gap: 12px;
}

.hub-card {
  display: block;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.hub-card:hover,
.hub-card:focus-visible {
  border-color: rgba(240, 197, 106, 0.5);
  transform: translateY(-1px);
  outline: none;
}

.hub-card-name {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.hub-card-meta {
  color: var(--ink-mute);
  font-size: 0.9rem;
}

.topbar-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-mute);
  white-space: nowrap;
}

.app {
  display: grid;
  gap: 14px;
}

.loading,
.error {
  margin: 0;
  padding: 28px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
}

.error {
  color: #ffb4b4;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero {
  display: grid;
  gap: 18px;
  animation: rise 0.65s ease both;
}

.hero-cover {
  width: 118px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--wood);
  border: 1px solid rgba(240, 197, 106, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 36px rgba(240, 197, 106, 0.18);
}

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

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lantern);
  text-shadow: 0 0 18px rgba(240, 197, 106, 0.45);
}

.hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.45rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.hero-desc {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

.meta {
  margin: 14px 0 0;
  color: var(--ink-mute);
  font-size: 0.86rem;
  line-height: 1.5;
}

.space-link {
  color: var(--lantern);
  border-bottom: 1px solid rgba(240, 197, 106, 0.35);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    text-shadow 0.15s ease;
}

.space-link:hover,
.space-link:focus-visible {
  color: var(--lantern-hot);
  border-bottom-color: rgba(255, 217, 138, 0.7);
  text-shadow: 0 0 16px rgba(240, 197, 106, 0.4);
  outline: none;
}

.tag-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 2px 10px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 197, 106, 0.35) transparent;
  animation: rise 0.55s ease 0.06s both;
}

.tag-rail::-webkit-scrollbar {
  height: 4px;
}

.tag-rail::-webkit-scrollbar-thumb {
  background: rgba(240, 197, 106, 0.4);
  border-radius: 999px;
}

.tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.08);
  border: 1px solid rgba(240, 197, 106, 0.22);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scroll-snap-align: start;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.tag:hover {
  border-color: rgba(240, 197, 106, 0.45);
  color: var(--ink);
  transform: translateY(-1px);
}

.tag:focus-visible {
  outline: 2px solid rgba(240, 197, 106, 0.7);
  outline-offset: 2px;
}

.tag.is-active {
  background: linear-gradient(135deg, #f2d08a 0%, #e0a84e 55%, #d89068 100%);
  border-color: transparent;
  color: #2a1a12;
  box-shadow:
    0 8px 24px rgba(240, 197, 106, 0.28),
    0 0 20px rgba(255, 217, 138, 0.25);
}

.tag-count {
  font-size: 0.74rem;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.tag.is-active .tag-count {
  opacity: 0.8;
}

.list-card {
  background: var(--glass-strong);
  animation: rise 0.6s ease 0.12s both;
}

.toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(240, 197, 106, 0.18);
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.06);
  font: inherit;
  color: var(--ink);
  caret-color: var(--lantern);
}

.search::placeholder {
  color: var(--ink-mute);
}

.search:focus {
  outline: 2px solid rgba(240, 197, 106, 0.35);
  border-color: rgba(240, 197, 106, 0.45);
  background: rgba(255, 248, 240, 0.1);
}

.section-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.section-hint {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.86rem;
}

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

.song-item {
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 8px;
  margin: 0 -8px;
  border-top: 1px solid rgba(255, 248, 240, 0.06);
  border-radius: 12px;
  animation: fade-in 0.35s ease both;
  transition: background 0.18s ease;
}

.song-item:first-child {
  border-top: 0;
  padding-top: 6px;
}

.song-item:hover {
  background: rgba(240, 197, 106, 0.08);
}

.song-index {
  color: var(--lantern);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
  text-align: right;
}

.song-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 248, 240, 0.08);
  border: 1px solid rgba(240, 197, 106, 0.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.song-cover-fallback {
  background:
    linear-gradient(145deg, rgba(240, 197, 106, 0.35), rgba(224, 138, 160, 0.28));
}

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

.song-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.song-artist {
  margin: 4px 0 0;
  color: var(--ink-mute);
  font-size: 0.84rem;
}

.song-duration {
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  padding-left: 4px;
  white-space: nowrap;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 0.78rem;
}

.platform-link {
  color: var(--lantern);
  border-bottom: 1px solid rgba(240, 197, 106, 0.28);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    text-shadow 0.15s ease;
}

.platform-link:hover,
.platform-link:focus-visible {
  color: var(--lantern-hot);
  border-bottom-color: rgba(255, 217, 138, 0.7);
  text-shadow: 0 0 14px rgba(240, 197, 106, 0.4);
  outline: none;
}

.platform-sep {
  color: var(--ink-mute);
  opacity: 0.7;
}

.empty {
  margin: 8px 0 0;
  color: var(--ink-mute);
  font-size: 0.92rem;
}

.footer {
  margin-top: 28px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.78rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes glow {
  from {
    opacity: 0.35;
    transform: scale(0.92);
  }
  to {
    opacity: 0.7;
    transform: scale(1.08);
  }
}

@keyframes drift {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, 1%, 0);
  }
}

@media (min-width: 640px) {
  .hero {
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .atmosphere-photo {
    transform: scale(1.08);
  }
}
