/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e94560;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Retro Color Palette */
:root {
    --primary: #e94560;
    --secondary: #f5a623;
    --accent: #00d4ff;
    --dark: #1a1a2e;
    --darker: #0f0f1e;
    --light: #ffffff;
    --gray: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

/* Main App Layout */
#mainScreen {
    background: linear-gradient(145deg, var(--dark), #2a2a3e);
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    border: 3px solid var(--primary);
    border-radius: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    min-height: 600px;
}

/* Top Section - Always visible (1/6 of screen) */
.top-section {
    flex: 0 0 16%;
    min-height: 100px;
    max-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 10;
}

/* Bottom Section - Albums or Songs view (2/3 of screen) */
.bottom-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    z-index: 5;
}

/* View Tabs */
.view-tabs {
    display: flex;
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 15px;
    border: 2px solid var(--primary);
}

.view-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--gray);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-tab.active {
    background: linear-gradient(45deg, var(--primary), #ff6b7a);
    color: var(--light);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.view-tab:hover:not(.active) {
    background: rgba(233, 69, 96, 0.1);
    color: var(--light);
}

/* Content Views */
.content-view {
    flex: 1;
    display: none;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.content-view.active {
    display: flex;
}

/* Albums View */
#albumsView {
    overflow-y: auto;
    position: relative;
    z-index: 6;
    padding: 5px 0;
}

.albums-search-section {
    margin-bottom: 15px;
    position: relative;
    z-index: 8;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.album-card {
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.1), transparent);
    transition: left 0.5s ease;
}

.album-card:hover::before {
    left: 100%;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(233, 69, 96, 0.3);
    border-color: var(--accent);
}

.album-cover {
    width: 100%;
    height: 120px;
    background: var(--darker);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.album-cover i {
    font-size: 2.5rem;
    color: var(--gray);
}

.album-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--light);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Orbitron', monospace;
}

.song-artist {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Space Mono', monospace;
}

.search-result-type {
    background: linear-gradient(45deg, var(--secondary), #ffb347, var(--accent));
    color: var(--dark);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 5px;
    display: inline-block;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.5px;
}

.search-result-type.song {
    background: linear-gradient(45deg, var(--primary), #ff6b7a, var(--secondary));
    color: var(--light);
}

.song-card {
    border-color: var(--accent);
}

.song-card:hover {
    border-color: var(--primary);
}

/* Songs View */
#songsView {
    overflow-y: auto;
    position: relative;
    z-index: 6;
    padding: 5px 0;
}

.songs-search-section {
    margin-bottom: 15px;
    position: relative;
    z-index: 8;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border: 2px solid transparent;
    border-radius: 8px;
}

.song-item:hover {
    background: linear-gradient(145deg, var(--dark), #2a2a3e);
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.2);
}

.song-text {
    color: var(--light);
    font-size: 14px;
    font-family: 'Space Mono', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* Album Detail View */
#albumDetailView {
    overflow-y: auto;
}

.album-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.back-btn {
    background: var(--gray);
    color: var(--light);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
}

.back-btn:hover {
    background: var(--primary);
    transform: translateX(-3px);
}

.album-info {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
    padding: 20px;
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border-radius: 12px;
    border: 2px solid var(--primary);
}

.album-info .album-cover {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.album-details h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: 'Orbitron', monospace;
}

.album-details p {
    font-size: 16px;
    color: var(--light);
    font-family: 'Space Mono', monospace;
}

.album-songs h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
    font-family: 'Orbitron', monospace;
}

.album-songs .songs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.album-songs .song-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
}

