:root {
  --bg: #030302;
  --surface: rgba(14, 28, 44, 0.82);
  --surface-strong: rgba(18, 37, 57, 0.95);
  --ink: #eef4ef;
  --muted: #b8c7cf;
  --line: rgba(244, 211, 124, 0.22);
  --brand: #d6a63d;
  --brand-deep: #f4d37c;
  --accent: #14324d;
  --accent-soft: rgba(53, 86, 122, 0.62);
  --shadow: 0 24px 64px rgba(1, 7, 14, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #030302;
  font-family: "Yu Gothic UI", "Hiragino Sans", sans-serif;
  overflow-x: hidden;
}

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

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(154, 96, 35, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(11, 7, 3, 0.74), #030302 52%, #010101 100%);
}

.hero {
  width: 100%;
  border-bottom: 1px solid rgba(244, 211, 124, 0.12);
}

.page {
  width: min(calc(100% - 32px), 1320px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(calc(100% - 64px), 1320px);
  min-height: 86px;
  margin: 0 auto;
  padding: 14px 0;
  gap: 24px;
}

.topbar-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 211, 124, 0.2);
  background: rgba(17, 40, 63, 0.7);
  color: var(--brand-light);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.topbar-home:hover,
.topbar-home:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(244, 211, 124, 0.42);
  box-shadow: 0 12px 30px rgba(3, 9, 16, 0.28);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand,
h1,
h2,
h3 {
  font-family: Georgia, "Yu Mincho", serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  color: #f4d37c;
}

.brand-logo {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 14px 32px rgba(1, 7, 14, 0.42),
    0 0 0 1px rgba(244, 211, 124, 0.46);
}

.brand-copy {
  display: grid;
  gap: 4px;
  line-height: 1.1;
}

.brand-text {
  display: block;
  font-size: 1.46rem;
  letter-spacing: 0.04em;
  color: #f4d37c;
  text-shadow: 0 1px 16px rgba(244, 211, 124, 0.18);
}

.brand-subtitle {
  color: rgba(255, 236, 184, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-titleplate strong {
  display: none;
}

.topbar-links {
  display: flex;
  gap: 20px;
  color: rgba(255, 232, 174, 0.84);
  flex-wrap: wrap;
  align-items: center;
}

.topbar-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.topbar-links a:hover {
  color: #fff6d8;
  background: transparent;
}

.topbar-cta {
  width: auto;
  min-height: 36px;
  padding: 0 12px;
  color: #f4d37c;
  border: 1px solid rgba(244, 211, 124, 0.38);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(244, 211, 124, 0.08);
  overflow: visible;
}

.topbar-cta:hover {
  color: #fff6d8;
  background: rgba(244, 211, 124, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(244, 211, 124, 0.12);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(244, 211, 124, 0.18);
  border-radius: 999px;
  background: rgba(8, 18, 31, 0.68);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-pill.is-active {
  background: linear-gradient(180deg, #d9b150 0%, #aa7820 100%);
  color: #241607;
}

.hero-copy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.language-switch-hero {
  display: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(480px, 0.98fr) minmax(500px, 1.02fr);
  align-items: stretch;
  width: min(calc(100% - 64px), 1320px);
  min-height: 262px;
  margin: 0 auto;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(244, 211, 124, 0.13);
}

.hero-photo {
  position: relative;
  min-height: 242px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 3, 2, 0.22) 0%, rgba(3, 3, 2, 0) 42%, rgba(3, 3, 2, 0.1) 100%),
    url("./assets/hero-piano-reference.jpg") center / cover no-repeat;
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.22);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 3, 2, 0.18) 0%, transparent 28%, rgba(3, 3, 2, 0.12) 100%),
    linear-gradient(180deg, rgba(255, 232, 184, 0.03) 0%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-photo::after {
  display: none;
}

.hero-photo-hands,
.hero-photo-keys {
  display: none;
}

.hero-art-frame {
  position: relative;
  width: 100%;
  min-height: 540px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(244, 211, 124, 0.22);
  background:
    radial-gradient(circle at top, rgba(73, 126, 180, 0.35), transparent 30%),
    linear-gradient(180deg, #13233a 0%, #0c1728 58%, #08101a 100%);
  box-shadow: var(--shadow);
}

.hero-art-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  border: 1px solid rgba(244, 211, 124, 0.16);
}

.hero-stars,
.hero-moon,
.hero-castle,
.hero-staff,
.hero-notes,
.hero-keyboard,
.hero-titleplate {
  position: absolute;
}

.hero-stars {
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 247, 210, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 16%, rgba(255, 247, 210, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 28%, rgba(255, 247, 210, 0.75) 0 1.5px, transparent 3px),
    radial-gradient(circle at 28% 34%, rgba(255, 247, 210, 0.85) 0 1.5px, transparent 3px),
    radial-gradient(circle at 84% 34%, rgba(255, 247, 210, 0.75) 0 1.5px, transparent 3px),
    radial-gradient(circle at 12% 44%, rgba(255, 247, 210, 0.7) 0 1.5px, transparent 3px);
}

.hero-moon {
  top: 44px;
  right: 40px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8d9 0%, #f2cf71 58%, #cf9729 100%);
  box-shadow: 0 0 26px rgba(242, 207, 113, 0.42);
}

.hero-castle {
  left: 36px;
  right: 36px;
  bottom: 118px;
  height: 136px;
}

.hero-castle span {
  position: absolute;
  bottom: 0;
  background: linear-gradient(180deg, #223a5a 0%, #14263d 100%);
  border: 1px solid rgba(244, 211, 124, 0.14);
}

.hero-castle span:nth-child(1) {
  left: 8%;
  width: 22%;
  height: 76px;
  clip-path: polygon(0 100%, 0 26%, 50% 0, 100% 26%, 100% 100%);
}

.hero-castle span:nth-child(2) {
  left: 34%;
  width: 30%;
  height: 112px;
  clip-path: polygon(0 100%, 0 22%, 50% 0, 100% 22%, 100% 100%);
}

.hero-castle span:nth-child(3) {
  right: 8%;
  width: 22%;
  height: 88px;
  clip-path: polygon(0 100%, 0 24%, 50% 0, 100% 24%, 100% 100%);
}

.hero-staff {
  left: 26px;
  right: 26px;
  top: 118px;
  height: 120px;
}

.hero-staff span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(244, 211, 124, 0.6) 14%, rgba(244, 211, 124, 0.6) 86%, transparent 100%);
}

.hero-staff span:nth-child(1) { top: 0; }
.hero-staff span:nth-child(2) { top: 24px; }
.hero-staff span:nth-child(3) { top: 48px; }
.hero-staff span:nth-child(4) { top: 72px; }
.hero-staff span:nth-child(5) { top: 96px; }

.hero-notes {
  left: 64px;
  right: 64px;
  top: 84px;
  bottom: 110px;
}

.hero-notes span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6d77d 0%, #c88f28 100%);
  box-shadow: 0 0 18px rgba(244, 211, 124, 0.25);
}

.hero-notes span::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 44px;
  left: 12px;
  bottom: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6d77d 0%, #c88f28 100%);
}

