/* DEADLOCK · knoxyz — mesma base dark do dota.knoxyz.tech, acento âmbar/cobre */
:root {
  --bg: #0e1116;
  --bg-2: #141922;
  --panel: #171d27;
  --panel-2: #1c2431;
  --line: #263041;
  --line-2: #33415a;
  --txt: #e7ecf3;
  --txt-2: #9fb0c3;
  --txt-3: #6b7d92;
  --accent: #f0a63a;
  --accent-2: #ffcf7a;
  --t0: #e9a23b;       /* Hidden King — âmbar */
  --t0-dim: #3a2c14;
  --t1: #5b8cf0;       /* Archmother — safira */
  --t1-dim: #172440;
  --good: #57c98a;
  --good-dim: #1e3a2c;
  --bad: #e0554e;
  --bad-dim: #3a2020;
  --warn: #f0a63a;
  --shadow: 0 6px 22px rgba(0, 0, 0, .35);
  --r: 12px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --head: 'Space Grotesk', var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(1100px 560px at 12% -12%, #3a250f55, transparent 60%),
    radial-gradient(900px 620px at 108% -4%, #14264066, transparent 55%),
    radial-gradient(1200px 800px at 50% 120%, #0d1b2455, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--txt);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--txt-3); }
.above { color: var(--good); }
.below { color: var(--bad); }

/* ---------- layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 80px; }
header.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 17, 22, .84); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 #26304166, 0 8px 24px rgba(0, 0, 0, .25);
}
.top-in { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: .04em; color: var(--txt); }
.brand:hover { text-decoration: none; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #d9772b); box-shadow: 0 0 14px var(--accent), 0 0 5px var(--accent-2); }
.brand b { background: linear-gradient(92deg, #ffd58a, #e98a34); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { color: var(--txt-3); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
nav.main { display: flex; gap: 4px; }
nav.main a { padding: 7px 14px; border-radius: 8px; color: var(--txt-2); font-weight: 500; }
nav.main a:hover { background: var(--panel); text-decoration: none; color: var(--txt); }
nav.main a.active { background: var(--panel-2); color: var(--txt); }
.spacer { flex: 1; }

.btn {
  font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--txt); padding: 8px 14px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 8px; transition: .14s; text-decoration: none;
}
.btn:hover { border-color: var(--accent); color: #fff; text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, #e58f2c, #c9682a); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(229, 143, 44, .25); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn.ghost { background: transparent; }

input, select {
  font: inherit; background: var(--bg-2); color: var(--txt);
  border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 12px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 166, 58, .14); }
input::placeholder { color: var(--txt-3); }

.panel, .tbl-wrap {
  background: linear-gradient(180deg, #1a2231, #141a26 78%);
  border: 1px solid #28344a; border-radius: var(--r); box-shadow: var(--shadow);
}
.section-title { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; }
.section-title h2 { font-size: 18px; }
.section-title h2::before {
  content: ''; display: inline-block; width: 4px; height: 15px; border-radius: 3px;
  margin-right: 10px; vertical-align: -2px; background: linear-gradient(180deg, var(--accent), #d9772b);
}
.section-title .hint { color: var(--txt-3); font-size: 12.5px; }
.section-title .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.page-head { padding: 26px 0 6px; }
.page-head h1 { font-size: 26px; }
.page-head .lede { color: var(--txt-2); margin-top: 6px; max-width: 760px; }

/* ---------- filtros ---------- */
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.f-lbl { font-size: 10.5px; color: var(--txt-3); text-transform: uppercase; letter-spacing: .08em; margin-left: 6px; }
.f-lbl:first-child { margin-left: 0; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 2px; }
.seg button { font: inherit; font-size: 12px; font-weight: 600; border: none; background: transparent; color: var(--txt-2); padding: 5px 11px; border-radius: 7px; cursor: pointer; }
.seg button:hover { color: var(--txt); }
.seg button.active { background: linear-gradient(135deg, #e58f2c, #c9682a); color: #fff; }

/* ---------- destaque ---------- */
.spotlight { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 16px; }
.spot {
  position: relative; overflow: hidden; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--hc) 45%, #28344a);
  background: linear-gradient(160deg, color-mix(in srgb, var(--hc) 16%, #171d27), #121722 70%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.spot::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--hc), var(--accent), transparent);
}
.spot-bg {
  position: absolute; inset: 0; background-size: cover; background-position: 70% 20%;
  opacity: .22; filter: saturate(.9);
  -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 75%);
  mask-image: linear-gradient(100deg, transparent 25%, #000 75%);
}
.spot-in { position: relative; padding: 20px; display: grid; gap: 18px; }
.spot-top { display: flex; align-items: center; gap: 14px; }
.spot-top .av { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--bg-2); border: 2px solid color-mix(in srgb, var(--hc) 60%, #2b3850); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); flex: 0 0 64px; }
.spot-top .who { flex: 1; min-width: 0; }
.spot-top .nm { font-family: var(--head); font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spot-top .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--txt-2); margin-top: 3px; }
.star { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; background: linear-gradient(135deg, #f6c66b, #d9772b); color: #1a1206; box-shadow: 0 2px 10px rgba(240, 166, 58, .35); }
.star.sm { font-size: 9px; padding: 1px 6px; margin-left: 6px; }
.rank-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 8px 2px 4px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--rc) 60%, transparent); color: var(--txt); background: color-mix(in srgb, var(--rc) 18%, transparent); }
.rank-chip img { width: 18px; height: 18px; object-fit: contain; }

.spot-main { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: center; }
.wr-big { font-family: var(--head); font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.wr-sub { color: var(--txt-2); font-size: 12.5px; margin: 6px 0 8px; }
.wlbar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--bad-dim); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45); }
.wlbar .w { background: linear-gradient(90deg, #3fae74, var(--good)); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi { background: rgba(10, 13, 19, .55); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; display: grid; gap: 1px; min-width: 0; }
.kpi span { font-size: 10px; color: var(--txt-3); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { font-family: var(--head); font-size: 19px; font-weight: 600; }
.kpi i { font-style: normal; font-size: 10.5px; color: var(--txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.spot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* card estreito (2 colunas em tela média): WR em cima, KPIs embaixo */
.spot { container-type: inline-size; }
@container (max-width: 600px) {
  .spot-main { grid-template-columns: 1fr; gap: 12px; }
  .wr-block { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 14px; }
  .wr-block .wlbar { grid-column: 1 / -1; }
  .wr-sub { margin: 0 0 6px; }
}
@container (max-width: 420px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spot-row { grid-template-columns: 1fr; }
}
.spot-row .lbl { font-size: 10.5px; color: var(--txt-3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 7px; }
.form { display: flex; gap: 4px; flex-wrap: wrap; }
.form .d { width: 22px; height: 22px; border-radius: 5px; font-size: 10px; display: grid; place-items: center; font-weight: 700; color: #0e1116; text-decoration: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .12s; }
.form .d:hover { transform: translateY(-2px); }
.form .d.W { background: var(--good); }
.form .d.L { background: var(--bad); }
.spot-heroes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sh { display: flex; align-items: center; gap: 8px; background: rgba(10, 13, 19, .5); border: 1px solid var(--line); border-radius: 9px; padding: 4px 8px 4px 4px; min-width: 0; }
.sh img { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; background: var(--bg-2); flex: 0 0 32px; }
.sh div { display: grid; min-width: 0; }
.sh b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh span { font-size: 11px; font-family: var(--mono); }

/* ---------- dupla ---------- */
.duo { padding: 18px; display: grid; gap: 14px; }
.duo-head { display: flex; align-items: center; gap: 14px; }
.duo-avs { display: flex; }
.duo-avs img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #1a2231; object-fit: cover; background: var(--bg-2); }
.duo-avs img + img { margin-left: -12px; }
.duo-title { font-family: var(--head); font-size: 17px; font-weight: 600; }
.duo .muted { font-size: 12px; }
.duo-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.duo-list { display: grid; border-top: 1px solid var(--line); }
.duo-row { display: grid; grid-template-columns: 74px 1fr 1fr 150px 130px; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); color: var(--txt); font-size: 12.5px; }
.duo-row:hover { background: var(--panel-2); text-decoration: none; }
.duo-h { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duo-h img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }

.tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.tag.win { background: var(--good-dim); color: var(--good); }
.tag.loss { background: var(--bad-dim); color: var(--bad); }
.tag.vs { background: #2c2440; color: #c6a8ff; }

/* ---------- tabelas ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl-wrap.flat { border: none; box-shadow: none; background: transparent; border-radius: 0; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--txt-3); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: #19212f; position: sticky; top: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--panel-2); }
td.best { color: var(--accent-2); font-weight: 700; }
tr.feat td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.cmp-p { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.cmp-p img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.hero-cell { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.hero-cell img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; background: var(--bg-2); }
.numcell { position: relative; }
.numcell .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); opacity: .55; border-radius: 2px; }

/* ---------- caixa por jogador ---------- */
.boxes { display: grid; gap: 16px; }
.pbox { overflow: hidden; }
.pbox.featured { border-color: #5a4220; box-shadow: var(--shadow), 0 0 0 1px rgba(240, 166, 58, .08); }
.pb-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pb-head .av { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--bg-2); }
.pb-head .nm { font-family: var(--head); font-weight: 600; font-size: 17px; }
.pb-head .meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; margin-top: 2px; flex-wrap: wrap; }
.pb-mini { display: flex; gap: 16px; font-size: 12px; color: var(--txt-3); }
.pb-mini b { font-family: var(--head); font-size: 16px; color: var(--txt); margin-right: 2px; }
.pb-mini b.above { color: var(--good); }
.pb-mini b.below { color: var(--bad); }
.pb-chart { padding: 14px 18px 8px; border-bottom: 1px solid var(--line); }
.pb-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: var(--head); font-size: 12px; font-weight: 600; color: var(--txt-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.pb-chart-host { min-height: 170px; }
.pb-trend { font-size: 11.5px; padding: 4px 0; display: flex; gap: 8px; }
.pb-trend span:first-child { font-weight: 700; }
.metric-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.metric-tabs button { font: inherit; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--line-2); background: transparent; color: var(--txt-2); cursor: pointer; text-transform: none; letter-spacing: 0; }
.metric-tabs button.active { background: var(--panel-2); color: var(--txt); border-color: var(--accent); }
.pb-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #131a26; }
.pb-tabs button { font: inherit; font-size: 13px; font-weight: 600; border: none; background: transparent; color: var(--txt-3); padding: 11px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pb-tabs button:hover { color: var(--txt); }
.pb-tabs button.active { color: var(--txt); border-bottom-color: var(--accent); }
.pb-content { max-height: 520px; overflow-y: auto; }

.mlist { display: grid; }
.mrow { display: grid; grid-template-columns: 34px minmax(140px, 1.4fr) 76px 82px 130px 84px 60px 90px; gap: 10px; align-items: center; padding: 7px 18px; border-bottom: 1px solid var(--line); color: var(--txt); font-size: 12.5px; }
a.mrow:hover { background: var(--panel-2); text-decoration: none; }
.mrow img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.mrow.head { font-size: 10.5px; color: var(--txt-3); text-transform: uppercase; letter-spacing: .06em; padding-top: 9px; padding-bottom: 9px; background: #161d2a; position: sticky; top: 0; z-index: 1; }
.mr-h { display: grid; min-width: 0; }
.mr-h b { font-size: 13px; }
.mr-h small { color: var(--txt-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { margin: 12px auto; }

.mates { padding: 14px 18px; display: grid; gap: 10px; }
.mates .note { font-size: 11.5px; }
.mate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.mate { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(10, 13, 19, .35); }
.mate.tracked { border-color: #6b4f22; box-shadow: inset 3px 0 0 var(--accent); }
.mate img, .mate .ph { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.mt-n { display: grid; min-width: 0; }
.mt-n b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-n small { color: var(--txt-3); font-size: 11px; }

/* ---------- partida ---------- */
.match-head { padding: 20px; display: grid; gap: 14px; }
.mh-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.mh-team { display: grid; gap: 2px; }
.mh-team.right { text-align: right; }
.mh-team .tn { font-family: var(--head); font-size: 20px; font-weight: 700; }
.mh-team .ts { font-size: 12px; color: var(--txt-2); }
.t0c { color: var(--t0); }
.t1c { color: var(--t1); }
.mh-score { font-family: var(--head); font-size: 40px; font-weight: 700; display: flex; align-items: center; gap: 14px; }
.mh-score .x { color: var(--txt-3); font-size: 22px; }
.result-pill { padding: 4px 12px; border-radius: 20px; font-weight: 700; font-size: 12px; display: inline-block; }
.result-pill.t0 { background: var(--t0-dim); color: var(--t0); }
.result-pill.t1 { background: var(--t1-dim); color: var(--t1); }
.mh-meta { color: var(--txt-2); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.my-banner { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.my-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 30px; background: rgba(240, 166, 58, .1); border: 1px solid #6b4f22; font-size: 12.5px; }
.my-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

.search-box { display: flex; gap: 8px; max-width: 460px; }
.search-box input { flex: 1; }
.recent-pick { display: grid; gap: 0; margin-top: 14px; }

.scoreboard thead th { cursor: default; }
.sb-t0 thead th { background: #2a2112; color: #f1c27a; }
.sb-t1 thead th { background: #141f36; color: #9dbaf7; }
.sb-pl { display: flex; align-items: center; gap: 9px; }
.sb-pl img.h { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.sb-pl .nm { font-weight: 600; display: grid; }
.sb-pl .nm small { color: var(--txt-3); font-weight: 400; font-size: 11px; }
tr.mine { background: rgba(240, 166, 58, .07); }
tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.mvp { font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-left: 4px; background: #3a2f12; color: #ffd27a; }
.items { display: grid; grid-template-columns: repeat(8, 22px); gap: 2px; }
.it { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid rgba(0, 0, 0, .4); }
.it img { width: 16px; height: 16px; object-fit: contain; }
.it.weapon { background: #7a4a1c; }
.it.vitality { background: #3f6327; }
.it.spirit { background: #563479; }
.it.sold { opacity: .35; }

.charts-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.chart-box { padding: 16px; }
.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.chart-box h3 { font-size: 15px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--txt-2); margin-top: 8px; }
.legend .it2 { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; padding: 2px 4px; border-radius: 5px; }
.legend .it2.off { opacity: .35; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
svg .grid-line { stroke: var(--line); stroke-width: 1; }
svg .axis-txt { fill: var(--txt-3); font-size: 10px; font-family: var(--mono); }
.hoverline { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.tip { position: fixed; pointer-events: none; background: #0b0f15; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 12px; z-index: 90; box-shadow: var(--shadow); max-width: 280px; }
.tip .t-h { font-weight: 700; margin-bottom: 4px; }
.tip .t-r { display: flex; justify-content: space-between; gap: 14px; }

/* ---------- mapa ---------- */
.map-box { padding: 16px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 560px) minmax(200px, 1fr); gap: 22px; align-items: start; }
.map-holder svg { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid #2b3850; background: #0b0f15; box-shadow: var(--shadow); }
.map-controls { display: grid; gap: 12px; align-content: start; }
.map-controls select { width: 100%; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; user-select: none; }
.toggle input { width: auto; accent-color: var(--accent); }
.timeline { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.timeline input[type=range] { flex: 1; accent-color: var(--accent); }
.time-label { font-family: var(--mono); font-size: 14px; min-width: 52px; text-align: center; }
.play { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #e58f2c, #c9682a); border: none; color: #fff; cursor: pointer; font-size: 14px; }
.speed { display: flex; gap: 3px; }
.evt-feed { max-height: 300px; overflow: auto; font-size: 12px; border-top: 1px solid var(--line); }
.evt-feed .e { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 4px 2px; border-bottom: 1px solid var(--line); }
.evt-feed .e.past { opacity: 1; }
.evt-feed .e.future { opacity: .35; }
.evt-feed .e .tm { font-family: var(--mono); color: var(--txt-3); }
.map-note { font-size: 11.5px; color: var(--txt-3); }

/* ---------- timeline de itens ---------- */
.it-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
.it-body { display: inline-block; min-width: 100%; }
.it-row { display: flex; align-items: stretch; }
.it-name { position: sticky; left: 0; z-index: 3; flex: 0 0 160px; width: 160px; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 2px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; background: linear-gradient(180deg, #1a2231, #141a26 78%); border-right: 1px solid var(--line); }
.it-name img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; flex: 0 0 24px; }
.it-name span { overflow: hidden; text-overflow: ellipsis; }
.it-name.mine span { color: var(--accent-2); }
.it-team { font-family: var(--head); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.it-track { position: relative; height: 32px; flex: 0 0 auto; border-bottom: 1px solid var(--line); background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 150px 100%; }
.it-ruler .it-track { height: 20px; border-bottom: 1px solid var(--line-2); background-image: none; }
.it-ruler .it-name { background: transparent; border-right-color: transparent; }
.it-tick { position: absolute; top: 3px; font-family: var(--mono); font-size: 10px; color: var(--txt-3); transform: translateX(-50%); }
.it-track .it { position: absolute; top: 5px; transition: transform .12s; }
.it-track .it:hover { transform: scale(1.35); z-index: 4; }

/* ---------- modal ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(4, 7, 11, .68); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal { width: min(560px, 100%); max-height: 86vh; overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); }
.modal .m-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
.modal .m-bd { padding: 18px; display: grid; gap: 14px; }
.modal .close { background: transparent; border: none; color: var(--txt-2); font-size: 22px; cursor: pointer; line-height: 1; }
.grid { display: grid; }
.player-manage-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; }
.player-manage-item img { width: 34px; height: 34px; border-radius: 7px; }
.player-manage-item .rm { margin-left: auto; }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; }

/* ---------- misc ---------- */
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--txt-2); padding: 50px; }
.loading.slim { padding: 12px; justify-content: flex-start; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { background: var(--bad-dim); border: 1px solid #5a2a2a; color: #f0b0ac; padding: 12px 16px; border-radius: var(--r); margin: 10px 0; }
.empty { text-align: center; color: var(--txt-3); padding: 34px; }
footer { color: var(--txt-3); font-size: 12px; text-align: center; padding: 34px 0 10px; margin-top: 50px; position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, #2f3d55, transparent); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a3446; border-radius: 6px; border: 2px solid #12161d; }
::-webkit-scrollbar-thumb:hover { background: #3a4a63; }

@media (max-width: 1000px) {
  .spotlight { grid-template-columns: 1fr; }
  .duo-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-layout { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 34px 1fr 70px 76px 110px 60px; }
  .mrow > :nth-child(6), .mrow > :nth-child(8) { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px 60px; }
  .top-in { gap: 10px; flex-wrap: wrap; padding: 10px 16px; }
  .page-head h1 { font-size: 22px; }
  .spotlight { grid-template-columns: 1fr; }
  .spot-main { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spot-row { grid-template-columns: 1fr; }
  .duo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo-row { grid-template-columns: 64px 1fr 1fr; }
  .duo-row > :nth-child(4), .duo-row > :nth-child(5) { display: none; }
  .mrow { grid-template-columns: 30px 1fr 64px 70px; padding: 7px 12px; }
  .mrow > :nth-child(5), .mrow > :nth-child(7) { display: none; }
  .mh-teams { grid-template-columns: 1fr; text-align: center; }
  .mh-team.right { text-align: center; }
  .mh-score { justify-content: center; }
  .pb-mini { display: none; }
  .section-title .hint { display: none; }
}
