.sound-section { scroll-margin-top: 100px; color: var(--qd-color-text); }
.sound-section [hidden] { display: none !important; }
.sound-section ::selection { background: var(--qd-color-selection); color: var(--qd-color-selection-text); }
.sound-heading { margin-bottom: 42px; }
.sound-heading h2 { margin: 0 0 14px; font: 400 clamp(32px, 4vw, 48px)/1.25 'Songti SC', 'SimSun', serif; color: var(--ink, #243c4a); }
.sound-heading p { margin: 0; font-size: 18px; color: var(--qd-color-text-secondary); }
.sound-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; }
.unified-player { min-width: 0; padding-top: 10px; }
.now-playing { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.now-playing img { width: 112px; height: 112px; object-fit: cover; object-position: 60% 37%; border-radius: 8px; }
.now-playing div { min-width: 0; }
.now-playing h3 { margin: 0 0 10px; font: 400 28px/1.5 'Songti SC', 'SimSun', serif; overflow-wrap: anywhere; }
.now-playing p { font-size: 16px; line-height: 1.6; margin: 0; color: var(--qd-color-text-secondary); }
.sound-section button, .sound-section select { font: inherit; cursor: pointer; }
.sound-section button { color: inherit; }
.sound-section button:focus-visible, .sound-section a:focus-visible, .sound-section select:focus-visible, .sound-section summary:focus-visible, #media-progress:focus-visible { outline: 3px solid var(--qd-color-focus); outline-offset: 4px; }
.sound-section button:disabled, #media-progress:disabled { opacity: .45; cursor: not-allowed; }
#media-audio { width: 100%; }
.transport { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 26px 0 20px; }
.transport button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 46px; height: 46px; padding: 10px; border: 0; background: transparent; border-radius: 50%; }
.transport svg { width: 24px; height: 24px; flex-shrink: 0; }
.transport button:not(:disabled):hover { background: var(--qd-color-selection); }
.transport .main-play { width: 64px; height: 64px; color: var(--qd-color-on-action); background: var(--qd-color-action); }
.transport .main-play:not(:disabled):hover { background: var(--qd-color-action-hover); }
#media-back, #media-forward { position: relative; }
#media-back span, #media-forward span { position: absolute; font-size: 10px; font-weight: 600; top: 18px; }
#media-progress { width: 100%; min-height: 44px; margin: 0; accent-color: var(--qd-color-action); cursor: pointer; }
.playback-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--qd-color-text-secondary); }
#media-speed { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--qd-color-link); }
.sound-help { font-size: 16px; line-height: 1.7; min-height: 2.8em; color: var(--qd-color-text-secondary); margin: 18px 0 8px; }
.sound-link { display: inline-block; padding: 8px 0; font-size: 16px; color: var(--qd-color-link); text-underline-offset: 5px; text-decoration: underline; }
#episode-info > a { margin-top: 4px; }
.chapter-details { margin-top: 20px; border-top: 1px solid var(--qd-color-border); padding-top: 12px; }
.chapter-details summary { cursor: pointer; min-height: 44px; line-height: 44px; font-size: 17px; }
#media-chapters { list-style: none; padding: 0; margin: 0; }
#media-chapters button { width: 100%; text-align: left; border: 0; padding: 12px 8px; background: transparent; line-height: 1.6; font-size: 16px; }
#media-chapters button[aria-current="true"] { background: var(--qd-color-selection); color: var(--qd-color-link); font-weight: 600; }
#media-chapters time { font-variant-numeric: tabular-nums; margin-right: 14px; }
.sound-library { min-width: 0; border-top: 1px solid var(--qd-color-border-strong); }
.library-filters { display: flex; gap: 24px; border-bottom: 1px solid var(--qd-color-border); margin-bottom: 24px; }
.library-filters button { min-height: 58px; border: 0; padding: 12px 0; font-size: 18px; background: transparent; border-bottom: 2px solid transparent; }
.library-filters button[aria-pressed="true"] { color: var(--qd-color-link); border-bottom-color: var(--qd-color-action); }
.library-filters span { font-size: 13px; margin-left: 7px; }
.edition-control { display: flex; align-items: center; gap: 16px; font-size: 16px; }
.edition-control label { flex-shrink: 0; }
.edition-control select { width: 100%; min-width: 0; min-height: 46px; padding: 8px 12px; border: 1px solid var(--qd-color-border-strong); border-radius: 6px; color: var(--qd-color-text); background: transparent; }
.library-summary { font-size: 15px; line-height: 1.6; color: var(--qd-color-text-secondary); margin: 18px 0 6px; }
.track-list { list-style: none; padding: 0; margin: 0; }
.track-list li { border-bottom: 1px solid var(--qd-color-border); }
.track-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 78px; padding: 14px 10px; text-decoration: none; color: inherit; }
.track-row:hover { background: var(--qd-color-selection); }
.track-row[aria-current="true"] { background: var(--qd-color-selection); color: var(--qd-color-link); }
.track-row[aria-current="true"] .track-name::after { content: ' · 当前'; font-size: 13px; }
.track-name { font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.track-name small { display: block; font-size: 14px; line-height: 1.6; color: var(--qd-color-text-secondary); }
.track-number, .track-duration { font-size: 14px; font-variant-numeric: tabular-nums; }
.sound-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 800px) { .sound-layout { grid-template-columns: 1fr; gap: 40px; } .sound-heading { margin-bottom: 26px; } .unified-player { max-width: 580px; width: 100%; } }
@media (max-width: 420px) { .now-playing { gap: 16px; } .now-playing img { width: 84px; height: 96px; } .now-playing h3 { font-size: 24px; } .library-filters { gap: 18px; } .library-filters button { font-size: 17px; } .track-row { gap: 10px; padding-inline: 6px; } }
body.has-background-player { padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
.background-dock { position: fixed; z-index: 40; inset: auto 0 0; display: flex; align-items: center; gap: 18px; padding: 10px max(24px, calc((100vw - 1240px) / 2)) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg, #f6f5f0); border-top: 1px solid var(--qd-color-border-strong); color: var(--qd-color-text); }
.background-caption { flex: 1; min-width: 0; }
.background-caption a { display: block; font-size: 16px; line-height: 1.5; color: var(--qd-color-link); text-decoration: none; }
.background-caption span { display: block; font-size: 13px; color: var(--qd-color-text-secondary); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.background-dock button { min-height: 44px; padding: 8px 14px; flex-shrink: 0; border: 1px solid var(--qd-color-action-border); border-radius: 6px; background: transparent; color: var(--qd-color-link); font-size: 15px; }
.background-dock button:hover { background: var(--qd-color-selection); }
.background-volume { width: 130px; flex-shrink: 0; }
.background-volume label { display: block; font-size: 13px; line-height: 1.3; }
.background-volume input { display: block; width: 100%; margin: 0; min-height: 44px; accent-color: var(--qd-color-action); }
.background-volume input:focus-visible { outline: 3px solid var(--qd-color-focus); outline-offset: 2px; }
@media (max-width: 620px) {
 body.has-background-player { padding-bottom: calc(138px + env(safe-area-inset-bottom, 0px)); }
 .background-dock { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 10px; padding-inline: 16px; }
 .background-caption { grid-column: 1 / -1; }
 .background-caption a, .background-caption span { display: inline; font-size: 14px; }
 .background-caption span { display: none; }
 .background-volume { grid-column: 1; grid-row: 2; width: 100%; max-width: 180px; }
 #background-toggle { grid-column: 2; grid-row: 2; padding-inline: 10px; }
 #background-next { grid-column: 3; grid-row: 2; padding-inline: 10px; }
}
