:root {
    /* === IziMp3 Custom Theme === */
    --bg-primary: #0a0e14;
    --bg-secondary: #121820;
    --bg-tertiary: #1a2230;
    --bg-elevated: #0f1318;
    --bg-hover: #1e2a3a;
    --bg-active: #2a3848;
    
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #5a6a7a;
    
    /* Azul eléctrico distintivo de IziMp3 */
    --accent-primary: #00b4d8;
    --accent-hover: #48cae4;
    --accent-secondary: #0096c7;
    --accent-glow: rgba(0, 180, 216, 0.3);
    
    --border-color: #1e2a3a;
    --border-light: #2a3848;
    
    --player-height: 90px;
    --sidebar-width: 240px;
    --mobile-nav-height: 56px;
    
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 20, 40, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 20, 40, 0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    margin-bottom: 32px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.version {
    font-size: 10px;
    padding: 2px 6px;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
    position: relative;
}

.nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.badge {
    position: absolute;
    right: 12px;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: var(--player-height);
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn var(--transition-normal);
}

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

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.tab-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

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

.search-container {
    margin-bottom: 24px;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin-bottom: 16px;
}

.search-box .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 14px 48px;
    background-color: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

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

.search-box input:focus {
    background-color: var(--bg-hover);
    box-shadow: 0 0 0 2px var(--accent-primary);
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.clear-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-active);
}

.clear-btn svg {
    width: 18px;
    height: 18px;
}

