/* =========================================================
   VARLOL Design Preview V2 – design system tách riêng.
   Chỉ trang /design-preview dùng file này; không đụng style.css.
   ========================================================= */
:root {
  /* Màu: lấy từ style.css hiện tại (--bg, --red, --muted, --line) */
  --bg: #08070a;
  --bg-2: #110b0e;
  --surface: #151014;
  --surface-2: #1d161b;
  --surface-3: #2a1f25;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f6;
  --text-2: #b4b6c0;
  --muted: #8d8f9c;
  --red: #ff2a3d;
  --red-2: #e01e31;
  --red-3: #7a0c17;
  --red-glow: rgba(255, 42, 61, .35);
  --red-soft: rgba(255, 42, 61, .12);
  --ok: #3ddc97;
  --warn: #ffc24b;
  --err: #ff5d6c;
  --gold: #f2c86b;
  --silver: #d6d8de;
  --bronze: #d8955f;

  --font: 'Be Vietnam Pro', system-ui, sans-serif;
  --display: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;
  /* Thang chữ 1.25 */
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem;
  --fs-xl: 1.375rem; --fs-2xl: 1.75rem; --fs-3xl: clamp(1.9rem, 3.2vw, 2.6rem);
  --fs-hero: clamp(2.6rem, 7vw, 5.4rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-pill: 999px;

  --sh-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 1px 2px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.35);
  --sh-2: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 4px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.45);
  --sh-3: 0 1px 0 rgba(255,255,255,.07) inset, 0 4px 8px rgba(0,0,0,.5), 0 24px 60px rgba(0,0,0,.55);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--red);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hd-h: 68px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.6; color: var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255,42,61,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255,42,61,.05), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  background-attachment: fixed;
}
/* Texture nhẹ: lưới chấm */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.15; letter-spacing: .01em; }
p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ico-fill { fill: currentColor; stroke: none; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--red); color: #fff; }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--red-2); color: #fff; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }
#view { outline: none; min-height: 100vh; } /* giữ footer dưới màn hình tới khi trang render xong (tránh CLS) */

/* ---------- Thanh preview ---------- */
.pv-bar {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: 6px 16px;
  background: repeating-linear-gradient(135deg, #1b0a0d 0 12px, #160a0c 12px 24px); border-bottom: 1px solid rgba(255,42,61,.25);
  font-size: var(--fs-xs); color: var(--text-2);
}
.pv-tag { font-family: var(--display); font-weight: 700; color: #fff; background: var(--red-2); padding: 2px 8px; border-radius: 4px; letter-spacing: .08em; }
.pv-exit { color: #ff6b78; font-weight: 600; margin-left: auto; }
@media (max-width: 760px) { .pv-note { display: none; } }

/* ---------- Nút ---------- */
.btn {
  --b-bg: var(--surface-2); --b-fg: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--b-bg); color: var(--b-fg); font-family: var(--display); font-weight: 700; font-size: var(--fs-md); letter-spacing: .03em;
  box-shadow: var(--sh-1); white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, border-color .18s, filter .18s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.22); background: var(--surface-3); }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: 0 1px 2px rgba(0,0,0,.6) inset; }
.btn-primary {
  --b-bg: linear-gradient(180deg, var(--red-2), #b80f22); border-color: rgba(255,120,130,.5); color: #fff;
  background: var(--b-bg); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 8px 24px -6px var(--red-glow);
}
.btn-primary:hover { background: var(--b-bg); filter: brightness(1.08); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 12px 32px -6px rgba(255,42,61,.55); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--text); border-color: transparent; }
.btn-discord { background: #5865f2; border-color: #7983f5; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--fs-sm); border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: var(--fs-lg); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; filter: grayscale(.4); }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--text-2);
  position: relative; transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.07); color: var(--text); }
.has-dot::after { content: ''; position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }

.top-right { display: flex; align-items: center; gap: 6px; }
.avatar-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.av {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #3a1016, #1c1d25); border: 2px solid var(--red); color: #fff; font: 700 var(--fs-md)/1 var(--display);
  box-shadow: 0 0 0 3px rgba(255,42,61,.15);
}
.av-sm { width: 36px; height: 36px; font-size: var(--fs-sm); }
.av-xl { width: 112px; height: 112px; font-size: 2.6rem; border-width: 3px; box-shadow: 0 0 0 6px rgba(255,42,61,.15), 0 20px 50px rgba(0,0,0,.5); }


/* ---------- Drawer ---------- */
.drawer-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 61; width: min(340px, 88vw); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--surface); border-right: 1px solid var(--line-2);
  animation: slideIn .25s var(--ease);
}
@keyframes slideIn { from { transform: translateX(-100%); } }
.drawer-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer-hd img { height: 32px; width: auto; }
.drawer-me { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--surface-2); margin-bottom: 12px; }
.drawer-me small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.drawer-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 10px; font-weight: 600; }
.drawer-nav a:hover, .drawer-nav a.on { background: rgba(255,255,255,.06); }
.drawer-nav a.on { color: #fff; background: var(--red-soft); }
.drawer-label { margin: 16px 12px 4px; font: 700 var(--fs-xs)/1 var(--display); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.demo-toggle { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 16px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: var(--fs-sm); color: var(--text-2); }
.demo-toggle input { width: 18px; height: 18px; accent-color: var(--red); }

/* ---------- Bố cục chung ---------- */
.section { padding-block: var(--s8) 0; }
.sec-hd { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 var(--fs-xs)/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.sec-hd h2 { font-size: var(--fs-3xl); margin-top: 10px; }
.sec-hd p { color: var(--muted); margin-top: 6px; max-width: 56ch; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-2); min-height: 44px; }
.link-more:hover { color: var(--red); }
.link-more svg { width: 18px; height: 18px; transition: transform .2s; }
.link-more:hover svg { transform: translateX(3px); }
.demo-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--warn); background: rgba(255,194,75,.1); border: 1px solid rgba(255,194,75,.25); vertical-align: middle;
}
.page-hd { padding-block: var(--s7) var(--s5); }
.page-hd h1 { font-size: var(--fs-3xl); margin-top: 10px; }
.page-hd p { color: var(--muted); margin-top: 8px; max-width: 60ch; }

