:root {
  color-scheme: dark;
  --ground: #111012;
  --panel: #19181b;
  --panel-hover: #222024;
  --ink: #f5f1eb;
  --muted: #b0a9ad;
  --line: #373239;
  --accent: #fe603b;
  --accent-ink: #1b100b;
  --max-width: 1080px;
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; display: flex; flex-direction: column; background: var(--ground); color: var(--ink); }
main { flex: 1; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(var(--max-width), calc(100% - 72px)); margin-inline: auto; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.symbols { position: absolute; width: 0; height: 0; }
.icon { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.site-header { border-bottom: 1px solid #2a272d; }
.header-inner { height: 76px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; gap: 11px; align-items: center; font-size: 20px; font-weight: 850; letter-spacing: -.05em; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); border-radius: 6px; }
.site-nav { display: flex; gap: 32px; align-items: stretch; height: 100%; font-size: 14px; font-weight: 650; }
.site-nav a { position: relative; min-width: 48px; display: grid; place-items: center; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; height: 3px; bottom: -1px; left: 4px; right: 4px; background: var(--accent); }

.hero { min-height: 475px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 22px; position: relative; isolation: isolate; padding: 24px 0 28px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: .98; }
.hero-brand { color: var(--accent); font-family: "Arial Black", "Segoe UI", sans-serif; font-weight: 950; font-size: clamp(36px, 6vw, 79px); letter-spacing: -.09em; margin-bottom: 13px; }
.hero-title { display: inline-flex; align-items: end; font-size: clamp(66px, 9.2vw, 127px); letter-spacing: -.075em; font-weight: 900; white-space: nowrap; }
.title-dot { width: .135em; height: .135em; border-radius: 50%; background: var(--accent); display: inline-block; margin: 0 0 .1em .16em; }
.hero-subtitle { color: var(--muted); font-size: clamp(14px, 1.65vw, 17px); letter-spacing: .065em; margin: 26px 0 21px; }

.search-form { min-height: 65px; display: flex; align-items: center; gap: 14px; padding: 7px 7px 7px 17px; width: 100%; background: #1d1b1f; border: 1px solid #52494d; border-radius: 10px; box-shadow: 0 12px 32px #0003; transition: border-color 150ms; }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #fe603b25; }
.search-glyph { color: #f7b29c; }
.search-form input { flex: 1 1 auto; min-width: 0; width: 100%; height: 46px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search-form input::placeholder { color: #aaa3a6; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-submit { flex: none; min-width: 82px; height: 47px; border: 0; border-radius: 6px; padding: 0 18px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.search-submit:hover { background: #ff805e; }
.clear-button { display: grid; place-items: center; flex: none; width: 36px; height: 40px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.clear-button:hover { background: #302b31; color: var(--ink); }
.clear-button .icon { width: 18px; height: 18px; }

.record-art { height: min(36vw, 410px); aspect-ratio: 1; position: relative; justify-self: end; margin-right: 13px; pointer-events: none; }
.record-shadow { position: absolute; inset: 2% -12%; background: radial-gradient(ellipse, #f5522a32 0%, #e8442621 42%, transparent 70%); transform: rotate(-17deg); }
.record { position: absolute; inset: 6.8%; display: grid; place-items: center; overflow: hidden; isolation: isolate; border: 1px solid #4f3b3e; border-radius: 50%; transform: rotate(-15deg); background: repeating-radial-gradient(circle at center, #30303575 0px, #30303575 1px, transparent 1px, transparent 3.5px), conic-gradient(from 10deg, #181719 0deg, #08080a 53deg, #373135 91deg, #141317 113deg, #0a090c 175deg, #312a2d 238deg, #0d0c0e 265deg, #201d20 304deg, #181719 360deg); box-shadow: 0 16px 52px #000b, 0 0 44px #ff4d2122, inset 0 0 0 3px #141215, inset 0 0 0 5px #343036; }
.record-shine { position: absolute; inset: -1px; opacity: .65; border-radius: 50%; background: conic-gradient(from 40deg, transparent 0 23%, #aa6e5940 26%, transparent 31% 70%, #ce6d5836 74%, transparent 78%); z-index: 0; }
.record-label { z-index: 1; width: 30%; aspect-ratio: 1; display: grid; place-items: center; color: #21110d; border-radius: 50%; border: 1px solid #ff936d; background: repeating-radial-gradient(circle at center, #54241a31 0 1px, transparent 1px 7px), radial-gradient(circle, #ff865d, #fe5d36 65%, #d84625 100%); box-shadow: 0 0 0 5px #0c0b0e, 0 0 0 6px #5c3530; }
.record-letter { margin-top: -.06em; font-family: "Arial Black", sans-serif; font-weight: 950; font-size: clamp(26px, 6.3vw, 75px); line-height: 1; }
.record-orbit { position: absolute; border-radius: 50%; inset: 3.2%; border: 1px solid #ad5d525c; }
.orbit-outer { inset: .2%; border-color: #623d3e70; }
.orbit-inner { border-right-color: var(--accent); border-bottom-color: #fa6c514f; transform: rotate(-23deg); }
.record-point { width: 7px; height: 7px; position: absolute; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px #f75b3ba6; }
.point-top { left: 81%; top: 12%; }
.point-bottom { left: 18%; top: 86%; width: 5px; height: 5px; opacity: .66; }
.sound-bars { position: absolute; right: 2%; bottom: 8%; height: 37px; display: flex; align-items: center; gap: 3px; transform: rotate(-8deg); mask-image: linear-gradient(90deg, transparent, #000 22% 90%, transparent); }
.sound-bars i { width: 2px; height: var(--h, 10px); background: #ff7959; }
.sound-bars i:nth-child(3n) { --h: 25px; }
.sound-bars i:nth-child(4n) { --h: 16px; }
.sound-bars i:nth-child(5n) { --h: 32px; }

.library-entry { min-height: 107px; width: 100%; display: flex; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid #3c3438; border-radius: 10px; background: linear-gradient(100deg, #211b1c, #19181b 68%); transition: background 150ms, border-color 150ms; }
.library-entry:hover { background: #282023; border-color: #9b5242; }
.entry-icon { flex: none; display: grid; place-items: center; width: 51px; height: 51px; background: #39241f; color: #ff876d; border: 1px solid #5c312b; border-radius: 8px; }
.entry-icon .icon { width: 28px; height: 28px; }
.entry-copy { display: flex; flex-direction: column; min-width: 0; gap: 6px; flex: 1; }
.entry-copy strong { font-size: 21px; font-weight: 790; }
.entry-copy > span, .entry-total > span { color: var(--muted); font-size: 13px; }
.entry-total { display: flex; flex-direction: column; text-align: right; gap: 3px; white-space: nowrap; }
.entry-total strong { font-size: 25px; line-height: 1; font-weight: 820; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.entry-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #464045; border-radius: 50%; color: var(--accent); }
.entry-arrow .icon { width: 20px; height: 20px; }

.popular-section { padding: 19px 22px; margin-top: 14px; border-radius: 10px; border: 1px solid var(--line); background: #171619; }
.popular-heading { display: flex; align-items: center; gap: 9px; }
.popular-heading .icon { width: 19px; height: 19px; color: var(--accent); }
.popular-heading h2 { margin: 0; font-size: 18px; font-weight: 800; }
.popular-section p { margin: 7px 0 0 28px; color: var(--muted); font-size: 13px; }
.popular-section ul { margin-top: 12px; }

.catalog-panel { margin: 0 0 46px; scroll-margin-top: 18px; }
.catalog-heading { display: flex; justify-content: space-between; gap: 12px; align-items: end; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.catalog-heading h2 { margin: 0; font-size: clamp(27px, 3.5vw, 42px); line-height: 1.2; font-weight: 830; letter-spacing: -.055em; }
.catalog-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.quiet-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 42px; padding: 8px 12px; white-space: nowrap; border: 1px solid #474148; border-radius: 7px; background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 650; }
.quiet-button:hover:not(:disabled) { background: var(--panel-hover); border-color: #a05644; }
.quiet-button:disabled { color: #8c8187; opacity: .64; cursor: default; }
.quiet-button .icon { width: 17px; height: 17px; }
.letter-index { display: flex; flex-wrap: wrap; gap: 5px; padding: 16px 0 6px; }
.letter-button { display: grid; place-items: center; min-width: 32px; min-height: 40px; padding: 3px 7px; font-size: 13px; font-weight: 800; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--muted); }
.letter-button:disabled { opacity: .37; cursor: default; }
.letter-button:hover:not(:disabled) { border-color: var(--accent); color: var(--ink); }
.letter-button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.results-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 8px; font-size: 13px; color: var(--muted); }
.results-meta p { margin: 0; overflow-wrap: anywhere; }
#copy-hint { flex: none; }
.song-list, .song-group { display: grid; gap: 8px; }
.song-group + .song-group { margin-top: 8px; }
.song-group-title { margin: 7px 0 1px; color: var(--accent); font-size: 16px; font-weight: 850; }
.song-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.song-row { height: 100%; width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; min-height: 49px; padding: 9px 13px; background: var(--panel); border: 1px solid #332d33; border-radius: 7px; color: var(--ink); transition: background 130ms, border-color 130ms; }
.song-row:hover, .song-row:focus-visible { background: var(--panel-hover); border-color: #8b5546; }
.song-row .icon { width: 18px; height: 18px; }
.row-note { color: #e58772; }
.row-copy { margin-left: auto; color: var(--muted); }
.song-title { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; font-size: 15px; font-weight: 610; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
#page-number { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.empty-results, .catalog-error { padding: 23px 17px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }
.empty-results { margin: 0; }
.contact-card { min-height: 105px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: #171619; scroll-margin-top: 20px; }
.contact-copy h2 { margin: 0 0 5px; color: var(--ink); font-size: 18px; font-weight: 800; }
.contact-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.contact-copy strong { color: var(--ink); }
.contact-button { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 7px 13px; color: #ffd2c6; background: #30211f; border: 1px solid #633e35; border-radius: 7px; white-space: nowrap; font-size: 14px; }
.contact-button strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.contact-button:hover { color: var(--ink); border-color: var(--accent); }
.contact-button .icon { width: 17px; height: 17px; }

.site-footer { border-top: 1px solid #2a272d; margin-top: 59px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; color: var(--muted); font-size: 13px; }
.footer-brand { color: #e4dadd; font-weight: 850; font-size: 16px; letter-spacing: -.05em; }
.toast { position: fixed; z-index: 5; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; max-width: min(480px, calc(100% - 28px)); transform: translate(-50%, 6px); opacity: 0; pointer-events: none; border-radius: 7px; padding: 12px 16px; background: #292429; border: 1px solid #725347; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; transition: opacity 160ms, transform 160ms; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 920px) {
  .hero { min-height: 393px; gap: 13px; }
  .record-art { margin-right: 0; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 34px); }
  .header-inner { height: 61px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; }
  .site-nav { gap: 12px; }
  .site-nav a { min-height: 44px; }
  .hero { min-height: 0; padding: 43px 0 30px; display: block; }
  .hero-brand { font-size: clamp(38px, 11vw, 57px); margin-bottom: 10px; }
  .hero-title { font-size: clamp(56px, 14.3vw, 88px); }
  .hero-subtitle { font-size: 14px; margin: 19px 0 16px; letter-spacing: .035em; }
  .record-art { position: absolute; z-index: -1; width: clamp(100px, 33vw, 182px); height: auto; top: 29px; right: 0; opacity: .86; overflow: clip; }
  .record-letter { font-size: clamp(20px, 5vw, 34px); }
  .sound-bars { transform: scale(.65) rotate(-8deg); transform-origin: center right; height: 27px; }
  .search-form { min-height: 59px; gap: 8px; padding: 5px 5px 5px 12px; }
  .search-glyph { width: 20px; height: 20px; }
  .search-submit { min-width: 57px; height: 45px; padding-inline: 11px; font-size: 15px; }
  .clear-button { width: 30px; }
  .library-entry { min-height: 89px; gap: 10px; padding: 13px 11px; }
  .entry-icon { width: 43px; height: 43px; }
  .entry-icon .icon { width: 24px; height: 24px; }
  .entry-copy { gap: 4px; }
  .entry-copy strong { font-size: 18px; }
  .entry-copy > span, .entry-total > span { font-size: 11px; }
  .entry-total strong { font-size: 20px; }
  .entry-arrow { width: 33px; height: 33px; }
  .entry-arrow .icon { width: 16px; height: 16px; }
  .letter-index { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
  .letter-button { min-width: 0; min-height: 44px; padding: 0 2px; }
  .song-grid { grid-template-columns: 1fr; }
  .catalog-heading p { font-size: 13px; }
  .contact-card { align-items: flex-start; flex-direction: column; gap: 12px; min-height: auto; padding: 13px; }
  .contact-copy h2 { font-size: 16px; }
  .contact-copy p { font-size: 13px; }
  .popular-section { padding: 13px; }
  .popular-heading h2 { font-size: 16px; }
  .site-footer { margin-top: 40px; }
  .footer-inner { min-height: 56px; }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 26px); }
  .hero-title { font-size: 51px; }
  .hero-brand { font-size: 37px; }
  .site-nav { gap: 8px; }
  .site-nav a { min-width: 42px; }
  .search-form input { font-size: 16px; }
  .search-form { gap: 6px; padding-left: 9px; }
  .search-glyph { width: 16px; height: 16px; }
  .search-submit { min-width: 47px; padding-inline: 8px; }
  .entry-total strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
