:root {
  --bg: #edf3fa;
  --bg-soft: #f8fbff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-dark: #0b2037;
  --ink: #0f2741;
  --muted: #5a7188;
  --line: rgba(15, 39, 65, 0.12);
  --line-strong: rgba(15, 39, 65, 0.22);
  --brand: #f1743b;
  --brand-deep: #cc5322;
  --accent: #179c90;
  --accent-soft: #d8f3ef;
  --highlight: #ffc85d;
  --shadow: 0 22px 52px rgba(8, 24, 44, 0.16);
  --shadow-soft: 0 12px 26px rgba(8, 24, 44, 0.1);
  --tint-blue: rgba(29, 95, 145, 0.12);
  --tint-accent: rgba(23, 156, 144, 0.14);
  --panel-border: rgba(15, 39, 65, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100% - 32px));
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(241, 116, 59, 0.14), transparent 23%),
    radial-gradient(circle at 92% 7%, rgba(23, 156, 144, 0.2), transparent 22%),
    linear-gradient(180deg, #f7fbff 0%, #ecf3fb 45%, #f4f8fd 100%);
  line-height: 1.6;
}

body.site-theme-dark {
  color: #d9e6f4;
  background:
    radial-gradient(circle at 8% 5%, rgba(241, 116, 59, 0.12), transparent 24%),
    radial-gradient(circle at 92% 7%, rgba(23, 156, 144, 0.14), transparent 22%),
    linear-gradient(180deg, #0a1524 0%, #0f1e31 52%, #102338 100%);
}

img {
  max-width: 100%;
}

a,
button,
input,
select {
  transition: 180ms ease;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(12px);
}

.site-shell::before {
  top: -80px;
  right: -70px;
  background: color-mix(in srgb, var(--brand) 22%, transparent);
}

.site-shell::after {
  bottom: 8%;
  left: -100px;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 0;
  padding-top: 0.55rem;
  backdrop-filter: none;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-left: auto;
  padding: 0.26rem 0.34rem 0.26rem 0.5rem;
  color: rgba(229, 240, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.theme-switch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  color: rgba(229, 240, 255, 0.9);
  font-size: 0.88rem;
  line-height: 1;
}

.theme-switch-label {
  white-space: nowrap;
  opacity: 0.94;
}

.theme-switch select {
  min-width: 92px;
  width: auto;
  appearance: none;
  padding: 0.44rem 2rem 0.44rem 0.66rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background-color: rgba(255, 255, 255, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23f5fbff' d='M5.5 7.5L10 12l4.5-4.5 1.5 1.5-6 6-6-6z'/%3E%3C/svg%3E");
  background-position: calc(100% - 10px) 50%;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  color: #fff;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}

.theme-switch select option {
  color: #102740;
}

.theme-switch select:focus-visible {
  outline: 2px solid rgba(102, 230, 219, 0.75);
  outline-offset: 1px;
}

body.site-theme-dark .theme-switch select {
  border-color: rgba(202, 224, 255, 0.34);
  background-color: rgba(255, 255, 255, 0.12);
  color: #f4f9ff;
}

body:not(.site-theme-dark) .theme-switch select {
  border-color: rgba(202, 224, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.header-tuner-host {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-tuner-launch {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(229, 240, 255, 0.95);
  border-radius: 12px;
  padding: 0.52rem 0.78rem;
  min-height: 40px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.header-tuner-launch.active,
.header-tuner-launch:hover {
  background: rgba(255, 255, 255, 0.16);
}

.header-tuner-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 28px));
  padding: 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(10, 28, 46, 0.98), rgba(15, 39, 62, 0.96));
  box-shadow: 0 24px 48px rgba(7, 20, 33, 0.42);
  display: none;
  z-index: 60;
}

.header-tuner-popover.open {
  display: grid;
  gap: 0.55rem;
}

.header-tuner-popover .section-kicker,
.header-tuner-popover .mini-meta,
.header-tuner-popover .tuner-readout,
.header-tuner-popover .tuner-string-btn {
  color: #eaf2fc;
}

.header-tuner-popover .meter-track,
.header-tuner-popover .tuner-readout,
.header-tuner-popover .tuner-string-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(225, 239, 255, 0.2);
}

.header-tuner-popover .btn-card-action {
  min-height: 42px;
}

.header-tuner-strings {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}

.header-tuner-strings .tuner-string-btn {
  min-height: 34px;
  font-size: 0.78rem;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(11, 32, 55, 0.95), rgba(19, 49, 78, 0.9)),
    rgba(11, 32, 55, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 34px rgba(8, 24, 44, 0.26);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #f4f8ff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--highlight) 68%, #ffffff 32%));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.brand-text span {
  color: var(--highlight);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: rgba(229, 240, 255, 0.84);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.main-nav a.active,
.main-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 42px;
  padding: 0.58rem 0.82rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f8ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-label {
  font-size: 0.88rem;
}

.btn {
  border: 0;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, var(--highlight) 30%));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 12px 24px rgba(212, 88, 42, 0.24);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(212, 88, 42, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(15, 39, 65, 0.06);
}

.btn-small {
  padding: 0.72rem 1rem;
  font-size: 0.94rem;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #ffffff 30%));
  box-shadow: 0 12px 24px rgba(23, 156, 144, 0.25);
}

.btn-card-action {
  width: 100%;
  padding: 0.82rem 1rem;
  font-size: 0.95rem;
  min-height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 74%, #0b2037 26%));
  box-shadow: 0 14px 26px rgba(23, 156, 144, 0.23);
  letter-spacing: 0.01em;
}

.btn-card-action:hover {
  box-shadow: 0 18px 34px rgba(23, 156, 144, 0.3);
}

.btn-square {
  min-width: 54px;
  border-radius: 18px;
}

main {
  min-height: calc(100vh - 180px);
}

.hero {
  padding: 1.6rem 0 2rem;
}

.hero-grid,
.layout-two-col,
.split,
.feature-band,
.lesson-layout,
.about-grid,
.detail-layout {
  display: grid;
  gap: 1.2rem;
}

.hero-grid {
  grid-template-columns: 1.45fr 0.95fr;
  align-items: stretch;
}

.hero-panel,
.hero-card,
.info-panel,
.card,
.video-card,
.post-card,
.widget,
.song-content,
.spotlight-card,
.promo-card,
.stats-card,
.empty-state {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 2.2rem;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 200, 93, 0.24), transparent 20%),
    radial-gradient(circle at 12% 22%, rgba(23, 156, 144, 0.23), transparent 24%),
    linear-gradient(135deg, rgba(11, 32, 55, 0.98), rgba(23, 55, 89, 0.95));
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.2;
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -54px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}

.hero-card,
.info-panel,
.widget,
.card,
.video-card,
.promo-card,
.stats-card,
.spotlight-card {
  padding: 1.15rem;
}

.hero-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 247, 255, 0.94)),
    var(--surface);
  border: 1px solid var(--panel-border);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  max-width: 14ch;
  color: #f9fcff;
  text-wrap: balance;
}

.hero-copy {
  max-width: 42rem;
}

.hero-lead,
.page-head p,
.section-copy {
  color: #3b5063;
  font-size: 1.05rem;
  max-width: 62ch;
}

.hero .hero-lead {
  color: rgba(232, 243, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.hero-search {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.hero-search-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-search-icon {
  position: absolute;
  left: 1rem;
  font-size: 1rem;
  color: rgba(44, 73, 107, 0.76);
  pointer-events: none;
}

.hero-panel .hero-search input {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.34);
  min-height: 60px;
  padding-left: 2.8rem;
  font-size: 1rem;
}

.hero-search-note {
  margin: 0.72rem 0 0;
  color: rgba(223, 236, 251, 0.82);
  font-size: 0.9rem;
}

.hero-mood-block {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.hero-mood-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.hero-mood-row .chip {
  background: rgba(235, 247, 255, 0.16);
  border-color: rgba(213, 231, 255, 0.24);
  color: #eef6ff;
  box-shadow: none;
}

.hero-mood-row .chip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.32);
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.95rem;
}

.hero-chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(227, 239, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #eef6ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-chip-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.hero-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 0.9rem;
}

.hero-link-row a {
  display: inline-flex;
  align-items: center;
  color: rgba(226, 239, 255, 0.86);
  text-decoration: none;
  font-weight: 600;
}

.hero-link-row a:hover {
  color: #ffffff;
}

.hero-panel .btn-ghost {
  color: #eaf3ff;
  box-shadow: inset 0 0 0 1px rgba(228, 241, 255, 0.32);
}

.hero-panel .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-metrics,
.stat-grid,
.trust-points,
.chip-row,
.meta-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.metric-pill,
.trust-pill {
  padding: 0.72rem 0.9rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  min-width: 132px;
}

.metric-pill strong,
.trust-pill strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.metric-pill span,
.trust-pill span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-panel .metric-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(235, 246, 255, 0.24);
}