/* ---------- Card ---------- */
.card {
  position: relative; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); box-shadow: var(--sh-2);
}
.card-hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.card-hover:hover::after { opacity: 1; }
.card-hover::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.06), transparent 60%);
}

/* ---------- Hero ---------- */
.hero-lead { margin-top: 20px; font-size: var(--fs-lg); color: var(--text-2); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: var(--fs-sm); }
.hero-meta b { color: var(--text); font-family: var(--display); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px; }

.stage { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; perspective: 1100px; }
.stage-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s var(--ease); transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); }
.stage-layer { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; }
.stage-floor {
  position: absolute; left: 6%; right: 6%; bottom: 6%; height: 32%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,42,61,.45), rgba(255,42,61,.08) 60%, transparent);
  transform: translateZ(-60px) rotateX(72deg); filter: blur(2px);
}
.stage-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,42,61,.35); transform: rotateX(72deg); }
.stage-ring.r1 { width: 86%; height: 86%; bottom: -16%; translate: 0 0; transform: translateZ(-40px) rotateX(72deg); }
.stage-ring.r2 { width: 64%; height: 64%; bottom: -6%; border-color: rgba(255,255,255,.12); transform: translateZ(-20px) rotateX(72deg); }
.stage-ring.spin { border-style: dashed; animation: ring 40s linear infinite; }
@keyframes ring { to { transform: translateZ(-40px) rotateX(72deg) rotateZ(360deg); } }
.trophy { width: 62%; transform: translateZ(60px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)) drop-shadow(0 0 40px rgba(255,42,61,.25)); }
.trophy svg { width: 100%; height: auto; stroke: none; }
.float-a { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { translate: 0 -10px; } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r);
  background: rgba(22, 23, 30, .82); border: 1px solid var(--line-2); box-shadow: var(--sh-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: var(--fs-sm); white-space: nowrap;
}
.chip b { font-family: var(--display); display: block; line-height: 1.2; }
.chip small { color: var(--muted); font-size: var(--fs-xs); }
.chip-1 { top: 12%; left: -2%; transform: translateZ(110px); }
.chip-2 { bottom: 18%; right: -4%; transform: translateZ(130px); }
.chip-3 { top: 4%; right: 10%; transform: translateZ(80px); }
.chip .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--red-soft); color: var(--red); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.stat { padding: 20px; display: flex; align-items: center; gap: 16px; overflow: hidden; }
.stat .ic {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none; color: var(--red);
  background: linear-gradient(180deg, rgba(255,42,61,.18), rgba(255,42,61,.06)); border: 1px solid rgba(255,42,61,.25);
  transition: transform .3s var(--ease);
}
.stat:hover .ic { transform: translateY(-2px) rotate(-6deg); }
.stat .ic svg { width: 24px; height: 24px; }
.stat b { display: block; font: 700 var(--fs-2xl)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: var(--fs-sm); }
.stats-note { margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat { padding: 14px; gap: 12px; } .stat .ic { width: 40px; height: 40px; } .stat b { font-size: var(--fs-xl); } }

