:root {
  color-scheme: light;
  --ink: #203b35;
  --muted: #4c6b60;
  --line: #cfe4d9;
  --paper: #ffffff;
  --surface: #f3fbf6;
  --deep: #16443b;
  --deep-2: #1d6e6a;
  --accent: #ffdb73;
  --accent-ink: #293c32;
  --link: #116b58;
  font: 16px/1.6 system-ui, "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(145deg, #e6f8f1 0%, #f6fbf5 46%, #eef8fb 100%);
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #083f30; }
:focus-visible { outline: 3px solid #087959; outline-offset: 3px; }
img { max-width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0 0 8px 8px;
  font-weight: 750;
}
.skip:focus { top: 0; }
.shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }

.site-header {
  background: linear-gradient(112deg, var(--deep), #175a4b 58%, var(--deep-2));
  color: #f4fff8;
  box-shadow: 0 3px 16px #194c3826;
}
.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.05em;
  text-decoration: none;
}
.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  font-weight: 700;
}
.header-nav > a { color: #d9f3e7; text-decoration: none; }
.header-nav > a:hover, .header-nav > a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #5a9583;
  border-radius: 8px;
  background: #0f4037;
}
.lang-switch a {
  padding: 3px 8px;
  border-radius: 5px;
  color: #d7f0e5;
  font-size: 12px;
  text-decoration: none;
}
.lang-switch a:hover { background: #1b5a4c; color: #fff; }
.lang-switch a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }

