/* 音乐应用：仿网易云主色 + 毛玻璃 */

#page-music.music-app-root,
#page-music {
    background: #1a1a1a;
}

#page-music .music-app-screen {
    background: linear-gradient(165deg, #2c1810 0%, #1a0f18 45%, #0d0d12 100%);
}

#page-music .music-app {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    color: rgba(255, 255, 255, 0.92);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', sans-serif;
}

.music-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(env(safe-area-inset-top, 20px) + 6px) 12px 12px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.music-back {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-app-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.music-upload-btn {
    border: none;
    background: rgba(212, 60, 51, 0.9);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(212, 60, 51, 0.35);
}

.music-tabs {
    display: flex;
    gap: 0;
    padding: 0 16px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.music-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    padding: 12px 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.music-tab.active {
    color: #fff;
}

.music-tab.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: #d43c33;
}

.music-panel {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 14px 88px;
    -webkit-overflow-scrolling: touch;
}

.music-hint {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 12px;
}

.music-textarea-batch {
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 12px 14px;
    font-size: 13px;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 10px;
}

.music-textarea-batch::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.music-btn-primary {
    border: none;
    background: linear-gradient(90deg, #e8554d, #d43c33);
    color: #fff;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    box-shadow: 0 6px 20px rgba(212, 60, 51, 0.35);
}

.music-btn-block {
    max-width: none;
    margin-top: 14px;
}

.music-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.music-result-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.music-result-row {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.music-result-url {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    word-break: break-all;
    line-height: 1.4;
}

.music-result-title-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    padding: 10px 12px;
    font-size: 14px;
}

.music-result-actions {
    display: flex;
    gap: 8px;
}

.music-btn-small {
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.music-btn-play-staged {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.music-btn-fav-staged {
    background: rgba(212, 60, 51, 0.85);
    color: #fff;
}

.music-mine-settings {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.music-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.music-mine-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.music-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    padding: 32px 16px;
    margin: 0;
}

.music-mine-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    gap: 10px;
}

.music-mine-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.music-mine-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.music-mine-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.music-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-mine-del {
    background: rgba(212, 60, 51, 0.35);
}
.music-mine-menu-btn {
    font-weight: bold;
    font-size: 18px;
}

.music-mini-player {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 16px;
    z-index: 5;
}

.music-mini-info {
    flex: 1;
    min-width: 0;
}

.music-mini-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.music-mini-playlist-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 4px;
}

.music-mini-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.music-mini-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #d43c33;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 12px;
    box-shadow: 0 4px 16px rgba(212, 60, 51, 0.45);
}

#page-music .screen.music-app-screen {
    position: relative;
}

/* 上传 / 歌词 弹窗 */
#page-music .music-modal.modal,
.music-modal.modal {
    z-index: 100060 !important;
    align-items: center;
    justify-content: center;
}

.music-modal-content {
    background: rgba(28, 28, 32, 0.92) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    max-width: 340px !important;
    width: calc(100% - 32px) !important;
    border-radius: 20px !important;
}

.music-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.music-modal-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.music-modal-x {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.music-upload-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.music-upload-tab {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.music-upload-tab.active {
    background: rgba(212, 60, 51, 0.35);
    color: #fff;
}

.music-field-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
    margin-top: 10px;
}

.music-field-label:first-of-type {
    margin-top: 0;
}

.music-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    padding: 11px 12px;
    font-size: 14px;
}

.music-file-input {
    width: 100%;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.music-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.music-modal-actions .music-btn-primary {
    width: auto;
    max-width: none;
    padding: 10px 20px;
}

/* 全局悬浮歌词（对齐小手机屏幕顶部） */
.music-floating-lyrics {
    pointer-events: auto;
    box-sizing: border-box;
    padding: 0 4px;
}

.music-floating-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 8px 0;
    padding: 8px 10px;
    border-radius: 14px;
    min-height: 40px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    cursor: grab;
}

