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

body {
    font-family: 'Roboto Mono', monospace;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

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

.header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.site-subtitle {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.playlist-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #333;
}

.playlist-card:hover {
    transform: translateY(-5px);
    border-color: #555;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.playlist-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(45deg, #333, #555);
}

.playlist-card-content {
    padding: 1.5rem;
}

.playlist-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.playlist-card-meta {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.playlist-detail {
    animation: fadeIn 0.5s ease;
}

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

.back-button {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 2rem;
    font-family: 'Roboto Mono', monospace;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: #444;
}

.playlist-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.playlist-cover-large {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.playlist-info {
    padding-top: 1rem;
}

.playlist-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.playlist-description {
    color: #aaa;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.playlist-track-count {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tracks-container h3 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.3rem;
}

.tracks-list {
    list-style: none;
    padding-bottom: 80px;
}

.track-item {
    padding: 1rem;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-item:hover {
    background: #1a1a1a;
}

.track-item.active {
    background: #2a2a2a;
    border-left: 3px solid #fff;
}

.track-info {
    flex: 1;
}

.track-title {
    color: #fff;
    margin-bottom: 0.2rem;
}

.track-artist {
    color: #888;
    font-size: 0.9rem;
}

.track-duration {
    color: #666;
    font-size: 0.8rem;
}

.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 1rem 2rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #333;
    transform: scale(1.1);
}

.control-btn.active {
    background: #444;
    color: #fff;
}

.track-info {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 0 1rem;
    overflow: hidden;
}

.now-playing {
    color: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.progress-container {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

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

.time {
    color: #888;
    font-size: 0.8rem;
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .playlist-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .player-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .control-btn {
        font-size: 1rem;
        width: 35px;
        height: 35px;
    }
    
    .track-info {
        min-width: 100%;
        max-width: 100%;
        order: 1;
        text-align: center;
        margin-bottom: 0.5rem;
        padding: 0;
    }
    
    .now-playing {
        max-width: 100%;
    }
    
    .progress-container {
        order: 2;
        flex-basis: 100%;
        margin-bottom: 0.5rem;
    }
    
    .volume-container {
        order: 3;
        justify-content: center;
    }
    
    .audio-player {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
    }
    
    .playlists-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .playlist-card-content {
        padding: 1rem;
    }
    
    .player-controls {
        gap: 0.3rem;
    }
    
    .control-btn {
        padding: 0.3rem;
        width: 32px;
        height: 32px;
    }
    
    .now-playing {
        font-size: 0.8rem;
        max-width: 200px;
    }
    
    .track-info {
        max-width: 200px;
    }
}

.progress-bar:hover .progress {
    background: #ccc;
}

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

.track-item {
    transition: all 0.2s ease;
}

.track-item:active {
    transform: scale(0.98);
}

.playlist-card:active {
    transform: translateY(-2px);
}

