body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #060913;
    overflow: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

.header-menu-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: -12px;
    z-index: 80;
    width: 348px;
    max-height: calc(100vh - 86px);
    overflow: hidden auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: #1f2937;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06);
    padding: 16px 0 12px;
    transform-origin: top right;
    animation: headerMenuIn 160ms ease-out;
}

.header-menu-panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 17px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.98);
    transform: rotate(45deg);
    box-shadow: -1px -1px 0 rgba(15, 23, 42, 0.04);
}

.header-menu-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 4px 18px 15px;
}

.header-menu-quick button,
.header-menu-list button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.header-menu-quick button {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 12px;
}

.header-menu-quick span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(180deg, #4fc3ff, #1e9bff);
    color: #fff;
    box-shadow: 0 8px 18px rgba(30, 155, 255, 0.24);
}

.header-menu-quick svg {
    width: 19px;
    height: 19px;
}

.header-menu-quick em {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

.header-menu-list {
    padding: 0 10px;
}

.header-menu-list button {
    position: relative;
    display: flex;
    width: 100%;
    height: 36px;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    padding: 0 12px;
    color: #374151;
    font-size: 14px;
    text-align: left;
    transition: background 140ms ease, color 140ms ease;
}

.header-menu-list button:hover,
.header-menu-quick button:hover span {
    background: #eef7ff;
    color: #0ea5e9;
}

.header-menu-list svg {
    width: 17px;
    height: 17px;
    color: #6b7280;
}

.header-menu-list button:hover svg {
    color: #0ea5e9;
}

.header-menu-list span {
    flex: 1;
}

.header-menu-list hr {
    height: 1px;
    border: 0;
    margin: 8px 6px;
    background: #edf0f5;
}

.menu-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ef4444;
}

.menu-arrow {
    flex: 0 0 auto;
    width: 14px !important;
    height: 14px !important;
}

@keyframes headerMenuIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 720px) {
    .header-menu-panel {
        right: -88px;
        width: min(348px, calc(100vw - 28px));
    }
}

.admin-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
}

.admin-settings-modal.hidden { display: none; }

.admin-settings-dialog {
    width: min(980px, calc(100vw - 48px));
    height: min(680px, calc(100vh - 56px));
    overflow: hidden;
    border-radius: 18px;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.admin-settings-head {
    display: flex;
    height: 76px;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.admin-settings-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.admin-settings-head p {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.admin-settings-head button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
}

.admin-settings-body {
    display: grid;
    height: calc(100% - 76px);
    grid-template-columns: 190px 1fr;
}

.admin-settings-tabs {
    padding: 18px 12px;
    border-right: 1px solid #e5e7eb;
    background: #fff;
}

.admin-settings-tabs button {
    display: flex;
    width: 100%;
    height: 42px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    padding: 0 14px;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.admin-settings-tabs button.active,
.admin-settings-tabs button:hover {
    background: #e0f2fe;
    color: #0284c7;
}

.admin-settings-tabs svg {
    width: 17px;
    height: 17px;
}

.admin-settings-content {
    min-width: 0;
    overflow: hidden;
    padding: 20px;
}

.admin-tab-panel { display: none; height: 100%; }
.admin-tab-panel.active { display: block; }

.admin-tab-panel h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
}

.admin-table-wrap {
    height: calc(100% - 40px);
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.admin-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table-wrap th,
.admin-table-wrap td {
    border-bottom: 1px solid #edf2f7;
    padding: 11px 12px;
    white-space: nowrap;
    text-align: left;
}

.admin-table-wrap th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
}

.admin-table-wrap td {
    color: #1f2937;
}


.add-to-playlist-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.56);
    backdrop-filter: blur(8px);
}

.add-to-playlist-modal.hidden { display: none; }

.add-to-playlist-dialog {
    width: min(420px, calc(100vw - 36px));
    max-height: min(560px, calc(100vh - 56px));
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    color: #e5f6ff;
}

.add-to-playlist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.add-to-playlist-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.add-to-playlist-head p {
    margin-top: 4px;
    color: rgba(203, 213, 225, 0.72);
    font-size: 12px;
}

.add-to-playlist-head button {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.add-to-playlist-list {
    max-height: 420px;
    overflow: auto;
    padding: 10px;
}

.add-to-playlist-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 12px;
    padding: 10px;
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    transition: background 150ms ease, color 150ms ease;
}

.add-to-playlist-item:hover {
    background: rgba(14, 165, 233, 0.13);
    color: #67e8f9;
}

.add-to-playlist-cover {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.24);
    object-fit: cover;
}

.add-to-playlist-meta strong,
.add-to-playlist-meta small {
    display: block;
}

.add-to-playlist-meta strong {
    font-size: 14px;
}

.add-to-playlist-meta small {
    margin-top: 3px;
    color: rgba(148, 163, 184, 0.8);
    font-size: 12px;
}



.sidebar-scroll {
    padding: 0 8px 54px 10px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.app-sidebar:hover .sidebar-scroll {
    scrollbar-color: rgba(96, 165, 250, 0.36) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

.app-sidebar:hover .sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.36);
}

.app-sidebar:hover .sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.56);
}