.hero-panel .metric-pill strong {
  color: #ffffff;
}

.hero-panel .metric-pill span {
  color: rgba(226, 239, 255, 0.86);
}

.hero-discovery-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-card-block + .hero-card-block {
  border-top: 1px solid rgba(15, 39, 65, 0.1);
  padding-top: 1rem;
}

.hero-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.8rem;
}

.hero-inline-link {
  white-space: nowrap;
}

.hero-trending-list {
  display: grid;
  gap: 0.8rem;
}

.hero-trending-list li {
  padding: 0;
  border-bottom: 0;
}

.hero-trending-item + .hero-trending-item {
  margin-top: 0;
}

.hero-trending-link {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(246, 252, 255, 0.98), rgba(233, 246, 255, 0.94)),
    var(--surface);
  border: 1px solid rgba(204, 223, 244, 0.9);
  box-shadow: 0 14px 30px rgba(12, 31, 53, 0.08);
}

.hero-trending-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(12, 31, 53, 0.12);
}

.hero-trending-title {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.22;
}

.hero-trending-sub {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-continue-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(229, 243, 255, 0.96)),
    var(--surface);
  border: 1px solid rgba(204, 223, 244, 0.9);
}

.hero-continue-card h3,
.hero-card-head h3 {
  margin-bottom: 0;
}

.hero-continue-meta {
  display: grid;
  gap: 0.32rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.38rem 0.66rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--status-accent, var(--accent)) 12%, #ffffff 88%);
  color: color-mix(in srgb, var(--status-accent, var(--accent)) 76%, #0b2037 24%);
  border: 1px solid color-mix(in srgb, var(--status-accent, var(--accent)) 24%, transparent);
  font-weight: 700;
  font-size: 0.8rem;
}

.hero-continue-card .btn {
  margin-top: 0.2rem;
}

.hero-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.hero-card-actions .btn {
  flex: 1 1 180px;
}

.hero-card h3,
.section-head h2,
.widget h3,
.video-card h3,
.card h3,
.promo-card h3 {
  font-size: 1.28rem;
}

.today-list,
.bullet-list,
.widget ul,
.detail-stats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.today-list li,
.widget li,
.detail-stats li {
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}

.hero-card .today-list li {
  border-bottom-color: rgba(15, 39, 65, 0.12);
}

.today-list li:last-child,
.widget li:last-child,
.detail-stats li:last-child {
  border-bottom: 0;
}

.today-list a,
.widget a,
.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-card .section-kicker {
  color: color-mix(in srgb, var(--ink) 72%, #ffffff 28%);
}

.hero-side-cta {
  width: 100%;
  margin-top: 0.9rem;
}

.text-link {
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 200ms ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.today-list span,
.muted {
  color: var(--muted);
}

.section {
  padding: 1.2rem 0 2rem;
}

.home-showcase .section-head {
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--panel-border);
}

.home-showcase .section-kicker {
  color: color-mix(in srgb, var(--ink) 78%, #ffffff 22%);
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  background: var(--tint-blue);
  margin-bottom: 0.35rem;
}

.home-showcase .section-head h2 {
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.home-showcase {
  padding: 0.95rem 0 1.5rem;
}

.home-showcase .container {
  padding: 1.25rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 248, 255, 0.93)),
    var(--surface);
  box-shadow: var(--shadow);
}

.home-showcase .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.92)),
    var(--surface);
  border: 1px solid var(--panel-border);
}

#home-requests .container {
  padding: 1.25rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 248, 255, 0.93)),
    var(--surface);
  box-shadow: var(--shadow);
}

.section-tight {
  padding-top: 0.5rem;
}

.section-alt .container,
.feature-band,
.promo-card,
.spotlight-card {
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin-bottom: 0.18rem;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.page-head {
  padding: 1.3rem 0 0.2rem;
}

.page-head.compact {
  padding-top: 1rem;
}

.page-head-panel {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(235, 245, 255, 0.92)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.page-head h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

input,
select {
  width: 100%;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.site-theme-dark .hero-card,
body.site-theme-dark .info-panel,
body.site-theme-dark .card,
body.site-theme-dark .tab-card,
body.site-theme-dark .video-card,
body.site-theme-dark .post-card,
body.site-theme-dark .widget,
body.site-theme-dark .song-content,
body.site-theme-dark .spotlight-card,
body.site-theme-dark .promo-card,
body.site-theme-dark .stats-card,
body.site-theme-dark .empty-state,
body.site-theme-dark .page-head-panel,
body.site-theme-dark .home-showcase .container,
body.site-theme-dark #home-requests .container {
  background: rgba(15, 33, 53, 0.9);
  border-color: rgba(213, 228, 248, 0.18);
  color: #e4eef9;
}

body.site-theme-dark .tab-card h3,
body.site-theme-dark .card h3,
body.site-theme-dark .widget h3 {
  color: #eef5ff;
}

body.site-theme-dark .tab-card p,
body.site-theme-dark .card p,
body.site-theme-dark .widget p {
  color: rgba(214, 229, 245, 0.88);
}

body.site-theme-dark .tab-card .btn-ghost,
body.site-theme-dark .card .btn-ghost,
body.site-theme-dark .widget .btn-ghost {
  color: #e8f2ff;
  box-shadow: inset 0 0 0 1px rgba(212, 229, 247, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

body.site-theme-dark .tab-card .btn-ghost:hover,
body.site-theme-dark .card .btn-ghost:hover,
body.site-theme-dark .widget .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.site-theme-dark p,
body.site-theme-dark .tab-meta,
body.site-theme-dark .mini-meta,
body.site-theme-dark .section-copy,
body.site-theme-dark .today-list span {
  color: rgba(205, 222, 242, 0.82);
}

body.site-theme-dark .hero-continue-card {
  background: linear-gradient(180deg, rgba(22, 45, 71, 0.98), rgba(17, 36, 58, 0.96));
  border-color: rgba(217, 231, 248, 0.16);
}

body.site-theme-dark .hero-continue-meta {
  color: rgba(225, 235, 248, 0.76);
}

body.site-theme-dark .hero-mood-row .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(213, 228, 248, 0.2);
  color: #dbeeff;
}

body.site-theme-dark .hero-trending-link {
  background: linear-gradient(180deg, rgba(23, 49, 77, 0.96), rgba(18, 39, 61, 0.94));
  border-color: rgba(213, 228, 248, 0.16);
  box-shadow: 0 14px 28px rgba(3, 12, 22, 0.28);
}

body.site-theme-dark .hero-trending-title {
  color: #f0f6ff;
}

body.site-theme-dark .hero-trending-sub {
  color: rgba(205, 222, 242, 0.76);
}

body.site-theme-dark input,
body.site-theme-dark select,
body.site-theme-dark .inline-check {
  background-color: rgba(16, 36, 58, 0.94);
  border-color: rgba(206, 222, 242, 0.2);
  color: #e7f0fb;
}

body.site-theme-dark .chip {
  background: rgba(18, 45, 72, 0.9);
  border-color: rgba(145, 191, 215, 0.36);
  color: #bfece8;
}

input::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, #ffffff 25%);
}

input:focus,
select:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
}

.filters-extended {
  margin-top: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inline-check {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  font-weight: 600;
}

.inline-check input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.collection-strip {
  margin-top: 0.95rem;
}

.collection-strip .chip-row {
  width: 100%;
}

.chip-select {
  border: 1px solid var(--panel-border);
  cursor: pointer;
}

.chip-active {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #ffffff 30%));
  color: #fff;
}

.layout-two-col {
  grid-template-columns: 2.05fr 0.95fr;
  align-items: start;
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
}

#detailMeta {
  position: sticky;
  top: 86px;
  align-self: start;
}

.feature-band {
  grid-template-columns: 1.15fr 0.85fr;
}

.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tabs-grid,
.card-grid,
.video-grid,
.stat-cards {
  display: grid;
  gap: 1rem;
}

.tabs-grid,
.video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid,
.stat-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tab-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.tab-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #d8ebff, #edf6ff);
}