.music-floating-menu-btn,
.music-floating-ctrl-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-floating-text {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.music-floating-close {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.music-floating-size {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.music-floating-lyrics.compact .music-floating-inner {
    min-height: 32px;
    padding: 6px 8px 6px 10px;
}

.music-floating-lyrics.compact .music-floating-text {
    font-size: 12px;
    -webkit-line-clamp: 1;
}

.music-floating-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 12px;
    width: 240px;
    z-index: 10;
}
.music-floating-menu-panel {
    background: rgba(40, 40, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.music-floating-menu-section {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.music-floating-menu-section:last-child {
    border-bottom: none;
}
.music-floating-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #fff;
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
}
.music-floating-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
.music-floating-menu-item.active {
    font-weight: bold;
    color: #d43c33;
}


#music-modal-now-lyrics.fullscreen .music-now-lyrics-content {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    background: #1a1a1a;
}

.music-player-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.6);
    transform: scale(1.2);
    opacity: 0.7;
    z-index: 1;
}

#music-modal-now-lyrics.fullscreen .music-player-topbar {
    position: relative;
    z-index: 10;
    padding: calc(env(safe-area-inset-top, 20px) + 6px) 12px 12px;
    justify-content: space-between;
}

.music-player-top-title-wrap {
    text-align: center;
    color: #fff;
    flex: 1;
}

.music-player-top-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}
.music-player-top-artist {
    font-size: 13px;
    font-weight: normal;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.music-player-share {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    padding-bottom: 10px;
}

#music-modal-now-lyrics.fullscreen .music-player-stage {
    position: relative;
    z-index: 5;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-now-lyrics-content[data-mode='disc'] .music-now-disc-view {
    display: flex;
}
.music-now-lyrics-content[data-mode='disc'] .music-now-lyrics-view {
    display: none;
}
.music-now-lyrics-content[data-mode='lyrics'] .music-now-disc-view {
    display: none;
}
.music-now-lyrics-content[data-mode='lyrics'] .music-now-lyrics-view {
    display: block;
    width: 100%;
    height: 100%;
}

.music-player-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.music-player-top-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.music-player-topbar-spacer {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.music-player-back.music-modal-x {
    width: 36px;
    height: 36px;
    font-size: 22px;
}

.music-player-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-now-lyrics-content[data-mode='lyrics'] .music-player-stage {
    align-items: stretch;
    justify-content: flex-start;
}

.music-now-disc-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.music-now-cover-disc-area {
    width: 280px;
    height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.music-now-stylus {
    width: 90px;
    height: 140px;
    position: absolute;
    top: -20px;
    left: calc(50% - 15px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 150'%3E%3Cpath d='M20,20 Q60,20 80,60 T80,120' fill='none' stroke='%23f0f0f0' stroke-width='6' stroke-linecap='round'/%3E%3Ccircle cx='20' cy='20' r='12' fill='%23e0e0e0' stroke='%23d0d0d0' stroke-width='2'/%3E%3Ccircle cx='20' cy='20' r='4' fill='%23666'/%3E%3Crect x='70' y='110' width='20' height='30' rx='5' fill='%23e0e0e0' transform='rotate(-20 80 120)'/%3E%3Crect x='72' y='130' width='6' height='15' rx='2' fill='%23fff' transform='rotate(-20 80 120)'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-remove;
    z-index: 10;
    transform-origin: 20px 20px;
    transform: rotate(-35deg);
    transition: transform 0.4s ease-in-out;
}

.playing .music-now-stylus {
    transform: rotate(0deg);
}

.music-now-disc {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    cursor: pointer;
    background: #111;
    box-shadow: 
        0 0 0 8px rgba(255, 255, 255, 0.1),
        0 15px 35px rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.music-now-disc::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-radial-gradient(
        #111,
        #111 2px,
        #1a1a1a 3px,
        #1a1a1a 4px
    );
    border-radius: 50%;
    z-index: 1;
}

.music-now-disc::after {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(
        rgba(255,255,255,0.1) 0deg,
        transparent 45deg,
        rgba(255,255,255,0.1) 90deg,
        transparent 135deg,
        rgba(255,255,255,0.1) 180deg,
        transparent 225deg,
        rgba(255,255,255,0.1) 270deg,
        transparent 315deg,
        rgba(255,255,255,0.1) 360deg
    );
    border-radius: 50%;
    z-index: 2;
    mix-blend-mode: overlay;
}

.music-now-cover-img-wrap {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    z-index: 5;
    overflow: hidden;
    position: relative;
}

.music-now-cover-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.2);
}

.music-now-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #333;
}


@keyframes music-disc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-now-lyrics-content.playing .music-now-cover-disc-area {
    animation: music-disc-spin 20s linear infinite;
}

.music-now-lyrics-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

.music-now-bottom {
    position: relative;
    z-index: 10;
    padding: 20px;
    padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 20px);
}

