/* 中文註解：切換器沿用全站配色；稍微縮小寬螢幕導覽間距，為右側按鈕留出空間。 */
.theme-switch{display:inline-flex;flex-shrink:0;border:1px solid var(--site-line);padding:3px;gap:2px}.theme-switch button{background:transparent;border:0;padding:5px 7px;color:var(--site-muted);font-size:10px;line-height:1.5}.theme-switch button[aria-pressed=true]{background:var(--site-soft);color:var(--site-accent-dark)}
@media(min-width:1081px){.site-nav-inner{gap:18px}.site-nav .navbar-menu{gap:14px}.site-brand-name{font-size:14px;letter-spacing:1.5px}}
@media(max-width:1080px){.theme-switch{margin:12px 0 6px}}
/* 中文註解：覆寫共用色票，使新舊內容區及動態載入頁面都使用相同主題。 */
:root[data-theme=dark]{color-scheme:dark;--site-paper:#171d1b;--site-surface:#202824;--site-ink:#e0e7df;--site-muted:#adb9ab;--site-accent:#9cb694;--site-accent-dark:#c3d8ba;--site-soft:#2c392f;--site-line:#3c4a40;--site-danger:#e7a19b}
[data-theme=dark] ::selection{color:#eff5ec;background:#4b654c}
[data-theme=dark] .site-nav-link{color:var(--site-muted)}
[data-theme=dark] .site-nav-link:hover,[data-theme=dark] .site-nav-link[aria-current=page]{color:var(--site-accent-dark)}
[data-theme=dark] .news-hero{background:linear-gradient(110deg,#27352b,#1c2520)}
[data-theme=dark] .profile-image{background:var(--site-surface)}
[data-theme=dark] .news-tabs a,[data-theme=dark] .news-list-heading,[data-theme=dark] .news-empty h2{color:var(--site-muted)}
[data-theme=dark] .news-tabs a.selected{color:var(--site-accent-dark);border-color:var(--site-accent)}
[data-theme=dark] .news-tabs a:hover,[data-theme=dark] .news-row:hover,[data-theme=dark] .playlist-table tbody tr:hover,[data-theme=dark] .collection-table tbody tr:hover{background:var(--site-soft)}
[data-theme=dark] .playlist-table th,[data-theme=dark] .collection-table th{background:#29362d;color:var(--site-muted)}
[data-theme=dark] .collection-season,[data-theme=dark] .track-category,[data-theme=dark] .news-tag,[data-theme=dark] .proficiency-badge{background:#2b3c2e;color:#c1d6b7!important;border-color:#4d6350}
[data-theme=dark] .track-category.game,[data-theme=dark] .news-tag.maintenance,[data-theme=dark] .proficiency-badge.medium{background:#3c3528;color:#e1c89f!important;border-color:#63563e}
[data-theme=dark] .track-category.anime,[data-theme=dark] .news-tag.update{background:#283b40;color:#b7d2db!important;border-color:#435c67}
[data-theme=dark] .track-category.doujin{background:#392f40;color:#d4bddf!important;border-color:#5b4967}
[data-theme=dark] .track-category.jpop{background:#3a352f;color:#d6c6b0!important;border-color:#5e5347}
[data-theme=dark] .proficiency-badge.low{background:#402f2c;color:#e4b9ab!important;border-color:#6a4941}
[data-theme=dark] .playlist-tabs span,[data-theme=dark] .track-number,[data-theme=dark] .playlist-note,[data-theme=dark] .news-row time,[data-theme=dark] .article-meta time{color:var(--site-muted)}
[data-theme=dark] .column-filter input,[data-theme=dark] .column-filter select{background:var(--site-paper);color:var(--site-ink)}
[data-theme=dark] #navigation-status{background:#3f3029;color:#ecc3b6;border-color:#705344}
