/* ============================================
   PHONK VIBES - Premium Music Player Styles
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-glass: rgba(20, 20, 30, 0.7);
    --bg-glass-light: rgba(30, 30, 45, 0.5);
    
    /* Texture overlays */
    --noise-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    --grain-opacity: 0.03;
    
    --accent-purple: #a855f7;
    --accent-purple-light: #c084fc;
    --accent-purple-dark: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-cyan-light: #67e8f9;
    --accent-pink: #ec4899;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(6, 182, 212, 0.3) 100%);
    
    --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple-light);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    position: relative;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--noise-texture);
    opacity: 0.05;
    pointer-events: none;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.neon-logo {
    margin-bottom: 2rem;
}

.neon-logo .logo-text {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 
        0 0 10px var(--accent-purple),
        0 0 20px var(--accent-purple),
        0 0 40px var(--accent-purple),
        0 0 80px var(--accent-purple);
    animation: neonPulse 2s ease-in-out infinite;
}

.neon-logo .logo-vibes {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-cyan);
    text-shadow: 
        0 0 10px var(--accent-cyan),
        0 0 20px var(--accent-cyan),
        0 0 40px var(--accent-cyan),
        0 0 80px var(--accent-cyan);
    animation: neonPulse 2s ease-in-out infinite 0.5s;
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0%;
    animation: loadingProgress 2s ease-out forwards;
    box-shadow: 0 0 10px var(--accent-purple);
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Background */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Noise texture overlay */
.bg-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--noise-texture);
    opacity: var(--grain-opacity);
    pointer-events: none;
    z-index: 1;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(60px) brightness(0.4);
    transform: scale(1.2);
    transition: background-image 0.8s ease;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.7);
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

/* App Container */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-bottom: 140px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent-purple);
    text-shadow: 0 0 10px var(--accent-purple);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-vibes {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

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

.btn-icon:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
    transform: scale(1.05);
}

/* Search Bar */
.search-bar {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
}

.search-bar input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-bar input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

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

.search-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0 4rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
    text-shadow: 
        0 0 20px rgba(168, 85, 247, 0.5),
        0 0 40px rgba(168, 85, 247, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

.title-line.vibes {
    color: var(--accent-cyan);
    text-shadow: 
        0 0 20px rgba(6, 182, 212, 0.5),
        0 0 40px rgba(6, 182, 212, 0.3);
    animation: titleGlow 3s ease-in-out infinite 0.5s;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(168, 85, 247, 0.3); }
    50% { text-shadow: 0 0 30px rgba(168, 85, 247, 0.8), 0 0 60px rgba(168, 85, 247, 0.5); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Waveform Animation */
.hero-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
    margin-bottom: 2rem;
}

.waveform-bar {
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: waveform 1s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-purple);
}

.waveform-bar:nth-child(1) { height: 20%; animation-delay: 0s; }
.waveform-bar:nth-child(2) { height: 40%; animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { height: 30%; animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { height: 50%; animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { height: 70%; animation-delay: 0.5s; }
.waveform-bar:nth-child(7) { height: 40%; animation-delay: 0.6s; }
.waveform-bar:nth-child(8) { height: 60%; animation-delay: 0.7s; }
.waveform-bar:nth-child(9) { height: 80%; animation-delay: 0.8s; }
.waveform-bar:nth-child(10) { height: 50%; animation-delay: 0.9s; }
.waveform-bar:nth-child(11) { height: 30%; animation-delay: 1s; }
.waveform-bar:nth-child(12) { height: 60%; animation-delay: 0.1s; }
.waveform-bar:nth-child(13) { height: 40%; animation-delay: 0.2s; }
.waveform-bar:nth-child(14) { height: 70%; animation-delay: 0.3s; }
.waveform-bar:nth-child(15) { height: 50%; animation-delay: 0.4s; }
.waveform-bar:nth-child(16) { height: 30%; animation-delay: 0.5s; }
.waveform-bar:nth-child(17) { height: 60%; animation-delay: 0.6s; }
.waveform-bar:nth-child(18) { height: 80%; animation-delay: 0.7s; }
.waveform-bar:nth-child(19) { height: 40%; animation-delay: 0.8s; }
.waveform-bar:nth-child(20) { height: 50%; animation-delay: 0.9s; }

@keyframes waveform {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* Buttons */
.btn-play-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.btn-play-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: var(--bg-glass-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

/* Section Styles */
section {
    padding: 4rem 0;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.see-all {
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.see-all:hover {
    color: var(--accent-purple-light);
}

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

.trending-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
}

.trending-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow);
}

.trending-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.trending-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.trending-card:hover .trending-cover img {
    transform: scale(1.05);
}

.trending-play {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-purple);
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-fast);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

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

.trending-play:hover {
    transform: scale(1.1);
    background: var(--accent-purple-light);
}

.trending-info {
    padding: 1rem;
}

.trending-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Playlist Section */
.playlist-actions {
    display: flex;
    gap: 0.75rem;
}

.playlist-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.playlist-item:hover {
    background: var(--bg-glass-light);
    border-color: rgba(168, 85, 247, 0.3);
}

.playlist-item.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent-purple);
}

.playlist-number {
    width: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.playlist-item.active .playlist-number {
    color: var(--accent-purple);
}

.playlist-item-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.playlist-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.playlist-item-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition-fast);
}

