body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-family: Arial, sans-serif;
    color: #fff;
}
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tv-icon {
    font-size: 48px;
    margin-bottom: 10px;
}
h1 {
    font-size: 24px;
    margin-bottom: 20px;
}
.status {
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    background: rgba(40, 167, 69, 0.3);
    min-height: 20px;
}
/* Container cho 2 nút mic */
.voice-buttons-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.voice-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.voice-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.voice-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Styling riêng cho từng nút */
.youtube-button {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.youtube-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.google-button {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.google-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a95f5, #4285f4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.button-label {
    font-size: 14px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Hiệu ứng khi đang nghe */
.voice-button.listening {
    animation: pulse 1.5s infinite;
    transform: scale(1.1);
}

.youtube-button.listening {
    background: rgba(255, 0, 0, 0.9) !important;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
}

.google-button.listening {
    background: rgba(66, 133, 244, 0.9) !important;
    box-shadow: 0 0 25px rgba(66, 133, 244, 0.8);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    }
}
.transcript {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
}

/* Updated Manual Input Section */
.manual-input {
    margin-top: 20px;
    width: 100%;
    max-width: 350px;
}

.manual-input input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.manual-input input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.manual-input input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.manual-input input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Container cho 2 nút manual */
.manual-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.manual-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.manual-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.manual-youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.manual-youtube:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff3333, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.manual-google {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
}

.manual-google:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a95f5, #4285f4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.4);
}

/* Legacy send button - keep for backward compatibility */
.send-button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(40, 167, 69, 0.5);
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}
.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.connection-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 12px;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 480px) {
    .voice-buttons-container {
        gap: 30px;
    }
    
    .voice-button {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
    
    .manual-input {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .manual-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .manual-button {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 320px) {
    .voice-buttons-container {
        gap: 20px;
    }
    
    .voice-button {
        width: 65px;
        height: 65px;
        font-size: 24px;
    }
}