.album-songs .song-item:hover {
    background: linear-gradient(145deg, var(--dark), #2a2a3e);
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(233, 69, 96, 0.2);
}

.album-songs .song-text {
    color: var(--light);
    font-size: 12px;
    font-family: 'Space Mono', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* App Title */
.app-title {
    text-align: center;
    margin-bottom: 20px;
}

.app-title h1 {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

/* Search Bar Section */
.search-bar-section {
    margin-bottom: 50px;
    position: relative;
}

/* Mobile layout adjustments */
@media (max-width: 768px) {
    #mainScreen {
        height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 10px;
        overflow-y: auto;
    }
    
    /* Fix top section to prevent overlapping */
    .top-section {
        flex: 0 0 auto;
        min-height: 120px;
        max-height: none;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    /* Fix bottom section to take remaining space */
    .bottom-section {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    /* Ensure proper spacing between sections */
    .now-playing-section {
        margin-bottom: 10px;
        flex: 0 0 auto;
    }
    
    .playlist-section {
        margin-bottom: 15px;
        flex: 0 0 auto;
        min-height: 80px;
    }
    
    /* Fix search sections to prevent overlapping */
    .albums-search-section,
    .songs-search-section {
        margin-bottom: 15px;
        flex: 0 0 auto;
    }
    
    .albums-search-section .search-input-container,
    .songs-search-section .search-input-container {
        padding: 12px 15px;
        min-height: 50px;
        margin-bottom: 10px;
    }
    
    .albums-search-section .search-input-container i,
    .songs-search-section .search-input-container i {
        font-size: 18px;
        margin-right: 12px;
    }
    
    #albumsSearchInput,
    #songsSearchInput {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .albums-search-section .clear-search-btn,
    .songs-search-section .clear-search-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    /* Fix content views to prevent overlapping */
    .content-view {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 10px 0;
    }
    
    .view-tabs {
        margin-bottom: 10px;
        flex: 0 0 auto;
    }
    
    .view-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Fix albums grid for mobile */
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        padding: 5px 0;
    }
    
    .album-card {
        padding: 12px;
    }
    
    .album-cover {
        height: 100px;
    }
    
    .album-title {
        font-size: 13px;
        line-height: 1.2;
    }
    
    .song-artist {
        font-size: 11px;
    }
    
    .search-result-type {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    /* Fix songs list for mobile */
    .songs-list {
        padding: 5px 0;
    }
    
    .song-item {
        padding: 10px;
        margin-bottom: 5px;
    }
    
    .song-text {
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* Fix album detail view for mobile */
    .album-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .album-info .album-cover {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .album-details h3 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .album-details p {
        font-size: 0.9rem;
    }
    
    .album-songs .songs-list {
        max-height: 200px;
        overflow-y: auto;
    }
    
    .album-songs .song-item {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .album-songs .song-text {
        font-size: 11px;
    }
    
    /* Fix playlist container for mobile */
    .playlist-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        min-height: 60px;
        max-height: none;
    }
    
    .playlist-item {
        padding: 8px;
        font-size: 11px;
        line-height: 1.2;
        min-width: auto;
        max-width: none;
    }
}

.search-bar-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--accent), var(--primary), var(--secondary), var(--accent));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(15px);
    animation: searchGlow 3s ease-in-out infinite alternate;
}

@keyframes searchGlow {
    0% { opacity: 0.2; }
    100% { opacity: 0.4; }
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #0a0a0a, #1a1a2e);
    border: 4px solid transparent;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.4),
        inset 0 0 20px rgba(0, 212, 255, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    min-height: 80px;
    backdrop-filter: blur(10px);
    margin-bottom: 10px;
    z-index: 9;
}

.search-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent), var(--primary), var(--secondary));
    border-radius: 20px;
    padding: 4px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.search-input-container:focus-within {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 0 50px rgba(233, 69, 96, 0.6),
        inset 0 0 30px rgba(233, 69, 96, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.7);
    border-color: var(--primary);
}

.search-input-container i {
    color: var(--accent);
    font-size: 28px;
    margin-right: 25px;
    flex-shrink: 0;
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.8),
        0 0 20px rgba(0, 212, 255, 0.4),
        0 0 30px rgba(0, 212, 255, 0.2);
    animation: iconPulse 2s ease-in-out infinite;
}

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

#mainSearchInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--light);
    font-size: 20px;
    font-family: 'Orbitron', monospace;
    padding: 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

