:root {
    color-scheme: light;
    --ink: #18251e;
    --muted: #64736a;
    --paper: #f7f5ef;
    --card: #fff;
    --green: #24543d;
    --gold: #d7b56d;
    --line: #e2e4dd;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; padding-bottom: 170px; color: var(--ink); background: var(--paper); }
a { color: var(--green); }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
.topbar { position: relative; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem max(1rem, calc((100% - 1120px) / 2)); background: #14211b; color: white; }
.brand { color: white; font-weight: 750; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-logo { width: 42px; height: 42px; border-radius: .55rem; object-fit: cover; }
.site-menu { position: relative; }
.site-menu > summary { display: flex; min-height: 2.6rem; align-items: center; gap: .6rem; border: 1px solid #53675a; border-radius: .65rem; padding: .45rem .8rem; color: white; background: #21362a; cursor: pointer; font-weight: 750; list-style: none; }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary::after { content: "▾"; color: #e6c982; }
.site-menu[open] > summary { border-color: #8caa91; background: #2a4735; }
.topbar .site-menu > nav { position: absolute; top: calc(100% + .55rem); right: 0; display: none; width: min(290px, calc(100vw - 2rem)); gap: .25rem; padding: .65rem; border: 1px solid #35483a; border-radius: .85rem; background: #182820; box-shadow: 0 16px 36px #07100b55; }
.site-menu[open] > nav { display: grid; }
.topbar nav a { color: #f1eee5; font-size: .9rem; text-decoration: none; }
.topbar .site-menu nav a { border-radius: .55rem; padding: .65rem .75rem; }
.topbar .site-menu nav a:hover { background: #294031; }
.topbar nav a.donate-nav { border-radius: 999px; padding: .48rem .85rem; color: #292113; background: #e6c982; font-weight: 800; }
.topbar nav a.donate-nav:hover { color: #211a0d; background: #f0d99f; }
.theme-picker { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .4rem .75rem; color: #e7ece8; font-size: .85rem; }
.theme-picker select { width: auto; min-height: 2rem; border-color: #66776c; padding: .25rem 1.7rem .25rem .55rem; color: #fff; background: #21362a; font-size: .82rem; }
.page { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 1.4rem 0 2rem; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 7vw, 3.2rem); margin: .25rem 0 .75rem; }
h2 { font-size: 1.45rem; }
p { line-height: 1.55; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; min-height: clamp(330px, 48vw, 520px); flex-direction: column; justify-content: center; border-radius: 1.4rem; margin-bottom: .8rem; padding: clamp(1.5rem, 6vw, 4rem); color: white; background: #14211b url("../images/choir-background.jpg") center 42% / cover no-repeat; }
.hero::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(8 16 11 / 88%) 0%, rgb(8 16 11 / 66%) 42%, rgb(8 16 11 / 18%) 100%), linear-gradient(0deg, rgb(8 16 11 / 40%), transparent 48%); content: ""; }
.hero p { max-width: 38rem; }
.hero h1 { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.3rem; }
.hero .button { color: #17241d; background: #e6c982; }
.hero .button:hover { background: #f0d99f; }
.hero .hero-donate { border: 1px solid #fff9; color: white; background: #14251dc9; }
.hero .hero-donate:hover { background: #14251d; }
.hero-link { width: fit-content; margin-top: .9rem; color: white; font-weight: 750; text-decoration: none; }
.hero-link:hover { text-decoration: underline; }
.listen-note { margin: 1rem 0 0; color: #e8eee8; font-size: .9rem; }
.music-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 0 0 2rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--card); }
.music-shortcuts > span { margin-right: auto; color: var(--muted); font-size: .9rem; font-weight: 700; }
.music-shortcuts a { padding: .55rem .85rem; border-radius: 999px; color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--card)); font-weight: 750; text-decoration: none; }
.music-shortcuts a:first-of-type { color: white; background: var(--green); }
.music-shortcuts a:hover { filter: brightness(.94); }
.eyebrow { color: var(--gold); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; border: 0; border-radius: .7rem; padding: .65rem 1rem; color: white; background: var(--green); font-weight: 700; text-decoration: none; }
.button:hover { background: #193f2d; }
.button-secondary { border: 1px solid #cdd8cf; color: var(--green); background: #f4f8f4; }
.button-small { min-height: 2.2rem; padding: .4rem .7rem; font-size: .88rem; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 1rem; }
.song-view-toggle { display: inline-flex; flex: 0 0 auto; gap: .2rem; padding: .2rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--card); }
.song-view-toggle button { min-height: 2rem; border: 0; border-radius: .45rem; padding: .35rem .65rem; color: var(--muted); background: transparent; cursor: pointer; font-size: .85rem; font-weight: 700; }
.song-view-toggle button[aria-pressed="true"] { color: white; background: var(--green); }
.song-card { min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--card); }
.song-card > a { color: inherit; text-decoration: none; }
.song-card img { width: 100%; aspect-ratio: 1; border-radius: .7rem; object-fit: cover; background: #d9e0d7; }
.song-card h2, .song-card h3 { margin: .65rem 0 .2rem; font-size: 1rem; }
.song-card p { margin: .2rem 0 .6rem; color: var(--muted); font-size: .87rem; }
.song-actions { display: flex; justify-content: space-between; align-items: center; gap: .35rem; font-size: .82rem; }
.song-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
.song-grid.is-list .song-card { display: flex; align-items: center; gap: .75rem; padding: .55rem .7rem; }
.song-grid.is-list .song-card > a { display: grid; flex: 1; min-width: 0; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 0 .8rem; }
.song-grid.is-list .song-card img { grid-row: 1 / span 2; width: 58px; }
.song-grid.is-list .song-card h3 { overflow: hidden; margin: 0 0 .15rem; text-overflow: ellipsis; white-space: nowrap; }
.song-grid.is-list .song-card p { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.song-grid.is-list .song-actions { flex: 0 0 auto; align-items: center; }
.featured-songs { overflow: hidden; margin: 2rem 0; border: 1px solid #315742; border-radius: 1.2rem; color: white; background: radial-gradient(ellipse at 92% 10%, #406b4d 0, #244734 42%, #14251d 100%); box-shadow: 0 12px 30px #14251d1c; }
.featured-song-slide { display: grid; min-height: 220px; grid-template-columns: minmax(110px, 32%) minmax(0, 1fr); align-items: center; gap: clamp(.85rem, 3vw, 2rem); padding: clamp(1rem, 4vw, 2rem); }
.featured-song-slide[hidden] { display: none; }
.featured-song-cover { width: 100%; aspect-ratio: 1; border-radius: .9rem; object-fit: cover; background: #d9e0d7; box-shadow: 0 8px 24px #07100b55; }
.featured-song-copy { min-width: 0; }
.featured-song-copy h2 { margin: 0 0 .5rem; color: white; font-size: clamp(1.35rem, 4vw, 2.4rem); overflow-wrap: anywhere; }
.featured-song-copy > p { margin: 0; color: #d3ded5; }
.featured-song-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1rem; }
.featured-song-actions .button { color: #18251e; background: #e6c982; }
.featured-song-link { color: white; font-weight: 700; text-decoration: none; }
.featured-song-link:hover { text-decoration: underline; }
.featured-song-controls { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; padding: 0 clamp(1rem, 4vw, 2rem) 1rem; color: #e4ece5; font-size: .85rem; font-variant-numeric: tabular-nums; }
.featured-song-controls button { display: grid; width: 2.3rem; height: 2.3rem; place-items: center; border: 1px solid #ffffff55; border-radius: 50%; color: white; background: #ffffff12; font-size: 1.1rem; }
.featured-song-controls button:hover { background: #ffffff2b; }
.home-albums { margin: 2rem 0; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.home-album-card { display: grid; min-width: 0; gap: .4rem; padding: .75rem; border: 1px solid var(--line); border-radius: 1rem; color: inherit; background: var(--card); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.home-album-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #17251d12; }
.home-album-card img { width: 100%; aspect-ratio: 1; border-radius: .7rem; object-fit: cover; background: #d9e0d7; }
.album-card-title { overflow: hidden; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.album-card-meta { color: var(--muted); font-size: .85rem; }
.about-section { max-width: 760px; margin: 2rem 0; }
.publication-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.publication-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.publication-card > a img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e5e9e3; }
.publication-copy { padding: 1rem; }
.publication-copy h2, .publication-copy h3 { margin: .35rem 0; }
.publication-copy h2 a, .publication-copy h3 a { color: inherit; text-decoration: none; }
.publication-copy .eyebrow { margin-bottom: .35rem; }
.publication-detail { width: min(100%, 820px); margin: 0 auto; }
.publication-detail-image { width: 100%; max-height: 600px; margin: 1rem 0; border-radius: 1rem; object-fit: cover; }
.publication-body { margin: 1.5rem 0; font-size: 1.05rem; line-height: 1.8; }
.publication-editor { margin: .7rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: white; }
.publication-editor summary { cursor: pointer; font-weight: 700; }
.publication-admin-image { display: block; width: min(100%, 260px); max-height: 220px; border-radius: .6rem; object-fit: cover; }
.song-detail { display: grid; grid-template-columns: minmax(180px, 360px) 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; padding: 1rem 0 2rem; }
.member-note { margin-top: 1rem; padding: .8rem 1rem; border-radius: .7rem; color: var(--muted); background: #eeeee8; }
.detail-cover { width: 100%; border-radius: 1.2rem; box-shadow: 0 12px 35px #18251e24; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin: 1rem 0; }
.form-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--card); }
.upload-poster-preview { display: block; width: min(100%, 240px); aspect-ratio: 1; margin: .75rem 0; border-radius: .75rem; object-fit: cover; background: #eef1ed; }
.upload-poster-preview[hidden] { display: none; }
.form-card.narrow { width: min(100%, 480px); margin: 2rem auto; }
form label { display: grid; gap: .4rem; margin: .8rem 0; font-weight: 650; }
input, textarea, select { width: 100%; min-height: 2.8rem; border: 1px solid #cbd2ca; border-radius: .55rem; padding: .65rem .75rem; color: var(--ink); background: white; }
textarea { min-height: 5rem; resize: vertical; }
.search-form { display: flex; gap: .6rem; max-width: 650px; margin: 1rem 0 2rem; }
.search-form input { flex: 1; }
.notice, .success, .error, .empty-state { padding: .8rem 1rem; border-radius: .7rem; }
.notice, .success { color: #1c5635; background: #e7f2e7; }
.error { color: #852d2d; background: #f9e8e5; }
.empty-state { color: var(--muted); background: #eeeee8; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.mini-player { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(170px, 1fr) minmax(140px, 1.15fr) auto; gap: .45rem 1.2rem; align-items: center; padding: .65rem max(.8rem, calc((100% - 1120px) / 2)); border-top: 1px solid #ffffff20; color: #f5f6f7; background: #11151c; box-shadow: 0 -8px 25px #14211b30; }
.mini-track { display: flex; min-width: 0; align-items: center; gap: .7rem; border: 0; padding: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.mini-track img { flex: 0 0 48px; border-radius: .45rem; object-fit: cover; }
.mini-track > span { display: grid; min-width: 0; }
.mini-track strong, .mini-track small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-track small { margin-top: .15rem; color: #aab2bd; }
.player-controls { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; }
.player-controls button, .now-playing button { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; border: 0; border-radius: 50%; padding: 0; color: #e8ebf0; background: transparent; cursor: pointer; font-size: 1.15rem; }
.player-controls button:hover, .now-playing button:hover { color: white; background: #ffffff16; }
.player-controls .play-control { width: 2.8rem; height: 2.8rem; color: #11151c; background: #f4f5f6; font-size: 1rem; }
.player-controls .play-control:hover { color: #11151c; background: white; }
.mini-progress { min-width: 0; }
.mini-progress > div, .now-playing-progress > div { display: flex; justify-content: space-between; margin-top: .15rem; color: #aab2bd; font-size: .7rem; font-variant-numeric: tabular-nums; }
.mini-progress input, .now-playing-progress input { display: block; width: 100%; min-height: 1rem; height: 1rem; margin: 0; border: 0; padding: 0; accent-color: #f5f6f7; background: transparent; cursor: pointer; }
.mini-progress input:disabled, .now-playing-progress input:disabled { cursor: default; }
.queue-panel { grid-column: 1 / -1; max-height: 120px; overflow: auto; color: #d3d8df; font-size: .88rem; }
.queue-panel summary { cursor: pointer; color: #d3d8df; font-weight: 700; }
.queue-panel ol { display: flex; gap: .5rem; margin: .5rem 0; padding-left: 1.4rem; overflow-x: auto; }
.queue-panel li { flex: 0 0 auto; }
.queue-panel li button { border: 0; padding: .35rem .5rem; border-radius: .4rem; color: #f5f6f7; background: #ffffff16; cursor: pointer; }
.now-playing { width: 100%; max-width: none; height: 100%; max-height: none; overflow: auto; border: 0; padding: 0; color: #f5f6f7; background: transparent; }
.now-playing::backdrop { background: #080a0eeF; backdrop-filter: blur(14px); }
.now-playing-shell { display: flex; min-height: 100%; flex-direction: column; padding: clamp(1rem, 3vw, 2rem) max(1.25rem, calc((100vw - 1120px) / 2)); background: radial-gradient(ellipse at 82% 18%, #263248 0, #151b28 43%, #090b10 100%); }
.now-playing-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #cbd0d9; font-size: .68rem; font-weight: 750; letter-spacing: .18em; }
.now-playing-header button { width: 2.7rem; height: 2.7rem; font-size: 1.6rem; }
.now-playing-main { display: grid; width: min(100%, 1060px); flex: 1; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); margin: 0 auto; padding: 2rem 0; }
.now-playing-cover { display: block; width: min(100%, 520px); aspect-ratio: 1; justify-self: center; border-radius: clamp(.8rem, 2vw, 1.5rem); object-fit: cover; background: #202734; box-shadow: 0 20px 70px #0008; }
.now-playing-info { min-width: 0; }
.now-playing-label { margin: 0 0 .45rem; color: #b7bfcc; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.now-playing-info h2 { overflow-wrap: anywhere; margin: 0; color: white; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.12; }
.now-playing-info > p:not(.now-playing-label) { margin: .45rem 0 1.5rem; color: #c1c7d1; font-size: 1.05rem; }
.now-playing-actions { display: flex; gap: .6rem; margin-bottom: 1.4rem; }
.now-playing-actions button { width: 2.7rem; height: 2.7rem; border: 1px solid #ffffff35; font-size: 1.25rem; }
.now-playing-progress > div { margin-top: .35rem; font-size: .78rem; }
.now-playing-progress input { min-height: 1.4rem; height: 1.4rem; }
.now-playing-controls { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 1.3rem; }
.now-playing-controls button { width: clamp(2.5rem, 5vw, 3.2rem); height: clamp(2.5rem, 5vw, 3.2rem); font-size: 1.35rem; }
.now-playing-controls .full-play-control { width: clamp(3.5rem, 6vw, 4.2rem); height: clamp(3.5rem, 6vw, 4.2rem); color: #11151c; background: white; font-size: 1.35rem; }
.now-playing-controls .full-play-control:hover { color: #11151c; background: #e5e7eb; }
.admin-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.admin-body .page { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 1.4rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.5rem; padding: .8rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.admin-nav a { padding: .45rem .65rem; border-radius: .45rem; color: var(--green); font-size: .9rem; font-weight: 700; text-decoration: none; }
.admin-nav a:hover { background: #e7eee8; }
.admin-nav a[aria-current="page"] { color: white; background: var(--green); }
.admin-single-form { width: min(100%, 760px); }
.admin-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.admin-stat-card, .admin-page-card { display: grid; gap: .4rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.admin-stat-card strong { color: var(--green); font-size: 1.7rem; }
.admin-stat-card span, .admin-page-card span { color: var(--muted); font-size: .9rem; }
.admin-page-card { color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.admin-page-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #14211b12; }

.admin-body { --admin-bg: #f3f5f2; --admin-border: #e4e9e3; background: var(--admin-bg); }
.admin-body .topbar { position: relative; z-index: 2; border-bottom: 1px solid #ffffff1a; background: #14251d; }
.admin-body .page { width: min(1240px, calc(100% - 2rem)); padding-top: 1.1rem; }
.admin-body .page > :not(.admin-nav-shell) { grid-column: 2; }
.admin-body .admin-nav-shell { position: sticky; z-index: 5; top: .8rem; grid-column: 1; grid-row: 1 / span 20; align-self: start; }
.admin-body .admin-nav-shell > summary { display: none; }
.admin-body .admin-nav { position: static; display: grid; align-content: start; gap: .3rem; margin: 0; padding: .65rem; border-color: var(--admin-border); border-radius: .9rem; box-shadow: 0 5px 18px #17251d0b; }
.admin-body .admin-nav a { padding: .68rem .75rem; color: #53645a; font-size: .9rem; }
.admin-body .admin-nav a:hover { color: var(--green); background: #f0f4ef; }
.admin-body .admin-nav a[aria-current="page"] { color: white; background: #24543d; box-shadow: 0 3px 8px #24543d33; }
.admin-body h1 { margin-bottom: .45rem; font-size: clamp(1.7rem, 3.5vw, 2.45rem); letter-spacing: -.035em; }
.admin-body h2 { font-size: 1.2rem; }
.admin-nav { position: sticky; z-index: 5; top: .65rem; overflow-x: auto; flex-wrap: nowrap; gap: .25rem; margin: 0 0 1.4rem; padding: .5rem; border-color: var(--admin-border); border-radius: .9rem; box-shadow: 0 5px 18px #17251d0b; scrollbar-width: thin; }
.admin-nav a { flex: 0 0 auto; padding: .58rem .75rem; color: #53645a; font-size: .86rem; }
.admin-nav a:hover { color: var(--green); background: #f0f4ef; }
.admin-nav a[aria-current="page"] { color: white; background: #24543d; box-shadow: 0 3px 8px #24543d33; }
.admin-welcome { display: flex; min-height: 190px; align-items: center; justify-content: space-between; gap: 1.5rem; margin: .5rem 0 1.6rem; padding: clamp(1.3rem, 4vw, 2.4rem); border: 1px solid #315742; border-radius: 1.2rem; color: white; background: radial-gradient(ellipse at 92% 10%, #406b4d 0, #244734 35%, #14251d 78%); box-shadow: 0 15px 32px #14251d1c; }
.admin-welcome h1 { color: white; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.admin-welcome p:not(.admin-kicker) { margin: .45rem 0 0; color: #d3ded5; }
.admin-kicker { margin: 0 0 .55rem; color: #e6ca82; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.admin-welcome .button { flex: 0 0 auto; color: #18251e; background: #e6c982; }
.admin-section-title { margin: 1.7rem 0 .5rem; color: #293a30; }
.admin-dashboard-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .85rem; margin: .8rem 0 1.3rem; }
.admin-stat-card { position: relative; min-height: 126px; align-content: space-between; padding: 1rem 1.1rem; border-color: var(--admin-border); border-radius: .95rem; box-shadow: 0 4px 14px #17251d08; }
.admin-stat-label { color: #596a5f; font-size: .87rem; font-weight: 700; }
.admin-stat-card strong { color: #214f38; font-size: 2rem; line-height: 1; }
.admin-stat-caption { color: #8a968e; font-size: .75rem; }
.admin-page-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; }
.admin-page-card { min-height: 175px; align-content: start; gap: .55rem; padding: 1rem; border-color: var(--admin-border); border-radius: .95rem; box-shadow: 0 4px 14px #17251d08; }
.admin-page-card:hover { border-color: #aac1ae; box-shadow: 0 10px 24px #17251d12; }
.admin-page-card strong { margin-top: .15rem; font-size: 1rem; }
.admin-page-card span:not(.admin-card-icon):not(.admin-card-link) { line-height: 1.5; }
.admin-card-icon { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: .7rem; color: #24543d; background: #e9f1e8; font-size: .85rem; font-weight: 850; }
.admin-card-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .25rem; color: #24543d; font-size: .8rem; font-weight: 750; }
.admin-body .form-card, .admin-body .table-scroll, .admin-body .publication-editor { border-color: var(--admin-border); border-radius: .9rem; box-shadow: 0 4px 14px #17251d08; }
.admin-body .form-card { padding: clamp(1rem, 2.5vw, 1.5rem); }
.admin-body .table-scroll { overflow-x: auto; }
.admin-body table { min-width: 640px; }
.admin-body th { color: #506056; background: #edf2ed; font-size: .77rem; letter-spacing: .04em; text-transform: uppercase; }
.admin-body td { color: #38483e; }
.admin-body tbody tr:hover { background: #f8faf8; }
.admin-body input:focus, .admin-body textarea:focus, .admin-body select:focus { border-color: #61876a; outline: 3px solid #61876a24; }
.admin-body .button { border-radius: .62rem; }
.admin-body .album-edit-form, .admin-body .publication-editor { margin-bottom: .75rem; }
.admin-body .publication-editor summary { padding: .25rem; }
.admin-body .notice, .admin-body .error { box-shadow: 0 4px 14px #17251d08; }
.admin-link-fields { min-width: 0; margin: 1rem 0; padding: .75rem 1rem 1rem; border: 1px solid var(--admin-border); border-radius: .8rem; }
.admin-link-fields legend { padding: 0 .4rem; font-weight: 750; }
.form-help { margin: .25rem 0 .75rem; color: var(--muted); font-size: .9rem; }
.admin-logo-preview { display: block; width: 96px; height: 96px; margin: .5rem 0 1rem; border-radius: 1rem; object-fit: cover; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin: 2rem 0 0; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.social-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.social-links a { padding: .4rem .65rem; border-radius: 999px; background: white; font-size: .88rem; font-weight: 650; text-decoration: none; }
.about-section .social-links { margin: .75rem 0 1.5rem; }
.table-section { margin: 2rem 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: .8rem; background: white; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #eef1ed; }
code { overflow-wrap: anywhere; }
.table-section form { display: flex; gap: .25rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.offline-library { display: grid; gap: .5rem; }
.offline-item { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .65rem; border: 1px solid var(--line); border-radius: .65rem; background: white; }
.offline-item p { margin: 0; }
.donate-card { width: min(100%, 560px); padding: 1.5rem; border-radius: 1.1rem; background: white; }
.momo-code { margin: .5rem 0; color: var(--green); font-size: 2.5rem; font-weight: 800; letter-spacing: .08em; }

html[data-theme="dark"] { color-scheme: dark; --ink: #e8eee9; --muted: #acb8af; --paper: #151d18; --card: #202b24; --green: #a4d0ad; --gold: #e6c982; --line: #39483e; }
html[data-theme="dark"] body { color: var(--ink); background: var(--paper); }
html[data-theme="dark"] a { color: #b7dfbe; }
html[data-theme="dark"] .song-card,
html[data-theme="dark"] .publication-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .admin-nav,
html[data-theme="dark"] .admin-stat-card,
html[data-theme="dark"] .admin-page-card,
html[data-theme="dark"] .publication-editor,
html[data-theme="dark"] .table-scroll,
html[data-theme="dark"] .offline-item,
html[data-theme="dark"] .donate-card,
html[data-theme="dark"] .social-links a,
html[data-theme="dark"] .mini-player { color: #f5f6f7; border-color: #ffffff20; background: #11151c; }
html[data-theme="dark"] .publication-copy,
html[data-theme="dark"] .admin-body .form-card { color: var(--ink); }
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select { border-color: #536357; color: var(--ink); background: #18221b; }
html[data-theme="dark"] th { background: #2b382f; }
html[data-theme="dark"] .player-controls button,
html[data-theme="dark"] .queue-panel li button { color: #f5f6f7; }
html[data-theme="dark"] .mini-player { border-color: #ffffff20; }
html[data-theme="dark"] .member-note,
html[data-theme="dark"] .empty-state { color: var(--muted); background: #27332a; }
html[data-theme="dark"] .admin-stat-card strong,
html[data-theme="dark"] .momo-code { color: #b6dfbd; }
html[data-theme="dark"] .admin-nav a { color: #d3ded5; }
html[data-theme="dark"] .admin-nav a[aria-current="page"] { color: #fff; }
html[data-theme="dark"] .admin-body .admin-nav-shell > summary { color: #d3ded5; border-color: var(--line); background: var(--card); }
html[data-theme="dark"] .song-view-toggle { border-color: var(--line); background: var(--card); }
html[data-theme="dark"] .featured-songs { border-color: #39483e; }
html[data-theme="dark"] .admin-body { --admin-bg: #151d18; --admin-border: #39483e; background: var(--admin-bg); }

@media (max-width: 700px) {
    body { padding-bottom: 180px; }
    .topbar { align-items: center; flex-direction: row; }
    .hero { min-height: 490px; background-position: 54% center; }
    .hero::before { background: linear-gradient(90deg, rgb(8 16 11 / 82%), rgb(8 16 11 / 38%)), linear-gradient(0deg, rgb(8 16 11 / 35%), transparent 60%); }
    .song-detail { grid-template-columns: minmax(0, 1fr); }
    .detail-cover { width: min(100%, 330px); justify-self: center; }
    .mini-player { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .65rem; padding: .55rem .8rem; }
    .music-shortcuts { align-items: flex-start; }
    .music-shortcuts > span { flex-basis: 100%; }
    .music-shortcuts a { flex: 1; text-align: center; }
    .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mini-progress { grid-column: 1 / -1; grid-row: 2; }
    .player-controls { grid-column: 2; grid-row: 1; gap: .1rem; }
    .player-controls button { width: 2.15rem; height: 2.15rem; font-size: 1rem; }
    .player-controls .play-control { width: 2.45rem; height: 2.45rem; }
    .player-controls #toggle-shuffle, .player-controls #toggle-repeat { display: none; }
    .queue-panel { grid-row: 3; }
    .now-playing-shell { padding: .75rem 1.25rem 1.5rem; }
    .now-playing-main { width: min(100%, 520px); grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1.2rem; padding: 1.3rem 0; }
    .now-playing-cover { width: min(78vw, 400px); }
    .now-playing-info > p:not(.now-playing-label) { margin-bottom: .8rem; }
    .now-playing-actions { margin-bottom: .9rem; }
    .now-playing-controls { margin-top: .8rem; }
    .admin-body { padding-bottom: 180px; }
    .admin-body .page { position: relative; width: min(100% - 1rem, 1240px); grid-template-columns: minmax(0, 1fr); gap: .8rem; padding-top: .65rem; }
    .admin-body .page > :not(.admin-nav-shell) { grid-column: 1; }
    .admin-body .admin-nav-shell { position: relative; top: auto; grid-column: 1; grid-row: auto; }
    .admin-body .admin-nav-shell > summary { display: flex; width: fit-content; min-height: 2.5rem; align-items: center; gap: .55rem; padding: .5rem .75rem; border: 1px solid var(--admin-border); border-radius: .65rem; color: #24543d; background: white; box-shadow: 0 4px 14px #17251d0b; cursor: pointer; font-size: .9rem; font-weight: 700; list-style: none; }
    .admin-body .admin-nav-shell > summary::-webkit-details-marker { display: none; }
    .admin-body .admin-nav { position: absolute; top: calc(100% + .4rem); left: 0; display: grid; width: min(85vw, 260px); max-height: min(70vh, 520px); overflow-y: auto; gap: .3rem; padding: .65rem; background: white; }
    .admin-body .admin-nav a { padding: .68rem .75rem; font-size: .9rem; }
    .admin-body .admin-nav-shell:not([open]) .admin-nav { display: none; }
    .admin-welcome { min-height: 0; align-items: flex-start; flex-direction: column; }
    .admin-welcome .button { width: 100%; }
    .admin-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-page-cards { grid-template-columns: 1fr; }
    .admin-stat-card { min-height: 110px; }
}
