/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background: #1a1a2e;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: white;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-brand:hover {
    color: #667eea;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: white;
}

/* Banner Slider */
.banner-slider {
    margin-bottom: 40px;
}

.banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a2e;
    height: 300px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 20px;
    width: 80%;
}

.banner-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 16px;
}

/* Categories */
.categories-section {
    margin-bottom: 40px;
}

.categories-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 13px;
    color: #666;
}

/* Music Grid */
.music-section {
    margin-bottom: 40px;
}

.music-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.music-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.music-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.music-card a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 12px;
}

.music-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.music-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-card p {
    font-size: 13px;
    color: #666;
}

.category-tag {
    display: inline-block;
    background: #eef2ff;
    color: #667eea;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

/* Search */
.search-section {
    margin: 40px 0;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.search-section h2 {
    margin-bottom: 16px;
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5566d4;
    transform: translateY(-2px);
}

.btn-success {
    background: #51cf66;
    color: white;
}

.btn-success:hover {
    background: #40b857;
    transform: translateY(-2px);
}

/* Music Details */
.music-details {
    margin: 20px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.album-cover-large {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.info-section h1 {
    font-size: 28px;
    margin-bottom: 4px;
}

.info-section h3 {
    font-size: 18px;
    color: #666;
    font-weight: 500;
    margin-bottom: 16px;
}

.info-section p {
    margin-bottom: 8px;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

/* Related Music */
.related-music {
    margin-top: 32px;
}

.related-music h2 {
    margin-bottom: 16px;
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    padding: 12px 24px;
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

.player-controls {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}

.player-controls button:hover {
    color: #667eea;
}

.player-controls span {
    color: white;
    font-size: 14px;
    min-width: 40px;
}

.player-controls input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: #444;
    border-radius: 2px;
    outline: none;
}

.player-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 32px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-container p {
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .album-cover-large {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .banner {
        height: 200px;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .music-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-content h2 {
        font-size: 18px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
}

.error {
    color: #c92a2a;
    padding: 16px;
    background: #ffe3e3;
    border-radius: 8px;
    margin: 20px 0;
}