/* =====================================================================
   Моніторинг: живий онлайн, розширені фільтри, аптайм і теплова карта, сторінки модів і карт.
   Кольори — зі змінних теми (--accent, --accent-rgb, --grad), без теми — золото.
   ===================================================================== */
:root { --m-rgb: var(--accent-rgb, 226,180,90); --m-grad: var(--grad, linear-gradient(135deg, #f3d58f, #d9a648)); }

/* ---------- живий онлайн ---------- */
.live-ago { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .5px;
  color: #34f5a5; background: rgba(52,245,165,.08); border: 1px solid rgba(52,245,165,.3); white-space: nowrap; }
.live-ago i { width: 7px; height: 7px; border-radius: 50%; background: #34f5a5; box-shadow: 0 0 8px #34f5a5; animation: mlive 1.6s ease-in-out infinite; }
@keyframes mlive { 50% { opacity: .35; } }
.listhead { gap: 12px 14px; }
.listhead .live-ago { margin-right: auto; }
.live-up b { animation: mup 1.6s ease-out; }
.live-down b { animation: mdown 1.6s ease-out; }
@keyframes mup { 0%, 30% { color: #34f5a5; text-shadow: 0 0 12px #34f5a5; } 100% { color: inherit; text-shadow: none; } }
@keyframes mdown { 0%, 30% { color: #fb7185; text-shadow: 0 0 12px #fb7185; } 100% { color: inherit; text-shadow: none; } }

/* ---------- фільтри ---------- */
.params { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.params > .field:first-of-type { grid-column: span 2; }
.prange { display: flex; align-items: center; gap: 6px; }
.prange .input { min-width: 0; width: 100%; }
.prange i { color: var(--muted); font-style: normal; }
.field--range > span { display: block; }
.params__checks { display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; padding-bottom: 6px; }
.params__checks .check { padding: 0; }
@media (max-width: 680px) { .params > .field:first-of-type { grid-column: auto; } }

/* ---------- аптайм і теплова карта ---------- */
.sact__grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.sact__up { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sact__tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); --c: #9ca3af; }
.sact__tile.is-good { --c: #34f5a5; } .sact__tile.is-mid { --c: #fbbf24; } .sact__tile.is-bad { --c: #fb7185; }
.sact__ring { width: 84px; height: 84px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.07) 0); }
.sact__ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--panel); }
.sact__ring b { position: relative; font-family: var(--font-d, inherit); font-size: 19px; font-weight: 900; color: #fff; }
.sact__lbl { font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); text-align: center; }
.sact__best { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(251,146,60,.12), rgba(var(--m-rgb), .06)); border: 1px solid rgba(251,146,60,.3); font-size: 13px; color: var(--muted); line-height: 1.4; }
.sact__best .ico { width: 26px; height: 26px; flex: none; color: #fb923c; }
.sact__best b { color: #fff; font-size: 15px; }
.sact__best small { display: block; }
.heat { display: grid; grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat__h { font-size: 10px; color: var(--muted); text-align: left; }
.heat__d { font-size: 11px; font-weight: 700; color: var(--muted); }
.heat i { display: block; aspect-ratio: 1; border-radius: 4px; background: rgba(var(--m-rgb), calc(.06 + var(--v) * .94)); transition: transform .15s, box-shadow .15s; }
.heat i:hover { transform: scale(1.35); box-shadow: 0 0 12px rgba(var(--m-rgb), .8); position: relative; z-index: 1; }
.heat__legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 10px; font-size: 11px; color: var(--muted); }
.heat__legend i { width: 14px; height: 14px; border-radius: 3px; background: rgba(var(--m-rgb), calc(.06 + var(--v) * .94)); }
.heat__legend span { margin: 0 4px; }
@media (max-width: 900px) { .sact__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .heat { gap: 2px; grid-template-columns: 22px repeat(24, minmax(0, 1fr)); } .heat i { border-radius: 2px; } }

/* ---------- сторінки модів і карт ---------- */
.lhero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 26px 28px; margin-bottom: 18px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(600px 240px at 0% 0%, rgba(var(--m-rgb), .16), transparent 70%), var(--glass, var(--panel)); }
.lhero__bg { position: absolute; inset: -30px; z-index: -1; background: center/cover no-repeat; filter: blur(18px) brightness(.45) saturate(1.2); }
.lhero--map { background: linear-gradient(90deg, rgba(6,7,20,.85), rgba(6,7,20,.55)); }
.lhero__kind { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: var(--m-grad); }
.lhero__kind .ico { width: 13px; height: 13px; }
.lhero h1 { margin: 10px 0 8px; font-family: var(--font-d, inherit); font-size: 34px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.05; color: #fff; }
.lhero p { margin: 0; color: #b8bfd8; max-width: 760px; line-height: 1.6; }
.lhero__stats { display: grid; grid-template-columns: repeat(3, minmax(90px, auto)); gap: 10px; }
.lhero__stats div { display: flex; flex-direction: column; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(6,8,24,.55); border: 1px solid var(--line); }
.lhero__stats b { font-family: var(--font-d, inherit); font-size: 28px; font-weight: 900; color: #fff; line-height: 1.1; text-shadow: 0 0 18px rgba(var(--m-rgb), .5); }
.lhero__stats small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.lrel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.lrel__lbl { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.lrel .mchip small { opacity: .6; margin-left: 4px; }
.lmods { margin-top: 26px; }
.shead__mapname { color: #fff; }
a.shead__mapname:hover { color: var(--accent2, #fff); text-decoration: underline; }
@media (max-width: 900px) {
  .lhero { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .lhero h1 { font-size: 26px; }
  .lhero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .live-ago i, .live-up b, .live-down b { animation: none !important; } }