.music-now-actions-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.music-now-action-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback icons using unicode since we don't have SVGs handy */
#music-now-fav-btn::before { content: '♡'; }
#music-now-download-btn::before { content: '⤓'; font-size: 28px; }
#music-now-comment-btn::before { content: '💬'; font-size: 20px; }
#music-now-more-btn::before { content: '⋮'; }


.music-now-progress {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.music-now-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    width: 40px;
    text-align: center;
}

.music-now-progress input[type='range'] {
    flex: 1;
    height: 2px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
}
.music-now-progress input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.music-now-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.music-now-control-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#music-now-mode-btn { font-size: 20px; width: 30px; height: 30px; }
#music-now-prev-btn { font-size: 24px; width: 40px; height: 40px; }
#music-now-play-btn { width: 60px; height: 60px; font-size: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); }
#music-now-next-btn { font-size: 24px; width: 40px; height: 40px; }
#music-now-playlist-btn { font-size: 24px; width: 30px; height: 30px; }

#music-now-mode-btn::before { content: '🔁'; }
#music-now-prev-btn::before { content: '⏮'; }
#music-now-play-btn::before { content: '▶'; padding-left: 4px; }
.music-now-lyrics-content.playing #music-now-play-btn::before { content: '⏸'; padding-left: 0; }
#music-now-next-btn::before { content: '⏭'; }
#music-now-playlist-btn::before { content: '☰'; }


.music-now-lyrics-list {
    max-height: none;
    overflow-y: auto;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0 20px 40px;
}

.music-now-lyrics-line {
    padding: 12px 2px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}

.music-now-lyrics-line.active {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.music-playlist-section {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}
.music-playlist-tabs-wrap {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.music-playlist-tabs-wrap::-webkit-scrollbar { display: none; }
.music-playlist-tabs {
    display: flex;
    gap: 8px;
}
.music-playlist-tab {
    padding: 6px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
}
.music-playlist-tab.active {
    background: rgba(212, 60, 51, 0.15);
    color: #fff;
    border: 1px solid rgba(212, 60, 51, 0.4);
}
.music-playlist-add-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.music-playlist-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}
.music-playlist-select-item {
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.music-playlist-select-item:hover {
    background: rgba(255,255,255,0.1);
}

.music-search-bulk-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.music-result-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #d43c33;
    flex-shrink: 0;
    margin-right: 10px;
}

.music-result-row.selectable {
    flex-direction: row;
    align-items: center;
}
.music-result-row.selectable .music-result-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* Light mode override for music page */
#page-music.music-app-root,
#page-music {
    background: #f7f8fb;
}

#page-music .music-app-screen {
    background: linear-gradient(180deg, #fbfcff 0%, #f4f7fb 100%);
}

#page-music .music-app {
    color: #1f2937;
}

.music-app-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.music-back {
    background: rgba(15, 23, 42, 0.08);
    color: #1f2937;
}

