/* ==========================================================
   Vietnam Esports Awards – theme tokens
   ========================================================== */
:root {
  --bg: #050a1a;
  --bg-2: #0a1230;
  --panel: #0b1533;
  --panel-2: #0f1c42;
  --line: rgba(64, 160, 255, 0.22);
  --line-strong: rgba(0, 229, 255, 0.55);
  --cyan: #00e5ff;
  --cyan-dark: #00b8d4;
  --purple: #8b3dff;
  --magenta: #c13cff;
  --red: #ff3b5c;
  --text: #e8eeff;
  --muted: #8a97c0;
  --font-head: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-script: "Kaushan Script", cursive;
  --radius: 4px;
  --cut: 12px; /* góc vát chéo */
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.1; text-transform: uppercase; }
svg { width: 1em; height: 1em; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 28px;
  font: 700 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn svg { font-size: 16px; }
.btn--primary { background: var(--cyan); color: #021023; }
.btn--primary:hover { background: #6ff3ff; transform: translateY(-2px); }
/* Viền vát: nền nút là màu viền, ::before là lớp tối bên trong */
.btn--ghost { position: relative; isolation: isolate; color: var(--text); background: var(--cyan); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 1.5px; z-index: -1;
  background: var(--bg); clip-path: inherit; transition: background .2s;
}
.btn--ghost:hover { color: var(--cyan); }
.btn--ghost:hover::before { background: #08183a; }
.btn--sm { height: 36px; padding: 0 22px; font-size: 12px; }
.btn--xs { height: 28px; padding: 0 16px; font-size: 11px; }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cyan); font: 700 12px var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
.link-more:hover svg { transform: translateX(3px); }
.link-more svg { transition: transform .2s; }

.eyebrow {
  margin: 0 0 10px; font: 600 14px var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--text);
}
.eyebrow b { color: var(--cyan); }
.slashes { color: var(--magenta); font-style: italic; margin-right: 4px; }
.script { font-family: var(--font-script); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 10, 26, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 52px; height: 40px; color: var(--cyan); filter: drop-shadow(0 0 8px rgba(0, 229, 255, .5)); }
.brand__text { font: 700 14px/1.15 var(--font-head); text-transform: uppercase; letter-spacing: .03em; }

.nav { display: flex; align-items: center; margin-left: 24px; }
.nav__link {
  position: relative; padding: 0 22px; height: 68px; display: flex; align-items: center;
  font: 600 13px var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--text);
  transition: color .2s;
}
.nav__link::before { /* vạch chéo phân cách */
  content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 22px;
  background: var(--line-strong); transform: translateY(-50%) skewX(-25deg);
}
.nav__link::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px;
  background: var(--cyan); transform: scaleX(0); transition: transform .25s;
  box-shadow: 0 0 10px var(--cyan);
}
.nav__link:hover, .nav__link.is-active { color: var(--cyan); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; border-radius: 50%; transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--cyan); background: rgba(0, 229, 255, .08); }
.header__actions .btn { margin-left: 8px; }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 9px; width: 22px; height: 2px; background: var(--text); content: ""; transition: transform .25s, opacity .25s;
}
.burger span { top: 19px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 520px; display: flex; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__bg {
  position: absolute; inset: 0 0 0 30%;
  background-size: cover; background-position: center;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 10, 26, .75) 18%, rgba(5, 10, 26, 0) 50%, rgba(5, 10, 26, .2) 80%, var(--bg) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 10, 26, 0) 30%);
}
.hero::before { /* tia sáng chéo trang trí */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 47%, rgba(139, 61, 255, .55) 47.2%, transparent 47.6%),
    linear-gradient(115deg, transparent 88%, rgba(0, 229, 255, .45) 88.2%, transparent 88.5%);
}
.hero__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 56px; }
.hero__content { max-width: 680px; }
.hero__title {
  font-size: clamp(34px, 6vw, 72px); font-weight: 700; letter-spacing: .01em; line-height: .98;
  margin-bottom: 20px; text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}
