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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

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

.search-box {
    display: flex;
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

#searchInput {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 10px 0 0 10px;
    outline: none;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: #6a11cb;
}

.search-box button {
    background: #6a11cb;
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #2575fc;
}

.musicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 30px;
}

.musica-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
}

.musica-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.musica-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.musica-header h3 {
    margin: 0;
    font-size: 1.3em;
    flex: 1;
}

.genero {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.musica-info {
    padding: 20px;
}

.musica-info p {
    margin: 10px 0;
    color: #555;
    display: flex;
    align-items: center;
}

.musica-info i {
    margin-right: 10px;
    width: 20px;
    color: #6a11cb;
}

.musica-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
}

.btn-link, .btn-ver-letra {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-link {
    background: #4CAF50;
    color: white;
}

.btn-link:hover {
    background: #45a049;
    transform: scale(1.05);
}

.btn-ver-letra {
    background: #2196F3;
    color: white;
}

.btn-ver-letra:hover {
    background: #0b7dda;
    transform: scale(1.05);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    color: #ddd;
    margin-bottom: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 50px auto;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    animation: slideIn 0.3s;
}

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

.modal-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close {
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s;
}

.close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body pre {
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

/* Responsividade */
@media (max-width: 768px) {
    .musicas-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

