:root {
    --bg-dark: #0a0a0b;
    --card-bg: #161618;
    --accent: #fbbf24;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Hero Section Premium */
.hero-section {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-dark) 95%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
    letter-spacing: -1.5px;
}

.hero-content h1 .accent {
    color: var(--accent);
}

.hero-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.badge-live {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-bottom: 0; /* Updated for flex container */
    animation: glow 2.5s infinite alternate;
}

.mini-btn-trigger {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0;
}

.mini-btn-trigger:hover {
    background: rgba(251, 191, 36, 0.3);
    transform: scale(1.1);
}

.mini-btn-trigger:active {
    transform: scale(0.95);
}

.mini-btn-trigger.loading {
    animation: spin 1s infinite linear;
    cursor: not-allowed;
    filter: grayscale(1);
}

@keyframes spin { 100% { transform: rotate(360deg); } }

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(239, 68, 68, 0.2); }
    to { box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
}

#album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.album-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-container {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.album-art {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.album-info {
    padding: 20px;
}

.album-info h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
}

.badge.done { background: #059669; color: white; }
.badge.processing { background: #d97706; color: white; }

.auth-btn {
    width: 100%;
    height: 50px; /* Tamaño optimizado para dedos */
    border-radius: 12px;
    background: var(--accent);
    color: #000;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.1s active;
}

.auth-btn:active {
    transform: scale(0.97);
}

.auth-btn:disabled {
    background: #27272a;
    color: #52525b;
    cursor: not-allowed;
}

/* MEDIA QUERIES PARA CELULAR */
@media (max-width: 600px) {
    #album-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        padding: 15px;
        gap: 15px;
    }

    .dashboard-header h1 {
        font-size: 1.7rem;
    }

    .album-card {
        border-radius: 15px;
    }
}