.hero__desc { max-width: 420px; margin: 0 0 28px; color: #c9d3f0; font-size: 15px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 32px; font: 600 12px var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.hero__meta li { display: flex; align-items: center; gap: 10px; }
.hero__meta svg { font-size: 18px; color: var(--cyan); }

.hero__tagline { text-align: left; align-self: flex-start; margin-top: 20px; }
.hero__tagline .script {
  display: block; font-size: 44px; line-height: .9; transform: rotate(-12deg);
  text-shadow: 0 0 20px rgba(139, 61, 255, .8);
}
.hero__slogan { display: block; margin-top: 30px; font: 700 14px/1.3 var(--font-head); text-transform: uppercase; }

/* ---------- Layout main + sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-top: 20px; }
.layout__aside { padding-top: 32px; display: flex; flex-direction: column; gap: 24px; }

.section { padding-top: 32px; padding-bottom: 24px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__title { position: relative; padding-left: 24px; font-size: 24px; font-weight: 700; }
.section__title::before {
  content: ""; position: absolute; left: 0; top: -4px; width: 8px; height: 34px;
  background: linear-gradient(180deg, var(--magenta), var(--purple));
  transform: skewX(-25deg); box-shadow: 0 0 12px var(--purple);
}
.section__sub { margin: 6px 0 0 24px; color: var(--muted); font-size: 13px; }

/* ---------- Card base ---------- */
.card {
  position: relative; background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: border-color .25s, transform .25s, box-shadow .25s;
  overflow: hidden;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card img { transition: transform .5s; }
.card:hover img { transform: scale(1.06); }
.card__arrow { position: absolute; right: 14px; bottom: 12px; color: var(--text); font-size: 16px; }
.card__arrow:hover { color: var(--cyan); }

.tag {
  position: absolute; left: 0; top: 10px; padding: 4px 16px 4px 10px;
  font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.tag--valorant { background: var(--purple); }
.tag--cs2 { background: #1f8bff; }
.tag--lol { background: var(--magenta); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel) 0%, transparent 55%); }
.news-card__body { padding: 4px 18px 40px; }
.news-card time, .news-mini time { display: block; color: var(--muted); font: 600 11px var(--font-head); text-transform: uppercase; margin-bottom: 6px; }
.news-card h3 { font-size: 17px; margin-bottom: 10px; }
.news-card p { margin: 0; color: var(--muted); font-size: 12px; }

.news-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.news-mini { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; padding: 8px 8px 30px 8px; min-height: 96px; }
.news-mini img { width: 110px; height: 78px; object-fit: cover; }
.news-mini h4 { font: 500 12px/1.4 var(--font-body); text-transform: none; }

/* Games */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.game-card { aspect-ratio: 4 / 3; display: block; }
.game-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 10, 26, .95) 0%, transparent 60%); }
.game-card__info { position: absolute; left: 16px; bottom: 12px; z-index: 1; }
.game-card__info h3 { font-size: 17px; }
.game-card__info span { font-size: 11px; color: var(--muted); }
.game-card__arrow { position: absolute; right: 14px; bottom: 16px; z-index: 1; font-size: 16px; }
.game-card:hover .game-card__arrow { color: var(--cyan); }