.music-tabs {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.music-tab {
    color: rgba(31, 41, 55, 0.55);
}

.music-tab.active {
    color: #111827;
}

.music-playlist-tab {
    background: rgba(15, 23, 42, 0.05);
    color: rgba(15, 23, 42, 0.6);
}

.music-playlist-tab.active {
    background: rgba(212, 60, 51, 0.1);
    color: #d43c33;
    border: 1px solid rgba(212, 60, 51, 0.2);
}

.music-playlist-add-btn {
    background: rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.7);
}

.music-playlist-select-item {
    background: rgba(15, 23, 42, 0.05);
}

.music-playlist-select-item:hover {
    background: rgba(15, 23, 42, 0.08);
}

.music-search-bulk-actions {
    background: rgba(15, 23, 42, 0.05);
}

.music-floating-menu-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.music-floating-menu-section {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.music-floating-menu-item {
    color: #111827;
}
.music-floating-menu-item:hover {
    background: rgba(15, 23, 42, 0.05);
}

.music-hint {
    color: rgba(51, 65, 85, 0.72);
}

.music-textarea-batch {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #111827;
}

.music-textarea-batch::placeholder {
    color: rgba(71, 85, 105, 0.5);
}

.music-btn-ghost {
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #f8fafc;
    color: #0f172a;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.music-result-url {
    color: rgba(71, 85, 105, 0.9);
}

.music-result-title-input {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #111827;
}

.music-btn-play-staged {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.music-checkbox-label,
.music-empty,
.music-mine-meta {
    color: rgba(51, 65, 85, 0.85);
}

.music-mine-title,
.music-mini-title {
    color: #111827;
}

.music-btn-icon {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.music-modal-content {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #111827;
}

#music-modal-now-lyrics.fullscreen .music-modal-content {
    background: #1a1a1a !important;
    border: none;
    color: #fff;
}
#music-modal-now-lyrics.fullscreen .music-player-top-title-wrap {
    color: #fff;
}
#music-modal-now-lyrics.fullscreen .music-player-top-artist {
    color: rgba(255,255,255,0.7);
}
#music-modal-now-lyrics.fullscreen .music-now-lyrics-line {
    color: rgba(255,255,255,0.4);
}
#music-modal-now-lyrics.fullscreen .music-now-lyrics-line.active {
    color: #fff;
}
#music-modal-now-lyrics.fullscreen .music-now-action-btn,
#music-modal-now-lyrics.fullscreen .music-now-control-btn {
    color: #fff;
}
#music-modal-now-lyrics.fullscreen .music-now-time {
    color: rgba(255,255,255,0.5);
}

.music-modal-x {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.music-upload-tab {
    background: rgba(15, 23, 42, 0.08);
    color: rgba(51, 65, 85, 0.8);
}

.music-field-label,
.music-file-input {
    color: rgba(51, 65, 85, 0.9);
}

.music-input {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #111827;
}

.music-floating-inner {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.music-floating-text {
    color: #0f172a;
    text-shadow: none;
}

.music-floating-close,
.music-floating-size,
.music-floating-menu-btn,
.music-floating-ctrl-btn {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.music-netease-import {
    padding: 12px;
    margin-bottom: 12px;
}

.music-single-import {
    padding: 12px;
    margin-bottom: 12px;
}

.music-netease-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

.music-netease-hint {
    margin-bottom: 8px;
}

.music-netease-input {
    margin-bottom: 8px;
}

.music-netease-share-text {
    min-height: 72px;
    margin-bottom: 10px;
}

.music-netease-status {
    margin-top: 8px;
    min-height: 18px;
    font-size: 12px;
    color: rgba(51, 65, 85, 0.9);
}

.music-netease-status.ok { color: #0f766e; }
.music-netease-status.warn { color: #b45309; }
.music-netease-status.err { color: #b91c1c; }

.music-now-lyrics-line {
    color: rgba(51, 65, 85, 0.85);
}

.music-now-lyrics-line.active {
    color: #111827;
}
