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

:root {
    --primary-color: #1db954;
    --primary-hover: #1ed760;
    --secondary-color: #191414;
    --surface-color: #121212;
    --surface-hover: #1a1a1a;
    --border-color: #282828;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #6a6a6a;
    --accent-blue: #1e3a8a;
    --accent-purple: #7c3aed;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.25);
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--secondary-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    height: 64px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 20px;
    transition: var(--transition);
}

.brand-link:hover {
    color: var(--primary-color);
}

.brand-icon {
    font-size: 28px;
    color: var(--primary-color);
}

.nav-search {
    flex: 1;
    max-width: 500px;
    margin: 0 32px;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--surface-hover);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 16px 10px 44px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface-color);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.nav-actions {
    flex-shrink: 0;
}

.nav-auth {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
    min-width: auto;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
}

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

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

/* User Menu */
.nav-user {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.user-menu-toggle:hover {
    background: var(--surface-hover);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.user-name {
    font-weight: 500;
    font-size: 14px;
}

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

.user-menu-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 8px;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.user-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
}

.user-info small {
    color: var(--text-secondary);
    font-size: 12px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--surface-hover);
}

.dropdown-item.logout {
    color: var(--danger-color);
}

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

/* Layout */
.main-container {
    display: flex;
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

.sidebar {
    width: 240px;
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-content {
    padding: 24px 0;
    height: 100%;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 32px;
}

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

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding: 0 24px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.sidebar-link.active {
    color: var(--primary-color);
    background: var(--surface-hover);
}

.main-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: var(--secondary-color);
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Player Styles */
.current-player {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    display: none;
}

.current-player.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.player-cover {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-hover);
}

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

.player-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.player-details p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 2px;
}

.audio-player {
    width: 100%;
    height: 40px;
    background: var(--surface-hover);
    border-radius: 20px;
}

/* Track Grid */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 8px;
}

.track-card {
    background: linear-gradient(145deg, var(--surface-color), rgba(25, 20, 20, 0.95));
    border-radius: 20px;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(20px);
}

.track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(29, 185, 84, 0.1) 0%, 
        rgba(124, 58, 237, 0.1) 50%, 
        rgba(30, 58, 138, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.track-card:hover::before {
    opacity: 1;
}

.track-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(29, 185, 84, 0.3) inset,
        0 0 30px rgba(29, 185, 84, 0.2);
    border-color: rgba(29, 185, 84, 0.5);
}

.track-card.playing {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, 
        rgba(29, 185, 84, 0.15), 
        rgba(25, 20, 20, 0.95));
    box-shadow: 
        0 8px 32px rgba(29, 185, 84, 0.4),
        0 0 0 2px var(--primary-color) inset;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 8px 32px rgba(29, 185, 84, 0.4), 0 0 0 2px var(--primary-color) inset; }
    100% { box-shadow: 0 12px 40px rgba(29, 185, 84, 0.6), 0 0 0 2px var(--primary-hover) inset; }
}

.track-cover-container {
    position: relative;
    margin: 16px 16px 0 16px;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(135deg, 
        var(--border-color), 
        var(--surface-hover),
        rgba(29, 185, 84, 0.1));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
}

.track-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.track-card:hover .track-cover {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.1) contrast(1.2) saturate(1.2);
}

.track-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7), 
        rgba(29, 185, 84, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.track-card:hover .track-play-overlay {
    opacity: 1;
}

.track-card.playing .track-play-overlay {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(29, 185, 84, 0.8), 
        rgba(124, 58, 237, 0.6));
}

