@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════
   DESIGN TOKENS & CSS SYSTEM (MOBILE-FIRST)
   ═══════════════════════════════════════════════ */
:root {
    --bg-main: #f8fafc;
    --bg-sidebar: #0f172a;
    --bg-card: #ffffff;
    --bg-elevated: #f1f5f9;
    --bg-input: #ffffff;
    
    --accent: #0f766e; /* Teal 700 */
    --accent-hover: #115e59; /* Teal 800 */
    --accent-light: #f0fdfa; /* Teal 50 */
    --accent-glow: rgba(15, 118, 110, 0.15);
    
    --danger: #e11d48; /* Rose 600 */
    --danger-hover: #be123c;
    --danger-light: #fff1f2;
    
    --success: #0d9488;
    --success-light: #f0fdfa;
    --warning: #d97706;
    
    --text-primary: #1e293b; /* Slate 800 */
    --text-secondary: #475569; /* Slate 600 */
    --text-muted: #94a3b8; /* Slate 400 */
    
    --border: #e2e8f0; /* Slate 200 */
    --border-hover: #cbd5e1;
    --border-focus: #0f766e;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Section colors */
    --section-verse: #0f766e;
    --section-chorus: #2563eb;
    --section-bridge: #7c3aed;
    --section-precoro: #0891b2;
    --section-intro: #059669;
    --section-outro: #d97706;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ═══════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════ */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 1rem;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    transition: var(--transition);
    padding-bottom: 5.5rem; /* Space for bottom navigation bar */
}

/* Header bar with user profile & buttons */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Page views */
.page-view {
    display: none;
    animation: fadeIn 0.25s ease;
}
.page-view.active {
    display: block;
}

/* ═══════════════════════════════════════════════
   BOTTOM NAVIGATION BAR (APP STYLE)
   ═══════════════════════════════════════════════ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #0f766e; /* Teal theme */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 180;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 20px 20px 0 0; /* Esquinas superiores redondeadas */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccfbf1;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    width: 100%;
    height: 100%;
    transition: var(--transition);
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 0.25rem;
}

.nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.nav-item-icon {
    font-size: 1.35rem;
}

/* Floating View List Button when Playlist is active */
.btn-floating-view-playlist {
    position: fixed;
    bottom: 76px;
    right: 1rem;
    z-index: 170;
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-floating-view-playlist:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}
.playlist-active .btn-floating-view-playlist {
    display: inline-flex;
}

/* ═══════════════════════════════════════════════
   SEARCH SECTION
   ═══════════════════════════════════════════════ */
.search-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    box-shadow: var(--shadow);
}

.search-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::placeholder { color: var(--text-muted); }

.search-buttons {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.search-buttons .btn {
    flex: 1;
    justify-content: center;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    box-shadow: var(--shadow);
    min-height: 46px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(225, 29, 72, 0.2);
}
.btn-danger:hover {
    background: var(--danger);
    color: white;
}

/* Botones debajo de la barra de búsqueda (Teal Corporativo unificado) */
.btn-red {
    background: #0f766e !important; /* Mismo Teal de cabecera y menu */
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.btn-red:hover {
    background: #115e59 !important; /* Accent hover */
    box-shadow: 0 4px 12px var(--accent-glow) !important;
}

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-icon {
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.btn-icon:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-hover);
}
.btn-icon.danger {
    color: var(--danger);
    background: var(--danger-light);
    border-color: rgba(225, 29, 72, 0.1);
}
.btn-icon.danger:hover {
    background: var(--danger);
    color: white;
}

/* ═══════════════════════════════════════════════
   SONG LIST / CARDS (MOBILE-FIRST)
   ═══════════════════════════════════════════════ */
.songs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.song-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.song-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.song-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.song-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    text-transform: uppercase; /* Forzar títulos de cantos a mayúsculas siempre */
}

.song-card-actions {
    display: flex;
    gap: 0.35rem;
}

.song-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.badge.accent {
    background: var(--accent-light);
    color: var(--accent);
    border-color: rgba(15, 118, 110, 0.2);
}

.btn-add-playlist {
    display: none;
    margin-top: 0.25rem;
    width: 100%;
    justify-content: center;
}

.playlist-active .btn-add-playlist {
    display: inline-flex;
}

/* ═══════════════════════════════════════════════
   SIDEBAR PLAYLIST (MOBILE BOTTOM SHEET & DESKTOP)
   ═══════════════════════════════════════════════ */
.playlist-sidebar {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    width: 100%;
    height: 75vh;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 190; /* High index to go over bottom navigation bar when open */
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1), 0 -8px 10px -6px rgba(0, 0, 0, 0.1);
}

.playlist-sidebar.open {
    bottom: 0;
}

.sidebar-header {
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-date {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-main);
}

/* Playlist items */
.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    user-select: none;
    box-shadow: var(--shadow);
}

