:root {
    --bg-main: #ecfdf5;
    --card-bg: #ffffff;
    --bg-black: #111827;
    --bg-dark: #1f2937;
    --bg-hover: #d1fae5;

    --primary-color: #22c55e;  /* Leaf Green */
    --primary-hover: #16a34a;
    --secondary-color: #22c55e; /* Green */

    --text-dark: #111827;
    --text-white: #ffffff;
    --text-gray: #6b7280;
    --text-mint: #98ff98;

    --sidebar-width: 240px;
    --player-height: 90px;
    --header-height: 64px;
    --border-radius: 8px;
    --transition: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    box-shadow: none !important;
    text-shadow: none !important;
}

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    background: #ecfdf5;
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--player-height));
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    margin-bottom: 24px;
}

.logo i {
    font-size: 28px;
    color: var(--primary-color);
}

.logo span {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--primary-color);
}

.nav-menu {
    margin-bottom: 24px;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    color: #6b7280;
}

.nav-menu li a:hover {
    color: #111827;
}

.nav-menu li.active a {
    color: #111827;
    background: #f1f5f9 !important;
}

.nav-menu li i {
    font-size: 20px;
}

.playlists-section {
    padding: 12px;
    border-top: 1px solid var(--bg-light);
    padding-top: 16px;
}

.playlists-section h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.playlists li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 14px;
    transition: var(--transition);
}

.playlists li a:hover {
    color: var(--text-white);
}

.playlists li i {
    font-size: 18px;
}

.playlist-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.playlist-items ul li {
    padding: 8px 0;
}

.playlist-items ul li a {
    color: var(--text-gray);
    font-size: 14px;
    transition: var(--transition);
}

.playlist-items ul li a:hover {
    color: var(--text-white);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0 32px;
    padding-bottom: var(--player-height);
    min-height: 100vh;
    background: transparent !important;
}

/* Header / Top Bar */
.top-bar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    z-index: 50;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
    margin: 0 -32px;
    padding-left: 32px;
    padding-right: 32px;
}

.nav-arrows {
    display: flex;
    gap: 8px;
}

.nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #111827;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.login-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.08);
}

.upgrade-btn {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.upgrade-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: scale(1.02);
}

.notification-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.notification-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    background: #f1f5f9;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: white;
}

.user-profile span {
    font-size: 13px;
    font-weight: 600;
    padding-right: 8px;
}

/* Hero Section */
.hero {
    margin: 16px 0 32px;
}

h1, h2, h3 {
    text-shadow: none;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

/* Music Card */
.music-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 10px;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
}

.music-card:hover {
    background: #f1f5f9 !important;
    transform: translateY(-4px);
}

