/* Muzica Web Portal - Liquid Glass Design */

:root {
    --primary: #DA5DFF;
    --primary-dark: #B84DD6;
    --background: #0A0A0A;
    --surface: #1A1A1A;
    --surface-light: #2A2A2A;
    --glass-white: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --success: #34C759;
    --warning: #FF9500;
    --error: #FF3B30;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Screens */
.screen {
    display: none !important;
}

.screen.active {
    display: block !important;
}

/* Auth Screen - Animated Background */
#auth-screen.active {
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

/* Animated gradient overlay */
#auth-screen.active::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(218, 93, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 104, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(218, 93, 255, 0.08) 0%, transparent 40%);
    animation: gradientRotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating orbs container */
.auth-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Individual floating orbs */
.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: floatOrb linear infinite;
    opacity: 0;
}

.auth-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(218, 93, 255, 0.2) 0%, transparent 70%);
    left: -100px;
    animation-duration: 25s;
    animation-delay: 0s;
}

.auth-orb:nth-child(2) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(123, 104, 238, 0.25) 0%, transparent 70%);
    right: -50px;
    animation-duration: 20s;
    animation-delay: -5s;
}

.auth-orb:nth-child(3) {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(218, 93, 255, 0.15) 0%, transparent 70%);
    left: 30%;
    animation-duration: 30s;
    animation-delay: -10s;
}

.auth-orb:nth-child(4) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(184, 77, 214, 0.18) 0%, transparent 70%);
    right: 20%;
    animation-duration: 22s;
    animation-delay: -3s;
}

.auth-orb:nth-child(5) {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(218, 93, 255, 0.12) 0%, transparent 70%);
    left: 60%;
    animation-duration: 28s;
    animation-delay: -15s;
}

@keyframes floatOrb {
    0% {
        transform: translateY(100vh) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1.2);
        opacity: 0;
    }
}

