:root {
    --bg-color: #0b0c10;
    --glass-bg: rgba(25, 27, 36, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-blue: #45f3ff;
    --neon-purple: #c471ed;
    --text-main: #f8f9fa;
    --text-muted: #8b92a5;
    --success: #00e676;
    --danger: #ff1744;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.text-neon { color: var(--neon-blue); }
.gradient-text {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Background Effects */
.background-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
}

.blob {
    position: fixed;
    filter: blur(100px);
    z-index: -1;
    border-radius: 50%;
    animation: float 10s infinite alternate;
}
.blob-1 {
    width: 400px; height: 400px;
    background: rgba(69, 243, 255, 0.15);
    top: -100px; left: -100px;
}
.blob-2 {
    width: 500px; height: 500px;
    background: rgba(196, 113, 237, 0.1);
    bottom: -200px; right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin: 1rem;
    position: sticky;
    top: 1rem;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero {
    text-align: center;
    margin: 4rem 0;
}
.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.widget {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.player-widget {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}
.widget-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Player */
.now-playing-visualizer {
    display: flex;
    align-items: flex-end;
    height: 60px;
    gap: 6px;
    margin: 2rem 0;
}
.bar {
    width: 8px;
    background: var(--neon-blue);
    border-radius: 4px;
    height: 10px;
    transition: height 0.1s;
}
.playing .bar {
    animation: eq 1s infinite alternate;
}
.playing .bar:nth-child(2) { animation-delay: 0.2s; }
.playing .bar:nth-child(3) { animation-delay: 0.4s; }
.playing .bar:nth-child(4) { animation-delay: 0.1s; }
.playing .bar:nth-child(5) { animation-delay: 0.5s; }
.playing .bar:nth-child(6) { animation-delay: 0.3s; }
.playing .bar:nth-child(7) { animation-delay: 0.6s; }
.playing .bar:nth-child(8) { animation-delay: 0.2s; }

@keyframes eq {
    0% { height: 10px; }
    100% { height: 60px; }
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 400px;
}
.btn-primary {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(69, 243, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(69, 243, 255, 0.6);
}

.btn-icon {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-icon:hover {
    background: rgba(255,255,255,0.2);
}

.volume-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px; width: 16px;
    border-radius: 50%;
    background: var(--neon-blue);
    cursor: pointer;
    margin-top: -6px;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px;
    cursor: pointer;
    background: var(--glass-border);
    border-radius: 2px;
}

/* Crypto List */
.crypto-list, .news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.crypto-list::-webkit-scrollbar, .news-list::-webkit-scrollbar {
    width: 6px;
}
.crypto-list::-webkit-scrollbar-thumb, .news-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.crypto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    transition: transform 0.2s;
}
.crypto-item:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,0.05);
}
.coin-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.coin-info img {
    width: 32px; height: 32px;
    border-radius: 50%;
}
.coin-name { font-weight: 600; }
.coin-symbol { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase;}
.coin-price {
    text-align: right;
}
.price { font-weight: 600; font-size: 1.1rem; }
.change { font-size: 0.85rem; }
.positive { color: var(--success); }
.negative { color: var(--danger); }

/* News List */
.news-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border-left: 3px solid var(--neon-purple);
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s;
}
.news-item:hover {
    background: rgba(255,255,255,0.05);
}
.news-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .dashboard { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 1024px) {
    .dashboard { grid-template-columns: 1fr 1fr; }
}

/* Persistent Mini Player Bar */
#mini-player {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(11, 12, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 9999;
    padding: 0.75rem 2rem;
}
.mini-player-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.mini-logo {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--neon-blue);
    white-space: nowrap;
}
.mini-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}
#mini-play-btn {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 50%;
    width: 36px; height: 36px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}
#mini-play-btn:hover { transform: scale(1.1); }
#mini-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.mini-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}
.mini-visualizer span {
    display: block;
    width: 3px;
    background: var(--neon-blue);
    border-radius: 2px;
    height: 4px;
}
.mini-visualizer.playing span { animation: eq 0.8s infinite alternate; }
.mini-visualizer.playing span:nth-child(2) { animation-delay: 0.15s; }
.mini-visualizer.playing span:nth-child(3) { animation-delay: 0.3s; }
.mini-visualizer.playing span:nth-child(4) { animation-delay: 0.1s; }
.mini-visualizer.playing span:nth-child(5) { animation-delay: 0.4s; }
body { padding-bottom: 70px; }