.playlist-item:hover .playlist-item-actions {
    opacity: 1;
}

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

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

.btn-item-action.liked {
    color: var(--accent-pink);
}

/* Favorites Section */
.favorites-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* Player Bar */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 2rem;
}

.player-progress {
    margin-bottom: 0.75rem;
}

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

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

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

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

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.player-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.player-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}

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

.player-details {
    min-width: 0;
}

.player-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

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

.btn-like.liked svg {
    fill: currentColor;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

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

.btn-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.player-extra {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    position: relative;
    width: 100px;
    height: 20px;
    display: flex;
    align-items: center;
}

.volume-track {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
}

.volume-fill {
    height: 100%;
    background: var(--accent-purple);
    border-radius: 2px;
    width: 70%;
}

.volume-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

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

.modal-body {
    padding: 1.5rem;
}

.upload-area {
    border: 2px dashed rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.05);
}

.upload-icon {
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.upload-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.upload-preview {
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.upload-file-item:last-child {
    margin-bottom: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .player-main {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .player-info {
        order: 1;
        flex: 0 0 calc(50% - 0.5rem);
    }
    
    .player-controls {
        order: 3;
        flex: 0 0 100%;
        justify-content: center;
    }
    
    .player-extra {
        order: 2;
        flex: 0 0 calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .app-container {
        padding: 0 1rem;
        padding-bottom: 180px;
    }
    
    .hero {
        padding: 5rem 0 2rem;
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .player-bar {
        padding: 0.75rem 1rem;
    }
    
    .player-info {
        flex: 0 0 100%;
    }
    
    .player-extra {
        display: none;
    }
    
    .section-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .playlist-actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-play-hero {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Like Animation */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.like-anim {
    animation: likeAnimation 0.3s ease;
}

/* Glassmorphism Enhancement */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* Texture overlay for glass panels */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--noise-texture);
    opacity: 0.02;
    pointer-events: none;
    border-radius: inherit;
}

/* Enhanced trending cards with texture */
.trending-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
}

.trending-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--noise-texture);
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

/* Enhanced playlist items with texture */
.playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.playlist-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--noise-texture);
    opacity: 0.015;
    pointer-events: none;
    border-radius: inherit;
}

/* Enhanced player bar with texture */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 2rem;
    position: relative;
}

.player-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--noise-texture);
    opacity: 0.02;
    pointer-events: none;
}

/* Enhanced header with texture */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--noise-texture);
    opacity: 0.015;
    pointer-events: none;
}

/* Scanline effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
}

/* Neon Text Effect */
.neon-text {
    text-shadow: 
        0 0 5px var(--accent-purple),
        0 0 10px var(--accent-purple),
        0 0 20px var(--accent-purple),
        0 0 40px var(--accent-purple);
}

/* Gradient Border */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient-primary);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}