body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #050814;
    color: #f8fafc;
    text-align: center;
    margin: 0;
    padding: 20px;
}

h1 {
    color: #38bdf8;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.container {
    max-width: 100vw; /* Ampliado para formato horizontal web */
    margin: 0 auto;
    background: #0f172a;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    border: 1px solid #1e293b;
}

/* Contenedor horizontal 16:9 para web */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Formato panorámico horizontal */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

video, canvas {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Llena el espacio horizontal sin deformar */
    display: block;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* Permite que los clics atraviesen el canvas */
}

.btn-controls {
    margin-top: 15px;
}

button {
    background-color: #0284c7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background-color: #0369a1;
}