:root {
    --bg-dark: #0b0d14;
    --bg-card: rgba(22, 26, 38, 0.75);
    --bg-card-hover: rgba(30, 36, 54, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-glow: rgba(124, 58, 237, 0.4);
    --secondary: #06b6d4;
    --accent-red: #ef4444;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 8px 32px 0 rgba(124, 58, 237, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Utility Classes */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}
.btn-outline:hover {
    background: var(--bg-glass);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}
.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}
.btn-block {
    width: 100%;
}
.btn-google {
    background: #ffffff;
    color: #1f2937;
}
.btn-google:hover {
    background: #f3f4f6;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 13, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    height: 72px;
}
.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 20px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 800;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 0 20px var(--primary-glow);
}
.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search Bar */
.search-bar-container {
    flex: 1;
    max-width: 540px;
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
}
.search-bar-container input {
    width: 100%;
    padding: 12px 42px 12px 46px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}
.search-bar-container input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}
.clear-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* Nav Actions & User Menu */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.user-menu {
    position: relative;
}
.avatar-btn {
    background: none;
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 2px;
    display: flex;
}
.avatar-btn img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    object-fit: cover;
}
.dropdown-menu {
    position: absolute;
    top: 52px;
    right: 0;
    width: 240px;
    background: #141824;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.user-info-header {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
}
.user-name { font-weight: 700; font-size: 0.95rem; }
.user-email { font-size: 0.8rem; color: var(--text-muted); }
.dropdown-divider { border: 0; height: 1px; background: var(--border-glass); margin: 8px 0; }
.dropdown-menu a, .dropdown-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-logout:hover {
    background: var(--bg-glass);
    color: var(--primary);
}

/* App Layout & Sidebar */
.app-layout {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    min-height: calc(100vh - 72px);
}
.sidebar {
    width: 260px;
    padding: 24px 16px;
    border-right: 1px solid var(--border-glass);
    flex-shrink: 0;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.sidebar-item i { font-size: 1.1rem; }
.sidebar-item:hover, .sidebar-item.active {
    color: var(--text-main);
    background: var(--bg-glass);
}
.sidebar-item.active {
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}
.sidebar-divider {
    height: 1px;
    background: var(--border-glass);
    margin: 20px 0;
}
.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 12px;
    padding-left: 12px;
    font-weight: 700;
}
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.category-chip {
    text-align: left;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.category-chip:hover, .category-chip.active {
    background: var(--bg-glass);
    color: var(--text-main);
}
.category-chip.active {
    color: var(--secondary);
    font-weight: 700;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}
.view-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 48px;
    min-height: 280px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.6), rgba(6, 182, 212, 0.3)), url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?auto=format&fit=crop&w=1200&q=80') center/cover;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}
.hero-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    line-height: 1.5;
}
.hero-actions {
    display: flex;
    gap: 16px;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
}
.custom-select {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    outline: none;
    cursor: pointer;
}

/* Video Grid & Cards */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.video-card:hover .thumbnail-img {
    transform: scale(1.05);
}
.badge-type {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.badge-yt { background: rgba(220, 38, 38, 0.85); color: #fff; }
.badge-original { background: rgba(124, 58, 237, 0.85); color: #fff; }

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.video-card:hover .play-overlay {
    opacity: 1;
}
.play-icon-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

.video-info {
    padding: 16px;
    display: flex;
    gap: 12px;
    flex: 1;
}
.artist-avatar-sm {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}
.video-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}
.video-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.artist-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.video-stats-row {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
    display: flex;
    gap: 12px;
}

/* Artists Grid & Profile View */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.artist-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
}
.artist-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
    background: var(--bg-card-hover);
}
.artist-card-img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary);
}
.artist-card-name { font-size: 1.1rem; font-weight: 700; }
.artist-card-bio { font-size: 0.8rem; color: var(--text-muted); max-height: 38px; overflow: hidden; }

/* Profile View Section */
.profile-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.profile-cover {
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.profile-info-container {
    padding: 0 32px 32px 32px;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-top: -60px;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    border: 4px solid var(--bg-dark);
    object-fit: cover;
    background: var(--bg-dark);
}
.profile-details { flex: 1; margin-top: 50px; }
.profile-details h2 { font-size: 1.8rem; font-weight: 800; }
.profile-handle { color: var(--secondary); font-size: 0.9rem; margin-bottom: 8px; }
.profile-bio { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }
.profile-stats { display: flex; gap: 24px; }
.stat-item { font-size: 0.9rem; color: var(--text-muted); }
.stat-item strong { color: var(--text-main); font-size: 1.1rem; }

.profile-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
}
.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.tab-btn.active {
    background: var(--bg-glass);
    color: var(--primary);
}

/* Modals System */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    background: #121624;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    position: relative;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,0.8);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-glass);
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    z-index: 10;
}
.modal-close:hover { background: rgba(255,255,255,0.2); color: var(--text-main); }

/* Auth Modal */
.modal-auth, .modal-upload {
    max-width: 440px;
    padding: 36px;
}
.auth-tabs, .upload-type-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}
.auth-tab-btn, .upload-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.auth-tab-btn.active, .upload-tab.active {
    background: var(--primary);
    color: #fff;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.form-group input, .form-group select {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-main);
    outline: none;
    font-size: 0.95rem;
}
.form-group input:focus {
    border-color: var(--primary);
}
.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-glass);
}
.auth-divider span {
    position: relative;
    background: #121624;
    padding: 0 12px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Modal Theater Video Player */
.modal-video-theater {
    max-width: 1200px;
    padding: 0;
    overflow: hidden;
}
.theater-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: 550px;
}
.player-container {
    background: #000;
    display: flex;
    flex-direction: column;
}
.media-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    width: 100%;
}
.media-wrapper iframe, .media-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
}
.video-meta {
    padding: 24px;
    background: #121624;
}
.video-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
}
.btn-action {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-action:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

/* Comments Section */
.comments-container {
    background: #0d101b;
    border-left: 1px solid var(--border-glass);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.add-comment-box {
    display: flex;
    gap: 8px;
}
.add-comment-box input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-main);
    outline: none;
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 400px;
    overflow-y: auto;
}
.comment-item {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
}
.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    object-fit: cover;
}
.comment-author { font-weight: 700; color: var(--text-main); }
.comment-text { color: var(--text-muted); margin-top: 2px; }

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    font-weight: 600;
}