.hero-notes span:nth-child(1) {
  top: 8%;
  left: 16%;
}

.hero-notes span:nth-child(2) {
  top: 26%;
  left: 46%;
}

.hero-notes span:nth-child(3) {
  top: 12%;
  right: 14%;
}

.hero-keyboard {
  left: 30px;
  right: 30px;
  bottom: 28px;
  height: 92px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.hero-keyboard span {
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #fffdfa 0%, #dccda6 100%);
  border: 1px solid rgba(10, 16, 26, 0.45);
}

.hero-titleplate {
  left: 34px;
  right: 34px;
  top: 34px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(6, 15, 25, 0.5);
  border: 1px solid rgba(244, 211, 124, 0.18);
  backdrop-filter: blur(6px);
}

.hero-titleplate p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.hero-titleplate strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 1.35rem;
  color: #fff6d8;
}

.hero-copy,
.hero-panel,
.info-card,
.series-card,
.path-card,
.video-card,
.cta-card,
.faq-list details {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-copy::before,
.hero-panel::before,
.info-card::before,
.series-card::before,
.path-card::before,
.video-card::before,
.cta-card::before,
.faq-list details::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(244, 211, 124, 0.16);
  border-radius: inherit;
  pointer-events: none;
}

.hero-copy {
  align-self: center;
  border: 0;
  border-radius: 0;
  padding: 4px 0 4px;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  min-width: 0;
}

.hero-copy::before {
  display: none;
}

.hero-lead {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 245, 220, 0.82);
  font-weight: 700;
  line-height: 1.78;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.78);
}

.eyebrow,
.section-kicker,
.panel-label,
.video-meta,
.series-tag {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-deep);
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(2.1rem, 2.9vw, 2.55rem);
  line-height: 1.22;
  color: #f4d37c;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 20px rgba(244, 211, 124, 0.16), 0 4px 28px rgba(0, 0, 0, 0.76);
  overflow-wrap: anywhere;
}

.lead,
.section-copy,
.info-card p,
.series-card p,
.path-card p,
.video-card p,
.faq-list p,
.panel-note {
  color: var(--muted);
  line-height: 1.8;
}

.lead {
  max-width: 62ch;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 0;
  border: 1px solid transparent;
  font-weight: 700;
}

.button-primary {
  background: rgba(0, 0, 0, 0.26);
  border-color: rgba(244, 211, 124, 0.46);
  color: #f4d37c;
  box-shadow: inset 0 0 0 1px rgba(244, 211, 124, 0.08);
}

.button-primary::before {
  content: "▶";
  margin-right: 10px;
  font-size: 0.72rem;
}

.button-secondary {
  background: rgba(12, 27, 42, 0.72);
  border-color: rgba(244, 211, 124, 0.28);
}

.hero-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 34px 0 0;
}

.hero-metrics div {
  background: rgba(8, 18, 31, 0.58);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid rgba(244, 211, 124, 0.12);
}

.hero-metrics dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-metrics dd {
  margin: 8px 0 0;
  font-weight: 700;
}

