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

body {
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

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

.header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff0000, #8b0000, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.header p {
    font-size: 1.2rem;
    color: #cccccc;
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.upload-area {
    border: 3px dashed #ff0000;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 0, 0, 0.05);
}

.upload-area:hover {
    border-color: #ff4500;
    background: rgba(255, 69, 0, 0.1);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #ff4500;
    background: rgba(255, 69, 0, 0.2);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-area p {
    font-size: 1.1rem;
    color: #cccccc;
}

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

.controls-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #ff4500;
}

.music-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

#musicToggle {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid #ff0000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#musicToggle:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: scale(1.05);
}

.evil-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option:hover {
    background: rgba(255, 69, 0, 0.1);
    border-color: #ff4500;
}

.option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ff0000;
}

.option span {
    font-size: 1rem;
}

.randomize-btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff4500, #ff8c00);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.randomize-btn:hover {
    background: linear-gradient(45deg, #ff8c00, #ffa500);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.progress-container {
    margin-top: 2rem;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff0000, #ff4500);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    display: block;
    text-align: center;
    color: #ff4500;
    font-weight: bold;
    font-size: 1.1rem;
}

.convert-btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff0000, #8b0000);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.convert-btn:hover {
    background: linear-gradient(45deg, #ff4500, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.processing-section {
    text-align: center;
    margin-bottom: 3rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

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

#processingText {
    font-size: 1.2rem;
    color: #ff4500;
    animation: fade 2s infinite;
}

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

.result-section {
    text-align: center;
}

.result-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #ff4500;
}

.video-preview {
    margin-bottom: 2rem;
}

.video-preview video {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.download-btn, .reset-btn {
    padding: 1rem 2rem;
    margin: 0.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn {
    background: linear-gradient(45deg, #00ff00, #008000);
    color: white;
}

.download-btn:hover {
    background: linear-gradient(45deg, #32ff32, #00ff00);
    transform: translateY(-2px);
}

.reset-btn {
    background: linear-gradient(45deg, #666666, #333333);
    color: white;
}

.reset-btn:hover {
    background: linear-gradient(45deg, #888888, #666666);
    transform: translateY(-2px);
}

.skip-btn {
    display: block;
    margin: 1rem auto 0;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #666666, #333333);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skip-btn:hover {
    background: linear-gradient(45deg, #888888, #555555);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.converter-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.converter-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #ff0000;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.converter-option:hover {
    background: rgba(255, 69, 0, 0.1);
    border-color: #ff4500;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
}

.converter-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.converter-option h3 {
    color: #ff4500;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.converter-option p {
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.select-converter-btn {
    background: linear-gradient(45deg, #ff0000, #8b0000);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.select-converter-btn:hover {
    background: linear-gradient(45deg, #ff4500, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.converter-page {
    min-height: 100vh;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-button button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid #ff0000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.back-button button:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: scale(1.05);
}

.fullscreen-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#fullscreenToggle {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid #ff0000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#fullscreenToggle:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: scale(1.05);
}

.image-preview {
    margin-bottom: 2rem;
}

.image-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.warning-badge {
    background: linear-gradient(45deg, #ff4500, #ff0000);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 0.5rem 0;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.warning-notice {
    background: rgba(255, 69, 0, 0.2);
    border: 2px solid #ff4500;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    color: #ff4500;
    font-weight: bold;
    animation: warning-flash 3s infinite;
}

@keyframes warning-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.apk-info {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.apk-info p {
    margin: 0.5rem 0;
    color: #ff4500;
}

.category-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.category-btn {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff0000, #8b0000);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-btn:hover {
    background: linear-gradient(45deg, #ff4500, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.extra-section {
    margin-top: 2rem;
}

.back-button-inline {
    margin-bottom: 2rem;
}

.back-button-inline button {
    background: rgba(255, 0, 0, 0.2);
    color: white;
    border: 2px solid #ff0000;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-button-inline button:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

.settings-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px solid #ff0000;
}

.setting-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid #ff4500;
}

.setting-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff4500;
    margin-bottom: 1rem;
}

.setting-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-controls button {
    background: linear-gradient(45deg, #ff0000, #8b0000);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.setting-controls button:hover {
    background: linear-gradient(45deg, #ff4500, #ff0000);
    transform: translateY(-2px);
}

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

.volume-control span {
    color: #cccccc;
    font-size: 1rem;
}

.volume-control input[type="range"] {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff0000, #ff4500);
    border-radius: 50%;
    cursor: pointer;
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff0000, #ff4500);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#volumeValue {
    color: #ff4500;
    font-weight: bold;
    min-width: 40px;
}

.text-preview {
    margin-bottom: 2rem;
}

.text-preview textarea {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ff4500;
    border-radius: 10px;
    padding: 1rem;
    color: #ffffff;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    resize: vertical;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.text-preview textarea:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.audio-preview {
    margin-bottom: 2rem;
}

.audio-preview audio {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ff4500;
}

.audio-preview audio:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.ai-badge {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.5rem;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.ai-badge.large {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    position: relative;
    top: 0;
    right: 0;
    margin: 0 0 1rem 0;
}

.ai-converter {
    position: relative;
    border: 2px solid #007bff !important;
    background: rgba(0, 123, 255, 0.05) !important;
}

.ai-converter:hover {
    background: rgba(0, 123, 255, 0.1) !important;
    border-color: #0056b3 !important;
}

.ai-converter h4 {
    color: #007bff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.ai-converter .select-converter-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.ai-converter .select-converter-btn:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
}

.baby-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.baby-options .option {
    border: 2px solid #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.baby-options .option:hover {
    background: rgba(0, 123, 255, 0.1);
}

.ai-btn {
    background: linear-gradient(45deg, #007bff, #0056b3) !important;
}

.ai-btn:hover {
    background: linear-gradient(45deg, #0056b3, #004085) !important;
}

.ai-spinner {
    border-top: 4px solid #007bff;
}

.ai-progress {
    background: linear-gradient(45deg, #007bff, #0056b3) !important;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 2rem;
    }
    
    .evil-options {
        grid-template-columns: 1fr;
    }
    
    .category-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .volume-control {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .setting-controls {
        align-items: center;
    }
}