@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=JetBrains+Mono&display=swap');
@import url('auth.css');

:root {
    --accent: #ff3e00;
    --accent-rgb: 255, 62, 0;
    --accent-glow: rgba(255, 62, 0, 0.4);
    --bg: #050505;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-bright: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-dim: #888888;
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    --radius-lg: 32px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

@keyframes scaleToPlayer {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: scale(0) translateY(-30vh);
        opacity: 0;
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    user-select: none;
    transition: background 1s ease;
}

#visualizerCanvas {
    position: fixed;
    bottom: 0; left: 0; width: 100%; height: 40vh;
    z-index: 5;
    pointer-events: none;
    opacity: 0.4;
    mask-image: linear-gradient(to top, black, transparent);
    transition: opacity 1s ease, height 0.8s ease;
}

.glow-sphere {
    position: fixed;
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    transition: transform 0.2s ease-out;
}

.app-container {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    height: 100vh;
    position: relative;
    z-index: 10;
    overflow: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#zenOverlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: var(--bg);
    display: none;
    flex-direction: row;
    align-items: center;
    padding: 10vw;
    opacity: 0;
    transition: opacity 1s ease;
}

#zenOverlay.active {
    display: flex;
    opacity: 1;
}

#zenOverlay .hero-section {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: flex-start;
    gap: 5vw;
    padding: 0;
    width: 100%;
}

#zenOverlay .track-meta h1 {
    font-size: 6rem;
}

.zen-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
    z-index: 5010;
}

@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

aside {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(50px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 40px 25px;
    z-index: 10;
    height: 100vh;
    overflow: hidden; 
}

aside.right { 
    border-right: none; 
    border-left: 1px solid var(--border); 
    padding: 40px 25px 160px 25px; 
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 0px;
    color: var(--text);
    flex-shrink: 0;
}

.nav-brand .brand-z { color: var(--accent); text-shadow: 0 0 20px var(--accent); margin-right: 8px; }
.nav-brand .brand-beta { color: var(--text); }

.sidebar-section { 
    margin-bottom: 30px; 
    flex-shrink: 0; 
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 6px;
    font-size: 14px;
    border: 1px solid transparent;
}
.nav-item:hover { background: var(--surface); color: var(--text); transform: translateX(5px); }
.nav-item.active { background: var(--surface-bright); color: var(--text); border-color: var(--border); }

.list-container {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-bright) transparent;
}

.list-container::-webkit-scrollbar { width: 4px; }
.list-container::-webkit-scrollbar-track { background: transparent; }
.list-container::-webkit-scrollbar-thumb { background: var(--surface-bright); border-radius: 10px; }

.song-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 8px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.02);
    position: relative;
    user-select: none;
}
.song-item:hover { background: var(--surface); transform: scale(1.02); border-color: var(--border); }
.song-item.active { background: var(--surface-bright); border-left: 4px solid var(--accent); }

.song-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #222; pointer-events: none; flex-shrink: 0; }
.song-item-info { flex-grow: 1; overflow: hidden; pointer-events: none; min-width: 0; }
.song-item-info h4 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.3px; }
.song-item-info p { font-size: 13px; color: var(--text-dim); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.2px; }

.song-actions { opacity: 0; display: flex; gap: 8px; transition: 0.3s; z-index: 2; }
.song-item:hover .song-actions { opacity: 1; }
.mini-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; transition: 0.2s; padding: 4px; }
.mini-btn:hover { color: var(--accent); transform: scale(1.2); }
.mini-btn.active { color: var(--accent); }

.song-item.dragging {
    opacity: 0.5;
    background: var(--accent-glow);
    border: 1px dashed var(--accent);
}

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(0px); z-index: 3000;
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active { display: flex; opacity: 1; backdrop-filter: blur(20px); }

