* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, sans-serif;
    --leica-black: #0f0f0f;
    --leica-dark: #1a1a1a;
    --leica-gray: #252525;
    --leica-silver: #c0c0c0;
    --leica-chrome: #e8e8e8;
    --leica-brushed: #a0a0a0;
    --leica-gold: #c4a77d;
    --leica-red: #c8102e;
    --leica-accent: #4a4a4a;
}

body, html {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(180deg, #0f0f0f 0%, #141414 100%);
}

button, input {
    font: inherit;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    overflow-y: auto;
}

.sidebar {
    background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
    border-right: 1px solid #2a2a2a;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: 
        inset -2px 0 20px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 50%, #0d0d0d 100%);
    border: 2px solid #c0c0c0;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.3);
}

.brand h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #e8e8e8;
    text-shadow: 0 1px 0 rgba(255,255,255,0.1);
}

.sidebar-nav {
    display: grid;
    gap: 12px;
}

.nav-btn {
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 16px;
    padding: 16px 20px;
    color: #a0a0a0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.03),
        inset 0 -1px 0 rgba(0,0,0,0.2);
}

.nav-btn:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    color: #e8e8e8;
    transform: translateX(4px);
    border-color: rgba(192,192,192,0.1);
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(200,16,46,0.12) 0%, rgba(200,16,46,0.06) 100%);
    color: #e8e8e8;
    border-color: rgba(200,16,46,0.25);
    font-weight: 600;
    box-shadow: 
        inset 0 1px 0 rgba(200,16,46,0.1),
        0 2px 8px rgba(0,0,0,0.2);
}

.content {
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #2a2a2a;
    background: linear-gradient(180deg, rgba(15,15,15,0.98) 0%, rgba(10,10,10,0.98) 100%);
    backdrop-filter: blur(12px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.02),
        0 2px 8px rgba(0,0,0,0.2);
}

.topbar-title {
    font-size: 1rem;
    color: #c0c0c0;
    font-weight: 500;
    letter-spacing: 0.08em;
}

#importBtn {
    display: none;
}

.page-container {
    flex: 1;
    padding: 32px;
    background: linear-gradient(180deg, #0f0f0f 0%, #121212 100%);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 28px;
}

.page-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #e8e8e8;
    text-shadow: 0 1px 0 rgba(255,255,255,0.1);
}

.page-header p {
    margin: 10px 0 0;
    color: #8a8a8a;
    max-width: 82ch;
    font-size: 0.95rem;
}

.playlist-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border-radius: 28px;
    border: 1px solid #2a2a2a;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 4px 16px rgba(0,0,0,0.2);
}

.import-btn-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #ff2a4d;
    background: radial-gradient(circle at 30% 30%, #ff4a6a 0%, #c8102e 50%, #8a0a1f 100%);
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(200,16,46,0.5),
        0 0 40px rgba(200,16,46,0.3),
        0 4px 12px rgba(0,0,0,0.3);
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
}

.import-btn-circle:hover {
    border-color: #ff4a6a;
    background: radial-gradient(circle at 30% 30%, #ff6a8a 0%, #e01238 50%, #a00f25 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 0 30px rgba(200,16,46,0.7),
        0 0 60px rgba(200,16,46,0.4),
        0 6px 16px rgba(0,0,0,0.4);
}

.import-btn-circle:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        0 0 15px rgba(200,16,46,0.4),
        0 0 30px rgba(200,16,46,0.2),
        0 2px 8px rgba(0,0,0,0.3);
}

.select-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border-radius: 28px;
    border: 1px solid #2a2a2a;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 4px 16px rgba(0,0,0,0.2);
}

.select-count {
    color: #8a8a8a;
    font-size: 0.95rem;
    margin-left: auto;
}

.hidden {
    display: none !important;
}

.manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.clear-btn {
    border-radius: 20px;
    border: 1px solid rgba(200,16,46,0.3);
    background: linear-gradient(135deg, rgba(200,16,46,0.1) 0%, rgba(200,16,46,0.05) 100%);
    color: #c8102e;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-btn:hover {
    background: linear-gradient(135deg, rgba(200,16,46,0.18) 0%, rgba(200,16,46,0.1) 100%);
    border-color: rgba(200,16,46,0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200,16,46,0.2);
}

.manage-note {
    color: #8a8a8a;
    min-width: 280px;
    font-size: 0.95rem;
}

.control-button {
    border-radius: 20px;
    padding: 12px 20px;
    border: 1px solid #3a3a3a;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #c0c0c0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 -1px 0 rgba(0,0,0,0.2);
}

.control-button:hover {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    color: #e8e8e8;
    border-color: #4a4a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.coverflow {
height:400px;
    max-width: min(1000px, 100vw);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.fullscreen-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 100;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #3a3a3a;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 2px 8px rgba(0,0,0,0.2);
    font-size: 1rem;
}

.fullscreen-btn:hover {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    color: #e8e8e8;
    border-color: #4a4a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#covers {
    display: flex;
    align-items: center;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.52, 0.61, 0.36, 1);
}

.cover {
    width: 250px;
    height: 300px;
    margin: 0 0px;
    min-width: 210px;
    border-radius: 24px;
    box-shadow: 
        0 24px 70px rgba(0,0,0,0.5), 
        0 6px 16px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease, opacity 0.3s ease;
    border: 1px solid #2a2a2a;
    background: linear-gradient(145deg, #1e1e1e 0%, #141414 50%, #1a1a1a 100%);
}

.cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.015) 0px,
            rgba(255,255,255,0.015) 1px,
            transparent 1px,
            transparent 4px
        ),
        linear-gradient(180deg, rgba(192,192,192,0.08) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.15) 100%),
        radial-gradient(circle at 35% 20%, rgba(200,200,200,0.06) 0%, transparent 40%);
    pointer-events: none;
    border-radius: inherit;
}

.cover::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c8102e;
    box-shadow: 0 0 8px rgba(200,16,46,0.5), 0 0 16px rgba(200,16,46,0.25);
    opacity: 0.9;
}

.cover-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-letter {
    font-size: 5.5rem;
    font-weight: 700;
    color: rgba(232,232,232,0.95);
    letter-spacing: -0.02em;
    margin-bottom: auto;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.cover-meta {
    width: 100%;
    background: rgba(10,10,10,0.92);
    border-radius: 28px;
    padding: 18px 20px;
    backdrop-filter: blur(16px);
    border: 1px solid #333;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 12px rgba(0,0,0,0.3);
}

.cover-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #e8e8e8;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    letter-spacing: 0.02em;
}

.cover-subtitle {
    margin-top: 6px;
    color: #888;
    font-size: 0.88rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cover.active {
    transform: translateZ(100px) scale(1.05);
    box-shadow: 
        0 36px 90px rgba(0,0,0,0.55), 
        0 10px 24px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 0 40px rgba(200,16,46,0.08);
    z-index: 20;
    opacity: 1;
    border-color: #3a3a3a;
}

.cover.prev,
.cover.next {
    opacity: 0.9;
}

.cover.prev {
    transform: rotateY(42deg) translateX(-28px) scale(0.90) translateZ(-40px);
}

.cover.next {
    transform: rotateY(-42deg) translateX(28px) scale(0.90) translateZ(-40px);
}

.cover:not(.active):not(.prev):not(.next) {
    opacity: 0.5;
    transform: scale(0.70) translateZ(-100px);
}

.playlist {
    display: grid;
    gap: 16px;
}

.track {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 18px 22px;
    align-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid #2a2a2a;
    width: 720px;
    margin: 0 auto;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 2px 8px rgba(0,0,0,0.15);
}

.track-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 4px;
}

