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

:root {
    /* Music-themed color palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Neutral colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--gray-100);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--white);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--gray-100);
}

p {
    margin-bottom: var(--space-md);
    color: var(--gray-300);
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: var(--space-2xl);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Brand Icon */
.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.brand-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 44px;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-google {
    background: var(--white);
    color: var(--gray-700);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.btn-google:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-logout svg {
    width: 18px;
    height: 18px;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 102, 241, 0.1);
}

.profile-card {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
    border: 4px solid rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.profile-avatar:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.profile-info {
    margin-bottom: var(--space-lg);
}

.profile-info p {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.profile-info strong {
    color: var(--primary);
    font-weight: 600;
}

/* Music Collection Preview */
.music-collection-preview {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.collection-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Bio Section */
.bio-section {
    margin-bottom: var(--space-lg);
}

.bio-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.bio-header strong {
    color: var(--primary);
    font-weight: 600;
}

.btn-edit {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 1.2rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.btn-edit:hover {
    opacity: 1;
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.bio-content {
    text-align: center;
    margin-bottom: var(--space-md);
}

.bio-content p {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.bio-edit-form {
    margin-top: var(--space-md);
}

.bio-textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition);
}

.bio-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.bio-textarea::placeholder {
    color: var(--gray-400);
}

.bio-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-md);
}

.bio-actions .btn {
    min-width: 120px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-error {
    border-left: 4px solid var(--error);
}

.notification-info {
    border-left: 4px solid var(--primary);
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close svg {
    width: 16px;
    height: 16px;
}

.notification-close:hover {
    color: var(--white);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.login-header {
    margin-bottom: var(--space-2xl);
}

.login-title {
    margin-bottom: var(--space-md);
}

.login-subtitle {
    color: var(--gray-400);
    font-size: 1.1rem;
}

/* Music Museum Elements */
.music-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.music-note {
    position: absolute;
    color: rgba(99, 102, 241, 0.1);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    cursor: pointer;
    transition: var(--transition);
}

.music-note svg {
    width: 2rem;
    height: 2rem;
    color: rgba(99, 102, 241, 0.1);
    transition: var(--transition);
}

.music-note:hover {
    color: rgba(99, 102, 241, 0.3);
    transform: scale(1.2);
}

.music-note:hover svg {
    color: rgba(99, 102, 241, 0.3);
}

.music-note:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.music-note:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.music-note:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.music-note:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

/* Ripple Animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .nav-menu {
        gap: var(--space-md);
    }
    
    .card {
        padding: var(--space-lg);
    }
    
    .login-card {
        padding: var(--space-2xl);
        margin: var(--space-md);
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .collection-stats {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .stat-item {
        padding: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .bio-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .bio-actions .btn {
        min-width: 100%;
    }
    
    .notification {
        right: var(--space-sm);
        left: var(--space-sm);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: var(--space-md);
        font-size: 1rem;
    }
    
    .card {
        padding: var(--space-md);
    }
    
    .login-card {
        padding: var(--space-xl);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .collection-stats {
        gap: var(--space-xs);
    }
    
    .stat-item {
        padding: var(--space-xs);
    }
    
    .bio-textarea {
        min-height: 80px;
        padding: var(--space-sm);
    }
    
    .bio-header {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.text-white {
    color: var(--white);
}

.text-gray-400 {
    color: var(--gray-400);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Focus States */
.btn:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .btn,
    .music-elements {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Albums Management Styles */
.albums-management-section {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.albums-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.albums-header h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.25rem;
}

.add-album-btn {
    background: linear-gradient(135deg, var(--success) 0%, #059669) 100%;
    color: var(--white);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: var(--transition);
}

.add-album-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.add-album-btn svg {
    width: 18px;
    height: 18px;
}

/* Albums Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.album-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: var(--transition);
    position: relative;
}

.album-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.album-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.album-icon svg {
    width: 25px;
    height: 25px;
    color: var(--white);
}

.album-info {
    flex: 1;
}

.album-title {
    margin: 0 0 var(--space-xs) 0;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

.album-date {
    margin: 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.album-actions {
    display: flex;
    gap: var(--space-xs);
}

.album-action-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-action-btn:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.album-action-btn svg {
    width: 16px;
    height: 16px;
}

.no-albums {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--gray-400);
}

.no-albums svg {
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.no-albums p {
    font-size: 1.1rem;
    margin: 0;
}

/* Add Album Modal */
.add-album-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.add-album-modal.show {
    display: flex;
}

.add-album-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    max-width: 720px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

.add-album-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.add-album-header h3 {
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.add-album-header p {
    color: var(--gray-400);
    margin: 0;
}

.album-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.album-input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Album search suggestions */
.album-input-group { position: relative; }
.album-suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: rgba(15,23,42,0.98); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); margin-top: 6px; max-height: 320px; overflow: auto; box-shadow: var(--shadow-xl); }
.album-suggestion-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.album-suggestion-item:hover { background: rgba(255,255,255,0.06); }
.album-suggestion-cover { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; }
.album-suggestion-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-suggestion-info { flex: 1; min-width: 0; }
.album-suggestion-title { font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-suggestion-artist { font-size: .875rem; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-suggestion-select { background: none; border: none; color: var(--gray-300); display: flex; align-items: center; justify-content: center; }

.album-input-group label {
    color: var(--gray-300);
    font-weight: 500;
    font-size: 0.875rem;
}

.pseudo-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.pseudo-prefix {
    position: absolute;
    left: var(--space-md);
    color: var(--gray-400);
    font-weight: 600;
    z-index: 1;
}

#pseudoInput {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

#pseudoInput:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#pseudoInput::placeholder {
    color: var(--gray-500);
}

.feedback {
    min-height: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.feedback.available {
    color: var(--success);
}

.feedback.unavailable {
    color: var(--error);
}

.feedback.checking {
    color: var(--warning);
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.modal-actions .btn {
    min-width: 120px;
}

/* Responsive Design for Albums */
@media (max-width: 768px) {
    .albums-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .albums-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .album-card {
        padding: var(--space-md);
    }
    
    .album-icon {
        width: 40px;
        height: 40px;
    }
    
    .album-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .add-album-content {
        padding: var(--space-xl);
        margin: var(--space-md);
        max-width: 100%;
    }
    
    .album-modal-actions {
        flex-direction: column;
        justify-content: center;
        gap: var(--space-md);
    }
    
    .album-modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .albums-management-section {
        padding: var(--space-md);
    }
    
    .album-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .album-actions {
        justify-content: center;
    }
}

/* Profile Visibility Section */
.profile-visibility-section {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.visibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.visibility-header h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.25rem;
}

.visibility-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pseudo-display {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
}

.visibility-controls {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.switch-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-300);
    font-weight: 500;
}

.switch-label svg {
    width: 18px;
    height: 18px;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: var(--gray-400);
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: var(--white);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.modal-header h3 {
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.modal-header p {
    color: var(--gray-400);
    margin: 0;
}

.pseudo-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.input-group label {
    color: var(--gray-300);
    font-weight: 500;
    font-size: 0.875rem;
}

.pseudo-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.pseudo-prefix {
    position: absolute;
    left: var(--space-md);
    color: var(--gray-400);
    font-weight: 600;
    z-index: 1;
}

#pseudoInput {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

#pseudoInput:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#pseudoInput::placeholder {
    color: var(--gray-500);
}

.feedback {
    min-height: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.feedback.available {
    color: var(--success);
}

.feedback.unavailable {
    color: var(--error);
}

.feedback.checking {
    color: var(--warning);
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.modal-actions .btn {
    min-width: 120px;
}

/* Responsive Design for Profile Visibility */
@media (max-width: 768px) {
    .visibility-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .visibility-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .switch-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .modal-content {
        padding: var(--space-xl);
        margin: var(--space-md);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-visibility-section {
        padding: var(--space-md);
    }
    
    .switch {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}