.modal-content {
    background: #0d0d0d; border: 1px solid var(--border);
    width: 420px; padding: 40px; border-radius: var(--radius-lg);
    position: relative; transform: scale(0.9) translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.modal-overlay.active .modal-content.wipe-animate { animation: wipePulse 520ms ease-out both; }
.modal-overlay.active .modal-content.modal-animate { animation: modalReveal 520ms ease-out both; }

@keyframes wipePulse {
    0% { transform: scale(0.96) translateY(20px); opacity: 0.6; }
    60% { transform: scale(1.02) translateY(0); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes modalReveal {
    0% { transform: scale(0.95) translateY(24px); opacity: 0.5; }
    70% { transform: scale(1.01) translateY(0); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close { position: absolute; top: 25px; right: 25px; cursor: pointer; color: var(--text-dim); transition: 0.3s; }
.modal-close:hover { color: var(--accent); transform: rotate(90deg); }

.setting-group {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}
.setting-row span { font-size: 14px; font-weight: 500; color: #ddd; }

select {
    background: #1a1a1a;
    color: white;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    min-width: 120px;
}
select:hover { border-color: var(--accent); }

main { 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    padding: 40px; 
    position: relative; 
    height: 100vh;
}

.hero-section {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 50px; text-align: center;
    transition: all 0.8s ease;
}

.vinyl-container { 
    width: 380px; height: 380px; 
    position: relative; 
    filter: drop-shadow(0 0 50px rgba(0,0,0,1));
    display: none; 
}
.vinyl-container.visible { display: block; }

.vinyl {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #000;
    padding: 15px;
    animation: spin 15s linear infinite;
    animation-play-state: paused;
    border: 4px solid #111;
    position: relative;
}
body.playing .vinyl { animation-play-state: running; }
.vinyl img { 
    width: 100%; height: 100%; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 5px solid #000;
}

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

.track-meta h1 { font-size: 4rem; font-weight: 800; letter-spacing: -3px; margin-bottom: 12px; line-height: 1; text-transform: uppercase; }
.track-meta p { color: var(--accent); text-transform: uppercase; letter-spacing: 8px; font-size: 1.1rem; font-weight: 400; opacity: 0.7; }

.master-controls {
    position: fixed;
    bottom: 40px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 700px);
    min-width: 600px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: opacity 0.5s ease;
}

.playback-btns { display: flex; align-items: center; gap: 20px; }
.play-main {
    width: 65px; height: 65px;
    background: white; color: black;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s;
    border: none;
}
.play-main:hover { transform: scale(1.1); box-shadow: 0 0 30px rgba(255,255,255,0.3); }

.progress-bar { flex-grow: 1; height: 8px; background: var(--surface-bright); border-radius: 10px; cursor: pointer; position: relative; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 10px; }

.volume-controls { display: flex; align-items: center; gap: 18px; width: 160px; }
.vol-slider { flex-grow: 1; height: 5px; background: var(--surface-bright); cursor: pointer; border-radius: 10px; }
.vol-fill { height: 100%; width: 80%; background: white; border-radius: 10px; }

.fx-panel {
    margin-top: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}
.fx-panel.disabled { opacity: 0.3; pointer-events: none; filter: grayscale(1); }

/* Range inputs: flat line style without visible thumb */
.slider-control {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    margin-top: 15px;
    background: transparent;
    cursor: pointer;
}

/* Webkit track */
.slider-control::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}
.slider-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0px;
    height: 0px;
    background: transparent;
    margin-top: 0px;
}

/* Firefox */
.slider-control::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.slider-control::-moz-range-thumb {
    width: 0px; height: 0px; border: none; background: transparent;
}

/* IE fallback */
.slider-control::-ms-track { height:8px; background:transparent; border-color:transparent; color:transparent; }
.slider-control::-ms-fill-lower, .slider-control::-ms-fill-upper { background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border-radius:999px; }

/* Bass slider: orange animated line */
#bassGainSlider::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffb36b 0%, #ff8c00 40%, #ff4b00 100%);
    box-shadow: inset 0 2px 10px rgba(255,140,0,0.12);
    background-size: 200% 100%;
    animation: bassGlow 3s linear infinite;
}
#bassGainSlider::-moz-range-track {
    height: 8px; border-radius: 999px; background: linear-gradient(90deg, #ffb36b 0%, #ff8c00 40%, #ff4b00 100%);
}
#bassGainSlider::-ms-fill-lower, #bassGainSlider::-ms-fill-upper { background: linear-gradient(90deg, #ffb36b 0%, #ff8c00 40%, #ff4b00 100%); }

@keyframes bassGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* subtle highlight when adjusting bass */
#bassGainSlider:active::-webkit-slider-runnable-track { box-shadow: inset 0 4px 18px rgba(255,110,0,0.18); }
#bassGainSlider:focus { outline: none; }

.toast {
    position: fixed; top: 40px; left: 50%; transform: translateX(-50%) translateY(-30px);
    background: white; color: black; padding: 14px 32px;
    border-radius: 50px; font-size: 14px; font-weight: 700; opacity: 0; transition: 0.5s; z-index: 6000;
}
.toast.active { opacity: 1; transform: translateX(-50%) translateY(0); }

#fileInput { display: none; }

.loader-overlay {
    position: fixed; inset: 0; background: #000; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: 0.8s;
}
.loader-overlay.hidden { opacity: 0; pointer-events: none; }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-toggle {
    position: absolute; cursor: pointer; inset: 0; background-color: var(--surface-bright);
    transition: .4s; border-radius: 34px; border: 1px solid var(--border);
}
.slider-toggle:before {
    position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider-toggle { background-color: var(--accent); }
input:checked + .slider-toggle:before { transform: translateX(20px); }

/* Top centered search */
.top-search {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6000;
    width: min(680px, 90%);
    display: flex;
    justify-content: center;
    pointer-events: auto;
}
.top-search input[type="search"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18));
    color: white;
    font-size: 14px;
    outline: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.top-search input[type="search"]:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(0,0,0,0.6);
    border-color: var(--accent);
}

/* Restyled animated black-red bass toggle */
.switch { width: 54px; height: 28px; }
.slider-toggle {
    background: linear-gradient(180deg,#101010,#1a1a1a);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 6px 20px rgba(0,0,0,0.6);
    transition: background .35s cubic-bezier(.2,.9,.2,1), border-color .25s;
}
.slider-toggle:before {
    height: 20px; width: 20px; left: 4px; bottom: 4px; background: #0b0b0b; box-shadow: 0 4px 14px rgba(0,0,0,0.7);
}
input:checked + .slider-toggle {
    background: linear-gradient(90deg,#ff3e3e 0%, #b20000 100%);
    border-color: rgba(255,60,60,0.85);
    box-shadow: 0 8px 30px rgba(178,0,0,0.18);
}
input:checked + .slider-toggle:before {
    transform: translateX(26px);
    background: #120000;
}
/* small pulse when toggled */
input:checked + .slider-toggle {
    animation: bassPulse 1s ease-out;
}
@keyframes bassPulse {
    0% { box-shadow: 0 6px 20px rgba(178,0,0,0.12); }
    50% { box-shadow: 0 18px 40px rgba(178,0,0,0.22); transform: scale(1.01); }
    100% { box-shadow: 0 6px 20px rgba(178,0,0,0.12); transform: scale(1); }
}

.zen-trigger {
    position: fixed; top: 40px; right: 40px;
    z-index: 2000; background: var(--surface); border: 1px solid var(--border);
    padding: 12px; border-radius: 12px; cursor: pointer; transition: 0.3s;
}
.zen-trigger:hover { background: var(--accent); color: white; border-color: transparent; }

.credits-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    opacity: 0.6;
    transition: opacity 0.3s;
}
.credits-footer:hover { opacity: 1; }
.credits-name { color: var(--accent); }

.mobile-add-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 5100;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent);
    border: 0;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.mobile-menu-trigger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    width: 48px;
    height: 48px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 8000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10,10,10,.98);
    backdrop-filter: blur(50px);
    border-right: 1px solid var(--border);
    z-index: 9000;
    transform: translateX(-100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    pointer-events: auto;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1280px) {
    .app-container { grid-template-columns: 260px 1fr 260px; }
    aside { padding: 30px 15px; }
    aside.right { padding: 30px 15px 150px 15px; }
    .master-controls { width: calc(100% - 560px); min-width: 500px; padding: 25px 30px; gap: 20px; }
    .vinyl-container { width: 280px; height: 280px; }
    .track-meta h1 { font-size: 3rem; }
    .playback-btns { gap: 15px; }
    .play-main { width: 55px; height: 55px; }
}

