* {
    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;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    padding: 40px;
}

.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #764ba2;
    background: #e8ebff;
    transform: scale(1.02);
}

.upload-content svg {
    color: #667eea;
    margin-bottom: 20px;
}

.upload-content p {
    font-size: 1.2em;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-content .subtext {
    font-size: 0.9em;
    color: #999;
    font-weight: normal;
}

.player-section {
    margin-top: 30px;
}

.media-container {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.media-container video,
.media-container audio {
    width: 100%;
    display: block;
}

.controls {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 10px;
}

.time-display {
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 25px;
}

.trim-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.trim-input-group {
    display: flex;
    flex-direction: column;
}

.trim-input-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.trim-input-group input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.trim-input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.audio-format-selector {
    margin: 20px 0;
    text-align: center;
}

.audio-format-selector label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.audio-format-selector select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 200px;
}

.audio-format-selector select:focus {
    outline: none;
    border-color: #667eea;
}

.audio-format-selector select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
    background: #e0e0e0;
    color: #555;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-accent {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

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

.btn-accent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.info-section {
    margin-top: 20px;
    padding: 15px;
    background: #f0f2ff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-section p {
    color: #555;
    font-size: 0.9em;
}

.footer {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-top: 1px solid #e8ebff;
    padding: 25px 40px 25px;
    margin-top: 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 2px 2px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer .copyright {
    font-size: 0.85em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8ebff;
}

.footer-info p {
    margin: 0;
    font-size: 0.85em;
    color: #555;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer-info p::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 50%;
    opacity: 0.6;
}

.footer-info a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 3px;
}

.footer-info a:hover {
    color: #764ba2;
    background: #f0f2ff;
    text-decoration: none;
}

.footer-info .contact-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-info .contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f8f9ff;
    border: 1px solid #e8ebff;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.8em;
}

.footer-info .contact-links a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.footer-info .contact-links a::before {
    display: none;
}

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

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    header h1 {
        font-size: 2em;
    }

    .footer {
        padding: 20px 20px 20px;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .footer-info p {
        font-size: 0.8em;
        flex-direction: column;
        gap: 4px;
    }

    .footer-info p::before {
        display: none;
    }

    .footer-info .contact-links {
        flex-direction: column;
        width: 100%;
    }

    .footer-info .contact-links a {
        width: 100%;
        justify-content: center;
    }
}