/* ---------- Sidebar: Matches ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.matches { padding: 16px 12px; }
.matches__head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; }
.matches__head h2 { font-size: 17px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font: 700 11px var(--font-head); text-transform: uppercase; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,59,92,.7); } 50% { box-shadow: 0 0 0 5px rgba(255,59,92,0); } }

.tabs { display: flex; gap: 4px; margin-bottom: 10px; border: 1px solid var(--line); padding: 3px; }
.tab { flex: 1; padding: 5px 0; font: 600 11px var(--font-head); text-transform: uppercase; color: var(--muted); transition: background .2s, color .2s; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--cyan); color: #021023; }

.match { border: 1px solid var(--line); padding: 8px 10px 10px; margin-bottom: 8px; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }
.match__league { display: flex; justify-content: space-between; color: var(--cyan); font: 600 10px var(--font-head); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.match__league span:last-child { color: var(--muted); }
.match__body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; gap: 6px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 10px var(--font-head); text-transform: uppercase; }
.team__logo {
  width: 30px; height: 30px; display: grid; place-items: center; font-size: 10px; color: #fff;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.match__score { font: 700 20px var(--font-head); letter-spacing: .08em; }
.match__status { display: block; font: 600 9px var(--font-head); text-transform: uppercase; color: var(--muted); letter-spacing: 0; }
.match__status.is-live { color: var(--red); }
.matches__all { padding: 6px 4px 0; width: 100%; justify-content: space-between; }

/* Promo */
.promo { position: relative; display: grid; grid-template-columns: 110px 1fr; align-items: center; min-height: 150px; overflow: hidden;
  background: linear-gradient(120deg, #3a0f8a, #170a45 50%, var(--panel)); border-color: rgba(193, 60, 255, .5); }
.promo img { height: 150px; width: 110px; object-fit: cover; }
.promo__text { padding: 12px 14px 12px 4px; text-align: right; }
.promo h3 { font-size: 22px; margin-bottom: 4px; }
.promo span { display: block; font-size: 9px; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.promo .btn { display: inline-flex; color: var(--cyan); }

/* ---------- Awards ---------- */
.awards {
  margin-top: 40px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(139, 61, 255, .35), transparent 55%),
    linear-gradient(115deg, #0a0f2e, #0b1640 50%, #071029);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.awards::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 10%, rgba(139, 61, 255, .35) 10.3%, transparent 10.8%),
    linear-gradient(115deg, transparent 85%, rgba(0, 229, 255, .3) 85.2%, transparent 85.6%);
}
.awards__inner { position: relative; display: grid; grid-template-columns: 340px 1fr; align-items: center; gap: 48px; padding-top: 24px; padding-bottom: 24px; }
.awards__trophy img { width: 100%; max-height: 360px; object-fit: contain;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  filter: drop-shadow(0 0 30px rgba(139, 61, 255, .6)); }
.awards__title { font-size: clamp(40px, 5vw, 60px); margin-bottom: 10px; }
.awards__desc { margin: 0 0 36px; font-size: 16px; color: #c9d3f0; }
.awards__row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.categories { display: flex; flex: 1; min-width: 0; }
.categories li { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 10px; border-left: 1px solid var(--line); }
.categories li:first-child { border-left: 0; }
.categories svg { font-size: 28px; color: var(--cyan); margin-bottom: 10px; }
.categories b { font: 600 11px var(--font-head); text-transform: uppercase; }
.categories span { font-size: 10px; color: var(--muted); text-transform: uppercase; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.65fr 1.7fr 1fr 1.55fr 1.9fr 1fr; gap: 6px; height: 140px; }
.gallery__item { padding: 0; overflow: hidden; border: 1px solid var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery__item:hover img { transform: scale(1.08); filter: brightness(1.15); }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(2, 5, 15, .9); padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1000px, 100%); max-height: 85vh; border: 1px solid var(--line-strong); }
.lightbox__close { position: absolute; top: 16px; right: 24px; font-size: 40px; line-height: 1; color: var(--text); }

/* ---------- Footer ---------- */
.footer { margin-top: 32px; background: #040816; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.8fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.footer__motto { margin: 14px 0 20px; color: #2f6fd1; font: 600 11px var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.socials { display: flex; gap: 16px; font-size: 18px; }
.socials a:hover { color: var(--cyan); }
.footer__title { font-size: 13px; margin-bottom: 16px; }
.footer__links li { margin-bottom: 6px; }
.footer__links a { color: var(--muted); font-size: 13px; }
.footer__links a:hover { color: var(--cyan); }
.footer__note { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.subscribe { display: flex; border: 1px solid var(--line-strong); }
.subscribe input { flex: 1; min-width: 0; padding: 0 14px; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 13px; outline: none; }
.subscribe .btn { height: 42px; }
.subscribe__msg { min-height: 1.4em; margin: 8px 0 0; font-size: 12px; color: var(--cyan); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer__sig { color: var(--cyan); font-size: 20px; line-height: 1.1; text-align: right; transform: rotate(-4deg); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .nav__link { padding: 0 14px; }
  .nav__link::after { left: 14px; right: 14px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout__aside { padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .hero__tagline { display: none; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: 68px; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch;
    background: rgba(5, 10, 26, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav__link { height: 52px; padding: 0 24px; border-top: 1px solid var(--line); }
  .nav__link::before { display: none; }
  .nav__link::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .news-grid, .news-mini-grid { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .awards__inner { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .awards__trophy img { max-height: 260px; margin: 0 auto; }
  .awards__row { justify-content: center; }
  .categories { flex-wrap: wrap; flex-basis: 100%; row-gap: 20px; }
  .categories li { flex: 1 0 30%; }
  .gallery { grid-template-columns: repeat(3, 1fr); height: auto; grid-auto-rows: 120px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header__inner { gap: 12px; }
  .brand__text { font-size: 12px; }
  .header__actions .btn, .header__actions .icon-btn:nth-child(2) { display: none; }
  .hero { min-height: 0; }
  .hero__bg { inset: 0; opacity: .45; }
  .hero__inner { padding-top: 48px; padding-bottom: 40px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__sub { margin-left: 24px; }
  .news-grid, .news-mini-grid, .layout__aside { grid-template-columns: 1fr; }
  .categories li { flex-basis: 45%; border-left: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__sig { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Trang con – components
   ========================================================== */
.news-card__media { display: block; }
.news-card h3 a:hover, .news-featured h2 a:hover { color: var(--cyan); }
.tag--pubg { background: #f5a623; color: #1a1200; }
.tag--inline { position: static; display: inline-block; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; grid-column: 1 / -1; list-style: none; }

/* Page hero (banner đầu trang con) */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 15%, rgba(5, 10, 26, .6) 60%, rgba(5, 10, 26, .3)), linear-gradient(0deg, var(--bg), transparent 60%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 70%, rgba(0, 229, 255, .45) 70.2%, transparent 70.5%);
}
.page-hero__inner { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 44px; }
.page-hero__title { font-size: clamp(32px, 5vw, 56px); margin: 10px 0 12px; }
.page-hero__sub { margin: 0; max-width: 520px; color: #c9d3f0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font: 600 12px var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.breadcrumb a { color: var(--cyan); }
.breadcrumb span { color: var(--magenta); }

/* Toolbar: chips, search, tabs lớn */
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 18px; font: 600 12px var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: color .2s, background .2s;
}
.chip:hover { color: var(--text); }
.chip.is-active { background: var(--cyan); color: #021023; box-shadow: none; }
.search-input { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; min-width: 240px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.search-input:focus-within { border-color: var(--cyan); }
.search-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; }
.tabs--lg { margin: 0; }
.tabs--lg .tab { padding: 9px 22px; font-size: 13px; }
.result-count { margin: -8px 0 16px; color: var(--muted); font-size: 13px; }

/* Widget sidebar */
.widget { padding: 18px 16px; }
.widget__title { font-size: 17px; margin-bottom: 14px; }
.trend-list { counter-reset: t; list-style: none; padding: 0; margin: 0; }
.trend-list li { counter-increment: t; border-top: 1px solid var(--line); }
.trend-list li:first-child { border-top: 0; }
.trend-list a { display: grid; grid-template-columns: 28px 1fr; padding: 10px 0; }
.trend-list a::before { content: counter(t, decimal-leading-zero); grid-row: span 2; color: var(--cyan); font: 700 16px var(--font-head); }
.trend-list b { font-weight: 500; font-size: 13px; line-height: 1.35; }
.trend-list a:hover b { color: var(--cyan); }
.trend-list span { font-size: 11px; color: var(--muted); margin-top: 2px; }
.match.empty { text-align: center; color: var(--muted); }
a.team:hover { color: var(--cyan); }

/* News page */
.news-featured { display: grid; grid-template-columns: 1.3fr 1fr; margin-bottom: 14px; }
.news-featured__media { position: relative; min-height: 280px; overflow: hidden; }
.news-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-featured__body { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; align-items: flex-start; }
.news-featured h2 { font-size: 26px; }
.news-featured p { margin: 0; color: var(--muted); }
.news-grid--page { margin-bottom: 28px; }
.pagination { display: flex; justify-content: center; gap: 6px; }
.page-btn { width: 38px; height: 38px; font: 700 14px var(--font-head); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.page-btn.is-active, .page-btn:hover { background: var(--cyan); color: #021023; }

/* Article */
.article__title { font-size: clamp(28px, 4vw, 42px); margin: 14px 0; text-transform: none; }
.article > .breadcrumb { margin-bottom: 16px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta svg { color: var(--cyan); }
.article__media { margin: 24px 0; border: 1px solid var(--line); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.article__media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article__body { max-width: 720px; font-size: 16px; line-height: 1.8; color: #c9d3f0; }
.article__body .lead { font-size: 19px; color: var(--text); }
.article__body h2 { font-size: 22px; color: var(--text); margin: 32px 0 8px; }
.article__body blockquote { margin: 28px 0; padding: 8px 0 8px 22px; border-left: 3px solid var(--magenta); font: italic 600 20px/1.5 var(--font-head); color: var(--text); }
.article__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article__tags a { padding: 4px 12px; font-size: 12px; color: var(--cyan); border: 1px solid var(--line); }
.share { display: flex; align-items: center; gap: 14px; font: 600 12px var(--font-head); text-transform: uppercase; color: var(--muted); }
.share a, .share button { font-size: 18px; color: var(--text); }
.share a:hover, .share button:hover, .share .is-on { color: var(--cyan); }

/* Teams */
.games-grid--compact { margin-bottom: 32px; }
.games-grid--compact .game-card { aspect-ratio: 16 / 7; text-align: left; padding: 0; }
.game-card.is-active { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.team-card { display: block; padding: 20px; }
.team-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--team); box-shadow: 0 0 16px var(--team); }
.team-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--team); opacity: .12; filter: blur(30px); }
.team-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.team-card__top .tag { position: static; }
.team-card h3 { font-size: 20px; margin-bottom: 4px; }
.team-card:hover h3 { color: var(--cyan); }
.team-card__region { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.team-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.team-card__stats dt { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.team-card__stats dd { margin: 2px 0 0; font: 700 16px var(--font-head); }
.team__logo--lg { width: 52px; height: 52px; font-size: 15px; }
.team__logo--xl { width: 110px; height: 110px; font-size: 32px; box-shadow: 0 0 40px var(--team); }

/* Team detail */
.team-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 15% 60%, color-mix(in srgb, var(--team) 35%, transparent), transparent 55%), linear-gradient(115deg, #0a0f2e, var(--bg)); }
.team-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 75%, color-mix(in srgb, var(--team) 60%, transparent) 75.2%, transparent 75.6%); }
.team-hero__inner { position: relative; padding-top: 40px; padding-bottom: 40px; }
.team-hero__main { display: flex; align-items: center; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.team-hero__main .btn { margin-left: auto; }
.team-hero__name { font-size: clamp(36px, 5vw, 60px); margin: 8px 0; }
.team-hero__meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 0; color: var(--muted); font-size: 13px; }
.team-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -1px; padding-top: 28px; }
.stat-box { padding: 18px 20px; }
.stat-box b { display: block; font: 700 30px var(--font-head); color: var(--cyan); }
.stat-box span { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.roster { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.player-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 12px 16px; }
.player-card__avatar {
  width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 12px;
  font: 700 24px var(--font-head); text-transform: uppercase;
  background: linear-gradient(135deg, var(--team), var(--panel-2));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.player-card__nick { font: 700 18px var(--font-head); text-transform: uppercase; }
.player-card__name { font-size: 12px; color: var(--muted); }
.player-card__role { margin: 8px 0 12px; padding: 2px 10px; font: 600 10px var(--font-head); text-transform: uppercase; color: var(--cyan); border: 1px solid var(--line-strong); }
.player-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; padding-top: 10px; border-top: 1px solid var(--line); }
.player-card__stats span { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.player-card__stats b { display: block; font: 700 14px var(--font-head); color: var(--text); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* Schedule: hàng trận */
.day-group { margin-bottom: 28px; }
.day-group__title { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.day-group__title span { font: 500 12px var(--font-body); color: var(--muted); text-transform: none; }
.match-rows { display: flex; flex-direction: column; gap: 8px; }
.match-row {
  display: grid; grid-template-columns: 70px 1.1fr 2fr 130px; align-items: center; gap: 16px;
  padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s;
}
.match-row:hover { border-color: var(--line-strong); }
.match-row.is-live { border-color: rgba(255, 59, 92, .5); background: linear-gradient(90deg, rgba(255, 59, 92, .1), var(--panel) 40%); }
.match-row__time b { display: block; font: 700 18px var(--font-head); }
.match-row__time span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.match-row__league { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match-row__league .tag { position: static; flex: none; }
.match-row__league b { display: block; font: 600 13px var(--font-head); text-transform: uppercase; }
.match-row__league div span { font-size: 11px; color: var(--muted); }
.match-row__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.match-row__team { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font: 700 14px var(--font-head); text-transform: uppercase; color: var(--muted); }
.match-row__team--b { justify-content: flex-start; }
.match-row__team.is-win, .match-row:not(:has(.match-row__final)) .match-row__team { color: var(--text); }
.match-row__team:hover { color: var(--cyan); }
.match-row__score { font: 700 22px var(--font-head); letter-spacing: .05em; min-width: 64px; text-align: center; }
.match-row__score i { font-style: normal; color: var(--muted); margin: 0 4px; }
.match-row__vs { font: 700 13px var(--font-head); color: var(--muted); min-width: 64px; text-align: center; }
.match-row__action { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.match-row__final { font: 600 11px var(--font-head); text-transform: uppercase; color: var(--muted); }
.js-remind.is-on { color: var(--cyan); }
.match-rows--compact .match-row { grid-template-columns: 60px 1fr 120px; }
.match-rows--compact .match-row__league { display: none; }

.tour-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.tour-list li:first-child { border-top: 0; }
.tour-list .tag { position: static; min-width: 58px; text-align: center; }
.tour-list b { display: block; font: 600 13px var(--font-head); text-transform: uppercase; }
.tour-list div span { font-size: 11px; color: var(--muted); }
.countdown__date { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; font-size: 12px; color: var(--muted); }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.countdown__grid div { text-align: center; padding: 8px 0; border: 1px solid var(--line); background: var(--bg); }
.countdown__grid b { display: block; font: 700 22px var(--font-head); color: var(--cyan); }
.countdown__grid span { font-size: 9px; text-transform: uppercase; color: var(--muted); }
.countdown .btn { width: 100%; justify-content: center; }

/* Stats */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 16px; margin-bottom: 28px; }
.podium__card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 16px 20px; text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: transform .25s;
}
.podium__card:hover { transform: translateY(-4px); }
.podium__card--1 { padding-top: 40px; border-color: var(--line-strong); background: linear-gradient(180deg, rgba(0, 229, 255, .15), var(--panel)); }
.podium__rank { position: absolute; left: 16px; top: 10px; font: 700 36px var(--font-head); color: transparent; -webkit-text-stroke: 1px var(--cyan); }
.podium__card b { font: 700 20px var(--font-head); text-transform: uppercase; margin-top: 8px; }
.podium__sub { font-size: 12px; color: var(--muted); }
.podium__card strong { font: 700 32px var(--font-head); color: var(--cyan); margin-top: 6px; }
.podium__card small { font-size: 10px; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font: 600 11px var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--panel-2); }
.table th button { display: inline-flex; align-items: center; gap: 6px; text-transform: inherit; letter-spacing: inherit; }
.table th button:hover, .table th[aria-sort="ascending"], .table th[aria-sort="descending"] { color: var(--cyan); }
.table th[aria-sort="descending"] i::after { content: "▼"; font-size: 8px; font-style: normal; }
.table th[aria-sort="ascending"] i::after { content: "▲"; font-size: 8px; font-style: normal; }
.table .num { text-align: right; }
.table th.num button { flex-direction: row-reverse; }
.table tbody tr:hover { background: rgba(0, 229, 255, .04); }
.table .rank { font: 700 14px var(--font-head); color: var(--cyan); width: 40px; }
.cell-player { display: flex; align-items: center; gap: 10px; }
.cell-player__text { display: flex; flex-direction: column; }
.cell-player b { font: 700 14px var(--font-head); text-transform: uppercase; }
.cell-player small { font-size: 11px; color: var(--muted); }
.cell-player:hover b { color: var(--cyan); }
.table-more { display: flex; justify-content: center; margin-top: 20px; }
.table-more[hidden] { display: none; }
.winbar { display: inline-block; width: 70px; height: 4px; margin-right: 10px; vertical-align: middle; background: var(--line); }
.winbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--cyan)); }

/* About */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.split p { color: #c9d3f0; }
.split__title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.split .hero__cta { margin: 24px 0 0; }
.split__media img { width: 100%; max-height: 420px; object-fit: contain; filter: drop-shadow(0 0 40px rgba(139, 61, 255, .6));
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); }
.numbers-band { background: linear-gradient(115deg, #170a45, #0b1640 60%, #071029); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 32px; padding-bottom: 32px; text-align: center; }
.numbers div + div { border-left: 1px solid var(--line); }
.numbers b { display: block; font: 700 44px var(--font-head); color: var(--cyan); text-shadow: 0 0 20px rgba(0, 229, 255, .4); }
.numbers sup { font-size: 18px; }
.numbers span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card { padding: 22px 20px; }
.cat-card svg { font-size: 32px; color: var(--cyan); margin-bottom: 14px; }
.cat-card h3 { font-size: 16px; margin-bottom: 6px; }
.cat-card p { margin: 0; font-size: 13px; color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.timeline li { position: relative; padding-top: 30px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; background: var(--panel-2); border: 2px solid var(--line-strong); transform: rotate(45deg); }
.timeline .is-done::before { background: var(--purple); border-color: var(--purple); }
.timeline .is-current::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.timeline time { font: 700 12px var(--font-head); color: var(--cyan); text-transform: uppercase; }
.timeline h3 { font-size: 16px; margin: 4px 0; }
.timeline p { margin: 0; font-size: 13px; color: var(--muted); }
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.partners span { display: grid; place-items: center; height: 72px; border: 1px dashed var(--line); color: var(--muted); font: 600 13px var(--font-head); text-transform: uppercase; }
.faq details { border: 1px solid var(--line); background: var(--panel); margin-bottom: 8px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 18px; font: 600 14px var(--font-head); text-transform: uppercase; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--cyan); }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font: 600 11px var(--font-head); text-transform: uppercase; color: var(--muted); }
.contact-form .full, .contact-form .subscribe__msg { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: 400 14px var(--font-body); outline: none; resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--cyan); }
.contact-form .btn { justify-self: start; }

@media (max-width: 1100px) {
  .roster { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .match-row { grid-template-columns: 60px 1fr 120px; }
  .match-row__league { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 900px) {
  .news-featured, .split, .two-col { grid-template-columns: 1fr; }
  .news-featured__media { min-height: 220px; }
  .stat-row, .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers div:nth-child(3) { border-left: 0; }
  .numbers div { padding: 10px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .timeline::before { display: none; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .podium { gap: 8px; }
}
@media (max-width: 600px) {
  .search-input { min-width: 0; width: 100%; }
  .toolbar > .chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .chip { flex: none; }
  .games-grid--compact .game-card { aspect-ratio: 4 / 3; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .team-hero__main { gap: 18px; }
  .team-hero__main .btn { margin-left: 0; }
  .team__logo--xl { width: 80px; height: 80px; font-size: 24px; }
  .match-row, .match-rows--compact .match-row { grid-template-columns: 1fr auto; padding: 12px; gap: 10px; }
  .match-row__teams { grid-column: 1 / -1; grid-row: 3; }
  .match-row__time { display: flex; gap: 8px; align-items: baseline; }
  .match-row__team span { font-size: 12px; }
  .podium { grid-template-columns: 1fr; }
  .podium__card--1 { order: -1; }
  .cat-grid, .timeline, .contact-form { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .numbers b { font-size: 34px; }
}