.search-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.search-results, .downloads-list, .library-grid, .playlists-grid {
    flex: 1;
    overflow-y: auto;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state span {
    font-size: 14px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.track-card, .album-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.track-card:hover, .album-card:hover {
    background-color: var(--bg-hover);
    transform: translateY(-4px);
}

.card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    background-color: var(--bg-tertiary);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-cover .play-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.track-card:hover .play-overlay,
.album-card:hover .play-overlay {
    opacity: 1;
    transform: translateY(0);
}

.play-overlay svg {
    width: 24px;
    height: 24px;
    color: var(--bg-primary);
    margin-left: 2px;
}

.card-info {
    min-width: 0;
    flex: 1;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.track-card:hover .card-actions,
.album-card:hover .card-actions {
    opacity: 1;
}

.action-btn {
    width: 32px;
    height: 32px;
    background-color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all var(--transition-fast);
    animation: slideIn 0.3s ease-out;
}

.download-item:hover {
    background-color: var(--bg-hover);
}

.download-item[data-status="pending"] {
    border-left: 3px solid var(--text-muted);
}

.download-item[data-status="downloading"] {
    border-left: 3px solid var(--accent-primary);
    background-color: rgba(29, 185, 84, 0.05);
}

.download-item[data-status="completed"] {
    border-left: 3px solid var(--accent-primary);
    opacity: 0.7;
}

.download-item[data-status="failed"] {
    border-left: 3px solid #ff5555;
    background-color: rgba(255, 85, 85, 0.05);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.download-cover {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--bg-tertiary);
    flex-shrink: 0;
}

.download-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-artist {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-cover {
    position: relative;
}

.download-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.download-spinner {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.download-progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.download-progress-bar {
    flex: 1;
    height: 4px;
    background-color: var(--bg-active);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.download-progress-fill {
    height: 100%;
    background-color: var(--accent-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.download-progress-text {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 35px;
    text-align: right;
    font-weight: 500;
}

.download-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.status-downloading {
    background-color: rgba(29, 185, 84, 0.2);
    color: var(--accent-primary);
}

.status-completed {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

.status-failed {
    background-color: rgba(255, 85, 85, 0.2);
    color: #ff5555;
}

.download-remove {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.download-remove:hover {
    background-color: var(--bg-active);
    color: #ff5555;
}

.download-remove svg {
    width: 18px;
    height: 18px;
}

.library-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.library-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.library-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.library-search input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    background-color: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.library-search input:focus {
    background-color: var(--bg-hover);
    box-shadow: 0 0 0 2px var(--accent-primary);
}

.library-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.library-filters select {
    padding: 10px 32px 10px 12px;
    background-color: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    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='%23b3b3b3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    outline: none;
    min-width: 120px;
    height: 40px;
    transition: all var(--transition-fast);
}

.library-filters select:hover {
    background-color: var(--bg-hover);
}

.library-filters select:focus {
    background-color: var(--bg-hover);
    box-shadow: 0 0 0 2px var(--accent-primary);
}

.library-grid .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    flex-shrink: 0;
    margin-top: 4px;
    min-height: 32px;
}

.page-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    background-color: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn svg {
    width: 14px;
    height: 14px;
}

.page-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.page-btn.active {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

.playlist-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.playlist-card:hover {
    background-color: var(--bg-hover);
    transform: translateY(-4px);
}

.playlist-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    background-color: var(--bg-tertiary);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-cover .empty-cover {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.playlist-cover .empty-cover svg {
    width: 48px;
    height: 48px;
}

.playlist-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.playlist-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.create-playlist-card {
    border: 2px dashed var(--border-light);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.create-playlist-card:hover {
    border-color: var(--accent-primary);
    background-color: rgba(29, 185, 84, 0.05);
}

.create-playlist-card svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.create-playlist-card span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

.about-hero {
    text-align: center;
    padding: 48px 0;
}

.about-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-primary), #48cae4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo svg {
    width: 40px;
    height: 40px;
    color: var(--bg-primary);
}

.about-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-version {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-secondary);
}

.about-content {
    padding: 24px 0;
}

.about-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.feature-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-fast);
}

.feature-card:hover {
    background-color: var(--bg-hover);
    transform: translateY(-4px);
}

.feature-card svg {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tech-stack {
    text-align: center;
    margin-bottom: 48px;
}

.tech-stack h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tech-badge {
    padding: 8px 16px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
}

.changelog-section {
    margin-top: 48px;
}

.changelog-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.changelog-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-hover) var(--bg-secondary);
}

.changelog-container::-webkit-scrollbar {
    width: 8px;
}

.changelog-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.changelog-container::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: var(--radius-md);
}

.changelog-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.changelog-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.changelog-content h4 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.changelog-content h4:first-child {
    margin-top: 0;
}

.changelog-content p {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.changelog-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.changelog-content li {
    margin-bottom: 4px;
}

.credits {
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
}

.credits p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.credits strong {
    color: var(--accent-primary);
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
}

.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background-color: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 30% 40% 30%;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
}

.player-track {
    display: flex;
    align-items: center;
    gap: 14px;
}

.track-cover {
    width: 56px;
    height: 56px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-cover svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.track-info {
    min-width: 0;
}

.track-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.like-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.like-btn:hover {
    color: var(--accent-primary);
}

.like-btn.active {
    color: var(--accent-primary);
}

.like-btn.active svg {
    fill: var(--accent-primary);
}

.like-btn svg {
    width: 18px;
    height: 18px;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.controls-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.control-btn:hover {
    color: var(--text-primary);
}

.control-btn.active {
    color: var(--accent-primary);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.play-btn {
    width: 40px;
    height: 40px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.play-btn:hover {
    transform: scale(1.06);
    color: var(--bg-primary);
}

.play-btn svg {
    width: 18px;
    height: 18px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.time-current, .time-total {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: var(--bg-active);
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
}

.progress-bar:hover {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background-color: var(--text-primary);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 100ms linear;
}

.progress-bar:hover .progress-fill {
    background-color: var(--accent-primary);
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--text-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.player-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.option-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.option-btn:hover {
    color: var(--text-primary);
}

.option-btn svg {
    width: 18px;
    height: 18px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    background-color: var(--bg-active);
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
}

.volume-fill {
    height: 100%;
    background-color: var(--text-primary);
    border-radius: var(--radius-full);
    width: 100%;
}

.volume-slider:hover .volume-fill {
    background-color: var(--accent-primary);
}

.volume-handle {
    position: absolute;
    top: 50%;
    right: 0%;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--text-primary);
    border-radius: 50%;
    opacity: 0;
}

.volume-slider:hover .volume-handle {
    opacity: 1;
}

/* ==================== MOBILE NAV (Spotify Style) ==================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: linear-gradient(to top, var(--bg-secondary) 0%, rgba(24, 24, 24, 0.98) 100%);
    border-top: 1px solid var(--border-color);
    justify-content: space-around;
    align-items: center;
    z-index: 150;
    padding: 0 8px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.mobile-nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 6px 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 56px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item.active {
    color: var(--text-primary);
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalIn var(--transition-normal);
}

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

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 60vh;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.album-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.album-cover-large {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.album-details h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.album-details .artist {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.album-details .meta {
    font-size: 14px;
    color: var(--text-muted);
}

.album-tracks {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.album-track {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.album-track:hover {
    background-color: var(--bg-hover);
}

.album-track .track-number {
    width: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.album-track .track-name {
    flex: 1;
    font-size: 14px;
}

.album-track .track-duration {
    font-size: 13px;
    color: var(--text-muted);
}

.album-track .add-btn {
    opacity: 0;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.album-track:hover .add-btn {
    opacity: 1;
}

.album-track .add-btn:hover {
    color: var(--accent-primary);
    background-color: var(--bg-active);
}

.album-track .add-btn svg {
    width: 18px;
    height: 18px;
}

.toast-container {
    position: fixed;
    bottom: calc(var(--player-height) + 20px);
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: toastIn var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: currentColor;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    width: 20px;
    height: 20px;
}

.toast-close:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.toast-close svg {
    width: 14px;
    height: 14px;
}

.toast.success {
    color: var(--accent-primary);
}

.toast.success::before {
    background-color: var(--accent-primary);
}

.toast.error {
    color: #ff5555;
}

.toast.error::before {
    background-color: #ff5555;
}

.toast.info {
    color: #5599ff;
}

.toast.info::before {
    background-color: #5599ff;
}

.toast.warning {
    color: #ffaa00;
}

.toast.warning::before {
    background-color: #ffaa00;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ==================== RESPONSIVE MOBILE (Spotify Style) ==================== */
@media (max-width: 1024px) {
    :root {
        --player-height: 64px;
        --mobile-nav-height: 56px;
    }
    
    .sidebar {
        display: none !important;
    }
    
    .mobile-nav {
        display: flex !important;
    }
    
    .app-container {
        width: 100%;
    }
    
    .main-content {
        width: 100%;
        padding-bottom: calc(var(--player-height) + var(--mobile-nav-height));
    }
    
    /* Player compacto estilo Spotify */
    .player {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: var(--player-height);
        padding: 8px 12px;
        gap: 12px;
        bottom: var(--mobile-nav-height);
    }
    
    .player-track {
        display: flex;
        flex: 0 0 auto;
        max-width: 40%;
        min-width: 0;
    }
    
    .player-track .track-cover {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .player-track .track-info {
        min-width: 0;
    }
    
    .player-track .track-title {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .player-track .track-artist {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .player-track .like-btn {
        display: none;
    }
    
    .player-controls {
        flex: 1;
        min-width: 0;
    }
    
    .controls-buttons {
        gap: 8px;
    }
    
    .control-btn {
        padding: 6px;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .play-btn {
        width: 36px;
        height: 36px;
    }
    
    .play-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .progress-container {
        display: none;
    }
    
    .player-options {
        display: none;
    }
    
    .toast-container {
        bottom: calc(var(--player-height) + var(--mobile-nav-height) + 16px);
        left: 16px;
        right: 16px;
    }
    
    .toast {
        max-width: 100%;
    }
    
    .user-info {
        display: none;
    }
    
    .sidebar-footer {
        display: none;
    }
}

@media (max-width: 768px) {
    .tab-content {
        padding: 16px 12px;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .tab-header h1 {
        font-size: 22px;
        font-weight: 700;
    }
    
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .header-actions .btn {
        flex: 1;
        min-width: calc(50% - 4px);
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .header-actions .btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* ===== CANCIONES EN LISTA (Spotify Style) ===== */
    .results-grid.tracks-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .results-grid.tracks-list .card {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 8px 4px;
        gap: 12px;
        background: transparent;
        border-radius: 4px;
    }
    
    .results-grid.tracks-list .card:hover {
        background-color: var(--bg-hover);
    }
    
    .results-grid.tracks-list .card .card-cover {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 4px;
        flex-shrink: 0;
    }
    
    .results-grid.tracks-list .card .card-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .results-grid.tracks-list .card .card-title {
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        line-height: 1.3;
    }
    
    .results-grid.tracks-list .card .card-subtitle {
        font-size: 13px;
        color: var(--text-secondary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        line-height: 1.3;
    }
    
    .results-grid.tracks-list .card .card-actions {
        position: static;
        opacity: 1;
        display: flex;
        gap: 4px;
        flex-shrink: 0;
        background: none;
        padding: 0;
    }
    
    .results-grid.tracks-list .card .action-btn {
        width: 36px;
        height: 36px;
        background: none;
    }
    
    .results-grid.tracks-list .card .action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* ===== ÁLBUMES CON SCROLL HORIZONTAL (Spotify Style) ===== */
    .results-grid.albums-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 4px 16px 4px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .results-grid.albums-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
    .results-grid.albums-grid .card {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        width: 130px;
        padding: 10px;
        background-color: var(--bg-tertiary);
        border-radius: var(--radius-md);
        scroll-snap-align: start;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }
    
    .results-grid.albums-grid .card:active {
        transform: scale(0.98);
        background-color: var(--bg-hover);
    }
    
    .results-grid.albums-grid .card .card-cover {
        width: 110px;
        height: 110px;
        margin-bottom: 8px;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .results-grid.albums-grid .card .card-info {
        min-width: 0;
        width: 100%;
    }
    
    .results-grid.albums-grid .card .card-title {
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .results-grid.albums-grid .card .card-subtitle {
        font-size: 11px;
        color: var(--text-secondary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
    }
    
    .results-grid.albums-grid .card .play-overlay {
        width: 36px;
        height: 36px;
        bottom: 6px;
        right: 6px;
        opacity: 0.9;
    }
    
    .results-grid.albums-grid .card .play-overlay svg {
        width: 18px;
        height: 18px;
    }
    
    .results-grid.albums-grid .card .card-actions {
        display: none; /* Ocultar acciones en scroll horizontal */
    }
    
    /* ===== ARTISTAS EN GRID (3 columnas, compacto) ===== */
    .results-grid.artists-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .results-grid.artists-grid .artist-card {
        padding: 12px 8px !important;
        border-radius: 8px !important;
    }
    
    .results-grid.artists-grid .artist-card .artist-avatar {
        width: 64px !important;
        height: 64px !important;
        margin-bottom: 8px !important;
        font-size: 28px !important;
    }
    
    .results-grid.artists-grid .artist-card .artist-name {
        font-size: 12px !important;
        margin-bottom: 2px !important;
    }
    
    .results-grid.artists-grid .artist-card .artist-info {
        font-size: 10px !important;
    }
    
    /* Controles de biblioteca */
    .library-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .library-search {
        max-width: 100%;
    }
    
    .library-filters {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .library-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .library-sort select {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* Búsqueda */
    .search-container {
        gap: 12px;
    }
    
    .search-box {
        padding: 10px 16px;
    }
    
    #search-input {
        font-size: 15px;
    }
    
    .search-filters {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    
    .search-filters::-webkit-scrollbar {
        display: none;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 16px;
    }
    
    /* Album header */
    .album-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .album-cover-large {
        width: 180px;
        height: 180px;
    }
    
    .album-details h3 {
        font-size: 20px;
    }
    
    .album-meta {
        justify-content: center;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
    
    .modal-body {
        padding: 16px;
        max-height: 60vh;
    }
    
    /* Downloads */
    .download-item {
        padding: 12px 8px;
        gap: 12px;
    }
    
    .download-cover {
        width: 44px;
        height: 44px;
    }
    
    .download-title {
        font-size: 14px;
    }
    
    .download-artist {
        font-size: 12px;
    }
    
    /* Playlists */
    .playlist-card {
        padding: 12px;
    }
    
    .playlist-info h4 {
        font-size: 14px;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .tab-content {
        padding: 12px 8px;
    }
    
    .tab-header h1 {
        font-size: 20px;
    }
    
    .header-actions .btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .results-grid.tracks-list .card .card-cover {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    
    .results-grid.tracks-list .card .card-title {
        font-size: 14px;
    }
    
    .results-grid.tracks-list .card .card-subtitle {
        font-size: 12px;
    }
    
    .results-grid.tracks-list .card .action-btn {
        width: 32px;
        height: 32px;
    }
    
    /* Álbumes más pequeños en pantallas pequeñas */
    .results-grid.albums-grid .card {
        width: 110px;
        padding: 8px;
    }
    
    .results-grid.albums-grid .card .card-cover {
        width: 94px;
        height: 94px;
    }
    
    .results-grid.albums-grid .card .card-title {
        font-size: 12px;
    }
    
    .results-grid.albums-grid .card .card-subtitle {
        font-size: 10px;
    }
    
    .results-grid.artists-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .results-grid.artists-grid .artist-card {
        padding: 10px 6px !important;
    }
    
    .results-grid.artists-grid .artist-card .artist-avatar {
        width: 56px !important;
        height: 56px !important;
        font-size: 24px !important;
    }
    
    .results-grid.artists-grid .artist-card .artist-name {
        font-size: 11px !important;
    }
    
    .album-cover-large {
        width: 150px;
        height: 150px;
    }
    
    .mobile-nav-item {
        padding: 4px 8px;
        min-width: 48px;
    }
    
    .mobile-nav-item svg {
        width: 22px;
        height: 22px;
    }
    
    .mobile-nav-label {
        font-size: 9px;
    }
}

/* Modo horizontal (landscape) */
@media (max-width: 1024px) and (orientation: landscape) {
    :root {
        --player-height: 56px;
        --mobile-nav-height: 48px;
    }
    
    .main-content {
        padding-bottom: calc(var(--player-height) + var(--mobile-nav-height));
        height: 100vh;
        overflow-y: auto;
    }
    
    .tab-content {
        padding: 12px 16px;
    }
    
    .player {
        height: var(--player-height);
        padding: 6px 12px;
        gap: 12px;
        bottom: var(--mobile-nav-height);
    }
    
    .player-track .track-cover {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .player-track .track-title {
        font-size: 12px;
    }
    
    .player-track .track-artist {
        font-size: 10px;
    }
    
    .play-btn {
        width: 32px;
        height: 32px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .mobile-nav {
        height: var(--mobile-nav-height);
        padding: 0 4px;
    }
    
    .mobile-nav-item {
        padding: 4px 8px;
        min-width: 48px;
    }
    
    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-nav-label {
        font-size: 9px;
    }
    
    /* Grid más compacto en landscape */
    .results-grid.albums-grid .card {
        width: 120px;
        padding: 8px;
    }
    
    .results-grid.albums-grid .card .card-cover {
        width: 104px;
        height: 104px;
    }
    
    .results-grid.artists-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .results-grid.tracks-list .card .card-cover {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--bg-active);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-muted);
}

::selection {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* ==================== SIDEBAR FOOTER ==================== */
.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    padding-bottom: 24px;
    border-top: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.user-avatar svg {
    width: 28px;
    height: 28px;
}

.user-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    margin-top: 4px;
    font-size: 13px;
    padding: 10px 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ==================== AUTH MODAL ==================== */
.modal-small {
    max-width: 420px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    margin-bottom: -1px;
}

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

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-error {
    padding: 8px 12px;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius-md);
    color: #ff6b6b;
    font-size: 13px;
    display: none;
}

.form-error:not(:empty) {
    display: block;
}