.music-card:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-image {
    position: relative;
    margin-bottom: 16px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.card-play-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-play-btn:hover {
    background: var(--primary-hover, #1d4ed8);
    transform: scale(1.08) translateY(0) !important;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111827;
}

.card-subtitle {
    font-size: 14px;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Artist Card */
.artist-card {
    text-align: center;
    padding: 16px;
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: 0.3s;
    cursor: pointer;
}

.artist-card:hover {
    background: #f1f5f9 !important;
    transform: translateY(-3px);
}

.artist-card .card-image {
    border-radius: 50%;
    margin-bottom: 16px;
}

.artist-card .card-image img {
    aspect-ratio: 1;
    border-radius: 50%;
}

.artist-card .card-title {
    text-align: center;
}

.artist-card .card-subtitle {
    text-align: center;
}

/* ====================================
   PROFILE PAGE STYLES
   ==================================== */

/* Profile Page Container */
.profile-page {
    display: none;
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    bottom: var(--player-height);
    background: var(--bg-main) !important;
    overflow-y: auto;
    z-index: 200;
    animation: fadeInProfile 0.4s ease;
}

@keyframes fadeInProfile {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-page.active {
    display: block;
}

/* Profile Header */
.profile-header {
    position: relative;
    padding: 0;
    margin-bottom: 24px;
}

.back-btn {
    position: absolute;
    top: 16px;
    left: 32px;
    background: var(--primary-color) !important;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: var(--primary-hover) !important;
    transform: scale(1.05);
}

/* Empty State Message */
.empty-message {
    color: var(--text-gray);
    font-size: 14px;
    padding: 20px;
    text-align: center;
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    grid-column: 1 / -1;
}

.profile-banner {
    height: 200px;
    background: linear-gradient(135deg, #f97316, #facc15);
    position: relative;
    overflow: hidden;
}

.profile-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.profile-info {
    display: flex;
    align-items: flex-end;
    gap: 32px;
    padding: 0 32px;
    margin-top: -80px;
    position: relative;
    z-index: 5;
}

.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid rgba(255,255,255,0.2);
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: none;
}

.profile-avatar-fallback {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid rgba(255,255,255,0.2);
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.profile-avatar.has-image {
    display: block;
}

.profile-avatar-fallback.hidden {
    display: none;
}

.profile-details {
    padding-bottom: 16px;
    flex: 1;
}

.profile-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-username {
    font-size: 48px;
    font-weight: 800;
    margin: 8px 0;
    line-height: 1.1;
}

.profile-email {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.profile-join-date {
    font-size: 14px;
    color: var(--text-gray-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.edit-profile-btn, .logout-btn {
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-profile-btn {
    background: var(--text-white);
    color: var(--bg-black);
    border: none;
}

.edit-profile-btn:hover {
    transform: scale(1.05);
    background: var(--text-gray);
}

.logout-btn {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--text-gray);
}

.logout-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 32px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(15px);
    padding: 24px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-card:hover {
    transform: none;
    background: #f1f5f9 !important;
}

.stat-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

/* Profile Content */
.profile-content {
    padding: 0 32px 32px;
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-section h2 i {
    color: var(--primary-color);
}

.profile-songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.profile-songs-grid .music-card {
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(15px);
}

.profile-songs-grid .music-card:hover {
    background: #f1f5f9 !important;
    transform: translateY(-3px);
}

/* Edit Profile Modal */
.edit-profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 197, 94, 0.5) !important;
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.edit-profile-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.edit-profile-content {
    background: #ffffff !important;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edit-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--bg-light);
    background: rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(10px);
}

.edit-profile-header h2 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-profile-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
}

.edit-profile-close:hover {
    background: var(--bg-hover);
    color: var(--text-white);
}

.edit-profile-body {
    padding: 24px;
    background: rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(10px);
}

.edit-avatar-section {
    text-align: center;
    margin-bottom: 24px;
}

.edit-avatar-container {
    position: relative;
    display: inline-block;
}

.edit-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: none;
}

.edit-avatar-fallback {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: var(--text-white);
}

.edit-avatar-preview.has-image {
    display: block;
}

.edit-avatar-fallback.hidden {
    display: none;
}

.edit-avatar-hint {
    font-size: 12px;
    color: var(--text-gray-dark);
    margin-top: 12px;
}

.edit-profile-body .form-group {
    margin-bottom: 20px;
}

.edit-profile-body label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-gray);
}

.edit-profile-body .auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--bg-light);
    border-radius: 8px;
    background: rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(10px);
    color: var(--text-white);
    font-size: 14px;
    transition: var(--transition);
}

.edit-profile-body .auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.edit-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.save-profile-btn {
    width: 100%;
    padding: 14px;
    background: #f97316;
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.save-profile-btn:hover {
    opacity: 0.9;
    transform: scale(1.08);
}

.save-profile-btn:disabled {
    background: var(--text-gray-dark);
    cursor: not-allowed;
    transform: none;
}

/* Genre Card */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.genre-card {
    padding: 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.genre-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.genre-card:hover {
    transform: scale(1.02);
}

.genre-card h3 {
    font-size: 22px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.genre-card.electronic { background: linear-gradient(135deg, #8c67ac 0%, #4a2c7a 100%); }
.genre-card.pop { background: linear-gradient(135deg, #477d95 0%, #1e3a4c 100%); }
.genre-card.hiphop { background: linear-gradient(135deg, #8b3a62 0%, #4a1a35 100%); }
.genre-card.rock { background: linear-gradient(135deg, #ba5d31 0%, #6b3418 100%); }
.genre-card.jazz { background: linear-gradient(135deg, #234d70 0%, #102a40 100%); }
.genre-card.classical { background: linear-gradient(135deg, #5d4d7a 0%, #342845 100%); }
.genre-card.indie { background: linear-gradient(135deg, #6d8a6d 0%, #3d4d3d 100%); }
.genre-card.rnb { background: linear-gradient(135deg, #7a4d6d 0%, #44283d 100%); }

/* Bottom Spacer */
.bottom-spacer {
    height: 80px;
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 200;
}

.player-left {
    flex: 1;
    min-width: 180px;
    max-width: 30%;
}

.current-track {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-track .track-art {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.track-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-white);
}

.artist-name {
    font-size: 12px;
    color: var(--text-gray);
}

.like-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    padding: 8px;
}

.like-btn:hover {
    color: var(--primary-color);
}

/* Player Center */
.player-center {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 720px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    padding: 4px;
}

.control-btn:hover {
    color: var(--text-white);
}

.control-btn.active {
    color: var(--primary-color);
}

.play-pause {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause:hover {
    transform: scale(1.08);
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.time {
    font-size: 11px;
    color: #6b7280;
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--text-gray-dark);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar:hover {
    height: 5px;
}

.progress-bar:hover .progress {
    background: #f97316;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    position: relative;
    transition: width 0.1s linear;
}

.progress-bar:hover .progress::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-white);
}

/* Player Right */
.player-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 180px;
    max-width: 30%;
}

.volume-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
    transition: var(--transition);
}

.volume-btn:hover {
    color: var(--text-white);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-control i {
    color: var(--text-gray);
    font-size: 14px;
}

.volume-bar {
    width: 100px;
    height: 4px;
    background: var(--text-gray-dark);
    border-radius: 2px;
    cursor: pointer;
}

.volume-level {
    height: 100%;
    background: var(--text-white);
    border-radius: 2px;
    width: 70%;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 72px;
        padding: 24px 8px;
    }
    
    .logo span,
    .nav-menu li a span,
    .playlists-section,
    .playlist-items {
        display: none;
    }
    
    .nav-menu li a {
        justify-content: center;
        padding: 12px;
    }
    
    .sidebar .logo {
        justify-content: center;
    }
    
    .main-content {
        margin-left: 72px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .player-right {
        display: none;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .genre-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .upgrade-btn {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .section h2 {
        font-size: 20px;
    }
}

/* Login/Register Modal */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #22c55e;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
}

.login-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: slideUp 0.5s ease;
    position: relative;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.login-modal-close:hover {
    color: var(--text-dark);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.login-logo span {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary-color);
}

/* Auth Toggle Buttons */
.auth-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f0fdf4 !important;
    padding: 4px;
    border-radius: 30px;
}

.toggle-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
    border-radius: 26px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
}

.toggle-btn:hover:not(.active) {
    color: var(--primary-color);
}

/* Auth Forms */
.auth-form h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.auth-subtitle {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff !important;
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--transition);
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.auth-submit-btn:disabled {
    background: var(--text-gray);
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    margin-top: 20px;
    color: var(--text-gray);
    font-size: 13px;
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.auth-switch a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-error {
    margin-top: 16px;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 13px;
    display: none;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.auth-error.show {
    display: flex;
}

/* Google Login Button */
.google-login-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.google-login-btn {
    width: 100%;
    padding: 12px 20px;
    background: white;
    color: #333;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.google-login-btn:hover {
    background: #f9fafb;
    transform: scale(1.02);
}

.google-login-btn:active {
    transform: scale(0.98);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Guest Login Button */
.guest-login-container {
    margin-top: 12px;
}

.guest-login-btn {
    width: 100%;
    padding: 12px 20px;
    background: #ecfdf5;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.guest-login-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.02);
}

.guest-login-btn:active {
    transform: scale(0.98);
}

/* Add to Playlist Button */
.add-to-playlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    font-size: 12px;
}

.music-card:hover .add-to-playlist-btn {
    opacity: 1;
}

.add-to-playlist-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Playlist View Section */
.playlist-view-section {
    display: none;
    padding: 24px;
}

.playlist-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.playlist-header .back-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-light);
    transition: all 0.2s ease;
}

.playlist-header .back-btn:hover {
    background: var(--bg-lighter);
}

.playlist-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.playlist-cover {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f97316, #facc15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: white;
}

.playlist-details h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.playlist-details p {
    font-size: 16px;
    color: var(--text-secondary);
}

.delete-playlist-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-playlist-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.playlist-songs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playlist-song-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.playlist-song-item:hover {
    background: var(--bg-light);
}

.song-number {
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.playlist-song-item .song-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    cursor: pointer;
}

.song-thumb {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
}

.song-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.playlist-song-item .song-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.playlist-song-item .song-artist {
    font-size: 14px;
    color: var(--text-secondary);
}

.remove-song-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 14px;
}

.remove-song-btn:hover {
    background: #dc2626;
    color: white;
}

/* Playing song highlight */
.music-card.playing {
    background: var(--primary-color) !important;
}

.music-card.playing .card-title,
.music-card.playing .card-subtitle {
    color: white !important;
}

.playlist-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: auto;
}

.empty-playlist {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 0;
}

/* User Profile - Updated */
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-dark-secondary);
}

/* Main Content Toggle for Profile */
.main-content.hidden {
    display: none;
}

/* ====================================
   RESPONSIVE STYLES
   ==================================== */

@media (max-width: 1024px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-avatar-container {
        margin-top: -90px;
    }
    
    .profile-avatar, .profile-avatar-fallback {
        width: 140px;
        height: 140px;
        font-size: 56px;
    }
    
    .profile-details {
        padding-bottom: 0;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .profile-username {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .profile-page {
        left: 0;
    }
    
    .profile-banner {
        height: 150px;
    }
    
    .profile-info {
        padding: 0 16px;
    }
    
    .profile-avatar, .profile-avatar-fallback {
        width: 120px;
        height: 120px;
        font-size: 48px;
    }
    
    .profile-avatar-container {
        margin-top: -60px;
    }
    
    .profile-username {
        font-size: 28px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .profile-content {
        padding: 0 16px 16px;
    }
    
    .profile-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .edit-profile-btn, .logout-btn {
        width: 100%;
        justify-content: center;
    }
    
    .profile-songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .profile-avatar, .profile-avatar-fallback {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .profile-username {
        font-size: 24px;
    }
    
    .profile-email, .profile-join-date {
        font-size: 12px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card i {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .back-btn {
        left: 16px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

.user-profile:hover {
    background: var(--bg-hover);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: white;
    text-transform: uppercase;
}

.user-profile span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
}

/* Upload Section in Sidebar */
.upload-section {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--bg-hover);
}

.upload-btn {
    width: 100%;
    padding: 12px 16px;
    background: var(--secondary-color);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

.upload-btn:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

/* Upload Modal */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 197, 94, 0.5) !important;
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.upload-modal.active {
    opacity: 1;
    visibility: visible;
}

.upload-modal-content {
    background: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.upload-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05) !important;
}

.upload-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-modal-header h2 i {
    color: var(--primary-color);
}

.upload-modal-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.upload-modal-close:hover {
    background: var(--bg-hover);
    color: white;
}

.upload-modal-body {
    padding: 24px;
    background: rgba(255,255,255,0.05) !important;
}

.upload-instructions {
    color: var(--text-gray);
    margin-bottom: 16px;
    font-size: 14px;
}

.youtube-links-input {
    width: 100%;
    height: 150px;
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--bg-hover);
    border-radius: var(--border-radius);
    color: white;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 16px;
}

.youtube-links-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.youtube-links-input::placeholder {
    color: var(--text-gray-dark);
}

.upload-options {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.upload-options label {
    color: var(--text-gray);
    font-size: 14px;
}

.language-select {
    padding: 10px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--bg-hover);
    border-radius: var(--border-radius);
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.language-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.upload-predefined {
    background: rgba(255,255,255,0.05) !important;
    padding: 16px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.upload-predefined h4 {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.predefined-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.predefined-btn {
    padding: 6px 12px;
    background: var(--bg-hover);
    border: none;
    border-radius: 20px;
    color: var(--text-gray);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.predefined-btn:hover {
    background: var(--primary-color);
    color: white;
}

.add-all-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px dashed var(--text-gray-dark);
    border-radius: var(--border-radius);
    color: var(--text-gray);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-all-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.upload-progress {
    background: rgba(255,255,255,0.05) !important;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-gray);
}

.progress-info i {
    color: var(--primary-color);
}

.progress-bar-wrapper {
    height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-upload {
    height: 100%;
    background: var(--gradient-main);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-bar-upload.active {
    animation: progressAnimation 1.5s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.upload-results {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.upload-results h4 {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.upload-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.upload-result-item.success {
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.upload-result-item.success i {
    color: var(--primary-color);
}

.upload-result-item.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.upload-result-item.error i {
    color: #ff4444;
}

.result-link {
    color: var(--text-gray);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-message {
    color: var(--text-gray-dark);
    font-size: 12px;
}

.result-title {
    color: var(--primary-color);
    font-weight: 500;
}

.upload-submit-btn {
    width: 100%;
    padding: 16px;
    background: #f97316;
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}

.upload-submit-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: scale(1.08);
}

.upload-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Card Duration */
.card-duration {
    font-size: 12px;
    color: var(--text-gray-dark);
    margin-top: 4px;
}

/* Uploaded Section Icon */
#uploadedSection h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

#uploadedSection h2 i {
    color: #ff0000;
}

/* Delete Button for Uploaded Songs */
.uploaded-song-card {
    position: relative;
}

.delete-song-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    color: #ff4444;
}

.music-card:hover .delete-song-btn {
    opacity: 1;
}

.delete-song-btn:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

/* Notification Toast Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Responsive Upload Modal */
@media (max-width: 640px) {
    .upload-modal-content {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
    
    .upload-modal-header {
        padding: 16px;
    }
    
    .upload-modal-body {
        padding: 16px;
    }
    
    .predefined-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}