.tab-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9, 30, 52, 0.35));
}

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

.post-hero {
  aspect-ratio: 16 / 8;
  min-height: 180px;
  max-height: 440px;
}

.tab-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.05rem 1.12rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  background: linear-gradient(135deg, rgba(23, 156, 144, 0.15), rgba(255, 255, 255, 0.94));
  color: color-mix(in srgb, var(--accent) 72%, #0b2037 28%);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.tab-meta,
.mini-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.tab-card h3 {
  margin: 0.32rem 0 0.55rem;
  font-size: 1.24rem;
}

.tab-card p,
.card p,
.widget p,
.info-panel p,
.video-card p,
.promo-card p,
.spotlight-card p {
  color: #4e6378;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--highlight), var(--accent));
  opacity: 0.95;
}

.card strong {
  font-family: "Space Grotesk", sans-serif;
}

.card h3 {
  font-size: 1.18rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.card p {
  color: #4e6378;
  min-height: 44px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(8, 24, 44, 0.17);
  border-color: color-mix(in srgb, var(--accent) 33%, transparent);
}

.card .btn-card-action,
.tab-card .btn-card-action {
  margin-top: 0;
}

.progress-page,
.progress-main-column {
  display: grid;
  gap: 1rem;
}

.progress-layout {
  align-items: start;
}

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

.progress-stage-card h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.75rem;
}

.progress-song-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.progress-song-list li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(15, 39, 65, 0.1);
}

.progress-song-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.progress-song-list a,
.progress-song-list strong {
  font-weight: 700;
  color: var(--ink);
}

.progress-song-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.progress-empty-li {
  color: var(--muted);
}

.progress-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.progress-status-btn {
  min-width: 128px;
}

.progress-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.request-form {
  display: grid;
  gap: 0.9rem;
}

.request-form label {
  display: grid;
  gap: 0.32rem;
}

.request-form textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  font: inherit;
}

.similar-song-groups {
  display: grid;
  gap: 0.9rem;
}

.similar-song-main-head {
  margin-bottom: 0.95rem;
}

.similar-song-main-head h3 {
  margin-bottom: 0.2rem;
}

.similar-song-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.similar-song-card p {
  min-height: 44px;
}

.similar-song-group h4 {
  margin: 0 0 0.45rem;
  font-size: 0.96rem;
  color: var(--ink);
}

.similar-song-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.similar-song-list li {
  display: grid;
  gap: 0.18rem;
}

.similar-song-list a {
  font-weight: 700;
  color: var(--ink);
}

.similar-song-reason,
.similar-song-empty {
  color: var(--muted);
  font-size: 0.88rem;
}

.card > .btn-card-action {
  margin-top: auto;
}

.tab-card p,
.card p {
  margin-bottom: 0.95rem;
}

.card-actions {
  margin-top: auto;
  padding-top: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  color: color-mix(in srgb, var(--accent) 75%, #0b2037 25%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(223, 244, 241, 0.94)),
    rgba(223, 244, 241, 0.74);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 18px rgba(23, 156, 144, 0.1);
}

.chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 36%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 22px rgba(23, 156, 144, 0.15);
}

.chip-verified {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  background: linear-gradient(180deg, rgba(230, 251, 248, 0.96), rgba(216, 246, 241, 0.96));
  color: color-mix(in srgb, var(--accent) 74%, #0b2037 26%);
}

.chip-rating {
  border-color: color-mix(in srgb, var(--brand) 34%, transparent);
  background: linear-gradient(180deg, rgba(255, 244, 229, 0.96), rgba(255, 236, 210, 0.96));
  color: color-mix(in srgb, var(--brand) 76%, #0b2037 24%);
}

.info-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 255, 0.9)),
    var(--surface);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
}

.video-card .body {
  padding-top: 0.9rem;
}

.sidebar {
  display: grid;
  gap: 1rem;
}

.widget {
  background: rgba(255, 255, 255, 0.9);
}

.sidebar-search,
.inline-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.sidebar-link {
  font-weight: 700;
}

.post-card {
  overflow: hidden;
  padding: 0;
}

.post-content {
  padding: 1.3rem;
}

.post-content pre {
  font-size: calc(0.96rem * var(--practice-font-scale, 1));
}

.post-content.practice-dark {
  background: linear-gradient(180deg, rgba(9, 21, 36, 0.98), rgba(12, 30, 49, 0.96));
  color: #e6eff9;
}

.post-content.practice-dark p,
.post-content.practice-dark .tab-meta,
.post-content.practice-dark .mini-meta,
.post-content.practice-dark .detail-intro span {
  color: rgba(219, 233, 248, 0.82);
}

.post-content.practice-dark .detail-intro .stat,
.post-content.practice-dark .tab-block pre,
.post-content.practice-dark .chord-diagrams-block {
  background: rgba(18, 39, 60, 0.86);
  border-color: rgba(207, 224, 244, 0.2);
  color: #eef5ff;
}

.post-content.left-handed .chord-diagram .fretboard,
.post-content.left-handed .chord-diagram .chord-markers {
  transform: scaleX(-1);
}

.post-content h1 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.detail-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.1rem;
}

.detail-actions-row {
  margin: 0.35rem 0 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.practice-bar {
  margin: 0.2rem 0 1rem;
  padding: 0.8rem;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 0.6rem;
}

.practice-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.practice-group input[type="range"] {
  max-width: 210px;
  min-width: 140px;
}

.practice-autoscroll .chip {
  min-width: 56px;
}

.post-content.practice-dark .practice-bar {
  background: rgba(14, 33, 53, 0.88);
  border-color: rgba(220, 235, 255, 0.2);
}

.media-sync-block {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.9rem;
}

.video-sync-frame iframe {
  width: 100%;
  border: 0;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
}

.lyric-follow-controls {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.lyric-follow-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.lyric-line {
  text-align: left;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 0.55rem 0.68rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.lyric-line.active {
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 68%, #ffffff 32%);
}

.tool-group {
  display: grid;
  gap: 0.5rem;
}

.tool-group hr {
  margin: 0.6rem 0;
}

.setlist-preview-list {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.setlist-preview-list li {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.5rem 0.6rem;
  display: grid;
  gap: 0.08rem;
}

.setlist-preview-list li strong {
  font-size: 0.9rem;
}

.setlist-preview-list li span {
  color: var(--muted);
  font-size: 0.8rem;
}

#sidebarSetlistsList li span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.tuner-readout {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

#tunerNoteText {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
}

#tunerCentsText {
  color: var(--muted);
}

.post-content.practice-dark .media-sync-block {
  background: rgba(14, 32, 52, 0.9);
  border-color: rgba(220, 235, 255, 0.2);
}

.post-content.practice-dark .lyric-line {
  background: rgba(20, 45, 70, 0.85);
  border-color: rgba(220, 235, 255, 0.22);
  color: #e7f1fc;
}

.post-content.practice-dark .lyric-line.active {
  background: rgba(27, 78, 94, 0.95);
}

.home-tuner-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 200, 93, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 249, 255, 0.92));
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.home-tuner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.home-tuner-head h3 {
  margin: 0.25rem 0 0.2rem;
}

.home-tuner-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.85rem;
}

.home-tuner-meter {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem;
}

.meter-track {
  position: relative;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(90deg, rgba(241, 116, 59, 0.2), rgba(23, 156, 144, 0.2), rgba(241, 116, 59, 0.2));
  overflow: hidden;
}

.meter-center {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(11, 32, 55, 0.75);
}

.meter-needle {
  --needle-shift: 0;
  position: absolute;
  top: 8px;
  left: 50%;
  width: 2px;
  height: 40px;
  background: #102741;
  transform: translateX(calc(-50% + (var(--needle-shift) * 1%)));
  transition: transform 100ms linear;
}