.app-sidebar.glass-panel {
    position: relative;
    background:
        radial-gradient(circle at 40% 0%, rgba(14, 165, 233, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(18, 31, 51, 0.96), rgba(13, 22, 38, 0.96));
    border-color: rgba(125, 211, 252, 0.1);
    box-shadow: inset -1px 0 0 rgba(125, 211, 252, 0.08);
}

.sidebar-brand {
    height: auto;
    padding: 12px 20px 12px 22px;
}

.sidebar-menu {
    gap: 2px;
}

.sidebar-kugou-link {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 9px;
    border-radius: 4px;
    padding: 0 12px;
    color: rgba(219, 234, 254, 0.76);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transition: background 140ms ease, color 140ms ease;
}

.sidebar-kugou-link:hover,
.sidebar-kugou-link.active {
    background: rgba(59, 130, 246, 0.16);
    color: #fff;
}

.sidebar-kugou-link.active {
    font-weight: 500;
}

.sidebar-icon-badge {
    display: flex;
    width: 20px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #facc15;
    color: #4a2d00;
}

.sidebar-recent-static {
    color: rgba(255, 255, 255, 0.74);
}

.sidebar-eq-icon {
    display: none;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fbbf24;
}

body.is-playing .sidebar-recent-static {
    display: none;
}

body.is-playing .sidebar-eq-icon {
    display: inline-flex;
}

.sidebar-eq-icon span {
    width: 2px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    animation: sidebarEqPulse 780ms ease-in-out infinite;
}

.sidebar-eq-icon span:nth-child(2) {
    height: 13px;
    animation-delay: -180ms;
}

.sidebar-eq-icon span:nth-child(3) {
    height: 9px;
    animation-delay: -340ms;
}

.sidebar-eq-icon span:nth-child(4) {
    height: 15px;
    animation-delay: -520ms;
}

@keyframes sidebarEqPulse {
    0%, 100% { transform: scaleY(0.42); opacity: 0.72; }
    50% { transform: scaleY(1); opacity: 1; }
}

.sidebar-promo-pill {
    border-radius: 3px;
    background: #f8d876;
    padding: 2px 5px;
    color: #7d5200;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.sidebar-divider {
    height: 1px;
    margin: 14px 12px;
    background: rgba(147, 197, 253, 0.12);
}

.sidebar-playlist-tabs {
    margin-top: 15px;
    padding: 0 10px 0 12px;
    color: rgba(219, 234, 254, 0.68);
    font-size: 12px;
    line-height: 26px;
}

.sidebar-playlist {
    gap: 1px;
    margin-top: 6px;
}

.sidebar-playlist-link {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    padding: 3px 9px 3px 7px;
    color: rgba(219, 234, 254, 0.72);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    transition: background 140ms ease, color 140ms ease;
}

.sidebar-playlist-link:hover,
.sidebar-playlist-link.active {
    background: rgba(59, 130, 246, 0.13);
    color: #fff;
}

.sidebar-playlist-link.active span:last-child {
    color: #93c5fd;
}

.playlist-cover {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    object-fit: cover;
    font-size: 14px;
}

.sidebar-kugou-link svg,
.sidebar-playlist-link svg {
    flex: 0 0 auto;
    opacity: 0.9;
}

.sidebar-kugou-link span,
.sidebar-playlist-link span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.liked-playlist-preview {
    position: fixed;
    left: var(--liked-preview-x, 220px);
    top: var(--liked-preview-y, 0);
    z-index: 155;
    display: flex;
    width: 260px;
    min-height: 116px;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background:
        radial-gradient(circle at 18% 12%, rgba(248, 113, 113, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(61, 50, 44, 0.98), rgba(35, 39, 51, 0.98));
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(15, 23, 42, 0.08);
    color: rgba(241, 245, 249, 0.95);
    padding: 13px 16px 13px 13px;
    pointer-events: auto;
}

.liked-playlist-preview.hidden {
    display: none;
}

.liked-playlist-preview::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(58, 49, 45, 0.98);
    transform: translateY(-50%) rotate(45deg);
}

.liked-playlist-preview.is-left::before {
    right: -7px;
    left: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
    border-left: 0;
}

.liked-preview-cover {
    display: flex;
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background:
        linear-gradient(135deg, rgba(255, 235, 238, 0.96), rgba(255, 190, 201, 0.96));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.liked-preview-heart {
    display: block;
    width: 24px;
    height: 24px;
    background: #ff6b6b;
    clip-path: path("M12 20C4 13 1 8 4 4C7 1 11 2 12 6C13 2 17 1 20 4C23 8 20 13 12 20Z");
    filter: drop-shadow(0 2px 3px rgba(127, 29, 29, 0.28));
    transform: scale(1.55);
}

.liked-preview-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.liked-preview-info strong {
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.liked-preview-info span,
.liked-preview-info small {
    overflow: hidden;
    color: rgba(226, 232, 240, 0.72);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-context-menu {
    position: fixed;
    left: var(--playlist-menu-x, 0);
    top: var(--playlist-menu-y, 0);
    z-index: 160;
    width: 186px;
    padding: 14px 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 16px 38px rgba(15, 23, 42, 0.2),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    color: #1f2933;
    font-size: 14px;
    line-height: 1;
}

.playlist-context-menu.hidden {
    display: none;
}

.playlist-context-menu button {
    display: flex;
    width: 100%;
    height: 40px;
    align-items: center;
    gap: 11px;
    border: 0;
    padding: 0 20px;
    background: transparent;
    color: inherit;
    text-align: left;
    transition: background 120ms ease, color 120ms ease;
}

.playlist-context-menu button:hover,
.playlist-context-menu button:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    outline: none;
}

.playlist-context-menu button.is-disabled {
    color: rgba(31, 41, 51, 0.36);
    cursor: not-allowed;
}

.playlist-context-menu button.is-disabled:hover {
    background: transparent;
}

.playlist-context-menu svg,
.playlist-context-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.playlist-context-divider {
    height: 1px;
    margin: 10px 0;
    background: rgba(15, 23, 42, 0.08);
}

.playlist-add-menu {
    position: fixed;
    left: var(--playlist-add-menu-x, 0);
    top: var(--playlist-add-menu-y, 0);
    z-index: 160;
    width: 152px;
    padding: 12px 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.2),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    color: #1f2933;
    font-size: 14px;
}

.playlist-add-menu.hidden {
    display: none;
}

.playlist-add-menu button {
    display: block;
    width: 100%;
    height: 38px;
    border: 0;
    padding: 0 0 0 48px;
    background: transparent;
    color: inherit;
    text-align: left;
    transition: background 120ms ease;
}

.playlist-add-menu button:hover,
.playlist-add-menu button:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    outline: none;
}

.player-more-menu {
    position: fixed;
    left: var(--player-more-menu-x, 0);
    top: var(--player-more-menu-y, 0);
    z-index: 170;
    width: 150px;
    padding: 8px 0 9px;
    border-radius: 2px;
    background: #483633;
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1;
}

.player-more-menu.hidden {
    display: none;
}

.player-more-menu::after {
    content: "";
    position: absolute;
    left: var(--player-more-arrow-x, 50%);
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: #483633;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.04);
}

.player-more-menu.is-below::after {
    top: -8px;
    bottom: auto;
    box-shadow: -2px -2px 1px rgba(0, 0, 0, 0.04);
}

.player-more-menu button {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 36px;
    align-items: center;
    gap: 12px;
    border: 0;
    padding: 0 18px;
    background: transparent;
    color: inherit;
    text-align: left;
    white-space: nowrap;
    transition: background 120ms ease, color 120ms ease;
}

.player-more-menu button:hover,
.player-more-menu button:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.player-more-menu svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    stroke-width: 1.8;
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 9, 18, 0.64);
    backdrop-filter: blur(12px);
    padding: 24px;
}

.login-modal.hidden {
    display: none;
}

.login-card {
    position: relative;
    width: min(390px, 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 0%, rgba(125, 211, 252, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(16, 24, 40, 0.98), rgba(9, 15, 28, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    padding: 34px 30px 26px;
    color: #e5edf8;
}

.login-close-btn {
    position: absolute;
    right: 16px;
    top: 14px;
    color: rgba(226, 232, 240, 0.62);
    transition: color 140ms ease;
}

.login-close-btn:hover {
    color: #fff;
}

.login-brand-mark {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    box-shadow: 0 12px 26px rgba(6, 182, 212, 0.24);
    color: #fff;
}

.login-card h2 {
    margin-top: 18px;
    font-size: 22px;
    font-weight: 800;
}

.login-subtitle {
    margin-top: 7px;
    color: rgba(203, 213, 225, 0.72);
    font-size: 13px;
    line-height: 1.6;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: rgba(226, 232, 240, 0.82);
    font-size: 13px;
}

.login-form input {
    height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.72);
    padding: 0 12px;
    color: #fff;
    outline: none;
    transition: border-color 140ms ease, background 140ms ease;
}

.login-form input:focus {
    border-color: rgba(125, 211, 252, 0.72);
    background: rgba(15, 23, 42, 0.92);
}

.login-message {
    min-height: 18px;
    color: #fca5a5;
    font-size: 12px;
}

.login-message.is-success {
    color: #67e8f9;
}

.login-form button[type="submit"] {
    height: 40px;
    border-radius: 5px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    font-weight: 800;
    transition: filter 140ms ease, transform 140ms ease;
}

.login-form button[type="submit"]:hover {
    filter: brightness(1.08);
}

.login-form button[type="submit"]:active {
    transform: translateY(1px);
}

.login-form button[type="submit"]:disabled {
    cursor: wait;
    filter: grayscale(0.35);
    opacity: 0.72;
}

.login-demo {
    margin-top: 15px;
    color: rgba(148, 163, 184, 0.8);
    font-size: 12px;
}

.level-panel {
    position: fixed;
    right: 88px;
    top: 56px;
    z-index: 140;
    width: min(350px, calc(100vw - 32px));
    overflow: hidden;
    border-radius: 6px;
    background:
        radial-gradient(circle at 32% 14%, rgba(255, 255, 255, 0.62), transparent 28%),
        linear-gradient(135deg, #f9c3ef 0%, #ffd17a 100%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.28);
    color: #334155;
    padding: 16px 20px 28px;
}

.level-panel.hidden,
.level-rules-modal.hidden {
    display: none;
}

.level-rules-btn {
    position: absolute;
    right: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8a6b39;
    font-size: 12px;
    transition: color 140ms ease;
}

.level-rules-btn:hover {
    color: #5f431f;
}

.level-emblem {
    position: relative;
    display: flex;
    width: 138px;
    height: 128px;
    margin: 18px auto 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(37, 99, 235, 0.32);
}

.level-emblem::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0, 91% 25%, 91% 75%, 50% 100%, 9% 75%, 9% 25%);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), transparent 34%),
        linear-gradient(180deg, #7dd3fc 0%, #3b82f6 54%, #2563eb 100%);
    border: 7px solid rgba(255, 227, 122, 0.94);
    box-shadow:
        0 10px 20px rgba(180, 83, 9, 0.24),
        inset 0 0 0 4px rgba(255, 255, 255, 0.32);
}

