html:has(body[data-active-view="home"]),html body[data-active-view="home"]{background:#f3f0eb!important}
html body[data-active-view="home"]{overflow-y:auto!important;color:#2e2830!important}
body[data-active-view="home"] .homeCollections{min-height:100svh;background:#f3f0eb;color:#2e2830;padding:1px 0 100px;font-family:system-ui,"Microsoft YaHei",sans-serif}
html body[data-active-view="home"] #bottomNav{background:#f7f4ef!important;border-color:#d9d0c9!important}
html body[data-active-view="home"] #bottomNav button{color:#6d6069!important}
html body[data-active-view="home"] #bottomNav button.is-active{color:#57405e!important;border-color:#806780!important}
.collectionsSection{width:min(900px,calc(100% - 48px));margin:112px auto 0}
.homeDateCard{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:200px;padding:22px;background:#fcfaf7;border:1px solid #d9d1ca;border-radius:12px}
.homePortraitButton{display:block;flex:0 0 auto;width:150px;height:150px;padding:0;border:0;background:#e9e1df;border-radius:8px;overflow:hidden;cursor:pointer}
.homePortraitButton img{display:block;width:100%;height:100%;object-fit:cover}.homePortraitButton:focus-visible,.collectionTile:focus-visible{outline:3px solid #806780;outline-offset:4px}
.homeDateCard time{margin-right:14px;color:#514950;font:400 clamp(18px,2.8vw,30px)/1.4 system-ui,"Microsoft YaHei",sans-serif}
.collectionsGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}
.collectionTile{display:flex;align-items:center;justify-content:center;min-height:160px;padding:16px;border:1px solid #d9d1ca;border-radius:10px;background:#fcfaf7;color:#342d34;text-decoration:none;cursor:pointer;font:400 20px/1.4 system-ui,"Microsoft YaHei",sans-serif;transition:background .15s}
.collectionTile:hover{background:#eee8e7}
@media(max-width:740px){body #bottomNav{grid-template-columns:repeat(4,1fr)!important}.collectionsSection{width:calc(100% - 32px);margin:30px auto 0}.homeDateCard{min-height:136px;padding:14px;gap:14px}.homePortraitButton{width:104px;height:104px}.homeDateCard time{font-size:17px;margin-right:0}.collectionsGrid{gap:10px;margin-top:12px}.collectionTile{min-height:108px;padding:10px;font-size:16px}}
@media(max-width:350px){.homePortraitButton{width:86px;height:86px}.homeDateCard time{font-size:15px}.collectionTile{font-size:14px}}

/* Full-bleed navigation stays at the top on every screen size. */
html body #bottomNav,html body.theme-light #bottomNav{position:fixed!important;top:0!important;bottom:auto!important;left:0!important;right:0!important;width:100vw!important;max-width:none!important;margin:0!important;transform:none!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-top:0!important}
@media(max-width:740px){
 html body #bottomNav,html body.theme-light #bottomNav{height:calc(58px + env(safe-area-inset-top))!important;min-height:calc(58px + env(safe-area-inset-top))!important;padding:env(safe-area-inset-top) 4px 0!important;grid-template-columns:repeat(4,1fr)!important}
 html body #bottomNav button.is-active{border-top:0!important;border-bottom:2px solid #765b80!important}
 body[data-active-view="home"] .collectionsSection{margin-top:calc(78px + env(safe-area-inset-top))}
 body:not([data-active-view="home"]) .shell{padding-top:calc(70px + env(safe-area-inset-top))!important}
 body[data-active-view="photocards"] .photocardAppView,body[data-active-view="music"] .musicAppView{top:calc(58px + env(safe-area-inset-top))!important;bottom:0!important}
 html body .player-host{bottom:calc(8px + env(safe-area-inset-bottom))!important}
}


/* The homepage follows the same light/dark palette as the other tabs. */
html:has(body:not(.theme-light)[data-active-view="home"]),html body:not(.theme-light)[data-active-view="home"],html body:not(.theme-light)[data-active-view="home"] .homeCollections{background:#17161b!important;color:#f1eaf2!important}
html body:not(.theme-light)[data-active-view="home"] #bottomNav{background:#242027!important;border-color:#625966!important}
html body:not(.theme-light)[data-active-view="home"] #bottomNav button{color:#bcb3bf!important}
html body:not(.theme-light)[data-active-view="home"] #bottomNav button.is-active{color:#e6d2e9!important}
body:not(.theme-light) .homeDateCard,body:not(.theme-light) .collectionTile{background:#242027;border-color:#5a535e;color:#f1eaf2}
body:not(.theme-light) .homeDateCard time{color:#e2d8e4}
body:not(.theme-light) .collectionTile:hover{background:#332d36}

/* Quiet image accents keep the category tiles readable. */
.collectionTile{position:relative;isolation:isolate;overflow:hidden;letter-spacing:.08em;font-weight:500}
.collectionTile::before{content:"";position:absolute;z-index:-2;inset:0;background-position:center;background-size:cover;opacity:.16;transition:transform .25s,opacity .25s}
.collectionTile::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(135deg,#fcfaf7b8,#fcfaf7dc)}
.collectionTile:hover::before{transform:scale(1.035);opacity:.25}
.collectionTile:nth-child(1)::before{background-image:url('./assets/covers/lilac.jpg')}
.collectionTile:nth-child(2)::before{background-image:url('./assets/official-covers/3RwRrxiG5j4.jpg')}
.collectionTile:nth-child(3)::before{background-image:url('./assets/covers/palette.jpg')}
body:not(.theme-light) .collectionTile::after{background:linear-gradient(135deg,#242027ba,#242027df)}
@media(prefers-reduced-motion:reduce){.collectionTile::before{transition:none}}

/* Shared site identity and controls. */
.homeMusicHeader{display:flex;align-items:center;gap:12px;min-height:72px;margin:0 0 18px;padding:0 0 14px;border-bottom:1px solid color-mix(in srgb,currentColor 16%,transparent);color:inherit}
.homeMusicLogo{width:44px;height:44px;object-fit:contain;flex:none}
.homeMusicBrand{min-width:0;display:flex;flex-direction:column;gap:3px}
.homeMusicBrand strong{font:700 20px/1.2 system-ui,sans-serif}
.homeMusicBrand small{font:400 12px/1.3 system-ui,sans-serif;opacity:.7}
.homeMusicActions{display:flex;align-items:center;gap:4px;margin-left:auto}
.homeMusicActions button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:inherit;font:20px/1 system-ui,sans-serif;cursor:pointer}
.homeMusicActions button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.homeMusicActions svg{width:22px;height:22px}
@media(max-width:380px){.homeMusicHeader{gap:7px}.homeMusicLogo{width:36px;height:36px}.homeMusicBrand strong{font-size:17px}.homeMusicBrand small{font-size:11px}.homeMusicActions{gap:0}.homeMusicActions button{width:40px;height:40px}}

/* The outer site uses theme-light, independently from the music iframe. */
html body.theme-light #bottomNav{background:#f7f4ef!important;color:#574d59!important;border-color:#d9d0c9!important;box-shadow:0 4px 14px #24182620!important}
html body.theme-light #bottomNav button{color:#6d6069!important}
html body.theme-light #bottomNav button.is-active{color:#57405e!important;border-color:#806780!important}

@media(min-width:741px){.collectionsSection{width:min(1120px,calc(100% - 64px))}}
body.lyrics-open[data-active-view="music"] #bottomNav{visibility:hidden!important}