.track-title {
    margin: 0;
    font-size: 1rem;
    width: 90%;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #e8e8e8;
}

.track-meta {
    margin: 0;
    color: #8a8a8a;
    font-size: 0.88rem;
}

.track-actions {
    display: flex;
    gap: 10px;
}

.track-actions button {
    border: none;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #c0c0c0;
    padding: 10px 14px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    border: 1px solid #3a3a3a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.track-actions button:hover {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    color: #e8e8e8;
    border-color: #4a4a4a;
    transform: translateY(-1px);
}

.track[draggable="true"] {
    cursor: grab;
}

.track.drag-over {
    box-shadow: 0 0 0 2px rgba(192,192,192,0.3), 0 4px 16px rgba(0,0,0,0.2);
}

.player-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
    padding: 32px;
    border-radius: 32px;
    background: linear-gradient(145deg, #1e1e1e 0%, #141414 50%, #181818 100%);
    border: 1px solid #2a2a2a;
    margin-bottom: 28px;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.008) 0px,
            rgba(255,255,255,0.008) 1px,
            transparent 1px,
            transparent 4px
        ),
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.08) 100%);
    pointer-events: none;
}

.player-card::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c8102e;
    box-shadow: 0 0 10px rgba(200,16,46,0.5), 0 0 20px rgba(200,16,46,0.25);
}

.player-cover {
    width: 200px;
    height: 200px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    font-size: 5rem;
    font-weight: 700;
    color: #e8e8e8;
    background: linear-gradient(145deg, #252525 0%, #1a1a1a 40%, #0f0f0f 100%);
    border: 1px solid #333;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -1px 0 rgba(0,0,0,0.2),
        0 8px 24px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

.player-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.02) 0px,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(180deg, rgba(200,200,200,0.06) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.12) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-track-name {
    margin: 0;
    font-size: clamp(1.5rem, 2.2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #e8e8e8;
  
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.player-track-artist {
    margin: 0;
    font-size: 1rem;
    color: #8a8a8a;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.player-controls button {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #c0c0c0;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #3a3a3a;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 2px 8px rgba(0,0,0,0.2);
}

.player-controls button:hover {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    color: #e8e8e8;
    border-color: #4a4a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.shuffle-btn.active {
    background: linear-gradient(135deg, #8a1528 0%, #c8102e 40%, #a01225 60%, #6a0f20 100%);
    color: #fff;
    border-color: #e01530;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.2),
        0 4px 12px rgba(200,16,46,0.3),
        0 0 20px rgba(200,16,46,0.15);
    position: relative;
    overflow: hidden;
}

.shuffle-btn.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.08) 0px,
            rgba(255,255,255,0.08) 1px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.player-controls button.playing {
    background: linear-gradient(135deg, #8a1528 0%, #c8102e 40%, #a01225 60%, #6a0f20 100%);
    color: #fff;
    border-color: #e01530;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.2),
        0 4px 12px rgba(200,16,46,0.3),
        0 0 20px rgba(200,16,46,0.15);
    position: relative;
    overflow: hidden;
}

.player-controls button.playing::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.08) 0px,
            rgba(255,255,255,0.08) 1px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.player-panel {
    display: grid;
    gap: 24px;
    width: 80vw;
    max-width: 800px;
    margin: 0 auto;
}

.player-card-container {
    position: relative;
    max-width:100%;
}


.player-info {
    font-size: 1rem;
    color: #8a8a8a;
}

#audioPlayer {
    display: none;
}

.custom-player {
    display: grid;
    gap: 20px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(145deg, #1e1e1e 0%, #141414 50%, #181818 100%);
    border: 1px solid #2a2a2a;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.custom-player::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.006) 0px,
            rgba(255,255,255,0.006) 1px,
            transparent 1px,
            transparent 5px
        ),
        linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.06) 100%);
    pointer-events: none;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    color: #8a8a8a;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: linear-gradient(180deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.03);
    border: 1px solid #2a2a2a;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a1528 0%, #c8102e 40%, #e8253f 60%, #c8102e 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 12px rgba(200,16,46,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: linear-gradient(145deg, #e8e8e8 0%, #c0c0c0 50%, #a0a0a0 100%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    color: #8a8a8a;
}