.level-emblem::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 22px;
    height: 22px;
    border: 3px solid #ffd76a;
    border-radius: 50% 50% 45% 45%;
    background: rgba(96, 165, 250, 0.46);
    transform: translateX(-50%);
}

.level-emblem-small,
.level-emblem strong {
    position: relative;
    z-index: 1;
}

.level-emblem-small {
    margin-top: -10px;
    font-size: 15px;
    font-weight: 800;
}

.level-emblem strong {
    font-size: 44px;
    line-height: 0.95;
}

.level-tip {
    margin: 2px 0 14px;
    color: #55739f;
    font-size: 12px;
    text-align: center;
}

.level-progress-card {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.88);
    padding: 20px 14px 14px;
}

.level-progress-head,
.level-progress-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.level-progress-head {
    color: #111827;
    font-size: 12px;
}

.level-progress-head strong {
    font-size: 15px;
}

.level-progress-track {
    position: relative;
    height: 8px;
    margin: 15px 0 8px;
    border-radius: 999px;
    background: #e6e9f4;
}

.level-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 18%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c8cff, #a78bfa);
}

.level-progress-bonus {
    position: absolute;
    left: 18%;
    top: 50%;
    display: inline-flex;
    height: 18px;
    align-items: center;
    border-radius: 999px;
    padding: 0 6px;
    background: #ff9f43;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    transform: translate(-50%, -50%);
}

.level-progress-foot {
    color: #8b9bd6;
    font-size: 11px;
}

.level-progress-foot span:nth-child(2) {
    color: #6980d8;
}

.level-vip-btn {
    display: flex;
    width: 100%;
    height: 32px;
    margin-top: 18px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 3px;
    background: #3f3836;
    color: #f9e8d0;
    font-size: 14px;
    font-weight: 700;
    transition: background 140ms ease;
}

.level-vip-btn:hover {
    background: #2f2928;
}

.level-rules-modal {
    position: fixed;
    inset: 0;
    z-index: 170;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 12, 22, 0.58);
    padding: 32px;
}

.level-rules-card {
    display: flex;
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 64px));
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
    color: #1f2937;
}

.level-rules-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 22px;
}

.level-rules-header h2 {
    font-size: 18px;
    font-weight: 800;
}

.level-rules-header button {
    color: #64748b;
    transition: color 140ms ease;
}

.level-rules-header button:hover {
    color: #111827;
}

.level-rules-body {
    overflow-y: auto;
    padding: 20px 24px 24px;
    font-size: 14px;
    line-height: 1.75;
}

.level-rules-body h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
}

.level-rules-body h3:not(:first-child) {
    margin-top: 22px;
}

.level-rules-body p {
    margin-bottom: 12px;
    color: #475569;
}

.level-rules-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 16px;
    font-size: 13px;
}

.level-rules-body th,
.level-rules-body td {
    border: 1px solid #e5e7eb;
    padding: 7px 10px;
    text-align: left;
}

.level-rules-body th {
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
}

.level-rules-note {
    color: #64748b;
}

@media (max-width: 820px) {
    .level-panel {
        right: 16px;
        top: 72px;
    }

    .level-rules-modal {
        padding: 16px;
    }
}

