/* Streamdzy Live on a phone: the camera on one half, the controls on the other, split down the middle (top and bottom held
   upright, left and right held sideways). The separator moves to give either half more room. */
:root { --bg: #0e0e12; --panel: #17171d; --panel2: #23232b; --line: rgba(255,255,255,.09); --fg: #ececf1; --muted: #9a9aa6; --accent: #a970ff; --rec: #ff4d4f; --split: 50%; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 15px/1.4 -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; overflow: hidden; overscroll-behavior: none; }
#app { position: fixed; inset: 0; display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
@media (orientation: landscape) { #app { flex-direction: row; } }
#stage { position: relative; flex: 0 0 var(--split); min-height: 0; min-width: 0; background: #000; overflow: hidden; touch-action: none; }
/* the whole camera, not cropped */
#out { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
#badge { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px; background: rgba(0,0,0,.55); font: 600 12px system-ui, sans-serif; font-variant-numeric: tabular-nums; }
#badge i { width: 8px; height: 8px; border-radius: 50%; background: #666; }
#badge.live i { background: var(--rec); box-shadow: 0 0 8px var(--rec); }
#badge.rec i { background: #ff9f1a; }
#msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 14px; background: rgba(0,0,0,.7); text-align: center; max-width: 86%; font-size: 14px; }
#start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
#sep { flex: 0 0 34px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: row-resize; touch-action: none; user-select: none; overflow: hidden; }
@media (orientation: landscape) { #sep { flex: 0 0 34px; flex-direction: column; padding: 10px 0; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); cursor: col-resize; } #sepinfo { writing-mode: vertical-rl; } }
#sep .grip { flex: 0 0 auto; width: 36px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); }
@media (orientation: landscape) { #sep .grip { width: 5px; height: 36px; } }
#sepinfo { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sepinfo b { color: var(--fg); }
#panel { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--panel); }
#tabs { display: flex; gap: 4px; padding: 8px 10px 4px; flex: 0 0 auto; }
#tabs button { flex: 1; height: 36px; border: 0; border-radius: 10px; background: var(--panel2); color: var(--muted); font: 600 14px system-ui, sans-serif; position: relative; }
#tabs button.on { background: rgba(169,112,255,.25); color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
#chatdot { position: absolute; right: 8px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); }
.tab { flex: 1; overflow-y: auto; padding: 6px 12px 14px; -webkit-overflow-scrolling: touch; }
.row { display: flex; align-items: center; gap: 8px; margin: 8px 0; min-width: 0; }
.row > label, .row > span:first-child { flex: 0 0 104px; color: var(--muted); font-size: 14px; }
.row.two > * { flex: 1; }
.row.quick { flex-wrap: wrap; }
.row.quick > * { flex: 1 1 30%; }
input, select { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--fg); font: 15px system-ui, sans-serif; }
input[type=checkbox] { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--accent); }
input[type=range] { height: 28px; padding: 0; border: 0; background: transparent; accent-color: var(--accent); }
.act, .big { height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--panel2); color: var(--fg); font: 700 15px system-ui, sans-serif; }
.big { background: var(--accent); color: #fff; padding: 0 26px; }
.act.live { background: linear-gradient(180deg, #ff5e60, #e23b3e); color: #fff; }
.act.live.on { background: #2a2a31; color: #ff8a8c; box-shadow: inset 0 0 0 2px var(--rec); }
.act.on { box-shadow: inset 0 0 0 2px #ff9f1a; color: #ffd08a; }
.tg { height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel2); color: var(--fg); font: 600 14px system-ui, sans-serif; padding: 0 10px; }
.tg.on { background: rgba(169,112,255,.3); border-color: var(--accent); color: #fff; }
.tg.warn.on { background: rgba(255,207,112,.25); border-color: #ffcf70; color: #ffe2a6; }
.card { margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.card b { font-size: 14px; }
summary { list-style: none; cursor: pointer; }
.note { color: var(--muted); font-size: 12.5px; margin: 6px 0; }
.small { font-size: 13px !important; flex: 1 !important; display: flex; align-items: center; gap: 8px; }
#looks h4 { margin: 12px 0 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
#looks .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--line); background: var(--panel2); color: var(--fg); font: 600 13px system-ui, sans-serif; }
.chip.on { border-color: var(--accent); background: rgba(169,112,255,.3); }
#feed { display: flex; flex-direction: column; gap: 5px; min-height: 120px; }
.m { font-size: 14px; word-wrap: break-word; }
.m .u { font-weight: 700; margin-right: 6px; }
.m .p { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.a { padding: 8px 11px; border-radius: 12px; background: linear-gradient(135deg, rgba(169,112,255,.42), rgba(255,79,216,.32)); font-size: 14px; }
[hidden] { display: none !important; }