/* ---------- Tournament card ---------- */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.tc { display: flex; flex-direction: column; overflow: hidden; }
.tc-banner { position: relative; aspect-ratio: 16 / 8; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.tc-art { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.tc:hover .tc-art { transform: scale(1.05); }
.tc-art svg { width: 100%; height: 100%; stroke: none; }
.tc-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18,19,25,.95)); }
.tc-status { position: absolute; top: 14px; left: 14px; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; border: 1px solid transparent;
  background: rgba(10,10,14,.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge-live { color: #fff; background: var(--red-2); border-color: rgba(255,255,255,.25); }
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
@keyframes blink { 50% { opacity: .3; } }
.badge-up { color: var(--warn); border-color: rgba(255,194,75,.35); }
.badge-done { color: var(--text-2); border-color: var(--line-2); }
.badge-ok { color: var(--ok); border-color: rgba(61,220,151,.35); }
.badge-pending { color: var(--warn); border-color: rgba(255,194,75,.35); }
.tc-body { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tc-body h3 { font-size: var(--fs-xl); }
.tc-date { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.tc-prize { display: flex; align-items: baseline; gap: 8px; }
.tc-prize b { font: 700 var(--fs-2xl)/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.tc-prize small { color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.tc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.tc-meta div { display: flex; align-items: center; gap: 8px; color: var(--text-2); min-width: 0; }
.tc-meta svg { width: 16px; height: 16px; color: var(--muted); }
.tc-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc .btn { margin-top: auto; }
.tc.is-live { border-color: rgba(255,42,61,.35); box-shadow: var(--sh-2), 0 0 0 1px rgba(255,42,61,.12), 0 20px 50px -20px rgba(255,42,61,.35); }
@media (max-width: 1080px) { .tour-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tour-grid { grid-template-columns: 1fr; } }
/* Kéo ngang trên mobile cho trang chủ */
@media (max-width: 640px) {
  .tour-grid.rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -16px; padding: 4px 16px 16px; scrollbar-width: none; }
  .tour-grid.rail::-webkit-scrollbar { display: none; }
  .tour-grid.rail > * { flex: 0 0 86%; scroll-snap-align: center; }
}

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 9px; border: 0; background: none;
  color: var(--muted); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; transition: color .15s, background-color .15s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface-3); color: #fff; box-shadow: var(--sh-1); }
.tab .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 11px; display: inline-grid; place-items: center; }
.tab[aria-selected="true"] .n { background: var(--red-2); color: #fff; }

/* ---------- Match center ---------- */
.mc { padding: 20px; }
.mc-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mc-list { display: grid; gap: 10px; }
.match {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r);
  background: rgba(255,255,255,.025); border: 1px solid var(--line); transition: background-color .2s, border-color .2s;
}
.match:hover { background: rgba(255,255,255,.045); border-color: var(--line-2); }
.match.live { border-color: rgba(255,42,61,.3); background: linear-gradient(90deg, rgba(255,42,61,.07), transparent 40%, transparent 60%, rgba(255,42,61,.07)); }
.m-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.m-team.b { flex-direction: row-reverse; text-align: right; }
.m-team b { font-family: var(--display); font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-team small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.m-team > div { min-width: 0; }
.m-team.lose b { color: var(--muted); }
.logo-t {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; color: #fff;
  font: 700 12px/1 var(--display); letter-spacing: .04em; position: relative; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 85%, #fff 0%), color-mix(in srgb, var(--c) 40%, #000));
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 6px 16px -6px color-mix(in srgb, var(--c) 60%, transparent);
}
.logo-t::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.25), transparent 50%); }
.logo-t.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 15px; }
.m-mid { text-align: center; min-width: 110px; }
.m-score { font: 700 var(--fs-2xl)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.m-score .w { color: #fff; } .m-score .l { color: var(--muted); }
.m-vs { font: 700 var(--fs-lg)/1 var(--display); color: var(--muted); }
.m-time { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.m-time.live { color: var(--red); font-weight: 700; }
.m-round { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 600px) {
  .match { grid-template-columns: 1fr auto; grid-template-areas: 'a mid' 'b mid'; gap: 8px 12px; padding: 12px 14px; }
  .m-team.a { grid-area: a; } .m-team.b { grid-area: b; flex-direction: row; text-align: left; }
  .m-mid { grid-area: mid; min-width: 84px; border-left: 1px solid var(--line); padding-left: 12px; }
  .logo-t { width: 36px; height: 36px; border-radius: 10px; font-size: 10px; }
}

/* ---------- Community hub (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: var(--s4); }
.bx { padding: 22px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.bx h3 { font-size: var(--fs-lg); }
.bx p { color: var(--muted); font-size: var(--fs-sm); }
.bx .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.06); color: var(--text); }
.bx .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); }
.bx:hover .go { color: var(--red); }
.bx-big { grid-column: span 2; grid-row: span 2; background: radial-gradient(500px 260px at 100% 0%, rgba(255,42,61,.22), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.bx-wide { grid-column: span 2; }
.streak { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.streak b { font: 700 var(--fs-2xl)/1 var(--display); }
.streak small { color: var(--muted); display: block; font-size: var(--fs-xs); }
.progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red-2), #ff6b78); }
.mission { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.mission .progress { flex: 1; }
.mission small { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 1080px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bx-big, .bx-wide { grid-column: auto; grid-row: auto; } }

/* ---------- Leaderboard ---------- */
.lb-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s5); align-items: start; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 12px; padding: 28px 20px 0; overflow: hidden; }
.pd { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.pd .av { width: 64px; height: 64px; font-size: var(--fs-xl); }
.pd-1 .av { width: 84px; height: 84px; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,200,107,.18), 0 0 40px rgba(242,200,107,.25); }
.pd-2 .av { border-color: var(--silver); box-shadow: 0 0 0 4px rgba(214,216,222,.12); }
.pd-3 .av { border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(216,149,95,.14); }
.pd b { font-family: var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd small { color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.pd-block {
  width: 100%; border-radius: 12px 12px 0 0; display: grid; place-items: center; font: 700 var(--fs-3xl)/1 var(--display);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.01)); border: 1px solid var(--line); border-bottom: 0;
}
.pd-1 .pd-block { height: 130px; color: var(--gold); background: linear-gradient(180deg, rgba(242,200,107,.18), rgba(242,200,107,.02)); border-color: rgba(242,200,107,.3); }
.pd-2 .pd-block { height: 96px; color: var(--silver); }
.pd-3 .pd-block { height: 72px; color: var(--bronze); }
.lb-list { padding: 8px; }
.lb-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-radius: 10px; }
.lb-row:nth-child(odd) { background: rgba(255,255,255,.02); }
.lb-row .pos { font: 700 var(--fs-sm)/1 var(--display); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.lb-row .nm { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.lb-row .nm span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .val { font: 700 var(--fs-sm)/1 var(--display); font-variant-numeric: tabular-nums; }
.lb-row.me { background: var(--red-soft); box-shadow: 0 0 0 1px rgba(255,42,61,.3) inset; }
@media (max-width: 900px) { .lb-wrap { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .podium { padding-inline: 8px; gap: 6px; } .pd .av { width: 52px; height: 52px; } .pd-1 .av { width: 66px; height: 66px; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1fr 340px; gap: var(--s5); align-items: start; }
.news-list { padding: 8px; }
.post { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 14px; border-radius: 12px; }
.post + .post { border-top: 1px solid var(--line); border-radius: 0; }
.post .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(88,101,242,.15); color: #8e97ff; }
.post-ch { font-size: var(--fs-xs); color: var(--muted); }
.post h3 { font-family: var(--font); font-size: var(--fs-md); font-weight: 700; margin: 2px 0 4px; }
.post-txt { color: var(--text-2); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.post-txt * { margin: 0; font-size: inherit; }
.post-txt a { color: #8e97ff; }
.post a.more { display: inline-flex; margin-top: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); min-height: 32px; align-items: center; }
.post a.more:hover { color: #fff; }
.dc-card { padding: 24px; background: radial-gradient(400px 200px at 100% 0%, rgba(88,101,242,.25), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.dc-card h3 { font-size: var(--fs-xl); margin: 12px 0 8px; }
.dc-card p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 18px; }
.dc-card .ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #5865f2; color: #fff; }
.dc-card .ic svg { width: 28px; height: 28px; }
.state { padding: 40px 20px; text-align: center; display: grid; justify-items: center; gap: 10px; color: var(--muted); }
.state .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--text-2); }
.state .ic svg { width: 26px; height: 26px; }
.state h3 { font-family: var(--font); font-size: var(--fs-md); color: var(--text); }
.state p { font-size: var(--fs-sm); max-width: 44ch; }
.state.err .ic { background: rgba(255,93,108,.12); color: var(--err); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Skeleton ---------- */
.sk { border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-post { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px; }
.sk-post > .sk:first-child { height: 40px; border-radius: 10px; }
.sk-lines { display: grid; gap: 8px; }
.sk-lines .sk { height: 12px; }

/* ---------- Footer ---------- */
.ft { margin-top: var(--s8); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); }
.ft-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s6); padding-block: var(--s7); }
.ft-brand img { height: 40px; width: auto; }
.ft-brand p { color: var(--muted); font-size: var(--fs-sm); margin-top: 14px; }
.ft-col h2 { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.ft-col a { display: flex; align-items: center; min-height: 36px; color: var(--muted); font-size: var(--fs-sm); }
.ft-col a:hover { color: var(--text); }
.ft-copy { padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 760px) { .ft-in { grid-template-columns: 1fr 1fr; gap: var(--s5); } .ft-brand { grid-column: 1 / -1; } }

/* ---------- Filter bar ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: var(--s5); }
.search {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: var(--r); min-width: 0; flex: 0 1 300px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,42,61,.15); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
@media (max-width: 640px) { .search { flex: 1 1 100%; } .filters .tabs { width: 100%; } }

/* ---------- Tournament detail ---------- */
.td-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); margin-top: var(--s5); min-height: 260px; display: flex; align-items: end; }
.td-hero .tc-art { position: absolute; inset: 0; }
.td-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,6,8,.92) 20%, rgba(6,6,8,.4)), linear-gradient(0deg, rgba(6,6,8,.8), transparent 60%); }
.td-hero-in { position: relative; z-index: 1; padding: clamp(20px, 4vw, 40px); width: 100%; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.td-hero h1 { font-size: var(--fs-3xl); margin-top: 12px; }
.td-facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; }
.td-facts div small { display: block; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.td-facts div b { font: 700 var(--fs-lg)/1.3 var(--display); }
.td-tabs { margin-block: var(--s5); }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
.back:hover { color: var(--text); }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); }
.team-mini { display: flex; align-items: center; gap: 12px; padding: 14px; }
.team-mini b { font-family: var(--display); display: block; }
.team-mini small { color: var(--muted); font-size: var(--fs-xs); }