.hero-panel,
.info-card,
.series-card,
.path-card,
.video-card,
.cta-card,
.faq-list details {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(16, 52, 74, 0.09);
}

.panel-note {
  margin-top: 18px;
  border-radius: var(--radius-md);
  background: rgba(7, 15, 24, 0.58);
  padding: 16px;
}

.page {
  padding-bottom: 56px;
}

.section {
  padding: 26px 0;
}

.intro,
#faq {
  display: none;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

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

.toolbar {
  margin-top: 24px;
}

.library-summary {
  margin: 0 0 18px;
  color: var(--brand-deep);
  font-weight: 700;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(244, 211, 124, 0.2);
  background: rgba(12, 27, 42, 0.8);
  cursor: pointer;
  color: var(--ink);
}

.chip.is-active {
  background: linear-gradient(180deg, #d9b150 0%, #aa7820 100%);
  color: #241607;
  border-color: transparent;
}

.series-tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(244, 211, 124, 0.12);
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.video-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.82rem;
}

.playlist-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(244, 211, 124, 0.16);
  display: block;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at top, rgba(36, 69, 103, 0.35), transparent 45%),
    rgba(7, 15, 24, 0.82);
  padding: 8px;
}

.playlist-count {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand-deep);
  font-weight: 700;
}

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

.playlist-section {
  margin-top: 24px;
}

.playlist-section:first-child {
  margin-top: 0;
}

.playlist-group-title {
  margin: 0 0 16px;
  font-size: 1.4rem;
  color: #fff6d8;
}

.playlist-list-stack-items {
  display: grid;
  gap: 18px;
}

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

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

.video-card-list {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.video-card-body {
  min-width: 0;
}

.video-card-list h3 {
  margin-top: 4px;
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.35;
}

.video-card-grid {
  display: block;
}

.video-card-grid h3 {
  margin-top: 4px;
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.45;
}

.video-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand-deep);
  font-weight: 700;
}

.track-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 211, 124, 0.14);
}

.track-list-title {
  margin: 0 0 12px;
  color: #fff6d8;
  font-weight: 700;
}

.track-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.track-item {
  display: grid;
  gap: 6px;
}

.track-link {
  color: var(--ink);
  line-height: 1.5;
}

.track-link:hover {
  color: var(--brand-deep);
}

.track-difficulty {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(214, 166, 61, 0.12);
  border: 1px solid rgba(244, 211, 124, 0.18);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.song-table-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 211, 124, 0.14);
}

.song-browser {
  padding-top: 8px;
}

.song-browser-table-wrap {
  margin-top: 10px;
}

.song-table-title {
  margin: 0 0 12px;
  color: #fff6d8;
  font-weight: 700;
}

