body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 15px;
    display: flex;
    justify-content: center;
    font-size: 14px;
}

.container {
    max-width: 800px;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.file-input {
    display: none;
}

.video-container {
    position: relative;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 640px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: auto;
    display: block;
}

.hidden {
    display: none !important;
}

#recording-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    color: red;
    font-weight: bold;
    font-size: 14px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.actions {
    margin-bottom: 20px;
}

#result-panel {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

#score-text {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

#feedback-text {
    font-size: 14px;
    color: #666;
}