/* 极光背景动画 */
.aurora-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    mix-blend-mode: screen;
    transition: all 1s ease-in-out;
}
.blob-1 {
    background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
    width: 600px;
    height: 600px;
    top: -200px;
    left: -100px;
    animation: float 20s infinite alternate;
}
.blob-2 {
    background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
    width: 550px;
    height: 550px;
    bottom: -150px;
    right: -100px;
    animation: float-reverse 25s infinite alternate;
}
.blob-3 {
    background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
    width: 400px;
    height: 400px;
    top: 40%;
    left: 35%;
    animation: float 18s infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(40px, -60px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes float-reverse {
    0% { transform: translate(0px, 0px) scale(1.05); }
    50% { transform: translate(-50px, 40px) scale(0.9); }
    100% { transform: translate(30px, -20px) scale(1.1); }
}

/* 毛玻璃面板样式 */
.glass-panel {
    background: rgba(11, 15, 30, 0.5);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-card {
    background: rgba(18, 24, 43, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: rgba(24, 33, 61, 0.5);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.25);
    transform: translateY(-4px);
}

body.lyrics-open footer.glass-panel {
    z-index: 60;
    background: rgba(14, 31, 49, 0.98);
    border-top-color: rgba(147, 197, 253, 0.18);
    box-shadow: 0 -10px 28px rgba(7, 16, 28, 0.38);
}

body.lyrics-open .player-track-info {
    display: none;
}

body.lyrics-open .lyrics-footer-tools {
    display: flex;
}

#play-pause-btn,
#play-icon {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}

#play-pause-btn:focus,
#play-pause-btn:focus-visible,
#play-icon:focus,
#play-icon:focus-visible {
    border: 0;
    box-shadow: none;
    outline: none;
}

#play-icon svg {
    width: 32px;
    height: 32px;
}

.player-icon-action,
.player-vip-action {
    position: relative;
    display: inline-flex;
    width: 28px;
    height: 30px;
    flex: 0 0 auto;
    align-items: center;
    border: 0;
    padding: 0;
    justify-content: center;
    background: transparent;
    color: rgba(203, 213, 225, 0.88);
    transition: color 150ms ease, transform 150ms ease;
}

.player-icon-action:hover,
.player-vip-action:hover {
    color: #06b6d4;
}

.player-icon-action:active,
.player-vip-action:active {
    transform: translateY(1px);
}

.player-icon-like {
    color: rgba(203, 213, 225, 0.88);
}

.player-icon-like:hover {
    color: #06b6d4;
}

.player-icon-like.is-liked {
    color: #ff8ea0;
}

.player-icon-like.is-liked:hover {
    color: #06b6d4;
}

.player-icon-badge {
    position: absolute;
    left: 17px;
    top: -3px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.player-icon-badge-like {
    left: 19px;
    top: -4px;
    color: rgba(203, 213, 225, 0.88);
    display: none;
}

.player-icon-like.is-liked .player-icon-badge-like {
    color: #fb7185;
    display: block;
}

.qile-heart-icon {
    display: block;
    width: 18px;
    height: 18px;
    overflow: visible;
}

.player-icon-like .qile-heart-icon {
    width: 22px;
    height: 22px;
}

.player-icon-like.is-liked .qile-heart-icon {
    -webkit-mask-image:
        radial-gradient(circle at 84% 11%, transparent 0 3.15px, #000 3.5px),
        linear-gradient(#000, #000);
    -webkit-mask-composite: source-in;
    mask-image:
        radial-gradient(circle at 84% 11%, transparent 0 3.15px, #000 3.5px),
        linear-gradient(#000, #000);
    mask-composite: intersect;
}

.qile-heart-icon path {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
    transition: fill 150ms ease, stroke 150ms ease, filter 150ms ease;
}

.player-icon-like.is-liked .qile-heart-icon path,
.song-fav-btn.is-liked .qile-heart-icon path {
    fill: #ff6b6b;
    stroke: #ff6b6b;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.player-icon-comment svg {
    display: block;
    width: 22px;
    height: 22px;
    overflow: visible;
}

.player-icon-comment.has-count svg {
    -webkit-mask-image:
        radial-gradient(circle at 84% 11%, transparent 0 3.15px, #000 3.5px),
        linear-gradient(#000, #000);
    -webkit-mask-composite: source-in;
    mask-image:
        radial-gradient(circle at 84% 11%, transparent 0 3.15px, #000 3.5px),
        linear-gradient(#000, #000);
    mask-composite: intersect;
}

.player-icon-comment .player-icon-badge {
    left: 19px;
    top: -4px;
    color: rgba(203, 213, 225, 0.88);
}

.player-vip-action {
    width: 32px;
    height: 30px;
    overflow: visible;
}

.player-vip-image {
    display: block;
    width: 25px;
    height: 20px;
    object-fit: contain;
    opacity: 0.88;
    transition: filter 150ms ease, opacity 150ms ease, transform 150ms ease;
}

.player-vip-action:hover .player-vip-image {
    filter: brightness(0) saturate(100%) invert(54%) sepia(86%) saturate(1469%) hue-rotate(148deg) brightness(94%) contrast(95%);
    opacity: 1;
}

body.player-empty #current-cover-button {
    pointer-events: none;
    border-color: rgba(148, 163, 184, 0.12);
    opacity: 0.92;
}

body.player-empty #current-cover-button span {
    display: none;
}

body.player-empty #current-title {
    color: rgba(226, 232, 240, 0.88);
}

body.player-empty #current-artist-name,
body.player-empty #current-title-separator,
body.player-empty .player-icon-badge {
    display: none;
}

body.player-empty [data-requires-track],
body.player-empty .player-quality-btn {
    color: rgba(148, 163, 184, 0.38) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    cursor: default;
    opacity: 0.58;
    pointer-events: none;
}

body.player-empty [data-requires-track]:hover,
body.player-empty .player-quality-btn:hover {
    color: rgba(148, 163, 184, 0.38) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    transform: none;
}

body.player-empty .player-icon-like .qile-heart-icon path {
    fill: transparent !important;
    stroke: currentColor !important;
    filter: none !important;
}

body.player-empty .player-vip-image {
    filter: grayscale(1) brightness(0.72) opacity(0.74) !important;
    opacity: 0.58;
}

body.player-empty #play-icon {
    opacity: 0.48;
}

body.player-empty #player-upgrade-btn {
    display: none;
}

.player-right-tools {
    gap: 12px;
}

.player-right-tools button {
    min-width: 23px;
    min-height: 23px;
}

.player-right-tools svg {
    width: 18px;
    height: 18px;
}

#repeat-btn,
#volume-mute-btn {
    display: inline-flex;
    min-width: 28px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    color: rgba(203, 213, 225, 0.88);
}

#repeat-btn:hover,
#volume-mute-btn:hover {
    color: #06b6d4;
}

#repeat-btn svg,
#volume-icon {
    width: 23px;
    height: 23px;
    color: currentColor;
}

.volume-speaker-icon {
    display: block;
    overflow: visible;
    color: currentColor;
}

.volume-speaker-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.volume-speaker-icon .volume-speaker-body {
    fill: transparent;
}

.volume-speaker-icon .volume-wave,
.volume-speaker-icon .volume-muted-x {
    opacity: 0;
    transition: opacity 120ms ease;
}

.volume-speaker-icon.is-low .volume-wave-low,
.volume-speaker-icon.is-mid .volume-wave-low,
.volume-speaker-icon.is-high .volume-wave-low,
.volume-speaker-icon.is-high .volume-wave-high {
    opacity: 1;
}

.volume-speaker-icon.is-muted .volume-muted-x {
    opacity: 1;
}

.player-right-tools .player-quality-btn {
    min-width: 34px;
    min-height: 23px;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 12px;
}

#footer-lyrics-btn {
    min-width: 23px;
    min-height: 23px;
    font-size: 16px;
    line-height: 1;
}

/* 文字流光/渐变 */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #a78bfa 70%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-brand {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
}
.gradient-glow {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}
.gradient-glow-active {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
}

.songs-column-wide {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
}

.songs-workspace-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: none !important;
}

.songs-workspace-search #songs-list-container {
    width: 100%;
}

.app-main-content {
    padding-left: clamp(30px, 3.6vw, 58px);
    padding-right: clamp(30px, 3.6vw, 58px);
}

.home-feature-shell {
    position: relative;
    --feature-arrow-gutter: 40px;
    margin-left: calc(var(--feature-arrow-gutter) * -1);
    margin-right: calc(var(--feature-arrow-gutter) * -1);
    padding: 0 var(--feature-arrow-gutter);
}

.home-feature-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.home-feature-strip::-webkit-scrollbar {
    display: none;
}

.home-feature-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    display: flex;
    width: 34px;
    height: 96px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(35, 19, 18, 0.62);
    transform: translateY(-50%);
    transition: background 160ms ease, color 160ms ease;
}

.home-feature-chevron {
    display: block;
    width: 18px;
    height: 18px;
    border-top: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
}

.home-feature-arrow-left .home-feature-chevron {
    transform: rotate(-45deg) translate(2px, 2px);
}

.home-feature-arrow-right .home-feature-chevron {
    transform: rotate(135deg) translate(2px, 2px);
}

.home-feature-arrow:hover {
    color: #fff;
    background: rgba(35, 19, 18, 0.82);
}

.home-feature-arrow-left {
    left: 3px;
}

.home-feature-arrow-right {
    right: 3px;
}

.home-feature-card {
    position: relative;
    min-width: 224px;
    height: 268px;
    overflow: hidden;
    border-radius: 4px;
    padding: 24px 22px;
    background-image: linear-gradient(135deg, var(--feature-from, #e8799a), var(--feature-to, #f0a8ba));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.home-feature-card h2 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.home-feature-card p {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
}

.feature-cover {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 74%;
    height: 61%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: -14px 14px 24px rgba(0, 0, 0, 0.18);
}

.feature-vinyl {
    position: absolute;
    left: 22px;
    bottom: 30px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #171717 0 6px, #272727 7px 8px);
}

.feature-paper,
.feature-cubes {
    position: absolute;
    left: 28px;
    bottom: 38px;
    width: 118px;
    height: 104px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.28);
}

.feature-cubes {
    left: 62px;
    width: 92px;
    background: rgba(255, 255, 255, 0.42);
}

.home-rec-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 24px 10px;
}