@media (max-width: 1024px) {
    .app-container { grid-template-columns: 1fr; }
    aside { display: none; }
    aside.right { display: none; }
    main { padding: 20px; }
    .master-controls { width: 90%; min-width: auto; left: 5%; right: 5%; transform: none; padding: 20px; }
    .vinyl-container { width: 220px; height: 220px; }
    .track-meta h1 { font-size: 2.5rem; }
    .zen-trigger { top: 20px; right: 20px; }
    #visualizerCanvas { height: 30vh; }
    .mobile-menu-trigger { display: flex; }
    .mobile-add-btn { display: flex; }
}

@media (max-width: 768px) {
    body { height: auto; }
    .app-container { height: auto; display: flex; flex-direction: column; }
    main { height: auto; padding: 15px; min-height: 50vh; }
    .master-controls { position: relative; width: 100%; left: 0; right: 0; transform: none; bottom: auto; padding: 15px; margin-top: 20px; }
    .vinyl-container { width: 180px; height: 180px; }
    .track-meta h1 { font-size: 2rem; }
    .track-meta p { font-size: 0.9rem; letter-spacing: 4px; }
    .playback-btns { gap: 10px; }
    .play-main { width: 50px; height: 50px; }
    .song-item-info h4 { font-size: 13px; }
    .song-item-info p { font-size: 11px; }
    .song-item { padding: 10px; margin-bottom: 6px; gap: 10px; }
    .song-item img { width: 40px; height: 40px; }
    #visualizerCanvas { height: 25vh; }
    .zen-trigger { padding: 8px; }
}

