:root {
    --primary: #d1b3ff;
    /* Pastel Purple */
    --primary-glow: rgba(209, 179, 255, 0.4);
    --bg-dark: #1a1526;
    /* Deep Purple-Night */
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text-main: #f0e6ff;
    --text-dim: #c5b8d6;
    --success: #b2f0c1;
    --error: #ffb3b3;
}

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

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    font-size: 20px;
    /* Much larger baseline */
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(120px);
}

.blob {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    opacity: 0.25;
}

.blob-1 {
    background: #6a4c93;
    top: -150px;
    right: -150px;
    animation: move 20s infinite alternate;
}

.blob-2 {
    background: #4a306d;
    bottom: -150px;
    left: -150px;
    animation: move 25s infinite alternate-reverse;
}

.blob-3 {
    background: #8e7dbe;
    top: 35%;
    left: 45%;
    animation: move 15s infinite alternate;
}

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

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

/* App Container */
.app-container {
    width: 100%;
    max-width: 800px;
    padding: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 64px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    margin: 30px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Mascot */
.mascot-header {
    width: 320px;
    margin: 0 auto -40px auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: float 4s ease-in-out infinite;
    border-radius: 40px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

header {
    text-align: center;
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    /* Larger title */
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}

.accent-text {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 300;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(0, 120, 212, 0.05);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.icon-container svg {
    width: 42px;
    height: 42px;
    color: var(--primary);
    opacity: 0.8;
}

.drop-zone p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
}

.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-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass-border);
}

.btn-text {
    background: transparent;
    color: var(--text-dim);
    font-weight: 400;
    text-decoration: underline;
}

.btn-text:hover {
    color: var(--text-main);
}

/* Progress Section */
.progress-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.file-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.progress-wrapper {
    position: relative;
    height: 12px;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: var(--glass-border);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}

.progress-text {
    position: absolute;
    right: 0;
    top: -24px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.status-msg {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Results Section */
.results-section {
    text-align: center;
    background: rgba(40, 167, 69, 0.05);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 16px;
    padding: 24px;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rename-container {
    margin-bottom: 24px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 10px;
    font-weight: 600;
}

.radio-group {
    display: flex;
    gap: 24px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

.radio-label:hover {
    color: var(--text-main);
}

.radio-label input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.radio-label span {
    letter-spacing: -0.01em;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

#outFileName {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

#outFileName:focus {
    border-color: var(--primary);
}

.ext-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: monospace;
}

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

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

.results-section h3 {
    margin-bottom: 20px;
    color: var(--success);
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.download-card {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--glass-border);
}

.channel-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

/* Utils */
.hidden {
    display: none !important;
}

footer {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

footer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .app-container {
        padding: 24px;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }
}