/* ---------- Bracket ---------- */
.bracket-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.bracket-tools p { color: var(--muted); font-size: var(--fs-sm); }
.bracket-scroll { overflow-x: auto; padding-bottom: 12px; -webkit-overflow-scrolling: touch; scrollbar-color: var(--surface-3) transparent; }
.bracket { display: flex; gap: 40px; padding: 8px 4px 4px; width: max-content; }
.b-round { display: flex; flex-direction: column; width: 220px; }
.b-round h4 { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; height: 16px; }
.b-col { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 12px; }
.b-match { position: relative; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); overflow: visible; }
.b-match.live { border-color: rgba(255,42,61,.45); }
.b-slot { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; font-size: var(--fs-sm); }
.b-slot + .b-slot { border-top: 1px solid var(--line); }
.b-slot .logo-t { width: 22px; height: 22px; border-radius: 6px; font-size: 8px; }
.b-slot span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-slot b { font-family: var(--display); font-variant-numeric: tabular-nums; color: var(--muted); }
.b-slot.win span, .b-slot.win b { color: #fff; font-weight: 700; }
.b-slot.tbd span { color: var(--muted); font-style: italic; }
.b-slot.bye span { color: var(--muted); }
/* nối nhánh */
.b-round:not(:last-child) .b-match::after { content: ''; position: absolute; right: -21px; top: 50%; width: 20px; height: 1px; background: var(--line-2); }
.b-round:not(:first-child) .b-match::before { content: ''; position: absolute; left: -21px; top: 50%; width: 20px; height: 1px; background: var(--line-2); }

/* ---------- Team pages ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s5); }
.team-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.team-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 90px; border-radius: inherit; background: radial-gradient(300px 90px at 20% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent); pointer-events: none; }
.team-top { display: flex; align-items: center; gap: 14px; position: relative; }
.team-top h3 { font-size: var(--fs-xl); }
.team-top small { color: var(--muted); font-size: var(--fs-xs); }
.team-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.team-stats div { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); text-align: center; }
.team-stats b { display: block; font: 700 var(--fs-lg)/1.2 var(--display); font-variant-numeric: tabular-nums; }
.team-stats small { color: var(--muted); font-size: 11px; }
.roster { display: flex; flex-wrap: wrap; gap: 6px; }
.roster span { padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.05); font-size: var(--fs-xs); color: var(--text-2); }
.roster .empty-slot { border: 1px dashed var(--line-2); background: none; color: var(--muted); }
.team-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }

/* ---------- Profile ---------- */
.pf-hero { padding: clamp(20px, 4vw, 36px); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: var(--s5); overflow: hidden; background: radial-gradient(600px 240px at 0% 0%, rgba(255,42,61,.18), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.pf-hero h1 { font-size: var(--fs-3xl); }
.pf-hero .sub { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.pf-lv { margin-top: 16px; max-width: 420px; }
.pf-lv div:first-child { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 6px; }
.pf-cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s5); margin-top: var(--s5); align-items: start; }
.pf-cols .card { padding: 20px; }
.pf-cols h2 { font-size: var(--fs-lg); margin-bottom: 14px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl { position: relative; padding: 8px 0 14px; display: flex; justify-content: space-between; gap: 12px; }
.tl::before { content: ''; position: absolute; left: -21px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--red); }
.tl b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.tl small { color: var(--muted); font-size: var(--fs-xs); }
.tl .amt { font: 700 var(--fs-sm)/1.4 var(--display); white-space: nowrap; }
.tl .amt.plus { color: var(--ok); } .tl .amt.minus { color: var(--err); }
@media (max-width: 900px) { .pf-cols { grid-template-columns: 1fr; } .pf-hero { grid-template-columns: auto 1fr; } .pf-hero .pf-act { grid-column: 1 / -1; } }
@media (max-width: 520px) { .pf-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } .pf-lv { margin-inline: auto; width: 100%; } .av-xl { width: 92px; height: 92px; } }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .2s; }
.modal-bg[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; border-radius: 20px; background: linear-gradient(180deg, var(--surface-3), var(--surface)); border: 1px solid var(--line-2); box-shadow: var(--sh-3); animation: pop .25s var(--ease); position: relative; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal h2 { font-size: var(--fs-xl); padding-right: 44px; }
.modal .x { position: absolute; top: 12px; right: 12px; }
.modal-sum { margin: 18px 0; padding: 16px; border-radius: var(--r); background: rgba(0,0,0,.25); border: 1px solid var(--line); display: grid; gap: 10px; font-size: var(--fs-sm); }
.modal-sum div { display: flex; justify-content: space-between; gap: 12px; }
.modal-sum span { color: var(--muted); }
.modal-sum .total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; }
.modal-note { font-size: var(--fs-xs); color: var(--warn); display: flex; gap: 8px; margin-bottom: 18px; }
.modal-note svg { width: 16px; height: 16px; margin-top: 2px; }
.modal-act { display: flex; gap: 10px; }
.modal-act .btn { flex: 1; }
.modal-ok { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 8px 0; }
.modal-ok .ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(61,220,151,.12); color: var(--ok); }
.modal-ok .ic svg { width: 32px; height: 32px; }
.modal-ok p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: var(--r); background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--sh-3);
  font-size: var(--fs-sm); max-width: calc(100% - 32px); transition: opacity .2s, transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .stage-tilt { transform: rotateX(6deg) rotateY(-10deg) !important; }
}
#view:focus-visible { box-shadow: none; }

