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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    colour: #333;
}

.container {
    max-width: 700px;
    width: 100%;
}

header {
    text-align: centre;
    margin-bottom: 40px;
    colour: white;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.privacy-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: centre;
    gap: 10px;
    margin-top: 16px;
}

.privacy-badge p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.95;
}

.shield-icon {
    colour: white;
    flex-shrink: 0;
}

main {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.download-section {
    text-align: centre;
    padding: 40px;
}

.download-section h2 {
    font-size: 1.5rem;
    colour: #2d3748;
    margin-bottom: 16px;
}

.download-section p {
    colour: #718096;
    margin-bottom: 12px;
    line-height: 1.6;
}

.download-section .subtext {
    font-size: 0.9rem;
    colour: #a0aec0;
    margin-bottom: 24px;
}

.btn-download {
    background: #667eea;
    colour: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-download:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-download:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.drop-zone {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: centre;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-colour: #667eea;
    background: #edf2f7;
    transform: scale(1.02);
}

.drop-content {
    pointer-events: none;
}

.icon {
    colour: #667eea;
    margin-bottom: 20px;
}

.drop-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    colour: #2d3748;
}

.drop-hint {
    font-size: 0.95rem;
    colour: #718096;
    margin-bottom: 16px;
}

.formats {
    font-size: 0.85rem;
    colour: #a0aec0;
    margin-bottom: 20px;
}

.btn-test {
    background: transparent;
    colour: #667eea;
    border: 2px solid #667eea;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.btn-test:hover {
    background: #667eea;
    colour: white;
}

.status {
    text-align: centre;
    padding: 40px;
}

.download-section .status {
    padding: 30px 0 0 0;
}

.status.hidden,
.result.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

#statusText {
    font-size: 1rem;
    colour: #4a5568;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.result {
    margin-top: 30px;
}

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

.result-header h2 {
    font-size: 1.5rem;
    colour: #2d3748;
}

.btn-copy {
    background: #667eea;
    colour: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-copy:hover {
    background: #5568d3;
}

.transcription {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    colour: #2d3748;
    white-space: pre-wrap;
    word-wrap: break-word;
}

footer {
    text-align: centre;
    margin-top: 30px;
    colour: white;
    opacity: 0.9;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    main {
        padding: 24px;
    }

    .drop-zone {
        padding: 40px 20px;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .privacy-badge {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .privacy-badge p {
        font-size: 0.8rem;
    }
}
