.home-screen-view { color-scheme: dark; font-family: 'Segoe UI', sans-serif; color: white; background: #34355e; }
.home-screen-view * { box-sizing: border-box; }
.home-screen-view { margin: 0; min-height: 100dvh; background: radial-gradient(ellipse at 15% 100%, #d39caf 0%, transparent 65%), radial-gradient(ellipse at 85% 75%, #9c78ae 0%, transparent 62%), linear-gradient(145deg, #3e477d, #60558f 52%, #ad8aaa); background-attachment: fixed; }
.home-island { min-height: 100dvh; padding: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.launcher-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; row-gap: 46px; align-items: start; }
.button-launcher { display: flex; flex-direction: column; align-items: center; justify-self: center; gap: 8px; width: 120px; max-width: 100%; color: white; text-decoration: none; text-align: center; border-radius: 20px; -webkit-tap-highlight-color: transparent; }
.launcher-icon { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 22px; box-shadow: inset 0 1px 1px #ffffff65, 0 5px 12px #24224920; transition: transform .18s ease, filter .18s ease; }
.launcher-icon svg { width: 61px; height: 61px; filter: drop-shadow(0 2px 2px #0002); }
.launcher-icon-radio { background: linear-gradient(145deg, #48dbda, #166dae); }
.launcher-icon-lab { background: linear-gradient(145deg, #ffca7b, #c3674e); }
.launcher-icon-library { background: linear-gradient(145deg, #b6a2ff, #6750c9); }
.launcher-icon-playlist { background: linear-gradient(145deg, #95e9bb, #248b7b); }
.launcher-name { font-size: 14px; font-weight: 400; line-height: 1.4; text-shadow: 0 1px 4px #25234480; }
.button-launcher:hover .launcher-icon { transform: translateY(-3px); filter: brightness(1.1); }
.button-launcher:active .launcher-icon { transform: scale(.95); }
.button-launcher:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
@media (min-width: 1400px) { .launcher-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 650px) { .home-island { padding: 24px 12px; } .launcher-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 12px; } .launcher-icon { width: 76px; height: 76px; border-radius: 20px; } .launcher-name { font-size: 12px; } }
@media (max-width: 330px) { .launcher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .launcher-icon { transition: none; } }
.home-widgets { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 36px; }
.home-widget { flex: 0 1 310px; min-width: 0; padding: 22px 24px; border: 1px solid #ffffff38; border-radius: 24px; background: linear-gradient(135deg, #ffffff20, #ffffff0a); box-shadow: 0 8px 24px #23213c18; backdrop-filter: blur(18px); }
.home-widget h2 { margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.home-widget h2 span { display: block; margin-top: 3px; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; opacity: .7; }
.clock-widget time { display: block; font-size: clamp(25px, 3vw, 36px); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 300; }
.home-widget p { margin: 12px 0 0; font-size: 12px; color: #e0deee; }
.battery-reading { display: flex; align-items: center; gap: 20px; min-height: 52px; }
.battery-reading strong { font-size: 36px; font-weight: 300; font-variant-numeric: tabular-nums; }
.battery-outline { position: relative; display: block; padding: 4px; width: 76px; height: 36px; border: 2px solid #ffffffb0; border-radius: 9px; }
.battery-outline::after { content: ''; position: absolute; right: -7px; top: 10px; width: 4px; height: 12px; border-radius: 0 3px 3px 0; background: #ffffffb0; }
.battery-outline > span { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
@media(max-width: 650px) { .home-widgets { gap: 12px; } .home-widget { flex: 1 1 240px; } }
.widget-toolbar { position: relative; display: flex; justify-content: flex-end; margin-bottom: 20px; z-index: 2; }
.add-widget { width: 44px; height: 44px; border: 1px solid #ffffff55; border-radius: 14px; color: white; background: #ffffff20; font-size: 30px; cursor: pointer; }
.widget-picker { position: absolute; right: 0; top: 54px; width: min(280px, calc(100vw - 32px)); padding: 18px; background: #24283feb; backdrop-filter: blur(18px); border: 1px solid #ffffff40; border-radius: 20px; box-shadow: 0 12px 40px #0005; }
.widget-picker h2 { font-size: 16px; margin: 0 0 12px; }
.widget-picker button { display: flex; justify-content: space-between; width: 100%; padding: 13px; margin-top: 7px; border: 0; border-radius: 12px; background: #ffffff16; color: white; cursor: pointer; text-align: left; }
.widget-picker button:disabled { opacity: .5; cursor: default; }
.home-widget { position: relative; }
.remove-widget { position: absolute; top: 10px; right: 12px; background: transparent; color: #e0deee; border: 0; font-size: 20px; cursor: pointer; }
.song-title { display: block; overflow-wrap: anywhere; font-size: 20px; font-weight: 500; }
.song-widget a { display: inline-block; margin-top: 14px; color: #d2e6ff; font-size: 12px; }

.home-screen-view { position: relative; margin: -28px; min-height: 100dvh; }
.home-screen-view button { font: inherit; margin: 0; }
.home-screen-view .add-widget { font-size: 30px; }
.home-screen-view .remove-widget { font-size: 20px; }

.song-artwork { position: relative; width: 88px; height: 88px; margin-bottom: 14px; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, #675a95, #324d6c); display: grid; place-items: center; }
.song-artwork img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.song-artwork span { font-size: 36px; color: #d9deff; }
.home-screen-view button.button-launcher { padding: 0; border: 0; background: transparent; cursor: pointer; }
.launcher-icon-store { background: linear-gradient(145deg, #79cfff, #4668c7); }
.launcher-icon-warning { background: linear-gradient(145deg, #ffc86c, #bf644b); }
