body { font-family: 'Segoe UI', sans-serif; background: #f0f2f5; margin: 0; padding: 20px; display: flex; justify-content: center; }
.container-list { width: 100%; max-width: 800px; background: white; padding: 25px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
h1 { text-align: center; color: #1a1a1a; margin-bottom: 30px; }

.custom-practice { background: #f8f9fa; padding: 20px; border-radius: 12px; border: 1px solid #e9ecef; margin-bottom: 25px; }
.input-group { display: flex; flex-direction: column; gap: 10px; }
#customInput { padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; outline: none; }
#customInput:focus { border-color: #007bff; }
.custom-actions { display: flex; gap: 10px; }
.custom-actions button { flex: 1; padding: 12px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; transition: 0.3s; }

.search-container { position: sticky; top: -20px; background: white; padding: 15px 0; z-index: 10; border-bottom: 1px solid #eee; margin-bottom: 20px; }
#searchInput { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #ddd; box-sizing: border-box; }

.word-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #eee; }
.info { flex: 1; min-width: 200px; }
.kr { font-size: 20px; font-weight: bold; color: #d63031; display: block; }
.vi { color: #636e72; font-size: 14px; }

.actions { display: flex; gap: 8px; }
.actions button { padding: 8px 15px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; min-width: 90px; transition: 0.3s; }
.btn-audio { background: #e1f5fe; color: #039be5; }
.btn-mic { background: #007bff; color: white; }

.result-display { width: 100%; margin-top: 10px; padding: 10px; border-radius: 5px; background: #fffde7; box-sizing: border-box; }
.user-text { color: #2d3436; font-style: italic; }
.status-msg { margin-left: 10px; }
.success { color: #27ae60; font-weight: bold; }
.fail { color: #e74c3c; font-weight: bold; display: inline-block; animation: shake 0.4s ease-in-out; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

@media (max-width: 600px) {
    .word-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    .actions { width: 100%; }
    .actions button { flex: 1; }
}