:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --paper: #fcfaf5;
  --paper-strong: #ffffff;
  --ink: #111111;
  --muted: #5f5b55;
  --line: rgba(17, 17, 17, 0.12);
  --accent: #8f8579;
  --accent-soft: rgba(143, 133, 121, 0.12);
  --shadow: 0 26px 70px rgba(66, 54, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Serif SC", serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 30%),
    radial-gradient(circle at bottom right, rgba(226, 214, 196, 0.45), transparent 32%),
    var(--bg);
  color: var(--ink);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px 22px 40px;
}

.poster {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 42px 36px 38px;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--paper-strong), var(--paper));
  box-shadow: var(--shadow);
  min-height: calc(100vh - 68px);
}

.decor-cat {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  width: min(20vw, 180px);
  height: auto;
  opacity: 0.95;
}

.decor-cat-mid {
  top: 190px;
  right: 26px;
  transform: rotate(8deg);
}

.decor-cat-end {
  right: 32px;
  bottom: 26px;
  width: min(18vw, 160px);
  transform: rotate(-6deg);
}

.bookmark-bar,
.hero,
.song-column {
  position: relative;
  z-index: 1;
}

.bookmark-bar {
  position: sticky;
  top: 18px;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding: 10px 12px;
  margin: 0 0 24px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(66, 54, 37, 0.08);
}

.bookmark {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.bookmark:hover,
.bookmark:focus-visible {
  background: rgba(143, 133, 121, 0.12);
  border-color: rgba(17, 17, 17, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 600;
}

.page-title {
  margin: 0;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.page-title-text {
  font-family: "Klee One", cursive;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.title-paw {
  width: 84px;
  height: auto;
  margin-bottom: 10px;
  flex: 0 0 auto;
}

.lead {
  max-width: 46ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.xhs-banner {
  margin-bottom: 24px;
}

.xhs-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  padding: 10px 20px 10px 10px;
  color: #ff2442;
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 2px solid rgba(255, 36, 66, 0.35);
  border-radius: 999px;
  background: rgba(255, 36, 66, 0.05);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.15s, box-shadow 0.18s;
}

.xhs-link:hover {
  background: rgba(255, 36, 66, 0.1);
  border-color: rgba(255, 36, 66, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 36, 66, 0.15);
}

.xhs-link:active {
  transform: translateY(0);
}

.xhs-at {
  color: #ff2442;
}

.xhs-name {
  color: #2d6cdf;
}

.xhs-logo {
  height: 0.85em;
  width: auto;
  vertical-align: middle;
  display: inline-block;
  margin: 0 2px;
}

.xhs-avatar {
  width: clamp(48px, 5.5vw, 80px);
  height: clamp(48px, 5.5vw, 80px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 36, 66, 0.3);
}

.signed-in {
  margin: 14px 0 0;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: #2b2925;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.hero-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-badge-link {
  display: block;
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 4px 16px rgba(66,54,37,0.12);
  transition: transform 0.18s, box-shadow 0.18s;
}

.hero-badge-link:hover {
  transform: scale(1.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 8px 24px rgba(66,54,37,0.2);
}

.hero-badge-link:hover .hero-badge-overlay {
  opacity: 1;
}

.hero-badge-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(0,0,0,0.42);
  opacity: 1;
  transition: background 0.18s;
  border-radius: 999px;
}

.hero-badge-link:hover .hero-badge-overlay {
  background: rgba(0,0,0,0.58);
}

.hero-badge-overlay-text {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

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

.admin-link {
  margin-top: 8px;
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  background: #2d6cdf;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.song-column {
  max-width: 690px;
  margin: 0 auto;
}

.song-group + .song-group {
  margin-top: 34px;
}

.song-group {
  scroll-margin-top: 112px;
}

.song-group h2 {
  margin: 0 0 12px;
  font-family: "Klee One", cursive;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.song-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 1.02rem;
  line-height: 1.75;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.62rem;
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
}

.play-btn:hover {
  background: rgba(143, 133, 121, 0.28);
}

.song-audio {
  align-self: center;
  height: 28px;
  width: 180px;
  flex-shrink: 0;
}

.song-artist {
  flex: 0 0 auto;
  font-weight: 600;
  white-space: nowrap;
}

.song-title {
  color: #2d2923;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .poster {
    padding: 32px 22px 30px;
    min-height: calc(100vh - 44px);
  }

  .decor-cat-mid {
    top: 160px;
    right: 12px;
    width: min(24vw, 140px);
  }

  .decor-cat-end {
    right: 14px;
    bottom: 18px;
    width: min(22vw, 132px);
  }

  .bookmark-bar {
    top: 12px;
    margin-bottom: 20px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badge {
    width: 90px;
    height: 90px;
  }

  .title-paw {
    width: 68px;
    margin-bottom: 6px;
  }

  .song-column {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .decor-cat {
    opacity: 0.82;
  }

  .decor-cat-mid {
    top: 150px;
    right: 8px;
  }

  .decor-cat-end {
    right: 8px;
    bottom: 14px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 12px;
  }

  .poster {
    padding: 24px 16px 26px;
  }

  .page-title-text {
    font-size: clamp(2.25rem, 12.8vw, 3.6rem);
  }

  .title-paw {
    width: 58px;
  }

  .song-item {
    gap: 6px;
  }

  .song-artist,
  .song-title {
    white-space: normal;
  }
}