/* =========================================================
   V2.1 – Khung dashboard: sidebar + topbar + lưới 2 cột
   ========================================================= */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 16px; padding: 12px; max-width: 1760px; margin-inline: auto; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.main-col .wrap { width: 100%; }

.side {
  position: sticky; top: 12px; height: calc(100dvh - 24px); display: flex; flex-direction: column; gap: 6px;
  padding: 18px 12px; border-radius: 20px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--sh-2);
}
.side-logo { display: flex; align-items: center; min-height: 44px; padding: 0 10px 14px; }
.side-logo img { height: 36px; width: auto; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 12px;
  color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); transition: background-color .15s, color .15s;
}
.side-nav a svg { width: 19px; height: 19px; color: var(--muted); transition: color .15s; }
.side-nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.side-nav a.on { background: linear-gradient(90deg, rgba(255,42,61,.22), rgba(255,42,61,.06)); color: #fff; }
.side-nav a.on svg { color: var(--red); }
.side-label { margin: 16px 12px 6px; font: 700 11px/1 var(--display); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.side .demo-toggle { margin-top: auto; }

.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0;
  background: linear-gradient(180deg, var(--bg) 70%, rgba(8,7,10,0));
}
.top-burger, .top-logo { display: none; }
.top-logo img { height: 30px; width: auto; }
.greet { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.greet b { color: var(--text); font-family: var(--display); font-size: var(--fs-md); }
.top-search { margin-inline: auto 0; flex: 0 1 360px; height: 44px; }
.top-right { margin-left: 4px; }

/* Lưới dashboard: cột chính + cột phải */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; padding-top: 4px; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel { padding: 20px; }
.panel-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-hd h2 { font-size: var(--fs-lg); }
.panel-hd .link-more { min-height: 36px; font-size: var(--fs-sm); }
.dash .section { padding-top: 12px; }
.dash .sec-hd h2 { font-size: var(--fs-2xl); }

/* ---------- Hero slider ---------- */
.hs { position: relative; border-radius: 20px; overflow: hidden; min-height: 400px; border: 1px solid var(--line); box-shadow: var(--sh-3); background: var(--surface); isolation: isolate; }
.hs-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.hs-slide.on { opacity: 1; visibility: visible; position: relative; }
.hs-art { position: absolute; inset: 0; z-index: -1; }
.hs-art svg { width: 100%; height: 100%; stroke: none; }
.hs-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,7,10,.92) 25%, rgba(8,7,10,.35) 70%, rgba(8,7,10,.1)); }
.hs-copy { padding: clamp(24px, 4vw, 44px); max-width: 560px; }
.hs-copy h1, .hs-copy h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; margin-top: 14px; text-transform: uppercase; }
.hs-copy h1 .r { color: var(--red); }
.hs-copy p { margin-top: 14px; color: var(--text-2); max-width: 44ch; }
.hs-copy .hero-cta { margin-top: 24px; }
.hs-kv { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.hs-kv small { display: block; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.hs-kv b { font: 700 var(--fs-lg)/1.3 var(--display); }
.hs .stage { max-width: 380px; }
.hs-ctrl { position: absolute; left: clamp(24px, 4vw, 44px); right: 20px; bottom: 18px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.hs-ctrl .icon-btn { background: rgba(255,255,255,.08); border: 1px solid var(--line-2); color: var(--text); }
.hs-ctrl .icon-btn:hover { background: rgba(255,255,255,.14); }
.hs-dots { display: flex; gap: 6px; margin-left: 8px; }
.hs-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.hs-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.3); transition: width .25s var(--ease), background-color .25s; }
.hs-dots button[aria-current="true"]::before { width: 22px; background: var(--red); }
.hs-count { margin-left: auto; font: 600 var(--fs-sm)/1 var(--display); color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- Hàng poster giải đấu ---------- */
.row-ctrl { display: flex; gap: 8px; }
.row-ctrl .icon-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.row-ctrl .icon-btn:last-child { background: var(--red-2); border-color: transparent; color: #fff; }
.row-ctrl .icon-btn[disabled] { opacity: .35; cursor: default; }
.posters { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.posters::-webkit-scrollbar { display: none; }
.poster { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; border: 1px solid var(--line); isolation: isolate; }
.poster .tc-art { position: absolute; inset: 0; z-index: -2; transition: transform .6s var(--ease); }
.poster::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(8,7,10,.95)); }
.poster:hover .tc-art { transform: scale(1.06); }
.poster .badge { position: absolute; top: 12px; right: 12px; }
.poster h3 { font-size: var(--fs-lg); line-height: 1.2; }
.poster .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.poster .tags span { padding: 3px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); font-size: var(--fs-xs); color: var(--text-2); }
.poster .prize { margin-top: 8px; font: 700 var(--fs-md)/1 var(--display); color: var(--gold); }
@media (max-width: 1280px) { .posters { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 640px) { .posters { grid-auto-columns: 72%; } }

/* ---------- Danh sách trận gọn (cột phải) ---------- */
.mini-list { display: grid; gap: 4px; }
.mini-m { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: background-color .15s; }
.mini-m:hover { background: rgba(255,255,255,.04); }
.mini-m + .mini-m { border-top: 1px solid var(--line); border-radius: 0; }
.mini-logos { display: flex; }
.mini-logos .logo-t { width: 36px; height: 36px; border-radius: 10px; font-size: 10px; border: 2px solid var(--surface); }
.mini-logos .logo-t + .logo-t { margin-left: -10px; }
.mini-m b { display: block; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-m small { color: var(--muted); font-size: var(--fs-xs); }
.mini-m .when { text-align: right; font: 600 var(--fs-xs)/1.3 var(--display); color: var(--text-2); white-space: nowrap; }
.mini-m .when.live { color: #ff6b78; }

/* ---------- Quản lý đội ---------- */
.tm { padding: 0; overflow: hidden; }
.tm-hd { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.tm-hd > div { min-width: 0; flex: 1; }
.tm-hd h2 { font-size: var(--fs-lg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-hd small { color: var(--muted); font-size: var(--fs-xs); }
.tm-body { display: grid; grid-template-columns: minmax(0, 1fr) 76px; }
.tm-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; border-left: 1px solid var(--line); background: rgba(0,0,0,.18); }
.tm-rail-label { font: 700 10px/1 var(--display); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.tm-mem {
  position: relative; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: none;
  display: grid; place-items: center; transition: transform .2s var(--ease), border-color .2s;
}
.tm-mem .av { width: 44px; height: 44px; border-width: 0; box-shadow: none; font-size: var(--fs-sm); background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 30%, #000)); }
.tm-mem:hover { transform: scale(1.06); }
.tm-mem[aria-selected="true"] { border-color: var(--red); }
.tm-mem .st { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--surface); background: var(--muted); }
.tm-mem .st.online { background: var(--ok); }
.tm-mem .st.ingame { background: var(--warn); }
.tm-mem .cap { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2a1c00; }
.tm-mem .cap svg { width: 11px; height: 11px; stroke-width: 2.5; }
.tm-add { width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed var(--line-2); background: none; color: var(--muted); display: grid; place-items: center; }
.tm-add:hover { color: var(--text); border-color: var(--text-2); }
.tm-sep { width: 28px; height: 1px; background: var(--line-2); }

.tm-detail { padding: 18px; min-width: 0; }
.tm-detail.swap { animation: tmIn .28s var(--ease); }
@keyframes tmIn { from { opacity: 0; transform: translateX(8px); } }
.tm-who { display: flex; align-items: center; gap: 14px; }
.tm-who .av { width: 64px; height: 64px; font-size: var(--fs-xl); border-width: 0; background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 30%, #000)); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--c) 60%, transparent); }
.tm-who > div { min-width: 0; }
.tm-who h3 { font-size: var(--fs-xl); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-who small { display: block; color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill.online i { background: var(--ok); } .pill.ingame i { background: var(--warn); }
.pill.role { color: #ffb3ba; background: var(--red-soft); border-color: rgba(255,42,61,.25); }
.tm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.tm-stats div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.tm-stats small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.tm-stats b { font: 700 var(--fs-lg)/1.3 var(--display); font-variant-numeric: tabular-nums; }
.tm-sub { margin-top: 14px; font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tm-agents { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.form { display: flex; gap: 6px; margin-top: 8px; }
.form span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 700 12px/1 var(--display); }
.form .w { background: rgba(61,220,151,.14); color: var(--ok); }
.form .l { background: rgba(255,93,108,.14); color: var(--err); }
.tm-act { display: flex; gap: 8px; margin-top: 16px; }
.tm-act .btn { flex: 1; }

/* Biến thể rộng (trang TEAM & VAR) */
.tm.wide .tm-body { grid-template-columns: minmax(0, 1fr) 96px; }
.tm.wide .tm-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; padding: 24px; }
.tm.wide .tm-col2 { padding-top: 2px; }
.tm.wide .tm-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .tm.wide .tm-detail { grid-template-columns: minmax(0, 1fr); } .tm.wide .tm-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Thanh dưới mobile ---------- */
.bnav { display: none; }

/* ---------- Responsive khung ---------- */
@media (max-width: 1440px) { .dash { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 1180px) {
  .dash { grid-template-columns: 1fr; }
  .dash-main, .dash-side { display: contents; }
  .o-hero { order: 1; } .o-team { order: 2; } .o-up { order: 3; } .o-stats { order: 4; } .o-posters { order: 5; }
  .o-match { order: 6; } .o-hub { order: 7; } .o-rank { order: 8; } .o-news { order: 9; }
  .o-team, .o-up { width: 100%; }
}
@media (max-width: 1080px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .side { display: none; }
  .top-burger, .top-logo { display: inline-flex; align-items: center; }
  .top-burger { margin-left: -8px; }
  .greet { display: none; }
  .top { margin-inline: -16px; padding-inline: 16px; background: rgba(8,7,10,.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .top-search { display: none; }
  .top-right { margin-left: auto; }
  .hs { min-height: 0; }
  .hs-slide { grid-template-columns: 1fr; }
  .hs-slide .stage { display: none; }
  .hs-copy { padding-bottom: 76px; }
  .tm-body { grid-template-columns: 1fr; }
  .tm-rail { flex-direction: row; justify-content: flex-start; padding: 12px 14px; gap: 8px; border-left: 0; border-bottom: 1px solid var(--line); order: -1; overflow-x: auto; scrollbar-width: none; }
  .tm-rail-label { display: none; }
  .tm-sep { width: 1px; height: 28px; }
  .bnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(14,10,13,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .bnav a svg { width: 22px; height: 22px; }
  .bnav a.on { color: #fff; }
  .bnav a.on svg { color: var(--red); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.tm-eyebrow { display: block; font: 700 10px/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--red) !important; }
.hs-copy h1, .hs-copy h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.mini-m b { white-space: normal; overflow: visible; }
.hs-copy { padding-bottom: 84px; }
.hs .hero-meta { margin-top: 18px; }
.dash-main > *, .dash-side > * { min-width: 0; }
@media (max-width: 1180px) { .dash { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .hs .hero-cta .btn { flex: 1 1 100%; } }
@media (max-width: 760px) { .tm.wide .tm-body { grid-template-columns: minmax(0, 1fr); } .tm.wide .tm-detail { padding: 18px; } }

/* ================= V3: dữ liệu thật + nút/icon của web chính thức ================= */
/* Nút: y hệt style.css (cắt góc clip-path, chữ hoa Chakra Petch). Focus vẽ bằng inset box-shadow vì clip-path cắt mất outline. */
.btn {
  --c: 14px; min-height: 0; border: 0; border-radius: 0; padding: 11px 20px; font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
  background: #1c1c23; color: var(--text); box-shadow: none;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: transform .12s, filter .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.18); transform: none; background: #1c1c23; border-color: transparent; }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn:focus-visible { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--red); border-radius: 0; }
.btn-red, .btn-red:hover { background: linear-gradient(180deg, #ff3b4c, #c8102e); color: #fff; }
.btn-ghost, .btn-ghost:hover { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,42,61,.45); }
.btn-discord, .btn-discord:hover { background: #5865f2; color: #fff; }
.btn-sm { --c: 8px; padding: 7px 13px; font-size: 13px; min-height: 36px; border-radius: 0; }
.btn-lg { --c: 16px; padding: 15px 30px; font-size: 18px; min-height: 0; }
.btn svg { width: 16px; height: 16px; }
#dcTop svg { width: 22px; height: 22px; color: #8e97ff; }

/* Ảnh thật có chữ cái dự phòng */
.pic { display: inline-grid; place-items: center; flex: none; overflow: hidden; background: linear-gradient(135deg, #3a1016, #1c1d25); color: #fff; font: 700 var(--fs-sm)/1 var(--display); text-transform: uppercase; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic.av { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--red); }
.pic.av-sm { width: 36px; height: 36px; }
.pic.av-xs { width: 30px; height: 30px; border-width: 2px; border-color: var(--surface); font-size: 11px; }
.pic.av-lg { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--red); font-size: var(--fs-xl); box-shadow: 0 10px 24px -8px rgba(255,42,61,.5); }
.pic.logo { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); }
.pic.logo.lg { width: 60px; height: 60px; border-radius: 14px; }
.pic.b-logo { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; }
.tm-mem .pic.av { border: 0; background: linear-gradient(135deg, #3a1016, #1c1d25); }
.tm-pick { flex: none; max-width: 150px; height: 36px; padding: 0 8px; border-radius: 8px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); font: 600 var(--fs-xs) var(--font); }
.tm-act .btn { flex: 0 1 auto; }
.tm-act { flex-wrap: wrap; }
.roster { display: flex; }
.roster .pic + .pic { margin-left: -8px; }
.team-card { text-align: left; color: inherit; font: inherit; border: 1px solid var(--line); }
.team-card.on { border-color: rgba(255,42,61,.6); box-shadow: 0 0 0 1px rgba(255,42,61,.35), var(--sh-2); }
.team-name { display: block; font: 700 var(--fs-lg)/1.2 var(--display); }
.team-stats > span { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); text-align: center; }
.team-stats small { display: block; }
.side-nav a .ext { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); }

/* Hero banner: ảnh thật lấp đầy, chữ đặt dưới */
.hs { min-height: 0; aspect-ratio: 16 / 7; }
.hs-slide { display: block; }
.hs-slide.on { position: absolute; }
.hs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hs-slide::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,7,10,.85), transparent 45%); }
.hs-copy { position: absolute; left: 0; bottom: 0; padding: 24px clamp(20px, 3vw, 36px) 76px; max-width: 640px; }
.hs-copy .hs-title { font-size: clamp(1.4rem, 2.6vw, 2.2rem); margin: 0 0 12px; }
@media (max-width: 760px) { .hs { aspect-ratio: 16 / 9; } .hs-copy { padding-bottom: 64px; } .hs-copy .hs-title { font-size: var(--fs-lg); } }

/* Số liệu */
.stat em { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: var(--fs-xs); color: var(--ok); }
.dot-on { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }

/* Khám phá: tile của trang chủ chính thức (home.css .hm-tile) */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tile { --tc: var(--red); position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 18px; border-radius: 12px; min-height: 150px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tc); }
a.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tc) 60%, transparent); box-shadow: 0 14px 30px -18px var(--tc); }
.tile-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); margin-bottom: 6px; }
.tile-ico svg { width: 24px; height: 24px; }
.tile b { font-family: var(--display); font-size: 17px; text-transform: uppercase; line-height: 1.2; }
.tile p { font-size: 13px; color: var(--muted); line-height: 1.45; padding-right: 18px; }
.tile .fund-v { font: 700 var(--fs-xl)/1.1 var(--display); color: var(--tc); padding: 0; font-variant-numeric: tabular-nums; }
.tile-go { position: absolute; right: 14px; bottom: 14px; color: var(--tc); opacity: .6; transition: opacity .2s, transform .2s; }
.tile-go svg { width: 18px; height: 18px; }
a.tile:hover .tile-go { opacity: 1; transform: translateX(3px); }
@media (max-width: 1440px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile { min-height: 0; padding: 16px 14px; } .tile p { display: none; } .tile .fund-v { display: block; } }

/* Poster giải: banner thật */
.poster-img { position: absolute; inset: 0; z-index: -2; transition: transform .6s var(--ease); background: var(--surface-2); }
.poster-img img { width: 100%; height: 100%; object-fit: cover; }
.poster:hover .poster-img { transform: scale(1.06); }
.tc-banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.td-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* VAR IDOL */
.idols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.idol { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.idol-top { position: relative; margin-bottom: 6px; }
.pic.idol-av { width: 100%; aspect-ratio: 1; border-radius: 12px; font-size: 2rem; }
.idol-on { position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(0,0,0,.5); }
.idol h3 { font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip { font: 700 10px/1 var(--display); padding: 3px 6px; border-radius: 4px; background: var(--gold); color: #2a1c00; vertical-align: middle; }
.idol-tag { font-size: var(--fs-xs); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.idol-games { display: flex; flex-wrap: wrap; gap: 4px; }
.idol-games span { padding: 2px 8px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); font-size: 11px; color: var(--text-2); }
.idol-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.idol-foot b { font: 700 var(--fs-md) var(--display); color: var(--text); }
@media (max-width: 1280px) { .idols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .idols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .idol { padding: 12px; } }

/* Thông báo có ảnh */
.post-img { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }

/* Trận TEAM & VAR sắp tới (có ảnh map) */
.var-m { position: relative; border-radius: 12px; overflow: hidden; min-height: 92px; display: flex; align-items: flex-end; isolation: isolate; border: 1px solid var(--line); }
.var-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.var-m::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,7,10,.92), rgba(8,7,10,.4)); }
.var-in { padding: 12px 14px; display: grid; gap: 2px; }
.var-in b { font: 700 var(--fs-md)/1.2 var(--display); }
.var-in b span { color: var(--red); margin: 0 4px; }
.var-in small { color: var(--text-2); font-size: var(--fs-xs); }
.dc-card { padding: 20px; display: grid; gap: 10px; }
.dc-card .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(88,101,242,.16); color: #8e97ff; }
.dc-card .ic svg { width: 26px; height: 26px; }
.dc-card h2 { font-size: var(--fs-lg); }
.dc-card p { color: var(--muted); font-size: var(--fs-sm); }

/* Chi tiết giải */
.td-info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.td-side, .td-main { display: grid; gap: var(--s5); }
.h-sm { font-size: var(--fs-lg); margin-bottom: 12px; text-transform: uppercase; }
.pre { white-space: pre-line; color: var(--text-2); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.draw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
.draw { padding: 16px; display: grid; gap: 10px; align-content: start; }
.draw h3 { font-size: var(--fs-md); text-transform: uppercase; color: var(--red); }
.draw-p { display: flex; align-items: center; gap: 10px; min-width: 0; }
.draw-p > div { min-width: 0; }
.draw-p b { display: block; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draw-p small { color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 900px) { .td-info { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 1180px) { .o-explore { order: 4; } .o-idol { order: 6; } .o-dc { order: 10; width: 100%; } }
/* Banner đã có chữ sẵn trong ảnh: giữ đúng tỉ lệ 16:9, không phủ chữ, nút đặt góc phải */
.hs { aspect-ratio: 16 / 9; }
.hs-slide::after { background: linear-gradient(0deg, rgba(8,7,10,.55), transparent 22%); }
.hs-copy { left: auto; right: 0; padding: 0 18px 16px 0; max-width: none; }
.hs-copy .hs-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hs-ctrl { left: 16px; right: auto; bottom: 14px; padding: 4px 12px 4px 4px; border-radius: var(--r-pill); background: rgba(8,7,10,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hs-ctrl .icon-btn { width: 36px; height: 36px; border-radius: 50%; }
.hs-count { margin-left: 6px; }
@media (max-width: 760px) { .hs { aspect-ratio: 16 / 9; } .hs-copy { padding: 0 10px 10px 0; } .hs-copy .btn { --c: 8px; padding: 7px 13px; font-size: 12px; } .hs-ctrl { left: 8px; bottom: 8px; } .hs-dots, .hs-ctrl .icon-btn:first-child { display: none; } }
/* Đầu khối đội: chọn đội xuống hàng riêng */
.tm-hd { flex-wrap: wrap; }
.tm-pick { order: 3; flex: 1 1 100%; max-width: none; }
.stat b { font-size: var(--fs-xl); }
/* Poster giải: ảnh banner 16:9 ở trên (đã có chữ sẵn), thông tin bên dưới */
.posters { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
.poster { aspect-ratio: auto; padding: 0; justify-content: flex-start; background: var(--surface); }
.poster::after { display: none; }
.poster-img { position: relative; inset: auto; z-index: 0; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.poster-img img { transition: transform .6s var(--ease); }
.poster:hover .poster-img { transform: none; }
.poster:hover .poster-img img { transform: scale(1.05); }
.poster h3 { padding: 12px 14px 0; font-size: var(--fs-md); }
.poster .prize { padding: 0 14px; font-size: var(--fs-sm); }
.poster .tags { padding: 0 14px 14px; }
.poster .badge { top: 10px; right: 10px; z-index: 1; }
@media (max-width: 1280px) { .posters { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 640px) { .posters { grid-auto-columns: 85%; } }

/* ================= Nền giống hệt web chính thức (style.css .bg-art + #embers) ================= */
body { background: transparent; }
body::before { display: none; }
.bg-art {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url('/img/bg-shards.svg') center / cover no-repeat, var(--bg);
}
.bg-art.custom::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,6,8,.55), rgba(6,6,8,.82) 55%, rgba(6,6,8,.95));
}
#embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