.play-button {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 24px rgba(29, 185, 84, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.play-button:hover::before {
    animation: shine 0.6s ease-in-out;
    opacity: 1;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.play-button:hover {
    transform: scale(1.15);
    box-shadow: 
        0 12px 32px rgba(29, 185, 84, 0.6),
        0 0 0 4px rgba(255, 255, 255, 0.3) inset;
}

.track-card.playing .play-button {
    background: linear-gradient(135deg, white, #f0f0f0);
    color: var(--primary-color);
    box-shadow: 
        0 8px 24px rgba(255, 255, 255, 0.4),
        0 0 0 3px rgba(29, 185, 84, 0.5) inset;
}

.track-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.track-info {
    margin-bottom: 16px;
}

.track-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: linear-gradient(135deg, var(--text-primary), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.track-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.track-title a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(29, 185, 84, 0.5);
}

.track-artist {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.track-artist a:hover {
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
}

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

.track-album a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.track-album a:hover {
    color: var(--text-secondary);
}

.track-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.track-duration {
    font-size: 12px;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--surface-hover), rgba(255, 255, 255, 0.05));
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.track-actions {
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(4px);
}

.track-card:hover .track-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-like,
.btn-playlist {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--surface-hover), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-like::before,
.btn-playlist::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-like:hover::before,
.btn-playlist:hover::before {
    left: 100%;
}

.btn-like:hover,
.btn-playlist:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 185, 84, 0.4);
    border-color: var(--primary-color);
}

.btn-like.liked {
    background: linear-gradient(135deg, var(--danger-color), #ff6b6b);
    color: white;
    border-color: var(--danger-color);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-like.liked:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* Album/Artist Cards */
.albums-grid,
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.album-card,
.artist-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.album-card:hover,
.artist-card:hover {
    background: var(--surface-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.album-cover,
.artist-avatar {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--border-color), var(--surface-hover));
}

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

.album-cover img,
.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.album-card:hover .album-cover img,
.artist-card:hover .artist-avatar img {
    transform: scale(1.05);
}

.album-title,
.artist-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-artist,
.artist-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

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

/* Spotify Player - Exact Copy */
.spotify-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #181818;
    border-top: 1px solid #282828;
    z-index: 1000;
    height: 90px;
}

.spotify-player-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    height: 100%;
    padding: 16px;
    max-width: none;
    margin: 0;
}

/* Left Section - Now Playing */
.spotify-now-playing {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.spotify-track-cover {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: #282828;
    flex-shrink: 0;
}

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

.spotify-track-info {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
}

.spotify-track-title {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    line-height: 16px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.spotify-track-title:hover {
    text-decoration: underline;
}

.spotify-track-artist {
    font-size: 11px;
    font-weight: 400;
    color: #b3b3b3;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.spotify-track-artist:hover {
    color: #ffffff;
    text-decoration: underline;
}

.spotify-track-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotify-btn-icon {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease;
}

.spotify-btn-icon:hover {
    color: #ffffff;
}

.spotify-btn-icon.liked {
    color: #1db954;
}

/* Center Section - Player Controls */
.spotify-player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 722px;
    width: 100%;
}

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

.spotify-btn-control {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.spotify-btn-control:hover {
    color: #ffffff;
    transform: scale(1.06);
}

.spotify-btn-control.active {
    color: #1db954;
}

.spotify-btn-control.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #1db954;
    border-radius: 50%;
}

.spotify-btn-play {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: none;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.spotify-btn-play:hover {
    transform: scale(1.06);
}

.spotify-playback-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.spotify-time {
    font-size: 11px;
    color: #b3b3b3;
    font-weight: 400;
    line-height: 16px;
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.spotify-progress-bar {
    flex: 1;
    height: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    border-radius: 2px;
}

.spotify-progress-background {
    width: 100%;
    height: 4px;
    background: #5e5e5e;
    border-radius: 2px;
    position: relative;
}

.spotify-progress-bar:hover .spotify-progress-background {
    background: #b3b3b3;
}

.spotify-progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.spotify-progress-bar:hover .spotify-progress-fill {
    background: #1db954;
}

.spotify-progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    left: 0%;
    cursor: grab;
}

.spotify-progress-handle:active {
    cursor: grabbing;
}

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

/* Right Section - Volume and More */
.spotify-extra-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.spotify-volume-bar {
    width: 93px;
    height: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    border-radius: 2px;
}

.spotify-volume-background {
    width: 100%;
    height: 4px;
    background: #5e5e5e;
    border-radius: 2px;
    position: relative;
}

.spotify-volume-bar:hover .spotify-volume-background {
    background: #b3b3b3;
}

.spotify-volume-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    width: 100%;
    transition: width 0.1s linear;
    position: relative;
}

.spotify-volume-bar:hover .spotify-volume-fill {
    background: #1db954;
}

.spotify-volume-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    left: 100%;
    cursor: grab;
}

.spotify-volume-handle:active {
    cursor: grabbing;
}

.spotify-volume-bar:hover .spotify-volume-handle {
    opacity: 1;
}

/* Adjust main content padding for bottom player */
.main-container {
    padding-bottom: 90px;
}

/* Mobile responsive for bottom player */
@media (max-width: 768px) {
    .bottom-player {
        height: 80px;
    }
    
    .player-container {
        padding: 0 12px;
    }
    
    .player-track-info {
        min-width: 180px;
        flex: 0 0 180px;
    }
    
    .player-track-cover {
        width: 48px;
        height: 48px;
    }
    
    .player-buttons {
        gap: 12px;
    }
    
    .player-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .player-btn-play {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .player-volume {
        min-width: 120px;
        flex: 0 0 120px;
    }
    
    .volume-bar {
        width: 60px;
    }
    
    .main-container {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .player-track-info {
        min-width: 140px;
        flex: 0 0 140px;
    }
    
    .player-volume {
        min-width: 80px;
        flex: 0 0 80px;
    }
    
    .volume-bar {
        display: none;
    }
}

/* Loading States */
.loading {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

/* Empty States */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

.empty-description {
    font-size: 14px;
    line-height: 1.5;
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

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

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

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

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

.form-error {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 4px;
}

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

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.form-footer a:hover {
    text-decoration: underline;
}

.current-cover {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

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

.current-info {
    text-align: center;
}

.current-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #00ffff;
}

.current-info p {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #cccccc;
}

#audioPlayer {
    width: 100%;
    max-width: 400px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ffff;
    border-radius: 25px;
    outline: none;
}

#audioPlayer::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

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

.track-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.track-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.track-item:hover::before {
    left: 100%;
}

.track-item:hover {
    border-color: #00ffff;
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.track-item.playing {
    border-color: #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.track-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    float: left;
    margin-right: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.track-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #ffffff;
    line-height: 1.3;
}

.track-info p {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 4px;
    line-height: 1.2;
}

.track-info .artist {
    color: #00ffff;
}

.track-info .album {
    color: #aaaaaa;
    font-style: italic;
}

.fallback-cover {
    background: linear-gradient(45deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .current-track {
        padding: 20px;
    }
    
    .current-cover {
        width: 150px;
        height: 150px;
    }
    
    .current-info h2 {
        font-size: 1.4rem;
    }
    
    .tracks-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .track-item {
        padding: 15px;
    }
    
    .track-cover {
        width: 60px;
        height: 60px;
        margin-right: 12px;
    }
    
    .track-info h3 {
        font-size: 1rem;
    }
    
    .track-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }
    
    .current-cover {
        width: 120px;
        height: 120px;
    }
    
    .track-cover {
        width: 50px;
        height: 50px;
    }
    
    .track-info h3 {
        font-size: 0.9rem;
    }
}