<style>
/* ===========================
   1. RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
    color: white;
    min-height: 100vh;
    line-height: 1.6;
}

/* Global overflow fix */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* ===========================
   2. HEADER & NAVIGATION
   =========================== */
.header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    transition: none !important;
}

.header .container {
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Video Container Styles */
.video-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 1rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #000;
    border: 2px solid rgba(78, 205, 196, 0.3);
}

.video-player-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
}

.video-album-art {
    flex-shrink: 0;
    width: 315px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-album-image {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
}

.video-track-info {
    text-align: center;
    color: white;
}

.video-track-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #4ecdc4;
}

.video-album-title {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #ffffff;
}

.video-player {
    flex: 1;
    min-width: 0;
}

.video-player iframe {
    width: 100%;
    height: 315px;
    border: none;
    border-radius: 8px;
}

.video-controls {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 0.5rem;
    text-align: center;
    border-top: 1px solid rgba(78, 205, 196, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-player-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .video-album-art {
        width: 100%;
        max-width: 280px;
    }
    
    .video-album-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    
    .video-player iframe {
        height: 250px;
    }
}

/* Track Button Container */
.track-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.track-btn.video {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: 2px solid #ff6b6b;
}

.track-btn.video:hover {
    background: linear-gradient(45deg, #ee5a24, #d63031);
    transform: translateY(-2px);
}

/* Album Button Video Style */
.album-btn.video {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: 2px solid #ff6b6b;
    color: white;
}

.album-btn.video:hover {
    background: linear-gradient(45deg, #ee5a24, #d63031);
    transform: translateY(-2px);
}

/* Video Mode Button */
#videoModeBtn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: 2px solid #ff6b6b;
}

#videoModeBtn:hover {
    background: linear-gradient(45deg, #ee5a24, #d63031);
}

#audioModeBtn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    border: 2px solid #4ecdc4;
}

#audioModeBtn:hover {
    background: linear-gradient(45deg, #45b7d1, #3742fa);
}

/* Hide certain controls in video mode */
.video-container:not([style*="display: none"]) ~ .radio-controls {
    display: none;
}
.video-container:not([style*="display: none"]) ~ .progress-container {
    display: none;
}
.video-container:not([style*="display: none"]) ~ .volume-control {
    display: none;
}

/* Logo & Branding */
.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: contain;
}