@media (max-width: 480px) {
    main { min-height: auto; }
    .vinyl-container { width: 150px; height: 150px; }
    .track-meta h1 { font-size: 1.5rem; }
    .track-meta p { font-size: 0.8rem; letter-spacing: 2px; }
    .master-controls { padding: 12px; gap: 12px; }
    .playback-btns { gap: 5px; }
    .play-main { width: 45px; height: 45px; }
    .song-item { padding: 10px; margin-bottom: 6px; gap: 10px; }
    .song-item img { width: 40px; height: 40px; }
    .progress-bar { height: 6px; }
    #visualizerCanvas { height: 20vh; }
    .modal-content { width: calc(100% - 40px); padding: 25px; }
    .zen-trigger { display: none; }
}

#sidebarQueueList .song-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    margin-bottom: 6px;
    border-radius: 8px;
}

#sidebarQueueList .song-item:hover {
    background: rgba(255, 62, 0, 0.15);
    border-color: var(--accent);
    transform: translateX(4px);
}

#sidebarQueueList .song-item.active {
    background: rgba(255, 62, 0, 0.25);
    border-left: 4px solid var(--accent);
}

#sidebarQueueList .song-item-info h4 {
    font-size: 14px;
    color: var(--text);
}

#sidebarQueueList .song-item-info p {
    font-size: 12px;
    color: var(--text-dim);
}

#sidebarQueueList .song-item img {
    width: 38px;
    height: 38px;
}