.song-table-scroll {
  border: 1px solid rgba(244, 211, 124, 0.14);
  border-radius: 14px;
  background: rgba(6, 12, 18, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.song-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.song-table th,
.song-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(244, 211, 124, 0.1);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.55;
}

.song-table th {
  color: var(--brand-deep);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  background: rgba(10, 19, 28, 0.96);
  position: sticky;
  top: 0;
}

.song-table tbody tr {
  transition: background-color 0.16s ease;
}

.song-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.song-table tbody tr:hover {
  background: rgba(244, 211, 124, 0.065);
}

.song-table tbody tr:last-child td {
  border-bottom: 0;
}

.song-number {
  white-space: nowrap;
  color: var(--brand-deep);
  font-weight: 700;
  width: 72px;
}

.song-title-cell {
  width: 38%;
}

.song-link {
  color: #fff2c7;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(244, 211, 124, 0.34);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease, background-color 0.18s ease;
}

.song-link:hover {
  color: var(--brand-deep);
  text-decoration-color: var(--brand-deep);
  background: rgba(244, 211, 124, 0.08);
}

.song-number-link {
  display: inline-block;
  min-width: 56px;
}

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

.song-table td:last-child,
.song-table th:last-child {
  width: 158px;
}

.difficulty-cell {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

.difficulty-text {
  color: #f4dfad;
  white-space: nowrap;
  font-weight: 700;
}

.difficulty-stars {
  color: var(--brand-deep);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.difficulty-stars.is-empty {
  color: rgba(184, 199, 207, 0.52);
}

.video-card h3,
.info-card h3,
.series-card h3,
.path-card h3,
.cta-card h2,
.section-heading h2,
.hero-panel h2 {
  color: #fff6d8;
}

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

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

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

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

  .cta-card {
    display: grid;
  }

  .video-card-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .playlist-grid-3-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playlist-grid-2-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    width: 100%;
  }

  .page {
    width: min(calc(100% - 20px), var(--max));
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    width: min(calc(100% - 20px), var(--max));
    min-height: auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }

  .topbar-right {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    gap: 12px;
  }

  .brand {
    width: auto;
    height: auto;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  .topbar-home {
    min-height: 52px;
    align-self: stretch;
  }

  .topbar-links,
  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar-links {
    width: 100%;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .topbar-links a {
    width: auto;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .section-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .section-toggle-label {
    width: 100%;
  }

  .language-switch {
    width: 100%;
    justify-content: space-between;
  }

  .lang-pill {
    flex: 1;
  }

  .hero-inner {
    gap: 16px;
    width: min(calc(100% - 20px), var(--max));
    min-height: 0;
    padding: 14px 0 18px;
  }

  .hero-copy-top {
    display: grid;
    align-items: flex-start;
    gap: 12px;
  }

  .topbar .language-switch {
    display: none;
  }

  .language-switch-hero {
    display: inline-flex;
  }

  .hero-copy {
    border-radius: 0;
    padding: 4px 0 0;
  }

  h1 {
    font-size: clamp(1.74rem, 9vw, 2.5rem);
  }

  .hero-lead {
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .hero-photo {
    min-height: 172px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 18px 0;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .section-copy,
  .lead,
  .info-card p,
  .video-card p {
    line-height: 1.7;
  }

  .hero-copy,
  .hero-panel,
  .info-card,
  .series-card,
  .path-card,
  .video-card,
  .cta-card,
  .faq-list details {
    padding: 20px;
  }

  .toolbar {
    margin-top: 18px;
  }

  .filter-chips {
    gap: 8px;
  }

  .chip {
    width: 100%;
    text-align: center;
  }

  .video-card-list {
    gap: 16px;
  }

  .video-card-list .playlist-thumb,
  .video-card-grid .playlist-thumb {
    max-width: 100%;
    margin-inline: auto;
  }

  .video-card-grid h3,
  .video-card-list h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .playlist-group-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .playlist-grid-3-items {
    grid-template-columns: 1fr;
  }

  .playlist-grid-2-items {
    grid-template-columns: 1fr;
  }

  .video-tags {
    gap: 6px;
  }

  .video-tags span {
    font-size: 0.78rem;
  }

  .track-difficulty {
    font-size: 0.74rem;
  }

  .song-table th,
  .song-table td {
    padding: 8px 9px;
    font-size: 0.8rem;
  }

  .song-table-scroll {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .song-table,
  .song-table thead,
  .song-table tbody,
  .song-table tr,
  .song-table td {
    display: block;
    width: 100%;
  }

  .song-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .song-table tbody {
    display: grid;
    gap: 10px;
  }

  .song-table tr {
    padding: 12px 14px;
    border: 1px solid rgba(244, 211, 124, 0.16);
    border-radius: 12px;
    background: rgba(6, 12, 18, 0.78);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  }

  .song-table th,
  .song-table td {
    padding: 0;
    border: 0;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .song-table td {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    color: var(--text-main);
  }

  .song-table td + td {
    margin-top: 6px;
  }

  .song-table td::before {
    content: attr(data-label);
    color: rgba(244, 211, 124, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .song-table td:nth-child(2) {
    display: block;
    margin-top: 8px;
  }

  .song-table td:nth-child(2)::before {
    display: block;
    margin-bottom: 3px;
  }

  .song-table td:nth-child(2) .song-link,
  .song-table td:nth-child(2) {
    font-size: 1.03rem;
    line-height: 1.55;
  }

  .song-number-link {
    min-width: 0;
  }

  .difficulty-cell {
    gap: 1px;
  }
}



.section-collapsible {
  padding-top: 18px;
}

.section-disclosure {
  border: 1px solid rgba(244, 211, 124, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(10, 24, 38, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  cursor: pointer;
}

.section-summary::-webkit-details-marker {
  display: none;
}

.section-summary .section-heading {
  margin-bottom: 0;
}

.section-summary .section-copy {
  margin-bottom: 0;
  max-width: 72ch;
}

.section-toggle-label {
  flex: 0 0 auto;
  min-width: 84px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(20, 50, 77, 0.82);
  border: 1px solid rgba(244, 211, 124, 0.28);
  color: var(--brand-deep);
  font-weight: 700;
}

.section-disclosure[open] .section-toggle-label {
  background: linear-gradient(180deg, #d9b150 0%, #aa7820 100%);
  color: #241607;
}

.section-body {
  padding: 0 24px 24px;
}

.seo-hub-links {
  display: grid;
  gap: 24px;
}

.seo-hub-block {
  display: grid;
  gap: 14px;
}

.compact-heading {
  gap: 8px;
}

.compact-heading h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-main);
}

.entry-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.entry-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(244, 211, 124, 0.18);
  background: linear-gradient(180deg, rgba(14, 33, 54, 0.94), rgba(9, 23, 37, 0.92));
  color: var(--text-main);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.entry-card-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(244, 211, 124, 0.18);
  background: rgba(6, 15, 26, 0.72);
  margin-bottom: 6px;
}

.entry-card:hover,
.entry-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(244, 211, 124, 0.44);
  box-shadow: 0 18px 42px rgba(3, 9, 16, 0.4);
}

.entry-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-light);
}

.entry-card-body,
.entry-card-meta {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.bookcase-library {
  position: relative;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.bookcase-library::before {
  content: "";
  position: absolute;
  inset: 6px -18px;
  z-index: -1;
  border-top: 1px solid rgba(244, 211, 124, 0.14);
  border-bottom: 1px solid rgba(244, 211, 124, 0.1);
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 211, 124, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(4, 8, 12, 0.2), rgba(1, 3, 6, 0.36));
}

.bookcase-block {
  position: relative;
  gap: 8px;
}

.bookcase-block .compact-heading {
  position: relative;
  text-align: center;
  width: fit-content;
  margin: 0 auto 4px;
  padding-inline: 76px;
}

.bookcase-block .compact-heading h3 {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  color: #f4d37c;
  text-shadow: 0 1px 16px rgba(244, 211, 124, 0.16);
}

.bookcase-block .compact-heading::before,
.bookcase-block .compact-heading::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 211, 124, 0.58), transparent);
}

.bookcase-block .compact-heading::before {
  left: 0;
}

.bookcase-block .compact-heading::after {
  right: 0;
}

.bookcase-scroll {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 211, 124, 0.34) rgba(11, 7, 4, 0.45);
}

.bookcase-scroll::before,
.bookcase-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  display: none;
  width: 24px;
  height: 168px;
  pointer-events: none;
}

.bookcase-scroll::before {
  left: 0;
  background: linear-gradient(90deg, rgba(3, 4, 5, 0.95), transparent);
}

.bookcase-scroll::after {
  right: 0;
  background: linear-gradient(270deg, rgba(3, 4, 5, 0.95), transparent);
}

.bookcase-shelf {
  min-width: max-content;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 8px 16px 12px;
  border-bottom: 14px solid rgba(62, 31, 15, 0.82);
  background:
    linear-gradient(180deg, rgba(3, 2, 2, 0.04) 0 calc(100% - 20px), rgba(23, 10, 5, 0.72) calc(100% - 20px) 100%),
    radial-gradient(circle at 50% 100%, rgba(244, 211, 124, 0.1), transparent 30%),
    linear-gradient(90deg, rgba(244, 211, 124, 0.08), transparent 12%, transparent 88%, rgba(244, 211, 124, 0.08));
  box-shadow:
    inset 0 -1px 0 rgba(244, 211, 124, 0.24),
    inset 0 -14px 20px rgba(0, 0, 0, 0.32),
    0 18px 36px rgba(0, 0, 0, 0.34);
}

.book-spine {
  --spine-base: #14352d;
  --spine-shadow: #071511;
  position: relative;
  isolation: isolate;
  flex: 0 0 94px;
  width: 94px;
  min-height: 170px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
  color: #f5d98a;
  text-decoration: none;
  border: 1px solid rgba(244, 211, 124, 0.24);
  border-radius: 5px 5px 2px 2px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 62%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(255, 241, 180, 0.06), transparent 20%, transparent 75%, rgba(0, 0, 0, 0.28)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.36)),
    linear-gradient(180deg, color-mix(in srgb, var(--spine-base), #ffffff 8%), var(--spine-base) 44%, var(--spine-shadow));
  box-shadow:
    inset 4px 0 8px rgba(255, 255, 255, 0.04),
    inset -7px 0 13px rgba(0, 0, 0, 0.34),
    0 14px 22px rgba(0, 0, 0, 0.36);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.book-spine::before,
.book-spine::after {
  content: "";
  position: absolute;
  inset: 8px 8px;
  z-index: -1;
  pointer-events: none;
}

.book-spine::before {
  border: 1px solid rgba(244, 211, 124, 0.22);
  border-radius: 4px;
}

.book-spine::after {
  inset: 14px 13px;
  border-top: 1px solid rgba(244, 211, 124, 0.28);
  border-bottom: 1px solid rgba(244, 211, 124, 0.22);
}

.book-spine:hover,
.book-spine:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(244, 211, 124, 0.58);
  box-shadow:
    inset 4px 0 8px rgba(255, 255, 255, 0.06),
    inset -7px 0 13px rgba(0, 0, 0, 0.34),
    0 20px 30px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(244, 211, 124, 0.12);
  filter: saturate(1.06);
}

.book-spine-ornament {
  width: 48px;
  height: 16px;
  border-top: 1px solid rgba(244, 211, 124, 0.58);
  border-bottom: 1px solid rgba(244, 211, 124, 0.3);
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 211, 124, 0.7) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent, rgba(244, 211, 124, 0.26), transparent);
}

.book-spine-code {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.02rem;
  line-height: 1;
  color: #f6dc91;
  text-shadow: 0 1px 0 rgba(255, 250, 218, 0.24), 0 8px 18px rgba(0, 0, 0, 0.38);
}

.book-spine-title {
  display: grid;
  align-items: center;
  min-height: 34px;
  text-align: center;
  font-weight: 800;
  line-height: 1.28;
  color: #f5d98a;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.book-spine-subtitle {
  max-width: 100%;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(255, 239, 186, 0.72);
}

.book-spine-category {
  flex-basis: 142px;
  width: 142px;
  min-height: 156px;
  padding-inline: 14px;
}

.book-spine-category .book-spine-title {
  min-height: 42px;
  font-size: 0.98rem;
}

.book-spine-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(244, 211, 124, 0.28);
  background: radial-gradient(circle, rgba(244, 211, 124, 0.14), rgba(0, 0, 0, 0.18));
  color: #d9aa4a;
  font-size: 1.62rem;
  line-height: 1;
}

