/* ============================================================
   BIBLIOTECA MUSICAL - ESTILS
   ============================================================ */

:root {
    --primary: #AF272F;
    --primary-dark: #8B1F26;
    --secondary: #D63447;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #0f3460;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ============================================================
   NAVEGACIÓ
   ============================================================ */

.navbar {
    background: rgba(15, 52, 96, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item:hover,
.nav-item.active {
    background: var(--primary);
    color: white;
}

/* ============================================================
   CONTINGUT PRINCIPAL
   ============================================================ */

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 2rem;
    color: var(--primary);
}

/* ============================================================
   BOTONS
   ============================================================ */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.15);
}

/* Botó de Veure Cançons - Color vermell corporatiu amb màxima prioritat */
.album-card button.btn-icon.btn-songs,
button.btn-icon.btn-songs {
    background-color: #AF272F !important;
    background: #AF272F !important;
    color: #ffffff !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 1.2rem !important;
    border: 2px solid #AF272F !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(175, 39, 47, 0.4) !important;
    position: relative !important;
    z-index: 100 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.album-card button.btn-icon.btn-songs:hover,
button.btn-icon.btn-songs:hover {
    background-color: #8B1F26 !important;
    background: #8B1F26 !important;
    color: #ffffff !important;
    border-color: #8B1F26 !important;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(139, 31, 38, 0.6) !important;
}

.album-card button.btn-icon.btn-songs i,
button.btn-icon.btn-songs i {
    color: #ffffff !important;
}

/* ============================================================
   ESTADÍSTIQUES
   ============================================================ */

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

.stat-card {
    background: var(--primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-card i {
    font-size: 3rem;
    color: white;
}

.stat-info h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.format-card {
    background: var(--primary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.format-card i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.format-card h3 {
    font-size: 2rem;
    color: white;
}

.format-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   FILTRES
   ============================================================ */

.filters-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.filter-select {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 200px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-select {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

/* ============================================================
   ARTISTES
   ============================================================ */

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.artist-card {
    background: var(--primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.artist-image,
.artist-image-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.artist-info {
    padding: 1.5rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.artist-name {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    flex-grow: 1;
}

.artist-info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.artist-albums-link {
    color: #ffffff;  /* Blanc sempre visible */
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.artist-albums-link:hover {
    color: #ffd700;  /* Groc/daurat en hover */
    border-bottom-color: #ffd700;
}

.artist-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ============================================================
   ÀLBUMS
   ============================================================ */

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.album-card {
    background: var(--primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.album-cover {
    width: 100%;
    height: 300px;  /* Augmentat de 250px a 300px */
    object-fit: cover;
}

.album-info {
    padding: 1.5rem;
}

.album-code {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.album-info h3 {
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.album-artist {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.album-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.album-format {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.format-cd { background: #17a2b8; color: white; }
.format-vinil { background: #6f42c1; color: white; }
.format-digital { background: #28a745; color: white; }
.format-casset { background: #fd7e14; color: white; }

.album-songs {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.album-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

/* ============================================================
   MODALS
   ============================================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header h2 {
    color: var(--primary);
}

.modal-close {
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
}

/* ============================================================
   FORMULARIS
   ============================================================ */

form {
    padding: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.rating-star {
    font-size: 2rem;
    color: #555;
    cursor: pointer;
    transition: var(--transition);
}

.rating-star:hover,
.rating-star.active {
    color: var(--warning);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* ============================================================
   NOTIFICACIONS
   ============================================================ */

.notification {
    position: fixed;
    top: -100px;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    transition: var(--transition);
    font-weight: 500;
}

.notification.show {
    top: 2rem;
}

.notification.success {
    background: var(--success);
    color: white;
}

.notification.error {
    background: var(--danger);
    color: white;
}

.notification.info {
    background: var(--info);
    color: white;
}

/* ============================================================
   MODE ADMIN
   ============================================================ */

.admin-only {
    display: none !important;
}

body.admin-mode .admin-only {
    display: flex !important;
}

/* ============================================================
   IMPORTACIÓ CSV
   ============================================================ */

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-large {
    max-width: 900px;
}

.csv-instructions {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.csv-instructions h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.csv-instructions ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.csv-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.csv-instructions code {
    background: rgba(175, 39, 47, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--secondary);
}

.csv-info-box {
    background: rgba(23, 162, 184, 0.1);
    border-left: 4px solid var(--info);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
}

.csv-info-box i {
    color: var(--info);
    margin-right: 0.5rem;
}

.csv-info-box p {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.csv-info-box code {
    display: block;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.csv-drop-zone {
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(175, 39, 47, 0.05);
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.csv-drop-zone:hover {
    background: rgba(175, 39, 47, 0.1);
    border-color: var(--secondary);
}

.csv-drop-zone.dragover {
    background: rgba(175, 39, 47, 0.15);
    border-color: var(--secondary);
    transform: scale(1.02);
}

.csv-drop-zone i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.csv-drop-zone p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.csv-preview {
    margin-top: 1.5rem;
}

.csv-preview h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.csv-stats {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.csv-stats span {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.3rem;
}

.csv-table-container {
    max-height: 400px;
    overflow: auto;
    border: 1px solid var(--bg-card);
    border-radius: 8px;
}

.csv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.csv-table th {
    background: var(--primary);
    color: white;
    padding: 0.75rem;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}

.csv-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--bg-card);
    color: var(--text-secondary);
}

.csv-table tr:hover {
    background: rgba(175, 39, 47, 0.05);
}

.csv-table td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.csv-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.csv-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ============================================================
   ÀLBUMS AMB SPOTIFY
   ============================================================ */

.album-card {
    position: relative;
}

.album-card-header {
    position: relative;
}

.spotify-link {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.spotify-link:hover {
    background: var(--primary-dark);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(175, 39, 47, 0.6);
}

/* ============================================================
   MODAL DETALL D'ÀLBUM
   ============================================================ */

.modal-xlarge {
    max-width: 1200px;
    width: 95%;
}

.album-details-header {
    display: flex;
    gap: 2rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.album-details-cover {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.album-details-info {
    flex: 1;
}

.album-details-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.album-details-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.album-details-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.album-details-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.album-details-meta i {
    color: var(--primary);
}

/* ============================================================
   LLISTA DE CANÇONS ESTIL SPOTIFY
   ============================================================ */

.songs-section {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
}

.songs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.songs-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.song-item {
    display: grid;
    grid-template-columns: 50px 1fr 100px 80px;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    align-items: center;
    transition: var(--transition);
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.song-number {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.song-info {
    flex: 1;
}

.song-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.song-artists {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.song-duration {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
}

.song-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.song-spotify-btn {
    background: rgba(29, 185, 84, 0.15);
    color: #1DB954;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.song-spotify-btn:hover {
    background: rgba(29, 185, 84, 0.3);
    transform: scale(1.1);
}

.song-spotify-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.song-spotify-btn.playing,
.btn-preview.playing {
    background: #1DB954 !important;
    color: white !important;
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(29, 185, 84, 0);
    }
}

.empty-songs {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-songs i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

/* Spotify Embed Container */
.spotify-embed-container {
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.spotify-embed-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.spotify-embed-header h3 {
    color: #333;
    font-size: 1.5rem;
}

.spotify-embed-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.spotify-embed-footer p {
    color: #666;
    font-size: 0.95rem;
}

.spotify-info-container {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 2px solid rgba(29, 185, 84, 0.3);
}

.spotify-info-icon {
    font-size: 4rem;
    color: #1DB954;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.spotify-info-container h3 {
    font-size: 1.8rem;
    color: #1DB954;
    margin-bottom: 1rem;
}

.spotify-info-container > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.spotify-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-spotify {
    background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.btn-spotify:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.5);
}

.btn-spotify i {
    font-size: 1.3rem;
}

.spotify-info-note {
    background: rgba(29, 185, 84, 0.1);
    border-left: 4px solid #1DB954;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: left;
    display: flex;
    gap: 1rem;
    align-items: start;
}

.spotify-info-note i {
    color: #1DB954;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.spotify-info-note p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.spotify-tracks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(29, 185, 84, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #1DB954;
}

.loading-container {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.spotify-config-info {
    background: rgba(29, 185, 84, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #1DB954;
}

.spotify-config-info ol {
    margin-top: 1rem;
    margin-left: 1.5rem;
}

.spotify-config-info li {
    margin-bottom: 0.5rem;
}

.spotify-config-info a {
    color: #1DB954;
    text-decoration: none;
    font-weight: 600;
}

.spotify-config-info a:hover {
    text-decoration: underline;
}

.spotify-config-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        justify-content: center;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