@media (min-width: 1025px) {
    .mobile-menu-trigger, .mobile-sidebar, .mobile-sidebar-overlay { display: none !important; }
}

/* ============ НОВЫЕ СТИЛИ ДЛЯ МОДАЛЕЙ ============ */
#renamePlaylistModal .modal-content,
#deletePlaylistModal .modal-content {
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#renamePlaylistInput {
    font-size: 16px;
}

#renamePlaylistInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#renamePlaylistInput:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 12px rgba(255, 62, 0, 0.2);
    background: #1e1e1e;
}

/* ============ ПЛЕЙЛИСТ ПИКЕР КНОПКИ ============ */
.playlist-picker-btn {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.playlist-picker-btn:active {
    transform: scale(0.98);
}

/* ============ АНИМИРОВАННЫЕ КНОПКИ НАСТРОЕК ============ */
.settings-btn {
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.3s ease !important;
}

.settings-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 62, 0, 0.15);
}

.settings-btn:active {
    transform: translateY(-1px);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ ОЧЕРЕДЬ И ОЧИСТКА ============ */
.queue-clear-btn {
    animation: fadeIn 0.3s ease-out;
}

.queue-clear-btn:hover {
    background: var(--surface-bright) !important;
    border-color: var(--accent) !important;
    transform: translateX(2px);
}

.queue-clear-btn:active {
    transform: scale(0.98);
}

/* ============ ПЛЕЕР ИКОНКА ============ */
.play-main img {
    transition: filter 0.3s ease, transform 0.2s ease;
}

.play-main:hover img {
    filter: brightness(1.2);
}

    /* ============ MULTI-SELECT TRACKS ============ */
    .selected-track {
        background: rgba(79, 172, 254, 0.15) !important;
        border-color: var(--accent) !important;
        position: relative;
    }

    .selected-track::before {
        content: '';
        position: absolute;
        left: 12px;
        width: 20px;
        height: 20px;
        border-radius: 4px;
        background: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: white;
    }

    .selected-track::after {
        content: '✓';
        position: absolute;
        left: 15px;
        font-size: 12px;
        color: white;
        font-weight: bold;
    }

    .track-count-badge {
        background: var(--accent);
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        margin-left: 8px;
    }

    .batch-add-btn {
        background: linear-gradient(135deg, var(--accent), rgba(79, 172, 254, 0.8));
        border: 1px solid var(--accent);
        color: white !important;
        padding: 12px 18px !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        animation: slideIn 0.3s ease-out;
    }

    .batch-add-btn:hover {
        background: linear-gradient(135deg, rgba(79, 172, 254, 0.9), var(--accent));
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(79, 172, 254, 0.3);
    }

    .batch-add-btn:active {
        transform: translateY(0);
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
.play-main:active img {
    transform: scale(0.95);
}

/* ============ МОДАЛЬНЫЕ ОКНА АНИМАЦИЯ ============ */
#settingsModal .modal-content {
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#playlistModal .modal-content {
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============ ZEN MODE SEARCH ============ */
.zen-search-container {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 5010;
}

.zen-search-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.zen-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 62, 0, 0.3);
}

.zen-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.zen-search-results {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.zen-search-results::-webkit-scrollbar {
    height: 6px;
}

.zen-search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.zen-search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.zen-search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.zen-search-result-item {
    flex: 0 0 calc((100% - 96px) / 7);
    min-width: 120px;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.zen-search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.zen-search-result-item:active {
    transform: translateY(-2px);
}

.zen-result-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.zen-result-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zen-result-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zen-search-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    font-size: 14px;
}

.navidrome-queue-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 10, 10, 0.6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    z-index: 20;
}

.navidrome-queue-btn:hover {
    transform: scale(1.08);
    background: rgba(10, 10, 10, 0.8);
    border-color: rgba(255, 255, 255, 0.35);
}

.navidrome-queue-btn i {
    width: 18px;
    height: 18px;
}
