/* 2026 Copyrighted by tienanh109 */
:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --success: #10b981;
    --error: #ef4444;
    --bg: #0f172a;
    --surface: rgba(30, 41, 59, 0.7);
    --border: rgba(148, 163, 184, 0.1);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

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

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 10;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #a855f7;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.1);
    }
}

.header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.logo-icon {
    font-size: 3rem;
    color: var(--primary);
}

.gradient-text {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

.upload-section {
    margin-bottom: 3rem;
}

.drop-zone {
    background: var(--surface);
    border: 2px dashed var(--glass-border);
    border-radius: 2rem;
    padding: 4.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 40px var(--primary-glow);
}

.drop-zone-content {
    position: relative;
    z-index: 2;
}

.icon-stack {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.drop-zone h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.drop-zone p {
    color: var(--text-muted);
}

.formats-info {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.process-section {
    background: var(--surface);
    border-radius: 2rem;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    animation: slideUp 0.5s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.file-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.file-list::-webkit-scrollbar {
    width: 6px;
}

.file-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.file-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 80px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.file-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-icon {
    font-size: 1.25rem;
}

.status-icon.success {
    color: var(--success);
}

.status-icon.error {
    color: var(--error);
}

.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.result-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.hidden {
    display: none !important;
}

.spinner {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.download-single-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.download-single-btn:hover {
    background: rgba(99, 102, 241, 0.1);
}

.footer {
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.credits-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.credits-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.heart-icon {
    font-size: 3.5rem;
    color: #ff4757;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255, 71, 87, 0.4));
}

.modal-header h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #a855f7 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.credit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credit-item .label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.credit-item .value {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.credit-divider {
    height: 1px;
    background: var(--glass-border);
}

.love-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-col-full {
    grid-column: span 2;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-field {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    background: rgba(255, 255, 255, 0.06);
}

.textarea-field {
    resize: vertical;
    min-height: 120px;
}

.artwork-drop-zone {
    width: 100%;
    height: 240px;
    border: 2px dashed var(--glass-border);
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--glass-bg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-drop-zone:hover,
.artwork-drop-zone.drag-over {
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
    background: rgba(99, 102, 241, 0.05);
}

.artwork-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    position: relative;
}

.artwork-icon {
    font-size: 3rem;
    color: var(--primary);
}

.artwork-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 1.25rem;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.player-container {
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(15, 23, 42, 0.6));
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.player-container:hover {
    border-color: var(--primary-glow);
}

.player-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.player-disc {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: #1e293b;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    animation: spinDisc 10s linear infinite;
    animation-play-state: paused;
}

.player-disc.playing {
    animation-play-state: running;
}

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

.disc-center {
    width: 25px;
    height: 25px;
    background: var(--bg);
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.player-controls-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.player-info {
    display: flex;
    flex-direction: column;
}

.player-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.play-pause-btn {
    width: 3.2rem;
    height: 3.2rem;
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 5px var(--primary-glow);
}

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.seek-bar-container {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.seek-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-col-full {
        grid-column: span 1;
    }

    .player-card {
        flex-direction: column;
        text-align: center;
    }

    .volume-control {
        margin-left: 0;
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }

    .player-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 2rem 1rem;
    }

    .gradient-text {
        font-size: 2.2rem;
    }

    .drop-zone {
        padding: 3rem 1rem;
    }

    .process-section {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        justify-content: center;
    }

    .file-item {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .file-name {
        font-size: 0.85rem;
        max-width: 140px;
    }

    .btn-lg {
        width: 100%;
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
}
/* 2026 Copyrighted by tienanh109 */
