/* [nexus 2026-11-02] אתר האנטי-צ׳יט (C:\xampp\nxac) - שחור-זהב של Nexus */
:root {
  --bg: #0b0b0d; --side: #0f0f13; --card: #15151a; --card2: #1b1b22; --line: #2a2a33;
  --text: #f2f2f4; --muted: #9a9aa6; --gold: #ffc400; --gold-dim: #3a3000;
  --red: #ff4d4f; --red-dim: #3a1214; --green: #2ecc71; --green-dim: #0f2e1c;
  --blue: #4da3ff; --blue-dim: #10243a; --orange: #ff9f43; --orange-dim: #3a250f;
  --r: 12px; --side-w: 230px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 Rubik, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
td.ltr { display: table-cell; } /* inline-block על תא שובר את הטבלה (יומן) */
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- מבנה */
.layout { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { background: var(--side); border-inline-end: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 10px 30px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 700; font-size: 16px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand small { display: block; color: var(--gold); font-weight: 500; font-size: 12px; }
.navgroup { margin-top: 14px; }
.navgroup h4 { margin: 0 0 4px; padding: 0 10px; font-size: 11px; letter-spacing: .5px; color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: start; color: #cfcfd6; }
.nav svg { width: 17px; height: 17px; fill: currentColor; flex: none; opacity: .8; }
.nav:hover { background: var(--card); }
.nav.sel { background: var(--gold-dim); color: var(--gold); }
.nav .dot { margin-inline-start: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; text-align: center; }
.side .back { display: block; margin: 20px 10px 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.side .back:hover { color: var(--gold); }

.main { min-width: 0; padding: 22px 28px 60px; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb b { color: var(--gold); font-weight: 500; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.head h1 { margin: 0; font-size: 26px; display: flex; align-items: center; gap: 10px; }
.head h1 svg { width: 26px; height: 26px; fill: var(--gold); }
.head p { margin: 2px 0 0; color: var(--muted); }
.head .tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- רכיבים */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #444452; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.gold { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 500; }
.btn.red { background: var(--red); color: #fff; border-color: var(--red); }
.btn.ghost-red { color: var(--red); border-color: var(--red-dim); background: transparent; }
.btn.green { background: var(--green-dim); color: var(--green); border-color: #1d5a37; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.icon { padding: 7px; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-size: 13px; }
.pill.green { background: var(--green-dim); border-color: #1d5a37; color: var(--green); }
.pill.gold { background: var(--gold-dim); border-color: #5a4a00; color: var(--gold); }
.pill.red { background: var(--red-dim); border-color: #5a1d1f; color: var(--red); }
.pill.blue { background: var(--blue-dim); border-color: #1d3d5a; color: var(--blue); }

.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; background: var(--card2); border: 1px solid var(--line); white-space: nowrap; }
.tag.red { background: var(--red-dim); color: var(--red); border-color: #5a1d1f; }
.tag.gold { background: var(--gold-dim); color: var(--gold); border-color: #5a4a00; }
.tag.green { background: var(--green-dim); color: var(--green); border-color: #1d5a37; }
.tag.blue { background: var(--blue-dim); color: var(--blue); border-color: #1d3d5a; }
.tag.orange { background: var(--orange-dim); color: var(--orange); border-color: #5a3a1d; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.stat .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--card2); flex: none; }
.stat .ic svg { width: 20px; height: 20px; fill: var(--muted); }
.stat.gold .ic { background: var(--gold-dim); } .stat.gold .ic svg { fill: var(--gold); }
.stat.red .ic { background: var(--red-dim); } .stat.red .ic svg { fill: var(--red); }
.stat.green .ic { background: var(--green-dim); } .stat.green .ic svg { fill: var(--green); }
.stat.blue .ic { background: var(--blue-dim); } .stat.blue .ic svg { fill: var(--blue); }
.stat b { display: block; font-size: 22px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 12px; }

.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; overflow: hidden; }
.box > h3 { margin: 0; padding: 12px 16px; font-size: 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.box .pad { padding: 14px 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 > .box { margin: 0; }

.bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.seg button.sel { background: var(--gold-dim); color: var(--gold); }
.search { flex: 1; min-width: 200px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; outline: none; }
.search:focus, select:focus, .inp:focus { border-color: var(--gold); }
select, .inp { padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; outline: none; }
.inp.num { width: 90px; direction: ltr; text-align: center; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 5px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 13px; }
.chip.sel { background: var(--gold-dim); color: var(--gold); border-color: #5a4a00; }
.chip i { font-style: normal; color: var(--muted); margin-inline-start: 4px; }

table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: start; font-weight: 500; color: var(--muted); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card2); position: sticky; top: 0; }
.t td { padding: 9px 12px; border-bottom: 1px solid #202028; vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: #1a1a21; }
.t td.det { color: #c9c9d2; font-size: 13px; max-width: 520px; word-break: break-word; }
.t td.nowrap { white-space: nowrap; }
.tscroll { overflow-x: auto; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.warn { padding: 10px 14px; border-radius: 10px; background: var(--red-dim); color: #ffb3b4; border: 1px solid #5a1d1f; margin-bottom: 12px; }
.note { padding: 10px 14px; border-radius: 10px; background: var(--gold-dim); color: #ffe48a; border: 1px solid #5a4a00; margin-bottom: 14px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; }
.spin { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* מתג */
.sw { position: relative; width: 38px; height: 22px; flex: none; display: inline-block; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; background: #33333d; border-radius: 22px; cursor: pointer; transition: .15s; }
.sw span::after { content: ''; position: absolute; width: 16px; height: 16px; top: 3px; inset-inline-start: 3px; background: #ddd; border-radius: 50%; transition: .15s; }
.sw input:checked + span { background: var(--gold); }
.sw input:checked + span::after { inset-inline-start: 19px; background: #111; }
.sw input:disabled + span { opacity: .5; cursor: default; }

/* פסי גרף */
.bars { display: flex; flex-direction: column; gap: 8px; }
.bars .r { display: grid; grid-template-columns: 170px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.bars .r .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .track { height: 10px; background: var(--card2); border-radius: 6px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--gold); border-radius: 6px; }
.bars .n { text-align: end; color: var(--muted); }

/* זיהויים חיים */
.feed { max-height: 460px; overflow-y: auto; }
.feed .ev { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 9px 16px; border-bottom: 1px solid #202028; align-items: start; }
.feed .ev:last-child { border-bottom: 0; }
.feed .ev.new { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--gold-dim); } to { background: transparent; } }
.feed .tm { color: var(--muted); font-size: 12px; direction: ltr; }
.feed .who { font-weight: 500; }
.feed .d { color: #b9b9c3; font-size: 13px; word-break: break-word; }

/* צפייה חיה */
.lv { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tile .th { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px; }
.tile .th .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.tile .live { color: var(--red); font-size: 11px; display: inline-flex; align-items: center; gap: 4px; }
.tile .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
.tile .live.wait { color: var(--muted); } .tile .live.wait::before { background: var(--muted); animation: none; }
@keyframes blink { 50% { opacity: .2; } }
.tile .scr { position: relative; aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; cursor: zoom-in; }
.tile .scr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .scr .msg { position: absolute; color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.tile .tb { display: none; gap: 6px; padding: 8px 10px; flex-wrap: wrap; }
.tile:hover .tb { display: flex; }
.tile .scr img { image-rendering: auto; }
.plist { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); position: sticky; top: 16px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.plist h3 { margin: 0; padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.plist .search { margin: 10px; min-width: 0; flex: none; }
.plist .items { overflow-y: auto; }
.pi { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 0; border-inline-start: 3px solid transparent; background: none; cursor: pointer; text-align: start; }
.pi:hover { background: var(--card2); }
.pi.on { border-inline-start-color: var(--gold); background: #1a1810; }
.pi .id { min-width: 36px; padding: 1px 6px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); font-size: 12px; text-align: center; }
.pi .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi .eye { width: 16px; height: 16px; fill: var(--muted); }
.pi.on .eye { fill: var(--gold); }
.colctl { display: inline-flex; align-items: center; gap: 6px; }
.colctl b { min-width: 18px; text-align: center; }
.full { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 60; display: grid; place-items: center; cursor: zoom-out; }
.full img { max-width: 96vw; max-height: 92vh; }
.full .cap { position: absolute; top: 14px; inset-inline: 0; text-align: center; color: #ddd; }

/* מגירה */
.ov { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; display: flex; justify-content: flex-start; }
.drawer { width: min(620px, 100vw); height: 100vh; overflow-y: auto; background: var(--side); border-inline-end: 1px solid var(--line); padding: 18px 20px 40px; animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer h2 { margin: 0 0 4px; font-size: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 14px 0; font-size: 13px; }
.kv .k { color: var(--muted); }
.kv .v { word-break: break-all; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }

/* חלון אישור / טופס */
.modal-ov { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { width: min(460px, 100%); background: var(--side); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.modal h3 { margin: 0 0 10px; }
.modal label { display: block; margin-bottom: 10px; }
.modal label > span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.modal .inp, .modal select, .modal textarea { width: 100%; }
.modal textarea { padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; min-height: 70px; resize: vertical; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.modal .check { display: flex; align-items: center; gap: 8px; }

/* קונסול */
.console { background: #070709; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font: 12.5px/1.55 Consolas, monospace; direction: ltr; text-align: left; height: calc(100vh - 230px); min-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.console .ac { color: var(--gold); }
.console .rp { color: #c58cff; }
.console .er { color: var(--red); }

#toast { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 16px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.toast.ok { border-color: #1d5a37; color: var(--green); }
.toast.err { border-color: #5a1d1f; color: var(--red); }

/* סקירה */
.ovgrid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.ovgrid .grid2 { margin-top: 16px; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kvline { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid #202028; font-size: 13px; }
.kvline:first-of-type { border-top: 0; }
.kvline span:first-child { color: var(--muted); }
.ent3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.ent3 > div { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px; }
.ent3 svg { width: 18px; height: 18px; fill: var(--green); }
.ent3 b { display: block; font-size: 20px; }
.ent3 span { color: var(--muted); font-size: 12px; }
.ent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.ent-btns .btn { padding: 7px 8px; font-size: 13px; }

/* גרפים */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #26262e; stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: Consolas, monospace; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 5px; vertical-align: -1px; }
.hourbars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 150px; align-items: end; }
.hourbars > div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.hourbars i { display: block; background: var(--gold); border-radius: 3px 3px 0 0; min-height: 2px; }
.hourbars span { font-size: 10px; color: var(--muted); text-align: center; height: 14px; direction: ltr; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.grid3 > .box { margin: 0; }

/* תגיות */
.tagrow { display: flex; gap: 4px; flex-wrap: wrap; }
.starbtn { border: 0; background: none; cursor: pointer; padding: 2px; }
.starbtn svg { width: 16px; height: 16px; fill: #3a3a44; }
.starbtn.on svg { fill: var(--gold); }
.pi svg:not(.eye) { width: 14px; height: 14px; fill: var(--gold); }

/* מפה */
.lm-map { position: relative; height: max(420px, calc(100vh - 200px)); overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: #0d2231; touch-action: none; user-select: none; cursor: grab; }
.lm-layer { position: absolute; left: 0; top: 0; width: 4096px; height: 4096px; transform-origin: 0 0; will-change: transform; }
.lm-layer img { position: absolute; width: 512px; height: 512px; pointer-events: none; }
.lm-pins { position: absolute; inset: 0; pointer-events: none; }
.lm-pin { position: absolute; transform: translate(-50%, -50%); min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; border: 2px solid #111; font: 700 11px/20px Rubik, sans-serif; color: #111; background: var(--pc); pointer-events: auto; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.5); direction: ltr; }
.lm-pin.down { border-color: var(--red); opacity: .75; }
.lm-pin.veh { border-radius: 5px; }
.lm-pin.hl { outline: 3px solid #fff; outline-offset: 2px; z-index: 2; }
.lm-zoom { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.lm-zoom .btn { width: 36px; padding: 6px; font-size: 18px; }

/* כללי זיהוי - כרטיסים */
.rulegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rule { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.rule.off { opacity: .6; }
.rule .rh { display: flex; align-items: center; gap: 8px; }
.rule .rh b { flex: 1; min-width: 0; font-size: 14px; }
.rule .rd { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 12px; }

/* רשימות מודלים */
.modelchips { display: flex; gap: 6px; flex-wrap: wrap; }
.mchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; }
.mchip.new { border-color: var(--gold); }
.mchip button { border: 0; background: none; cursor: pointer; padding: 2px; display: grid; place-items: center; }
.mchip button svg { width: 13px; height: 13px; fill: var(--muted); }
.mchip button:hover svg { fill: var(--red); }

/* הקלטות */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.shot .img { position: relative; aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; cursor: zoom-in; }
.shot .img img { width: 100%; height: 100%; object-fit: cover; }
.shot .img .tag { position: absolute; top: 6px; inset-inline-start: 6px; }
.shot .img .msg { color: var(--muted); font-size: 12px; }
.shot .cap { padding: 8px 10px; font-size: 13px; }
.shot .cap .d { color: #b9b9c3; font-size: 12px; margin-top: 2px; max-height: 36px; overflow: hidden; }

/* קליפים */
.shot .img.vid { cursor: default; }
.clipwrap { position: relative; width: 100%; height: 100%; }
.clipwrap video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.clipmark { position: absolute; bottom: 38px; inset-inline-end: 8px; background: rgba(0,0,0,.7); color: var(--gold); font-size: 11px; padding: 1px 8px; border-radius: 6px; pointer-events: none; }
.bigclip { width: min(900px, 90vw); }
.bigclip .clipwrap { aspect-ratio: 16 / 9; }
.modal:has(.bigclip) { width: auto; max-width: 95vw; }
.shots.small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.evlinks { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.trustwhy div { font-size: 13px; padding: 2px 0; }
.trustwhy .neg { color: var(--red); }
.trustwhy .pos { color: var(--green); }

/* חיפוש שחקן */
.lookup-head { max-width: 640px; margin: 10px auto 20px; }
.search.big { width: 100%; padding: 12px 16px; font-size: 16px; }

/* פרטי שרת */
.reslist { display: flex; flex-wrap: wrap; gap: 5px; padding: 12px; }
.res { font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--card2); direction: ltr; }
.res.on { border-color: #1d5a37; color: var(--green); }
.res.off { border-color: #5a1d1f; color: var(--red); }
.console .wn { color: var(--orange); }

/* כניסה */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-box { width: min(360px, 100%); text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 24px; }
.login-logo { width: 84px; height: 84px; border-radius: 18px; }
.login-box h1 { margin: 12px 0 2px; font-size: 24px; }
.login-box p { margin: 0 0 18px; }
.login-box .btn { display: flex; width: 100%; text-decoration: none; padding: 11px; }

/* טלפון: פס עליון, טאבים למטה ותפריט צד (ac.js shell). במחשב מוסתרים */
.mtop, .mtabs, .scrim, .mclose { display: none; }

@media (max-width: 1100px) {
  .lv, .ovgrid, .grid3 { grid-template-columns: 1fr; }
  .plist { position: static; max-height: 360px; }
  .grid2 { grid-template-columns: 1fr; }
}
/* מסך מגע: אין hover, אז הכפתורים של מסך בצפייה חיה תמיד גלויים */
@media (hover: none) {
  .tile .tb { display: flex; }
}
@media (max-width: 760px) {
  button, .nav, .mtab, .pi { -webkit-tap-highlight-color: transparent; }
  input, select, textarea, .search { font-size: 16px; } /* פחות מ-16 = האייפון עושה זום בכל הקלדה */

  .mtop { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: var(--side); border-bottom: 1px solid var(--line); }
  .mtop img { width: 28px; height: 28px; border-radius: 7px; }
  .mtop b { flex: 1; min-width: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mtabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; inset-inline: 0; z-index: 30; padding-bottom: env(safe-area-inset-bottom); background: var(--side); border-top: 1px solid var(--line); }
  .mtab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border: 0; background: none; color: var(--muted); font-size: 11px; cursor: pointer; }
  .mtab svg { width: 22px; height: 22px; fill: currentColor; }
  .mtab.sel { color: var(--gold); }

  .layout { grid-template-columns: 1fr; }
  .side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 45; width: min(300px, 84vw); height: auto; padding: calc(14px + env(safe-area-inset-top)) 10px calc(30px + env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform .2s ease-out; }
  .menu-open .side { transform: none; }
  .menu-open { overflow: hidden; }
  .scrim { position: fixed; inset: 0; z-index: 44; background: rgba(0,0,0,.55); }
  .menu-open .scrim { display: block; }
  .mclose { display: inline-flex; margin-inline-start: auto; }
  .nav { padding: 11px 12px; }

  .main { padding: 14px 14px calc(84px + env(safe-area-inset-bottom)); }
  .crumb { display: none; }
  .head { margin: 0 0 12px; padding-bottom: 10px; }
  .head h1 { display: none; } /* הכותרת כבר בפס העליון */
  .head p { margin: 0; }
  .colctl { display: none; } /* בטלפון תמיד מסך אחד בשורה */
  .t th, .t td { padding: 8px 10px; }
  .t td.det { min-width: 240px; } /* אחרת עמודת הפרטים נמחצת לכמה אותיות וגובה ענק */
  .head .tools { width: 100%; }
  .search { min-width: 0; flex-basis: 100%; }
  .box { overflow-x: auto; }
  .seg { max-width: 100%; overflow-x: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; gap: 10px; }
  .stat .ic { width: 34px; height: 34px; }
  .stat b { font-size: 18px; }
  .shots, .shots.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .feed .ev { grid-template-columns: 48px 1fr auto; padding: 9px 12px; }
  .kv { grid-template-columns: 105px 1fr; }
  .tiles { grid-template-columns: 1fr !important; }
  .lv:has(.tiles) .plist { order: -1; max-height: 230px; } /* צפייה חיה: קודם בוחרים שחקן */
  .lm-map { height: max(360px, 62dvh); }
  .console { height: max(300px, calc(100dvh - 300px)); }
  .bars .r { grid-template-columns: 110px 1fr 36px; }
  .drawer { height: 100dvh; padding: calc(16px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); }
  .modal { padding: 16px; }
  .modal .row { flex-wrap: wrap; }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); inset-inline: 12px; }
}
