: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;
}

.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;
  width: 108px;
  height: 108px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f5efe5);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.hero-badge-value {
  font-family: "Klee One", cursive;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.hero-badge-label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.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: flex-start;
  gap: 8px;
  padding: 4px 0;
  font-size: 1.02rem;
  line-height: 1.75;
}

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

.song-title {
  color: #2d2923;
  word-break: break-word;
}

.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 {
    flex-direction: column;
    gap: 0;
  }

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