@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* Theme Variables */
:root {
    /* Modern Theme (Default) */
    --primary: #ff006e;
    --primary-rgb: 255, 0, 110;
    --secondary: #8338ec;
    --tertiary: #3a86ff;
    --accent: #06ffa5;
    --accent-light: #87ceeb;
    --dark-base: #0a0014;
    --dark-mid: #1a0b2e;
    --dark-light: #16213e;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b8b8ff;
    --gradient-bg: linear-gradient(45deg, #1a0b2e, #16213e, #0f3460, #1a0b2e);
    --gradient-logo: linear-gradient(135deg, #ff006e, #ffcc00, #8338ec, #3a86ff, #06ffa5, #ff6b35, #ff006e);
    --gradient-accent: linear-gradient(135deg, #ff006e, #8338ec);
}

/* Nostalgic Theme */
[data-theme="nostalgic"] {
    --primary: #8b4513;
    --primary-rgb: 139, 69, 19;
    --secondary: #654321;
    --tertiary: #a0522d;
    --accent: #cd853f;
    --accent-light: #deb887;
    --dark-base: #2e1b0d;
    --dark-mid: #3d251a;
    --dark-light: #4a2f1f;
    --glass-bg: rgba(139, 69, 19, 0.1);
    --text-primary: #faf0e6;
    --text-secondary: #d2b48c;
    --gradient-bg: linear-gradient(45deg, #2e1b0d, #3d251a, #4a2f1f, #2e1b0d);
    --gradient-logo: linear-gradient(135deg, #8b4513, #cd853f, #654321, #a0522d, #deb887, #d2691e, #8b4513);
    --gradient-accent: linear-gradient(135deg, #8b4513, #654321);
}

/* Neon Cyber Theme */
[data-theme="neon"] {
    --primary: #00ffff;
    --primary-rgb: 0, 255, 255;
    --secondary: #ff00ff;
    --tertiary: #00ff00;
    --accent: #ffff00;
    --accent-light: #00ffff;
    --dark-base: #0a0a0a;
    --dark-mid: #1a001a;
    --dark-light: #2a002a;
    --glass-bg: rgba(0, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #00ffff;
    --gradient-bg: linear-gradient(45deg, #0a0a0a, #1a001a, #2a002a, #0a0a0a);
    --gradient-logo: linear-gradient(135deg, #00ffff, #ff00ff, #00ff00, #ffff00, #ff0080, #00ffff);
    --gradient-accent: linear-gradient(135deg, #00ffff, #ff00ff);
}

/* Forest Vibe Theme */
[data-theme="forest"] {
    --primary: #2d5016;
    --primary-rgb: 45, 80, 22;
    --secondary: #1e3a0b;
    --tertiary: #3d6b1a;
    --accent: #4a7c1f;
    --accent-light: #6b9c35;
    --dark-base: #0d1f07;
    --dark-mid: #1a3510;
    --dark-light: #254419;
    --glass-bg: rgba(45, 80, 22, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a8d899;
    --gradient-bg: linear-gradient(45deg, #0d1f07, #1a3510, #254419, #0d1f07);
    --gradient-logo: linear-gradient(135deg, #2d5016, #4a7c1f, #1e3a0b, #3d6b1a, #6b9c35, #8fbc8f, #2d5016);
    --gradient-accent: linear-gradient(135deg, #2d5016, #1e3a0b);
}

/* Sunset Dreams Theme */
[data-theme="sunset"] {
    --primary: #ff4500;
    --primary-rgb: 255, 69, 0;
    --secondary: #ff6347;
    --tertiary: #ffa500;
    --accent: #ffb6c1;
    --accent-light: #ffd700;
    --dark-base: #2f1b14;
    --dark-mid: #4a2617;
    --dark-light: #5d321a;
    --glass-bg: rgba(255, 69, 0, 0.1);
    --text-primary: #fff8dc;
    --text-secondary: #ffb6c1;
    --gradient-bg: linear-gradient(45deg, #2f1b14, #4a2617, #5d321a, #2f1b14);
    --gradient-logo: linear-gradient(135deg, #ff4500, #ffd700, #ff6347, #ffa500, #ffb6c1, #ff1493, #ff4500);
    --gradient-accent: linear-gradient(135deg, #ff4500, #ff6347);
}

/* Funky Theme - 70s Funk & Soul inspired colors */
[data-theme="funky"] {
    --primary: #d2691e;
    --primary-rgb: 210, 105, 30;
    --secondary: #cd853f;
    --tertiary: #8b4513;
    --accent: #ff8c00;
    --accent-light: #ffa500;
    --dark-base: #2d1b0f;
    --dark-mid: #3d2817;
    --dark-light: #4a3220;
    --glass-bg: rgba(210, 105, 30, 0.15);
    --text-primary: #ffefd5;
    --text-secondary: #deb887;
    --gradient-bg: linear-gradient(45deg, #2d1b0f, #3d2817, #4a3220, #2d1b0f);
    --gradient-logo: linear-gradient(135deg, #d2691e, #cd853f, #8b4513, #ff8c00, #ffa500, #daa520, #d2691e);
    --gradient-accent: linear-gradient(135deg, #d2691e, #ff8c00);
}

/* Reggae Theme - Rastafarian colors with orange vibes */
[data-theme="reggae"] {
    --primary: #ff8c00;
    --primary-rgb: 255, 140, 0;
    --secondary: #ffd700;
    --tertiary: #009639;
    --accent: #ff4500;
    --accent-light: #ff6347;
    --dark-base: #2d1a0d;
    --dark-mid: #4a2c17;
    --dark-light: #5d3620;
    --glass-bg: rgba(255, 140, 0, 0.15);
    --text-primary: #fff8dc;
    --text-secondary: #ffb347;
    --gradient-bg: linear-gradient(45deg, #2d1a0d, #4a2c17, #5d3620, #2d1a0d);
    --gradient-logo: linear-gradient(135deg, #ff8c00, #ffd700, #009639, #ff4500, #ff6347, #dc143c, #ff8c00);
    --gradient-accent: linear-gradient(135deg, #ff8c00, #ff4500);
}

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

/* Ensure text elements don't show cursor unless they're actually interactive */
h1, h2, h3, h4, h5, h6, p, span, div {
    cursor: default !important;
}

/* Specific overrides for text elements */
.track-title, .track-artist, .track-album, .player-status, .widget-title, .stat-label, .chat-text, .playlist-info h4, .playlist-info p {
    cursor: default !important;
}

/* Ensure Material Icons inside clickable elements show pointer cursor */
button .material-icons,
.clickable-album-art .material-icons,
.clickable-artwork .material-icons {
    cursor: pointer !important;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-base);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    transition: all 0.5s ease;
}

/* Animated background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-bg);
    background-size: 400% 400%;
    transition: all 0.5s ease;
}

.bg-animation.animated {
    animation: gradientShift 25s ease infinite;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--primary), transparent 88%) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--secondary), transparent 88%) 0%, transparent 70%),
        radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--tertiary), transparent 90%) 0%, transparent 70%),
        radial-gradient(circle at 60% 70%, color-mix(in srgb, var(--accent), transparent 92%) 0%, transparent 60%);
    transition: all 0.8s ease;
}

.bg-animation.animated::before {
    animation: float 18s ease-in-out infinite, colorShift 30s ease-in-out infinite;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes colorShift {
    0% { 
        background: radial-gradient(circle at 20% 80%, rgba(255, 0, 110, 0.12) 0%, transparent 70%),
                    radial-gradient(circle at 80% 20%, rgba(131, 56, 236, 0.12) 0%, transparent 70%),
                    radial-gradient(circle at 40% 40%, rgba(58, 134, 255, 0.10) 0%, transparent 70%),
                    radial-gradient(circle at 60% 70%, rgba(6, 255, 165, 0.08) 0%, transparent 60%);
    }
    12.5% { 
        background: radial-gradient(circle at 25% 75%, rgba(131, 56, 236, 0.14) 0%, transparent 72%),
                    radial-gradient(circle at 75% 25%, rgba(58, 134, 255, 0.11) 0%, transparent 68%),
                    radial-gradient(circle at 45% 45%, rgba(6, 255, 165, 0.12) 0%, transparent 75%),
                    radial-gradient(circle at 65% 75%, rgba(255, 0, 110, 0.09) 0%, transparent 62%);
    }
    25% { 
        background: radial-gradient(circle at 30% 70%, rgba(131, 56, 236, 0.12) 0%, transparent 70%),
                    radial-gradient(circle at 70% 30%, rgba(58, 134, 255, 0.12) 0%, transparent 70%),
                    radial-gradient(circle at 50% 50%, rgba(6, 255, 165, 0.10) 0%, transparent 70%),
                    radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.08) 0%, transparent 60%);
    }
    37.5% { 
        background: radial-gradient(circle at 35% 65%, rgba(58, 134, 255, 0.13) 0%, transparent 72%),
                    radial-gradient(circle at 65% 35%, rgba(6, 255, 165, 0.14) 0%, transparent 68%),
                    radial-gradient(circle at 25% 25%, rgba(255, 0, 110, 0.11) 0%, transparent 74%),
                    radial-gradient(circle at 85% 85%, rgba(131, 56, 236, 0.09) 0%, transparent 63%);
    }
    50% { 
        background: radial-gradient(circle at 40% 60%, rgba(58, 134, 255, 0.12) 0%, transparent 70%),
                    radial-gradient(circle at 60% 40%, rgba(6, 255, 165, 0.12) 0%, transparent 70%),
                    radial-gradient(circle at 20% 20%, rgba(255, 0, 110, 0.10) 0%, transparent 70%),
                    radial-gradient(circle at 90% 90%, rgba(131, 56, 236, 0.08) 0%, transparent 60%);
    }
    62.5% { 
        background: radial-gradient(circle at 55% 45%, rgba(6, 255, 165, 0.13) 0%, transparent 73%),
                    radial-gradient(circle at 45% 55%, rgba(255, 0, 110, 0.14) 0%, transparent 69%),
                    radial-gradient(circle at 75% 55%, rgba(131, 56, 236, 0.11) 0%, transparent 72%),
                    radial-gradient(circle at 15% 15%, rgba(58, 134, 255, 0.09) 0%, transparent 64%);
    }
    75% { 
        background: radial-gradient(circle at 70% 30%, rgba(6, 255, 165, 0.12) 0%, transparent 70%),
                    radial-gradient(circle at 30% 70%, rgba(255, 0, 110, 0.12) 0%, transparent 70%),
                    radial-gradient(circle at 80% 60%, rgba(131, 56, 236, 0.10) 0%, transparent 70%),
                    radial-gradient(circle at 10% 10%, rgba(58, 134, 255, 0.08) 0%, transparent 60%);
    }
    87.5% { 
        background: radial-gradient(circle at 15% 85%, rgba(255, 0, 110, 0.13) 0%, transparent 71%),
                    radial-gradient(circle at 85% 15%, rgba(131, 56, 236, 0.13) 0%, transparent 73%),
                    radial-gradient(circle at 35% 35%, rgba(58, 134, 255, 0.11) 0%, transparent 69%),
                    radial-gradient(circle at 55% 65%, rgba(6, 255, 165, 0.09) 0%, transparent 61%);
    }
    100% { 
        background: radial-gradient(circle at 20% 80%, rgba(255, 0, 110, 0.12) 0%, transparent 70%),
                    radial-gradient(circle at 80% 20%, rgba(131, 56, 236, 0.12) 0%, transparent 70%),
                    radial-gradient(circle at 40% 40%, rgba(58, 134, 255, 0.10) 0%, transparent 70%),
                    radial-gradient(circle at 60% 70%, rgba(6, 255, 165, 0.08) 0%, transparent 60%);
    }
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0px 40px 10px;
}

.header-left {
    text-align: left;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-logo);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

    .logo.animated {
        animation: logoPulse 45s linear infinite;
    }

    .logo:not(.animated) {
        background: var(--gradient-accent) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        color: transparent !important;
    }

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

.tagline {
    font-size: 18px;
    color: var(--accent-light);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-player {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.main-player::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 0, 110, 0.05), transparent);
    z-index: -1;
    transition: all 0.5s ease;
}

.main-player.animated::before {
    animation: rotateGlow 25s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.player-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    align-items: center;
}

.album-section {
    text-align: center;
}

.album-container {
    position: relative;
    margin-bottom: 15px;
}

.album-artwork {
    width: 320px;
    height: 320px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.album-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.album-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.album-artwork:hover {
    transform: scale(1.05) rotateY(10deg);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6);
}

.album-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: all 0.5s ease;
}

.pulse-ring.animated {
    animation: pulse 4.5s ease-in-out infinite;
}

.pulse-ring svg {
    width: 100%;
    height: 100%;
}

.pulse-ring-circle {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    opacity: 0.8;
    transition: stroke 0.3s ease;
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent), transparent 50%));
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Play button pulse animation for auto-start encouragement */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 15px 30px color-mix(in srgb, var(--primary), transparent 60%);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 40px color-mix(in srgb, var(--primary), transparent 40%);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 15px 30px color-mix(in srgb, var(--primary), transparent 60%);
    }
}

.magnifier-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.magnifier-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.magnifier-btn .material-icons {
    font-size: 20px;
    cursor: pointer;
}

/* Album Modal */
.album-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.album-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.album-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.album-modal-content {
    position: relative;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    width: auto;
    height: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: modalZoomIn 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.album-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.album-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.album-modal-close .material-icons {
    font-size: 20px;
    cursor: pointer;
}

#modalAlbumArt {
    max-width: min(70vw, 500px);
    max-height: min(60vh, 500px);
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    object-fit: contain;
}

.album-modal-info h3 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.album-modal-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.album-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.album-modal-actions .action-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.album-modal-actions .action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.album-modal-actions .action-btn svg {
    width: 30px;
    height: 30px;
    color: white;
}

.album-modal-actions .action-btn .material-icons {
    font-size: 24px;
    color: white;
    cursor: pointer;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .album-modal.show {
        padding: 15px;
    }
    
    .album-modal-content {
        padding: 20px;
        max-width: calc(100vw - 30px);
        max-height: calc(100vh - 30px);
        overflow: hidden;
    }
    
    #modalAlbumArt {
        max-width: min(60vw, 300px);
        max-height: min(50vh, 300px);
        margin-bottom: 15px;
    }
    
    .album-modal-info h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .album-modal-info p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .album-modal-actions {
        gap: 12px;
    }
    
    .album-modal-actions .action-btn {
        width: 45px;
        height: 45px;
    }
    
    .album-modal-actions .action-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .album-modal-actions .action-btn .material-icons {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .album-modal.show {
        padding: 10px;
    }
    
    .album-modal-content {
        padding: 15px;
        border-radius: 15px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        overflow: hidden;
    }
    
    #modalAlbumArt {
        max-width: min(55vw, 250px);
        max-height: min(45vh, 250px);
        border-radius: 12px;
    }
    
    .album-modal-info h3 {
        font-size: 16px;
        word-break: break-word;
    }
    
    .album-modal-info p {
        font-size: 13px;
        word-break: break-word;
    }
    
    .album-modal-actions {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .album-modal-actions .action-btn {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .album-modal-actions .action-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .album-modal-actions .action-btn .material-icons {
        font-size: 18px;
    }
    
    .album-modal-close {
        width: 35px;
        height: 35px;
        top: 8px;
        right: 8px;
    }
    
    .album-modal-close .material-icons {
        font-size: 18px;
    }
}

/* Extra small screens and high zoom */
@media (max-width: 320px) {
    .album-modal.show {
        padding: 5px;
    }
    
    .album-modal-content {
        padding: 10px;
        max-width: calc(100vw - 10px);
        max-height: calc(100vh - 10px);
    }
    
    #modalAlbumArt {
        max-width: min(50vw, 200px);
        max-height: min(40vh, 200px);
    }
    
    .album-modal-info h3 {
        font-size: 14px;
    }
    
    .album-modal-info p {
        font-size: 12px;
    }
    
    .album-modal-actions .action-btn {
        width: 36px;
        height: 36px;
    }
}



.track-info {
    text-align: left;
    cursor: default;
}

.track-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff, #b8b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.track-artist {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.track-album {
    font-size: 18px;
    color: #8338ec;
    font-weight: 400;
    margin-bottom: 30px;
}

.waveform {
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.waveform-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff006e, #8338ec, #3a86ff);
    width: 35%;
    border-radius: 15px;
    position: relative;
}

.waveform-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.controls-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 30px 0;
}

.main-play-btn {
    width: 90px;
    height: 90px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    font-size: 30px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px color-mix(in srgb, var(--primary), transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--primary), transparent 40%);
}

.main-play-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-play-btn:hover::before {
    opacity: 1;
}

.main-play-btn .material-icons {
    font-size: 48px;
    cursor: pointer;
}

.control-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.effects-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #ffffff;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: var(--gradient-accent);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Desktop Controls */
.desktop-controls {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Mobile Menu Wrapper */
.mobile-menu-wrapper {
    display: none;
    position: relative;
}

/* Burger Menu Button */
.burger-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    gap: 4px;
    padding: 0;
}

.burger-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.burger-line {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 50px;
    right: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Mobile Effects Toggle */
.mobile-effects-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.mobile-toggle-label input[type="checkbox"] {
    display: none;
}

.mobile-toggle-slider {
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-toggle-label input[type="checkbox"]:checked + .mobile-toggle-slider {
    background: var(--gradient-accent);
}

.mobile-toggle-label input[type="checkbox"]:checked + .mobile-toggle-slider::before {
    transform: translateX(24px);
}

.mobile-toggle-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Theme Selector */
.mobile-theme-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.mobile-theme-selector-label {
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mobile-theme-selector-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.mobile-theme-selector-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-theme-selector-dropdown option {
    background: var(--dark-base);
    color: white;
    text-align: center;
}

/* Theme Selector Styles */
.theme-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-selector-label {
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.theme-selector-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.theme-selector-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.theme-selector-dropdown option {
    background: var(--dark-base);
    color: white;
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.volume-slider {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    background: var(--gradient-accent);
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 5px 15px color-mix(in srgb, var(--primary), transparent 40%);
}

.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.widget {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 15px;
    position: relative;
    overflow-y: auto;
    height: 520px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

/* Widget Scrollbar (Hidden by default, shown on hover) */
.widget::-webkit-scrollbar {
    width: 0px;
    transition: width 0.3s ease;
}

.widget::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.widget::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Show widget scrollbar on hover */
.widget:hover::-webkit-scrollbar {
    width: 8px;
}

.widget:hover::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.widget:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
}

.widget:hover::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff006e, #8338ec);
    transform: scale(1.1);
}

/* Firefox Scrollbar - Widget (Hidden by default, shown on hover) */
.widget {
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.widget:hover {
    scrollbar-width: thin;
    scrollbar-color: #ff006e rgba(255, 255, 255, 0.1);
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff006e, #8338ec, #3a86ff, #06ffa5);
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px; /* Reduced from 25px to 10px */
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff006e, #8338ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: #b8b8ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-area {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
    cursor: default;
    min-height: 0;
}

.history-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    cursor: default;
    min-height: 0;
    scrollbar-gutter: stable;
    overflow: overlay; /* Modern browsers use overlay scrollbars */
}

/* Custom Scrollbars - Chat (Hidden by default, shown on hover) */
.chat-area::-webkit-scrollbar {
    width: 0px;
    transition: width 0.3s ease;
}

.chat-area::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.chat-area::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Show chat scrollbar on hover */
.chat-area:hover::-webkit-scrollbar {
    width: 8px;
}

.chat-area:hover::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.chat-area:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
}

.chat-area:hover::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff006e, #8338ec);
    transform: scale(1.1);
}

/* Track History Scrollbar - Overlay style that doesn't affect layout */
.history-area::-webkit-scrollbar {
    width: 8px;
}

.history-area::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.history-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Enhanced scrollbar on hover */
.history-area:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
}

.history-area:hover::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff006e, #8338ec);
    transform: scale(1.1);
}

/* Firefox Scrollbar - Chat (Hidden by default, shown on hover) */
.chat-area {
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.chat-area:hover {
    scrollbar-width: thin;
    scrollbar-color: #ff006e rgba(255, 255, 255, 0.1);
}

.history-area {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    transition: scrollbar-color 0.3s ease;
}

.history-area:hover {
    scrollbar-width: thin;
    scrollbar-color: #ff006e rgba(255, 255, 255, 0.1);
}

/* Chat Message Styling with Color Coding */
.chat-message {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 3px solid #ff006e;
    animation: slideIn 0.3s ease;
}

/* System Messages - Special styling with Orange theme */
.chat-message.system-message {
    background: rgba(255, 140, 0, 0.1);
    border-left: 3px solid #ff8c00;
    border-radius: 12px;
}

.chat-message.system-message .message-user {
    color: #ff8c00;
    font-weight: 700;
    font-size: 13px;
}

.chat-message.system-message .message-text {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* Current User Messages */
.chat-message.current-user {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.1));
    border-left: 3px solid #ffd700;
    margin-left: auto;
    margin-right: 0;
    max-width: 80%;
}

.chat-message.current-user .message-user {
    color: #ffd700;
    font-weight: 600;
}

.chat-message.current-user .message-text {
    color: #ffffff;
}

/* Other Users Messages */
.chat-message:not(.current-user):not(.system-message) {
    background: rgba(0, 255, 136, 0.08);
    border-left: 3px solid #00ff88;
    margin-left: 0;
    margin-right: auto;
    max-width: 80%;
}

.chat-message:not(.current-user):not(.system-message) .message-user {
    color: #00ff88;
    font-weight: 600;
}

.chat-message:not(.current-user):not(.system-message) .message-text {
    color: #ffffff;
}

/* Message structure */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.message-user {
    font-size: 14px;
    font-weight: 600;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.message-timestamp {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.message-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.message-date {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 2px;
    font-weight: 300;
}

/* Nickname Input Styling */
.nickname-input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    outline: none;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.nickname-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Legacy styles to maintain compatibility */
.chat-user-current {
    color: #ffd700;
}

.chat-user-other {
    color: #00ff88;
}

.chat-time-styled {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin-top: 4px;
}

.nickname-popup-title {
    color: white;
    margin-bottom: 20px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nickname-popup-icon {
    font-size: 28px;
    color: #ff006e;
}

.nickname-popup-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 16px;
}

.nickname-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.nickname-cancel-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nickname-confirm-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #ff006e, #8338ec);
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Nickname Modal CSS Classes */
.nickname-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(20px);
    padding: 20px;
    box-sizing: border-box;
}

.nickname-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Responsive Nickname Modal */
@media (max-width: 768px) {
    .nickname-modal-overlay {
        padding: 15px;
    }
    
    .nickname-modal-content {
        padding: 30px 20px;
        max-width: 350px;
        border-radius: 18px;
    }
    
    .nickname-popup-title {
        font-size: 20px;
        margin-bottom: 15px;
        gap: 8px;
    }
    
    .nickname-popup-icon {
        font-size: 24px;
    }
    
    .nickname-popup-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .nickname-input {
        padding: 12px;
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .nickname-buttons {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .nickname-cancel-btn,
    .nickname-confirm-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .nickname-modal-overlay {
        padding: 10px;
    }
    
    .nickname-modal-content {
        padding: 25px 15px;
        max-width: calc(100vw - 20px);
        border-radius: 15px;
    }
    
    .nickname-popup-title {
        font-size: 18px;
        margin-bottom: 12px;
        gap: 6px;
    }
    
    .nickname-popup-icon {
        font-size: 20px;
    }
    
    .nickname-popup-description {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .nickname-input {
        padding: 10px;
        font-size: 14px;
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .nickname-buttons {
        gap: 10px;
        flex-direction: column;
    }
    
    .nickname-cancel-btn,
    .nickname-confirm-btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        border-radius: 12px;
    }
}

@media (max-width: 320px) {
    .nickname-modal-overlay {
        padding: 5px;
    }
    
    .nickname-modal-content {
        padding: 20px 12px;
        max-width: calc(100vw - 10px);
        border-radius: 12px;
    }
    
    .nickname-popup-title {
        font-size: 16px;
        margin-bottom: 10px;
        gap: 5px;
        flex-direction: column;
    }
    
    .nickname-popup-icon {
        font-size: 18px;
    }
    
    .nickname-popup-description {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .nickname-input {
        padding: 8px;
        font-size: 13px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .nickname-cancel-btn,
    .nickname-confirm-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

.track-album-visible {
    display: block;
}

.track-album-hidden {
    display: none;
}

.action-btn-success {
    background: #4CAF50 !important;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gradient-accent);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.show {
    transform: translateX(0);
}

.toast .material-icons {
    margin-right: 8px;
    vertical-align: middle;
}

.album-art-transition {
    transition: opacity 0.3s ease;
}

.album-art-fade-out {
    opacity: 0;
}

.album-art-fade-in {
    opacity: 1;
}

.chat-message-animated {
    animation: slideIn 0.3s ease-out;
}

.chat-message-current-user {
    margin-left: auto;
    margin-right: 0;
    max-width: 80%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-left: 3px solid #ffd700;
}

.chat-message-other-user {
    margin-left: 0;
    margin-right: auto;
    max-width: 80%;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #00ff88;
}

.nickname-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.nickname-popup-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.nickname-input-error {
    border: 2px solid #ff006e;
}

.nickname-input-normal {
    border: none;
}

.body-no-scroll {
    overflow: hidden;
}

.body-scroll {
    overflow: auto;
}

/* Fullscreen Visualization Styles */
.fullscreen-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.fullscreen-visualization {
    position: relative;
    width: 95vw;
    height: 95vh;
    background: linear-gradient(45deg, #1a0b2e, #16213e, #0f3460, #1a0b2e);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fullscreen-mode-btn:hover,
.fullscreen-close-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.track-actions {
    display: flex;
    opacity: 1;
    transition: opacity 0.3s ease;
    margin-top: 8px;
    padding: 0 4px 4px 4px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    margin-right: 8px;
    padding: 2px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: none !important;
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn .material-icons {
    font-size: 22px;
    color: white;
    cursor: pointer;
}

.action-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    transform: none !important;
}

.action-btn:disabled::before {
    opacity: 0 !important;
}

.action-btn:disabled svg,
.action-btn:disabled .material-icons {
    opacity: 0.6;
}

.copy-btn:hover {
    background: rgba(76, 175, 80, 0.3) !important;
}

.youtube-btn:hover {
    background: rgba(255, 0, 0, 0.3) !important;
}

.spotify-btn:hover {
    background: rgba(30, 215, 96, 0.3) !important;
}

.soundcloud-btn:hover {
    background: rgba(255, 140, 0, 0.3) !important;
}

.apple-btn:hover {
    background: rgba(0, 122, 255, 0.3) !important;
}

/* Lyrics Button Styling */
.lyrics-btn:hover {
    background: rgba(255, 107, 53, 0.3) !important;
}

.current-track-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    margin-bottom: 30px;
}

.current-track-actions .action-btn {
    width: 45px;
    height: 45px;
}

.current-track-actions .action-btn .material-icons {
    font-size: 22px;
    cursor: pointer;
}

.current-track-actions .action-btn svg {
    width: 30px;
    height: 30px;
    color: white;
}

.current-track-actions-label {
    color: #ffffff;
    font-size: 18px;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-album-hidden {
    display: none;
}

.current-track-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}



.nickname-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.nickname-popup-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.nickname-popup-icon {
    vertical-align: middle;
    margin-right: 8px;
}

.stats-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 5px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top:0px;
}

.stream-info-container {
    margin-top: 30px;
}

.stream-info-container h3 {
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.stream-details {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
}

.stream-details p {
    margin-bottom: 5px;
}

.stream-details .genre {
    color: #ffffff;
}

.stream-details .bitrate {
    color: #ffffff;
}

.stream-details .sample-rate {
    color: #ffffff;
}

.stream-details .status {
    color: #00ff88;
}

.stream-details .status.ready {
    color: #ff8c00;
}

.maps-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    vertical-align: middle;
    border-radius: 8px;
    padding: 6px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid white;
}

.maps-link:hover {
    color: white;
    transform: scale(1.2);
    background: transparent;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
    border-color: white;
}

.maps-pin-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    width: 20px;
    height: 20px;
}

.maps-link:hover .maps-pin-icon {
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

.player-status {
    color: #ff8c00;
    font-weight: 500;
    font-size: 14px;
    margin-top: 8px;
}

.player-status.live,
.player-status.playing {
    color: #00ff88;
}



/* Visualization Manager Styles */
.visualization-container {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.visualization-container canvas {
    display: block;
    margin: 0 auto;
}

.visualization-controls {
    transition: all 0.3s ease;
}

.viz-mode-btn,
.viz-fullscreen-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.viz-mode-btn:hover,
.viz-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.viz-mode-btn .material-icons,
.viz-fullscreen-btn .material-icons {
    font-size: 20px;
    cursor: pointer;
}

/* Fullscreen Visualization Styles */
.fullscreen-visualization {
    animation: fadeIn 0.3s ease;
}

.fullscreen-close-btn:hover,
.fullscreen-mode-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 20px 15px;
    }
    
    .player-grid {
        grid-template-columns: 350px 1fr;
        gap: 40px;
    }
    
    .album-artwork {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 1400px) and (min-width: 1200px) {
    .action-btn {
        width: 32px;
        height: 32px;
    }
    
    .action-btn .material-icons {
        font-size: 16px;
    }
    
    .action-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 20px 15px;
    }
    
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
    }
    
    .header-left {
        text-align: left;
        flex-shrink: 0;
    }
    
    .header-right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 20px;
    }
    
    .desktop-controls {
        display: none;
    }
    
    .mobile-menu-wrapper {
        display: block;
    }
    
    .player-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .track-info {
        text-align: center;
    }
    
    .current-track-actions {
        align-items: center;
        text-align: center;
    }
    
    .current-track-actions-buttons {
        justify-content: center;
    }
    
    .main-player {
        padding: 40px 30px;
    }
    
    .bottom-section {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .logo {
        font-size: 40px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .album-artwork {
        width: 320px;
        height: 320px;
    }
    
    .track-title {
        font-size: 36px;
    }
    
    .track-artist {
        font-size: 22px;
    }
    
    .main-play-btn {
        width: 80px;
        height: 80px;
    }
    
    .main-play-btn .material-icons {
        font-size: 42px;
    }
    
    .control-btn {
        width: 55px;
        height: 55px;
    }
    
    .widget {
        height: 480px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px 10px;
    }
    
    .header {
        margin-bottom: 30px;
        padding: 15px 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        text-align: left;
    }
    
    .header-right {
        justify-content: flex-end;
    }
    
    .desktop-controls {
        display: none;
    }
    
    .mobile-menu-wrapper {
        display: block;
    }
    
    .logo {
        font-size: 40px;
    }
    
    .tagline {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .main-player {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .album-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .album-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .album-artwork {
        width: 320px;
        height: 320px;
        margin: 0 auto;
    }
    

    
    .track-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .track-artist {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .track-album {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .controls-section {
        gap: 20px;
        margin: 25px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-play-btn {
        width: 70px;
        height: 70px;
    }
    
    .main-play-btn .material-icons {
        font-size: 36px;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
    }
    
    .volume-section {
        flex: none;
        min-width: 200px;
    }
    
    .current-track-actions {
        align-items: center;
        text-align: center;
    }
    
    .current-track-actions-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
    
    .bottom-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .widget {
        height: 400px;
        padding: 20px;
        margin-top: 0;
    }
    
    .widget-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    

    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 0px 10px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    

    
    .chat-input-area {
        flex-direction: column;
        gap: 10px;
    }
    
    .chat-input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .send-btn {
        width: 100%;
        height: 40px;
    }
    
 
    
    .track-history-item {
        padding: 12px;
        font-size: 14px;
    }
    
    .footer {
        padding: 20px 0;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .footer-text {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        margin-bottom: 20px;
    }
    
    .logo {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 12px;
    }
    
    .main-player {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .album-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .album-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .album-artwork {
        width: 300px;
        height: 300px;
        border-radius: 20px;
        margin: 0 auto;
    }
    

    
    .track-title {
        font-size: 20px;
    }
    
    .track-artist {
        font-size: 16px;
    }
    
    .track-album {
        font-size: 14px;
    }
    
    .controls-section {
        gap: 15px;
        margin: 20px 0;
    }
    
    .main-play-btn {
        width: 60px;
        height: 60px;
    }
    
    .main-play-btn .material-icons {
        font-size: 30px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
    }
    
    .volume-section {
        min-width: 150px;
    }
    
    .current-track-actions-label {
        font-size: 14px;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
    }
    
    .action-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .action-btn .material-icons {
        font-size: 16px;
    }
    
    .widget {
        height: 350px;
        padding: 15px;
        border-radius: 20px;
    }
    
    .widget-title {
        font-size: 16px;
    }
    

    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .stat-item {
        padding: 0px 8px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .stat-value {
        font-size: 14px;
    }
    
    .chat-area {
        height: 180px;
        font-size: 13px;
    }
    
    .history-area {
        max-height: 280px;
        font-size: 13px;
    }
    
    .stream-info-container h3 {
        font-size: 16px;
    }
    
    .stream-details p {
        font-size: 13px;
    }
    
    .theme-selector-dropdown {
        min-width: 150px;
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .footer-text {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 32px;
    }
    
    .album-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .album-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .album-artwork {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    

    
    .track-title {
        font-size: 18px;
    }
    
    .track-artist {
        font-size: 14px;
    }
    
    .main-play-btn {
        width: 55px;
        height: 55px;
    }
    
    .main-play-btn .material-icons {
        font-size: 28px;
    }
    
    .volume-section {
        min-width: 120px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
    }
    
    .action-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .action-btn .material-icons {
        font-size: 14px;
    }
    
    .widget {
        height: 320px;
        padding: 12px;
    }
    

    
    .stats-grid {
        gap: 8px;
    }
    
    .stat-item {
        padding: 0px 6px;
    }
}

/* Extra small devices - ensure centering on very small screens */
@media (max-width: 320px) {
    .container {
        padding: 8px;
    }
    
    .album-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .album-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .album-artwork {
        width: 260px;
        height: 260px;
        margin: 0 auto;
    }
    

    
    .action-btn {
        width: 26px;
        height: 26px;
    }
    
    .action-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .action-btn .material-icons {
        font-size: 12px;
    }
    
    .widget {
        height: 300px;
        padding: 10px;
    }
    
    .main-player {
        padding: 15px 10px;
    }
}

/* Landscape orientation optimizations for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .tagline {
        font-size: 12px;
    }
    
    .main-player {
        padding: 20px;
    }
    
    .player-grid {
        grid-template-columns: auto 1fr;
        gap: 30px;
        text-align: left;
    }
    
    .track-info {
        text-align: left;
    }
    
    .album-artwork {
        width: 160px;
        height: 160px;
    }
    
    .track-title {
        font-size: 20px;
    }
    
    .track-artist {
        font-size: 16px;
    }
    
    .controls-section {
        gap: 15px;
        margin: 15px 0;
    }
    
    .main-play-btn {
        width: 50px;
        height: 50px;
    }
    
    .main-play-btn .material-icons {
        font-size: 24px;
    }
    
    .widget {
        min-height: 200px;
        padding: 15px;
    }
}

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

.chat-input-area {
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    outline: none;
    backdrop-filter: blur(10px);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-style: normal;
    font-weight: 500;
}

/* Empty chat state */
.empty-chat-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    opacity: 0.6;
    padding: 20px;
}

.empty-chat-content {
    text-align: center;
    color: var(--text-secondary);
    max-width: calc(100% - 40px);
    width: 100%;
}

.empty-chat-content .material-icons {
    font-size: clamp(36px, 8vw, 48px);
    margin-bottom: clamp(12px, 3vw, 16px);
    opacity: 0.5;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.empty-chat-content p {
    font-size: clamp(14px, 4vw, 18px);
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

.send-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    background: var(--gradient-accent);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--primary), transparent 40%);
}

.history-area:hover {
    scrollbar-width: thin;
    scrollbar-color: #ff006e rgba(255, 255, 255, 0.1);
}

/* Track History Playlist Items */
.playlist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

.playlist-item.playing {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2));
    border: 1px solid rgba(255, 0, 110, 0.3);
}

.playlist-artwork {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.clickable-artwork {
    transition: all 0.3s ease;
    cursor: pointer;
}

.clickable-artwork:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

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

.playlist-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    margin-top: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-info p {
    font-size: 12px;
    color: #b8b8ff;
    margin-bottom: 8px;
    margin-top: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Large tablet/Small desktop responsive adjustments */
@media (max-width: 1000px) and (min-width: 769px) {
    .header {
        padding: 25px 0px 35px 0px;
    }
    
    .track-actions {
        padding: 0 5px 5px 5px;
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
        margin-right: 6px;
    }
    
    .action-btn .material-icons {
        font-size: 20px;
    }
    
    .action-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 768px) and (min-width: 481px) {
    .header {
        padding: 20px 0px 30px 0px;
    }
    
    .track-actions {
        padding: 0 3px 3px 3px;
    }
    
    .action-btn {
        width: 38px;
        height: 38px;
        margin-right: 6px;
    }
    
    .action-btn .material-icons {
        font-size: 20px;
    }
    
    .action-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .header {
        padding: 15px 0px 25px 0px;
    }
    
    .empty-chat-message {
        min-height: 120px;
        padding: 10px;
    }
    
    .empty-chat-content {
        max-width: calc(100% - 20px);
        width: 100%;
    }
    
    .empty-chat-content .material-icons {
        margin-bottom: 8px;
        font-size: 32px;
    }
    
    .empty-chat-content p {
        font-size: 13px;
        padding: 0 5px;
        line-height: 1.3;
    }
    
    .playlist-item {
        padding: 12px;
        gap: 12px;
        min-height: 70px;
    }
    
    .playlist-artwork {
        width: 45px;
        height: 45px;
    }
    
    .playlist-info h4 {
        font-size: 13px;
    }
    
    .playlist-info p {
        font-size: 11px;
    }
    
    .track-actions {
        padding: 0 2px 2px 2px;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        margin-right: 5px;
    }
    
    .action-btn .material-icons {
        font-size: 18px;
    }
    
    .action-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Ultra-small mobile responsive adjustments */
@media (max-width: 420px) {
    .header {
        padding: 10px 0px 20px 0px;
    }
    
    .playlist-item {
        padding: 10px;
        gap: 10px;
        min-height: 65px;
    }
    
    .playlist-artwork {
        width: 40px;
        height: 40px;
    }
    
    .playlist-info h4 {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .playlist-info p {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .track-actions {
        padding: 0 1px 1px 1px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        margin-right: 3px;
    }
    
    .action-btn .material-icons {
        font-size: 16px;
    }
    
    .action-btn svg {
        width: 14px;
        height: 14px;
    }
}

.floating-emoji {
    position: fixed;
    font-size: 30px;
    pointer-events: none;
    z-index: 1000;
    animation: floatUp 3s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) rotate(360deg);
    }
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) rotate(360deg);
    }
}

.footer {
    margin-top: 40px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: var(--gradient-accent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--primary), transparent 70%);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-link:hover::before {
    opacity: 1;
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.heart {
    color: var(--primary);
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.company-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.company-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Inline styles moved to CSS classes */
.clickable-album-art {
    cursor: pointer;
}

.track-album-hidden {
    display: none;
}

.stream-info-icon {
    vertical-align: middle;
    margin-right: 8px;
}

.copyright-text {
    margin-top: 10px;
}

.version-text {
    margin-top: 5px;
    font-size: 12px;
    opacity: 0.7;
    font-family: 'Courier New', monospace;
}

/* Lyrics Popup Styling */
.lyrics-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.lyrics-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.lyrics-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.lyrics-popup-content {
    position: relative;
    max-width: min(600px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalZoomIn 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.lyrics-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lyrics-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lyrics-popup-close .material-icons {
    font-size: 20px;
    cursor: pointer;
}

.lyrics-popup-info {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.lyrics-popup-info h3 {
    font-size: 24px;
    font-weight: bold;
    color: #FF6B35;
    margin: 0 0 5px 0;
}

.lyrics-popup-info p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.lyrics-popup-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lyrics-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    line-height: 1.8;
    font-family: 'Georgia', serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.lyrics-text {
    line-height: 1.8;
    font-size: 16px;
}

.lyrics-content::-webkit-scrollbar {
    width: 8px;
}

.lyrics-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.lyrics-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.6);
    border-radius: 4px;
}

.lyrics-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.8);
}

.lyrics-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.lyrics-footer a {
    color: #FF6B35;
    text-decoration: none;
}

.lyrics-footer a:hover {
    text-decoration: underline;
}

/* Enhanced Lyrics Button Styling */
.lyrics-btn {
    position: relative;
}

.lyrics-btn:hover {
    background: rgba(255, 107, 53, 0.3) !important;
}

.lyrics-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: none !important;
}

.lyrics-btn:disabled::before {
    opacity: 0 !important;
}

.lyrics-btn:disabled .material-icons {
    opacity: 0.5 !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Responsive styling for mobile */
@media (max-width: 768px) {
    .lyrics-popup-content {
        padding: 20px;
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .lyrics-popup-info h3 {
        font-size: 20px;
    }
    
    .lyrics-popup-info p {
        font-size: 16px;
    }
    
    .lyrics-content,
    .lyrics-text {
        font-size: 14px;
        line-height: 1.6;
    }
}

