:root {
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glow: 0 0 15px rgba(255, 255, 255, 0.5);
}

body {
    margin: 0; padding: 0;
    height: 100vh;
    background: #000;
    font-family: 'Inter', sans-serif;
    color: white;
    display: flex;
    overflow: hidden;
}

.bg-visualizer {
    position: fixed;
    inset: 0;
    background-image: url('https://c.pxhere.com/photos/0a/e8/disk_music_sound_turntable_vinyl-1268072.jpg!d');
    background-position: center;
    background-size: cover;
    filter: blur(60px) brightness(0.3);
    transition: background-image 1s ease-in-out;
    z-index: 0;
}

.app-container {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
}

main {
    flex: 1;
    overflow-y: auto;
    padding: 40vh 40px;
    scrollbar-width: none;
    mask-image: linear-gradient(transparent, black 20%, black 80%, transparent);
}

.lyric-line {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 40px 0;
    text-align: left;
    transform-origin: left center;
    transition: all 0.5s ease;
    opacity: 0.2;
}

.lyric-line.active {
    opacity: 1;
    transform: scale(1.05);
}

.word {
    display: inline-block;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.word:hover { color: #fff; text-shadow: var(--glow); }

.word.highlight {
    color: #fff;
    text-shadow: 0 0 20px white, 0 0 40px rgba(255,255,255,0.3);
}

.sidebar {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 25px;
    z-index: 1;
}

.drop-zones {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    z-index: 1;
}

.drop-zone {
    flex: 1;
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    background: rgba(255,255,255,0.02);
    z-index: 1;
}

.drop-zone.dragover {
    background: var(--glass);
    border-color: #fff;
}

.drop-zone p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.drop-zone .glass-btn {
    margin-top: 0;
}

.volume-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    opacity: 0.8;
}

#volumeSlider {
    flex: 1;
    height: 4px;
    accent-color: #fff;
    cursor: pointer;
}

#progress {
    width: 100%;
    accent-color: #fff;
    cursor: pointer;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 5px;
}

.glass-btn {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

#playBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 15px auto 0;
}

#playBtn svg {
    width: 30px;
    height: 30px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 10px;
    color: white;
    outline: none;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}