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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #eee;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1rem;
}

.preview-area {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.preview-area video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.preview-area video.active {
    display: block;
}

.placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #666;
}

.placeholder span {
    font-size: 4rem;
    margin-bottom: 10px;
}

.placeholder p {
    font-size: 1.1rem;
}

.info-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #ccc;
    flex-wrap: wrap;
}

.info-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.btn-danger {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.status {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.status.recording {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

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

.tips {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #feca57;
}

.tips h3 {
    margin-bottom: 15px;
    color: #feca57;
    font-size: 1.1rem;
}

.tips ul {
    list-style: none;
    padding: 0;
}

.tips li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #bbb;
    line-height: 1.6;
}

.tips li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #feca57;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .info-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}