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

body {
    font-family: 'Inter', sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn, .prev-btn, .next-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.menu-btn:hover, .prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.brand {
    font-family: 'Courier Prime', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    margin-top: 60px;
    min-height: calc(100vh - 140px);
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-container {
    display: flex;
    gap: 0;
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
    color: #fff;
    border-bottom-color: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
}

/* Tab Content */
.tab-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-panel {
    display: none;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

/* Album Container */
.album-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.album-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Album Cover */
.album-cover-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.album-cover {
    width: 400px;
    height: 400px;
    background: #2a2a2a;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="400" height="400" fill="%23f0f0f0"/><text x="200" y="200" text-anchor="middle" dy=".3em" font-family="Arial" font-size="24" fill="%23666">Album Cover</text></svg>');
    background-size: cover;
    background-position: center;
}

.album-cover:hover {
    transform: scale(1.02);
}

.vinyl-record {
    position: absolute;
    top: 50%;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #1a1a1a 30%, #333 31%, #333 35%, #1a1a1a 36%);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 2;
}

.album-cover:hover .vinyl-record {
    opacity: 0.9;
    right: -30px;
    animation: spin 3s linear infinite;
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #666;
}

.album-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    filter: blur(10px);
}

/* Album Details */
.album-details {
    padding-left: 20px;
}

.album-title {
    font-family: 'Courier Prime', monospace;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.artist-name {
    font-size: 18px;
    color: #999;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Track List */
.track-list {
    list-style: none;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 10px;
}

.track-item.playing {
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid #fff;
    color: #fff;
    font-weight: bold;
}

.track-number {
    width: 30px;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    color: #666;
    text-align: right;
    margin-right: 20px;
}

.track-info {
    flex: 1;
    text-align: left;
}

.track-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
}

.track-duration {
    font-size: 14px;
    color: #666;
    font-family: 'Courier Prime', monospace;
}

.track-item.playing .track-number {
    color: #fff;
}

.track-item.playing .track-number::before {
    content: '♪';
    animation: pulse 1.5s ease-in-out infinite;
}

/* Album Item Styles */
.album-item {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid transparent;
}

.album-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.album-item.current-album {
    background: rgba(255, 255, 255, 0.1);
    border-left: 2px solid #fff;
    color: #fff;
}

.album-indicator {
    font-size: 12px;
    color: #666;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.album-item:hover .album-indicator {
    color: #fff;
}

/* Sub-track Styles */
.sub-track {
    margin-left: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    padding: 8px 0;
}

.sub-track:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 10px;
}

.sub-track.playing {
    background: rgba(255, 255, 255, 0.15);
    border-left: 2px solid #fff;
    color: #fff;
    font-weight: bold;
}

.sub-track .track-number {
    width: 20px;
    margin-right: 15px;
}

.sub-track .track-title {
    font-size: 14px;
    opacity: 0.9;
}

.sub-track.playing .track-title {
    opacity: 1;
}

/* Upload Section */
.upload-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-container {
    background: #2a2a2a;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.upload-container h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-form input {
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.upload-form input:focus {
    outline: none;
    border-color: #fff;
}

.upload-form button {
    padding: 15px;
    background: #fff;
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upload-form button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.upload-form button:last-child {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.upload-form button:last-child:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Add Track Button */
.add-track-btn {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #fff;
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.add-track-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 1000;
}

.player-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.now-playing {
    text-align: left;
}

.now-playing span {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.now-playing h4 {
    font-size: 16px;
    font-weight: 500;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

#playPause {
    background: #fff;
    color: #1a1a1a;
    font-size: 16px;
}

#playPause:hover {
    background: #f0f0f0;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: end;
}

.player-progress span {
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    color: #666;
    min-width: 40px;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* Singles Section */
.singles-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.singles-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.single-card {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.single-card:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 10px;
}

.single-cover {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 4px;
    margin-right: 20px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.single-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.single-details {
    flex: 1;
}

.single-info h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 2px;
    font-weight: 500;
}

.single-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.single-album {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.single-duration {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-family: 'Courier Prime', monospace;
}



/* Features Section */
.features-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.feature-cover {
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

.feature-info h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feature-artists {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.feature-artists .featured {
    color: #fff;
    font-weight: 500;
}

.feature-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-album {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-style: italic;
}

.feature-duration {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-family: 'Courier Prime', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .album-info {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .album-cover-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }
    
    .album-cover {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .album-details {
        padding-left: 0;
        text-align: left;
    }
    
    .track-info {
        text-align: left;
    }
    
    .player-container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .player-controls {
        justify-content: center;
        order: 1;
    }
    
    .now-playing {
        text-align: center;
        order: 2;
    }
    
    .player-progress {
        justify-self: center;
        order: 3;
    }
    
    .progress-bar {
        width: 150px;
    }
    
    .upload-container {
        margin: 20px;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .album-cover-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }
    
    .album-cover {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .album-title {
        font-size: 28px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .main-content {
        padding: 20px 10px 100px;
    }
}