#mainSearchInput::placeholder {
    color: var(--gray);
    font-style: italic;
    text-shadow: 0 0 5px rgba(108, 117, 125, 0.5);
}

.clear-search-btn {
    background: linear-gradient(45deg, var(--secondary), #ffb347, var(--primary));
    color: var(--dark);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    flex-shrink: 0;
    margin-left: 20px;
    box-shadow: 
        0 0 20px rgba(245, 166, 35, 0.5),
        0 6px 25px rgba(0, 0, 0, 0.3);
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.clear-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.clear-search-btn:hover::before {
    left: 100%;
}

.clear-search-btn:hover {
    background: linear-gradient(45deg, var(--primary), #ff6b7a, var(--secondary));
    color: var(--light);
    transform: scale(1.2) rotate(180deg);
    box-shadow: 
        0 0 30px rgba(233, 69, 96, 0.7),
        0 10px 40px rgba(0, 0, 0, 0.4);
}

.search-results {
    margin-top: 25px;
    background: linear-gradient(145deg, #0a0a0a, #1a1a2e);
    border: 4px solid transparent;
    border-radius: 20px;
    padding: 25px;
    max-height: 450px;
    overflow-y: auto;
    box-shadow: 
        0 0 40px rgba(233, 69, 96, 0.4),
        inset 0 0 20px rgba(0, 212, 255, 0.1),
        0 15px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    backdrop-filter: blur(10px);
}

/* Mobile: Use absolute positioning to prevent layout shift */
@media (max-width: 768px) {
    .search-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        margin-top: 10px;
        max-height: 300px;
        box-shadow: 
            0 0 30px rgba(233, 69, 96, 0.5),
            inset 0 0 15px rgba(0, 212, 255, 0.1),
            0 10px 40px rgba(0, 0, 0, 0.7);
    }
    
    .search-bar-section {
        position: relative;
    }
}

.search-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--secondary));
    border-radius: 20px;
    padding: 4px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    margin-bottom: 15px;
    background: linear-gradient(145deg, #0a0a0a, #1a1a2e);
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    min-height: 70px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 0 10px rgba(0, 212, 255, 0.05);
}

.search-result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.search-result-item:hover::before {
    left: 100%;
}

.search-result-item:hover {
    border-color: var(--accent);
    transform: translateX(12px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.5),
        inset 0 0 20px rgba(0, 212, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #1a1a2e, #2a2a3e);
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    color: var(--light);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: 'Orbitron', monospace;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
    letter-spacing: 1px;
}

.search-result-artist {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 6px;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
    font-weight: 500;
}

.search-result-album {
    color: var(--gray);
    font-size: 14px;
    font-family: 'Space Mono', monospace;
    text-shadow: 0 0 5px rgba(108, 117, 125, 0.3);
}

.search-result-type {
    background: linear-gradient(45deg, var(--secondary), #ffb347, var(--accent));
    color: var(--dark);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 20px;
    flex-shrink: 0;
    box-shadow: 
        0 0 15px rgba(245, 166, 35, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Orbitron', monospace;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.search-result-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.search-result-type:hover::before {
    left: 100%;
}

.search-result-type.album {
    background: linear-gradient(45deg, var(--primary), #ff6b7a, var(--secondary));
    color: var(--light);
    box-shadow: 
        0 0 20px rgba(233, 69, 96, 0.6),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

.no-results {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    padding: 20px;
    font-family: 'Space Mono', monospace;
}

/* Now Playing Section */
.now-playing-section {
    margin-bottom: 8px;
    flex: 0 0 auto;
}

.now-playing-bar {
    display: flex;
    border: 1px solid var(--primary);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(233, 69, 96, 0.3);
}

.playing-label {
    background: var(--light);
    color: var(--primary);
    padding: 4px 8px;
    font-weight: bold;
    border-right: 1px solid var(--primary);
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    white-space: nowrap;
}

.current-song {
    background: var(--primary);
    color: var(--light);
    padding: 4px 8px;
    flex: 1;
    font-weight: bold;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Playlist Section */
.playlist-section {
    margin-bottom: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    z-index: 7;
}

.playlist-header {
    text-align: center;
    font-size: 14px;
    color: var(--light);
    margin-bottom: 4px;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
}

.playlist-container {
    display: flex;
    gap: 4px;
    margin-bottom: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0;
    flex: 1;
    max-height: 40px;
}

.playlist-item {
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border: 1px solid var(--accent);
    border-radius: 3px;
    padding: 2px 6px;
    white-space: nowrap;
    min-width: 80px;
    max-width: 100px;
    text-align: center;
    font-size: 9px;
    color: var(--light);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 212, 255, 0.2);
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.playlist-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
    border-color: var(--primary);
}

.playlist-hint {
    text-align: center;
    color: var(--secondary);
    font-size: 8px;
    font-style: italic;
    font-family: 'Space Mono', monospace;
    margin-top: 2px;
}

/* Single Song View Section */
.single-song-section {
    margin-bottom: 30px;
}

.section-header {
    color: var(--secondary);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
}

.song-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border: 2px solid transparent;
    border-radius: 8px;
}

.song-item:hover {
    background: linear-gradient(145deg, var(--dark), #2a2a3e);
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.2);
}

.song-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    background: var(--dark);
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.song-checkbox:checked {
    background: var(--primary);
    position: relative;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.song-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--light);
    font-size: 14px;
    font-weight: bold;
}

.song-text {
    color: var(--light);
    font-size: 14px;
    font-family: 'Space Mono', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* Album Song View Section */
.album-song-section {
    margin-bottom: 30px;
}

.album-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.album-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border: 2px solid transparent;
    border-radius: 8px;
}

.album-item:hover {
    background: linear-gradient(145deg, var(--dark), #2a2a3e);
    border-color: var(--secondary);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.2);
}

.album-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary);
    background: var(--dark);
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.album-checkbox:checked {
    background: var(--secondary);
    position: relative;
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}

.album-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark);
    font-size: 14px;
    font-weight: bold;
}

.album-text {
    color: var(--light);
    font-size: 14px;
    font-weight: bold;
    font-family: 'Space Mono', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.album-tracks {
    margin-left: 50px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
}

.track-item {
    color: var(--accent);
    font-size: 14px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: 'Space Mono', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-item:hover {
    background: linear-gradient(145deg, var(--dark), #2a2a3e);
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.2);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Screen Management */
.screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
}

/* Location Screen Styles */
.location-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

.location-info {
    margin: 30px 0;
    max-width: 500px;
}

.venue-info {
    background: rgba(233, 69, 96, 0.1);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.venue-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.venue-info p {
    color: var(--light);
    font-size: 1rem;
}

.permission-note {
    background: rgba(245, 166, 35, 0.1);
    border: 2px solid var(--secondary);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
}

.permission-note p {
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.location-status {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--accent);
    text-align: center;
    font-size: 1.1rem;
}

.status-info p {
    margin: 5px 0;
    color: var(--accent);
}

.status-info p:first-child {
    font-weight: bold;
    font-size: 1.1rem;
}

.location-checking {
    margin: 20px 0;
    padding: 20px;
    text-align: center;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--accent);
    border-radius: 15px;
}

.location-checking .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 212, 255, 0.3);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.location-checking p {
    color: var(--accent);
    font-size: 1.1rem;
    margin: 0;
}

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

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(233, 69, 96, 0.3);
    animation: slideIn 0.3s ease-out;
}

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

/* Authentication Modal */
.retro-header {
    text-align: center;
    margin-bottom: 2rem;
}

.retro-header h1 {
    font-size: 2rem;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--accent);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--primary);
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.input-group input::placeholder {
    color: var(--gray);
}

