/* shell — additive styles (loaded after style.css). */

/* Persistent "now playing" bar: sits above the tab bar, on every screen. */
.now-playing {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg1);
    border-top: 1px solid var(--bg2);
    padding: 4px 4px 4px 12px;
}

.now-playing[hidden] { display: none; }

.now-playing-name {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    color: var(--fg);
    font: inherit;
    font-size: 14px;
    text-align: left;
    padding: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-play {
    flex: none;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    color: var(--green);
    font-size: 18px;
    line-height: 1;
}

/* Global top bar: brand · active-song picker · fullscreen. */
.app-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg1);
    border-bottom: 1px solid var(--bg2);
}
.app-bar-song {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    color: var(--green);
    font: inherit;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 0;
}
.app-bar-fs {
    flex: none;
    min-width: 40px;
    min-height: 40px;
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 18px;
    line-height: 1;
}
.app-bar-fs[hidden] { display: none; }
.app-bar-fs[data-on="true"] { color: var(--green); }

/* Settings overlay: full-screen panel, same shell as the help page. */
.settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--fg);
}
.settings-overlay header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 16px;
    border-bottom: 1px solid var(--bg2);
    background: var(--bg);
}
.settings-overlay header .title { flex: 1; font-size: 16px; font-weight: 600; }
.settings-overlay header .close {
    flex: none;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    color: var(--fg);
    font-size: 20px;
    line-height: 1;
}
.settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
}
.settings-group { padding: 14px 0; border-bottom: 1px solid var(--bg1); }
.settings-group h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--fg); }
.settings-hint { margin: 2px 0 10px; font-size: 12px; color: var(--fg-dim); line-height: 1.4; }
.settings-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-opt {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 12px;
    background: var(--bg1);
    border: 1px solid var(--bg2);
    border-radius: 8px;
    color: var(--fg-dim);
    font: inherit;
    font-size: 13px;
    white-space: nowrap;
}
.settings-opt[data-on="true"] {
    color: var(--bg);
    background: var(--green);
    border-color: var(--green);
}
.settings-toggle { display: flex; align-items: center; gap: 12px; }
.settings-toggle > div { flex: 1; min-width: 0; }
.settings-toggle .settings-hint { margin-bottom: 0; }
.settings-switch {
    flex: none;
    width: 52px;
    height: 30px;
    border-radius: 15px;
    border: 1px solid var(--bg3);
    background: var(--bg2);
    position: relative;
    padding: 0;
}
.settings-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--fg-dim);
    transition: transform .12s ease;
}
.settings-switch[data-on="true"] { background: var(--green); border-color: var(--green); }
.settings-switch[data-on="true"]::after { transform: translateX(22px); background: var(--bg); }
.settings-note { margin: 10px 0 0; font-size: 12px; color: var(--yellow); }
.settings-reload {
    background: none;
    border: 1px solid var(--yellow);
    border-radius: 6px;
    color: var(--yellow);
    font: inherit;
    font-size: 12px;
    padding: 4px 10px;
}
