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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---------- GLASSMORPHISM BASE ---------- */
.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-stat {
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease, border-color 0.2s;
}
.glass-stat:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* ---------- CUSTOM SCROLLBAR ---------- */
.scrollbar-thin::-webkit-scrollbar {
    width: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

/* ---------- VOLUME & PROGRESS SLIDER ---------- */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
    background: rgba(255,255,255,0.08);
    height: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    margin-top: -6px;
    box-shadow: 0 0 12px #3b82f6, 0 0 20px #3b82f6;
    border: 2px solid rgba(255,255,255,0.8);
    transition: 0.1s;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #3b82f6;
}
input[type="range"]:focus {
    outline: none;
}

/* ---------- PROGRESS BAR ---------- */
#progress-container {
    transition: height 0.2s;
}
#progress-container:hover {
    height: 6px;
}
#progress-bar {
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

/* ---------- PLAYLIST ITEMS ---------- */
.playlist-item {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(4px);
}
.playlist-item:hover {
    background: rgba(59,130,246,0.08) !important;
    border-left-color: #3b82f6;
    transform: translateX(6px);
}
.playlist-item.playing {
    background: linear-gradient(90deg, rgba(59,130,246,0.12), rgba(139,92,246,0.05));
    border-left-color: #3b82f6;
}
.liked-track {
    background: rgba(245,158,11,0.06);
    border-left: 4px solid #f59e0b;
}

/* ---------- BOOKMARK ACTIVE STATE ---------- */
.bookmark-active {
    background: linear-gradient(145deg, #f59e0b, #d97706) !important;
    color: white !important;
    border: none;
}

/* ---------- SOCIAL ICONS ---------- */
.social-icon {
    transition: all 0.25s;
    color: #cbd5e1;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
}
.social-icon:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* ---------- ZVERSE CARDS ---------- */
.zverse-card {
    position: relative;
    padding: 2rem 1.5rem;
    border-radius: 24px;
    background: rgba(10,10,20,0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}
.zverse-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.7), 0 0 0 1px rgba(59,130,246,0.2);
}
.zverse-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59,130,246,0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}
.zverse-card:hover::after {
    opacity: 1;
}
.zverse-explore-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.25s;
    opacity: 0;
    transform: translateY(12px);
    margin-top: 1rem;
}
.zverse-card:hover .zverse-explore-btn {
    opacity: 1;
    transform: translateY(0);
}
.zverse-explore-btn:hover {
    background: rgba(59,130,246,0.3);
    border-color: #3b82f6;
}

/* ---------- REPEAT BUTTON ACTIVE STATE ---------- */
#repeat-btn.active i {
    color: #3b82f6;
    text-shadow: 0 0 8px #3b82f6;
}
.repeat-one i {
    color: #f59e0b;
}

/* ---------- PARTICLE CANVAS ---------- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ---------- FOOTER ---------- */
footer a {
    transition: color 0.2s, transform 0.2s;
}
footer .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
}
footer .social-icon:hover {
    background: currentColor;
    color: black;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
    from { backdrop-filter: blur(0px); background: rgba(0,0,0,0); }
    to { backdrop-filter: blur(20px); background: rgba(0,0,0,0.8); }
}
[id$="overlay"], #crypto-modal {
    animation: fadeIn 0.25s ease;
}

/* ---------- RESPONSIVE FIXES ---------- */
@media (max-width: 640px) {
    .playlist-item {
        padding: 0.75rem;
    }
    .zverse-card .zverse-explore-btn {
        opacity: 1;
        transform: translateY(0);
        padding: 0.5rem 1rem;
    }
    .glass-stat {
        padding: 1rem;
    }
}