.home-rec-card {
    position: relative;
    min-width: 0;
    color: #fff;
}

.home-rec-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
}

.home-rec-card span {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.32);
    padding: 2px 7px;
    font-size: 12px;
    font-weight: 700;
}

.home-rec-card strong {
    position: absolute;
    left: 8px;
    bottom: 42px;
    z-index: 2;
    font-size: 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.home-rec-card p {
    margin-top: 8px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

#search-suggestions {
    position: absolute;
    left: 0;
    top: calc(100% + 2px);
    z-index: 60;
    width: 330px;
    max-height: 470px;
    overflow-y: auto;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    color: #1f2937;
}

.search-suggest-section {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 10px 0;
}

.search-suggest-section:last-child {
    border-bottom: 0;
}

.search-suggest-type {
    padding-top: 6px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

.search-suggest-items {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-suggest-item {
    width: 100%;
    min-width: 0;
    padding: 6px 12px;
    text-align: left;
    color: #374151;
    font-size: 14px;
    line-height: 1.35;
    transition: background 120ms ease;
}

.search-suggest-item:hover {
    background: rgba(59, 130, 246, 0.08);
}

@media (max-width: 1280px) {
    .home-rec-grid {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .app-main-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-feature-shell {
        --feature-arrow-gutter: 28px;
    }

    .home-rec-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

/* 隐藏原生 range 样式 */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #06b6d4;
    cursor: pointer;
    transition: transform 0.1s;
}
.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

.volume-popover {
    position: absolute;
    bottom: 42px;
    left: 50%;
    z-index: 30;
    display: flex;
    width: 64px;
    height: 198px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0 14px;
    border: 1px solid rgba(147, 197, 253, 0.08);
    border-radius: 5px;
    background: rgba(11, 15, 30, 0.95);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 140ms ease, transform 140ms ease;
    --volume-level: 70%;
}

.volume-popover::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 16px;
    height: 16px;
    background: rgba(11, 15, 30, 0.95);
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.05);
}

.volume-control:hover .volume-popover,
.volume-control:focus-within .volume-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.volume-slider-shell {
    position: relative;
    z-index: 2;
    width: 28px;
    height: 136px;
    flex: 0 0 auto;
    overflow: visible;
}

.volume-slider-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    overflow: visible;
    border-radius: 999px;
    background: rgba(229, 231, 235, 0.28);
    transform: translateX(-50%);
}

.volume-slider-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--volume-level);
    border-radius: inherit;
    background: #ffc83d;
    z-index: 1;
}

.volume-slider-thumb {
    position: absolute;
    left: 50%;
    bottom: var(--volume-level);
    z-index: 2;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffc83d;
    box-shadow:
        0 0 0 1px rgba(255, 207, 66, 0.32),
        0 2px 6px rgba(0, 0, 0, 0.22);
    transform: translate(-50%, 50%);
}

.volume-slider-vertical {
    position: absolute;
    inset: -4px 0;
    z-index: 2;
    width: 28px;
    height: 144px;
    opacity: 0;
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    cursor: pointer;
    writing-mode: vertical-lr;
    direction: rtl;
    background: transparent;
    outline: none;
}

.volume-slider-vertical::-webkit-slider-runnable-track {
    width: 28px;
    height: 136px;
    border-radius: 999px;
    background: transparent;
}

.volume-slider-vertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 15px;
    border-radius: 50%;
    background: transparent;
}

.volume-slider-vertical::-moz-range-track {
    width: 28px;
    height: 136px;
    border-radius: 999px;
    background: transparent;
}

.volume-slider-vertical::-moz-range-thumb {
    width: 28px;
    height: 15px;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.volume-popover #volume-percent {
    position: relative;
    z-index: 2;
    color: rgba(226, 232, 240, 0.76);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.lyrics-view {
    position: fixed;
    inset: 0;
    z-index: 18;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 38%, rgba(96, 165, 250, 0.22), transparent 30%),
        radial-gradient(circle at 72% 24%, rgba(14, 165, 233, 0.16), transparent 26%),
        linear-gradient(180deg, #1f4e72 0%, #1d4565 45%, #17384f 100%);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.992);
    filter: blur(10px);
    transition:
        opacity 280ms ease,
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 260ms ease;
    will-change: opacity, transform, filter;
}

.lyrics-view.hidden {
    display: none;
}

.lyrics-view.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.lyrics-topbar,
.lyrics-now-playing,
.lyrics-art-panel,
.lyrics-text-panel,
.lyrics-side-note,
.lyrics-translate-chip {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 300ms ease,
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lyrics-view.visible .lyrics-topbar,
.lyrics-view.visible .lyrics-now-playing,
.lyrics-view.visible .lyrics-art-panel,
.lyrics-view.visible .lyrics-text-panel,
.lyrics-view.visible .lyrics-side-note,
.lyrics-view.visible .lyrics-translate-chip {
    opacity: 1;
    transform: translateY(0);
}

.lyrics-view.visible .lyrics-art-panel {
    transition-delay: 55ms;
}

.lyrics-view.visible .lyrics-text-panel {
    transition-delay: 95ms;
}

.lyrics-view::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(4, 20, 35, 0.18);
    pointer-events: none;
}

.lyrics-topbar {
    position: relative;
    z-index: 3;
    display: grid;
    height: 52px;
    grid-template-columns: minmax(120px, 1fr) auto minmax(420px, 1fr);
    align-items: center;
    padding: 0 18px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.lyrics-collapse-btn {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.72);
    transition: color 150ms ease;
}

.lyrics-collapse-btn:hover {
    color: #fff;
}

.lyrics-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lyrics-tabs button {
    min-width: 60px;
    height: 28px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.56);
    transition: background 150ms ease, color 150ms ease;
}

.lyrics-tabs button.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lyrics-window-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
}

.lyrics-window-actions button {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.66);
    transition: color 150ms ease;
}

.lyrics-window-actions button:hover {
    color: #fff;
}

.lyrics-now-playing {
    position: relative;
    z-index: 3;
    margin: 0 0 28px;
    padding-left: var(--lyric-side-gutter, 64px);
    text-align: left;
}