.book-spine.tone-green { --spine-base: #12392f; --spine-shadow: #071713; }
.book-spine.tone-wine { --spine-base: #4a1518; --spine-shadow: #1d0809; }
.book-spine.tone-navy { --spine-base: #162a46; --spine-shadow: #07111e; }
.book-spine.tone-brown { --spine-base: #4a2a16; --spine-shadow: #1d1008; }
.book-spine.tone-purple { --spine-base: #321a3d; --spine-shadow: #120817; }
.book-spine.tone-olive { --spine-base: #35341b; --spine-shadow: #151407; }

.bookcase-library::before {
  display: none;
}

.bookcase-block .shelf-heading {
  margin: 0;
  text-align: center;
}

.bookcase-scroll {
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 211, 124, 0.34) #050302;
}

.bookcase-scroll::before,
.bookcase-scroll::after {
  display: none;
}

.bookcase-shelf {
  position: relative;
  width: 100%;
  min-width: 1100px;
  padding: 0;
  border: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  box-shadow: none;
}

.bookcase-shelf-series {
  aspect-ratio: 1393 / 475;
  background-image: url("./assets/bookshelf-series-reference.jpg");
  background-size: 100% auto;
  background-position: center bottom;
}

.bookcase-shelf-category {
  aspect-ratio: 2284 / 560;
  background-image: url("./assets/bookshelf-category-wide-reference.jpg");
}

.bookcase-shelf-category-en {
  aspect-ratio: 2284 / 560;
  background-image: url("./assets/bookshelf-category-wide-reference-en.jpg");
}

.book-spine,
.book-spine-category {
  position: absolute;
  z-index: 1;
  display: block;
  min-height: 0;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  opacity: 0.01;
}

.book-spine::before,
.book-spine::after,
.book-spine-ornament,
.book-spine-title,
.book-spine-code,
.book-spine-subtitle,
.book-spine-icon {
  display: none;
}

.book-spine:hover,
.book-spine:focus-visible {
  transform: none;
  outline: 2px solid rgba(244, 211, 124, 0.72);
  outline-offset: -4px;
  box-shadow: none;
}

.book-spine-series {
  top: 5%;
  bottom: 4%;
  left: calc(2.8% + (var(--book-index) * 8.35%));
  width: 7.85%;
}

.book-spine-category {
  top: 24%;
  bottom: 9%;
  left: calc(4.2% + (var(--book-index) * 12.4%));
  width: 10.8%;
}

.hero-simple {
  padding-bottom: 32px;
}

.page-hero {
  display: grid;
  gap: 18px;
  padding: 28px 30px 10px;
}

.page-hero h1 {
  margin: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--text-soft);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--brand-light);
  text-decoration: underline;
}

.seo-page {
  display: grid;
  gap: 26px;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.seo-card {
  height: 100%;
}

.seo-song-table-wrap {
  margin-top: 0;
}

.seo-footer {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 48px;
  color: var(--text-soft);
}

.seo-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .page-hero {
    padding: 22px 18px 6px;
  }

  .bookcase-library {
    gap: 22px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .bookcase-library::before {
    inset-inline: -10px;
  }

  .bookcase-block .compact-heading {
    text-align: left;
    margin-inline: 0;
    padding-inline: 0;
  }

  .bookcase-block .compact-heading::before,
  .bookcase-block .compact-heading::after {
    display: none;
  }

  .bookcase-scroll {
    margin-inline: -10px;
    padding: 4px 0 16px;
  }

  .bookcase-scroll::before,
  .bookcase-scroll::after {
    display: none;
  }

  .bookcase-shelf {
    gap: 8px;
    padding: 8px 16px 16px;
    border-bottom-width: 10px;
  }

  .book-spine {
    flex-basis: 84px;
    width: 84px;
    min-height: 148px;
    gap: 8px;
    padding: 14px 9px 12px;
    box-shadow:
      inset 3px 0 6px rgba(255, 255, 255, 0.035),
      inset -5px 0 10px rgba(0, 0, 0, 0.26),
      0 10px 16px rgba(0, 0, 0, 0.28);
  }

  .book-spine::before {
    inset: 7px;
  }

  .book-spine::after {
    inset: 12px 12px;
  }

  .book-spine:hover,
  .book-spine:focus-visible {
    transform: translateY(-3px);
  }

  .book-spine-code {
    font-size: 1.72rem;
  }

  .book-spine-title {
    min-height: 28px;
    font-size: 1.02rem;
  }

  .book-spine-category .book-spine-title {
    min-height: 38px;
    font-size: 0.86rem;
  }

  .book-spine-icon {
    width: 42px;
    height: 42px;
    font-size: 1.28rem;
  }

  .book-spine-subtitle {
    font-size: 0.62rem;
  }

  .entry-link-grid {
    grid-template-columns: 1fr;
  }

  .seo-card-grid {
    grid-template-columns: 1fr;
  }
}
.seo-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 26px;
  padding: 28px;
  margin-top: 12px;
  border-radius: 32px;
  border: 1px solid rgba(244, 211, 124, 0.18);
  background: linear-gradient(180deg, rgba(16, 35, 55, 0.94), rgba(10, 24, 38, 0.94));
  box-shadow: var(--shadow);
}

.seo-hero-copy {
  display: grid;
  gap: 16px;
}

.page-hero .eyebrow {
  margin: 0;
}

.page-hero .lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.page-hero-metrics {
  margin: 0;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
  align-self: flex-start;
  min-height: 46px;
  padding: 0 18px;
  margin-top: 0;
  border-radius: 999px;
  border: 1px solid rgba(244, 211, 124, 0.22);
  background: rgba(20, 50, 77, 0.44);
  white-space: nowrap;
}

.page-action.is-primary {
  color: #241607;
  background: linear-gradient(180deg, #f2cf71 0%, #c7902e 100%);
  border-color: rgba(255, 245, 201, 0.42);
}

.page-hero-feature {
  display: grid;
  align-content: start;
}

.hero-playlist-thumb {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 31, 52, 0.94), rgba(8, 20, 34, 0.9));
  border: 1px solid rgba(244, 211, 124, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.hero-playlist-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-playlist-image-link {
  display: block;
  width: min(220px, 100%);
}

.hero-playlist-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(244, 211, 124, 0.2);
  background: rgba(5, 14, 26, 0.7);
}

.hero-playlist-meta {
  display: grid;
  gap: 4px;
}

.hero-playlist-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.seo-card-grid-hero .seo-card {
  background: rgba(8, 20, 34, 0.86);
}

.song-number-link {
  font-weight: 700;
}

.song-link:hover,
.song-link:focus-visible {
  color: var(--brand-deep);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .seo-hero-panel {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}
.section-disclosure-static {
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
}

.section-disclosure-static .section-summary {
  padding: 0 0 20px;
  cursor: default;
}

.section-disclosure-static .section-toggle-label {
  display: none;
}

.section-disclosure-static .section-body {
  padding: 0;
}

.section-disclosure-static[open] .section-toggle-label {
  display: none;
}
.section-body-flat {
  padding: 0;
}

.library.section,
.song-browser.section {
  padding-top: 8px;
}

/* Image-based homepage shelves. Kept late so mobile legacy book styles cannot override them. */
.bookcase-block .shelf-heading {
  margin: 0;
  text-align: center;
}

.bookcase-shelf {
  position: relative;
  width: 100%;
  min-width: 1100px;
  padding: 0;
  border: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  box-shadow: none;
}

.bookcase-shelf-series {
  aspect-ratio: 1393 / 475;
  background-image: url("./assets/bookshelf-series-reference.jpg");
  background-size: 100% auto;
  background-position: center bottom;
}

.bookcase-shelf-category {
  aspect-ratio: 2284 / 560;
  background-image: url("./assets/bookshelf-category-wide-reference.jpg");
}

.bookcase-shelf-category-en {
  aspect-ratio: 2284 / 560;
  background-image: url("./assets/bookshelf-category-wide-reference-en.jpg");
}

.book-spine,
.book-spine-category {
  position: absolute;
  z-index: 1;
  display: block;
  min-height: 0;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  opacity: 0.01;
}

.book-spine::before,
.book-spine::after,
.book-spine-ornament,
.book-spine-title,
.book-spine-code,
.book-spine-subtitle,
.book-spine-icon {
  display: none;
}

.book-spine:hover,
.book-spine:focus-visible {
  transform: none;
  outline: 2px solid rgba(244, 211, 124, 0.72);
  outline-offset: -4px;
  box-shadow: none;
}

.book-spine-series {
  top: 5%;
  bottom: 4%;
  left: calc(3.6% + (var(--book-index) * 8.75%));
  width: 7.55%;
}

.book-spine-series:nth-child(1) {
  left: 5.599%;
  width: 6.748%;
}

.book-spine-series:nth-child(2) {
  left: 13.496%;
  width: 7.538%;
}

.book-spine-series:nth-child(3) {
  left: 21.752%;
  width: 7.681%;
}

.book-spine-series:nth-child(4) {
  left: 30.366%;
  width: 7.394%;
}

.book-spine-series:nth-child(5) {
  left: 38.622%;
  width: 7.179%;
}

.book-spine-series:nth-child(6) {
  left: 46.518%;
  width: 7.753%;
}

.book-spine-series:nth-child(7) {
  left: 54.702%;
  width: 7.681%;
}

.book-spine-series:nth-child(8) {
  left: 63.317%;
  width: 7.609%;
}

.book-spine-series:nth-child(9) {
  left: 71.572%;
  width: 7.681%;
}

.book-spine-series:nth-child(10) {
  left: 80.258%;
  width: 7.466%;
}

.book-spine-series:nth-child(11) {
  left: 88.514%;
  width: 7.251%;
}

.book-spine-category {
  top: 2.5%;
  bottom: 5.5%;
  left: calc(1.24% + (var(--book-index) * 4.867%));
  width: 4.6%;
}

.bookcase-shelf-category .book-spine-category:nth-child(1) {
  left: 1.051%;
  width: 4.947%;
}

.bookcase-shelf-category .book-spine-category:nth-child(2) {
  left: 6.130%;
  width: 4.510%;
}

.bookcase-shelf-category .book-spine-category:nth-child(3) {
  left: 11.252%;
  width: 4.335%;
}

.bookcase-shelf-category .book-spine-category:nth-child(4) {
  left: 15.893%;
  width: 4.553%;
}

.bookcase-shelf-category .book-spine-category:nth-child(5) {
  left: 21.060%;
  width: 4.291%;
}

.bookcase-shelf-category .book-spine-category:nth-child(6) {
  left: 25.963%;
  width: 4.335%;
}

.bookcase-shelf-category .book-spine-category:nth-child(7) {
  left: 30.604%;
  width: 4.597%;
}

.bookcase-shelf-category .book-spine-category:nth-child(8) {
  left: 35.595%;
  width: 4.466%;
}

.bookcase-shelf-category .book-spine-category:nth-child(9) {
  left: 40.674%;
  width: 4.247%;
}

.bookcase-shelf-category .book-spine-category:nth-child(10) {
  left: 45.271%;
  width: 4.378%;
}

.bookcase-shelf-category .book-spine-category:nth-child(11) {
  left: 50.219%;
  width: 4.203%;
}

.bookcase-shelf-category .book-spine-category:nth-child(12) {
  left: 54.991%;
  width: 4.203%;
}

.bookcase-shelf-category .book-spine-category:nth-child(13) {
  left: 59.501%;
  width: 4.553%;
}

.bookcase-shelf-category .book-spine-category:nth-child(14) {
  left: 64.667%;
  width: 4.116%;
}

.bookcase-shelf-category .book-spine-category:nth-child(15) {
  left: 69.352%;
  width: 4.247%;
}

.bookcase-shelf-category .book-spine-category:nth-child(16) {
  left: 73.949%;
  width: 4.422%;
}

.bookcase-shelf-category .book-spine-category:nth-child(17) {
  left: 78.503%;
  width: 5.823%;
}

.bookcase-shelf-category .book-spine-category:nth-child(18) {
  left: 84.457%;
  width: 4.641%;
}

.bookcase-shelf-category .book-spine-category:nth-child(19) {
  left: 89.098%;
  width: 4.685%;
}

.bookcase-shelf-category .book-spine-category:nth-child(20) {
  left: 94.133%;
  width: 4.597%;
}

.bookcase-shelf-category-en .book-spine-category {
  width: 4.3%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(1) {
  left: 1.051%;
  width: 4.335%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(2) {
  left: 6.261%;
  width: 4.247%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(3) {
  left: 11.340%;
  width: 3.459%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(4) {
  left: 16.156%;
  width: 4.422%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(5) {
  left: 21.278%;
  width: 4.466%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(6) {
  left: 26.270%;
  width: 3.590%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(7) {
  left: 31.086%;
  width: 3.984%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(8) {
  left: 35.727%;
  width: 4.597%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(9) {
  left: 40.674%;
  width: 3.984%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(10) {
  left: 45.315%;
  width: 3.722%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(11) {
  left: 50.044%;
  width: 4.553%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(12) {
  left: 54.904%;
  width: 3.109%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(13) {
  left: 59.588%;
  width: 3.940%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(14) {
  left: 64.142%;
  width: 4.335%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(15) {
  left: 69.002%;
  width: 3.984%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(16) {
  left: 73.993%;
  width: 3.590%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(17) {
  left: 78.152%;
  width: 3.853%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(18) {
  left: 82.093%;
  width: 5.254%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(19) {
  left: 87.478%;
  width: 4.422%;
}

.bookcase-shelf-category-en .book-spine-category:nth-child(20) {
  left: 92.732%;
  width: 4.553%;
}

@media (max-width: 720px) {
  .bookcase-library {
    gap: 26px;
  }

  .bookcase-block {
    gap: 10px;
  }

  .bookcase-block .shelf-heading {
    position: relative;
    width: fit-content;
    height: auto;
    clip: auto;
    clip-path: none;
    overflow: visible;
    white-space: normal;
    text-align: left;
    margin: 0;
    padding-inline: 0;
  }

  .bookcase-block .shelf-heading h3 {
    font-size: 1.28rem;
  }

  .bookcase-shelf {
    min-width: 920px;
    background-size: auto 100%;
  }

  .bookcase-scroll {
    padding: 0 0 12px;
  }

  .bookcase-shelf-series {
    min-width: 1100px;
    aspect-ratio: 1393 / 475;
    background-size: 100% auto;
    background-position: center bottom;
  }

  .bookcase-shelf-category {
    min-width: 1700px;
    aspect-ratio: 2284 / 560;
    background-size: 100% 100%;
    background-position: center;
  }

  .bookcase-shelf-category-en {
    min-width: 1700px;
    aspect-ratio: 2284 / 560;
    background-size: 100% 100%;
    background-position: center;
  }

  .book-spine-series {
    top: 5%;
    bottom: 4%;
  }

  .book-spine-category {
    top: 2.5%;
    bottom: 5.5%;
  }
}
