* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: #0f172a; color: #f8fafc; overflow-x: hidden; }

/* Header Premium */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky; top: 0; z-index: 100;
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 800; background: linear-gradient(45deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Toggle Cantor vs Músico */
.mode-toggle {
    display: flex; background: rgba(255,255,255,0.05); border-radius: 30px; padding: 4px; gap: 4px;
}
.mode-btn {
    border: none; background: transparent; color: #94a3b8; padding: 8px 16px; border-radius: 24px; cursor: pointer; font-weight: 600; transition: all 0.3s ease;
}
.mode-btn.active { background: #3b82f6; color: white; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }

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

/* Tabs */
.sys-tab { padding: 10px 20px; font-weight: 600; font-size: 1rem; border-radius: 8px; cursor: pointer; transition: 0.3s; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }
.sys-tab.active { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border-color: rgba(59, 130, 246, 0.4); }

/* Filter Bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; background: rgba(255,255,255,0.03); padding: 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.filter-input {
    background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 10px 16px; border-radius: 8px; outline: none; transition: border 0.3s;
}
.filter-input:focus { border-color: #3b82f6; }
.btn-primary {
    background: linear-gradient(45deg, #3b82f6, #2563eb); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4); }

/* Songs Grid */
.songs-grid, .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.song-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 1.5rem; cursor: pointer; transition: all 0.3s ease;
}
.song-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.delete-icon-btn {
    position: absolute; top: 12px; right: 12px; border: none; background: rgba(239, 68, 68, 0.1); color: #ef4444; width: 28px; height: 28px; border-radius: 50%; font-size: 0.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; z-index: 10;
}
.add-setlist-icon-btn {
    position: absolute; top: 12px; right: 45px; border: none; background: rgba(34, 197, 94, 0.1); color: #22c55e; width: 28px; height: 28px; border-radius: 50%; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; z-index: 10;
}
.song-card:hover .delete-icon-btn, .song-card:hover .add-setlist-icon-btn { opacity: 1; }
.delete-icon-btn:hover { background: rgba(239, 68, 68, 0.8); color: white; }
.add-setlist-icon-btn:hover { background: rgba(34, 197, 94, 0.8); color: white; }
@media (max-width: 768px) {
    .delete-icon-btn, .add-setlist-icon-btn { opacity: 1 !important; }
}
.song-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.song-artist { font-size: 0.9rem; color: #94a3b8; margin-bottom: 1rem; }
.badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge { font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge.rhythm { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

/* Song Reader Modal/View */
.reader-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #0f172a; z-index: 200;
    display: none; flex-direction: column; opacity: 0; transition: opacity 0.3s; overflow-y: auto;
}
.reader-overlay.open { display: flex; opacity: 1; }
.reader-header {
    position: sticky; top: 0; background: rgba(15, 23, 42, 0.95); padding: 1rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center; z-index: 201; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.reader-content { padding: 2rem; max-width: 900px; margin: 0 auto; width: 100%; font-size: 1.1rem; line-height: 1.6; }

pre.chords-text { font-family: 'Roboto Mono', monospace; white-space: pre-wrap; font-size: 1em; color: #bfdbfe; }
.chord-token { color: #38bdf8; font-weight: 700; cursor: pointer; border-bottom: 1px dashed rgba(56, 189, 248, 0.5); transition: 0.2s; }
.chord-token:hover { background: rgba(56, 189, 248, 0.2); border-radius: 4px; padding: 0 2px; margin: 0 -2px; }
pre.lyrics-text { font-family: 'Inter', sans-serif; white-space: pre-wrap; font-size: 1.2em; color: #f8fafc; font-weight: 500; }
.back-btn { background: none; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.back-btn:hover { background: rgba(255,255,255,0.1); }

/* Add Modal */
.modal {
    position: fixed; top: 0; left:0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); z-index: 300; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.modal.open { display: flex; }
.modal-content {
    background: #1e293b; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 2rem; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto;
}
.modal h2 { margin-bottom: 1rem; }
.fab {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6); color: white; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); font-size: 2rem; display: flex; align-items: center; justify-content: center;
    transition: 0.3s; z-index: 90;
}
.fab:hover { transform: scale(1.1) rotate(90deg); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: #cbd5e1; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 12px; border-radius: 8px; outline: none; }
.form-group textarea { height: 120px; font-family: monospace; }
.form-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; }
.btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; padding: 10px 20px; border-radius: 8px; cursor: pointer; }
.scraper-tool {
    background: rgba(59, 130, 246, 0.1); padding: 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px dashed rgba(59,130,246,0.4);
}
.scraper-box { display: flex; gap: 0.5rem; margin-top: 0.5rem; }

/* Adicional: Footer CRIATIO & Reader Controls */
.criatio-footer {
    text-align: center; padding: 2rem; color: #475569; font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05); margin-top: 2rem;
}
.criatio-footer span { font-weight: 700; color: #64748b; }

.reader-controls {
    display: flex; gap: 1.5rem; align-items: center; overflow-x: auto; padding: 4px 0;
}

/* Artistas View */
.artist-card {
    background: #1e293b; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.5rem; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem;
}
.artist-card:hover { transform: translateY(-5px); border-color: #3b82f6; box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3); }
.artist-avatar {
    width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 3px solid rgba(59, 130, 246, 0.5);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; color: #3b82f6; text-transform: uppercase;
}
.artist-card:hover .artist-avatar { background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); color: white; border-color: white; }
.artist-name { font-size: 1.1rem; font-weight: 700; color: #f8fafc; margin-bottom: 0.25rem; }
.artist-count { font-size: 0.8rem; color: #94a3b8; }
.btn-mini-add {
    margin-top: 0.5rem; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: #60a5fa;
    padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; transition: 0.2s;
}
.btn-mini-add:hover { background: #3b82f6; color: white; }

.reader-control-group {
    display: flex; align-items: center; gap: 0.4rem; background: rgba(0,0,0,0.2); padding: 4px 8px; border-radius: 8px;
}
.control-label {
    font-size: 0.7rem; color: #94a3b8; font-weight: 700; letter-spacing: 0.5px; margin-right: 2px;
}
.control-btn {
    border: none; background: rgba(255,255,255,0.08); color: #f8fafc; padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: 0.2s; font-weight: 600; font-size: 0.9rem;
}
.control-btn:hover { background: rgba(255,255,255,0.2); }
.control-btn.active { background: #3b82f6; color: white; }
.control-val { font-size: 0.85rem; font-weight: bold; width: 24px; text-align: center; }


/* Setlists Styles */
.setlist-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 1.5rem; cursor: pointer; transition: all 0.3s ease;
    display: flex; flex-direction: column; gap: 0.5rem; position: relative;
}
.setlist-card:hover { transform: translateY(-5px); border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.setlist-title { font-size: 1.5rem; font-weight: 700; color: #f8fafc; }
.setlist-count { font-size: 0.9rem; color: #94a3b8; }
.setlist-card-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 5px; opacity: 0; transition: 0.3s; }
.setlist-card:hover .setlist-card-actions { opacity: 1; }
.setlist-action-btn { background: rgba(255,255,255,0.1); border:none; color:white; border-radius:6px; padding:5px 8px; cursor: pointer; }
.setlist-action-btn:hover { background: rgba(255,255,255,0.2); }
.setlist-song-number { font-weight:bold; font-size:1.2rem; color: rgba(255,255,255,0.2); font-family: 'Roboto Mono', monospace; margin-right: 15px; }