.lyrics-now-playing h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.lyrics-now-playing p {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.lyrics-vip {
    display: inline-flex;
    height: 18px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 3px;
    padding: 0 3px;
    font-size: 11px;
    line-height: 1;
}

.lyrics-stage {
    position: relative;
    z-index: 2;
    display: grid;
    height: calc(100vh - 148px);
    min-height: 520px;
    grid-template-columns: minmax(420px, 46vw) minmax(380px, 1fr);
    align-items: center;
    column-gap: 52px;
    padding: 24px 9vw 100px;
    transition: padding-right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.lyrics-view.queue-open .lyrics-stage {
    grid-template-columns: 1fr;
    padding-left: 6vw;
    padding-right: calc(360px + 3vw);
    justify-items: start;
}
.lyrics-view.queue-open .lyrics-art-panel { display: none; }
.lyrics-view.queue-open .lyrics-text-panel { max-width: none; width: 100%; }

.lyrics-queue-cover {
    display: none;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lyrics-view.queue-open .lyrics-now-playing {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lyrics-view.queue-open .lyrics-queue-cover {
    display: block;
}

.lyrics-art-panel {
    display: flex;
    justify-content: flex-end;
}

.lyrics-record-scene {
    position: relative;
    width: min(38vw, 560px);
    min-width: 420px;
    aspect-ratio: 1.22 / 1;
}

.lyrics-album {
    position: absolute;
    left: 4%;
    top: 16%;
    z-index: 3;
    width: 63%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #2c2527;
    box-shadow: 0 18px 44px rgba(26, 16, 19, 0.38);
}

.lyrics-album img,
.lyrics-vinyl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lyrics-vinyl {
    position: absolute;
    left: 45%;
    top: 21%;
    z-index: 1;
    display: flex;
    width: 43%;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(14, 39, 66, 0.95) 0 13%, transparent 13%),
        repeating-radial-gradient(circle, rgba(96, 165, 250, 0.94) 0 7px, rgba(37, 99, 235, 0.88) 8px 12px, rgba(147, 197, 253, 0.82) 13px 17px);
    box-shadow: 12px 16px 36px rgba(8, 18, 31, 0.32);
    animation: lyricsVinylSpin 18s linear infinite;
    animation-play-state: paused;
}

.lyrics-vinyl::before {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: rgba(219, 234, 254, 0.24);
}

.lyrics-vinyl::after {
    content: "";
    position: absolute;
    inset: 44%;
    border-radius: 50%;
    background: #061425;
    box-shadow: 0 0 0 2px rgba(191, 219, 254, 0.32);
}

.lyrics-vinyl img {
    width: 46%;
    height: 46%;
    border-radius: 50%;
    opacity: 0.95;
}

.lyrics-wave {
    position: absolute;
    left: 0;
    right: 6%;
    bottom: 12%;
    z-index: 4;
    display: flex;
    height: 72px;
    align-items: flex-end;
    gap: 1px;
    border-bottom: 1px solid rgba(147, 197, 253, 0.28);
    opacity: 0.9;
}

.lyrics-wave span {
    flex: 1;
    height: 46%;
    border-radius: 999px 999px 0 0;
    background: repeating-linear-gradient(90deg, rgba(191, 219, 254, 0.96) 0 2px, transparent 2px 6px);
    transform-origin: bottom center;
    animation: lyricsWavePulse 1.3s ease-in-out infinite;
    animation-play-state: paused;
}

body.is-playing .lyrics-vinyl,
body.is-playing .lyrics-wave span {
    animation-play-state: running;
}

.lyrics-wave span:nth-child(2) { height: 34%; }
.lyrics-wave span:nth-child(3) { height: 68%; animation-delay: -210ms; }
.lyrics-wave span:nth-child(4) { height: 86%; animation-delay: -360ms; }
.lyrics-wave span:nth-child(5) { height: 52%; animation-delay: -520ms; }
.lyrics-wave span:nth-child(6) { height: 75%; animation-delay: -690ms; }
.lyrics-wave span:nth-child(7) { height: 58%; animation-delay: -840ms; }
.lyrics-wave span:nth-child(8) { height: 36%; animation-delay: -980ms; }

.lyrics-wave span:nth-child(2) { animation-delay: -120ms; }

@keyframes lyricsWavePulse {
    0%, 100% { transform: scaleY(0.72); opacity: 0.62; }
    45% { transform: scaleY(1.15); opacity: 1; }
}

@keyframes lyricsVinylSpin {
    to { transform: rotate(360deg); }
}

.lyrics-text-panel {
    --lyric-side-gutter: 64px;
    min-width: 0;
    max-width: 700px;
    align-self: stretch;
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    max-height: calc(100vh - 250px);
    padding-top: 34px;
    padding-bottom: 0;
}

.lyrics-lines::-webkit-scrollbar {
    display: none;
}

.lyrics-lines {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 8px;
    overflow-y: auto;
    padding: var(--lyric-top-padding, max(120px, 22vh)) 0 var(--lyric-bottom-padding, max(260px, 46vh)) var(--lyric-side-gutter, 64px);
    overscroll-behavior: contain;
    overflow-anchor: none;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 82%, transparent 100%);
}

.lyrics-empty {
    padding-top: 26px;
    color: rgba(191, 219, 254, 0.5);
    font-size: 24px;
    font-weight: 600;
}

.lyric-line {
    display: block;
    position: relative;
    margin: 0 0 21px;
    border: 0;
    padding: 0;
    width: 100%;
    max-width: none;
    appearance: none;
    background: none;
    color: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.52;
    opacity: 0.42;
    text-align: left;
    transition: color 240ms ease, opacity 240ms ease, transform 240ms ease, text-shadow 240ms ease;
}

.lyric-text {
    display: inline;
}

.lyric-credit-line {
    overflow: hidden;
    white-space: nowrap;
}

.lyric-credit-line .lyric-text {
    display: inline-flex;
    min-width: max-content;
    white-space: nowrap;
    transform: translateX(var(--credit-line-x, 0px));
    transition: transform 80ms linear;
    will-change: transform;
}

.lyric-credit-line .lyric-char {
    flex: 0 0 auto;
}

.lyric-seek-time {
    position: absolute;
    left: calc(var(--lyric-side-gutter, 64px) * -1);
    top: 50%;
    width: calc(var(--lyric-side-gutter, 64px) - 14px);
    color: #fde68a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 160ms ease;
    white-space: nowrap;
}

.lyrics-seek-floating {
    position: fixed;
    right: 18px;
    top: var(--seek-top, 50vh);
    z-index: 120;
    display: flex;
    width: min(240px, 24vw);
    align-items: center;
    gap: 13px;
    border: 0;
    padding: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 160ms ease;
}

.lyrics-seek-floating.visible {
    opacity: 1;
    pointer-events: auto;
}

.lyric-seek-rule {
    height: 1px;
    flex: 1 1 auto;
    background: rgba(253, 230, 138, 0.48);
}

.lyric-seek-play {
    position: relative;
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 2px solid #fde68a;
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(253, 230, 138, 0.08);
    z-index: 4;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.lyric-seek-play::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 2px;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #fde68a;
    border-top: 6px solid transparent;
    transition: border-left-color 150ms ease;
}

.lyric-seek-play:hover {
    background: #fde68a;
    border-color: #fff2a8;
    box-shadow:
        0 0 0 4px rgba(253, 230, 138, 0.13),
        0 0 22px rgba(253, 230, 138, 0.42);
    transform: scale(1.08);
}

.lyric-seek-play:hover::before {
    border-left-color: #173044;
}

.lyrics-lines.is-manual-seeking .lyric-line.seek-target .lyric-seek-time,
.lyrics-seek-floating.visible {
    opacity: 1;
}

.lyrics-lines.is-manual-seeking .lyric-line.seek-target {
    color: #ffffff;
    opacity: 1;
    transform: translateX(2px);
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.18),
        0 0 20px rgba(125, 211, 252, 0.16);
}

.lyric-line:hover {
    color: rgba(255, 255, 255, 0.78);
    opacity: 0.78;
}

.lyric-line:focus-visible {
    outline: 1px solid rgba(125, 211, 252, 0.58);
    outline-offset: 5px;
}

.lyric-char {
    display: inline-block;
    color: inherit;
    vertical-align: baseline;
}

.lyric-line.passed {
    color: rgba(255, 255, 255, 0.36);
    opacity: 0.38;
}

.lyric-line.near {
    color: rgba(255, 255, 255, 0.66);
    opacity: 0.68;
    font-weight: 500;
}

.lyric-line.far {
    color: rgba(255, 255, 255, 0.46);
    opacity: 0.48;
}

.lyric-line.dim {
    opacity: 0.22;
}

.lyric-line.active {
    color: #ffffff;
    font-weight: 800;
    opacity: 1;
    transform: translateX(2px);
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.18),
        0 0 20px rgba(125, 211, 252, 0.16);
}