.playlist-item:hover {
    border-color: var(--border-hover);
}

.playlist-item.dragging {
    opacity: 0.5;
    transform: scale(0.98);
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.playlist-item.drag-over {
    border-color: var(--accent);
    background: var(--accent-light);
}

.drag-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    padding: 0.25rem;
}

.playlist-item-order {
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.playlist-item-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.playlist-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.playlist-empty p { font-size: 0.9rem; font-weight: 500; }

/* ═══════════════════════════════════════════════
   PLAYLIST HISTORY SECTION
   ═══════════════════════════════════════════════ */
.playlist-history {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.playlist-history-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.playlist-history-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.65rem;
    transition: var(--transition);
}

.playlist-history-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.playlist-status {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.playlist-status.borrador { background: #e2e8f0; color: #475569; }
.playlist-status.enviado { background: #fef3c7; color: #d97706; }
.playlist-status.descargado { background: var(--accent-light); color: var(--accent); }

/* ═══════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 200;
    align-items: flex-end; /* Bottom sheet on mobile */
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: slideUpMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--bg-elevated);
}

/* ═══════════════════════════════════════════════
   FORM INPUTS
   ═══════════════════════════════════════════════ */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

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

/* Section toolbar for lyrics editor */
.section-toolbar {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.section-btn {
    padding: 0.35rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.section-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.section-btn[data-section="verso"] { border-color: rgba(15, 118, 110, 0.3); color: var(--section-verse); }
.section-btn[data-section="coro"] { border-color: rgba(37, 99, 235, 0.3); color: var(--section-chorus); }
.section-btn[data-section="puente"] { border-color: rgba(124, 58, 237, 0.3); color: var(--section-bridge); }

/* ═══════════════════════════════════════════════
   LYRICS PREVIEW
   ═══════════════════════════════════════════════ */
.lyrics-preview { padding: 0.5rem 0; }

.lyrics-section {
    margin-bottom: 1.5rem;
}

.lyrics-section-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lyrics-section-label.verse { background: var(--accent-light); color: var(--section-verse); }
.lyrics-section-label.chorus { background: #eff6ff; color: var(--section-chorus); }
.lyrics-section-label.bridge { background: #f5f3ff; color: var(--section-bridge); }
.lyrics-section-label.pre_chorus { background: #ecfeff; color: var(--section-precoro); }
.lyrics-section-label.intro { background: #ecfdf5; color: var(--section-intro); }
.lyrics-section-label.outro { background: #fffbeb; color: var(--section-outro); }

.lyrics-line {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    animation: slideInUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    width: 100%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
}

.toast.success { background: #e6fdfa; border: 1px solid rgba(13, 148, 136, 0.3); color: var(--success); }
.toast.error { background: #fff1f2; border: 1px solid rgba(225, 29, 72, 0.3); color: var(--danger); }
.toast.info { background: #f0fdfa; border: 1px solid rgba(15, 118, 110, 0.3); color: var(--accent); }

/* ═══════════════════════════════════════════════
   LOADING & EMPTY STATES
   ═══════════════════════════════════════════════ */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 250;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active { display: flex; }

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.empty-state {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--text-muted);
}

.empty-state-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { color: var(--text-primary); margin-bottom: 0.5rem; font-family: var(--font-heading); font-weight: 600; }
.empty-state p { font-size: 0.9rem; max-width: 300px; margin: 0 auto; }

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideUpMobile { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Desktop Navigation */
.btn-text-desktop { display: inline; }
.btn-text-mobile { display: none; }

/* ═══════════════════════════════════════════════
   RESPONSIVE DESIGN BREAKPOINTS
   ═══════════════════════════════════════════════ */
@media (min-width: 640px) {
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .modal {
        align-self: center;
        border-radius: var(--radius-lg);
        max-width: 500px;
        animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border: 1px solid var(--border);
    }
    .modal-overlay {
        align-items: center;
    }
}

@media (min-width: 768px) {
    .main-content {
        padding: 2rem;
    }
    
    .songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-content.sidebar-open {
        margin-right: 380px;
    }

    .playlist-sidebar {
        top: 64px;
        bottom: 0;
        right: -380px;
        left: auto;
        width: 360px;
        height: calc(100vh - 64px);
        border-left: 1px solid var(--border);
        border-top: none;
        border-radius: 0;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .playlist-sidebar.open {
        right: 0;
    }
    
    .sidebar-header::before {
        display: none;
    }
    
    .toast-container {
        bottom: 1.5rem;
        right: 1.5rem;
        left: auto;
        width: 360px;
    }
    
    .btn-text-desktop { display: inline; }
    .btn-text-mobile { display: none; }
}

/* Settings mock styling */
.settings-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   LOGIN PAGE BEAUTIFICATION
   ═══════════════════════════════════════════════ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at top right, var(--accent-light), transparent 50%), #f8fafc;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
