/* Classical Music Hub — original stylesheet.
 * Design language: dark navbar, deep-purple hero bands, chip/badge taxonomy,
 * numbered ranking cards, teal primary accents (see lib palette below).
 */
:root {
  --nav-bg: #241f31;
  --hero-1: #4b2a6d;
  --hero-2: #38205a;
  --teal: #30a8b3;
  --teal-dark: #2694a0;
  --orange: #f09b3c;
  --gold: #e8b23c;
  --pink: #ec407a;
  --red: #e53950;
  --purple-chip: #ab47bc;
  --blue-chip: #1e88e5;
  --green-chip: #43a047;
  --navy-chip: #3949ab;
  --play-dark: #8e2432;
  --green-listen: #0d9d58;
  --text: #212121;
  --text-2: #555;
  --text-3: #8a8a8a;
  --line: #e4e4e4;
  --bg: #fafafa;
  --card: #ffffff;
  --radius: 5px;
  --font: 'Segoe UI', 'Helvetica Neue', 'Lato', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
button { font-family: inherit; }

/* ------------------------------------------------------------ top nav */
.topnav {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav-bg);
  box-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.topnav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 18px; height: 48px;
}
.brand img { display: block; border-radius: 50%; }
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  color: #fff; font-weight: 600; font-size: 13.5px; opacity: .92;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { text-decoration: none; opacity: 1; }
.nav-links a.active { border-bottom-color: var(--teal); color: #fff; opacity: 1; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-quiet { color: #fff; font-size: 13.5px; font-weight: 600; opacity: .92; }
.icon-btn {
  background: none; border: 0; color: #fff; cursor: pointer; padding: 6px;
  display: inline-flex; align-items: center; opacity: .92;
}
.icon-btn:hover { opacity: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; cursor: pointer; font-weight: 700; font-size: 13.5px;
  border-radius: 4px; padding: 8px 16px; line-height: 1.2;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn-pill { background: var(--teal); color: #fff; border-radius: 999px; padding: 6px 16px; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.85); }
.btn-outline { background: #fff; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-green { background: var(--green-listen); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-ghost { background: #eef6f7; color: var(--teal-dark); }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }

/* search panel */
.search-panel { background: #2d2740; border-top: 1px solid rgba(255,255,255,.08); }
.search-panel-inner { max-width: 720px; margin: 0 auto; padding: 12px 16px; position: relative; }
.search-panel input {
  width: 100%; padding: 11px 16px; font-size: 15px; border-radius: 4px;
  border: 2px solid var(--teal); outline: none; background: #fff; font-family: inherit;
}
.search-results { position: absolute; left: 16px; right: 16px; top: calc(100% - 4px);
  background: #fff; border-radius: 0 0 5px 5px; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  max-height: 420px; overflow: auto; }
.search-results:empty { display: none; }
.search-group { padding: 8px 14px 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); }
.search-item { display: flex; gap: 10px; align-items: center; padding: 8px 14px; color: var(--text); }
.search-item:hover { background: #f2fbfc; text-decoration: none; }
.search-item img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.search-item .si-icon { width: 34px; height: 34px; border-radius: 50%; background: #efe9f7;
  display: flex; align-items: center; justify-content: center; flex: none; }
.search-item b { font-size: 14px; display: block; }
.search-item small { color: var(--text-3); }
.search-empty { padding: 16px; color: var(--text-3); text-align: center; }

/* -------------------------------------------------------------- hero */
.hero {
  background:
    linear-gradient(115deg, rgba(59,32,88,.55), rgba(59,32,88,.85)),
    url('/img/hero-notes.svg') center/cover,
    linear-gradient(115deg, var(--hero-1), var(--hero-2));
  color: #fff;
  border-bottom: 4px solid rgba(255,255,255,.15);
}
.hero-inner { max-width: 1160px; margin: 0 auto; padding: 56px 20px 44px; }
.hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.hero .hero-sub { font-size: 22px; text-align: center; font-weight: 300; margin: 0 0 10px; }
.hero .hero-note { text-align: center; font-size: 14px; opacity: .9; margin: 0; }
.hero-note b { color: var(--gold); }

.page-hero { color: #fff; background:
  linear-gradient(115deg, rgba(59,32,88,.72), rgba(59,32,88,.9)),
  url('/img/hero-notes.svg') center/cover,
  linear-gradient(115deg, var(--hero-1), var(--hero-2));
}
.page-hero-inner { max-width: 1160px; margin: 0 auto; padding: 34px 20px 30px; }
.page-hero h1 { font-size: 30px; font-weight: 800; margin: 0; }
.page-hero .crumb { font-size: 14px; margin-bottom: 6px; color: rgba(255,255,255,.85); }
.page-hero .crumb a { color: var(--gold); font-weight: 700; }
.page-hero .facts { margin: 14px 0 4px; font-size: 14.5px; line-height: 1.7; }
.page-hero .facts b { font-weight: 700; }
.page-hero .facts .fact-link { color: var(--gold); font-weight: 700; }

/* feature blocks on home hero */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 42px;
  max-width: 640px; margin: 34px 0 0;
}
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature svg { flex: none; color: var(--orange); margin-top: 2px; }
.feature h3 { margin: 0 0 2px; font-size: 21px; }
.feature p { margin: 0; font-size: 13.5px; opacity: .92; line-height: 1.45; }

.hero-cols { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.hero-card {
  background: #fff; color: var(--text); border-radius: 6px; padding: 20px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.hero-card h3 { font-size: 17px; margin-bottom: 10px; }
.hero-card p { color: var(--text-2); font-size: 13.5px; margin: 0 0 12px; }
.hero-card .qc-btns { display: grid; gap: 8px; }

/* -------------------------------------------------------------- chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; cursor: pointer; color: #fff; font-weight: 700; font-size: 12.5px;
  padding: 5px 12px; border-radius: 4px; line-height: 1.3;
  background: var(--purple-chip);
}
.chip:hover { filter: brightness(1.1); text-decoration: none; }
.chip-any, .chip.on { background: var(--pink); }
.chip-cat { background: var(--purple-chip); }
.chip-style { background: #7e57c2; }
.chip-genre { background: var(--blue-chip); }
.chip-year { background: var(--green-chip); }
.chip-century { background: #00897b; }
.chip-composer { background: var(--navy-chip); }
.chip-listen { background: var(--green-listen); }
.chip-static { cursor: default; }
.chip-link { text-decoration: none; }

/* badges on list rows */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px; line-height: 1.5;
}
.badge svg { flex: none; }
.b-stars { background: var(--red); }
.b-genre { background: var(--blue-chip); }
.b-year { background: var(--green-chip); }
.b-composer { background: var(--navy-chip); }
.b-play { background: var(--play-dark); cursor: pointer; border: 0; font-family: inherit; }
.b-play:hover { filter: brightness(1.15); }
.b-type { background: var(--pink); }
.b-teal { background: var(--teal); }
.b-follow { background: #00897b; }

/* -------------------------------------------------------------- layout */
.app-main { min-height: 60vh; }
.container { max-width: 1160px; margin: 0 auto; padding: 26px 20px 60px; }
.container.narrow { max-width: 860px; }
.page-cols { display: grid; grid-template-columns: 130px minmax(0,1fr) 300px; gap: 26px; }
.page-cols.two { grid-template-columns: minmax(0,1fr) 300px; }
.side-nav { font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.side-nav a { color: var(--text-2); padding: 5px 10px; border-left: 3px solid transparent; font-weight: 600; }
.side-nav a.active { color: var(--teal-dark); border-left-color: var(--teal); background: #f2fbfc; }
.side-nav a:hover { text-decoration: none; color: var(--teal-dark); }
.side-nav .count { display: inline-block; background: var(--teal); color: #fff; font-size: 11px;
  border-radius: 3px; padding: 0 6px; margin-left: 6px; }

.section-head { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.section-head:first-child { margin-top: 0; }
.section-head h2 { font-size: 19px; margin: 0; }
.section-head h2 b { color: var(--teal-dark); }
.section-head .see-all { font-weight: 700; font-size: 14px; margin-left: auto; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.card-pad { padding: 16px 18px; }

/* ranked work rows */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .rk { font-weight: 800; color: var(--text); min-width: 20px; text-align: right; }
.rank-list .avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.rank-list .r-main { min-width: 0; flex: 1; }
.rank-list .r-title { font-weight: 700; font-size: 14.5px; color: var(--text); }
.rank-list .r-title a { color: var(--text); }
.rank-list .r-title a:hover { color: var(--teal-dark); }
.rank-list .r-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }

/* composer cards grid */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.person-card { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 14px 10px;
  text-align: center; transition: box-shadow .15s ease; }
.person-card:hover { box-shadow: 0 4px 14px rgba(30,30,60,.12); text-decoration: none; }
.person-card img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; }
.person-card .p-name { font-weight: 700; font-size: 13.5px; color: var(--text); margin-top: 8px; }
.person-card .p-years { color: var(--text-3); font-size: 12px; }
.person-card .p-meta { margin-top: 6px; display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }

/* list cards */
.lists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.list-card { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.list-card h3 { font-size: 15px; margin: 0; }
.list-card h3 a { color: var(--text); }
.list-card p { margin: 0; color: var(--text-2); font-size: 12.5px; flex: 1; }
.list-card .l-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* post cards */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 14px; }
.post-head { display: flex; gap: 10px; align-items: center; padding: 12px 16px; }
.post-head img, .post-head .pavatar { width: 36px; height: 36px; border-radius: 50%; }
.pavatar { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; flex: none; }
.post-head .p-name { font-weight: 700; color: var(--teal-dark); font-size: 13.5px; }
.post-head .p-date { color: var(--text-3); font-size: 12px; }
.post-body { padding: 0 16px 12px; border-left: 4px solid var(--teal); margin-left: 16px; }
.post-body h3 { margin: 0 0 6px; font-size: 19px; }
.post-body h3 a { color: var(--text); }
.post-body p { margin: 0; color: var(--text-2); font-size: 14px; }
.post-badges { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 12px; margin-left: 16px; border-left: 4px solid var(--teal); }
.post-foot { display: flex; align-items: center; gap: 18px; padding: 9px 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13px; }
.post-foot .spacer { flex: 1; }
.foot-btn { background: none; border: 0; cursor: pointer; color: var(--text-2); display: inline-flex; gap: 5px; align-items: center; font-size: 13px; padding: 2px 4px; }
.foot-btn:hover, .foot-btn.on { color: var(--pink); }

/* detail hero components */
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.stat-block { text-align: center; }
.stat-block .num { font-size: 26px; font-weight: 800; }
.stat-block .lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.composer-row { display: flex; gap: 20px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.composer-row img.portrait { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.85); }
.work-hero-facts { margin: 16px 0 0; font-size: 14.5px; line-height: 1.75; }
.work-hero-facts .fact-link { color: var(--gold); font-weight: 700; }
.wiki-btn { display: inline-block; margin-top: 10px; background: rgba(255,255,255,.92); color: #555;
  font-weight: 700; font-size: 12.5px; border-radius: 4px; padding: 5px 12px; }
.wiki-btn:hover { text-decoration: none; color: var(--text); }

.action-rail { position: absolute; right: 0; top: 8px; display: flex; flex-direction: column; gap: 8px; width: 210px; }
.page-hero-inner { position: relative; }
.action-rail .btn { width: 100%; }

.playlists-row { margin-top: 20px; }
.playlists-row h4 { font-size: 15px; margin: 0 0 8px; }

/* recording cards */
.rec-facts { display: grid; gap: 8px; margin-top: 10px; }
.rec-fact { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; }
.rec-fact .rf-label { border: 1.5px solid #26a69a; color: #26a69a; font-weight: 700; font-size: 12px;
  text-align: center; border-radius: 4px; padding: 4px 6px; }
.rec-fact .rf-value { background: #f1f1f1; color: #444; border-radius: 4px; padding: 6px 12px; font-size: 13.5px; }
.rec-watch { display: flex; justify-content: flex-end; margin-top: 12px; }
.watch-btn { display: inline-flex; align-items: center; gap: 6px; background: #e62117; color: #fff;
  font-weight: 700; font-size: 12.5px; border-radius: 4px; padding: 7px 14px; border: 0; cursor: pointer; }
.watch-btn:hover { filter: brightness(1.1); text-decoration: none; }

/* table-ish work rows on composer works tab */
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 14px 16px; margin-bottom: 18px; }
.filter-panel .fp-row { margin: 8px 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.filter-panel .fp-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); min-width: 120px; }

/* on this day */
.otd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.otd-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.otd-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.otd-row:last-child { border-bottom: 0; }
.otd-row .o-title { font-weight: 700; font-size: 14px; }
.otd-row .o-sub { color: var(--text-2); font-size: 12.5px; }
.otd-day { font-size: 13px; color: var(--text-2); margin: 4px 0 10px; }

/* player bar */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: var(--nav-bg); color: #fff;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; box-shadow: 0 -2px 12px rgba(0,0,0,.4);
}
.pl-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; display: inline-flex; }
.pl-btn:hover { color: var(--teal); }
.pl-main { background: var(--teal); border-radius: 50%; width: 36px; height: 36px; align-items: center; justify-content: center; }
.pl-main svg { margin-left: 1px; }
.pl-meta { min-width: 0; flex: 1; }
.pl-title { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-actions { display: flex; align-items: center; gap: 10px; }
.pl-external { border: 1.5px solid rgba(255,255,255,.7); color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 4px 12px; }
.pl-external:hover { text-decoration: none; background: rgba(255,255,255,.1); }
body.has-player { padding-bottom: 62px; }

/* video modal */
.video-modal { position: fixed; inset: 0; z-index: 90; background: rgba(10,8,16,.86);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal-box { position: relative; width: min(960px, 100%); aspect-ratio: 16/9; background: #000;
  border-radius: 8px; overflow: hidden; }
.video-modal-box iframe { width: 100%; height: 100%; border: 0; }
.video-close { position: absolute; top: -38px; right: 0; background: none; border: 0; color: #fff;
  font-size: 20px; cursor: pointer; }

/* comments */
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .pavatar { width: 32px; height: 32px; font-size: 13px; }
.comment .c-head { font-size: 12.5px; color: var(--text-3); }
.comment .c-head b { color: var(--teal-dark); }
.comment p { margin: 3px 0 0; font-size: 14px; }
.comment-form textarea, .form textarea, .form input[type=text], .form input[type=email], .form input:not([type]) {
  width: 100%; border: 1.5px solid #cfd8dc; border-radius: 4px; padding: 9px 12px;
  font-family: inherit; font-size: 14px; outline: none; resize: vertical;
}
.comment-form textarea:focus, .form textarea:focus, .form input:focus { border-color: var(--teal); }
.form-row { margin-bottom: 12px; }
.form label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.form .help { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.form .success { background: #e5f5eb; border: 1px solid #b5dfc5; color: #256a43; border-radius: 4px;
  padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }

/* notice boxes */
.notice { background: #fff8e8; border: 1px solid #f0dfae; color: #7a5b16; border-radius: 5px;
  padding: 10px 14px; font-size: 13.5px; margin: 0 0 16px; }
.notice.info { background: #eef6f7; border-color: #c9e4e8; color: #14606b; }

/* faq */
.faq-section { margin-bottom: 22px; }
.faq-section h3 { font-size: 16.5px; color: var(--teal-dark); margin-bottom: 6px; }
.faq-section p { margin: 0; color: var(--text-2); }
.faq-section a { color: var(--teal-dark); }

/* tv page */
.tv-wrap { position: fixed; inset: 0; z-index: 80; background: #0c0a12; display: flex; flex-direction: column; }
.tv-head { display: flex; align-items: center; gap: 14px; padding: 10px 18px; color: #fff; background: rgba(0,0,0,.5); }
.tv-head .t-title { font-weight: 700; }
.tv-head .t-sub { font-size: 12.5px; opacity: .8; }
.tv-frame { flex: 1; } .tv-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.tv-fallback { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; gap: 14px; text-align: center; padding: 30px; }

/* misc */
.empty { color: var(--text-3); text-align: center; padding: 30px 10px; font-size: 14px; }
.meta-line { color: var(--text-3); font-size: 12.5px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.inline-link { color: var(--teal-dark); font-weight: 700; }
.stars-btn.on { color: var(--pink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-list li:last-child { border-bottom: 0; }

/* footer */
.site-footer { background: #221d2e; color: #cbc7d6; margin-top: 40px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 34px 20px 10px;
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 26px; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.footer-col a { display: block; color: #cbc7d6; font-size: 13px; padding: 3px 0; }
.footer-col a:hover { color: #fff; }
.footer-brand { display: flex; gap: 12px; }
.footer-brand p { margin: 4px 0 0; font-size: 13px; }
.footer-brand strong { color: #fff; font-size: 15px; }
.footer-note { text-align: center; padding: 16px; font-size: 12px; opacity: .6; }

/* responsive */
@media (max-width: 1020px) {
  .hero-cols { grid-template-columns: 1fr; }
  .page-cols { grid-template-columns: minmax(0,1fr) 280px; }
  .page-cols .side-nav { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 4px 14px;
    border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .side-nav a { border-left: 0; border-bottom: 2px solid transparent; }
  .side-nav a.active { border-bottom-color: var(--teal); }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .action-rail { position: static; flex-direction: row; width: auto; margin-top: 16px; }
  .action-rail .btn { width: auto; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 48px; left: 0; right: 0; background: var(--nav-bg);
    flex-direction: column; gap: 0; padding: 6px 0 10px; box-shadow: 0 8px 18px rgba(0,0,0,.4); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 18px; }
  .nav-burger { display: block; }
  .nav-quiet { display: none; }
  .hero h1 { font-size: 32px; }
  .hero .hero-sub { font-size: 17px; }
  .feature-grid { grid-template-columns: 1fr; }
  .page-cols, .page-cols.two { grid-template-columns: 1fr; }
  .otd-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero-inner { padding: 36px 16px 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .rec-fact { grid-template-columns: 90px 1fr; }
}

/* 3DM 式文章内嵌播放器（B 站 iframe，16:9 平铺于正文流） */
.inline-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow, 0 2px 12px rgba(20, 12, 40, .12));
}
.inline-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.perf-hero-player { margin: 0 0 18px; }
.rec-card .inline-player { margin-top: 12px; }

/* 作曲家页：百度百科中文简介块（深紫 hero 内半透明卡片） */
.composer-bio {
  margin: 14px 0 4px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  backdrop-filter: blur(2px);
}
.composer-bio h4 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: .08em;
  opacity: .85;
}
.composer-bio p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .94);
}
.composer-bio .bio-src {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  opacity: .6;
}

/* 作品页：《音乐圣经》延伸阅读 */
.bible-ref {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-3, #8a7f9e);
}

/* -------------------------------------------------------------- mobile */
/* 长英文标题/编目号在窄屏不撑破布局 */
.r-title, .r-sub, .work-title, .rank-list .r-title, .page-hero h1,
.page-hero .facts, .composer-bio p, .rec-fact .rf-value, .meta-line {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .container { padding: 20px 14px 48px; }
  .hero-inner, .page-hero-inner { padding-left: 14px; padding-right: 14px; }
  .composer-row { gap: 14px; }
  .composer-row img.portrait { width: 84px; height: 84px; border-width: 2px; }
  .rec-fact { grid-template-columns: 84px 1fr; }
  .rec-fact .rf-value { padding: 6px 9px; }
  .btn { padding: 9px 15px; }
  .chip { padding: 7px 13px; font-size: 13px; }
  .section-head { flex-wrap: wrap; row-gap: 4px; }
  .card-pad { padding: 13px 13px; }
  .rank-list li { padding: 9px 10px; gap: 9px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 27px; }
  .hero .hero-sub { font-size: 15px; }
  .page-hero h1 { font-size: 24px; }
  .hero-inner { padding: 30px 12px 24px; }
  .page-hero-inner { padding: 24px 12px 20px; }
  .container { padding: 16px 12px 44px; }
  .footer-inner { grid-template-columns: 1fr; }
  .feature-grid { gap: 14px; }
  .feature h3 { font-size: 18px; }
  .composer-row img.portrait { width: 68px; height: 68px; }
  .stat-block .num { font-size: 21px; }
  /* 录音卡：注释行改为上下堆叠，长注释不挤压 */
  .rec-fact { grid-template-columns: 1fr; gap: 4px; }
  /* 交互按钮块级化，拇指可点 */
  .action-rail { flex-wrap: wrap; }
  .action-rail .btn { flex: 1 1 46%; text-align: center; }
  .qc-btns .btn, .btn-block { width: 100%; }
  /* 长编目号/标题兜底 */
  h1, h2, h3 { overflow-wrap: anywhere; }
  .section-head h2 { font-size: 17px; }
  .search-results { left: 8px; right: 8px; }
}

/* 首页双列（收藏最多作品 + 最受欢迎作曲家）：PC 双列，手机单列 */
.home-duo { grid-template-columns: 1.05fr 1fr; align-items: start; }

@media (max-width: 720px) {
  .grid-2.home-duo { grid-template-columns: 1fr; }
  .home-duo > div > .card { margin-bottom: 18px; }
  .people-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

/* -------------------------------------------------------------- 手机版封面 */
/* 维也纳海报封面：仅手机端显示，PC 首页保持原样。
   热区按海报 941x1672 的百分比定位，图片等比缩放时坐标始终贴合。 */
.m-cover-scope { margin: 0; }
.m-cover {
  position: relative;
  display: none;
  /* 图片未加载完也保留版面高度，热区不塌缩 */
  aspect-ratio: 941 / 1672;
  background: #1d1030;
  border-bottom: 3px solid rgba(255, 255, 255, .15);
}
.m-cover img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.m-hot {
  position: absolute;
  display: block;
  border-radius: 10px;
  transition: background .15s ease;
}
.m-hot:active { background: rgba(255, 255, 255, .18); }
.m-haydn     { left: 0%;   top: 49.5%; width: 32.5%; height: 28.5%; }
.m-mozart    { left: 33%;  top: 47.5%; width: 33%;   height: 30.5%; }
.m-beethoven { left: 67%;  top: 48.5%; width: 33%;   height: 29.5%; }
.m-baroque   { left: 3%;   top: 13%;   width: 21%;   height: 7%; }
.m-classical { left: 24%;  top: 12.3%; width: 20.5%; height: 6.5%; }
.m-vienna    { left: 26%;  top: 24.8%; width: 25.5%; height: 7%; }
.m-romantic  { left: 55%;  top: 9.8%;  width: 24%;   height: 6%; }
.m-modern    { left: 82%;  top: 13%;   width: 18%;   height: 7%; }

@media (max-width: 720px) {
  .m-cover { display: block; }
  /* 手机端首页：封面替代原有紫色 hero，封面下方内容照旧 */
  .m-cover-scope ~ .hero { display: none; }
}

/* -------------------------------------------------------------- 联系作者弹窗 */
.contact-dlg {
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: var(--card, #fff);
  color: var(--text, #2a2138);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  max-width: min(320px, 86vw);
}
.contact-dlg::backdrop { background: rgba(20, 12, 40, .6); }
.contact-inner { position: relative; padding: 22px 20px 18px; text-align: center; }
.contact-inner h3 {
  margin: 0 0 4px;
  font-size: 19px;
  color: var(--purple-chip, #5e35b1);
}
.contact-name { margin: 0 0 12px; font-weight: 700; font-size: 14.5px; }
.contact-name span { font-weight: 400; color: var(--text-3, #8a7f9e); }
.contact-tip {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2, #5f5672);
}
.contact-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-3, #8a7f9e);
  padding: 4px;
}
.contact-close:hover { color: var(--text, #2a2138); }

/* -------------------------------------------------------------- 视频免责声明 */
.player-disclaimer {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3, #8a7f9e);
}
.player-disclaimer a { color: var(--teal-dark, #1d7d87); font-weight: 600; }
.footer-note .footer-mail { color: var(--teal-dark, #1d7d87); font-weight: 600; }