.meter-scale {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.home-tuner-readout {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.85rem;
  display: grid;
  gap: 0.35rem;
}

.readout-note {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.readout-status {
  font-weight: 700;
}

.readout-diff {
  color: var(--muted);
  font-size: 0.88rem;
}

.tuner-string-row {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.tuner-string-btn {
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-radius: 12px;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tuner-string-btn.active {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 64%, #ffffff 36%);
}

.sidebar-tuner-panel {
  display: grid;
  gap: 0.55rem;
}

.sidebar-tuner-panel .tuner-readout {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  background: rgba(255, 255, 255, 0.88);
}

.sidebar-tuner-panel .tuner-readout span:first-child {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.sidebar-tuner-panel .meter-track {
  height: 40px;
}

.sidebar-tuner-panel .meter-needle {
  top: 6px;
  height: 28px;
}

.sidebar-tuner-strings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.sidebar-tuner-strings .tuner-string-btn {
  min-height: 38px;
  font-size: 0.83rem;
}

body.site-theme-dark .home-tuner-panel,
body.site-theme-dark .home-tuner-meter,
body.site-theme-dark .home-tuner-readout,
body.site-theme-dark .meter-track,
body.site-theme-dark .tuner-string-btn,
body.site-theme-dark .sidebar-tuner-panel .tuner-readout {
  background: rgba(14, 34, 54, 0.92);
  border-color: rgba(214, 229, 248, 0.2);
  color: #e5f0fb;
}

body.site-theme-dark .setlist-preview-list li {
  background: rgba(14, 34, 54, 0.92);
  border-color: rgba(214, 229, 248, 0.2);
}

body.site-theme-dark .meter-center,
body.site-theme-dark .meter-needle {
  background: #f0f6ff;
}

.tuner-page {
  margin-top: 0.4rem;
}

.tuner-stage {
  border-radius: 24px;
  border: 1px solid rgba(179, 213, 247, 0.22);
  background:
    linear-gradient(rgba(193, 223, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 223, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 30% 0%, rgba(28, 193, 162, 0.2), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(241, 116, 59, 0.18), transparent 40%),
    linear-gradient(180deg, #0a1422 0%, #101f34 100%);
  background-size: 26px 26px, 26px 26px, auto, auto, auto;
  box-shadow: 0 26px 48px rgba(5, 14, 28, 0.42);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  min-height: 680px;
  padding: clamp(0.8rem, 1.5vw, 1.2rem);
}

.tuner-preset-panel {
  border: 1px solid rgba(212, 231, 252, 0.16);
  border-radius: 18px;
  background: rgba(10, 20, 34, 0.72);
  padding: 0.9rem;
  color: #e5f0fb;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  max-height: 100%;
  overflow-y: auto;
}

.tuner-preset-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
}

.tuner-preset-panel .mini-meta {
  color: rgba(225, 239, 255, 0.84);
}

.tuner-preset-list {
  display: grid;
  gap: 0.52rem;
}

.tuner-preset-btn {
  width: 100%;
  text-align: left;
  font: inherit;
  color: #e6f2ff;
  border: 1px solid rgba(220, 236, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.62rem 0.68rem;
  cursor: pointer;
  display: grid;
  gap: 0.16rem;
}

.tuner-preset-btn strong {
  font-size: 0.95rem;
}

.tuner-preset-btn span {
  font-size: 0.82rem;
  color: rgba(224, 240, 255, 0.86);
}

.tuner-preset-btn:hover,
.tuner-preset-btn.active {
  border-color: rgba(81, 229, 197, 0.7);
  background: rgba(81, 229, 197, 0.18);
}

.tuner-preset-btn:focus-visible,
.tuner-target-btn:focus-visible {
  outline: 2px solid rgba(100, 236, 205, 0.92);
  outline-offset: 2px;
}

.tuner-main {
  border: 1px solid rgba(212, 231, 252, 0.14);
  border-radius: 20px;
  background: rgba(7, 16, 29, 0.56);
  padding: 1rem;
  color: #f3f8ff;
  display: grid;
  gap: 0.9rem;
  backdrop-filter: blur(2px);
}

.tuner-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.tuner-top-row h1 {
  margin: 0.2rem 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 1.8vw, 2rem);
}

.tuner-top-row .mini-meta {
  color: rgba(229, 241, 255, 0.88);
}

.tuner-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.tuner-auto-toggle {
  color: #dff2ff;
}

.tuner-string-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.48rem;
}

.tuner-target-btn {
  border: 1px solid rgba(222, 238, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ecf5ff;
  min-height: 50px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-content: center;
  line-height: 1.08;
}

.tuner-target-btn small {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(229, 243, 255, 0.76);
}

.tuner-target-btn:hover,
.tuner-target-btn.active {
  border-color: rgba(81, 229, 197, 0.7);
  background: rgba(81, 229, 197, 0.22);
  color: #ffffff;
}

.tuner-main-visual {
  display: grid;
  grid-template-columns: 120px minmax(260px, 460px) 120px;
  justify-content: center;
  gap: 0.75rem;
  min-height: 390px;
}

.tuner-string-column {
  display: grid;
  align-content: center;
  gap: 0.8rem;
}

.tuner-note-pill {
  border: 1px solid rgba(222, 238, 255, 0.22);
  border-radius: 999px;
  background: rgba(24, 38, 57, 0.92);
  color: #edf6ff;
  min-height: 58px;
  display: grid;
  place-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tuner-note-pill.active {
  border-color: rgba(81, 229, 197, 0.76);
  background: rgba(41, 85, 74, 0.9);
}

.tuner-headstock {
  position: relative;
  border-radius: 130px 130px 28px 28px;
  border: 2px solid rgba(227, 234, 240, 0.38);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(180deg, #94603a 0%, #6b341a 42%, #4f2411 100%);
  box-shadow: inset 0 0 0 2px rgba(42, 19, 8, 0.65), 0 20px 36px rgba(0, 0, 0, 0.35);
  padding: 1rem 1rem 1.2rem;
  display: grid;
  align-content: space-between;
}

.tuner-headstock-top {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(233, 238, 245, 0.7);
  margin: -72px auto 0;
  background: rgba(7, 14, 24, 0.72);
}

.tuner-strings {
  position: absolute;
  left: 0;
  right: 0;
  top: 80px;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
}

.tuner-strings span {
  margin: 0 auto;
  width: 2px;
  background: linear-gradient(180deg, rgba(241, 246, 253, 0.78), rgba(204, 212, 223, 0.6));
}

.tuner-status-display {
  position: relative;
  margin-top: auto;
  border: 1px solid rgba(233, 241, 250, 0.28);
  border-radius: 16px;
  background: rgba(7, 15, 27, 0.72);
  padding: 0.72rem;
  display: grid;
  gap: 0.22rem;
  text-align: center;
}

.tuner-detected-note {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
  line-height: 1;
}

.tuner-detected-frequency {
  font-weight: 700;
  color: rgba(219, 237, 255, 0.9);
}

.tuner-detected-state {
  font-size: 0.9rem;
  color: rgba(216, 234, 255, 0.86);
}

.tuner-meter-block {
  border: 1px solid rgba(220, 236, 255, 0.16);
  border-radius: 16px;
  background: rgba(7, 16, 29, 0.72);
  padding: 0.72rem;
}

.tuner-page-meter-track {
  height: 60px;
  background: linear-gradient(
    90deg,
    rgba(241, 116, 59, 0.34),
    rgba(109, 146, 255, 0.36),
    rgba(81, 229, 197, 0.34),
    rgba(241, 116, 59, 0.34)
  );
  border-color: rgba(215, 235, 255, 0.24);
}

.tuner-page-meter-track .meter-center {
  background: rgba(229, 242, 255, 0.95);
}

.tuner-page-meter-track .meter-needle {
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.52);
}

.tuner-meter-scale {
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  font-size: 0.78rem;
  color: rgba(218, 235, 255, 0.8);
}

.tuner-meter-scale span:nth-child(3) {
  text-align: center;
}

.tuner-meter-scale span:nth-child(4),
.tuner-meter-scale span:nth-child(5) {
  text-align: right;
}

.tuner-meter-label {
  margin: 0.4rem 0 0;
  color: rgba(224, 239, 255, 0.9);
  font-weight: 600;
  text-align: center;
}

body.site-theme-dark .tuner-stage {
  border-color: rgba(205, 229, 255, 0.28);
  box-shadow: 0 28px 52px rgba(3, 10, 22, 0.54);
}

body.site-theme-dark .tuner-main,
body.site-theme-dark .tuner-preset-panel,
body.site-theme-dark .tuner-meter-block {
  border-color: rgba(226, 240, 255, 0.24);
}

body.site-theme-dark .tuner-preset-btn,
body.site-theme-dark .tuner-target-btn,
body.site-theme-dark .tuner-note-pill {
  border-color: rgba(227, 242, 255, 0.26);
}

.metronome-page {
  margin-top: 0.4rem;
}

.metronome-stage {
  border-radius: 24px;
  border: 1px solid rgba(179, 213, 247, 0.22);
  background:
    linear-gradient(rgba(193, 223, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 223, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 22% 0%, rgba(28, 193, 162, 0.2), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(241, 116, 59, 0.18), transparent 40%),
    linear-gradient(180deg, #0a1422 0%, #101f34 100%);
  background-size: 26px 26px, 26px 26px, auto, auto, auto;
  box-shadow: 0 26px 48px rgba(5, 14, 28, 0.42);
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1rem;
  min-height: 620px;
  padding: clamp(0.8rem, 1.5vw, 1.2rem);
}

.metronome-control-panel {
  border: 1px solid rgba(212, 231, 252, 0.16);
  border-radius: 18px;
  background: rgba(10, 20, 34, 0.72);
  padding: 1rem;
  color: #e5f0fb;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.metronome-control-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
}

.metronome-control-panel .mini-meta {
  color: rgba(225, 239, 255, 0.84);
}

.metronome-bpm-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
}

.metronome-bpm-box {
  border: 1px solid rgba(212, 231, 252, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  min-height: 72px;
  display: grid;
  place-content: center;
  gap: 0.1rem;
}

.metronome-bpm-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  line-height: 1;
  text-align: center;
  color: #ffffff;
}

.metronome-bpm-label {
  font-size: 0.8rem;
  color: rgba(225, 239, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metronome-control-grid {
  display: grid;
  gap: 0.7rem;
}

.metronome-control-grid label {
  display: grid;
  gap: 0.4rem;
}

.metronome-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem;
}

.metronome-visual-panel {
  border: 1px solid rgba(212, 231, 252, 0.14);
  border-radius: 20px;
  background: rgba(7, 16, 29, 0.56);
  padding: 1rem;
  color: #f3f8ff;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
}

.metronome-dial {
  width: min(380px, 74vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(222, 238, 255, 0.26);
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(12, 30, 49, 0.92), rgba(8, 20, 34, 0.96));
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.03),
    0 22px 42px rgba(0, 0, 0, 0.38);
  display: grid;
  place-items: center;
  transform: scale(1);
}

.metronome-dial.pulse {
  transform: scale(1.02);
  box-shadow:
    inset 0 0 0 8px rgba(81, 229, 197, 0.15),
    0 28px 56px rgba(20, 150, 125, 0.38);
}

.metronome-dial-inner {
  width: 70%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(222, 238, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.25rem;
}

.metronome-dial-bpm {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1;
}

.metronome-dial-sub {
  color: rgba(225, 239, 255, 0.84);
  font-size: 0.9rem;
}

.metronome-beat-dots {
  display: grid;
  grid-auto-flow: column;
  gap: 0.5rem;
}

.metronome-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(222, 238, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metronome-dot.active {
  background: rgba(81, 229, 197, 0.94);
  border-color: rgba(81, 229, 197, 0.92);
  box-shadow: 0 0 14px rgba(81, 229, 197, 0.56);
}

.metronome-status {
  margin: 0;
  color: rgba(226, 240, 255, 0.9);
  font-weight: 600;
}

body.site-theme-dark .metronome-stage {
  border-color: rgba(205, 229, 255, 0.28);
  box-shadow: 0 28px 52px rgba(3, 10, 22, 0.54);
}

body.site-theme-dark .metronome-control-panel,
body.site-theme-dark .metronome-visual-panel,
body.site-theme-dark .metronome-bpm-box,
body.site-theme-dark .metronome-dial-inner {
  border-color: rgba(227, 242, 255, 0.26);
}

.learn-chords-page {
  margin-top: 0.4rem;
}

.learn-chords-stage {
  border-radius: 24px;
  border: 1px solid rgba(179, 213, 247, 0.22);
  background:
    linear-gradient(rgba(193, 223, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 223, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 22% 0%, rgba(28, 193, 162, 0.2), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(241, 116, 59, 0.18), transparent 40%),
    linear-gradient(180deg, #0a1422 0%, #101f34 100%);
  background-size: 26px 26px, 26px 26px, auto, auto, auto;
  box-shadow: 0 26px 48px rgba(5, 14, 28, 0.42);
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1rem;
  min-height: 680px;
  padding: clamp(0.8rem, 1.5vw, 1.2rem);
}

.learn-chords-filter-panel {
  border: 1px solid rgba(212, 231, 252, 0.16);
  border-radius: 18px;
  background: rgba(10, 20, 34, 0.72);
  padding: 1rem;
  color: #e5f0fb;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  position: sticky;
  top: 96px;
}

.learn-chords-filter-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
}

.learn-chords-filter-panel .mini-meta {
  color: rgba(225, 239, 255, 0.86);
}

.learn-chords-filter-grid {
  display: grid;
  gap: 0.6rem;
}

.learn-chords-filter-grid label {
  display: grid;
  gap: 0.36rem;
}

.learn-chords-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.learn-chip {
  border: 1px solid rgba(219, 236, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8f3ff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0.35rem 0.68rem;
  cursor: pointer;
}

.learn-chip:hover {
  border-color: rgba(81, 229, 197, 0.7);
  background: rgba(81, 229, 197, 0.18);
}

.learn-chords-results {
  border: 1px solid rgba(212, 231, 252, 0.14);
  border-radius: 20px;
  background: rgba(7, 16, 29, 0.56);
  padding: 1rem;
  color: #f3f8ff;
  display: grid;
  align-content: start;
  gap: 0.95rem;
}

.learn-chords-section {
  border: 1px solid rgba(216, 234, 253, 0.2);
  border-radius: 16px;
  background: rgba(8, 20, 34, 0.56);
  padding: 0.75rem;
  display: grid;
  gap: 0.7rem;
}

.learn-chords-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.learn-chords-section-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.04rem;
}

.learn-chords-section-head span {
  color: rgba(223, 239, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
}

.learn-chords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.75rem;
}

.learn-chords-grid .chord-diagram-card {
  min-height: 286px;
}

body.site-theme-dark .learn-chords-stage {
  border-color: rgba(205, 229, 255, 0.28);
  box-shadow: 0 28px 52px rgba(3, 10, 22, 0.54);
}

body.site-theme-dark .learn-chords-filter-panel,
body.site-theme-dark .learn-chords-results,
body.site-theme-dark .learn-chords-section {
  border-color: rgba(227, 242, 255, 0.24);
}

body.site-theme-dark .learn-chords-grid .chord-diagram-card {
  background: rgba(14, 34, 54, 0.92);
  border-color: rgba(214, 229, 248, 0.2);
  color: #e5f0fb;
}

body.site-theme-dark .learn-chords-grid .chord-diagram-card h4 {
  color: #edf6ff;
}

body.site-theme-dark .learn-chords-grid .chord-diagram-subtitle {
  color: rgba(217, 234, 255, 0.84);
}

body.site-theme-dark .learn-chords-grid .chord-diagram-badge {
  border-color: rgba(217, 234, 255, 0.28);
  background: rgba(42, 84, 124, 0.58);
  color: #eff7ff;
}

body.site-theme-dark .learn-chords-grid .string-marker,
body.site-theme-dark .learn-chords-grid .fret-start {
  color: rgba(216, 234, 255, 0.88);
}

body.site-theme-dark .learn-chords-grid .fretboard {
  background: rgba(15, 34, 54, 0.8);
}

body.site-theme-dark .learn-chords-grid .string-line,
body.site-theme-dark .learn-chords-grid .fret-line {
  background: rgba(219, 235, 255, 0.36);
}

.quality-rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.quality-report-form {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.6rem;
}

.detail-intro .stat {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
}

.detail-intro strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
}

.detail-intro span {
  color: var(--muted);
  font-size: 0.88rem;
}

.tab-block + .tab-block {
  margin-top: 1rem;
}

.tab-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  color: var(--accent);
}

.tab-block pre {
  margin: 0;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 1rem;
  overflow-x: auto;
}

.tab-block .pre-copy {
  white-space: pre-wrap;
  font-family: "Instrument Sans", sans-serif;
  line-height: 1.7;
}

.tab-block .pre-chord-sheet {
  white-space: break-spaces;
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.02rem;
  line-height: 1.55;
}

.tab-block .pre-tab,
.full-tabs {
  white-space: pre;
  font-family: Consolas, "Courier New", monospace;
  font-variant-ligatures: none;
  letter-spacing: 0;
  font-size: 0.96rem;
  line-height: 1.5;
}

.song-guide-block {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(23, 156, 144, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 255, 0.9));
  padding: 0.95rem;
}

.song-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.song-guide-card {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.7rem;
}

.song-guide-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.song-guide-line {
  margin: 0;
  line-height: 1.55;
}

.song-guide-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.2rem;
}

body.site-theme-dark .song-guide-block,
body.site-theme-dark .song-guide-card {
  background: rgba(14, 34, 54, 0.92);
  border-color: rgba(214, 229, 248, 0.2);
  color: #e5f0fb;
}

.chord-diagrams-block {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 200, 93, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 255, 0.84));
  padding: 0.95rem;
}

.chord-progression-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
}

.prog-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.34rem 0.74rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  background: rgba(255, 255, 255, 0.94);
  color: color-mix(in srgb, var(--ink) 82%, #ffffff 18%);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
}

.prog-arrow {
  color: color-mix(in srgb, var(--accent) 76%, #0b2037 24%);
  font-size: 0.85rem;
  font-weight: 700;
}

.chord-diagrams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 0.75rem;
}

.chord-diagram-card {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 255, 0.92)),
    rgba(255, 255, 255, 0.94);
  padding: 0.6rem 0.58rem 0.56rem;
  box-shadow: 0 8px 18px rgba(10, 33, 56, 0.08);
}

.chord-diagram-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(10, 33, 56, 0.14);
}

.chord-diagram-card h4 {
  margin: 0;
  text-align: center;
  font-size: 1.04rem;
  color: #0f2741;
  letter-spacing: 0;
}

.chord-diagram-subtitle {
  margin: 0.16rem 0 0;
  text-align: center;
  color: #506174;
  font-size: 0.75rem;
  line-height: 1.25;
}

.chord-diagram-badges {
  margin: 0.34rem 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.chord-diagram-badge {
  border: 1px solid rgba(29, 56, 83, 0.2);
  border-radius: 999px;
  background: rgba(220, 238, 255, 0.56);
  color: #17324f;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.14rem 0.42rem;
  line-height: 1.15;
  text-transform: capitalize;
}

.chord-diagram-missing p {
  margin: 0.4rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.chord-diagram {
  margin-top: 0.42rem;
}

.chord-markers {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  min-height: 18px;
  margin-bottom: 0.1rem;
}

.string-marker {
  text-align: center;
  font-size: 0.72rem;
  color: #4f5c69;
  font-weight: 700;
  line-height: 1;
}

.fretboard {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.string-line,
.fret-line {
  position: absolute;
  background: rgba(15, 39, 65, 0.45);
}

.string-line {
  top: 0;
  bottom: 0;
  width: 1.7px;
  left: calc((var(--x) * 20%));
  transform: translateX(-50%);
}

.fret-line {
  left: 0;
  right: 0;
  height: 1.5px;
  top: calc((var(--y) * 20%));
  transform: translateY(-50%);
}

.fret-line[style*="--y:0"] {
  height: 3.5px;
  background: rgba(15, 39, 65, 0.72);
}

.chord-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #303945, #1f2731);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 3px 7px rgba(7, 20, 34, 0.35);
  transform: translate(-50%, -50%);
}

.fret-start {
  display: block;
  margin-top: 0.18rem;
  min-height: 1rem;
  text-align: right;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}


.empty-state {
  padding: 1.35rem;
  text-align: center;
}

.pagination {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.page-btn {
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.9rem;
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.page-btn:hover:not([disabled]) {
  background: var(--tint-blue);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--highlight) 35%));
  color: #fff;
  border-color: transparent;
}

.page-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.2rem 0 1.5rem;
}

.footer-wrap {
  padding: 1.1rem 1.3rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(11, 32, 55, 0.98), rgba(19, 49, 78, 0.95));
  color: #e6ece8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.footer-wrap p {
  margin: 0;
}

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

