/* Real Cam Online — site styles */
:root {
  --bg: #f4f7fc;
  --panel: #ffffff;
  --panel-2: #eef2fb;
  --line: rgba(15, 23, 42, .09);
  --text: #0f172a;
  --text-2: #64748b;
  --cyan-d: #0891b2;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px -12px rgba(15,23,42,.18);
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --green: #22c55e;
  --grad: linear-gradient(135deg, #22d3ee, #6366f1);
  --r: 18px;
  --top-h: 72px;
  --max: 1400px;
  --pad: clamp(16px, 3.5vw, 40px);
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); background: var(--bg); }
body {
  font: 15px/1.55 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; min-height: 100vh;
  background:
    radial-gradient(1000px 520px at 100% -5%, rgba(99, 102, 241, .10), transparent 60%),
    radial-gradient(900px 480px at -10% 0%, rgba(34, 211, 238, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
select, input { font: inherit; color: var(--text); }
h1, h2, h3 { font-family: Montserrat, Inter, sans-serif; letter-spacing: -.01em; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--text-2); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
main.wrap { padding-top: 28px; padding-bottom: 70px; min-height: calc(100vh - var(--top-h) - 90px); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; height: var(--top-h); background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid var(--line); }
.top-inner { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 30px; }
.logo img { display: block; height: 42px; width: auto; }
.logo .logo-icon { display: none; }
.menu { display: flex; gap: 2px; background: #f1f5f9; border: 1px solid var(--line); padding: 4px; border-radius: 14px; }
.menu a { display: flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 14.5px; transition: color .15s, background .15s; }
.menu a:hover { color: var(--text); }
.menu a.active { color: #fff; background: var(--grad); box-shadow: 0 6px 16px -8px rgba(99,102,241,.7); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 1.8s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.find { margin-left: auto; display: flex; align-items: center; gap: 10px; width: min(320px, 30vw); height: 44px; padding: 0 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: border-color .15s, width .25s, box-shadow .15s; }
.find:focus-within { box-shadow: 0 0 0 4px rgba(34,211,238,.15); border-color: var(--cyan); width: min(400px, 36vw); }
.find svg { width: 18px; height: 18px; color: var(--text-2); }
.find input { flex: 1; min-width: 0; border: 0; background: none; outline: none; }
.dock { display: none; }
.footer { border-top: 1px solid var(--line); padding: 26px 0 36px; color: var(--text-2); font-size: 13px; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer img { height: 30px; }

/* ---------- Buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.05); font-weight: 600; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .2s, border-color .15s; }
.btn:hover { background: #f8fafc; border-color: rgba(99,102,241,.35); }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; }
.btn-main { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 12px 30px -12px rgba(99,102,241,.9); }
.btn-main:hover { background: var(--grad); box-shadow: 0 14px 34px -10px rgba(34,211,238,.7); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.on { border-color: rgba(8,145,178,.45); color: var(--cyan-d); background: #ecfeff; }
.btn.on svg { fill: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #eef2f7; color: #334155; font-size: 12.5px; font-weight: 500; }
.chip svg { width: 14px; height: 14px; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 8px; border-radius: 8px; background: rgba(7,11,26,.78); backdrop-filter: blur(6px); font: 700 11px Inter, sans-serif; letter-spacing: .08em; color: #fff; }
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 1.8s infinite; }
.chip-live { color: #15803d; background: #dcfce7; }
.badge-vid { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: rgba(7,11,26,.72); backdrop-filter: blur(6px); font: 700 11px Inter, sans-serif; letter-spacing: .08em; color: #c7d2fe; }
.badge-off { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; background: rgba(7,11,26,.78); font: 700 11px Inter, sans-serif; letter-spacing: .08em; color: var(--text-2); }
.badge-off i { width: 7px; height: 7px; border-radius: 50%; background: #64748b; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tab { padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--text-2); font-weight: 500; transition: all .15s; }
.tab:hover { color: var(--text); border-color: rgba(99,102,241,.35); }
.tab.active { background: #ecfeff; color: var(--cyan-d); border-color: rgba(8,145,178,.4); }
.tab small { opacity: .65; margin-left: 4px; }
.select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f98c4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 38px 9px 14px; outline: none; cursor: pointer; }
.select option, .select optgroup { background: #fff; color: var(--text); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; margin-bottom: 48px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid rgba(34,197,94,.35); background: #f0fdf4; color: #15803d; font-weight: 600; font-size: 13.5px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.05; margin: 20px 0 16px; font-weight: 800; }
.hero-kicker.off { border-color: var(--line); background: #f1f5f9; color: var(--text-2); padding-left: 14px; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-2); font-size: 17px; max-width: 520px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 34px; }
.hero-stats b { display: block; font: 800 28px Montserrat, sans-serif; }
.hero-stats span { color: var(--text-2); font-size: 13px; }
.hero-screen { position: relative; border-radius: 26px; padding: 10px; background: linear-gradient(135deg, rgba(34,211,238,.55), rgba(99,102,241,.55)); box-shadow: 0 30px 70px -30px rgba(99,102,241,.55); }
.hero-screen .screen { color: #fff; position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #1e293b, #312e81); display: block; }
.hero-screen .screen img, .hero-screen .screen video { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-screen .screen .over { z-index: 2; position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; background: linear-gradient(180deg, rgba(7,11,26,.4), transparent 30%, transparent 60%, rgba(7,11,26,.85)); }
.hero-screen .screen h3 { margin: 0; font-size: 20px; }
.hero-screen .screen .sub { color: #c7cdf0; font-size: 13.5px; }
.hero-screen .mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.hero-screen .mini-grid a { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #1e293b; display: block; color: #fff; }
.hero-screen .mini-grid img, .hero-screen .mini-grid video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hero-screen .mini-grid a:hover img { transform: scale(1.08); }
.hero-screen .mini-grid span { z-index: 2; position: absolute; left: 8px; bottom: 6px; font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.8); }

/* ---------- Sections ---------- */
.sec { margin-bottom: 52px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.sec-head h2 .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #ecfeff; color: var(--cyan-d); }
.sec-head h2 .ico svg { width: 19px; height: 19px; }
.sec-head .more { color: var(--text-2); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.sec-head .more:hover { color: var(--cyan-d); }
.sec-head .more svg { width: 16px; height: 16px; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 24px; }
.page-title h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.page-title p { margin: 6px 0 0; color: var(--text-2); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Camera cards ---------- */
.cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.cam { position: relative; display: block; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .25s; }
.cam:hover { transform: translateY(-4px); border-color: rgba(8,145,178,.45); box-shadow: 0 22px 44px -22px rgba(8,145,178,.45); }
.shot { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #e0e7ff, #cffafe); overflow: hidden; color: #fff; }
.shot img, .shot video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.cam:hover .shot img, .cam:hover .shot video { transform: scale(1.05); }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #475569; font-size: 12px; font-weight: 500; }
.noimg svg { width: 36px; height: 36px; display: block; margin: 0 auto 6px; color: #818cf8; }
.shot .tl { position: absolute; left: 10px; top: 10px; z-index: 2; }
.shot .tr { position: absolute; right: 10px; top: 10px; z-index: 2; }
.shot .eye { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; background: rgba(7,11,26,.7); font-size: 11.5px; font-weight: 600; }
.shot .eye svg { width: 13px; height: 13px; }
.shot .playme { z-index: 2; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; background: rgba(7,11,26,.25); }
.shot .playme span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: 0 8px 24px rgba(34,211,238,.5); }
.shot .playme svg { width: 22px; height: 22px; fill: #fff; stroke: none; margin-left: 3px; }
.cam:hover .playme { opacity: 1; }
.cam.offline .shot img, .cam.offline .shot video { filter: grayscale(.85) brightness(.6); }
.cam-body { padding: 13px 15px 15px; }
.cam-body h3 { margin: 0 0 3px; font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-body .where { color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-body .where svg { width: 14px; height: 14px; }

/* ---------- Place cards ---------- */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.place { color: #fff; position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4/3; border-radius: 22px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: linear-gradient(135deg, #1b2459, #0d1230); padding: 18px; transition: transform .2s, box-shadow .25s, border-color .2s; }
.place > img, .place > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.place::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,11,26,.05) 25%, rgba(7,11,26,.94)); }
.place:hover { transform: translateY(-4px); border-color: rgba(99,102,241,.6); box-shadow: 0 24px 50px -24px rgba(99,102,241,.6); }
.place:hover > img { transform: scale(1.06); }
.place .top-tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.place h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.place .facts .chip { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }
.place .facts .chip-live { color: #bbf7d0; }
.place .loc { color: #e2e8f0; font-size: 13.5px; display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.place .loc svg { width: 15px; height: 15px; }
.place .facts { display: flex; gap: 8px; flex-wrap: wrap; }
.featured-tag { padding: 4px 10px; border-radius: 8px; background: var(--grad); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Viewer ---------- */
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.viewer-head .back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.viewer-head .back:hover { color: var(--cyan-d); }
.viewer-head h1 { margin: 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; }
.viewer-head .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.screen-box { position: relative; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 24px 60px -28px rgba(15,23,42,.45); }
.screen-box .stage { aspect-ratio: 16/9; position: relative; }
.stage { color: #fff; }
.stage iframe, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.stage .cam-label { position: absolute; left: 14px; top: 14px; z-index: 3; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.stage .cam-label b { padding: 4px 10px; border-radius: 8px; background: rgba(7,11,26,.7); font-size: 13px; color: #fff; }
.stage .offline-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: radial-gradient(circle, #1e293b, #0f172a); color: #94a3b8; padding: 20px; }
.stage .offline-msg svg { width: 48px; height: 48px; margin: 0 auto 10px; display: block; color: #5b67b0; }
.stage .offline-msg h3 { color: #fff; margin: 0 0 6px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: #fff; border-top: 1px solid var(--line); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #f1f5f9; border: 1px solid var(--line); }
.seg button { border: 0; background: none; color: var(--text-2); padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.seg button svg { width: 16px; height: 16px; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.toolbar .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.mgrid { display: grid; gap: 4px; background: #000; }
.mgrid.n1 { grid-template-columns: 1fr; }
.mgrid.n2 { grid-template-columns: 1fr 1fr; }
.mgrid.n3, .mgrid.n4 { grid-template-columns: 1fr 1fr; }
.mgrid.n5, .mgrid.n6, .mgrid.n7, .mgrid.n8, .mgrid.n9 { grid-template-columns: repeat(3, 1fr); }
.mcell { position: relative; aspect-ratio: 16/9; background: #05070f; }
.mcell .expand { color: #fff; position: absolute; right: 8px; top: 8px; z-index: 4; width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(7,11,26,.7); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.mcell:hover .expand { opacity: 1; }
.mcell .expand svg { width: 16px; height: 16px; }
.cam-list { box-shadow: var(--shadow); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 14px; align-self: start; position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 40px); display: flex; flex-direction: column; }
.cam-list h3 { margin: 4px 6px 12px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.cam-list h3 small { color: var(--text-2); font: 500 13px Inter, sans-serif; }
.cam-list .items { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.ci { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 7px; border-radius: 14px; border: 1px solid transparent; text-align: left; background: none; width: 100%; }
.ci:hover { background: #f8fafc; }
.ci.on { background: #ecfeff; border-color: rgba(8,145,178,.4); }
.ci .shot { border-radius: 10px; }
.ci b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ci .st { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.ci .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.ci.off .st i { background: #94a3b8; }
.ci.vid .st i { background: #818cf8; }
.about { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.about .box { box-shadow: var(--shadow); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.about h3 { margin: 0 0 10px; font-size: 17px; }
.about p { margin: 0; color: #334155; white-space: pre-wrap; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.taglist a { padding: 5px 12px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 13px; }
.facts-list { display: grid; gap: 12px; }
.facts-list div { display: flex; justify-content: space-between; color: var(--text-2); font-size: 14px; }
.facts-list b { color: var(--text); }

/* ---------- Multi-view page ---------- */
.mv-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mv { display: grid; gap: 12px; }
.mv.l2 { grid-template-columns: 1fr 1fr; }
.mv.l4 { grid-template-columns: 1fr 1fr; }
.mv.l9 { grid-template-columns: repeat(3, 1fr); }
.slot { box-shadow: var(--shadow); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.slot .stage { aspect-ratio: 16/9; background: #000; }
.slot .stage .empty-slot { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-2); text-align: center; font-size: 13px; }
.slot .stage .empty-slot svg { width: 34px; height: 34px; margin: 0 auto 6px; display: block; color: #64748b; }
.slot .pick { display: flex; gap: 8px; padding: 8px; }
.slot .pick select { flex: 1; min-width: 0; font-size: 13px; padding: 7px 34px 7px 10px; }

/* ---------- Empty / skeleton / toast ---------- */
.empty { text-align: center; padding: 80px 20px; color: var(--text-2); }
.empty .ic { width: 86px; height: 86px; margin: 0 auto 18px; border-radius: 26px; display: grid; place-items: center; background: #ecfeff; color: var(--cyan-d); }
.empty .ic svg { width: 38px; height: 38px; }
.empty h2 { color: var(--text); margin: 0 0 8px; }
.empty .btn { margin-top: 18px; }
.sk { border-radius: var(--r); background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; pointer-events: none; padding: 12px 20px; border-radius: 14px; background: #0f172a; color: #fff; font-weight: 600; box-shadow: 0 16px 40px rgba(15,23,42,.35); transition: all .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .viewer, .about { grid-template-columns: 1fr; }
  .cam-list { position: static; max-height: none; }
  .cam-list .items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .menu a:nth-child(4) { display: none; }
}
@media (max-width: 980px) {
  .menu { display: none; }
  .find, .find:focus-within { width: auto; flex: 1; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-screen { order: -1; }
  .dock { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; height: 64px; padding: 0 6px; border-radius: 20px; background: rgba(255,255,255,.95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15,23,42,.18); margin-bottom: env(safe-area-inset-bottom); }
  .dock a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--text-2); font-weight: 500; }
  .dock a svg { width: 21px; height: 21px; }
  .dock a.active { color: var(--cyan-d); }
  body { padding-bottom: 86px; }
  .toast { bottom: 96px; }
  .mv.l9 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .logo .logo-full { display: none; }
  .logo .logo-icon { display: block; height: 40px; }
  .top-inner { gap: 12px; }
  .cams { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cam-body { padding: 10px 11px 12px; }
  .cam-body h3 { font-size: 14px; }
  .places { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .screen-box { border-radius: 16px; margin: 0 calc(-1 * var(--pad) + 4px); }
  .mv.l2, .mv.l4, .mv.l9 { grid-template-columns: 1fr; }
  .mgrid.n5, .mgrid.n6, .mgrid.n7, .mgrid.n8, .mgrid.n9 { grid-template-columns: 1fr 1fr; }
  .toolbar .acts .lbl { display: none; }
}

.hero-screen .noimg, .mini-grid .noimg { color: #cbd5e1; background: linear-gradient(135deg, #1e293b, #312e81); }
.hero-screen .noimg svg, .mini-grid .noimg svg { color: #67e8f9; }
.mini-grid .noimg { font-size: 0; }
.mini-grid .noimg svg { width: 26px; height: 26px; margin: 0; }
.place .top-tags .chip { background: rgba(7,11,26,.6); color: #fff; }

/* ---------- SEO fallback, ads, info pages ---------- */
.seo-fallback h1 { font-size: 30px; margin: 10px 0 12px; }
.seo-fallback p { color: var(--text-2); max-width: 760px; }
.seo-fallback ul { padding-left: 18px; line-height: 2; }
.seo-fallback a { color: var(--cyan-d); font-weight: 600; }
.ad-wrap:empty { display: none; }
.ad-wrap { padding-top: 18px; }
.ad-box { position: relative; margin: 10px auto 40px; text-align: center; min-height: 90px; max-width: 100%; overflow: hidden; }
.ad-wrap .ad-box { margin-bottom: 0; }
.cam-list .ad-box { margin: 14px 0 0; min-height: 250px; }
.viewer + .ad-box { margin-top: 22px; margin-bottom: 0; }
.ad-label { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; margin-bottom: 4px; }
.ad-test { display: grid; place-items: center; min-height: 90px; border: 2px dashed #cbd5e1; border-radius: 14px; color: #64748b; font-weight: 600; background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px); }
.cam-list .ad-test { min-height: 250px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--text-2); font-weight: 500; }
.foot-links a:hover { color: var(--cyan-d); }
.info-page { max-width: 820px; margin: 10px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.info-page h1 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 36px); }
.info-body { white-space: pre-wrap; color: #334155; line-height: 1.75; }
