/* Chế độ quay phim (director.mjs, chỉ admin): bảng điều khiển góc dưới trái + chấm REC; body.sw-clean ẩn mọi giao diện */
.sw-dir { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 12px 14px; border-radius: 16px; background: rgba(15, 23, 42, .86); color: #e2e8f0; font: 13px/1.4 system-ui, "Segoe UI", sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(8px); }
.sw-dir.hidden, .sw-dir .hidden, .sw-dir-dot.hidden { display: none; }
.sw-dir-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sw-dir-head b { font-size: 14px; color: #fff; }
.sw-dir-keys { flex: 1; font-size: 11px; color: #94a3b8; }
.sw-dir-head button { border: 0; background: none; color: #94a3b8; font-size: 15px; cursor: pointer; }
.sw-dir-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 6px 8px; margin: 6px 0; }
.sw-dir-row > span { color: #94a3b8; font-size: 12px; }
.sw-dir-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.sw-dir button { font: inherit; }
.sw-dir-seg button, .sw-dir-sub button { border: 1px solid rgba(148, 163, 184, .35); background: rgba(30, 41, 59, .7); color: #e2e8f0; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.sw-dir-seg button:hover, .sw-dir-sub button:hover { background: rgba(51, 65, 85, .9); }
.sw-dir-seg button.on { background: #d97706; border-color: #d97706; color: #fff; }
.sw-dir-sub { margin: 4px 0 8px 72px; padding: 8px 10px; border-radius: 10px; background: rgba(30, 41, 59, .55); }
.sw-dir-sub label { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; font-size: 12px; color: #cbd5e1; }
.sw-dir-sub p { margin: 4px 0 0; font-size: 11px; color: #94a3b8; }
.sw-dir input[type=range] { accent-color: #d97706; width: 100%; }
.sw-dir-line { display: flex; align-items: center; gap: 8px; }
.sw-dir-hour { display: inline-block; width: 44px; text-align: right; color: #fff; }
.sw-dir-check { display: flex !important; align-items: center; gap: 6px; font-size: 12px; color: #cbd5e1; }
.sw-dir-check input { accent-color: #d97706; }
.sw-dir-rec { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(148, 163, 184, .2); }
.sw-dir-rec button { border: 0; border-radius: 10px; padding: 7px 14px; background: #dc2626; color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sw-dir-rec button.on { background: #fff; color: #b91c1c; }
.sw-dir-rec span { font-size: 11px; color: #94a3b8; }
.sw-dir-dot { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 61; padding: 3px 10px; border-radius: 999px; background: rgba(220, 38, 38, .9);
    color: #fff; font: 600 12px/1.4 system-ui, sans-serif; pointer-events: none; animation: sw-dir-blink 1.2s ease-in-out infinite; }
@keyframes sw-dir-blink { 50% { opacity: .55; } }
/* Ẩn giao diện (H): chỉ còn khung 3D (chấm REC vẫn hiện để biết đang quay — chấm này không lọt vào video quay trong game) */
body.sw-clean > *:not(#sw-canvas):not(.sw-dir-dot) { visibility: hidden !important; }
body.sw-clean #sw-canvas > :not(canvas) { visibility: hidden !important; }