.lyric-line.active .lyric-char {
    background: linear-gradient(90deg, #7dd3fc 0 var(--char-progress, 0%), #ffffff var(--char-progress, 0%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lyrics-lines.is-manual-seeking .lyric-line {
    font-weight: 400;
}

.lyrics-side-note {
    position: absolute;
    right: 30px;
    top: 54%;
    z-index: 3;
    display: flex;
    width: 40px;
    min-height: 110px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.86);
    color: #4b3d3f;
    writing-mode: vertical-rl;
    font-size: 12px;
    line-height: 1.1;
}

.lyrics-side-note strong {
    color: #1f2937;
    font-weight: 800;
}

.lyrics-side-note span {
    color: #6b6264;
    font-size: 10px;
}

.lyrics-translate-chip {
    position: absolute;
    right: 20px;
    bottom: 120px;
    z-index: 3;
    display: flex;
    width: 26px;
    height: 26px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    line-height: 1;
}

.lyrics-translate-chip small {
    font-size: 7px;
}

@media (max-width: 1180px) {
    .lyrics-topbar {
        grid-template-columns: 60px 1fr auto;
    }

    .lyrics-window-actions button span {
        display: none;
    }

    .lyrics-stage {
        grid-template-columns: minmax(300px, 42vw) minmax(320px, 1fr);
        column-gap: 30px;
        padding-inline: 5vw;
    }

    .lyrics-record-scene {
        min-width: 320px;
    }

    .lyric-line {
        font-size: 23px;
    }
}

@media (max-width: 820px) {
    .lyrics-topbar {
        grid-template-columns: 42px 1fr;
    }

    .lyrics-window-actions {
        display: none;
    }

    .lyrics-now-playing {
        margin: 0 0 18px;
    }

    .lyrics-stage {
        height: calc(100vh - 130px);
        min-height: 0;
        grid-template-columns: 1fr;
        align-content: start;
        row-gap: 14px;
        padding: 12px 22px 108px;
    }

    .lyrics-art-panel {
        justify-content: center;
    }

    .lyrics-record-scene {
        width: min(78vw, 360px);
        min-width: 0;
    }

    .lyrics-text-panel {
        --lyric-side-gutter: 50px;
        max-width: none;
        max-height: calc(100vh - 420px);
        padding-top: 0;
        padding-bottom: 0;
        text-align: center;
    }

    .lyrics-lines {
        padding-top: var(--lyric-top-padding, max(70px, 14vh));
        padding-bottom: var(--lyric-bottom-padding, max(160px, 34vh));
    }

    .lyric-line {
        margin-inline: auto;
        padding-right: 0;
        font-size: 19px;
        text-align: center;
    }

    .lyric-seek-time {
        font-size: 12px;
    }

    .lyrics-seek-floating {
        right: 14px;
        width: 42px;
    }

    .lyric-seek-rule {
        display: none;
    }

    .lyric-seek-play {
        width: 26px;
        height: 26px;
    }

    .lyrics-side-note {
        display: none;
    }
}

/* 玄黛黑主题 */
:root {
    --xd-bg: #020409;
    --xd-bg-soft: #050811;
    --xd-panel: rgba(7, 10, 17, 0.86);
    --xd-panel-strong: rgba(5, 8, 14, 0.96);
    --xd-panel-hover: rgba(12, 18, 28, 0.9);
    --xd-border: rgba(102, 133, 154, 0.16);
    --xd-border-strong: rgba(118, 163, 184, 0.24);
    --xd-text: #e8eef4;
    --xd-muted: rgba(203, 213, 225, 0.66);
    --xd-cyan: #1fb7d8;
    --xd-cyan-soft: rgba(31, 183, 216, 0.16);
    --xd-shadow: rgba(0, 0, 0, 0.56);
}

body {
    background:
        radial-gradient(circle at 18% 0%, rgba(31, 183, 216, 0.08), transparent 32%),
        radial-gradient(circle at 82% 12%, rgba(87, 112, 133, 0.1), transparent 34%),
        linear-gradient(180deg, #03050b 0%, #020409 58%, #010207 100%);
    color: var(--xd-text);
}

.aurora-bg .blob {
    opacity: 0.14;
    filter: blur(92px);
}

.blob-1 {
    background: radial-gradient(circle, rgba(31, 183, 216, 0.46) 0%, rgba(31, 183, 216, 0) 70%);
}

.blob-2 {
    background: radial-gradient(circle, rgba(74, 99, 122, 0.5) 0%, rgba(74, 99, 122, 0) 70%);
}

.blob-3 {
    background: radial-gradient(circle, rgba(84, 105, 130, 0.34) 0%, rgba(84, 105, 130, 0) 70%);
}

.glass-panel,
.glass-card,
.app-sidebar.glass-panel {
    background:
        linear-gradient(180deg, rgba(8, 12, 20, 0.9), rgba(4, 7, 13, 0.9));
    border-color: var(--xd-border);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.glass-card:hover {
    background: var(--xd-panel-hover);
    border-color: rgba(31, 183, 216, 0.28);
    box-shadow: 0 12px 34px -12px rgba(31, 183, 216, 0.22);
}

.app-sidebar.glass-panel {
    background:
        radial-gradient(circle at 35% 0%, rgba(31, 183, 216, 0.1), transparent 40%),
        linear-gradient(180deg, rgba(7, 10, 17, 0.98), rgba(3, 6, 12, 0.98));
    box-shadow: inset -1px 0 0 rgba(31, 183, 216, 0.08);
}

.sidebar-kugou-link:hover,
.sidebar-kugou-link.active,
.sidebar-playlist-link:hover,
.sidebar-playlist-link.active {
    background: rgba(31, 183, 216, 0.12);
}

.sidebar-divider {
    background: rgba(113, 148, 170, 0.14);
}

.app-main-content {
    background:
        radial-gradient(circle at 50% 0%, rgba(31, 183, 216, 0.045), transparent 38%),
        linear-gradient(180deg, rgba(3, 6, 12, 0.18), rgba(2, 4, 9, 0.34));
}

#search-input,
.volume-popover,
#play-mode-menu,
.player-more-menu,
.liked-playlist-preview,
.level-panel,
.login-card {
    background:
        radial-gradient(circle at 50% 0%, rgba(31, 183, 216, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(12, 18, 29, 0.98), rgba(5, 8, 15, 0.98));
    border-color: rgba(226, 232, 240, 0.18);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 24px rgba(31, 183, 216, 0.08);
    color: var(--xd-text);
}

.player-more-menu::after,
.liked-playlist-preview::before {
    border-color: rgba(226, 232, 240, 0.18);
    background: rgba(5, 8, 14, 0.98);
}

.volume-popover::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    z-index: 0;
    width: 18px;
    height: 18px;
    border-right: 1px solid rgba(226, 232, 240, 0.18);
    border-bottom: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(5, 8, 14, 0.98);
    transform: translateX(-50%) rotate(45deg);
}

.volume-popover::after {
    z-index: 1;
    bottom: -6px;
    background: rgba(5, 8, 14, 0.98);
    box-shadow: none;
}

.player-more-menu button:hover,
.player-more-menu button:focus-visible,
.play-mode-option:hover,
.playlist-add-menu button:hover,
.playlist-add-menu button:focus-visible {
    background: rgba(31, 183, 216, 0.12);
}

footer.glass-panel,
body.lyrics-open footer.glass-panel {
    background:
        linear-gradient(180deg, rgba(8, 12, 20, 0.98), rgba(3, 6, 12, 0.98));
    border-top-color: var(--xd-border-strong);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.54);
}

#progress-bar-container {
    background: rgba(62, 83, 102, 0.28);
}

