/* ============================================
   MUSIC APP - DESIGN SYSTEM
   Modern Music Streaming Platform
   Color Palette: Deep Purple + Vibrant Cyan
   ============================================ */

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

:root {
    /* Primary Colors */
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    
    /* Secondary Colors */
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --secondary-light: #22d3ee;
    
    /* Neutrals */
    --bg-dark: #0f172a;
    --bg-darker: #0a0e27;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    
    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Accents */
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */

.login-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.login-screen.active {
    display: flex;
}

.login-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.login-logo i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-logo h1 {
    font-size: 2rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.login-tab:hover {
    color: var(--text-primary);
}

.login-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.login-form {
    display: none;
}

.login-form.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    transition: all var(--transition-base);
}

.form-group input:focus {
    outline: none;
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

.btn-login {
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-footer strong {
    color: var(--primary);
}

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */

.app-screen {
    display: flex;
    width: 100%;
    height: 100%;
}

.app-container {
    display: flex;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    width: 100%;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.nav-item:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item i {
    font-size: 1.25rem;
    width: 24px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.header {
    padding: 1.5rem 2rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-left h1 {
    font-size: 2rem;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 0.75rem 1.25rem;
    transition: all var(--transition-base);
    flex: 1;
    max-width: 350px;
}

.search-bar:focus-within {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    font-size: 0.95rem;
}

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

.search-bar i {
    color: var(--text-muted);
    font-size: 1rem;
}

/* User Profile */
.user-profile-wrapper {
    position: relative;
    z-index: 1001;
}

.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 9998;
}

.profile-overlay.active {
    display: block;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
}

.profile-btn:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary);
}

.profile-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.profile-btn i {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

.profile-btn.active i {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    height: auto;
    width: 200px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 0;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    max-height: fit-content;
}

.profile-menu.active {
    display: flex;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem 1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
}

.profile-menu-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.profile-menu-header p {
    margin: 0;
    font-size: 0.75rem;
}

.profile-menu-header p:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.profile-menu-header p:last-child {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.profile-menu hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 1rem 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0;
    transition: all var(--transition-base);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    width: 100%;
    text-align: left;
}

.profile-menu-item:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    padding-left: 1.3rem;
}

.profile-menu-item.logout {
    color: var(--accent-danger);
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.6rem;
    margin-top: 0.5rem;
}

.profile-menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
}

.profile-menu-item i {
    width: 18px;
    font-size: 0.85rem;
    text-align: center;
}

/* ============================================
   PROFILE & SETTINGS MODALS
   ============================================ */

.profile-modal-content {
    max-width: 500px;
}

.profile-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.profile-modal-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.profile-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-modal-info {
    text-align: center;
}

.profile-modal-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.profile-modal-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(124, 58, 237, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-modal-content {
    max-width: 500px;
}

.settings-modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-section h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.settings-item select {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

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

#clear-history-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#clear-history-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.section {
    display: none;
    animation: fadeIn var(--transition-base);
}

.section.active {
    display: block;
}

@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 h2 {
    margin: 0;
}

/* Music Grid */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.music-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.music-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-slow);
}

.music-card:hover::before {
    left: 100%;
}

.music-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.music-card-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    object-fit: cover;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.music-card-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.music-card-artist {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.music-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.music-card-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.85rem;
    font-weight: 500;
}

.music-card-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.music-card-btn.favorite.active {
    background: var(--accent-danger);
    color: white;
}

.music-card-btn.add-playlist {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    background: rgba(6, 182, 212, 0.2);
    color: var(--secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.85rem;
    font-weight: 500;
}

.music-card-btn.add-playlist:hover {
    background: var(--secondary);
    color: white;
}

/* Playlists Grid */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.playlist-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.playlist-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.playlist-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.playlist-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.playlist-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   PLAYER MINI (COLLAPSED)
   ============================================ */

.player-mini {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    z-index: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.player-mini-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    max-width: 100%;
}

.player-mini-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.player-mini-left img {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.player-mini-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.player-mini-info > div {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-mini-info > div:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.player-mini-info > div:last-child {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.player-mini-center {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 1rem;
}

.play-btn-mini {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.play-btn-mini:hover {
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
    transform: scale(1.05);
}

.player-mini-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.extra-btn-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.extra-btn-mini:hover {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary);
}

.progress-bar-mini {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================
   PLAYER EXPANDED
   ============================================ */

.player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 600;
}

.player-overlay.active {
    display: block;
}

.player-expanded {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-card) 100%);
    display: none;
    flex-direction: column;
    z-index: 700;
    overflow-y: auto;
}

.player-expanded.active {
    display: flex;
}

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

.close-player-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.close-player-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.player-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.player-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.player-expanded-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
}

.player-expanded-album {
    width: 280px;
    height: 280px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.player-expanded-album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-expanded-info {
    text-align: center;
}

.player-expanded-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.player-expanded-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.player-expanded-progress {
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-expanded-progress span {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 40px;
}

.progress-bar-expanded {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill-expanded {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

#progress-input-expanded {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.player-expanded-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.control-btn-expanded {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.control-btn-expanded:hover {
    background: rgba(124, 58, 237, 0.2);
    transform: scale(1.1);
}

.play-btn-expanded {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
}

.play-btn-expanded:hover {
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.6);
}

.player-expanded-volume {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.player-expanded-volume i {
    color: var(--text-muted);
    font-size: 1rem;
}

#volume-input-expanded {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#volume-input-expanded::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

#volume-input-expanded::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

/* Estilos antigos do player removidos - agora usando player mini e expandido */

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

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

.modal-header h2 {
    margin: 0;
}

.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.5rem;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    transition: all var(--transition-base);
}

.input-field:focus {
    outline: none;
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

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

/* Queue List */
.queue-list {
    padding: 1.5rem;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.queue-item:hover {
    background: rgba(124, 58, 237, 0.1);
}

.queue-item.active {
    background: rgba(124, 58, 237, 0.2);
    border-left: 3px solid var(--primary);
}

.queue-item-number {
    color: var(--text-muted);
    font-weight: 600;
    min-width: 30px;
}

.queue-item-info {
    flex: 1;
}

.queue-item-title {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.queue-item-artist {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Playlist Selection */
.playlist-selection {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.playlist-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.playlist-option:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary);
}

.playlist-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.playlist-option-info {
    flex: 1;
}

.playlist-option-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.playlist-option-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

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

@media (max-width: 1200px) {
    .player-container {
        grid-template-columns: 60px 1fr 200px 1fr 150px;
        gap: 1rem;
    }
    
    .player-album {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .nav-menu {
        flex-direction: row;
        flex: 1;
        gap: 0;
    }
    
    .nav-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-item span {
        display: none;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-right {
        width: 100%;
        flex-direction: column;
    }
    
    .search-bar {
        max-width: none;
    }
    
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .player-container {
        grid-template-columns: 50px 1fr;
        gap: 1rem;
    }
    
    .player-controls,
    .player-progress,
    .player-extras {
        display: none;
    }
    
    .player-info h3 {
        font-size: 0.9rem;
    }
    
    .player-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    .header-left h1 {
        font-size: 1.5rem;
    }
    
    .search-bar {
        display: none;
    }

    .login-box {
        padding: 2rem 1.5rem;
    }
}
