:root {
  --blue: #1554a5;
  --blue-dark: #0e3e7f;
  --green: #25c83b;
  --text: #172033;
  --muted: #6d7890;
  --line: #e6eaf0;
  --surface: #ffffff;
  --bg: #f4f7fb;
  --shadow: 0 12px 40px rgba(24, 55, 95, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background: linear-gradient(180deg, #124d9e, #0c3d7d);
  color: #fff;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.15);
  font-size: 28px;
}
.brand-title { font-size: 20px; font-weight: 800; }
.brand-subtitle { margin-top: 2px; color: rgba(255,255,255,.72); font-size: 13px; }

.side-card {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
}
.side-label { color: rgba(255,255,255,.68); font-size: 13px; }
.side-number { margin-top: 2px; font-size: 56px; line-height: 1; font-weight: 850; }
.side-text { margin-top: 5px; color: rgba(255,255,255,.8); }
.tip {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(37,200,59,.15);
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.45;
}
.tip strong { color: #9dffab; }

.content { min-width: 0; padding: 24px; }
.header-poster {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}
.header-poster img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}

.hero { padding: 28px 4px 20px; }
.hero-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 { margin: 7px 0 8px; font-size: clamp(34px, 5vw, 58px); line-height: .98; letter-spacing: -.04em; }
.hero p { margin: 0 0 20px; max-width: 720px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.search-wrap {
  max-width: 720px;
  min-height: 56px;
  padding: 0 12px 0 18px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 8px 28px rgba(25,45,75,.06);
}
.search-icon { color: var(--muted); font-size: 27px; transform: rotate(-20deg); }
.search-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-wrap input::placeholder { color: #9aa3b3; }
.clear-btn { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #eef2f7; color: #68748a; font-size: 23px; line-height: 1; }
.clear-btn:hover { background: #e3e9f1; }

.songs-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 15px;
  border-bottom: 1px solid var(--line);
}
.panel-title { font-weight: 850; font-size: 18px; }
.panel-meta { margin-top: 3px; color: var(--muted); font-size: 13px; }
.ghost-btn { border: 1px solid var(--line); background: #fff; color: var(--blue); border-radius: 11px; padding: 9px 13px; font-weight: 700; }
.ghost-btn:hover { background: #f4f7fb; }

.song { border-bottom: 1px solid var(--line); }
.song:last-child { border-bottom: 0; }
.song-head {
  width: 100%; min-height: 76px; padding: 13px 20px;
  display: grid; grid-template-columns: 48px minmax(0,1fr) auto 24px; align-items: center; gap: 12px;
  text-align: left; border: 0; background: #fff; color: inherit;
}
.song-head:hover { background: #f8fbff; }
.song-num { color: #9aa5b5; font-weight: 800; font-variant-numeric: tabular-nums; }
.song-main { min-width: 0; }
.song-title { display: block; font-weight: 800; font-size: 16px; }
.song-artist { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.song-status { color: var(--green); font-size: 12px; font-weight: 800; white-space: nowrap; }
.song-status:empty { display: none; }
.chevron { color: #8490a2; font-size: 22px; transition: transform .2s ease; }
.song.open .chevron { transform: rotate(180deg); }
.lyrics { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; background: #fbfcfe; }
.song.open .lyrics { grid-template-rows: 1fr; }
.lyrics-inner { overflow: hidden; min-height: 0; padding: 0 80px; color: #303b4e; font-size: 16px; line-height: 1.7; }
.song.open .lyrics-inner { padding-top: 4px; padding-bottom: 24px; }
.lyrics-inner p { margin: 0 0 18px; }
.lyrics-inner p:last-child { margin-bottom: 0; }
.lyrics-note { padding: 18px; border-radius: 14px; background: #f1f4f8; color: var(--muted); font-size: 14px; line-height: 1.55; }
.lyrics-note code { color: var(--blue-dark); }
.empty { padding: 60px 20px; text-align: center; }
.empty-icon { font-size: 44px; color: var(--blue); }
.empty h2 { margin: 8px 0; }
.empty p { margin: 0; color: var(--muted); }
.footer { padding: 24px 4px 40px; color: #8791a3; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.footer code { color: var(--blue-dark); }

@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 18px; display: flex; align-items: center; gap: 12px; }
  .side-card, .tip { display: none; }
  .content { padding: 14px; }
  .header-poster { border-radius: 18px; }
}

@media (max-width: 600px) {
  .hero { padding: 22px 2px 16px; }
  h1 { font-size: 38px; }
  .hero p { font-size: 14px; }
  .panel-head { padding: 16px; }
  .song-head { grid-template-columns: 34px minmax(0,1fr) 20px; padding: 12px 14px; gap: 9px; }
  .song-status { display: none; }
  .lyrics-inner { padding-left: 48px; padding-right: 20px; font-size: 15px; }
  .song.open .lyrics-inner { padding-top: 0; }
}