/* Subtle pulsing glow behind the form */
.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 48px 32px;
    position: relative;
    z-index: 1;
    animation: subtlePulse 4s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(218, 93, 255, 0.1);
    }
    50% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 60px rgba(218, 93, 255, 0.2);
    }
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon .material-icons {
    font-size: 40px;
    color: white;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-logo-text {
    height: 36px;
    width: auto;
    object-fit: contain;
    margin-bottom: 4px;
}

.logo p {
    color: var(--text-secondary);
    font-size: 14px;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0 16px;
    transition: border-color 0.2s;
}

.input-group:focus-within {
    border-color: var(--primary);
}

.input-group .material-icons {
    color: var(--text-tertiary);
    font-size: 20px;
    margin-right: 12px;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 0;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.input-group input::placeholder {
    color: var(--text-tertiary);
}

/* Fix autofill background color */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--surface) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-group input:autofill {
    background-color: var(--surface) !important;
    color: var(--text-primary) !important;
}

.error-message {
    color: var(--error);
    font-size: 13px;
    text-align: center;
    min-height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.auth-divider span {
    color: var(--text-tertiary);
    font-size: 13px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--surface-light);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#signup-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--glass-white);
    color: var(--text-primary);
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* App Screen - No-scroll viewport layout */
#app-screen {
    height: 100vh;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#app-screen.active {
    display: flex;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    margin-bottom: 12px;
    border: 1px solid rgba(218, 93, 255, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(218, 93, 255, 0.05);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-small {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(218, 93, 255, 0.3);
    overflow: hidden;
}

.logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-brand .brand-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.header-brand .tagline {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--surface);
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.user-email {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Upload Header Button */
.upload-header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary);
    border: none;
    border-radius: 100px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-header-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(218, 93, 255, 0.4);
}

.upload-header-btn .material-icons {
    font-size: 20px;
}

@media (max-width: 600px) {
    .upload-header-btn .upload-btn-text {
        display: none;
    }

    .upload-header-btn {
        padding: 10px;
        border-radius: 50%;
    }
}

.logout-btn {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(255, 59, 48, 0.15);
    border-color: var(--error);
    color: var(--error);
}

.logout-btn .material-icons {
    font-size: 20px;
}

@media (max-width: 600px) {
    .header {
        padding: 12px 16px;
    }

    .user-email {
        display: none;
    }

    .user-info {
        padding: 8px;
    }

    .header-brand .tagline {
        display: none;
    }
}

/* Main Content */
/* Main Content - Flex to fill remaining space */
.main-content {
    display: grid;
    gap: 16px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.main-content.main-content-single {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Upload Modal */
.upload-modal-content {
    max-width: 500px;
}

.upload-modal-content .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-modal-content .modal-header h3 .material-icons {
    color: var(--primary);
}

/* Upload Section */
.upload-section {
    padding: 24px;
}

.upload-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.upload-section h3 .material-icons {
    color: var(--primary);
}

.drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(123, 104, 238, 0.1);
}

.drop-zone .material-icons {
    font-size: 48px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.drop-zone p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.drop-zone .or {
    display: block;
    color: var(--text-tertiary);
    font-size: 13px;
    margin: 8px 0;
}

/* Upload Queue */
.upload-queue {
    margin-top: 24px;
}

.upload-queue h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
}

.queue-item-info {
    flex: 1;
    min-width: 0;
}

.queue-item-title {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.queue-item-progress {
    width: 100px;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
}

.queue-item-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.2s;
}

.queue-item-status {
    font-size: 12px;
    min-width: 60px;
    text-align: right;
}

.queue-item-status.success { color: var(--success); }
.queue-item-status.error { color: var(--error); }
.queue-item-status.uploading { color: var(--primary); }

.queue-item-remove {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
}

.queue-item-remove:hover {
    color: var(--error);
}

.queue-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
}

/* Library Section */
.library-section {
    padding: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.section-header h3 .material-icons {
    color: var(--primary);
}

.library-stats {
    color: var(--text-secondary);
    font-size: 14px;
}

.library-list {
    max-height: 500px;
    overflow-y: auto;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px;
    color: var(--text-tertiary);
}

.library-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    cursor: default;
}

.library-item[draggable="true"] {
    cursor: grab;
}

.library-item.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.library-item.drag-over {
    background: rgba(218, 93, 255, 0.15);
    border: 1px dashed var(--primary);
}

/* Drag Handle */
.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    cursor: grab;
    padding: 4px;
    margin-left: -8px;
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
}

.drag-handle:hover {
    opacity: 1;
    color: var(--primary);
}

.drag-handle .material-icons {
    font-size: 20px;
}

.library-item:active .drag-handle {
    cursor: grabbing;
}

/* Turntable drop target */
.turntable-container.drop-target {
    outline: 3px dashed var(--primary);
    outline-offset: 8px;
}

.turntable-container.drop-target::before {
    content: 'Drop to play';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
    animation: pulse 1s ease-in-out infinite;
}

.library-item:hover {
    background: var(--surface);
}

.library-item .play-track {
    flex-shrink: 0;
}

.library-item .play-track .material-icons {
    font-size: 28px;
    color: var(--primary);
    transition: transform 0.2s;
}

.library-item .play-track:hover .material-icons {
    transform: scale(1.1);
}

.library-item-artwork {
    width: 48px;
    height: 48px;
    background: var(--surface);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.library-item-artwork .material-icons {
    color: var(--primary);
}

.library-item-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.library-item-info {
    flex: 1;
    min-width: 0;
}

.library-item-title {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library-item-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library-item-duration {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-right: 8px;
}

.library-item-actions {
    display: flex;
    gap: 4px;
}

.empty-state {
    text-align: center;
    padding: 48px;
    color: var(--text-tertiary);
}

.empty-state .material-icons {
    font-size: 48px;
    margin-bottom: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
}

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

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
}

.form-group select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-group select option {
    background: var(--surface);
    color: var(--text-primary);
}

/* Artwork Upload */
.artwork-upload-group {
    margin-bottom: 20px;
}

.artwork-upload-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.artwork-preview {
    width: 100px;
    height: 100px;
    background: var(--surface);
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.artwork-preview .material-icons {
    font-size: 32px;
    color: var(--text-tertiary);
}

.artwork-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-preview.has-image {
    border-style: solid;
    border-color: var(--primary);
}

.artwork-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-small {
    padding: 8px 12px !important;
    font-size: 12px !important;
}

.btn-small .material-icons {
    font-size: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Hero Section - Turntable Player */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.turntable-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.turntable-media {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Spinning vinyl overlay - positioned over the record */
.vinyl-spinner {
    position: absolute;
    width: 62%;
    height: 0;
    padding-bottom: 62%;
    left: 39%;
    top: 47.5%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vinyl-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background:
        /* Light reflection highlight that will spin */
        conic-gradient(
            from 0deg,
            transparent 0deg,
            rgba(255, 255, 255, 0.08) 15deg,
            transparent 30deg,
            transparent 90deg,
            rgba(255, 255, 255, 0.05) 100deg,
            transparent 115deg,
            transparent 180deg,
            rgba(255, 255, 255, 0.08) 195deg,
            transparent 210deg,
            transparent 270deg,
            rgba(255, 255, 255, 0.05) 280deg,
            transparent 295deg,
            transparent 360deg
        ),
        /* Vinyl grooves */
        radial-gradient(circle at center,
            transparent 18%,
            rgba(0, 0, 0, 0.3) 19%,
            transparent 20%,
            transparent 35%,
            rgba(0, 0, 0, 0.2) 36%,
            transparent 37%,
            transparent 52%,
            rgba(0, 0, 0, 0.2) 53%,
            transparent 54%,
            transparent 69%,
            rgba(0, 0, 0, 0.2) 70%,
            transparent 71%,
            transparent 86%,
            rgba(0, 0, 0, 0.15) 87%,
            transparent 88%
        );
    animation: none;
}

/* Glow effect behind turntable */
.turntable-glow {
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(218, 93, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

/* Playing state animations */
.turntable-container.playing .vinyl-spinner {
    opacity: 1;
}

.turntable-container.playing .vinyl-spinner::before {
    animation: spinVinyl 2s linear infinite;
}

.turntable-container.playing .turntable-glow {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes spinVinyl {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Vignette overlay to blend edges */
.turntable-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse 90% 90% at center 50%,
        transparent 45%,
        var(--background) 100%
    );
    pointer-events: none;
    z-index: 5;
}

.now-playing-info {
    margin-top: 16px;
    text-align: center;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.now-playing-info:hover {
    background: var(--glass-white);
}

.now-playing-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.playing-icon {
    font-size: 20px;
    color: var(--primary);
}

.playing-icon.spinning {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Playback Controls */
.playback-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.playback-btn {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.playback-btn:hover {
    background: var(--surface-light);
    color: var(--text-primary);
    border-color: var(--primary);
}

.playback-btn:active {
    transform: scale(0.95);
}

.play-pause-btn {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.play-pause-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 20px rgba(218, 93, 255, 0.4);
}

.play-pause-btn .material-icons {
    font-size: 32px;
}

.stop-btn {
    width: 44px;
    height: 44px;
}

.stop-btn .material-icons {
    font-size: 24px;
}

.stop-btn:hover {
    color: var(--error);
    border-color: var(--error);
}

.prev-btn,
.next-btn {
    width: 44px;
    height: 44px;
}

.prev-btn .material-icons,
.next-btn .material-icons {
    font-size: 28px;
}

.prev-btn:hover,
.next-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 10px auto 0;
    padding: 0 16px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.progress-container.active {
    opacity: 1;
}

.time-display {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.time-display:first-of-type {
    text-align: right;
}

.time-display:last-of-type {
    text-align: left;
}

.progress-bar-wrapper {
    flex: 1;
    position: relative;
    height: 6px;
    cursor: pointer;
}

.progress-bar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-border);
    border-radius: 3px;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-slider {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin: 0;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(218, 93, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    opacity: 0;
}

.progress-container:hover .progress-slider::-webkit-slider-thumb,
.progress-container.active .progress-slider::-webkit-slider-thumb {
    opacity: 1;
}

.progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 12px rgba(218, 93, 255, 0.6);
}

.progress-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(218, 93, 255, 0.4);
    opacity: 0;
}

.progress-container:hover .progress-slider::-moz-range-thumb,
.progress-container.active .progress-slider::-moz-range-thumb {
    opacity: 1;
}

.progress-slider::-moz-range-track {
    background: transparent;
    height: 6px;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding: 6px 14px;
    background: var(--surface);
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.volume-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.volume-btn:hover {
    color: var(--primary);
}

.volume-btn .material-icons {
    font-size: 24px;
}

.volume-slider-container {
    width: 100px;
    display: flex;
    align-items: center;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary);
}

.volume-slider::-moz-range-track {
    background: var(--glass-border);
    border-radius: 2px;
    height: 4px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .turntable-container {
        max-width: 360px;
    }
}

@media (max-width: 480px) {
    .turntable-container {
        max-width: 240px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: slideUp 0.3s ease-out;
    max-width: 400px;
}

.toast.success {
    border-color: var(--success);
    background: rgba(52, 199, 89, 0.1);
}

.toast.error {
    border-color: var(--error);
    background: rgba(255, 59, 48, 0.1);
}

.toast.info {
    border-color: var(--primary);
    background: rgba(123, 104, 238, 0.1);
}

.toast .material-icons {
    font-size: 20px;
}

.toast.success .material-icons {
    color: var(--success);
}

.toast.error .material-icons {
    color: var(--error);
}

.toast.info .material-icons {
    color: var(--primary);
}

.toast span {
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.hide {
    animation: slideDown 0.3s ease-in forwards;
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Footer */
/* Footer - Fixed at bottom */
.app-footer {
    margin-top: 12px;
    padding: 10px 16px;
    border-top: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    flex-shrink: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
}

.legal-link {
    font-size: 11px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-link:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}

.legal-separator {
    font-size: 10px;
    color: var(--text-tertiary);
    opacity: 0.5;
}

.dedication {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-credit {
    justify-self: end;
    font-size: 11px;
    color: var(--text-tertiary);
}

.footer-credit a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-credit a:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 500px) {
    .app-footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-legal {
        order: 2;
    }

    .dedication {
        order: 1;
    }

    .footer-credit {
        order: 3;
    }
}

.footer-logo {
    height: 16px;
    width: auto;
    object-fit: contain;
}

.monica-logo {
    height: 17px;
}

.dedication-text {
    font-size: 12px;
    color: var(--text-tertiary);
    font-style: italic;
    font-weight: 300;
}

.footer-heart {
    font-size: 14px;
    color: var(--primary);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
    60%, 100% { transform: scale(1); }
}

/* Profile Modal */
.profile-modal-content {
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Profile Sections */
.profile-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.profile-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.profile-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.optional-label {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-tertiary);
}

.input-hint {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.input-hint.char-count {
    text-align: right;
}

/* Social Input Styling */
.social-input label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-input label .material-icons {
    font-size: 18px;
    color: var(--text-tertiary);
}

/* Toggle Switch Styling */
.notification-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-item:hover {
    border-color: var(--primary);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.toggle-label .material-icons {
    font-size: 20px;
    color: var(--text-secondary);
}

.toggle-input {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--surface-light);
    border-radius: 12px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-tertiary);
    border-radius: 50%;
    transition: all 0.2s;
}

.toggle-input:checked + .toggle-switch {
    background: var(--primary);
}

.toggle-input:checked + .toggle-switch::after {
    left: 22px;
    background: white;
}

.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.profile-photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--glass-border);
}

.profile-photo-preview .material-icons {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-preview.has-photo {
    background: var(--surface);
}

.profile-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Categories Grid */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.category-chip:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.category-chip input[type="checkbox"] {
    display: none;
}

.category-chip:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Make user-info clickable */
.user-info {
    cursor: pointer;
    transition: all 0.2s;
}

.user-info:hover {
    background: var(--surface-light);
    border-color: var(--primary);
}

/* User display name styling */
.user-display-name {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email-small {
    display: none;
}

.user-info-text {
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .profile-modal-content {
        max-height: 90vh;
    }

    .profile-photo-section {
        flex-direction: column;
        text-align: center;
    }

    .categories-grid {
        justify-content: center;
    }

    .user-info-text {
        display: none;
    }
}

/* ==================== FLOWING MENU ==================== */

/* Library Section - Flex column to fill space */
.library-section {
    padding: 0;
    background: transparent;
    border: none;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.library-section .section-header {
    padding: 16px 24px;
    margin-bottom: 0;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.library-section .section-header .library-tabs {
    flex-shrink: 0;
}

.library-section .section-header .library-stats {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Library Tabs */
.library-tabs {
    display: flex;
    gap: 4px;
}

.library-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.library-tab:hover {
    background: var(--glass-white);
    color: var(--text-primary);
}

.library-tab.active {
    background: var(--primary);
    color: white;
}

.library-tab .material-icons {
    font-size: 18px;
}

@media (max-width: 700px) {
    .library-tabs {
        gap: 2px;
    }

    .library-tab {
        padding: 10px 14px;
        font-size: 12px;
    }

    .library-tab span:not(.material-icons) {
        display: none;
    }

    .library-tab .material-icons {
        font-size: 20px;
    }
}

/* Flowing Menu - Fills remaining space with internal scroll */
.flowing-menu {
    width: 100%;
    background: var(--surface);
    border-radius: 0 0 16px 16px;
    border: 1px solid var(--glass-border);
    border-top: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Density: Scrollable (10+ tracks) - now handled by flex layout */
.flowing-menu.density-scrollable {
    max-height: 500px;
    overflow-y: auto;
}

/* Custom scrollbar for density-scrollable */
.flowing-menu.density-scrollable::-webkit-scrollbar {
    width: 8px;
}

.flowing-menu.density-scrollable::-webkit-scrollbar-track {
    background: var(--surface-light);
    border-radius: 4px;
}

.flowing-menu.density-scrollable::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.flowing-menu.density-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.flowing-menu .loading-state,
.flowing-menu .empty-state {
    padding: 48px;
}

.menu-item {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
    cursor: pointer;
    transition: height 0.2s ease;
}

/* Compact density (6-10 tracks): reduced row height */
.flowing-menu.density-compact .menu-item {
    height: 64px;
}

/* Scrollable density (10+ tracks): also use compact rows */
.flowing-menu.density-scrollable .menu-item {
    height: 64px;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-link {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 0 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
}

.menu-item-link:hover {
    background: rgba(218, 93, 255, 0.05);
}

.menu-item-artwork {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--surface-light);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.2s ease, height 0.2s ease;
}

/* Compact artwork for density modes */
.flowing-menu.density-compact .menu-item-artwork,
.flowing-menu.density-scrollable .menu-item-artwork {
    width: 44px;
    height: 44px;
    border-radius: 6px;
}

.flowing-menu.density-compact .menu-item-artwork .material-icons,
.flowing-menu.density-scrollable .menu-item-artwork .material-icons {
    font-size: 22px;
}

.menu-item-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-artwork .material-icons {
    font-size: 28px;
    color: var(--primary);
}

.menu-item-info {
    flex: 1;
    min-width: 0;
}

.menu-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item-meta {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

.menu-item-duration {
    font-size: 13px;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
    margin-right: 8px;
}

.menu-item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.menu-item:hover .menu-item-actions {
    opacity: 1;
}

/* Like button */
.like-track {
    color: var(--text-tertiary);
    transition: all 0.2s;
}

.like-track:hover {
    color: #ff4d6d;
}

.like-track.liked {
    color: #ff4d6d;
}

.like-track.liked .material-icons {
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ==================== ARTISTS VIEW ==================== */

.artist-item {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
    cursor: pointer;
    transition: height 0.2s ease;
}

.artist-item:last-child {
    border-bottom: none;
}

/* Compact density for artists */
.flowing-menu.density-compact .artist-item,
.flowing-menu.density-scrollable .artist-item {
    height: 64px;
}

.artist-item-link {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 0 20px;
    color: var(--text-primary);
    transition: background 0.2s;
}

.artist-item-link:hover {
    background: rgba(218, 93, 255, 0.05);
}

.artist-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.2s ease, height 0.2s ease;
}

/* Compact avatar for density modes */
.flowing-menu.density-compact .artist-avatar,
.flowing-menu.density-scrollable .artist-avatar {
    width: 44px;
    height: 44px;
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-avatar .material-icons {
    font-size: 28px;
    color: white;
}

.flowing-menu.density-compact .artist-avatar .material-icons,
.flowing-menu.density-scrollable .artist-avatar .material-icons {
    font-size: 22px;
}

.artist-info {
    flex: 1;
    min-width: 0;
}

.artist-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-track-count {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.artist-chevron {
    color: var(--text-tertiary);
    font-size: 24px;
    transition: transform 0.2s;
}

.artist-item:hover .artist-chevron {
    transform: translateX(4px);
    color: var(--primary);
}

/* Artist detail view header */
.artist-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.artist-back-btn:hover {
    background: var(--glass-white);
    color: var(--primary);
}

.artist-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.artist-header-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Marquee overlay on hover */
.menu-marquee {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(101%);
    background: var(--primary);
    z-index: 10;
}

.menu-marquee-inner-wrap {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.menu-marquee-inner {
    display: flex;
    align-items: center;
    height: 100%;
    width: fit-content;
    will-change: transform;
}

.menu-marquee-part {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
    padding: 0 2vw;
}

.menu-marquee-part span {
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 18px;
    color: white;
    letter-spacing: 1px;
}

.menu-marquee-img {
    width: 50px;
    height: 50px;
    margin: 0 1.5vw;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* Playing state indicator */
.menu-item.playing {
    background: rgba(218, 93, 255, 0.1);
}

.menu-item.playing .menu-item-title {
    color: var(--primary);
}

.menu-item.playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

/* Drag states for flowing menu */
.menu-item.dragging {
    opacity: 0.5;
}

.menu-item.drag-over {
    background: rgba(218, 93, 255, 0.15);
    border-top: 2px solid var(--primary);
}

/* ==================== SETTINGS MODAL ==================== */

.settings-modal-content {
    max-width: 400px;
}

/* ==================== SECURITY MODAL ==================== */

.security-modal-content {
    max-width: 420px;
}

.security-modal-content .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-modal-content .modal-header h3 .material-icons {
    color: var(--primary);
}

.security-section {
    margin-bottom: 20px;
}

.security-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.security-hint {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

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

.toggle-password .material-icons {
    font-size: 20px;
}

/* ==================== DOCUMENT VIEWER MODAL ==================== */

.document-viewer-content {
    max-width: 90vw;
    max-height: 90vh;
    width: 700px;
    display: flex;
    flex-direction: column;
}

.document-viewer-content .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.document-viewer-content .modal-header h3 .material-icons {
    color: var(--primary);
}

.document-viewer-body {
    flex: 1;
    min-height: 400px;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
}

.document-viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-viewer-iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 12px;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    text-align: left;
}

.settings-item:hover {
    background: var(--surface-light);
    border-color: var(--primary);
}

.settings-item .material-icons {
    font-size: 24px;
    color: var(--text-secondary);
}

.verification-badge {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.verification-badge.verified {
    background: rgba(52, 199, 89, 0.2);
    color: var(--success);
}

.verification-badge.pending {
    background: rgba(255, 149, 0, 0.2);
    color: var(--warning);
}

.verification-badge.rejected {
    background: rgba(255, 59, 48, 0.2);
    color: var(--error);
}

/* ==================== ADMIN MODAL ==================== */

.admin-modal-content {
    max-width: 700px;
    max-height: 80vh;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.admin-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.stat-card .material-icons {
    font-size: 32px;
    color: var(--primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Pending Items List */
.pending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.pending-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.pending-item-info {
    flex: 1;
    min-width: 0;
}

.pending-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pending-item-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.view-id-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.view-id-link:hover {
    text-decoration: underline;
}

.pending-item-actions {
    display: flex;
    gap: 8px;
}

.btn-approve,
.btn-reject {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-approve {
    background: rgba(52, 199, 89, 0.2);
    color: var(--success);
}

.btn-approve:hover {
    background: var(--success);
    color: white;
}

.btn-reject {
    background: rgba(255, 59, 48, 0.2);
    color: var(--error);
}

.btn-reject:hover {
    background: var(--error);
    color: white;
}

.btn-approve .material-icons,
.btn-reject .material-icons {
    font-size: 18px;
}

/* ==================== VERIFICATION MODAL ==================== */

.verification-modal-content {
    max-width: 500px;
    border: 2px solid rgba(218, 93, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(218, 93, 255, 0.1);
}

.verification-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px;
}

.verification-status .material-icons {
    font-size: 64px;
    margin-bottom: 16px;
}

.verification-status h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.verification-status p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.verification-status.verified .material-icons,
.verification-status.verified h3 {
    color: var(--success);
}

.verification-status.pending .material-icons,
.verification-status.pending h3 {
    color: var(--warning);
}

.verification-status.rejected .material-icons,
.verification-status.rejected h3 {
    color: var(--error);
}

.verification-form {
    padding: 8px 0;
}

.verification-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    background: var(--surface);
    border-radius: 16px;
    margin-bottom: 24px;
}

.verification-info .material-icons {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}

.verification-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.verification-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.upload-id-section {
    margin-bottom: 24px;
}

.upload-id-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-id-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.id-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.id-upload-zone:hover,
.id-upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(218, 93, 255, 0.05);
}

.id-upload-zone .material-icons {
    font-size: 48px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.id-upload-zone p {
    color: var(--text-secondary);
    font-size: 14px;
}

.id-preview {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.id-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

.id-preview .remove-id {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--error);
    color: white;
    border-radius: 50%;
}

.pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    background: var(--surface);
}

.pdf-preview .material-icons {
    font-size: 48px;
    color: var(--error);
}

.pdf-preview .pdf-filename {
    font-size: 14px;
    color: var(--text-secondary);
    word-break: break-all;
    text-align: center;
}

.privacy-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 24px;
}

.privacy-notice .material-icons {
    font-size: 20px;
    color: var(--text-tertiary);
}

.privacy-notice span {
    font-size: 13px;
    color: var(--text-secondary);
}

#submit-verification,
#retry-verification {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* Header Actions Layout */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#settings-btn {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#settings-btn:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    color: var(--primary);
}

#settings-btn .material-icons {
    font-size: 20px;
}

/* Modal header h2 styling */
.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

/* ==================== STORAGE & BILLING UI ==================== */

/* Storage Widget in Header */
.storage-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
}

.storage-widget:hover {
    background: var(--surface-light);
    border-color: var(--primary);
}

.storage-widget-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.storage-plan-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--glass-white);
    color: var(--text-secondary);
}

.storage-plan-badge.plus {
    background: rgba(52, 199, 89, 0.2);
    color: var(--success);
}

.storage-plan-badge.pro {
    background: rgba(218, 93, 255, 0.2);
    color: var(--primary);
}

.storage-plan-badge.max {
    background: rgba(255, 149, 0, 0.2);
    color: var(--warning);
}

.storage-usage-text {
    font-size: 11px;
    color: var(--text-tertiary);
}

.storage-progress-mini {
    width: 60px;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
}

.storage-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.storage-progress-fill.warning {
    background: linear-gradient(90deg, var(--warning), #ff7b00);
}

.storage-progress-fill.critical {
    background: linear-gradient(90deg, var(--error), #cc0000);
}

@media (max-width: 700px) {
    .storage-widget {
        display: none;
    }
}

/* Billing Modal */
.billing-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.billing-modal-content .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.billing-modal-content .modal-header h3 .material-icons {
    color: var(--primary);
}

/* Current Plan Section */
.current-plan-section {
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 24px;
}

.current-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.current-plan-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-plan-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-plan-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.current-plan-name.plus {
    color: var(--success);
}

.current-plan-name.pro {
    color: var(--primary);
}

.current-plan-name.max {
    color: var(--warning);
}

/* Storage Usage Section */
.storage-usage-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.storage-usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.storage-usage-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.storage-usage-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.storage-progress-bar {
    height: 8px;
    background: var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
}

.storage-progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.storage-progress-fill-large.warning {
    background: linear-gradient(90deg, var(--warning), #ff7b00);
}

.storage-progress-fill-large.critical {
    background: linear-gradient(90deg, var(--error), #cc0000);
}

.storage-remaining {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Plan Cards Section */
.plan-cards-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.plan-card {
    position: relative;
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.2s;
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.plan-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(218, 93, 255, 0.2);
}

.plan-card.current {
    border-color: var(--success);
    background: rgba(52, 199, 89, 0.05);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    white-space: nowrap;
}

.plan-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-storage {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-currency {
    font-size: 14px;
    color: var(--text-secondary);
}

.price-period {
    font-size: 13px;
    color: var(--text-tertiary);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.plan-features li .material-icons {
    font-size: 16px;
    color: var(--success);
}

.plan-upgrade-btn {
    width: 100%;
    padding: 12px;
}

.plan-upgrade-btn:disabled {
    background: var(--surface-light);
    border: 1px solid var(--glass-border);
    color: var(--text-tertiary);
    cursor: default;
}

.plan-card.current .plan-upgrade-btn {
    background: var(--success);
    cursor: default;
}

/* Checkout Loading Overlay */
.checkout-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 10;
}

.checkout-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-primary);
}

.checkout-loading-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.loading-spinner.large {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

/* Quota Warning Modal */
.quota-warning-content {
    max-width: 420px;
    text-align: center;
}

.quota-warning-content .modal-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quota-warning-content .warning-icon {
    color: var(--warning);
}

.quota-warning-body {
    padding: 24px 0;
}

.quota-warning-body p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quota-warning-stats {
    display: flex;
    justify-content: center;
}

.quota-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--surface);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--error);
}

.quota-stat .material-icons {
    font-size: 20px;
}

.quota-warning-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.quota-warning-actions .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quota-warning-actions .btn-primary .material-icons {
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .billing-modal-content {
        max-height: 95vh;
        padding: 16px;
    }

    .plan-cards {
        grid-template-columns: 1fr;
    }

    .current-plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