.volume-icon {
    font-size: 1.2rem;
}

.volume-bar {
    flex: 1;
    height: 6px;
    background: linear-gradient(180deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.03);
    border: 1px solid #2a2a2a;
}

.volume-fill {
    height: 100%;
    background: linear-gradient(90deg, #888 0%, #c0c0c0 40%, #e8e8e8 60%, #c0c0c0 100%);
    border-radius: 3px;
    width: 70%;
    transition: width 0.1s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.import-modal {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

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

.import-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid #2a2a2a;
    border-radius: 32px;
    padding: 36px 48px;
    text-align: center;
    min-width: 380px;
    box-shadow: 
        0 12px 48px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.import-modal-content h3 {
    margin: 0 0 24px;
    font-size: 1.4rem;
    color: #e8e8e8;
    font-weight: 600;
}

.import-progress-bar {
    width: 100%;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.import-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 50%, #c0c0c0 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(192,192,192,0.3);
}

#importStatus {
    margin: 0;
    color: #8a8a8a;
    font-size: 0.95rem;
}

@media (max-width: 960px) {
    .app-shell {
        grid-template-columns: 1fr;
    }
    .sidebar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        gap: 16px;
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
    }
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .topbar {
        padding: 18px 20px;
    }
    .page-container {
        padding: 20px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    .coverflow {
        height: min(50vh, 400px);
    }
    .cover {
        width: 200px;
        height: 280px;
        min-width: 200px;
        margin: 0 2px;
        border-radius: 20px;
    }
    .cover-letter {
        font-size: 4.5rem;
    }
    .manage-note {
        min-width: 0;
    }
    .player-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .player-cover {
        margin: 0 auto;
    }
    .track {
        width: 100%;
    }
    .custom-player {
        padding: 16px;
    }
    .progress-container {
        font-size: 0.8rem;
    }
    .import-modal-content {
        padding: 28px 32px;
        min-width: 320px;
    }
    /* 移动端按钮优化 */
    .import-btn-circle {
        width: 52px !important;
        height: 52px !important;
        font-size: 24px;
        border-width: 2px;
    }
    .playlist-actions {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 18px;
    }
    .clear-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    .manage-note {
        font-size: 0.85rem;
        order: 3;
        width: 100%;
        margin: 0;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    .page-container {
        padding: 16px;
    }
    .sidebar {
        padding: 16px;
    }
    .brand h1 {
        font-size: 1.4rem;
    }
    .nav-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .coverflow {
        height: min(45vh, 320px);
    }
    .cover {
        width: 160px;
        height: 220px;
        min-width: 160px;
        margin: 0 2px;
        border-radius: 16px;
    }
    .cover-letter {
        font-size: 3.5rem;
    }
    .cover-meta {
        padding: 12px 14px;
    }
    .cover-title {
        font-size: 0.9rem;
    }
    .cover-subtitle {
        font-size: 0.78rem;
    }
    .player-cover {
        width: 160px;
        height: 160px;
        font-size: 4rem;
    }
    .player-card {
        padding: 20px;
        gap: 20px;
    }
    .player-track-name {
        font-size: 1.3rem;
        
	
    }
    .player-controls button {
        padding: 10px 16px;
        font-size: 1.1rem;
    }
    .import-btn-circle {
        width: 48px !important;
        height: 48px !important;
        font-size: 22px;
    }
    .clear-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .playlist-actions {
        padding: 12px 16px;
        gap: 10px;
    }
}

#importBtn {
    display: flex !important;
    width: 56px !important;
    height: 56px !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 9999 !important;
}