#progress-bar-fill {
    background: linear-gradient(90deg, #155e75, var(--xd-cyan));
    box-shadow: 0 0 10px rgba(31, 183, 216, 0.58);
}

.home-feature-arrow {
    background: rgba(5, 8, 14, 0.72);
}

.home-feature-arrow:hover {
    background: rgba(12, 20, 31, 0.92);
}

.home-feature-card {
    background-image:
        linear-gradient(135deg, rgba(21, 31, 44, 0.96), rgba(9, 14, 24, 0.96)) !important;
    border: 1px solid var(--xd-border);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

#search-suggestions,
.playlist-context-menu,
.playlist-add-menu,
.level-rules-card {
    background: rgba(7, 10, 17, 0.98);
    border: 1px solid var(--xd-border);
    color: var(--xd-text);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
}

.search-suggest-section,
.playlist-context-divider {
    border-color: rgba(118, 163, 184, 0.14);
    background: transparent;
}

.search-suggestion-item:hover,
.search-suggestion-item.is-active,
.playlist-context-menu button:hover,
.playlist-context-menu button:focus-visible {
    background: rgba(31, 183, 216, 0.1);
}

.songs-workspace-search #songs-list-container,
#songs-list-container .glass-panel {
    background: rgba(7, 10, 17, 0.58);
    border-color: var(--xd-border);
}

.song-row,
[data-song-index] {
    border-color: rgba(118, 163, 184, 0.1);
}

.song-row:hover,
[data-song-index]:hover {
    background: rgba(31, 183, 216, 0.08);
}

.lyrics-view {
    background:
        radial-gradient(circle at 36% 28%, rgba(31, 183, 216, 0.14), transparent 28%),
        radial-gradient(circle at 74% 18%, rgba(79, 104, 127, 0.12), transparent 32%),
        linear-gradient(180deg, #07101b 0%, #03070e 52%, #010309 100%);
}

.lyrics-view::before {
    background: rgba(2, 4, 9, 0.2);
}

.lyrics-topbar,
.lyrics-now-playing,
.lyrics-text-panel,
.lyrics-side-note {
    color: var(--xd-text);
}

.lyrics-record-disc {
    background: #111827;
    box-shadow: 12px 16px 36px rgba(0, 0, 0, 0.42);
}

.lyrics-record-hole {
    background: #020409;
}

.lyric-line.is-active {
    color: #f8fbff;
}

.lyric-line-fill {
    background: linear-gradient(90deg, #7dd3fc 0 var(--char-progress, 0%), #ffffff var(--char-progress, 0%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ==============================
   播放队列侧边栏 (Queue Sidebar)
   ============================== */

.queue-sidebar {
    position: fixed;
    top: var(--queue-sidebar-top, 108px);
    right: 0;
    bottom: 80px; /* 底部播放栏高度 */
    z-index: 25;
    width: 360px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.97) 0%, rgba(6, 8, 18, 0.98) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    pointer-events: none;
}

.queue-sidebar.open {
    transform: translateX(0);
    pointer-events: auto;
}

.queue-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.queue-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.queue-sidebar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.queue-sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: rgba(148, 163, 184, 0.8);
    transition: all 0.18s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.queue-sidebar-action-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.queue-sidebar-action-btn.is-disabled {
    color: rgba(148, 163, 184, 0.25);
    cursor: default;
    opacity: 0.5;
    pointer-events: none;
}

.queue-sidebar-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 8px;
    scroll-behavior: smooth;
}

.queue-sidebar-list::-webkit-scrollbar {
    width: 4px;
}

.queue-sidebar-list::-webkit-scrollbar-track {
    background: transparent;
}

.queue-sidebar-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.queue-sidebar-list:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

/* 队列中的歌曲行 */
.queue-song-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

.queue-song-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.queue-song-row.is-active {
    background: rgba(6, 182, 212, 0.08);
}

.queue-song-row.is-active .queue-song-title {
    color: #06b6d4;
}

.queue-song-row.is-active .queue-song-index {
    color: #06b6d4;
}

.queue-song-index {
    width: 22px;
    flex-shrink: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.5);
    font-variant-numeric: tabular-nums;
}

.queue-song-cover {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.queue-song-info {
    flex: 1;
    min-width: 0;
}

.queue-song-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.queue-song-artist {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    margin-top: 1px;
}

.queue-song-duration {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.5);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    margin-right: 2px;
}

.queue-song-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    color: rgba(148, 163, 184, 0.4);
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.queue-song-row:hover .queue-song-remove {
    opacity: 1;
}

.queue-song-remove:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

/* 正在播放动画指示器 */
.queue-playing-indicator {
    display: flex;
    align-items: flex-end;
    gap: 1.5px;
    width: 22px;
    height: 14px;
    justify-content: center;
}

.queue-playing-indicator span {
    display: block;
    width: 2.5px;
    border-radius: 1px;
    background: #06b6d4;
    animation: queueEqPulse 0.9s ease-in-out infinite alternate;
}

.queue-playing-indicator span:nth-child(1) { height: 40%; animation-delay: 0s; }
.queue-playing-indicator span:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.queue-playing-indicator span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.queue-playing-indicator span:nth-child(4) { height: 85%; animation-delay: 0.08s; }

@keyframes queueEqPulse {
    0%   { height: 25%; }
    100% { height: 95%; }
}

/* 空状态 */
.queue-sidebar-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
}

.queue-discover-btn {
    margin-top: 8px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.queue-discover-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.5);
    color: #22d3ee;
}

/* 按钮激活态 */
#queue-panel-btn.is-active {
    color: #06b6d4;
}

/* ==============================
   歌曲列表加载动画 (Loading Spinner)
   ============================== */

.song-loading-spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(148, 163, 184, 0.18);
    border-top-color: #06b6d4;
    border-right-color: #06b6d4;
    animation: songLoadingSpin 0.7s linear infinite;
}

@keyframes songLoadingSpin {
    to { transform: rotate(360deg); }
}

/* ==============================
   歌曲列表下载图标 (使用播放器 vip 图标作为遮罩着色)
   ============================== */

.song-download-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    background-color: currentColor;
    -webkit-mask: url("../images/vip-icon.png") no-repeat center / contain;
    mask: url("../images/vip-icon.png") no-repeat center / contain;
}

/* 歌曲列表行图标统一尺寸与空心样式 */
.song-inline-play-btn svg,
.song-play-next-btn svg {
    width: 24px;
    height: 24px;
}

.song-inline-play-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* 刷新按钮旋转动画 */
#header-refresh-btn.is-refreshing svg {
    animation: headerRefreshSpin 0.6s ease;
}

@keyframes headerRefreshSpin {
    to { transform: rotate(360deg); }
}

