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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #f05454;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

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

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Browser Notice */
.browser-notice {
    background: rgba(255, 193, 7, 0.15);
    border: 2px solid rgba(255, 193, 7, 0.5);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
    animation: slideDown 0.5s ease;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.notice-text strong {
    color: #ffc107;
}

.notice-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notice-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

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

main {
    min-height: 60vh;
}

/* Project Selector */
.project-selector h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.project-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.project-card .name {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Track Section */
.track-section {
    animation: fadeIn 0.5s ease;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-back {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.section-header h2 {
    flex: 1;
    font-size: 1.8rem;
}

/* Track List */
.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.track-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

.track-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.track-item.playing {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(240, 84, 84, 0.1) 100%);
}

.track-item .icon {
    font-size: 2rem;
}

.track-item .track-info {
    flex: 1;
}

.track-item .track-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.track-item .track-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.track-item .track-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.track-item .btn-play {
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b6b 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(240, 84, 84, 0.3);
}

.track-item .btn-play:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(240, 84, 84, 0.5);
}

.track-item .btn-download {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.track-item .btn-download:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Audio Player */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: slideUp 0.5s ease;
}

.player-info {
    max-width: 1200px;
    margin: 0 auto 15px;
    text-align: center;
}

.now-playing {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.track-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.project-name-small {
    color: var(--primary-color);
    font-size: 0.95rem;
}

#audio-player {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
}

/* Loading & Empty States */
.loading, .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    margin-top: 60px;
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .project-card {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .player {
        padding: 15px;
    }

    .track-name {
        font-size: 1.1rem;
    }

    .track-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .track-item .track-actions {
        width: 100%;
        flex-direction: column;
    }

    .track-item .btn-play,
    .track-item .btn-download {
        width: 100%;
        justify-content: center;
    }

    .notice-content {
        flex-direction: column;
        text-align: center;
    }
}
