:root {
    --bg-dark: #030303;
    --bg-surface: #121212;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --primary-color: #ff0000;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --accent: #2196F3;
    --nav-height: 60px;
    --player-height: 70px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background: radial-gradient(circle at 10% 20%, rgba(80, 20, 30, 0.5), transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(20, 40, 70, 0.5), transparent 60%),
        var(--bg-dark);
    background-size: 200% 200%;
    animation: ambientPulse 15s ease infinite alternate;
    min-height: 100vh;
}

@keyframes ambientPulse {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Utils */
.dropdown-item { transition: 0.2s; }
.dropdown-item:hover { background: rgba(255, 255, 255, 0.05) !important; }
.hidden { display: none !important; }
.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
}
.color-primary { color: var(--primary-color); }

/* Buttons & Inputs */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.input-group input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 15px 15px 15px 45px;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.input-group input:focus { border-color: var(--text-muted); }

/* Top Nav */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: var(--nav-height);
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 10px;
}
.logo { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }

.search-container {
    flex: 2;
    min-width: 150px;
    margin: 0 10px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 0 15px;
    max-width: 800px;
    transition: all 0.3s ease;
}
.search-container:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px var(--primary-color);
}
.search-container input { width: 100%; background: transparent; border: none; color: #fff; padding: 10px; outline: none; }

.avatar { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; cursor: pointer; }

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-dark);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 90;
}
.nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    position: relative;
}
.nav-item i { font-size: 1.2rem; }
.nav-item.active { color: #fff; }
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

/* Main Area */
.main-content {
    padding: 0 20px calc(var(--player-height) + var(--nav-height) + 20px);
}
.view-section { animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spinner */
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-glass);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}
.toast {
    background: #2a2a2a;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: auto;
    animation: slideInRight 0.3s ease forwards, fadeOut 0.4s ease 3.5s forwards;
    max-width: 300px;
    line-height: 1.4;
}
.toast.error { border-left: 4px solid #ff4444; }
.toast.error i { color: #ff4444; }
.toast.success { border-left: 4px solid #00C851; }
.toast.success i { color: #00C851; }
.toast.info { border-left: 4px solid #33b5e5; }
.toast.info i { color: #33b5e5; }

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(120%); }
}
