/* Music Archive 1.5.5. The existing dark styles are intentionally untouched. */
.ma-theme-switch{display:inline-flex;align-items:center;gap:3px;padding:4px;border:1px solid #394356;border-radius:11px;background:#192231;flex-shrink:0}
.ma-theme-switch button{font:600 12px/1.3 system-ui,sans-serif;padding:8px 11px;border:0;border-radius:7px;background:transparent;color:#c3cbda;cursor:pointer;white-space:nowrap}
.ma-theme-switch button.is-active{background:#b5ff68;color:#142014}
.ma-theme-switch button:focus-visible{outline:2px solid #80bfff;outline-offset:2px}
.topbar,.genre-top,.pl-top{gap:12px;flex-wrap:wrap}
/* Scope every light rule: the classic dark theme remains the fallback. */
html[data-ma-theme="light"]{color-scheme:light}
html[data-ma-theme="light"] body{background:#f5f7fb;color:#202a38}
html[data-ma-theme="light"] .sidebar{background:#fff;border-color:#dbe1ea}
html[data-ma-theme="light"] .brand small,html[data-ma-theme="light"] .sidefoot,html[data-ma-theme="light"] .version,html[data-ma-theme="light"] .navlabel{color:#627084}
html[data-ma-theme="light"] .navitem{color:#344256}
html[data-ma-theme="light"] .navitem:hover,html[data-ma-theme="light"] .navitem.active{background:#e8f4db;color:#345b18}
html[data-ma-theme="light"] .eyebrow,html[data-ma-theme="light"] .sectionhead a,html[data-ma-theme="light"] .backlink{color:#376a18}
html[data-ma-theme="light"] .hero{background:linear-gradient(110deg,#e7f1e4,#eaf1f9 60%,#efebfa);border-color:#d1dbe5}
html[data-ma-theme="light"] .hero em{color:#477b20}
html[data-ma-theme="light"] .hero p:not(.eyebrow),html[data-ma-theme="light"] .detaildesc{color:#465569}
html[data-ma-theme="light"] .stats>div,html[data-ma-theme="light"] .tracks,html[data-ma-theme="light"] .track,html[data-ma-theme="light"] .feedback,html[data-ma-theme="light"] .pl-card,html[data-ma-theme="light"] .pl-song{background:#fff;border-color:#dbe1ea;color:#202a38}
html[data-ma-theme="light"] .track{border-color:#e5e9ef}
html[data-ma-theme="light"] .cards p,html[data-ma-theme="light"] .trackmeta small,html[data-ma-theme="light"] .stats span,html[data-ma-theme="light"] .muted,html[data-ma-theme="light"] .empty,html[data-ma-theme="light"] .pl-muted{color:#526176}
html[data-ma-theme="light"] .search input,html[data-ma-theme="light"] input,html[data-ma-theme="light"] select,html[data-ma-theme="light"] textarea{background:#fff;color:#202a38;border-color:#bdc9d7}
html[data-ma-theme="light"] .search button,html[data-ma-theme="light"] .play{background:#b5e77d;color:#1a3012}
html[data-ma-theme="light"] .player{background:#e9eef5;border-color:#cbd5e1;color:#202a38}
html[data-ma-theme="light"] .player button{color:#202a38}
html[data-ma-theme="light"] .player small{color:#526176}
html[data-ma-theme="light"] .pill{background:#e5f3d7;color:#376a18}
html[data-ma-theme="light"] .ma-theme-switch{background:#e9eef5;border-color:#cbd5e1}
html[data-ma-theme="light"] .ma-theme-switch button{color:#344256}
html[data-ma-theme="light"] .ma-theme-switch button.is-active{background:#fff;color:#24551b;box-shadow:0 1px 4px #0002}
html[data-ma-theme="light"] footer{color:#637186}
html[data-ma-theme="light"] .genre-content,html[data-ma-theme="light"] .pl-container{color:#202a38}
html[data-ma-theme="light"] .genre-content a,html[data-ma-theme="light"] .pl-container a{color:#315f18}
html[data-ma-theme="light"] .genre-content button,html[data-ma-theme="light"] .pl-container button{color:inherit}
@media(max-width:600px){.ma-theme-switch button{padding:7px 9px}.topbar .ma-theme-switch{margin-left:auto}}

/* v1.5.5.1: readable playlist cards and light genre cards */
html[data-ma-theme="light"] .pl-container .pl-card{background:#fff;border-color:#d5deea;color:#202a38}
html[data-ma-theme="light"] .pl-container .pl-card strong{color:#202a38}
html[data-ma-theme="light"] .pl-container .pl-card span:not(.pl-symbol),
html[data-ma-theme="light"] .pl-container .pl-card small{color:#56657a}
html[data-ma-theme="light"] .pl-container .pl-card .pl-symbol{color:#36956c}
html[data-ma-theme="light"] .pl-container .pl-card:hover,
html[data-ma-theme="light"] .pl-container .pl-card:focus-visible{border-color:#4a9d6d}
html[data-ma-theme="light"] .genre-content .genre-card{background:#fff;border-color:#d5deea;color:#202a38}
html[data-ma-theme="light"] .genre-content .genre-card strong{color:#202a38}
html[data-ma-theme="light"] .genre-content .genre-card small{color:#56657a}
html[data-ma-theme="light"] .genre-content .genre-card:hover,
html[data-ma-theme="light"] .genre-content .genre-card:focus-visible{border-color:#4a9d6d}
html[data-ma-theme="light"] .genre-content .genre-songmeta small{color:#56657a}
html[data-ma-theme="light"] .genre-content .genre-songmeta a{color:#315f18}
html[data-ma-theme="light"] .genre-content .genre-list,
html[data-ma-theme="light"] .genre-content .genre-song,
html[data-ma-theme="light"] .genre-content .genre-top{border-color:#dbe1ea}
