/* Music tab (music.js) — chart chips, song list, now-playing panel, mini player */

.mu-app { color: var(--neo-text, #f5f5f7); }

.mu-top { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.mu-search {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 6px 6px 14px;
    background: var(--neo-surface, rgba(22,22,28,.55));
    border: 1px solid var(--neo-line-hi, rgba(255,255,255,.16));
    border-radius: 999px;
}
.mu-search input {
    flex: 1; min-width: 0; background: none; border: 0; outline: 0;
    color: inherit; font: inherit; font-size: 15px; padding: 6px 0;
}

.mu-btn {
    border: 1px solid var(--neo-line-hi, rgba(255,255,255,.16));
    background: rgba(255,255,255,.06); color: inherit;
    padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: background .15s;
}
.mu-btn:hover { background: rgba(255,255,255,.12); }
.mu-btn-primary { background: var(--neo-accent, #8ab4ff); border-color: transparent; color: #0a0a0d; }
.mu-btn-primary:hover { background: #a9c7ff; }

.mu-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.mu-chips::-webkit-scrollbar { display: none; }
.mu-chip {
    flex: none; border: 1px solid var(--neo-line, rgba(255,255,255,.08));
    background: rgba(255,255,255,.05); color: inherit;
    padding: 7px 13px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer;
    transition: background .15s, color .15s;
}
.mu-chip:hover { background: rgba(255,255,255,.1); }
.mu-chip.active { background: #f5f5f7; color: #0a0a0d; border-color: transparent; font-weight: 600; }

.mu-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }

.mu-listwrap, .mu-now {
    background: var(--neo-surface, rgba(22,22,28,.55));
    border: 1px solid var(--neo-line, rgba(255,255,255,.08));
    border-radius: 20px;
}
.mu-listwrap { padding: 14px; min-width: 0; }
.mu-listhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 4px 10px; }
.mu-listhead h2 { margin: 0; font-size: 18px; }

.mu-list { max-height: 62vh; overflow-y: auto; }
.mu-row {
    display: grid; grid-template-columns: 28px 48px minmax(0,1fr) 34px; gap: 12px; align-items: center;
    padding: 7px 8px; border-radius: 12px; cursor: pointer;
}
.mu-row:hover { background: rgba(255,255,255,.06); }
.mu-row.playing { background: rgba(138,180,255,.12); }
.mu-row.playing .mu-row-title, .mu-row.playing .mu-num { color: var(--neo-accent, #8ab4ff); }
.mu-num { text-align: center; font-size: 13px; color: var(--neo-faint, rgba(235,235,245,.32)); font-variant-numeric: tabular-nums; }
.mu-row img, .mu-up img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: #222; }
.mu-row-text { min-width: 0; }
.mu-row-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-row-artist { font-size: 12px; color: var(--neo-dim, rgba(235,235,245,.6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-row-like { background: none; border: 0; font-size: 16px; cursor: pointer; opacity: .7; }
.mu-row-like:hover { opacity: 1; }
.mu-status { padding: 30px 10px; text-align: center; color: var(--neo-dim, rgba(235,235,245,.6)); }
.mu-status.small { padding: 10px; font-size: 13px; }

.mu-now { padding: 14px; position: sticky; top: 12px; }
.mu-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.mu-video iframe, .mu-video > div:first-child { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mu-video-empty {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    font-size: 38px; background: linear-gradient(135deg, #1b1b2a, #0d0d14);
}
.mu-video-empty span { font-size: 13px; color: var(--neo-dim, rgba(235,235,245,.6)); }
.mu-meta { margin: 12px 2px 8px; }
.mu-title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.mu-artist { font-size: 13px; color: var(--neo-dim, rgba(235,235,245,.6)); margin-top: 2px; }

.mu-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); cursor: pointer; overflow: hidden; }
.mu-bar-fill { height: 100%; width: 0; background: var(--neo-accent, #8ab4ff); border-radius: 99px; }
.mu-times { display: flex; justify-content: space-between; font-size: 11px; color: var(--neo-faint, rgba(235,235,245,.32)); margin-top: 4px; font-variant-numeric: tabular-nums; }

.mu-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; }
.mu-ctl {
    width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.06); color: inherit; font-size: 16px; transition: background .15s, transform .1s;
}
.mu-ctl:hover { background: rgba(255,255,255,.14); }
.mu-ctl:active { transform: scale(.92); }
.mu-ctl.on { background: rgba(138,180,255,.25); }
.mu-ctl-big { width: 54px; height: 54px; font-size: 20px; background: #f5f5f7; color: #0a0a0d; }
.mu-ctl-big:hover { background: #fff; }
.mu-extra { display: flex; align-items: center; gap: 10px; }
.mu-extra input[type=range] { flex: 1; accent-color: var(--neo-accent, #8ab4ff); }

.mu-upnext-h { margin: 14px 2px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--neo-faint, rgba(235,235,245,.32)); }
.mu-upnext { max-height: 230px; overflow-y: auto; }
.mu-up { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 10px; align-items: center; padding: 5px; border-radius: 10px; cursor: pointer; }
.mu-up:hover { background: rgba(255,255,255,.06); }
.mu-up img { width: 40px; height: 40px; }

/* Mini player on other tabs */
#muMini {
    position: fixed; right: 18px; bottom: 18px; z-index: 9000;
    display: none; align-items: center; gap: 10px;
    width: 320px; max-width: calc(100vw - 32px); padding: 8px 10px 12px 8px;
    background: rgba(20,20,28,.92); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.5); color: #f5f5f7; cursor: pointer;
}
#muMini.show { display: flex; }
#muMini img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; }
.mu-mini-text { flex: 1; min-width: 0; }
#muMini button {
    flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.08); color: inherit; font-size: 14px;
}
#muMini button:hover { background: rgba(255,255,255,.18); }
.mu-mini-bar { position: absolute; left: 12px; right: 12px; bottom: 5px; height: 3px; border-radius: 9px; background: rgba(255,255,255,.12); overflow: hidden; }
#muMiniFill { height: 100%; width: 0; background: var(--neo-accent, #8ab4ff); }

@media (max-width: 1000px) {
    .mu-main { grid-template-columns: 1fr; }
    .mu-now { position: static; order: -1; }
    .mu-list { max-height: none; }
}
@media (max-width: 900px) {
    #muMini { bottom: 84px; right: 16px; } /* above the bottom tab bar */
}
