/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #00e4cb;
    --secondary-color: #1db954;
    --bg-dark: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #242424;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: #333;
    --hover-bg: #2a2a2a;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    /* Spacing */
    --sidebar-width: 280px;
    --player-height: 90px;
    --header-height: 70px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Background overlay for pages */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?w=1920&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    padding: 24px;
    overflow-y: auto;
    z-index: 100;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--primary-color);
}

.logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding: 0 16px;
    letter-spacing: 1px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

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

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

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

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-bottom: var(--player-height);
    padding: 24px;
    min-height: calc(100vh - var(--player-height));
}

/* ==================== HEADER ==================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    padding: 16px 0;
    z-index: 50;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: 50px;
    width: 400px;
    gap: 12px;
}

.search-bar i {
    color: var(--text-secondary);
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 100%;
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-premium {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-premium:hover {
    transform: scale(1.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.banner-card {
    padding: 32px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.banner-card.gradient-1 {
    background: var(--gradient-1);
}

.banner-card.gradient-2 {
    background: var(--gradient-2);
}

.banner-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.banner-content p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

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

.banner-image img {
    max-width: 150px;
    height: auto;
}

/* ==================== CATEGORIES ==================== */
.categories {
    margin-bottom: 48px;
}

.categories h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill {
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.pill:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.pill.active {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* ==================== SECTIONS ==================== */
.tracks-section,
.artists-section,
.albums-section {
    margin-bottom: 48px;
}

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

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.view-all {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--text-primary);
}

/* ==================== TRACKS TABLE ==================== */
.tracks-table {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
}

.table-header {
    display: grid;
    grid-template-columns: 40px 1fr 200px 200px 80px 120px;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.track-row {
    display: grid;
    grid-template-columns: 40px 1fr 200px 200px 80px 120px;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    align-items: center;
    transition: background 0.2s;
    cursor: pointer;
}

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

.col-number {
    color: var(--text-secondary);
    font-size: 14px;
}

.col-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-cover {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

/* Ensure image containers display background images properly */
.track-cover,
.album-cover,
.artist-avatar,
.player-cover,
.playlist-cover,
.table-cover,
.table-avatar,
.album-cover-large,
.track-cover-large,
.artist-avatar-large {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.track-name {
    font-weight: 600;
    font-size: 14px;
}

.col-artist,
.col-album,
.col-duration {
    color: var(--text-secondary);
    font-size: 14px;
}

.col-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.2s;
}

.track-row:hover .col-actions {
    opacity: 1;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

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

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

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

/* ==================== ARTISTS GRID ==================== */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.artist-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

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

.artist-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    margin: 0 auto 16px;
}

.artist-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.artist-card p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ==================== ALBUMS GRID ==================== */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.album-card {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.album-card:hover {
    background: var(--bg-tertiary);
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 12px;
}

.album-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.album-info p {
    color: var(--text-secondary);
    font-size: 13px;
}

.btn-play {
    position: absolute;
    top: 150px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

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

/* ==================== MUSIC PLAYER ==================== */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 0 16px;
    z-index: 200;
}

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

.player-cover {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.player-track-name {
    font-size: 14px;
    font-weight: 600;
}

.player-artist-name {
    font-size: 12px;
    color: var(--text-secondary);
}

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

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

.btn-play-pause {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

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

.progress {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-filled {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

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

.volume-bar {
    width: 100px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-filled {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    width: 70%;
}

/* ==================== SEARCH PAGE ==================== */
.search-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

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

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

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* ==================== TRACK DETAIL PAGE ==================== */
.track-detail-page,
.playlist-page,
.artist-page,
.album-page {
    padding-top: 24px;
}

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.2s;
}

.btn-back:hover {
    background: rgba(0, 0, 0, 0.8);
}

.track-header,
.playlist-header,
.artist-header,
.album-header {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.track-cover-large,
.playlist-cover,
.album-cover-large {
    width: 232px;
    height: 232px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    flex-shrink: 0;
}

.track-header-info,
.playlist-info,
.album-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.track-type,
.playlist-type,
.album-type,
.artist-verified {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.track-title,
.playlist-title,
.album-title,
.artist-name {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
}

.track-meta,
.playlist-meta,
.album-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.artist-link,
.album-link {
    color: var(--text-primary);
    font-weight: 600;
    transition: text-decoration 0.2s;
}

.artist-link:hover,
.album-link:hover {
    text-decoration: underline;
}

.track-actions,
.playlist-actions,
.artist-actions,
.album-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-play-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.2s;
}

.btn-play-large:hover {
    transform: scale(1.05);
}

.btn-icon-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.2s;
}

.btn-icon-large:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.track-info-section {
    margin-bottom: 48px;
}

.info-card {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 12px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    color: var(--text-secondary);
}

.lyrics-section {
    margin-bottom: 48px;
}

.lyrics-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.lyrics-content {
    color: var(--text-secondary);
    line-height: 2;
}

/* ==================== PLAYLIST PAGE ==================== */
.drag-instructions {
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.draggable {
    cursor: move;
}

.draggable.dragging {
    opacity: 0.5;
}

.col-drag {
    cursor: move;
    color: var(--text-secondary);
}

.drag-handle:hover {
    color: var(--text-primary);
}

.remove-btn:hover {
    color: #ff4444;
}

/* ==================== ARTIST PAGE ==================== */
.artist-header {
    position: relative;
    padding: 80px 0 32px;
    margin-bottom: 0;
}

.artist-header-bg {
    position: absolute;
    top: 0;
    left: -24px;
    right: -24px;
    height: 400px;
    background: var(--gradient-1);
    opacity: 0.3;
    filter: blur(100px);
}

.artist-header-content {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 32px;
}

.artist-avatar-large {
    width: 232px;
    height: 232px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.artist-verified {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
}

.artist-stats {
    color: var(--text-secondary);
}

.btn-follow {
    padding: 10px 32px;
    border-radius: 50px;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

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

.btn-see-more {
    margin-top: 24px;
    padding: 10px 32px;
    border-radius: 50px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

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

.artist-about {
    margin-bottom: 48px;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 16px;
}

.artist-stats-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat-card {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.stat-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.stat-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==================== ADMIN STYLES ==================== */
.admin-body {
    display: flex;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-secondary);
    padding: 24px;
    overflow-y: auto;
    z-index: 100;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

.admin-content {
    margin-left: 260px;
    flex: 1;
    padding: 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 32px;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.section-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: 8px;
    gap: 12px;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 100%;
}

.filter-group {
    display: flex;
    gap: 12px;
}

.filter-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-table {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow-x: auto;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.admin-table td {
    font-size: 14px;
}

.admin-table tbody tr:hover {
    background: var(--hover-bg);
}

.table-cover,
.table-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.table-avatar {
    border-radius: 50%;
}

.badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-success {
    background: rgba(0, 228, 203, 0.2);
    color: var(--primary-color);
}

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

.delete-btn:hover {
    color: #ff4444;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.btn-pagination {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
}

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

.btn-pagination.active {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

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

.modal-small {
    max-width: 400px;
}

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

.modal-header h2 {
    font-size: 24px;
}

.btn-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

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

.modal-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.btn-danger {
    background: #ff4444;
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #cc0000;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
    
    .hero-banner {
        grid-template-columns: 1fr;
    }
    
    .track-row {
        grid-template-columns: 40px 1fr 150px 80px 100px;
    }
    
    .col-album {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .artists-grid,
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* ==================== NOTIFICATION SYSTEM ==================== */
.audio-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out, slideOutRight 0.3s ease-in 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
}

.audio-notification.success {
    background: linear-gradient(135deg, #00e4cb 0%, #1db954 100%);
    color: var(--bg-dark);
}

.audio-notification.error {
    background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
    color: white;
}

.audio-notification.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.audio-notification i {
    font-size: 18px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ==================== COLLAPSIBLE SIDEBAR ==================== */
.sidebar-toggle {
    position: absolute;
    top: 20px;
    right: -40px;
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s;
    z-index: 101;
}

.sidebar-toggle:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
    transform: scale(1.1);
}

.sidebar.collapsed {
    width: 80px !important;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-section-title {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .logo {
    justify-content: center;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .nav-section h3 {
    text-align: center;
    padding: 0;
}

.main-content {
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 80px;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        right: -50px;
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }
}

/* ==================== SETTINGS PAGE ==================== */
.settings-section {
    margin-bottom: 40px;
}

.settings-header {
    margin-bottom: 20px;
}

.settings-header h2 {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.settings-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.settings-item:last-child {
    border-bottom: none;
}

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

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

.settings-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-item-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.settings-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    min-width: 150px;
}

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

.settings-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.settings-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.settings-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* ==================== AUTH PAGES ==================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 0;
}

.auth-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

.auth-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.auth-box {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.auth-logo i {
    font-size: 48px;
    color: var(--primary-color);
}

.auth-logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

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

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 16px;
}

.form-group input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

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

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.btn-toggle-password:hover {
    color: var(--primary-color);
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-fill.strength-weak {
    background: #ff5252;
}

.strength-fill.strength-medium {
    background: #ffa726;
}

.strength-fill.strength-strong {
    background: var(--secondary-color);
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
}

.strength-text.strength-weak {
    color: #ff5252;
}

.strength-text.strength-medium {
    color: #ffa726;
}

.strength-text.strength-strong {
    color: var(--secondary-color);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.link-forgot,
.link-signup,
.link-inline {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.2s;
}

.link-forgot:hover,
.link-signup:hover,
.link-inline:hover {
    color: var(--secondary-color);
}

.btn-auth {
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 228, 203, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    width: 100%;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.btn-social i {
    font-size: 18px;
}

.btn-google:hover {
    border-color: #ea4335;
}

.btn-facebook:hover {
    border-color: #1877f2;
}

.btn-apple:hover {
    border-color: #ffffff;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 24px;
}

.auth-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
}

.auth-notification.success {
    background: linear-gradient(135deg, #00e4cb 0%, #1db954 100%);
    color: var(--bg-dark);
}

.auth-notification.error {
    background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
    color: white;
}

.auth-notification.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ==================== TRENDING PAGE STYLES ==================== */
.top-charts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.chart-item:hover {
    background: var(--hover-bg);
    transform: translateX(8px);
}

.chart-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 50px;
}

.rank-number {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-trend {
    font-size: 12px;
}

.rank-trend.up {
    color: #4caf50;
}

.rank-trend.down {
    color: #f44336;
}

.rank-trend.neutral {
    color: var(--text-secondary);
}

.chart-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    flex-shrink: 0;
}

.chart-info {
    flex: 1;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.chart-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.chart-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-duration {
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: right;
}

.btn-play-chart {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-dark);
    font-size: 18px;
    transition: all 0.3s;
}

.btn-play-chart:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 228, 203, 0.4);
}

.trending-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trending-badge.hot {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.trending-badge.warm {
    background: rgba(255, 167, 38, 0.2);
    color: #ffa726;
}

.trending-badge.normal {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

/* ==================== HISTORY PAGE ==================== */

/* History Stats */
.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 228, 203, 0.3);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(0, 228, 203, 0.2), rgba(132, 122, 247, 0.2));
    color: var(--primary-color);
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* History Filters */
.history-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 228, 203, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    border-color: transparent;
}

.clear-history-btn {
    margin-left: auto;
    padding: 10px 20px;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.clear-history-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
}

/* History Timeline */
.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.history-date-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-date-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.history-date-header i {
    color: var(--primary-color);
}

.history-item {
    display: grid;
    grid-template-columns: 80px 1fr 120px 60px;
    gap: 20px;
    align-items: center;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
    border-color: rgba(0, 228, 203, 0.3);
}

.history-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.history-time i {
    color: var(--primary-color);
}

.history-track-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.history-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.history-details {
    flex: 1;
    min-width: 0;
}

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

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

.history-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.history-duration i {
    color: var(--primary-color);
}

.btn-replay {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0;
}

.history-item:hover .btn-replay {
    opacity: 1;
}

.btn-replay:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 228, 203, 0.4);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 80px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 400px;
}

.empty-state button {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.empty-state button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 228, 203, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .history-item {
        grid-template-columns: 70px 1fr 100px 50px;
        gap: 16px;
        padding: 14px;
    }
    
    .history-cover {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .history-stats {
        grid-template-columns: 1fr;
    }
    
    .history-item {
        grid-template-columns: 1fr 50px;
        gap: 12px;
    }
    
    .history-time {
        display: none;
    }
    
    .history-duration {
        grid-column: 1;
        grid-row: 2;
        margin-left: 72px;
    }
    
    .filter-btn {
        flex: 1;
        min-width: calc(50% - 6px);
    }
    
    .clear-history-btn {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }
}