.bullet-list li + li {
  margin-top: 0.7rem;
}

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

.spotlight-card {
  overflow: hidden;
  min-height: 100%;
}

.spotlight-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.spotlight-card .mini-meta {
  margin: 0.5rem 0 0.8rem;
}

.promo-card {
  background:
    radial-gradient(circle at top right, rgba(255, 200, 93, 0.23), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 247, 255, 0.95));
}

.stats-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.stats-card span {
  color: var(--muted);
}

.about-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.about-hero {
  padding: 1.5rem;
}

.about-checks li {
  position: relative;
  padding-left: 1.4rem;
}

.about-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

@keyframes fade-lift {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-panel,
  .hero-card,
  .home-showcase .card,
  .promo-card,
  .spotlight-card {
    animation: fade-lift 520ms ease both;
  }

  .home-showcase .card:nth-child(2) {
    animation-delay: 70ms;
  }

  .home-showcase .card:nth-child(3) {
    animation-delay: 120ms;
  }

  .home-showcase .card:nth-child(4) {
    animation-delay: 170ms;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .feature-band,
  .about-grid,
  .detail-layout,
  .layout-two-col,
  .split,
  .card-grid,
  .highlight-grid,
  .video-grid,
  .tabs-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .detail-intro,
  .stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    max-width: none;
  }

  .hero-card-head {
    flex-direction: column;
  }

  .home-tuner-grid {
    grid-template-columns: 1fr;
  }

  .tuner-string-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tuner-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .metronome-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tuner-preset-panel {
    max-height: none;
  }

  .tuner-preset-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tuner-main-visual {
    grid-template-columns: 100px minmax(220px, 380px) 100px;
  }

  .tuner-main {
    padding: 0.92rem;
  }

  .metronome-control-panel,
  .metronome-visual-panel {
    padding: 0.92rem;
  }

  .song-guide-grid {
    grid-template-columns: 1fr;
  }

  #detailMeta {
    position: static;
    top: auto;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.65rem;
    border-radius: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text {
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    order: 2;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 4;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    overflow: visible;
    padding-top: 0.25rem;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    white-space: normal;
    padding: 0.76rem 0.88rem;
    font-size: 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
  }

  .btn-small {
    display: none;
  }

  .header-tuner-host {
    display: none;
  }

  .theme-switch-label {
    display: none;
  }

  .theme-switch {
    margin-left: 0;
    justify-self: end;
    order: 3;
  }

  .theme-switch select {
    min-width: 82px;
    min-height: 38px;
    padding: 0.42rem 1.84rem 0.42rem 0.55rem;
    border-radius: 10px;
  }

  .brand {
    font-size: 1.08rem;
    gap: 0.58rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .header-tuner-popover {
    right: -8px;
    width: min(340px, calc(100vw - 24px));
  }

  .header-tuner-strings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tuner-preset-list {
    grid-template-columns: 1fr;
  }

  .tuner-string-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tuner-main-visual {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    justify-items: center;
    min-height: 0;
  }

  .tuner-string-column {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .tuner-string-column.right {
    order: 3;
  }

  .tuner-headstock {
    width: min(100%, 340px);
    min-height: 390px;
    order: 2;
  }

  .tuner-stage {
    padding: 0.72rem;
    border-radius: 20px;
  }

  .metronome-stage {
    padding: 0.72rem;
    border-radius: 20px;
  }

  .tuner-main {
    padding: 0.82rem;
  }

  .tuner-top-row h1 {
    font-size: 1.55rem;
  }

  .metronome-control-panel h2 {
    font-size: 1.5rem;
  }

  .tuner-note-pill {
    min-height: 50px;
    font-size: 1rem;
  }

  .tuner-detected-note {
    font-size: 1.8rem;
  }

  .metronome-action-row {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .hero-card,
  .page-head-panel,
  .post-content,
  .info-panel,
  .widget,
  .card,
  .video-card,
  .promo-card,
  .spotlight-card {
    padding: 1rem;
  }

  .hero-search,
  .sidebar-search,
  .inline-search {
    grid-template-columns: 1fr;
  }

  .sidebar-search .btn-square,
  .hero-search .btn,
  .inline-search .btn-square {
    width: 100%;
    min-height: 46px;
  }

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

  .practice-group {
    width: 100%;
  }

  .practice-group input[type="range"] {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

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

  .main-nav[hidden] {
    display: none;
  }

  body[data-page="chords"] .page-head-panel {
    padding: 1rem;
  }

  body[data-page="chords"] .page-head-panel h1 {
    font-size: 1.95rem;
  }

  body[data-page="chords"] .layout-two-col {
    gap: 0.9rem;
  }

  body[data-page="chords"] .chords-advanced-filters,
  body[data-page="chords"] .chords-control-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="chords"] .chords-control-filters .btn,
  body[data-page="chords"] .chords-control-filters .inline-check {
    width: 100%;
  }

  body[data-page="chords"] .collection-strip {
    margin-top: 0.8rem;
  }

  body[data-page="chords"] .collection-strip .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.18rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-page="chords"] .collection-strip .chip-row::-webkit-scrollbar {
    display: none;
  }

  body[data-page="chords"] #librarySummary {
    margin: 0.45rem 0 0.75rem;
    font-size: 0.84rem;
  }

  body[data-page="chords"] .sidebar {
    gap: 0.8rem;
  }

  body[data-page="chords"] .widget {
    padding: 0.95rem;
  }

  body[data-page="chords"] .widget-optional-mobile {
    display: none;
  }

  .nav-wrap.nav-open .nav-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-wrap.nav-open .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .nav-wrap.nav-open .nav-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 1.2rem;
  }

  .hero h1,
  .page-head h1,
  .post-content h1 {
    letter-spacing: -0.05em;
    font-size: 1.9rem;
    line-height: 1.15;
    word-break: break-word;
  }

  .hero-actions,
  .hero-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-link-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .hero-panel,
  .hero-card,
  .page-head-panel,
  .post-content,
  .info-panel,
  .widget,
  .card,
  .video-card,
  .promo-card,
  .spotlight-card {
    border-radius: 18px;
    padding: 0.9rem;
  }

  .tag,
  .chip {
    min-height: 38px;
    font-size: 0.84rem;
    padding: 0.46rem 0.78rem;
  }

  .hero-chip-link,
  .hero-card-actions .btn {
    width: 100%;
  }

  .hero-link-row a {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(228, 241, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
  }

  .tab-body {
    padding: 0.86rem 0.86rem 0.96rem;
  }

  .tab-card h3,
  .card h3 {
    font-size: 1.08rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .tab-card p,
  .card p {
    margin-bottom: 0.75rem;
  }

  .filters {
    gap: 0.6rem;
  }

  .filters-extended {
    margin-top: 0.6rem;
    gap: 0.6rem;
  }

  input,
  select,
  .inline-check,
  .btn,
  .btn-ghost,
  .btn-card-action {
    min-height: 44px;
  }

  .inline-check {
    width: 100%;
  }

  .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .page-btn {
    min-height: 40px;
    min-width: 40px;
  }

  .detail-actions-row .btn,
  .detail-actions-row .btn-ghost {
    width: 100%;
  }

  .post-hero {
    aspect-ratio: 16 / 10;
    max-height: 300px;
  }

  .section-head,
  .hero-card-head,
  .hero-mood-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .text-link {
    align-self: flex-start;
  }

  body[data-page="home"] .hero-grid {
    gap: 0.9rem;
  }

  body[data-page="home"] .hero-panel,
  body[data-page="home"] .hero-card {
    width: 100%;
  }

  body[data-page="home"] .hero-panel {
    padding: 0.95rem;
  }

  body[data-page="home"] .hero-card {
    padding: 0.95rem;
  }

  body[data-page="home"] .hero-trending-list {
    gap: 0.6rem;
  }

  body[data-page="home"] .hero-trending-link {
    padding: 0.82rem 0.9rem;
    border-radius: 16px;
  }

  body[data-page="home"] .hero-trending-title {
    font-size: 0.96rem;
  }

  body[data-page="home"] .hero-trending-sub {
    font-size: 0.84rem;
  }

  body[data-page="home"] .hero-card-actions {
    margin-top: 0.1rem;
  }

  body[data-page="home"] .home-showcase .container,
  body[data-page="home"] #home-requests .container {
    padding: 1rem;
    border-radius: 22px;
  }

  body[data-page="home"] #home-requests .section-head {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--panel-border);
  }

  body[data-page="home"] #home-requests .progress-layout {
    gap: 0.85rem;
  }

  body[data-page="home"] #home-requests .widget {
    padding: 0.9rem;
  }

  body[data-page="home"] #home-requests .progress-empty-actions {
    flex-direction: column;
  }

  body[data-page="home"] #home-requests .progress-empty-actions .btn,
  body[data-page="home"] #home-requests .progress-empty-actions .btn-ghost {
    width: 100%;
  }

  body[data-page="home"] .home-showcase .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  body[data-page="home"] .home-showcase .card {
    padding: 0.8rem;
    border-radius: 18px;
  }

  body[data-page="home"] .home-showcase .tag,
  body[data-page="home"] .home-showcase .chip {
    min-height: 32px;
    font-size: 0.74rem;
    padding: 0.32rem 0.56rem;
  }

  body[data-page="home"] .home-showcase .card h3 {
    font-size: 0.98rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.35em;
  }

  body[data-page="home"] .home-showcase .card p {
    margin-bottom: 0.62rem;
    font-size: 0.82rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.7em;
  }

  body[data-page="home"] .home-showcase .meta-row {
    gap: 0.42rem;
  }

  body[data-page="home"] .home-showcase .btn-card-action {
    width: 100%;
    min-height: 40px;
    padding: 0.68rem 0.78rem;
    font-size: 0.86rem;
  }

  body[data-page="tuner"] .tuner-stage {
    gap: 0.6rem;
  }

  body[data-page="tuner"] .tuner-main {
    order: 1;
  }

  body[data-page="tuner"] .tuner-preset-panel {
    order: 2;
    padding: 0.78rem;
  }

  body[data-page="tuner"] .tuner-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  body[data-page="tuner"] .tuner-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    width: 100%;
  }

  body[data-page="tuner"] .tuner-controls .btn,
  body[data-page="tuner"] .tuner-auto-toggle {
    width: 100%;
  }

  body[data-page="tuner"] .tuner-string-buttons {
    gap: 0.42rem;
  }

  body[data-page="tuner"] .tuner-target-btn {
    min-height: 44px;
  }

  body[data-page="tuner"] .tuner-note-pill {
    min-height: 42px;
    font-size: 0.94rem;
  }

  body[data-page="tuner"] .tuner-headstock {
    width: min(100%, 260px);
    min-height: 300px;
  }

  body[data-page="tuner"] .tuner-status-display {
    padding: 0.52rem;
  }

  body[data-page="tuner"] .tuner-detected-note {
    font-size: 1.48rem;
  }

  body[data-page="tuner"] .tuner-detected-state,
  body[data-page="tuner"] .tuner-meter-label,
  body[data-page="tuner"] .tuner-top-row .mini-meta,
  body[data-page="tuner"] .tuner-preset-panel .mini-meta {
    font-size: 0.82rem;
  }

  body[data-page="metronome"] .metronome-stage {
    gap: 0.6rem;
  }

  body[data-page="metronome"] .metronome-visual-panel {
    order: 1;
    padding: 0.85rem;
  }

  body[data-page="metronome"] .metronome-control-panel {
    order: 2;
    padding: 0.85rem;
  }

  body[data-page="metronome"] .metronome-bpm-row {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 0.45rem;
  }

  body[data-page="metronome"] .metronome-bpm-box {
    min-height: 64px;
  }

  body[data-page="metronome"] .metronome-bpm-value {
    font-size: 1.7rem;
  }

  body[data-page="metronome"] .metronome-control-grid {
    gap: 0.55rem;
  }

  body[data-page="metronome"] .metronome-dial {
    width: min(250px, 72vw);
  }

  body[data-page="metronome"] .metronome-dial-sub,
  body[data-page="metronome"] .metronome-status,
  body[data-page="metronome"] .metronome-control-panel .mini-meta {
    font-size: 0.82rem;
  }

  body[data-page="chords"] .tabs-filters {
    gap: 0.55rem;
  }

  body[data-page="chords"] .chords-advanced-filters,
  body[data-page="chords"] .chords-control-filters {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  body[data-page="chords"] .collection-strip .section-kicker {
    margin-bottom: 0.45rem;
  }

  body[data-page="chords"] .collection-strip .chip {
    flex: 0 0 auto;
  }

  body[data-page="chords"] .sidebar-search {
    grid-template-columns: 1fr;
  }

  body[data-page="chords"] .sidebar-search .btn-square {
    width: 100%;
  }

  body[data-page="chords"] .tabs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  body[data-page="chords"] .tab-thumb {
    aspect-ratio: 1 / 1;
  }

  body[data-page="chords"] .tab-body {
    padding: 0.72rem 0.72rem 0.82rem;
  }

  body[data-page="chords"] .tab-body > p {
    display: none;
  }

  body[data-page="chords"] .tag,
  body[data-page="chords"] .chip {
    min-height: 32px;
    font-size: 0.76rem;
    padding: 0.34rem 0.6rem;
    margin-bottom: 0.55rem;
  }

  body[data-page="chords"] .tab-card h3 {
    font-size: 0.96rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.3em;
  }

  body[data-page="chords"] .tab-meta,
  body[data-page="chords"] .mini-meta {
    font-size: 0.84rem;
  }

  body[data-page="chords"] .meta-row {
    gap: 0.42rem;
  }

  body[data-page="chords"] .card-actions {
    margin-top: auto;
  }

  body[data-page="chords"] .favorite-toggle {
    display: none;
  }

  body[data-page="chords"] .btn-card-action {
    width: 100%;
    min-height: 40px;
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
  }

  .metric-pill,
  .trust-pill {
    min-width: calc(50% - 0.33rem);
  }

  .tuner-stage {
    padding: 0.6rem;
    gap: 0.7rem;
  }

  .metronome-stage {
    padding: 0.6rem;
    gap: 0.7rem;
  }

  .tuner-main,
  .tuner-preset-panel,
  .tuner-meter-block {
    border-radius: 14px;
  }

  .metronome-control-panel,
  .metronome-visual-panel {
    border-radius: 14px;
  }

  .tuner-target-btn,
  .tuner-note-pill {
    min-height: 48px;
  }

  .tuner-main-visual {
    gap: 0.55rem;
  }

  .tuner-headstock {
    min-height: 350px;
    border-radius: 112px 112px 24px 24px;
  }

  .tuner-headstock-top {
    width: 76px;
    height: 76px;
    margin-top: -60px;
  }

  .tuner-status-display {
    padding: 0.58rem;
  }

  .tuner-detected-note {
    font-size: 1.62rem;
  }

  .metronome-dial {
    width: min(300px, 82vw);
  }

  .metronome-bpm-value {
    font-size: 1.7rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 16px, 1180px);
  }

  .nav-wrap {
    padding: 0.62rem 0.5rem;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .theme-switch select {
    min-width: 76px;
    min-height: 36px;
    padding: 0.38rem 1.64rem 0.38rem 0.48rem;
  }

  .nav-toggle {
    min-height: 38px;
    min-width: 38px;
    padding: 0.55rem 0.7rem;
  }

  .nav-toggle-label {
    display: none;
  }

  .main-nav a {
    padding: 0.7rem 0.78rem;
    font-size: 0.86rem;
  }

  .hero h1,
  .page-head h1,
  .post-content h1 {
    font-size: 1.72rem;
  }

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

  body[data-page="home"] .hero-panel,
  body[data-page="home"] .hero-card,
  body[data-page="home"] .home-showcase .container,
  body[data-page="home"] #home-requests .container {
    padding: 0.82rem;
    border-radius: 18px;
  }

  body[data-page="home"] .hero-search-note {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  body[data-page="home"] .hero-trending-link {
    padding: 0.75rem 0.82rem;
  }

  body[data-page="home"] .hero-card h3,
  body[data-page="home"] .section-head h2 {
    font-size: 1.08rem;
    line-height: 1.18;
  }

  body[data-page="home"] #home-requests .request-form {
    gap: 0.7rem;
  }

  body[data-page="home"] #home-requests .progress-song-list {
    gap: 0.55rem;
  }

  body[data-page="home"] .home-showcase .card-grid {
    gap: 0.6rem;
  }

  body[data-page="home"] .home-showcase .card {
    padding: 0.72rem;
  }

  body[data-page="home"] .home-showcase .card h3 {
    font-size: 0.9rem;
  }

  body[data-page="home"] .home-showcase .card p {
    font-size: 0.78rem;
  }

  body[data-page="home"] .home-showcase .tag,
  body[data-page="home"] .home-showcase .chip {
    font-size: 0.7rem;
    padding: 0.28rem 0.48rem;
  }

  body[data-page="chords"] .tabs-grid {
    gap: 0.6rem;
  }

  body[data-page="chords"] .tab-thumb {
    aspect-ratio: 1 / 1.02;
  }

  body[data-page="chords"] .tab-body {
    padding: 0.68rem 0.68rem 0.78rem;
  }

  body[data-page="chords"] .tab-card h3 {
    font-size: 0.9rem;
  }

  body[data-page="chords"] .tag,
  body[data-page="chords"] .chip {
    font-size: 0.72rem;
    padding: 0.3rem 0.52rem;
  }

  .widget h3,
  .tab-card h3,
  .card h3 {
    overflow-wrap: anywhere;
  }

  .metric-pill,
  .trust-pill {
    min-width: 100%;
  }

  .tuner-string-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tuner-string-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="tuner"] .tuner-headstock {
    width: min(100%, 230px);
    min-height: 270px;
  }

  body[data-page="tuner"] .tuner-headstock-top {
    width: 64px;
    height: 64px;
    margin-top: -50px;
  }

  body[data-page="metronome"] .metronome-dial {
    width: min(220px, 68vw);
  }

  body[data-page="metronome"] .metronome-bpm-row .page-btn {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 1100px) {
  .learn-chords-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .learn-chords-filter-panel {
    position: static;
    top: auto;
  }
}

@media (max-width: 760px) {
  .progress-stage-grid {
    grid-template-columns: 1fr;
  }

  .similar-song-card-grid {
    grid-template-columns: 1fr;
  }

  .progress-status-btn {
    min-width: 0;
    flex: 1 1 140px;
  }

  .learn-chords-filter-panel,
  .learn-chords-results {
    padding: 0.78rem;
  }

  .learn-chords-section-head {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .learn-chords-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learn-chip {
    min-height: 32px;
    font-size: 0.82rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  #detailMeta,
  .practice-bar,
  .media-sync-block,
  .detail-actions-row,
  .hero,
  .section-head {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .container,
  .detail-layout,
  .post-card {
    width: 100% !important;
    max-width: none !important;
    box-shadow: none !important;
    border: 0 !important;
    background: #ffffff !important;
  }

  .post-hero {
    display: none !important;
  }

  .post-content {
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .post-content h1 {
    font-size: 24pt !important;
    margin: 0 0 8pt !important;
  }

  .post-content pre,
  .tab-block pre {
    white-space: pre-wrap !important;
    border: 1px solid #d0d0d0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    page-break-inside: avoid;
  }

  .tab-block {
    page-break-inside: avoid;
  }
}