.hero { padding-block: clamp(34px, 6vw, 62px) 26px; }
.eyebrow {
  color: var(--link);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 {
  margin-top: 8px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.lead {
  max-width: 62ch;
  margin-top: 14px;
  color: #315b4e;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}
.data-note { margin-top: 12px; color: var(--muted); font-size: 13px; }

.search-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffffd9;
  box-shadow: 0 10px 30px #1c5c4620;
  backdrop-filter: blur(6px);
}
.search-form > label { display: block; font-size: 14px; font-weight: 800; }
.search-row { display: flex; gap: 8px; margin-top: 7px; }
.search-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid #8aa99b;
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
}
.search-row input::placeholder { color: #5a756a; }
.primary {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 22px;
  border: 1px solid #c9a331;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}
.primary:hover { background: #ffe58f; }
.search-hint { margin-top: 7px; color: var(--muted); font-size: 13px; }
.filter-row { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.filter-row label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-row select {
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid #aac7ba;
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
}
.ghost {
  min-height: 38px;
  padding: 4px 14px;
  border: 1px solid #aac7ba;
  border-radius: 7px;
  background: transparent;
  color: var(--link);
  font-weight: 700;
}
.ghost:hover { background: #e8f7ef; }

.results-head { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 10px; color: var(--muted); font-size: 13px; }
.song-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.song-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d3e6dc;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 2px 8px #275c4510;
}
.song-art {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: #e8f3ed;
}
.song-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.song-art.fallback {
  display: grid;
  place-items: center;
  background: hsl(var(--hue, 160) 44% 88%);
  color: hsl(var(--hue, 160) 38% 28%);
  font-size: 30px;
  font-weight: 850;
}
.song-body { min-width: 0; }
.song-title { font-size: 17px; line-height: 1.35; letter-spacing: -.015em; overflow-wrap: anywhere; }
.song-names, .song-artist { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.song-artist { color: #36594d; }
.alias-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-top: 7px; font-size: 12px; }
.alias-label { color: var(--muted); font-weight: 700; }
.alias-chip {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid #d5e6dc;
  border-radius: 999px;
  background: #f2faf6;
  color: #315b4e;
}
.alias-more { display: inline-block; font-size: 12px; }
.alias-more summary { cursor: pointer; color: var(--link); font-weight: 700; }
.alias-extra { position: absolute; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; max-width: 320px; margin-top: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 22px #1c4b3826; }
.history-note { margin-top: 6px; color: #7a4a18; font-size: 12px; font-weight: 700; }
.region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 9px; }
.region-cell {
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid #dcebe3;
  border-radius: 7px;
  background: #f7fcf9;
}
.region-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.region-name { font-size: 11px; font-weight: 800; color: #345b4d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region-badge { flex: 0 0 auto; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 800; background: #e8efeb; color: #465f55; }
.region-cell[data-state="playable"] { border-color: #b9e0c9; background: #f1fbf5; }
.region-cell[data-state="playable"] .region-badge { background: #d6f1e0; color: #14533d; }
.region-cell[data-state="removed"] { border-color: #ecd2c8; background: #fdf7f4; }
.region-cell[data-state="removed"] .region-badge { background: #f8e0d8; color: #7a2e22; }
.region-cell[data-state="upcoming"] { border-color: #eadfae; background: #fffdf2; }
.region-cell[data-state="upcoming"] .region-badge { background: #fff0c9; color: #664500; }
.region-detail { margin-top: 2px; color: #4f6a5f; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.chart-details { margin-top: 8px; overflow-x: auto; }
.chart-details summary { cursor: pointer; color: var(--link); font-size: 12px; font-weight: 700; }
.chart-table { width: 100%; min-width: 560px; margin-top: 6px; border-collapse: collapse; font-size: 11px; }
.chart-table th, .chart-table td { padding: 3px 6px; border-bottom: 1px solid #e3efe8; text-align: left; white-space: nowrap; }
.chart-table th { color: var(--muted); font-weight: 700; background: #f6fbf8; }
.chart-table .chart-status { color: #315b4e; }
.empty { margin-top: 14px; padding: 16px; border: 1px dashed #b9d2c5; border-radius: 10px; color: var(--muted); }
.more-row { display: flex; justify-content: center; margin-top: 14px; }
.more {
  min-height: 40px;
  padding: 6px 22px;
  border: 1px solid #9fc3b1;
  border-radius: 999px;
  background: #f4fbf7;
  color: var(--link);
  font-weight: 750;
}
.more:hover { background: #e5f6ed; }
.noscript { margin-top: 12px; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.feature-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #ffffffc4; }
.feature-card h2 { font-size: 16px; line-height: 1.4; }
.feature-card p { margin-top: 6px; color: #436356; font-size: 13px; }

.info-section { margin-top: 34px; }
.info-section h2 { font-size: 22px; letter-spacing: -.02em; }
.section-note { max-width: 66ch; margin-top: 5px; color: var(--muted); font-size: 13px; }
.removed-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}
.removed-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  padding: 8px 11px;
  border: 1px solid #d5e6dc;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
}
.removed-list a:hover { border-color: #8db9a4; background: #f2fbf6; }
.removed-list span { min-width: 0; overflow-wrap: anywhere; }
.removed-list time { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.alias-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.alias-cloud a {
  padding: 5px 13px;
  border: 1px solid #b9d8c8;
  border-radius: 999px;
  background: #f3fbf6;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.alias-cloud a:hover { background: var(--accent); border-color: #d0ac3c; color: var(--accent-ink); }
.faq-list { max-width: 800px; margin-top: 8px; }
.faq-list details { border-bottom: 1px solid #d9e9e0; }
.faq-list summary { padding: 12px 2px; cursor: pointer; font-weight: 750; }
.faq-list p { padding: 0 2px 14px; color: #3f6154; font-size: 14px; }
.site-footer { margin-top: 46px; border-top: 1px solid var(--line); background: #f4fbf7; color: var(--muted); font-size: 12px; }
.site-footer .shell { padding-block: 20px 30px; }
.source-links { margin-top: 6px; }
.source-links a { margin-right: 10px; }

@media (max-width: 900px) {
  .song-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 24px); }
  .header-inner { min-height: 58px; align-items: flex-start; padding-block: 10px; }
  .header-nav { font-size: 12px; gap: 6px 9px; }
  .hero { padding-top: 26px; }
  .search-section { padding: 14px; border-radius: 12px; }
  .search-row { flex-wrap: wrap; }
  .search-row input, .primary { min-height: 44px; }
  .search-row input { flex-basis: 100%; }
  .primary { flex: 1 1 auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .removed-list { grid-template-columns: 1fr; }
  .song-card { grid-template-columns: 76px minmax(0, 1fr); gap: 9px; padding: 10px; }
  .song-art { width: 76px; height: 76px; }
  .song-title { font-size: 16px; }
  .region-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .region-grid { grid-template-columns: 1fr; }
}
.region-source { display: inline-block; margin-top: .25rem; font-size: .75rem; }
.region-cell[data-state="uncertain"] .region-badge { color: #664308; background: #fff0cc; }
