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

body {
    font-family: 'Arial Unicode MS', 'Noto Sans', sans-serif;
    padding: 20px;
    background-color: #f0f2f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

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

select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 16px;
}

.transcript-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.transcript-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    min-height: 250px;
}

.transcript {
    height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 16px;
    white-space: pre-wrap;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.mic-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    background: #3498db;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.mic-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.speak-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    float: right;
    font-size: 14px;
    margin-top: 10px;
}

.original-speak {
    background: #3498db;
}

.translated-speak {
    background: #2ecc71;
}

@media (max-width: 768px) {
    .language-selectors, .transcript-container {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
    
    .transcript {
        height: 150px;
    }
}

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

.translating {
    animation: pulse 1.5s infinite;
}