/* Buttons */
.retro-btn {
    background: linear-gradient(45deg, var(--primary), #ff6b7a);
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    color: var(--light);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.retro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
    background: linear-gradient(45deg, #ff6b7a, var(--primary));
}

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

.retro-btn-small {
    background: linear-gradient(45deg, var(--secondary), #ffb347);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--dark);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.retro-btn-secondary {
    background: linear-gradient(45deg, var(--gray), #8e8e93);
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    color: var(--light);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Error Message */
.error-message {
    color: var(--danger);
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Main App Styles */
#mainApp {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--darker), var(--dark));
    border-bottom: 3px solid var(--primary);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.app-header h1 {
    font-size: 1.8rem;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(233, 69, 96, 0.5);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container i {
    position: absolute;
    left: 15px;
    color: var(--primary);
    z-index: 1;
}

.search-container input {
    padding: 10px 15px 10px 45px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* Current Playing Section */
.current-playing {
    background: linear-gradient(135deg, var(--dark), #2a2a3e);
    padding: 2rem 0;
    border-bottom: 2px solid var(--primary);
}

.now-playing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.vinyl-container {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.vinyl {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, #333, #111);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 3s linear infinite;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.3);
}

.vinyl.paused {
    animation-play-state: paused;
}

.vinyl-center {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--dark);
}

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

.track-info {
    flex: 1;
    min-width: 300px;
}

.track-info h3 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.track-info p {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.time-info {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Queue Section */
.queue-section {
    background: linear-gradient(135deg, #2a2a3e, var(--dark));
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--secondary);
}

.queue-section h2 {
    max-width: 1200px;
    margin: 0 auto 1rem auto;
    padding: 0 1rem;
    color: var(--secondary);
    font-size: 1.3rem;
}

.queue-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.queue-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.queue-item {
    background: linear-gradient(145deg, var(--dark), #2a2a3e);
    border: 2px solid var(--secondary);
    border-radius: 10px;
    padding: 1rem;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.queue-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.3);
}

.queue-item h4 {
    color: var(--light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.queue-item p {
    color: var(--accent);
    font-size: 0.8rem;
}

.empty-queue {
    color: var(--gray);
    text-align: center;
    font-style: italic;
    padding: 2rem;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* Albums Section */
.albums-section, .songs-section {
    margin-bottom: 3rem;
}

.albums-section h2, .songs-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.3);
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.album-card {
    background: linear-gradient(145deg, var(--dark), #2a2a3e);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.1), transparent);
    transition: left 0.5s ease;
}

.album-card:hover::before {
    left: 100%;
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(233, 69, 96, 0.3);
    border-color: var(--accent);
}

.album-card h3 {
    color: var(--light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.album-card p {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Songs List */
.songs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.song-item {
    background: linear-gradient(145deg, var(--dark), #2a2a3e);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.song-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.2);
}

.song-info h4 {
    color: var(--light);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.song-info p {
    color: var(--accent);
    font-size: 0.9rem;
}

.song-duration {
    color: var(--gray);
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Modal Styles */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.modal-header h3 {
    color: var(--primary);
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--danger);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body p {
    color: var(--light);
    margin-bottom: 1rem;
}

.priority-select {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.priority-select label {
    color: var(--accent);
    font-weight: 700;
}

.priority-select select {
    padding: 8px 12px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-family: 'Space Mono', monospace;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--primary);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .search-container input {
        width: 200px;
    }
    
    .now-playing {
        flex-direction: column;
        text-align: center;
    }
    
    .vinyl-container {
        width: 120px;
        height: 120px;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .song-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .song-duration {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .retro-header h1 {
        font-size: 1.5rem;
    }
    
    .app-header h1 {
        font-size: 1.4rem;
    }
    
    .search-container input {
        width: 150px;
    }
    
    .albums-grid {
        grid-template-columns: 1fr;
    }
    
    .queue-list {
        flex-direction: column;
    }
    
    .queue-item {
        min-width: auto;
    }
}

/* Screen Management */
.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Playlist Section */
.playlist-section {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    border-bottom: 2px solid var(--primary);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.playlist-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.refresh-btn, .logout-btn {
    background: var(--secondary);
    color: var(--light);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: var(--primary);
    transform: rotate(180deg);
}

.refresh-btn:active {
    transform: rotate(360deg);
}

.logout-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.logout-btn:active {
    transform: scale(0.95);
}

.playlist-header h2 {
    color: var(--primary);
    font-size: 1.2rem;
}

.playlist-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.nav-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

#playlistPage {
    color: var(--light);
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

.playlist-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    min-height: 120px;
}

.playlist-container-simple {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.playlist-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.playlist-container-simple .playlist-item {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 0;
    padding: 15px 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.playlist-container-simple .playlist-item:last-child {
    border-bottom: none;
}

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

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

.playlist-item.playing {
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.playlist-item.pending {
    background: linear-gradient(145deg, #f39c12, #e67e22);
    border-color: #f39c12;
    opacity: 0.8;
}

.song-status {
    font-size: 0.8rem;
    color: var(--light);
    margin-top: 0.25rem;
    font-weight: 500;
}

.playlist-item .song-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item .song-artist {
    font-size: 0.8rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Home Buttons */
.home-buttons {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    justify-content: center;
}

.home-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
    border: none;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.home-btn i {
    font-size: 2rem;
}

/* Search Section */
.search-section {
    padding: 2rem;
    background: var(--dark);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-container {
    margin-bottom: 2rem;
}

.search-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
}

.search-options {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--light);
}

.radio-option input[type="radio"] {
    accent-color: var(--primary);
}

.search-submit-btn {
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit-btn:hover {
    background: var(--secondary);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

/* Albums Section */
.albums-section {
    padding: 2rem;
    background: var(--dark);
}

.albums-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.album-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.album-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(233, 69, 96, 0.3);
}

.album-cover {
    width: 100%;
    height: 150px;
    background: var(--darker);
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.album-cover i {
    font-size: 3rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.album-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--light);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Album Detail Section */
.album-detail-section {
    padding: 2rem;
    background: var(--dark);
}

.album-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.back-btn {
    background: var(--gray);
    color: var(--light);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: var(--primary);
}

.album-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.album-info .album-cover {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.album-details h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.album-details p {
    font-size: 1.2rem;
    color: var(--light);
}

.album-songs h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Additional mobile improvements for smaller screens */
@media (max-width: 480px) {
    #mainScreen {
        padding: 8px;
    }
    
    .top-section {
        min-height: 100px;
        margin-bottom: 10px;
    }
    
    .now-playing-section {
        margin-bottom: 8px;
    }
    
    .playlist-section {
        margin-bottom: 10px;
        min-height: 60px;
    }
    
    .albums-search-section,
    .songs-search-section {
        margin-bottom: 10px;
    }
    
    .albums-search-section .search-input-container,
    .songs-search-section .search-input-container {
        padding: 10px 12px;
        min-height: 45px;
    }
    
    .albums-search-section .search-input-container i,
    .songs-search-section .search-input-container i {
        font-size: 16px;
        margin-right: 10px;
    }
    
    #albumsSearchInput,
    #songsSearchInput {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .albums-search-section .clear-search-btn,
    .songs-search-section .clear-search-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .view-tab {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .album-card {
        padding: 10px;
    }
    
    .album-cover {
        height: 80px;
    }
    
    .album-title {
        font-size: 12px;
    }
    
    .song-item {
        padding: 8px;
        margin-bottom: 3px;
    }
    
    .song-text {
        font-size: 11px;
    }
    
    .playlist-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        min-height: 50px;
    }
    
    .playlist-item {
        padding: 6px;
        font-size: 10px;
    }
    
    .album-info .album-cover {
        width: 100px;
        height: 100px;
    }
    
    .album-details h3 {
        font-size: 1.1rem;
    }
    
    .album-details p {
        font-size: 0.8rem;
    }
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .playlist-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .home-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .home-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .album-info {
        flex-direction: column;
        text-align: center;
    }
    
    .search-options {
        flex-direction: column;
        gap: 1rem;
    }
}