.tagline {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.leaf-icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-image: url('/img/leaf01.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 0.2em;
}

.leaf {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-image: url('/img/leaf01.png');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin: 0 5px;
}

/* ===========================
   3. SIDEBAR
   =========================== */
.sidebar {
    position: fixed;
    left: -320px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
    backdrop-filter: blur(20px);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
}

.sidebar.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.sidebar-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-section {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-section h4 {
    margin-bottom: 1rem;
    color: #4ecdc4;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    margin: 0.3rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-nav-item.active {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.5);
}

/* Saved Playlists in Sidebar */
.saved-playlist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    margin: 0.3rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.saved-playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.playlist-thumbnail-mini {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.playlist-info-mini {
    flex: 1;
    min-width: 0;
    padding-bottom: 24px;
}

.playlist-name {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    padding-right: 0;
}

.playlist-meta-mini {
    font-size: 0.75rem;
    opacity: 0.7;
}

.playlist-actions-mini {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 0.3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.saved-playlist-item:hover .playlist-actions-mini {
    opacity: 1;
}

.playlist-mini-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.7rem;
}

.playlist-mini-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.playlist-mini-btn.delete:hover {
    background: rgba(255, 107, 107, 0.5);
}

/* ==== LYRICS ====== */
/* Lyrics Container */
.lyrics-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 500;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.lyrics-container.active {
    display: block;
    opacity: 1;
    animation: slideIn 0.3s ease;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.lyrics-title {
    font-size: 1.2rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lyrics-controls {
    display: flex;
    gap: 0.5rem;
}

.lyrics-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.lyrics-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lyrics-btn.active {
    background: rgba(78, 205, 196, 0.3);
    border-color: #4ecdc4;
}

.lyrics-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.lyrics-text {
    white-space: pre-line;
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0.9;
}

.lyrics-text:empty::after {
    content: "No lyrics available for this track";
    opacity: 0.5;
    font-style: italic;
}

.lyrics-content::-webkit-scrollbar {
    width: 6px;
}

.lyrics-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .lyrics-container {
        width: 95%;
        right: 2.5%;
        left: 2.5%;
        bottom: 80px;
    }
}

/* ===========================
   4. RADIO PLAYER
   =========================== */
.radio-player {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.now-playing {
    text-align: center;
    margin-bottom: 2rem;
}

.current-song {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Album Artwork Section */
.album-artwork-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.album-cover-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: row-reverse;
}

.album-container {
    position: relative;
    width: 180px;
    height: 180px;
    perspective: 1000px;
}

.album-cover {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

.album-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.current-artwork {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.current-artwork.spinning {
    animation: spin 20s linear infinite;
}

.placeholder-artwork {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.4;
    background: rgba(255, 255, 255, 0.05);
}

/* Album Info Display */
.album-info-display {
    text-align: right;
    max-width: 120px;
}

.album-info-display .album-title-display {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.album-info-display .album-year {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.album-info-display .album-track-count {
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.2;
}

/* Current Playing Info */
.current-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.current-info p {
    opacity: 0.8;
    font-size: 1.1rem;
}

.placeholder-state {
    text-align: center;
    opacity: 0.6;
}

.placeholder-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.placeholder-state p {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Progress Bar */
.progress-container {
    margin: 1.5rem 0;
    cursor: pointer;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-handle {
    position: absolute;
    right: -8px;
    top: -4px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-container:hover .progress-handle {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    font-family: 'Courier New', monospace;
}

/* Radio Controls */
.radio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.control-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.control-btn.main-play {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.control-btn.shuffle-active {
    background: linear-gradient(45deg, #45b7d1, #ff6b6b);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.volume-icon {
    cursor: pointer;
    font-size: 1.2rem;
}

.volume-slider {
    width: 150px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===========================
   5. VISUALIZER
   =========================== */
.visualizer-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    height: 200px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 500;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.visualizer-container.active {
    display: block;
    opacity: 1;
    animation: slideUp 0.3s ease;
}

.visualizer-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    transform: none;
}

.visualizer-container.true-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: black !important;
}

.visualizer-container.true-fullscreen #visualizerCanvas {
    height: calc(100vh - 60px) !important;
}

/* Fullscreen API styles */
.visualizer-container:fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    z-index: 99999 !important;
    background: black !important;
}

.visualizer-container:fullscreen #visualizerCanvas {
    height: calc(100vh - 60px) !important;
}

/* Webkit prefix for older browsers */
.visualizer-container:-webkit-full-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    z-index: 99999 !important;
    background: black !important;
}

.visualizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-left: 60px;
}

.visualizer-title {
    font-size: 1.2rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visualizer-controls {
    display: flex;
    gap: 0.5rem;
}

.viz-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.viz-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.viz-btn.active {
    background: rgba(78, 205, 196, 0.3);
    border-color: #4ecdc4;
}

#visualizerCanvas {
    width: 100%;
    height: calc(100% - 60px);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
}

.visualizer-toggle {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visualizer-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.visualizer-toggle.active {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
}

.viz-mode-select {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: white;
    cursor: pointer;
    outline: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.viz-mode-select option {
    background: #2a5298;
    color: white;
    padding: 0.5rem;
}

.viz-mode-select:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

/* ===========================
   6. FILTERS
   =========================== */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ===========================
   7. PLAYLIST SECTION
   =========================== */
.playlist-section {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.playlist-controls {
    display: flex;
    gap: 0.5rem;
}

.playlist-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.playlist-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Playlist Items */
.playlist-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden; /* Add this */
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.playlist-item.playing {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.5);
}

.playlist-item.playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #4ecdc4;
    animation: pulse 2s ease-in-out infinite;
}

.playlist-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.playlist-item.drag-over {
    border-top: 3px solid #4ecdc4;
}

.playlist-item.drag-outside {
    opacity: 0.3;
    border: 2px dashed #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.playlist-number {
    font-size: 1.2rem;
    opacity: 0.6;
    min-width: 30px;
    width: 40px;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 1rem;
    object-fit: cover;
}

.playlist-artwork {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.playlist-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.playlist-title {
    font-size: 1.1rem;
    font-weight: 500;
    min-width: 200px;
    max-width: 300px;
}

.playlist-meta {
    font-size: 0.95rem;
    opacity: 0.7;
    min-width: 200px;
}

.playlist-duration {
    opacity: 0.8;
    font-family: 'Courier New', monospace;
}

/* Playlist Controls */
.playlist-controls-mini {
    display: flex;
    gap: 0.3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-right: 0.5rem;
}

.playlist-item:hover .playlist-controls-mini {
    opacity: 1;
}

.playlist-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.playlist-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.playlist-control-btn.remove:hover {
    background: rgba(255, 107, 107, 0.5);
}

.playlist-share {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    margin-right: 0.5rem;
    opacity: 1;
}

/* Create Playlist Button */
.create-playlist-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    width: 100%;
    margin-bottom: 1rem;
}

.create-playlist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Save Changes Button */
.save-changes-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin: 1rem 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    /* Remove any box-shadow or glow effects here */
    box-shadow: none;
}

.save-changes-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Add shadow only when shown */
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Active Playlist Indicator - SINGLE DEFINITION */
.active-playlist-indicator {
    position: fixed;
    bottom: 4rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    z-index: 10;
    pointer-events: none;
    background: none;
    box-shadow: none;
    border-radius: 10px;
    overflow: hidden;
}

.active-playlist-indicator > * {
    pointer-events: auto;
}

.active-playlist-indicator.modified {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    /* NO ANIMATION - this was causing the pulsing glow */
}

.save-changes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.playlist-status {
   font-size: 0.8rem;
   opacity: 0.8;
}

.playlist-status.modified {
   color: #ff6b6b;
}

.playlist-indicator-right {
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

/* Equalizer Animation */
.equalizer {
   display: flex;
   gap: 2px;
   height: 20px;
   align-items: flex-end;
}

.equalizer-bar {
   width: 3px;
   background: #4ecdc4;
   animation: dance 0.6s ease-in-out infinite;
}

.equalizer-bar:nth-child(1) { animation-delay: 0s; }
.equalizer-bar:nth-child(2) { animation-delay: 0.1s; }
.equalizer-bar:nth-child(3) { animation-delay: 0.2s; }
.equalizer-bar:nth-child(4) { animation-delay: 0.3s; }

/* ===========================
  8. SONG GRID & CARDS
  =========================== */
.song-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 2rem;
   margin: 2rem 0;
}

.song-section {
   transition: all 0.3s ease;
}

.song-card {
   background: rgba(0, 0, 0, 0.3);
   border-radius: 15px;
   overflow: hidden;
   transition: all 0.3s ease;
   border: 1px solid rgba(255, 255, 255, 0.1);
   backdrop-filter: blur(10px);
}

.song-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.song-artwork {
   width: 100%;
   height: 200px;
   object-fit: cover;
}

.song-info {
   padding: 1.5rem;
}

.song-title {
   font-size: 1.3rem;
   font-weight: bold;
   margin-bottom: 0.5rem;
}

.song-artist-album {
   font-size: 0.9rem;
   opacity: 0.7;
   margin-bottom: 0.5rem;
}

.song-meta {
   display: flex;
   justify-content: space-between;
   opacity: 0.8;
   margin-bottom: 1rem;
}

.song-actions {
   display: flex;
   gap: 0.5rem;
}

.action-btn {
   background: linear-gradient(45deg, #667eea, #764ba2);
   border: none;
   border-radius: 20px;
   padding: 0.5rem 1rem;
   color: white;
   cursor: pointer;
   transition: all 0.3s ease;
   font-size: 0.9rem;
}

.action-btn:hover {
   transform: translateY(-1px);
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Star Rating */
.star-rating {
   display: flex;
   gap: 5px;
   margin-left: auto;
}

.star {
   font-size: 1.3rem;
   cursor: pointer;
   color: rgba(255, 255, 255, 0.3);
   transition: color 0.2s, transform 0.2s;
}

.star.filled {
   color: #FFD700;
}

.star-rating:hover .star {
   color: rgba(255, 255, 255, 0.3);
}

.star-rating .star:hover {
   color: #FFD700 !important;
}

.track-item .star-rating {
   margin-right: 1rem;
}

.song-info .star-rating {
   margin-top: 0.5rem;
}

/* Toggle Songs Button */
.toggle-songs-btn {
   background: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.3);
   border-radius: 25px;
   padding: 0.8rem 1.5rem;
   color: white;
   cursor: pointer;
   transition: all 0.3s ease;
   text-transform: uppercase;
   font-weight: bold;
   margin: 1rem auto;
   display: block;
}

.toggle-songs-btn:hover {
   background: rgba(255, 255, 255, 0.2);
   border-color: rgba(255, 255, 255, 0.6);
   transform: translateY(-2px);
}

/* ===========================
  9. ALBUMS SECTION
  =========================== */
.albums-section {
   margin: 3rem 0;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
    padding: 0 1rem;
    max-width: 1200px;
}

.album-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    position: relative;
}

.album-card:hover {
   transform: translateY(-5px) scale(1.02);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.album-artwork {
   width: 100%;
   height: 280px;
   object-fit: cover;
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.album-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 280px;
   background: rgba(0, 0, 0, 0.7);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   transition: opacity 0.3s ease;
   pointer-events: none;
}

.album-card:hover .album-overlay {
   opacity: 1;
}

.album-play-btn {
   background: rgba(78, 205, 196, 0.9);
   border: none;
   border-radius: 50%;
   width: 60px;
   height: 60px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.5rem;
   color: white;
   cursor: pointer;
   transition: transform 0.2s ease;
   pointer-events: all;
}

.album-play-btn:hover {
   transform: scale(1.1);
   background: rgba(78, 205, 196, 1);
}

.album-info {
   padding: 1.5rem;
}

.album-title {
   font-size: 1.4rem;
   font-weight: bold;
   margin-bottom: 0.5rem;
   background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
   background-clip: text;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.album-name {
   opacity: 0.8;
   font-style: italic;
}

.album-meta {
   display: flex;
   justify-content: space-between;
   opacity: 0.8;
   margin-bottom: 0.5rem;
}

.album-description {
   font-size: 0.9rem;
   opacity: 0.7;
   line-height: 1.4;
   margin-bottom: 1rem;
}

.album-stats {
   display: flex;
   justify-content: space-between;
   font-size: 0.9rem;
   opacity: 0.8;
}

/* Album Detail View */
.album-detail {
   background: rgba(0, 0, 0, 0.4);
   border-radius: 15px;
   padding: 2rem;
   margin: 2rem 0;
   backdrop-filter: blur(10px);
   border: 1px solid rgba(255, 255, 255, 0.1);
   display: none;
}

.album-detail.active {
   display: block;
   animation: fadeIn 0.3s ease;
}

.album-header {
   display: flex;
   gap: 2rem;
   margin-bottom: 2rem;
   align-items: flex-start;
}

.album-header-art {
   width: 200px;
   height: 200px;
   border-radius: 10px;
   object-fit: cover;
   border: 2px solid rgba(255, 255, 255, 0.2);
}

.album-header-info h2 {
   font-size: 2rem;
   margin-bottom: 0.5rem;
   background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
   background-clip: text;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.album-actions {
   display: flex;
   gap: 1rem;
   margin-top: 1rem;
}

.album-btn {
   background: linear-gradient(45deg, #667eea, #764ba2);
   border: none;
   border-radius: 25px;
   padding: 0.8rem 1.5rem;
   color: white;
   cursor: pointer;
   transition: all 0.3s ease;
   font-weight: bold;
}

.album-btn:hover {
   transform: translateY(-2px);
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.album-btn.primary {
   background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

/* Track List in Album View */
.track-list {
   margin-top: 2rem;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    margin: 0.3rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden; /* Add this */
}

.track-item:hover {
   background: rgba(255, 255, 255, 0.1);
   transform: translateX(5px);
}

.track-item.playing {
   background: rgba(78, 205, 196, 0.2);
   border: 1px solid rgba(78, 205, 196, 0.5);
}

.album-detail .track-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
}

.track-number {
   width: 30px;
   text-align: center;
   opacity: 0.7;
   font-weight: bold;
}

.track-thumbnail {
   width: 35px;
   height: 35px;
   border-radius: 4px;
   margin: 0 1rem;
   object-fit: cover;
}

.track-info {
   flex: 1;
}

.track-title-text {
   font-weight: bold;
   margin-bottom: 0.2rem;
}

.track-genre {
   font-size: 0.8rem;
   opacity: 0.7;
}

.track-duration {
   opacity: 0.8;
   font-family: 'Courier New', monospace;
   margin-right: 1rem;
}

.track-actions {
   display: flex;
   gap: 0.5rem;
   opacity: 0;
   transition: opacity 0.3s ease;
}

.track-item:hover .track-actions {
   opacity: 1;
}

.album-detail .track-actions {
   opacity: 1;
}

.track-btn {
   background: rgba(255, 255, 255, 0.1);
   border: none;
   border-radius: 15px;
   padding: 0.3rem 0.6rem;
   color: white;
   cursor: pointer;
   transition: all 0.3s ease;
   font-size: 0.8rem;
}

.track-btn:hover {
   background: rgba(255, 255, 255, 0.2);
}

.back-btn {
   background: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.3);
   border-radius: 20px;
   padding: 0.5rem 1rem;
   color: white;
   cursor: pointer;
   transition: all 0.3s ease;
   margin-bottom: 1rem;
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
}

.back-btn:hover {
   background: rgba(255, 255, 255, 0.2);
}

/* ===========================
  10. MODALS
  =========================== */
/* Share Modal */
.share-modal {
   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: 1000;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
}

.share-modal.active {
   opacity: 1;
   visibility: visible;
}

.share-content {
   background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
   border-radius: 15px;
   padding: 2rem;
   max-width: 500px;
   width: 90%;
   border: 2px solid rgba(255, 255, 255, 0.2);
   backdrop-filter: blur(10px);
}

.share-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 1.5rem;
}

.share-close {
   background: none;
   border: none;
   color: white;
   font-size: 1.5rem;
   cursor: pointer;
   padding: 0.5rem;
   border-radius: 50%;
   transition: background 0.3s ease;
}

.share-close:hover {
   background: rgba(255, 255, 255, 0.2);
}

.share-link {
   display: flex;
   gap: 0.5rem;
   margin: 1rem 0;
}

.share-url {
   flex: 1;
   padding: 0.8rem;
   border: 1px solid rgba(255, 255, 255, 0.3);
   border-radius: 8px;
   background: rgba(0, 0, 0, 0.3);
   color: white;
   font-family: 'Courier New', monospace;
   font-size: 0.9rem;
}

.copy-btn {
   background: linear-gradient(45deg, #4ecdc4, #45b7d1);
   border: none;
   border-radius: 8px;
   padding: 0.8rem 1.2rem;
   color: white;
   cursor: pointer;
   transition: all 0.3s ease;
   font-weight: bold;
}

.copy-btn:hover {
   transform: translateY(-1px);
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-btn {
   background: linear-gradient(45deg, #667eea, #764ba2);
   border: none;
   border-radius: 20px;
   padding: 0.5rem 1rem;
   color: white;
   cursor: pointer;
   transition: all 0.3s ease;
   font-size: 0.9rem;
   display: flex;
   align-items: center;
   gap: 0.3rem;
}

.share-btn:hover {
   transform: translateY(-1px);
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
   background: linear-gradient(45deg, #4ecdc4, #45b7d1);
}

/* Social Share Buttons */
.social-shares {
   display: flex;
   gap: 0.5rem;
   margin-top: 1.5rem;
   flex-wrap: wrap;
}

.social-btn {
   padding: 0.8rem 1.2rem;
   border: none;
   border-radius: 8px;
   color: white;
   cursor: pointer;
   transition: all 0.3s ease;
   font-weight: bold;
   text-decoration: none;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.social-btn.twitter {
   background: #1DA1F2;
}

.social-btn.facebook {
   background: #4267B2;
}

.social-btn.whatsapp {
   background: #25D366;
}

.social-btn.reddit {
   background: #FF4500;
}

.social-btn.discord {
   background: #5865F2;
}

.social-btn:hover {
   transform: translateY(-2px);
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Artist Modal */
.artist-modal {
   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: 1000;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
}

.artist-modal.active {
   opacity: 1;
   visibility: visible;
}

.artist-content {
   background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
   border-radius: 15px;
   padding: 2rem;
   max-width: 600px;
   width: 90%;
   max-height: 80vh;
   overflow-y: auto;
   border: 2px solid rgba(255, 255, 255, 0.2);
   backdrop-filter: blur(10px);
}

.artist-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 1.5rem;
   border-bottom: 1px solid rgba(255, 255, 255, 0.2);
   padding-bottom: 1rem;
}

.artist-header h2 {
   font-size: 2rem;
   background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
   background-clip: text;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.artist-close {
   background: none;
   border: none;
   color: white;
   font-size: 1.5rem;
   cursor: pointer;
   padding: 0.5rem;
   border-radius: 50%;
   transition: background 0.3s ease;
}

.artist-close:hover {
   background: rgba(255, 255, 255, 0.2);
}

.artist-info {
   line-height: 1.8;
   margin-bottom: 1.5rem;
}

.artist-info p {
   margin-bottom: 1rem;
}

.artist-links {
   margin-top: 1.5rem;
}

.artist-links h3 {
   margin-bottom: 1rem;
   color: #4ecdc4;
}

.artist-link {
   display: inline-block;
   background: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.3);
   border-radius: 25px;
   padding: 0.5rem 1rem;
   color: white;
   text-decoration: none;
   margin: 0.3rem;
   transition: all 0.3s ease;
}

.artist-link:hover {
   background: rgba(255, 255, 255, 0.2);
   transform: translateY(-2px);
}

.artist-name-link {
   color: #4ecdc4;
   cursor: pointer;
   text-decoration: none;
   transition: all 0.3s ease;
}

.artist-name-link:hover {
   color: #ff6b6b;
   text-decoration: underline;
}

/* Playlist Modal */
.playlist-modal {
   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: 1001;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
}

.playlist-modal.active {
   opacity: 1;
   visibility: visible;
}

.playlist-modal-content {
   background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
   border-radius: 15px;
   padding: 2rem;
   max-width: 400px;
   width: 90%;
   border: 2px solid rgba(255, 255, 255, 0.2);
   backdrop-filter: blur(10px);
}

.playlist-modal-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 1.5rem;
}

.playlist-input {
   width: 100%;
   padding: 0.8rem;
   border: 1px solid rgba(255, 255, 255, 0.3);
   border-radius: 8px;
   background: rgba(0, 0, 0, 0.3);
   color: white;
   margin-bottom: 1rem;
   font-size: 1rem;
}

.playlist-input::placeholder {
   color: rgba(255, 255, 255, 0.6);
}

.playlist-modal-actions {
   display: flex;
   gap: 1rem;
   justify-content: flex-end;
}

.modal-btn {
   background: linear-gradient(45deg, #667eea, #764ba2);
   border: none;
   border-radius: 8px;
   padding: 0.8rem 1.5rem;
   color: white;
   cursor: pointer;
   transition: all 0.3s ease;
   font-weight: bold;
}

.modal-btn:hover {
   transform: translateY(-1px);
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-btn.secondary {
   background: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.3);
}

#activePlaylistIndicator {
    display: none !important;
}

/* Confirm Modal */
.confirm-modal {
   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: 1002;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
}

.confirm-modal.active {
   opacity: 1;
   visibility: visible;
}

.confirm-modal-content {
   background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
   border-radius: 15px;
   padding: 2rem;
   max-width: 400px;
   width: 90%;
   border: 2px solid rgba(255, 255, 255, 0.2);
   backdrop-filter: blur(10px);
   text-align: center;
}

.confirm-modal h3 {
   margin-bottom: 1rem;
   color: #ff6b6b;
}

.confirm-modal p {
   margin-bottom: 1.5rem;
   opacity: 0.9;
}

.confirm-modal-actions {
   display: flex;
   gap: 1rem;
   justify-content: center;
}

/* ===========================
  11. FOOTER
  =========================== */
.footer {
   background: rgba(0, 0, 0, 0.5);
   padding: 3rem 0 1rem;
   margin-top: 4rem;
   border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
   margin-bottom: 1rem;
   color: #4ecdc4;
}

.footer-section a {
   color: rgba(255, 255, 255, 0.8);
   text-decoration: none;
   display: block;
   margin-bottom: 0.5rem;
   transition: color 0.3s ease;
}

.footer-section a:hover {
   color: #4ecdc4;
}

.copyright {
   text-align: center;
   padding-top: 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   opacity: 0.7;
}

/* ===========================
  12. ANIMATIONS
  =========================== */
@keyframes glow {
   from { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); }
   to { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)); }
}

@keyframes spin {
   from { transform: rotate(0deg); }
   to { transform: rotate(360deg); }
}

@keyframes dance {
   0%, 100% { height: 5px; }
   50% { height: 20px; }
}

@keyframes fadeIn {
   from { opacity: 0; transform: translateY(20px); }
   to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
   from { transform: translateX(-50%) translateY(100px); opacity: 0; }
   to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===========================
  13. MEDIA QUERIES
  =========================== */
@media (max-width: 768px) {
    /* Header & Logo */
    .logo h1 {
        font-size: 2rem;
    }

    /* Fix logo on mobile */
    .logo img {
        width: 100%;
        height: auto;
        max-height: 100%;
    }
    
    /* Fix song cards */
    .song-card {
        width: 100%;
        max-width: 100%;
    }
    
    .song-info {
        padding: 1rem;
        overflow: hidden;
    }
    
    .song-title {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .song-meta {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        font-size: 0.8rem;
    }
    
    .song-actions {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .action-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        flex: 1;
        min-width: 80px;
    }
    
    /* Container fix */
    .container {
        padding: 0 10px;
    }
    
    /* Current Song Display */
    .current-song {
        flex-direction: column;
        text-align: center;
    }
    
    .album-artwork-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .album-cover-section {
        flex-direction: column;
        text-align: center;
    }
    
    .album-info-display {
        max-width: none;
        text-align: center;
    }
    
    .album-cover, 
    .placeholder-artwork, 
    .current-artwork {
        width: 150px;
        height: 150px;
    }
    
    .album-container {
        width: 150px;
        height: 150px;
    }
    
    /* Radio Controls */
    .radio-controls {
        flex-wrap: wrap;
    }
    
    /* Control buttons */
    .control-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Song Grid */
    .song-grid {
        grid-template-columns: 1fr;
    }
    
    /* Albums - already responsive now */
    .albums-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }
    
    .album-header {
        flex-direction: column;
        text-align: center;
    }
    
    .album-header-art {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    /* Playlist items mobile fix */
    /* Playlist mobile - complete redesign */
    .playlist-item {
        display: grid;
        grid-template-columns: 30px 40px 1fr auto;
        gap: 8px;
        padding: 8px;
        align-items: center;
    }
    
    /* Always show controls on mobile (no hover) */
    .playlist-controls-mini {
        opacity: 1 !important;
        display: flex !important;
        order: 4;
        margin-right: 0;
    }
    
    /* Compact control buttons */
    .playlist-control-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    /* Hide duration and star rating to save space */
    .playlist-duration,
    .playlist-item .star-rating {
        display: none;
    }
    
    /* Share button as compact button */
    .playlist-share {
        order: 3;
        margin-right: 8px;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .playlist-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .playlist-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .playlist-meta {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Hide share button text on mobile, show only icon */
    
    .playlist-share::before {
        content: "🔗";
        font-size: 1rem;
    }
    
    /* Share buttons */
    .share-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Current song info */
    .current-info h3 {
        font-size: 1.3rem;
    }
    
    .current-info p {
        font-size: 0.9rem;
    }
    
    /* Sidebar */
    .sidebar {
        width: 85vw;
        max-width: 320px;
        left: -85vw;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .content-shifted {
        margin-left: 0;
    }
    
    .sidebar.open ~ .sidebar-overlay {
        display: block;
    }
    
    /* Visualizer */
    .visualizer-container {
        width: 95%;
        height: 150px;
        bottom: 80px;
    }
    
    .visualizer-container.fullscreen {
        width: 100%;
        height: 100%;
    }
	
    .album-detail .track-item {
        grid-template-columns: 25px 30px 1fr auto auto;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .track-title-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .track-genre {
        display: none; /* Hide genre on mobile to save space */
    }
    
    /* Hide star ratings in album view on mobile */
    .album-detail .star-rating {
        display: none;
    }
    
    /* Make track buttons smaller */
    .track-btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
	
    /* Album tracks mobile - compact layout */
    .album-detail .track-item {
        display: grid;
        grid-template-columns: 25px 1fr auto auto;
        gap: 8px;
        padding: 10px 8px;
        margin: 4px 0;
    }
    
    /* Track info takes full width */
    .track-info {
        grid-column: 2 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Track title inline with duration */
    .track-title-text {
        flex: 1;
        margin-right: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Duration inline, not vertical */
    .track-duration {
        flex-shrink: 0;
        margin: 0;
        font-size: 0.8rem;
    }
    
    /* Buttons on second row */
    .track-btn {
        grid-column: 2;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .album-detail .share-btn {
        grid-column: 3;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Hide these on mobile */
    .track-thumbnail,
    .track-genre,
    .album-detail .star-rating,
    .track-actions {
        display: none !important;
    }	
}

/* ===========================
  14. UTILITY CLASSES
  =========================== */
.text-center {
   text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* ===========================
  15. SCROLLBAR STYLING
  =========================== */
::-webkit-scrollbar {
   width: 10px;
}

::-webkit-scrollbar-track {
   background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
   background: rgba(255, 255, 255, 0.3);
   border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
   background: rgba(255, 255, 255, 0.5);
}

/* Firefox */
* {
   scrollbar-width: thin;
   scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.3);
}

/* ===========================
  16. FOCUS STATES
  =========================== */
button:focus,
input:focus,
select:focus,
textarea:focus {
   outline: 2px solid #4ecdc4;
   outline-offset: 2px;
}

/* ===========================
  17. PRINT STYLES
  =========================== */
@media print {
   .sidebar,
   .sidebar-toggle,
   .visualizer-container,
   .radio-controls,
   .playlist-controls,
   .filter-btn,
   .action-btn,
   .share-btn,
   .modal {
       display: none !important;
   }
   
   body {
       background: white;
       color: black;
   }
   
   .container {
       max-width: 100%;
   }
}

/* ===========================
  18. ACCESSIBILITY
  =========================== */
/* Skip to content link */
.skip-to-content {
   position: absolute;
   top: -40px;
   left: 0;
   background: #4ecdc4;
   color: white;
   padding: 8px;
   text-decoration: none;
   z-index: 100;
}

.skip-to-content:focus {
   top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
   body {
       background: #000;
   }
   
   .container {
       background: #000;
       border: 2px solid #fff;
   }
   
   button,
   input,
   select {
       border: 2px solid #fff;
   }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
   *,
   *::before,
   *::after {
       animation-duration: 0.01ms !important;
       animation-iteration-count: 1 !important;
       transition-duration: 0.01ms !important;
       scroll-behavior: auto !important;
   }
}

/* ===========================
  19. DARK MODE OVERRIDES
  =========================== */
@media (prefers-color-scheme: dark) {
   /* Already dark by default, but you can add specific overrides here */
}

/* ===========================
  20. CUSTOM PROPERTIES
  =========================== */
:root {
   --primary-gradient: linear-gradient(45deg, #ff6b6b, #4ecdc4);
   --secondary-gradient: linear-gradient(45deg, #667eea, #764ba2);
   --background-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
   --text-primary: #ffffff;
   --text-secondary: rgba(255, 255, 255, 0.8);
   --text-tertiary: rgba(255, 255, 255, 0.6);
   --border-color: rgba(255, 255, 255, 0.1);
   --hover-bg: rgba(255, 255, 255, 0.1);
   --active-bg: rgba(78, 205, 196, 0.2);
   --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
   --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.3);
   --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.3);
   --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.4);
   --transition-fast: 0.2s ease;
   --transition-normal: 0.3s ease;
   --transition-slow: 0.5s ease;
}

/* ===========================
  21. BROWSER COMPATIBILITY
  =========================== */
/* IE 11 and below */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
   .container {
       display: block;
   }
   
   .grid {
       display: block;
   }
}

/* Edge specific */
@supports (-ms-ime-align: auto) {
   .container {
       /* Edge specific styles */
   }
}

/* Safari specific */
@media not all and (min-resolution:.001dpcm) { 
   @supports (-webkit-appearance:none) {
       .container {
           /* Safari specific styles */
       }
   }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .playlist-item {
        padding: 6px;
        margin-bottom: 6px;
        grid-template-columns: 25px 35px 1fr auto;
    }
    
    .playlist-number {
        font-size: 0.8rem;
    }
    
    .playlist-thumbnail {
        width: 25px;
        height: 25px;
        flex-shrink: 0;
    }
    
    .playlist-controls-mini {
        display: none; /* Hide up/down arrows on very small screens */
    }

    /* Only show play icon and X for remove */
    .playlist-item:hover .playlist-controls-mini {
        display: none;
    }
    
    /* Simplified album tracks */
    .album-detail .track-item {
        padding: 8px 6px;
        margin: 2px 0;
        grid-template-columns: 20px 1fr auto auto;
        gap: 6px;
    }
    
    .track-thumbnail {
        display: none;
    }
    
    .track-actions {
        display: none;
    }

    .track-btn,
    .album-detail .share-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .playlist-control-btn {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .playlist-duration {
        display: none;
    }
    
    .star-rating {
        display: none;
    }

    /* Logo on very small screens */
    .logo {
        margin-bottom: 1rem;
    }
    
    .logo img {
        max-height: 80px;
    }
    
    /* Song cards on very small screens */
    .song-card {
        font-size: 0.9rem;
    }
    
    .song-meta {
        font-size: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Footer - single column on very small screens */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section h4 {
        font-size: 0.9rem;
    }
    
    .footer-section a {
        font-size: 0.8rem;
    }	
}

/* FireTV and large screens */
@media (min-width: 1400px) and (max-width: 1920px) {
    .albums-grid {
        grid-template-columns: repeat(4, minmax(240px, 1fr));
        gap: 1.5rem;
        padding: 0 2rem;
    }
    
    .container {
        max-width: 1400px;
        padding: 0 3rem;
    }
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }	
}

/* TV viewing distance optimization */
@media (min-width: 1280px) and (min-height: 720px) and (orientation: landscape) {
    body {
        font-size: 18px;
    }
    
    .control-btn {
        padding: 1rem 2rem;
        font-size: 1.3rem;
    }
    
    .playlist-item {
        padding: 1rem 1.5rem;
    }
    
    .song-title, .playlist-title {
        font-size: 1.3rem;
    }
}

.sidebar {
  z-index: 9999 !important;
}

.content-shifted {
  margin-left: 320px;
  transition: margin-left 0.3s ease;
}


</style>   