/* =========================================================
   KTV (Kontra TV) - HLTV-style theme (light + night mode)
   ========================================================= */
:root {
  --page: #14171a;
  --bg: #e5e7ea;
  --box: #ffffff;
  --row: #f6f6f6;
  --hover: #eef0f2;
  --text: #353535;
  --strong: #1f1f1f;
  --muted: #6c757d;
  --label: #6f7477;
  --link: #2d6da3;
  --link-hover: #1d4d75;
  --head: #2d6da3;
  --line: #e5e7ea;
  --line-2: #cccccc;
  --nav: #ffffff;
  --nav-text: #353535;
  --nav-hover: #f0f1f3;
  --shadow: 0 1px 2px 0 rgba(50, 50, 50, 0.4);
  --win: #08a500;
  --loss: #e40a0a;
  --hub: #2d3844;
  --hub-bar: #232a30;
  --hub-line: #3a454f;
  --tag: #f0a242;
  --star: #353535;
  --matchhead: linear-gradient(180deg, #e6ecf3 0%, #d5dee8 100%);
  --input: #ffffff;
  color-scheme: light;
}
html.night {
  --page: #000000;
  --bg: #1b1f23;
  --box: #2d3844;
  --row: #2a3440;
  --hover: #34414f;
  --text: #929a9e;
  --strong: #c9cfd2;
  --muted: #7d868c;
  --label: #929a9e;
  --link: #87a3bf;
  --link-hover: #b3c8dc;
  --head: #435971;
  --line: #3a4654;
  --line-2: #495867;
  --nav: #2d3844;
  --nav-text: #929a9e;
  --nav-hover: #3a4654;
  --shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.6);
  --win: #4fbf42;
  --loss: #e9514a;
  --star: #c9cfd2;
  --matchhead: linear-gradient(180deg, #34414f 0%, #2a3440 100%);
  --input: #232a30;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: 40px;
  background: var(--page);
  color: var(--text);
  font: 12px/20px "Open Sans", Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
img, svg { display: block; }
svg.flag, img.flag { display: inline-block; flex: none; width: 16px; height: 12px; object-fit: cover; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
html.night svg.flag, html.night img.flag { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); }
svg.logo, svg.evlogo, svg.avatar { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.won, .win { color: var(--win); }
.lost, .loss { color: var(--loss); }
.bold { font-weight: 700; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }

/* ---------------- navbar ---------------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: 40px; background: var(--nav); z-index: 100; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.navcon { max-width: 1200px; height: 40px; margin: 0 auto; display: flex; align-items: stretch; padding: 0 8px; }
.nav-logo { display: none; align-items: center; padding: 0 8px 0 0; }
body.scrolled .nav-logo { display: flex; }
.nav-content { display: flex; align-items: stretch; min-width: 0; }
.nav-item { position: relative; display: flex; }
.nav-link { display: flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--nav-text); font-size: 14px; white-space: nowrap; }
.nav-link:hover, .nav-item:hover > .nav-link { background: var(--nav-hover); color: var(--nav-text); }
.nav-link.selected { color: var(--strong); font-weight: 600; }
.nav-link .chev { opacity: 0.55; margin-top: 1px; }
.nav-dropdown { display: none; position: absolute; top: 40px; left: 0; min-width: 152px; background: var(--box); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); z-index: 110; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 6px 10px; font-size: 14px; line-height: 20px; color: var(--nav-text); border-bottom: 1px solid var(--line); white-space: nowrap; }
.nav-dropdown a:last-child { border-bottom: 0; }
.nav-dropdown a:hover { background: var(--nav-hover); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; padding-left: 10px; }
.nav-icon { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--bg); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nav-icon:hover { color: var(--strong); }
.nav-gear { background: transparent; border-radius: 4px; }
.menu-btn { display: none; }
.nav-search { position: relative; }
.nav-search-pop { position: absolute; right: 0; top: 36px; width: 320px; background: var(--box); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); padding: 8px; z-index: 120; }
.nav-search-pop input { width: 100%; height: 30px; border: 1px solid var(--line-2); background: var(--input); padding: 0 8px; color: var(--text); outline: none; }
.nav-search-pop input:focus { border-color: var(--link); }
.sr-group { margin-top: 8px; }
.sr-title { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--label); }
.sr-item { display: flex; align-items: center; gap: 7px; padding: 3px 4px; color: var(--link); }
.sr-item:hover { background: var(--hover); }
.sr-item small { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.sr-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-all { display: block; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); font-weight: 600; }

/* ---------------- page frame ---------------- */
.bgPadding { width: 1000px; max-width: 100%; margin: 0 auto; background: var(--bg); padding: 10px 0 16px; min-height: calc(100vh - 40px); }
.widthControl { padding: 0 12px; }
.logoCon { height: 60px; display: flex; align-items: center; margin-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--strong); }
.logo:hover { color: var(--strong); }
.logo-text { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.logo img { display: block; height: 60px; width: auto; }
.nav-logo img { display: block; height: 22px; width: auto; }
.footer .logo img { height: 35px; }

.colCon { display: flex; gap: 16px; align-items: flex-start; }
.leftCol { width: 160px; flex: none; font-size: 11px; line-height: 18px; }
.contentCol { width: 477px; flex: none; min-width: 0; }
.contentCol.wide { width: 638px; }
.rightCol, .rightCol2 { width: 145px; flex: none; font-size: 11px; line-height: 18px; min-width: 0; }

/* ---------------- sidebar parts ---------------- */
.side-label { font-size: 11px; line-height: 18px; text-transform: uppercase; color: var(--label); margin: 10px 0 2px; display: flex; justify-content: space-between; align-items: center; }
.side-label:first-child { margin-top: 0; }
.side-label a { color: var(--label); font-weight: 700; letter-spacing: 1px; }
.side-box { background: var(--box); box-shadow: var(--shadow); }
.col-box { display: flex; align-items: center; gap: 7px; min-height: 33px; padding: 4px 8px; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--link); }
.col-box:last-child { border-bottom: 0; }
.col-box:hover { background: var(--hover); }
.col-box .rnum { font-size: 14px; width: 18px; flex: none; }
.col-box .cb-text { min-width: 0; flex: 1; }
.col-box .cb-text b { display: block; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.col-box .cb-text small { display: block; color: var(--muted); font-size: 11px; }
.side-btn { display: block; background: var(--head); color: #fff; text-align: center; font-size: 11px; line-height: 17px; padding: 4px 6px; }
.side-btn:hover { color: #fff; filter: brightness(1.08); }
.side-btn small { display: block; opacity: 0.85; }

.potw { position: relative; display: block; height: 150px; background: #2d3844; overflow: hidden; box-shadow: var(--shadow); color: #fff; }
.potw:hover { color: #fff; }
.potw svg.avatar { position: absolute; left: -6px; bottom: 0; width: 112px; height: 112px; }
.potw-name { position: absolute; top: 12px; right: 8px; left: 56px; text-align: right; font-size: 17px; font-weight: 700; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.potw-sub { position: absolute; top: 32px; right: 8px; color: #9ec8f1; font-size: 11px; }
.potw-val { position: absolute; bottom: 22px; right: 8px; font-size: 20px; font-weight: 700; }
.potw-lbl { position: absolute; bottom: 5px; right: 8px; color: #9ec8f1; font-size: 11px; }

.gallery-card { display: block; background: var(--box); box-shadow: var(--shadow); text-align: center; color: var(--link); }
.gallery-card .art-wrap { height: 106px; overflow: hidden; }
.gallery-card .art-wrap svg { width: 100%; height: 100%; }
.gallery-card span { display: block; padding: 4px 6px; font-size: 12px; line-height: 17px; }

/* right col: today's matches */
.side-head { display: flex; justify-content: space-between; align-items: center; background: var(--head); color: #fff; font-size: 10px; line-height: 17px; font-weight: 700; text-transform: uppercase; padding: 5px; }
.side-head a { color: #fff; }
.teambox { display: flex; gap: 4px; padding: 3px 5px; border-bottom: 1px solid var(--line-2); background: var(--box); color: var(--link); }
.teambox:hover { background: var(--hover); }
.teambox:last-child { border-bottom: 0; }
.teamrows { flex: 1; min-width: 0; }
.teamrow { display: flex; align-items: center; gap: 4px; height: 18px; font-size: 12px; }
.teamrow .team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teambox .tb-extra { flex: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; font-size: 11px; line-height: 18px; color: var(--text); }
.teambox .tb-extra b { font-weight: 700; }
.teambox .tb-time { flex: none; align-self: center; font-size: 11px; color: var(--text); }
.teambox .tb-event { display: block; font-size: 11px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teambox.event-only { display: block; font-size: 11px; line-height: 16px; color: var(--muted); }
.teambox .stars-sm { color: var(--star); font-size: 8px; letter-spacing: -1px; line-height: 10px; }

/* right col 2: recent activity */
.activitylist { background: var(--box); box-shadow: var(--shadow); }
.activity { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 5px 0 7px; box-shadow: inset 2px 0 0 0 var(--cat, #ffae00); border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--link); }
.activity:last-child { border-bottom: 0; }
.activity:hover { background: var(--hover); }
.activity .topic { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity .count { color: var(--text); }
.minigame { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--box); box-shadow: var(--shadow); padding: 7px 8px; font-size: 12px; font-weight: 600; color: var(--text); }
.minigame .play { background: var(--head); color: #fff; font-size: 11px; font-weight: 700; padding: 0 8px; line-height: 20px; border-radius: 2px; }
.newtag { background: var(--head); color: #fff; font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 2px; line-height: 14px; margin-left: 4px; }

/* ---------------- headlines & boxes ---------------- */
.standard-headline { font-size: 13px; line-height: 22px; font-weight: 700; color: var(--strong); margin: 10px 0 4px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.standard-headline:first-child { margin-top: 0; }
.page-headline { font-size: 20px; line-height: 30px; font-weight: 700; color: var(--strong); margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-headline small { font-size: 12px; font-weight: 400; color: var(--muted); }
.sub-headline { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--strong); margin: 18px 0 6px; }
.sub-headline:first-child { margin-top: 0; }
.standard-box { background: var(--box); box-shadow: var(--shadow); padding: 15px; }
.standard-box.p10 { padding: 10px; }
.standard-list { background: var(--box); box-shadow: var(--shadow); }
.mt { margin-top: 12px; }
.mt20 { margin-top: 20px; }
.gap { height: 12px; }
.crumbs { font-size: 11px; color: var(--muted); margin: -6px 0 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.empty { padding: 22px 12px; text-align: center; color: var(--muted); }
.notice { font-size: 11px; color: var(--muted); }

.tab-bar { display: flex; background: var(--box); box-shadow: var(--shadow); margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-bar a { flex: 1; text-align: center; padding: 9px 10px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-bar a:hover { color: var(--strong); }
.tab-bar a.active { color: var(--strong); border-bottom-color: var(--link); }
.tab-bar a .count { font-weight: 400; margin-left: 3px; }

.small-tabs { display: flex; gap: 0; margin-bottom: 0; }
.small-tabs a, .small-tabs button { padding: 4px 10px; font-size: 12px; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.small-tabs .active { color: var(--strong); font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; padding: 0 12px; border: 0; border-radius: 2px; background: var(--head); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
.btn-grey { background: var(--bg); color: var(--text); }
.btn-grey:hover { color: var(--strong); }
.btn-sm { height: 22px; padding: 0 8px; font-size: 11px; }
.input { height: 28px; border: 1px solid var(--line-2); background: var(--input); padding: 0 8px; color: var(--text); font-size: 12px; outline: none; border-radius: 0; }
.input:focus { border-color: var(--link); }
textarea.input { height: auto; min-height: 90px; padding: 6px 8px; resize: vertical; width: 100%; line-height: 18px; }

.stars { color: var(--star); font-size: 9px; letter-spacing: 0; line-height: 10px; }
.flag-name { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.tl, .pl, .evl { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating-hi { color: var(--win); font-weight: 700; }
.rating-lo { color: var(--loss); font-weight: 700; }
.rating-mid { font-weight: 700; }
.change.up { color: var(--win); }
.change.down { color: var(--loss); }
.uav { width: 30px; height: 30px; color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 13px; }
.form { display: inline-flex; gap: 2px; }
.form i { font-style: normal; width: 16px; height: 16px; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--loss); }
.form i.w { background: var(--win); }

/* ---------------- home ---------------- */
.event-hub { background: var(--hub); box-shadow: var(--shadow); }
.event-hub-top { position: relative; display: block; height: 102px; overflow: hidden; color: #fff; }
.event-hub-top svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.event-hub-top .hub-title { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 19px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.event-hub-top .hub-logo { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); }
.event-hub-top .hub-badge { position: absolute; right: 8px; top: 8px; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 10px; font-weight: 700; padding: 0 6px; line-height: 16px; border-radius: 2px; text-transform: uppercase; }
.event-hub-bottom { display: flex; height: 35px; background: var(--hub-bar); }
.event-hub-link { flex: 1; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.85); font-size: 14px; border-left: 1px solid var(--hub-line); }
.event-hub-link:first-child { border-left: 0; }
.event-hub-link:hover { color: #fff; background: #2d3844; }
.news-banner { display: block; margin-top: 8px; height: 180px; overflow: hidden; box-shadow: var(--shadow); position: relative; background: #111; color: #fff; }
.news-banner:hover { color: #fff; }
.news-banner svg.art { width: 100%; height: 100%; }
.news-banner .nb-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.82)); font-size: 18px; font-weight: 700; line-height: 23px; }

.newsline { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); min-height: 33px; color: var(--link); }
.newsline:last-child { border-bottom: 0; }
.newsline:hover { background: var(--hover); }
.newstext { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 20px; }
.newsrecent { flex: none; text-align: right; font-size: 11px; line-height: 12px; color: var(--muted); white-space: nowrap; }
.newsrecent div + div { margin-top: 1px; }
.newsflag-dot { width: 16px; height: 12px; flex: none; background: var(--head); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
.featured-news { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); color: var(--strong); }
.featured-news:last-child { border-bottom: 0; }
.featured-news:hover { background: var(--hover); color: var(--strong); }
.featured-news .fn-img { width: 140px; height: 92px; flex: none; overflow: hidden; }
.featured-news .fn-img svg { width: 100%; height: 100%; }
.featured-news h3 { font-size: 18px; line-height: 24px; font-weight: 700; }
.featured-news p { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }

/* ---------------- results & matches ---------------- */
.result-con { display: block; background: var(--row); box-shadow: var(--shadow); margin-bottom: 4px; color: var(--text); }
.result-con:hover { background: var(--box); color: var(--text); }
.result { display: grid; grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr) 190px 52px; align-items: center; height: 37px; padding: 0 8px; font-size: 12px; }
.result .team-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.result .team-cell.t1 { justify-content: flex-end; text-align: right; }
.result .team-cell .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result .team-won { font-weight: 700; }
.result-score { text-align: center; font-weight: 700; font-size: 12px; white-space: nowrap; }
.result .event-cell { display: flex; align-items: center; gap: 6px; min-width: 0; padding-left: 12px; }
.result .event-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result .meta-cell { text-align: right; font-size: 11px; line-height: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.result .meta-cell .stars { display: block; color: var(--star); }
.results-pager { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 400; color: var(--muted); }
.results-pager a { font-size: 16px; font-weight: 700; }
.results-pager .off { opacity: 0.35; pointer-events: none; }

.match-day { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--strong); margin: 18px 0 6px; }
.match-day:first-child { margin-top: 0; }
.match-event-box { background: var(--box); box-shadow: var(--shadow); margin-bottom: 10px; }
.match-event-head { display: flex; align-items: center; gap: 7px; padding: 7px 10px; font-size: 13px; font-weight: 700; color: var(--strong); border-bottom: 1px solid var(--line); }
.match-event-head:hover { color: var(--link); }
.match-row { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-bottom: 1px solid var(--line); color: var(--text); }
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: var(--hover); color: var(--text); }
.match-time { width: 42px; flex: none; text-align: center; line-height: 16px; }
.match-time b { display: block; font-size: 14px; font-weight: 700; color: var(--strong); line-height: 20px; }
.bo-badge { display: inline-block; background: var(--bg); color: var(--muted); font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 2px; line-height: 16px; text-transform: uppercase; }
.match-teams { flex: 1; min-width: 0; }
.match-team { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 20px; height: 20px; }
.match-team .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-team.tbd { color: var(--muted); }
.match-side { display: flex; align-items: center; gap: 8px; flex: none; }
.stage-tag { background: var(--tag); color: #fff; font-size: 10px; font-weight: 700; padding: 0 6px; line-height: 16px; border-radius: 2px; white-space: nowrap; }
.match-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 3px; color: var(--muted); }

.filter-box { background: var(--box); box-shadow: var(--shadow); font-size: 12px; }
.filter-head { background: var(--head); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 7px; line-height: 17px; }
.filter-cat { display: flex; justify-content: space-between; align-items: center; padding: 4px 7px; font-size: 13px; font-weight: 600; color: var(--link); border-bottom: 1px solid var(--line); background: var(--box); }
.filter-opt { display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 18px; min-width: 0; }
.filter-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-opt span svg { display: inline-block; vertical-align: -3px; margin-right: 4px; }
.filter-opt:hover { color: var(--link); background: var(--hover); }
.filter-opt.selected { color: var(--link); font-weight: 700; }
.filter-opt:last-child { border-bottom: 0; }

.calendar { background: var(--box); box-shadow: var(--shadow); padding: 4px 6px 6px; font-size: 10px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; text-transform: uppercase; color: var(--muted); padding: 2px 0 4px; font-size: 10px; }
.cal-head a { color: var(--muted); padding: 0 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-grid .dow { font-weight: 700; color: var(--strong); font-size: 9.5px; }
.cal-grid a, .cal-grid span.d { display: block; font-size: 11px; font-weight: 700; line-height: 17px; color: var(--strong); border: 1px solid var(--line); margin: -1px 0 0 -1px; }
.cal-grid span.d { color: var(--line-2); font-weight: 400; }
.cal-grid a.today { background: var(--head); color: #fff; }
.cal-grid a.sel { outline: 2px solid var(--tag); outline-offset: -2px; }
.cal-grid a:hover { background: var(--hover); }

/* ---------------- match page ---------------- */
.team-box { display: grid; grid-template-columns: 1fr 210px 1fr; align-items: center; background: var(--matchhead); box-shadow: var(--shadow); min-height: 136px; padding: 14px 0; position: relative; overflow: hidden; }
.team-box .tb-team { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; position: relative; }
.team-box .tb-name { font-size: 17px; font-weight: 600; color: var(--link); }
.team-box .tb-score { font-size: 17px; font-weight: 700; }
.team-box .tb-center { text-align: center; position: relative; }
.team-box .tb-bigtime { font-size: 31px; font-weight: 700; line-height: 38px; color: var(--strong); }
.team-box .tb-date { font-size: 10px; line-height: 14px; color: var(--muted); }
.team-box .tb-ev { font-size: 12px; line-height: 18px; }
.team-box .tb-status { font-size: 16px; font-weight: 700; color: var(--strong); margin-top: 6px; }
.team-box .tb-count { font-size: 15px; font-weight: 700; color: var(--strong); margin-top: 6px; font-variant-numeric: tabular-nums; }
.team-box .tb-stars { position: absolute; color: #fff; opacity: 0.5; font-size: 10px; letter-spacing: 3px; }
.two-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.veto-box { padding: 8px 10px; font-size: 12px; line-height: 20px; }
.veto-box div { color: var(--text); }
.mapholder { background: var(--box); box-shadow: var(--shadow); margin-top: 6px; }
.mapholder .mapname { position: relative; height: 24px; overflow: hidden; text-align: center; color: #fff; font-weight: 700; font-size: 12px; line-height: 24px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
.mapholder .mapname svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapholder .mapname span { position: relative; }
.map-res { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; padding: 4px 8px; font-size: 12px; }
.map-res .side { display: flex; flex-direction: column; min-width: 0; line-height: 16px; }
.map-res .side:last-child { align-items: flex-end; text-align: right; }
.map-res .side .who { display: flex; align-items: center; gap: 5px; min-width: 0; }
.map-res .side .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-res .side b { font-size: 12px; }
.map-res .mid { font-size: 9px; font-weight: 700; color: var(--muted); border: 1px solid var(--line-2); padding: 0 4px; line-height: 13px; }
.map-res .pick { background: var(--head); color: #fff; font-size: 8px; font-weight: 700; padding: 0 3px; line-height: 11px; align-self: flex-start; }
.map-res .side:last-child .pick { align-self: flex-end; }
.map-res.unplayed { color: var(--muted); }
.info-box { padding: 10px; font-size: 12px; line-height: 18px; }
.info-box p { margin: 0 0 10px; }
.info-box p:last-child { margin: 0; }

.stats-content { background: var(--box); box-shadow: var(--shadow); }
.stats-menu { display: flex; gap: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.stats-menu button { border: 0; background: transparent; padding: 0; color: var(--link); cursor: pointer; font-size: 12px; }
.stats-menu button.active { font-weight: 700; color: var(--strong); }
.stats-panel { display: none; }
.stats-panel.active { display: block; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.stats-table th { text-align: center; font-size: 11px; font-weight: 700; color: var(--strong); padding: 4px 6px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--box); white-space: nowrap; }
.stats-table th.th-team { text-align: left; border-left: 0; font-size: 13px; }
.stats-table th.th-team .tl-name { color: var(--link); font-weight: 700; }
.stats-table td { text-align: center; padding: 2px 6px; height: 24px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); white-space: nowrap; }
.stats-table td.td-player { text-align: left; border-left: 0; }
.stats-table tbody tr:hover td { background: var(--hover); }
.stats-table + .stats-table { border-top: 6px solid var(--bg); }

.lineup { background: var(--box); box-shadow: var(--shadow); margin-bottom: 10px; }
.lineup-head { display: flex; align-items: center; gap: 7px; padding: 6px 8px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); }
.lineup-head .rankbadge { margin-left: auto; background: var(--head); color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px; line-height: 16px; border-radius: 2px; }
.lineup-players { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px; }
.lu-player { display: flex; flex-direction: column; align-items: center; min-width: 0; font-size: 12px; line-height: 18px; }
.lu-player .ph { width: 100%; aspect-ratio: 1; background: #48515a; overflow: hidden; }
.lu-player .ph svg { width: 100%; height: 100%; }
.lu-player span { display: flex; align-items: center; gap: 4px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 2px 0; }

.h2h-box { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; padding: 12px; }
.h2h-box b { display: block; font-size: 26px; line-height: 30px; }
.h2h-box small { color: var(--muted); }
.past-list { font-size: 12px; }
.past-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 52px; align-items: center; gap: 8px; padding: 4px 8px; border-bottom: 1px solid var(--line); color: var(--text); }
.past-row:last-child { border-bottom: 0; }
.past-row:hover { background: var(--hover); color: var(--text); }
.past-row .opp { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--link); }
.past-row .opp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.past-row .sc { text-align: right; font-weight: 700; }

.event-side { background: var(--box); box-shadow: var(--shadow); padding: 8px; }
.event-side .es-top { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--strong); }
.event-side .es-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; font-size: 10px; line-height: 13px; color: var(--muted); }
.event-side .es-facts b { display: block; color: var(--strong); font-size: 11px; }

/* ---------------- tables (generic) ---------------- */
.table { width: 100%; border-collapse: collapse; font-size: 12px; background: var(--box); }
.table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--strong); padding: 5px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--box); }
.table th a { color: var(--strong); }
.table th.sorted a { color: var(--link); }
.table td { padding: 4px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; height: 27px; }
.table tbody tr:nth-child(even) td { background: var(--row); }
.table tbody tr:hover td { background: var(--hover); }
.table .c { text-align: center; }
.table .r { text-align: right; }
.table td.dim { color: var(--muted); }
.table tr.me td { background: rgba(45, 109, 163, 0.12) !important; }
.table-wrap { overflow-x: auto; box-shadow: var(--shadow); background: var(--box); }

/* ---------------- events ---------------- */
.ongoing-box { background: var(--box); box-shadow: var(--shadow); }
.ongoing-tabs { display: flex; border-bottom: 1px solid var(--line); }
.ongoing-tabs a { padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); }
.ongoing-tabs a.active { color: var(--strong); background: var(--bg); }
.ongoing-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
.ongoing-event { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--row); box-shadow: var(--shadow); color: var(--text); min-width: 0; }
.ongoing-event:hover { background: var(--hover); color: var(--text); }
.ongoing-event .oe-text { min-width: 0; flex: 1; }
.ongoing-event b { display: block; font-size: 12px; color: var(--strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ongoing-event small { color: var(--muted); font-size: 11px; }
.ongoing-event .oe-teams { display: flex; gap: 2px; margin-top: 2px; }
.event-type-badge { background: var(--bg); color: var(--muted); font-size: 9px; font-weight: 700; padding: 0 6px; border-radius: 8px; line-height: 15px; text-transform: uppercase; flex: none; }
.big-events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.big-event { display: block; background: var(--box); box-shadow: var(--shadow); color: var(--text); }
.big-event:hover { color: var(--text); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.big-event .be-head { position: relative; height: 50px; overflow: hidden; color: #fff; }
.big-event .be-head svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.big-event .be-head b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.big-event .be-body { padding: 8px 10px 10px; }
.big-event .be-name { font-size: 13px; font-weight: 700; color: var(--strong); }
.big-event .be-loc { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-top: 2px; }
.big-event .be-loc .be-teams { margin-left: auto; display: flex; gap: 2px; }
.big-event .be-facts { display: grid; grid-template-columns: 1.3fr 1fr 0.7fr; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; font-size: 11px; line-height: 14px; color: var(--muted); }
.big-event .be-facts b { display: block; color: var(--strong); font-size: 12px; }
.month-headline { font-size: 16px; font-weight: 700; color: var(--strong); margin: 4px 0 8px; }
.upcoming-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 18px; }

.event-header { position: relative; height: 140px; overflow: hidden; box-shadow: var(--shadow); color: #fff; }
.event-header svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.event-header .eh-name { position: absolute; left: 14px; bottom: 12px; display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.info-table { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--box); box-shadow: var(--shadow); }
.info-table div { padding: 8px 10px; border-left: 1px solid var(--line); font-size: 11px; line-height: 15px; color: var(--muted); }
.info-table div:first-child { border-left: 0; }
.info-table b { display: block; color: var(--strong); font-size: 13px; }
.teams-attending { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.team-attend { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 6px; background: var(--box); box-shadow: var(--shadow); text-align: center; font-size: 12px; font-weight: 600; min-width: 0; }
.team-attend span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-attend small { color: var(--muted); font-weight: 400; font-size: 11px; }
.bracket { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 16px; overflow-x: auto; }
.br-col { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.br-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.br-match { display: block; background: var(--box); box-shadow: var(--shadow); color: var(--text); }
.br-match:hover { color: var(--text); background: var(--hover); }
.br-match small { display: block; padding: 0 6px; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--line); }
.br-team { display: flex; align-items: center; gap: 6px; padding: 2px 6px; font-size: 12px; }
.br-team span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-team.w { font-weight: 700; }
.br-team.w b { color: var(--win); }
.br-team.l b { color: var(--loss); }
.br-team.l { color: var(--muted); }

/* ---------------- ranking ---------------- */
.ranking-header { display: flex; background: var(--box); box-shadow: var(--shadow); margin-bottom: 12px; }
.ranking-header a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-size: 12px; color: var(--muted); border-bottom: 2px solid transparent; }
.ranking-header a.active { color: var(--strong); font-weight: 700; border-bottom-color: var(--link); }
.ranked-team { background: var(--box); box-shadow: var(--shadow); margin-bottom: 8px; display: block; color: var(--text); }
.ranked-team:hover { color: var(--text); }
.rt-header { display: flex; align-items: center; gap: 10px; padding: 6px 10px; min-height: 42px; }
.rt-pos { font-size: 14px; font-weight: 700; color: var(--strong); width: 34px; }
.rt-name { font-size: 15px; font-weight: 600; color: var(--strong); }
.rt-name small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.rt-players { font-size: 10px; color: var(--muted); line-height: 13px; }
.rt-change { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.rt-lineup { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0 10px 6px; }
.rt-lineup a { display: flex; flex-direction: column; align-items: center; font-size: 12px; }
.rt-lineup .ph { width: 100%; aspect-ratio: 1; background: #48515a; overflow: hidden; }
.rt-lineup .ph svg { width: 100%; height: 100%; }
.rt-lineup span { display: flex; align-items: center; gap: 4px; padding-top: 2px; }
.rt-more { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); text-align: center; font-weight: 700; font-size: 11px; }
.rt-more a { padding: 6px; color: var(--strong); }
.rt-more a:hover { color: var(--link); }

/* ---------------- player / team profile ---------------- */
.profile-box { display: flex; background: var(--box); box-shadow: var(--shadow); }
.profile-photo { position: relative; width: 125px; flex: none; background: #3a4552; overflow: hidden; min-height: 170px; }
.profile-photo svg.avatar { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 125px; height: 125px; }
.profile-photo .ptag { position: absolute; left: 0; top: 0; background: var(--head); color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px; line-height: 16px; }
.profile-photo .pflag { position: absolute; left: 4px; top: 22px; }
.profile-info { flex: 1; min-width: 0; padding: 10px 14px; }
.profile-nick { font-size: 22px; font-weight: 700; color: var(--strong); line-height: 28px; display: flex; align-items: center; gap: 8px; }
.profile-name { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.profile-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.profile-row:last-child { border-bottom: 0; }
.profile-row b { color: var(--strong); font-weight: 600; }
.profile-row span { display: inline-flex; align-items: center; gap: 5px; }
.achievement-strip { display: flex; gap: 4px; padding: 6px 8px; border-top: 1px solid var(--line); overflow-x: auto; background: var(--box); box-shadow: var(--shadow); }
.trophy { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; position: relative; }
.trophy small { position: absolute; right: -2px; bottom: -2px; background: var(--head); color: #fff; font-size: 8px; line-height: 12px; padding: 0 3px; border-radius: 6px; }

.team-photo { height: 150px; background: #3a4552; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 0 8px; overflow: hidden; }
.team-photo a { display: flex; flex-direction: column; align-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.team-photo svg.avatar { width: 100%; max-width: 110px; height: auto; border-radius: 0; }
.team-photo span { display: flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, 0.55); padding: 0 5px; margin-top: -18px; position: relative; }
.team-info { background: var(--box); box-shadow: var(--shadow); padding: 8px 12px 6px; border-top: 3px solid var(--head); }
.team-info .ti-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.team-info .ti-name { font-size: 22px; font-weight: 700; color: var(--strong); line-height: 26px; }
.team-info .ti-country { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }

.stat-bars { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.stat-bar-row { font-size: 12px; }
.stat-bar-row .sb-top { display: flex; justify-content: space-between; font-weight: 700; color: var(--strong); }
.stat-bar-row .sb-top span { font-weight: 400; color: var(--muted); }
.stat-bar-row .sb-top span b { color: var(--strong); }
.stat-bar { height: 4px; background: var(--bg); margin-top: 2px; }
.stat-bar i { display: block; height: 100%; background: var(--head); }
.stat-bar.good i { background: var(--win); }
.rating-box { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--strong); }
.rating-box span { font-size: 15px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); box-shadow: var(--shadow); }
.summary-grid div { background: var(--box); padding: 8px 10px; font-size: 11px; color: var(--muted); }
.summary-grid b { display: block; font-size: 18px; line-height: 24px; color: var(--strong); }
.spark { width: 100%; height: auto; }
.spark .line { fill: none; stroke: var(--head); stroke-width: 2; }
.spark .base { stroke: var(--line-2); stroke-dasharray: 4 4; }
.spark .lbl { fill: var(--muted); font-size: 10px; }
.spark circle.hi { fill: var(--win); }
.spark circle.lo { fill: var(--loss); }
.recent-match { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 4px; background: var(--row); box-shadow: var(--shadow); box-shadow: inset -3px 0 0 var(--loss), var(--shadow); color: var(--text); font-size: 12px; }
.recent-match.w { box-shadow: inset -3px 0 0 var(--win), var(--shadow); }
.recent-match:hover { background: var(--hover); color: var(--text); }
.recent-match .rm-opp { display: flex; align-items: center; gap: 5px; font-weight: 700; min-width: 0; }
.recent-match .rm-opp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-match small { display: block; font-size: 10px; color: var(--muted); line-height: 13px; }
.recent-match .rm-score { font-weight: 700; font-size: 13px; }

.player-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.player-card { display: block; background: var(--box); box-shadow: var(--shadow); color: var(--text); }
.player-card:hover { color: var(--text); background: var(--hover); }
.player-card .ph { aspect-ratio: 1; background: #48515a; overflow: hidden; }
.player-card .ph svg { width: 100%; height: 100%; }
.player-card .pc-body { padding: 4px 6px 6px; }
.player-card .pc-nick { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13px; color: var(--link); }
.player-card .pc-team { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.player-card .pc-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.team-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--box); box-shadow: var(--shadow); color: var(--text); }
.team-card:hover { background: var(--hover); color: var(--text); }
.team-card b { display: block; font-size: 14px; color: var(--link); }
.team-card small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.team-card .tc-rank { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--strong); }
.map-bars { padding: 6px 10px; }
.map-bar { display: grid; grid-template-columns: 70px minmax(0, 1fr) 76px; align-items: center; gap: 8px; font-size: 12px; padding: 3px 0; }
.map-bar b { color: var(--strong); }
.map-bar .stat-bar { margin: 0; height: 6px; }
.map-bar span { text-align: right; color: var(--muted); }

.filter-bar { display: flex; gap: 14px; flex-wrap: wrap; background: var(--box); box-shadow: var(--shadow); padding: 6px 10px; margin-bottom: 12px; align-items: flex-end; }
.filter-bar label { display: flex; flex-direction: column; font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--muted); line-height: 14px; min-width: 0; }
.filter-bar select, .filter-bar input { border: 0; border-bottom: 2px solid var(--link); background: transparent; color: var(--link); font-size: 12px; font-weight: 600; padding: 2px 0; min-width: 100px; outline: none; }
.filter-bar input { min-width: 150px; color: var(--text); font-weight: 400; }
.filter-bar select option { color: #353535; }

.mapcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mapcard { background: var(--box); box-shadow: var(--shadow); }
.mapcard .mc-head { position: relative; height: 60px; overflow: hidden; color: #fff; }
.mapcard .mc-head svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapcard .mc-head b { position: absolute; left: 10px; bottom: 6px; font-size: 18px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.mapcard .mc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 10px; font-size: 11px; color: var(--muted); }
.mapcard .mc-body b { display: block; color: var(--strong); font-size: 14px; }

/* ---------------- article & comments ---------------- */
.article { background: var(--box); box-shadow: var(--shadow); padding: 16px 18px 18px; }
.article h1 { font-size: 26px; line-height: 32px; color: var(--strong); margin-bottom: 6px; }
.article .author { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.article .author b { color: var(--link); }
.article .art-img { aspect-ratio: 16 / 8; overflow: hidden; margin: 0 -18px 14px; }
.article .art-img svg { width: 100%; height: 100%; }
.article .headertext { font-size: 15px; line-height: 23px; font-weight: 700; color: var(--strong); margin: 0 0 12px; }
.article .body p { font-size: 14px; line-height: 23px; margin: 0 0 12px; }
.article .body p.q { font-weight: 700; color: var(--strong); margin-top: 18px; }
.article .body a { font-weight: 600; }
.forum-post { display: grid; grid-template-columns: 1fr; background: var(--box); box-shadow: var(--shadow); margin-bottom: 6px; }
.post-head { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--row); border-bottom: 1px solid var(--line); font-size: 11px; }
.post-head b { color: var(--link); font-size: 12px; }
.post-head .num { margin-left: auto; color: var(--muted); }
.post-text { padding: 8px 10px; font-size: 13px; line-height: 19px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--strong); }
.post-foot { padding: 0 10px 4px; font-size: 10px; color: var(--muted); text-align: right; }
.post-form { background: var(--box); box-shadow: var(--shadow); padding: 10px; display: grid; gap: 8px; }
.post-form .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.post-form .hint { color: var(--muted); font-size: 11px; }
.you { background: var(--head); color: #fff; font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 2px; line-height: 13px; }

/* ---------------- forum ---------------- */
.forum-list { background: var(--box); box-shadow: var(--shadow); }
.forum-list-head { text-align: right; padding: 3px 10px; font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--strong); border-bottom: 1px solid var(--line); }
.forum-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--text); }
.forum-row:last-child { border-bottom: 0; }
.forum-row:hover { background: var(--hover); color: var(--text); }
.forum-row b { display: block; font-size: 14px; color: var(--link); }
.forum-row small { font-size: 12px; }
.forum-row .fr-meta { text-align: right; color: var(--muted); font-size: 11px; white-space: nowrap; }
.topic-table { width: 100%; border-collapse: collapse; background: var(--box); box-shadow: var(--shadow); font-size: 12px; }
.topic-table th { text-align: left; font-size: 10px; text-transform: uppercase; padding: 4px 8px; color: var(--strong); border-bottom: 1px solid var(--line-2); }
.topic-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.topic-table tr:nth-child(even) td { background: var(--row); }
.topic-table td a { font-weight: 600; }
.topic-table .c { text-align: center; }
.topic-table .r { text-align: right; color: var(--muted); white-space: nowrap; }
details.newthread summary { cursor: pointer; list-style: none; }
details.newthread summary::-webkit-details-marker { display: none; }

/* ---------------- fantasy ---------------- */
.fantasy-head { display: flex; align-items: center; gap: 10px; background: var(--box); box-shadow: var(--shadow); padding: 10px; margin-bottom: 12px; }
.fantasy-head .fh-text { flex: 1; min-width: 0; }
.fantasy-head b { font-size: 15px; color: var(--strong); display: block; }
.fantasy-head small { color: var(--muted); }
.fantasy-head .fh-lock { text-align: right; font-size: 11px; color: var(--muted); }
.fantasy-head .fh-lock b { font-size: 14px; font-variant-numeric: tabular-nums; }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 8px; }
.slot { background: var(--row); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 168px; position: relative; font-size: 11px; color: var(--muted); min-width: 0; }
.slot .ph { width: 100%; aspect-ratio: 1; background: #48515a; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #8a949d; }
.slot .ph svg.avatar { width: 100%; height: 100%; }
.slot b { color: var(--link); font-size: 12px; display: flex; align-items: center; gap: 4px; max-width: 100%; overflow: hidden; margin-top: 2px; }
.slot .acts { display: flex; gap: 2px; padding: 3px 0 4px; }
.slot.cap { outline: 2px solid var(--tag); outline-offset: -2px; }
.slot .cap-badge { position: absolute; top: 0; left: 0; background: var(--tag); color: #fff; font-size: 9px; font-weight: 700; padding: 0 4px; line-height: 14px; }
.budget { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 8px 8px; font-size: 12px; }
.budget .stat-bar { height: 8px; margin: 0; }
.pool-team-head { display: flex; align-items: center; gap: 7px; padding: 5px 8px; background: var(--row); font-weight: 700; font-size: 12px; color: var(--strong); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.pool-team-head small { margin-left: auto; color: var(--muted); font-weight: 400; }
.pool-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 62px 46px 74px 64px; align-items: center; gap: 8px; padding: 3px 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.pool-row.picked { background: rgba(45, 109, 163, 0.1); }
.pool-row svg.avatar { width: 28px; height: 28px; background: #48515a; }
.pool-row .nick { display: flex; align-items: center; gap: 5px; font-weight: 700; min-width: 0; }
.pool-row .nick a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-row .role { color: var(--muted); font-size: 11px; }
.pool-row .price { text-align: right; font-weight: 700; color: var(--strong); }
.pool-row .btn { width: 100%; }
.rules { margin: 0; padding-left: 18px; line-height: 22px; font-size: 13px; }

/* ---------------- media ---------------- */
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.media-card { display: block; background: var(--box); box-shadow: var(--shadow); cursor: pointer; border: 0; padding: 0; text-align: left; color: var(--text); width: 100%; }
.media-card:hover { background: var(--hover); }
.media-card .mc-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.media-card .mc-img svg.art { width: 100%; height: 100%; }
.media-card .play { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; }
.media-card .dur { position: absolute; right: 4px; bottom: 4px; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 10px; font-weight: 700; padding: 0 4px; line-height: 15px; }
.media-card .mc-body { padding: 4px 6px 6px; font-size: 12px; line-height: 16px; }
.media-card .mc-body b { display: block; color: var(--link); font-weight: 600; }
.media-card .mc-body small { color: var(--muted); font-size: 10px; }

.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); }
.modal-card { position: relative; width: min(900px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--box); box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6); }
.modal-x { position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 20px; cursor: pointer; }
.modal-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal-media svg.art, .modal-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-media .play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; }
.modal-info { padding: 10px 12px 12px; font-size: 12px; }
.modal-info h3 { font-size: 16px; color: var(--strong); }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 22px; cursor: pointer; }
.gal-nav.prev { left: 8px; }
.gal-nav.next { right: 8px; }
.gal-count { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 11px; padding: 0 6px; }
.thumbs { display: flex; gap: 4px; overflow-x: auto; padding: 6px 12px 0; }
.thumbs button { flex: none; width: 80px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; overflow: hidden; cursor: pointer; background: #111; }
.thumbs button.on { border-color: var(--tag); }
.thumbs svg { width: 100%; height: 100%; }

/* ---------------- footer ---------------- */
.footer { background: var(--hub-bar); color: #9aa3ab; font-size: 12px; }
.footer-inner { width: 1000px; max-width: 100%; margin: 0 auto; padding: 22px 22px 10px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 20px; }
.footer h4 { color: #fff; font-size: 12px; text-transform: uppercase; margin-bottom: 6px; }
.footer a { display: block; color: #9aa3ab; line-height: 22px; }
.footer a:hover { color: #fff; }
.footer p { margin: 8px 0 0; line-height: 18px; max-width: 300px; }
.footer-bottom { width: 1000px; max-width: 100%; margin: 0 auto; padding: 10px 22px 18px; border-top: 1px solid #333c45; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11px; }
.footer .logo { color: #fff; }
.footer .logo-text { font-size: 28px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1010px) {
  .bgPadding { width: 100%; }
  .colCon { flex-direction: column; }
  .leftCol, .contentCol, .contentCol.wide, .rightCol, .rightCol2 { width: 100%; }
  .contentCol { order: 1; }
  .rightCol { order: 2; }
  .leftCol { order: 3; }
  .rightCol2 { order: 4; }
  .rightCol .side-list, .rightCol2 .activitylist { columns: 2; column-gap: 8px; }
  .menu-btn { display: inline-flex; }
  .nav-content { display: none; }
  body.nav-open .nav-content { display: flex; flex-direction: column; position: fixed; top: 40px; left: 0; right: 0; bottom: 0; overflow: auto; background: var(--nav); padding-bottom: 20px; }
  body.nav-open .nav-item { flex-direction: column; }
  body.nav-open .nav-link { height: 42px; border-bottom: 1px solid var(--line); }
  body.nav-open .nav-link .chev { display: none; }
  body.nav-open .nav-dropdown { display: block; position: static; box-shadow: none; padding-left: 14px; background: transparent; }
  .nav-logo { display: flex; }
  .logoCon { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .widthControl { padding: 0 8px; }
  .result { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) 40px; height: auto; min-height: 37px; padding: 4px 6px; }
  .result .event-cell { display: none; }
  .two-cols { grid-template-columns: minmax(0, 1fr); }
  .team-box { grid-template-columns: 1fr 130px 1fr; }
  .team-box .tb-bigtime { font-size: 24px; }
  .team-box svg.logo { width: 48px; height: 48px; }
  .team-box .tb-name { font-size: 14px; }
  .lineup-players, .rt-lineup { gap: 3px; }
  .player-grid, .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid, .big-events, .ongoing-list, .mapcards { grid-template-columns: minmax(0, 1fr); }
  .teams-attending { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-table, .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-table div:nth-child(3) { border-left: 0; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pool-row { grid-template-columns: 28px minmax(0, 1fr) 70px 60px; }
  .pool-row .role, .pool-row .rt { display: none; }
  .featured-news .fn-img { width: 110px; height: 72px; }
  .featured-news h3 { font-size: 15px; line-height: 20px; }
  .featured-news p { display: none; }
  .profile-photo { width: 100px; }
  .match-row { gap: 8px; }
  .stage-tag { display: none; }
  .nav-search-pop { position: fixed; left: 8px; right: 8px; top: 44px; width: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .rightCol .side-list, .rightCol2 .activitylist { columns: 1; }
}

/* =========================================================
   real images, accounts, admin panel
   ========================================================= */
img.logo, img.evlogo { object-fit: contain; flex: none; display: inline-block; }
.ph img.pphoto, .ph svg.silhouette { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
svg.silhouette { display: block; width: 100%; height: 100%; }
img.art { width: 100%; height: 100%; object-fit: cover; display: block; }
img.art.contain { object-fit: contain; background: #000; }
.news-banner img { width: 100%; height: 100%; object-fit: cover; }
.article .art-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-news .fn-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card .art-wrap img { width: 100%; height: 100%; object-fit: cover; }
.mapholder .mapname img.art { position: absolute; inset: 0; }
.mapcard .mc-head img.art { position: absolute; inset: 0; }
.media-card .mc-img img.art { position: absolute; inset: 0; }
.modal-media img.art { position: absolute; inset: 0; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.potw .potw-ph { position: absolute; left: 0; bottom: 0; width: 110px; height: 110px; overflow: hidden; }
.potw .potw-ph img, .potw .potw-ph svg { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.profile-photo img.pphoto, .profile-photo svg.silhouette { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-photo a { position: relative; height: 150px; justify-content: flex-end; }
.team-photo .tp-ph { display: block; width: 100%; max-width: 120px; height: 128px; overflow: hidden; }
.team-photo .tp-ph img, .team-photo .tp-ph svg { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-photo .tp-name { display: flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, 0.6); padding: 0 5px; margin-top: -18px; position: relative; }
.slot .ph img.pphoto { width: 100%; height: 100%; object-fit: cover; }
.pool-row .pr-ph { width: 28px; height: 28px; overflow: hidden; display: block; }
.pool-row .pr-ph img, .pool-row .pr-ph svg { width: 100%; height: 100%; object-fit: cover; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.event-desc p { margin: 0 0 8px; font-size: 13px; line-height: 20px; }
.event-desc p:last-child { margin: 0; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.notice-bar { background: rgba(240, 162, 66, 0.15); border-left: 3px solid var(--tag); padding: 8px 10px; margin-bottom: 10px; font-size: 12px; line-height: 18px; color: var(--text); }
.notice-bar code, .hint code { background: var(--bg); padding: 0 4px; border-radius: 2px; }
.hint { font-size: 11px; color: var(--muted); line-height: 16px; margin: 0; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--link); cursor: pointer; font-size: inherit; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger, .danger { color: var(--loss); }
.btn-danger { background: var(--loss); }
.admin-tools { display: inline-flex; gap: 6px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1f2933; color: #fff; padding: 10px 16px; border-radius: 4px; font-size: 13px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 300; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #b3261e; }

/* user menu in the navbar */
.user-menu { display: flex; align-items: stretch; height: 40px; }
.nav-signin { display: flex; align-items: center; padding: 0 10px; font-size: 14px; color: var(--link); }
.user-item .nav-link { font-weight: 600; gap: 7px; }
.user-item .nav-link .un { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* avatars next to names */
.uav.round { border-radius: 0; object-fit: cover; overflow: hidden; }
img.uav.round { display: inline-block; background: var(--bg); }
.post-user { display: inline-flex; align-items: center; gap: 6px; }
.post-user:hover b { text-decoration: underline; }
.role-tag { background: var(--tag); color: #fff; font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 2px; line-height: 13px; }
.user-cell { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }

/* =========================================================
   user profiles (HLTV style: flat boxes, square avatar)
   ========================================================= */
.up-box { background: var(--box); box-shadow: var(--shadow); }
.up-banner { aspect-ratio: 25 / 6; overflow: hidden; background: var(--hub); border-bottom: 1px solid var(--line); }
.up-banner img { width: 100%; height: 100%; object-fit: cover; }
.up-head { display: flex; }
.up-av { position: relative; width: 125px; height: 125px; flex: none; overflow: hidden; background: #3a4552; margin: 10px 0 10px 10px; }
.up-av img, .up-av svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-head .profile-nick { min-width: 0; }
.up-head .profile-nick .ellipsis { padding-bottom: 3px; margin-bottom: -3px; }
.up-head .profile-nick .you { font-size: 10px; line-height: 15px; padding: 0 5px; }
.up-edit { margin-left: auto; }
.up-row { padding: 5px 10px; }
.up-row > span { min-width: 0; justify-content: flex-end; text-align: right; }
.up-bio { font-size: 13px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--strong); }
.up-pic { display: flex; gap: 12px; align-items: flex-start; }
.up-av-prev { width: 96px; height: 96px; margin: 0; }
.up-bn-prev { aspect-ratio: 25 / 6; max-width: 520px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); border: 1px dashed var(--line-2); color: var(--muted); font-size: 11px; }
.up-bn-prev img { width: 100%; height: 100%; object-fit: cover; }
.up-save { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.hint.r { text-align: right; }
@media (max-width: 640px) {
  .up-av { width: 90px; height: 90px; }
  .up-head .profile-nick { font-size: 18px; flex-wrap: wrap; }
  .up-pic { flex-direction: column; }
  .user-item .nav-link .un { display: none; }
}
.nav-dropdown.right { left: auto; right: 0; }

/* sign in / register */
.auth-box { max-width: 380px; }
.fld { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--strong); }
.fld .input { width: 100%; height: 32px; font-size: 13px; }

/* admin panel */
body.admin-mode .bgPadding { width: 1200px; }
.admin { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; }
.admin-nav { background: var(--box); box-shadow: var(--shadow); position: sticky; top: 52px; }
.admin-nav-head { background: var(--head); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 5px 10px; }
.admin-nav a { display: block; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); }
.admin-nav a:hover { background: var(--hover); }
.admin-nav a.active { color: var(--link); font-weight: 700; box-shadow: inset 3px 0 0 var(--head); }
.admin-nav a.back { color: var(--muted); border-bottom: 0; }
.admin-main { min-width: 0; }
.admin-search { margin-bottom: 8px; }
.admin-search .input { width: 260px; max-width: 100%; }
.admin-form { padding: 12px 14px; }
.fld-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: start; }
.fld-row:last-child { border-bottom: 0; }
.fld-label { font-size: 12px; font-weight: 700; color: var(--strong); padding-top: 5px; }
.fld-label .req { color: var(--loss); }
.fld-input { min-width: 0; }
.fld-input > .input, .fld-input > select.input { width: 100%; max-width: 520px; }
.fld-input textarea.input { max-width: 100%; font-size: 13px; line-height: 20px; }
.form-section { font-size: 14px; color: var(--strong); margin: 12px 0 4px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.form-section:first-child { margin-top: 0; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.colors { display: inline-flex; gap: 6px; }
input[type="color"] { width: 44px; height: 28px; padding: 0 2px; border: 1px solid var(--line-2); background: var(--input); cursor: pointer; }
.multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid var(--line-2); background: var(--input); }
.img-field { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.img-preview { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px dashed var(--line-2); font-size: 11px; color: var(--muted); overflow: hidden; }
.img-preview img { width: 100%; height: 100%; object-fit: contain; }
.file-btn { cursor: pointer; }
.gallery-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.g-item { position: relative; width: 84px; height: 60px; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; line-height: 16px; padding: 0; }
.rows-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.rows-table th { text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--muted); padding: 2px 4px; }
.rows-table td { padding: 2px 4px 2px 0; }
.rows-table .input { width: 100%; height: 26px; padding: 0 5px; }
.table .actions a, .table .actions .linkbtn { margin-left: 10px; }
.table td a .logo { vertical-align: middle; display: inline-block; }
.mono { font-family: Consolas, "Courier New", monospace; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; }
.checklist { margin: 0; padding-left: 20px; line-height: 26px; font-size: 13px; }
.checklist li.done a { color: var(--muted); text-decoration: line-through; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.summary-grid a { color: inherit; display: block; }
@media (max-width: 1010px) {
  body.admin-mode .bgPadding { width: 100%; }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: static; display: flex; flex-wrap: wrap; }
  .admin-nav-head { width: 100%; }
  .admin-nav a { border-bottom: 0; border-right: 1px solid var(--line); }
  .user-menu .nav-dropdown { right: 0; }
}
@media (max-width: 640px) {
  .fld-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fld-label { padding-top: 0; }
  .rows-table, .rows-table tbody, .rows-table tr { display: block; }
  .rows-table thead { display: none; }
  .rows-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 4px 0; border-bottom: 1px solid var(--line); }
  .rows-table td { padding: 0; }
}

/* =========================================================
   picture crop / zoom editor (avatar, banner, forum)
   ========================================================= */
.crop { padding: 12px; }
.crop-title { font-size: 15px; line-height: 22px; font-weight: 700; color: var(--strong); margin-bottom: 8px; padding-right: 36px; }
.crop-wrap { display: flex; justify-content: center; padding: 10px; background: #0b0d10; }
.crop-stage { position: relative; touch-action: none; cursor: grab; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7); user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage canvas { display: block; width: 100%; height: 100%; }
.crop-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
}
.crop-bar, .crop-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.crop-aspects { display: inline-flex; gap: 4px; }
.crop-zoom { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 160px; font-size: 12px; font-weight: 600; color: var(--strong); }
.crop-zoom input { flex: 1; }
.crop-out { margin-left: auto; }

/* pictures in forum posts */
.post-imgs { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 0 10px 8px; }
.post-head + .post-imgs { padding-top: 8px; }
.post-img { margin: 0; min-width: 48px; max-width: 100%; }
.post-img a { display: block; cursor: zoom-in; }
.post-img img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--bg); }
.img-size { display: none; align-items: center; gap: 6px; margin-top: 3px; font-size: 11px; }
.img-size input { flex: 1; min-width: 70px; }
.img-size b { min-width: 34px; text-align: right; color: var(--strong); font-weight: 600; }
.forum-post.resizing .img-size { display: flex; }
.forum-post.resizing .post-img { outline: 1px dashed var(--line-2); outline-offset: 2px; }
.forum-post.resizing .post-img a { cursor: default; }
.att { display: grid; gap: 6px; }
.att-list { display: grid; gap: 6px; }
.att-list:empty { display: none; }
.att-item { padding: 6px; background: var(--row); border: 1px solid var(--line); }
.att-item .img-size { display: flex; flex: 1; min-width: 220px; margin: 0; }
.att-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.att-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.att-add[hidden] { display: none; }
.lightbox { display: flex; justify-content: center; background: #000; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 32px); object-fit: contain; }

/* automod (admin panel) */
.am-count { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--loss); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.am-item { background: var(--box); box-shadow: var(--shadow); margin-bottom: 8px; }
.am-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 5px 10px; background: var(--row); border-bottom: 1px solid var(--line); font-size: 12px; }
.am-when { margin-left: auto; }
.am-title { padding: 8px 10px 0; font-size: 14px; font-weight: 700; color: var(--strong); }
.am-thumbs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 10px 8px; }
.am-thumbs img { width: 96px; height: 64px; object-fit: cover; border: 1px solid var(--line); }
.am-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border-top: 1px solid var(--line); }
.am-tag { display: inline-block; margin: 2px 4px 2px 0; padding: 0 6px; border-radius: 2px; background: rgba(240, 162, 66, 0.18); color: var(--strong); font-size: 11px; line-height: 18px; }
.am-log td { white-space: normal; vertical-align: top; }
.am-log .am-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.inline-num { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Roblox account card */
.rbx-card { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding: 6px 8px; background: var(--row); border: 1px solid var(--line); }
.rbx-card img, .rbx-noimg { width: 48px; height: 48px; flex: none; background: var(--bg); object-fit: cover; }
.rbx-names { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 18px; }
.rbx-names b { color: var(--strong); font-size: 13px; }
.rbx-names small { color: var(--muted); font-size: 11px; }
.rbx-ver { color: #00a2ff; font-size: 11px; }
.rbx-field .quick { align-items: center; }
.hint.danger { color: var(--loss); }

/* Roblox verification */
.rbx-tag { background: var(--muted); vertical-align: 1px; }
.rbx-tag.ok { background: var(--win); }
.rbx-verify { margin-top: 6px; padding: 8px 10px; background: rgba(240, 162, 66, 0.12); border-left: 3px solid var(--tag); font-size: 12px; line-height: 18px; }
.rbx-verify.ok { background: rgba(8, 165, 0, 0.1); border-left-color: var(--win); }
.rbx-verify ol { margin: 6px 0; padding-left: 18px; }
.rbx-verify li { margin: 4px 0; }
.rbx-code code { padding: 1px 6px; background: var(--box); border: 1px solid var(--line-2); font-size: 13px; color: var(--strong); }

/* =========================================================
   Major coverage hub (#/major), dark like the HLTV Major hub
   ========================================================= */
body.major-mode { background: #000; padding-top: 46px; }
body.major-mode .navbar, body.major-mode .logoCon { display: none; }
body.major-mode .bgPadding { width: 100%; max-width: none; background: #000; padding: 0; min-height: calc(100vh - 46px); }
body.major-mode .widthControl { padding: 0; }
.nav-link.nav-major { color: var(--mj, #ff0000); font-weight: 700; }
.mj { --mj: #ff0000; background: #000; color: #fff; font-size: 12px; padding-bottom: 60px; }
.mj a { color: #fff; }
.mj-bar { position: fixed; top: 0; left: 0; right: 0; height: 46px; background: #000; z-index: 120; display: flex; justify-content: center; }
.mj-back { position: absolute; left: 0; top: 0; height: 46px; display: flex; align-items: center; padding: 0 16px; background: rgba(0, 0, 0, 0.75); border-right: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; }
.mj-tabs { display: flex; max-width: 932px; width: 100%; justify-content: space-between; padding: 0 16px 0 120px; overflow-x: auto; scrollbar-width: none; }
.mj-tabs::-webkit-scrollbar { display: none; }
.mj-tabs a { display: flex; align-items: center; height: 46px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.mj-tabs a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mj-tabs a.active { background: var(--mj); font-weight: 700; }
.mj-preview { max-width: 1216px; margin: 12px auto 0; padding: 8px 16px; border: 1px dashed var(--mj); color: #ddd; text-align: center; }
.mj-preview a { color: var(--mj); font-weight: 700; }
.mj-hero { text-align: center; padding: 80px 0 0; }
.mj-logos { display: flex; align-items: center; justify-content: center; gap: 160px; height: 96px; }
.mj-logo { display: inline-flex; width: 96px; height: 96px; align-items: center; justify-content: center; }
.mj-logo img, .mj-logo svg { max-width: 100%; max-height: 100%; object-fit: contain; }
.mj-sitelogo { height: 48px; width: auto; }
.mj-title { margin: 70px auto 0; padding: 0 16px; font-size: 40px; line-height: 48px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.mj-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 50px auto 0; max-width: 1265px; }
.mj-stats > div { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 50px; border-right: 1px solid rgba(255, 255, 255, 0.25); }
.mj-stats > div:last-child { border-right: 0; }
.mj-stats b { font-size: 18px; line-height: 30px; }
.mj-stats span { font-size: 12px; line-height: 20px; }
.mj-tl { position: relative; max-width: 1265px; margin: 50px auto 0; height: 160px; }
.mj-tl-items { position: absolute; inset: 0 0 6px; }
.mj-tl-item { position: absolute; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: 190px; text-align: center; color: #fff; }
.mj-tl-item:hover b { color: var(--mj); }
.mj-tl-item svg, .mj-tl-item img { margin-bottom: 14px; }
.mj-tl-item b { font-size: 12px; line-height: 20px; }
.mj-tl-item.last b { font-size: 18px; line-height: 26px; }
.mj-tl-item small { color: #bbb; font-size: 12px; line-height: 20px; margin-bottom: 30px; }
.mj-tl-dot { position: absolute; bottom: -8px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; }
.mj-tl-line { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #333; }
.mj-tl-line span { display: block; height: 100%; background: #fff; }
.mj-wrap { max-width: 1265px; margin: 0 auto; padding: 0 32px; }
.mj-wrap.mj-narrow { max-width: 1064px; }
.mj-pad { padding-top: 40px; }
.mj-h2 { font-size: 32px; line-height: 48px; font-weight: 700; margin: 110px 0 12px; }
.mj-pad > .mj-h2:first-child { margin-top: 0; }
.mj-h3 { font-size: 18px; line-height: 28px; font-weight: 700; margin: 0; }
.mj-stage-title { margin: 30px 0 6px; }
.mj-stage-title small { font-size: 12px; font-weight: 400; color: #aaa; margin-left: 8px; }
.mj-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; margin: 14px 0 6px; color: #ddd; }
.mj-sel { display: flex; flex-wrap: wrap; }
.mj-sel button { height: 32px; padding: 0 10px; border: 1px solid var(--mj); margin: 0 -1px -1px 0; background: transparent; color: #fff; font-size: 12px; cursor: pointer; }
.mj-sel button.active { background: var(--mj); font-weight: 700; }
.mj-empty { width: 362px; max-width: 100%; padding: 22px 12px; border: 1px solid var(--mj); text-align: center; font-weight: 700; color: #ccc; }
.mj-empty a { color: var(--mj); }
.mj-matches { margin-top: 10px; border: 1px solid rgba(255, 255, 255, 0.1); max-width: 760px; }
.mj-match { display: grid; grid-template-columns: 60px 1fr 64px 1fr 110px; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mj-match:last-child { border-bottom: 0; }
.mj-match:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.mj-mt { color: #bbb; }
.mj-mteam { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; }
.mj-mteam span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mj-mteam.r { justify-content: flex-end; }
.mj-mteam .w { color: var(--mj); }
.mj-msc { text-align: center; font-weight: 700; font-size: 14px; }
.mj-mbo { text-align: right; color: #999; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mj-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mj-head .mj-h2 { margin-bottom: 12px; }
.mj-more { font-size: 18px; font-weight: 700; text-decoration: underline; color: #ccc !important; }
.mj-news { position: relative; display: block; overflow: hidden; background: #111; border: 1px solid rgba(255, 255, 255, 0.12); }
.mj-news-img { position: absolute; inset: 0; }
.mj-news-img img, .mj-news-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.mj-news b { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 8px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.92) 45%); font-size: 22px; line-height: 30px; font-weight: 700; }
.mj-news:hover b { color: var(--mj); }
.mj-news-top { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.mj-news.big { height: 494px; }
.mj-news.big b { font-size: 48px; line-height: 70px; }
.mj-news-side { display: grid; gap: 22px; }
.mj-news.side { height: 236px; }
.mj-news-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.mj-news.small { height: 220px; }
.mj-wide { max-width: 1265px; margin-top: 110px; }
.mj-toggle { display: inline-flex; gap: 8px; }
.mj-toggle button { border: 0; background: transparent; color: #fff; font-size: 12px; padding: 4px 8px; cursor: pointer; }
.mj-toggle button.active { background: var(--mj); font-weight: 700; }
.mj-stages { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; }
.mj-stages .mj-stage { flex: 1; min-width: 0; }
.mj-arrow { align-self: center; color: #ddd; font-size: 14px; }
.mj-stage-h { font-size: 10px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.mj-teams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-height: 70px; overflow: hidden; }
.mj-stage.open .mj-teams { max-height: none; }
.mj-team { display: flex; align-items: center; gap: 5px; height: 31px; padding: 0 6px; background: #000; border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85) !important; font-size: 10px; min-width: 0; }
.mj-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.mj-team:hover { border-color: var(--mj); }
.mj-team.ph { color: rgba(255, 255, 255, 0.55) !important; }
.mj-expand { display: block; margin: 8px auto 0; border: 0; background: transparent; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.mj-playoffs { max-width: 430px; margin: 26px auto 0; text-align: center; }
.mj-playoffs .mj-stage-h { font-size: 12px; text-transform: none; font-weight: 400; }
.mj-venue { display: grid; grid-template-columns: 1fr 1fr; margin-top: 110px; border: 1px solid rgba(255, 255, 255, 0.2); min-height: 480px; }
.mj-venue-text { padding: 40px 34px; }
.mj-venue-text .mj-h2 { margin-top: 0; }
.mj-venue-text p { font-size: 14px; line-height: 24px; margin: 0 0 16px; }
.mj-venue-img { position: relative; overflow: hidden; background: #111; }
.mj-venue-img img, .mj-venue-img svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mj-tiles { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0; }
.mj-tiles div { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 120px; padding: 10px; border: 1px solid rgba(255, 255, 255, 0.3); text-align: center; }
.mj-tiles b { font-size: 14px; }
.mj-tiles span { font-size: 10px; }
.mj-link { color: var(--mj) !important; font-weight: 700; font-size: 14px; }
.mj-fact { margin-top: 110px; padding: 160px 16px; text-align: center; background: radial-gradient(ellipse 42% 50% at center, #3a3a3a 0%, #161616 45%, #000 100%); }
.mj-fact h2 { color: var(--mj); font-size: 40px; line-height: 48px; margin: 0 0 20px; }
.mj-fact p { font-size: 24px; line-height: 34px; margin: 0; }
.mj-arrows { display: inline-flex; gap: 8px; }
.mj-arrows button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mj); color: #fff; font-size: 22px; line-height: 34px; cursor: pointer; }
.mj-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 3); gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mj-track::-webkit-scrollbar { display: none; }
.mj-win { scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.2); }
.mj-win-img { display: flex; align-items: center; justify-content: center; height: 200px; }
.mj-win-body { display: flex; flex-direction: column; flex: 1; padding: 14px 12px 12px; }
.mj-win-team { display: flex; align-items: center; gap: 8px; }
.mj-win-team b { color: var(--mj); font-size: 22px; line-height: 30px; }
.mj-win-ev { font-size: 14px; font-weight: 700; margin: 6px 0 10px; }
.mj-win-body p { font-size: 14px; line-height: 24px; margin: 0 0 16px; flex: 1; }
.mj-btn { align-self: flex-start; padding: 9px 16px; background: var(--mj); font-weight: 700; font-size: 12px; }
.mj-btn:hover { filter: brightness(1.15); color: #fff; }
.mj-about { display: grid; grid-template-columns: 1fr 366px; gap: 70px; align-items: start; margin-top: 110px; }
.mj-about .mj-h2 { margin-top: 0; }
.mj-about p { font-size: 18px; line-height: 24px; margin: 0 0 24px; }
.mj-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 26px; margin-top: 10px; }
.mj-facts span { display: block; font-size: 11px; color: #aaa; }
.mj-facts b { font-size: 14px; }
.mj-prizes { padding: 18px 17px; background: #050505; border: 1px solid rgba(255, 255, 255, 0.3); }
.mj-prize-h, .mj-prize { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.mj-prize-h { height: 18px; margin-bottom: 8px; font-size: 10px; font-weight: 700; color: #bbb; }
.mj-prize span { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.mj-trophy { flex: none; }
.mj-table-wrap { overflow-x: auto; border: 1px solid rgba(255, 255, 255, 0.12); padding: 0 16px 6px; }
.mj-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mj-table th { text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #bbb; padding: 16px 6px 8px; white-space: nowrap; }
.mj-table td { padding: 8px 6px; white-space: nowrap; }
.mj-table tbody tr:nth-child(even) td { background: #0d0d0d; }
.mj-table .c { text-align: center; }
.mj-table .dim { color: #bbb; }
.mj-ev { display: inline-flex; align-items: center; gap: 8px; }
.mj-ev b { font-weight: 700; }
.mj-ev.win b, .mj-ev.win { color: #f5c542 !important; }
.mj-stands { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.mj-stand { border: 1px solid rgba(255, 255, 255, 0.12); padding: 12px; }
.mj-invites { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mj-invite { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; border: 1px solid rgba(255, 255, 255, 0.15); text-align: center; }
.mj-invite:hover { border-color: var(--mj); }
.mj-invite b { font-size: 16px; }
.mj-invite span { display: inline-flex; align-items: center; gap: 5px; color: #ccc; }
.mj-invite small { color: #999; }
.mj-city { margin-top: 40px; }
.mj-city p, .mj-city li { font-size: 16px; line-height: 26px; }
@media (max-width: 1000px) {
  .mj-tabs { justify-content: flex-start; padding-left: 112px; }
  .mj-logos { gap: 60px; }
  .mj-stages { flex-direction: column; }
  .mj-stages .mj-stage { width: 100%; }
  .mj-arrow { transform: rotate(90deg); }
  .mj-news.big b { font-size: 32px; line-height: 44px; }
  .mj-track { grid-auto-columns: calc((100% - 30px) / 2); }
  .mj-about { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 700px) {
  .mj-wrap { padding: 0 16px; }
  .mj-hero { padding-top: 40px; }
  .mj-logos { gap: 30px; height: 72px; }
  .mj-logo { width: 72px; height: 72px; }
  .mj-sitelogo { height: 34px; }
  .mj-title { margin-top: 30px; font-size: 26px; line-height: 34px; }
  .mj-stats { grid-template-columns: 1fr 1fr; gap: 16px 0; margin-top: 30px; }
  .mj-stats > div:nth-child(2) { border-right: 0; }
  .mj-stats b { font-size: 15px; line-height: 22px; padding: 0 6px; }
  .mj-stats > div { height: auto; }
  .mj-tl { height: auto; margin-top: 30px; padding: 0 16px; }
  .mj-tl-items { position: static; display: grid; gap: 14px; }
  .mj-tl-item { position: static; transform: none; width: auto; flex-direction: row; gap: 10px; text-align: left; flex-wrap: wrap; }
  .mj-tl-item svg, .mj-tl-item img { margin: 0; }
  .mj-tl-item small { margin: 0; width: 100%; padding-left: 38px; }
  .mj-tl-item.last b { font-size: 14px; }
  .mj-tl-dot, .mj-tl-line { display: none; }
  .mj-h2 { font-size: 24px; line-height: 32px; margin-top: 60px; }
  .mj-match { grid-template-columns: 44px 1fr 44px 1fr; }
  .mj-mbo { display: none; }
  .mj-news-top, .mj-news-row { grid-template-columns: 1fr; }
  .mj-news.big { height: 280px; }
  .mj-news.big b { font-size: 24px; line-height: 32px; }
  .mj-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 140px; }
  .mj-venue { grid-template-columns: 1fr; }
  .mj-venue-img { min-height: 220px; }
  .mj-fact { padding: 80px 16px; }
  .mj-fact h2 { font-size: 28px; }
  .mj-fact p { font-size: 18px; line-height: 26px; }
  .mj-track { grid-auto-columns: 85%; }
  .mj-facts { grid-template-columns: repeat(2, auto); }
}

/* side banners (Admin -> Banners) */
.side-banner { margin-bottom: 12px; box-shadow: var(--shadow); background: var(--box); }
.side-banner a, .side-banner img { display: block; }
.side-banner img { width: 100%; height: auto; }
.side-banner a:hover img { filter: brightness(1.08); }
.bn-thumb { width: 48px; height: 64px; object-fit: cover; background: var(--bg); display: block; }
.bn-table td { vertical-align: middle; }
.bn-link { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* event page header like HLTV: banner, status tag, name at the bottom */
.event-header { height: 150px; }
.event-header .eh-img, .event-hub-top .eh-img, .be-head .eh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6)); pointer-events: none; }
.event-header .eh-name { z-index: 1; left: 0; right: 0; bottom: 12px; flex-direction: column; justify-content: flex-end; gap: 6px; text-align: center; font-size: 22px; line-height: 28px; padding: 0 12px; }
.eh-status { position: absolute; z-index: 1; top: 10px; right: 10px; padding: 1px 7px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 3px; background: rgba(60, 64, 68, 0.85); color: #d5d8db; font-size: 10px; font-weight: 700; line-height: 16px; text-transform: uppercase; }
.eh-status.ongoing { background: #e40a0a; border-color: #e40a0a; color: #fff; }
.eh-status.upcoming { background: var(--head); border-color: var(--head); color: #fff; }
.eh-info { display: grid; grid-template-columns: 1.3fr 1fr 0.7fr 1.3fr; background: var(--box); box-shadow: var(--shadow); }
.eh-info div { padding: 8px 12px; min-width: 0; }
.eh-info span { display: block; font-size: 11px; line-height: 16px; color: var(--muted); }
.eh-info b { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 20px; color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-hub-top.has-banner .hub-title { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.be-head.has-banner { position: relative; }
@media (max-width: 640px) {
  .eh-info { grid-template-columns: 1fr 1fr; }
  .event-header { height: 120px; }
  .event-header .eh-name { font-size: 18px; line-height: 24px; }
}
.big-event .be-head.has-banner { height: 92px; }
@media (max-width: 1010px) {
  .side-banner { max-width: 260px; margin-left: auto; margin-right: auto; }
}

/* regional / national rankings */
.region-bar { display: flex; flex-wrap: wrap; background: var(--box); box-shadow: var(--shadow); margin-bottom: 8px; }
.region-bar a { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 10px; font-size: 12px; color: var(--text); border-bottom: 2px solid transparent; white-space: nowrap; }
.region-bar a:hover { background: var(--hover); color: var(--strong); }
.region-bar a.active { color: var(--strong); font-weight: 700; border-bottom-color: var(--link); }
.region-bar a.empty { color: var(--muted); }
.region-bar small { font-size: 10px; color: var(--muted); font-weight: 400; }
.region-filter { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.region-filter label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--strong); }
.region-filter select { min-width: 200px; }
.rt-world { margin-left: 8px; font-size: 11px; font-weight: 400; color: var(--muted); }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 12px; }
.leader { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; background: var(--box); box-shadow: var(--shadow); text-align: center; color: var(--strong); min-width: 0; }
.leader:hover { background: var(--hover); color: var(--strong); }
.ld-label { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader small { font-size: 11px; color: var(--muted); }
@media (max-width: 640px) {
  .region-filter { justify-content: stretch; }
  .region-filter label, .region-filter select { width: 100%; }
}

/* region badges */
svg.region-icon { display: inline-block; flex: none; vertical-align: -2px; }
.page-headline svg.region-icon, .page-headline img.flag { vertical-align: 0; margin-right: 2px; }
.region-bar a svg, .region-bar a img.flag { margin-right: 1px; }
