/* ==========================================================================
   Matchday UI — giao diện web công khai (nguồn: demo/css/style.css)
   Mobile-first. Breakpoints: 640 (sm) · 768 (md) · 1024 (lg) · 1280 (xl)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #0A0E17;
  --bg-deep: #05080F;
  --bg-band: #0E1422;
  --surface: #111827;
  --surface-2: #151D2E;
  --surface-3: #1A2233;
  --line: #1C2538;
  --line-strong: #25304A;
  --text: #F3F6FB;
  --text-2: #D5DCE8;
  --muted: #A3AEC4;
  --muted-2: #7F8BA3;

  --accent: #C6FF1A;        /* volt — CTA, nhãn, tab đang chọn */
  --accent-ink: #0A0E17;    /* chữ trên nền accent */
  --pitch: #16C172;         /* thắng */
  --live: #FF3355;          /* LIVE, thua, xuống hạng */
  --live-soft: #FF5C77;
  --ucl: #4C8DFF;
  --uel: #FF8A1F;
  --draw: #3A4560;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1240px;
  --gutter: 16px;
  --header-h: 60px;
  --ticker-h: 36px;
  --bottom-nav-h: 64px;
  --skew: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --header-h: 76px; --ticker-h: 40px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  padding-bottom: var(--bottom-nav-h);
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 1.02; }

/* ---------- 3. Atoms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .02em;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); font-weight: 700; }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }

.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text);
}
.icon-btn--bare { background: transparent; border: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tag {
  display: inline-block; align-self: flex-start; padding: 5px 14px 5px 10px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  clip-path: var(--skew);
}
.kicker { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.meta { font-size: 12px; color: var(--muted-2); }

.chip {
  display: inline-flex; align-items: center; white-space: nowrap; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--text-2);
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

.live-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px;
  background: var(--live); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; animation: pulse 1.4s infinite; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .04em; background: var(--surface-3); color: var(--muted); }
.status--live { background: rgba(255, 51, 85, .14); color: var(--live-soft); }
.status--live .live-dot { background: var(--live); box-shadow: 0 0 0 4px rgba(255, 51, 85, .25); }

.crest {
  --c: #25304A;
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--c);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #fff;
}
.crest--sm { width: 28px; height: 28px; font-size: 10px; }
.crest--lg { width: 52px; height: 52px; font-size: 16px; }
.crest--square { border-radius: 8px; }

.form { display: inline-flex; gap: 3px; }
.form span { width: 20px; height: 20px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.form .w { background: var(--pitch); color: #04130B; }
.form .d { background: var(--draw); color: #E4E9F2; }
.form .l { background: var(--live); color: #fff; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-title {
  margin: 0; padding: 5px 22px 5px 12px; background: var(--text); color: var(--bg);
  font-family: var(--font-display); font-weight: 800; font-size: 21px; text-transform: uppercase; letter-spacing: .02em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
@media (min-width: 1024px) { .section-title { font-size: 26px; padding: 6px 26px 6px 16px; } }
.see-more { font-size: 14px; font-weight: 600; color: var(--accent); }
.see-more:hover { text-decoration: underline; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* Ảnh: khung giữ tỉ lệ để tránh CLS, hiệu ứng zoom khi hover */
.thumb { position: relative; overflow: hidden; border-radius: var(--radius); background: #1A2A3F; aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a:hover .thumb img { transform: scale(1.05); }

.scroll-x { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { scroll-snap-align: start; flex-shrink: 0; }

/* ---------- 4. Ticker ---------- */
.ticker { height: var(--ticker-h); background: var(--bg-deep); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker .container { height: 100%; display: flex; align-items: center; gap: 16px; }
.ticker__viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 8px; padding: 0 18px; border-right: 1px solid var(--line-strong); font-size: 13px; white-space: nowrap; }
.ticker__lg { font-size: 11px; font-weight: 600; color: var(--muted-2); }
.ticker__team { font-weight: 600; }
.ticker__score { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.ticker__min { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--muted-2); }
.ticker__min.is-live { color: var(--live-soft); }

/* ---------- 5. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 14, 23, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }
@media (min-width: 1024px) { .logo img { height: 44px; } }
.header__menu-btn { order: -1; }
.site-header .logo { margin: 0 auto; }
.nav { display: none; }
@media (min-width: 1024px) {
  .header__menu-btn { display: none; }
  .site-header .logo { margin: 0 24px 0 0; }
  .nav { display: flex; align-items: stretch; height: 100%; flex: 1; gap: 2px; overflow: hidden; }
  .nav a {
    position: relative; display: flex; align-items: center; padding: 0 11px; white-space: nowrap;
    font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; color: #B4BED1;
  }
  .nav a::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
  .nav a:hover { color: var(--text); }
  .nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
  .nav a.is-active { color: #fff; font-weight: 700; }
}
.search-bar { display: none; border-top: 1px solid var(--line); padding: 12px 0; }
.search-bar.is-open { display: block; }
.search-bar form { display: flex; gap: 8px; }
.input { width: 100%; min-height: 44px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); }
.input:focus { border-color: var(--accent); outline: none; }

/* Drawer (menu mobile) */
.drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; width: min(320px, 86vw); background: var(--bg-deep); border-right: 1px solid var(--line-strong); transform: translateX(-100%); transition: transform .3s ease; display: flex; flex-direction: column; overflow-y: auto; }
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer__nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer__nav a { display: flex; align-items: center; min-height: 48px; padding: 0 20px; font-family: var(--font-display); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; border-left: 3px solid transparent; }
.drawer__nav a.is-active { border-left-color: var(--accent); background: var(--surface); color: #fff; }
.drawer__label { padding: 16px 20px 6px; font-size: 12px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }

/* Bottom nav (mobile) */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--bottom-nav-h); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(10, 14, 23, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-strong); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
.bottom-nav a.is-active { color: var(--accent); }
@media (min-width: 1024px) { .bottom-nav { display: none; } }

/* ---------- 6. Trend strip ---------- */
.trend { border-bottom: 1px solid var(--line); }
.trend .container { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.trend__label { flex-shrink: 0; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ---------- 7. Hero ---------- */
.hero { display: grid; gap: 16px; padding-top: 16px; }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; padding-top: 32px; } }
.hero__main { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; min-height: 400px; background: #13261D; }
@media (min-width: 1024px) { .hero__main { min-height: 500px; } }
.hero__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero__main:hover img { transform: scale(1.04); }
.hero__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 20px 20px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(0deg, rgba(5, 8, 15, .96) 0%, rgba(5, 8, 15, .7) 55%, rgba(5, 8, 15, 0) 100%); }
@media (min-width: 1024px) { .hero__body { padding: 120px 36px 32px; } }
.hero__title { margin: 0; font-size: 30px; color: #fff; }
@media (min-width: 768px) { .hero__title { font-size: 40px; } }
@media (min-width: 1280px) { .hero__title { font-size: 48px; } }
.hero__main:hover .hero__title { color: #fff; }
.hero__side { display: flex; flex-direction: column; gap: 0; }
@media (min-width: 1024px) { .hero__side { gap: 16px; } }
.story { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .story { flex: 1; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; } }
.story .thumb { width: 110px; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: 10px; }
@media (min-width: 1024px) { .story .thumb { width: 128px; aspect-ratio: auto; } }
.story__body { display: flex; flex-direction: column; gap: 6px; }
.story__title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text); }
.story:hover .story__title { color: var(--accent); }

/* ---------- 8. Match cards ---------- */
.section { padding-top: 40px; }
@media (min-width: 1024px) { .section { padding-top: 56px; } }
.league-tabs { display: flex; gap: 8px; }
.matches { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
.matches > .match-card { width: 272px; }
@media (min-width: 1024px) {
  .matches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; overflow: visible; }
  .matches > .match-card { width: auto; }
}
.match-card { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .2s, border-color .2s; }
.match-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.match-card.is-live { border-color: var(--live); box-shadow: 0 0 0 1px rgba(255, 51, 85, .35), 0 12px 32px rgba(255, 51, 85, .14); }
.match-card[hidden] { display: none; }
.match-card__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); font-weight: 500; }
.match-card__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.match-card__team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; }
.match-card__score { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.match-card__score.is-upcoming { color: var(--muted); font-size: 32px; }
.match-card__foot { padding-top: 12px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted-2); }

/* ---------- 9. Home content layout ---------- */
.layout { display: grid; gap: 40px; padding-bottom: 56px; }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding-bottom: 64px; } }
.news-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-card { display: flex; flex-direction: column; gap: 10px; }
.news-card__title { font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--text); margin: 0; }
.news-card:hover .news-card__title { color: var(--accent); }
.teams-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .teams-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.team-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; font-weight: 600; transition: border-color .2s, transform .2s; }
.team-tile:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) { .sidebar { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; } }
.widget { overflow: hidden; }
.widget__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.widget__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.widget__foot { display: block; padding: 14px; text-align: center; font-size: 13px; font-weight: 600; color: var(--accent); border-top: 1px solid var(--line); }

/* Mini standings */
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { padding: 10px 6px; font-size: 11px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; text-align: right; }
.mini-table th:nth-child(-n+2) { text-align: left; }
.mini-table td { padding: 9px 6px; text-align: right; font-variant-numeric: tabular-nums; }
.mini-table td:first-child, .mini-table th:first-child { padding-left: 15px; }
.mini-table td:last-child, .mini-table th:last-child { padding-right: 18px; }
.mini-table .pos { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--muted); text-align: left; }
.mini-table .team { font-weight: 600; text-align: left; white-space: nowrap; }
.mini-table .pts { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.mini-table .col-form { display: none; }
@media (min-width: 380px) { .mini-table .col-form { display: table-cell; } }
tr.zone-ucl td:first-child { box-shadow: inset 3px 0 0 var(--ucl); }
tr.zone-uel td:first-child { box-shadow: inset 3px 0 0 var(--uel); }
tr.zone-rel td:first-child { box-shadow: inset 3px 0 0 var(--live); }

/* Most read */
.most-read { padding: 18px; }
.most-read ol { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: rank; }
.most-read li { counter-increment: rank; border-top: 1px solid var(--line); }
.most-read a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; font-size: 14px; font-weight: 600; line-height: 1.45; }
.most-read a::before { content: counter(rank); width: 34px; flex-shrink: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 34px; line-height: .9; color: var(--accent); }

/* ---------- 10. Page band (tiêu đề trang con) ---------- */
.page-band { position: relative; overflow: hidden; background: var(--bg-band); border-bottom: 1px solid var(--line); padding: 24px 0 20px; }
@media (min-width: 1024px) { .page-band { padding: 36px 0 28px; } }
.page-band::after { content: ''; position: absolute; right: -40px; top: -20px; width: 520px; height: 220px; background: url('../images/matchday/pitch-lines.svg') no-repeat center / contain; opacity: .5; pointer-events: none; }
.page-band .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); }
.page-title { margin: 0; font-size: 36px; }
@media (min-width: 768px) { .page-title { font-size: 48px; } }
@media (min-width: 1280px) { .page-title { font-size: 56px; } }
.page-title em { font-style: normal; color: var(--accent); }
.page-band__row { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .page-band__row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.segmented { display: inline-flex; padding: 4px; background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: 12px; align-self: flex-start; }
.segmented button, .segmented a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: #B4BED1; font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: uppercase; }
.segmented button.is-active, .segmented a.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 800; }

/* Date pills */
.dates { border-bottom: 1px solid var(--line); }
.dates .container { display: flex; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.dates .scroll-x { flex: 1; gap: 8px; }
.date-pill { min-width: 76px; padding: 8px 12px; white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text-2); }
@media (min-width: 1024px) { .date-pill { min-width: 92px; padding: 10px 14px; } }
.date-pill small { font-size: 12px; color: var(--muted); }
.date-pill strong { font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.date-pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.date-pill.is-active small { color: var(--accent-ink); font-weight: 600; }
.date-picker-wrap { position: relative; flex: none; }
.date-picker { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 52px; min-height: 56px; padding: 0 14px; }
.date-picker span { display: none; }
@media (min-width: 768px) { .date-picker { min-height: 60px; } .date-picker span { display: inline; } }
.date-picker__input { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }

/* ---------- 11. Schedule ---------- */
.schedule { display: grid; gap: 20px; padding-top: 20px; padding-bottom: 56px; }
@media (min-width: 1024px) { .schedule { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 64px; } }
.league-nav { display: none; }
@media (min-width: 1024px) {
  .league-nav { display: flex; flex-direction: column; gap: 2px; padding: 16px; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
  .league-nav__title { padding: 4px 8px 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; text-transform: uppercase; }
  .league-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; font-size: 14px; }
  .league-nav a:hover, .league-nav a.is-active { background: var(--surface-3); color: var(--text); }
  .league-nav a span:nth-child(2) { flex: 1; }
  .league-nav .count { font-size: 12px; color: var(--muted-2); }
  .league-nav .see-more { margin-top: 8px; padding: 12px 8px 4px; border-top: 1px solid var(--line); font-size: 13px; }
}
.league-chips { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); gap: 8px; }
@media (min-width: 1024px) { .league-chips { display: none; } }
.groups { display: flex; flex-direction: column; gap: 16px; }
.load-more { display: flex; justify-content: center; margin-top: 20px; }
.load-more .btn { min-height: 48px; padding: 0 24px; }
.load-more .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.group { overflow: hidden; }
.group__head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface-2); border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.group__name { flex: 1; font-family: var(--font-display); font-weight: 800; font-size: 19px; text-transform: uppercase; }
.group__name small { font-family: var(--font-body); font-weight: 500; font-size: 13px; text-transform: none; color: var(--muted-2); }
.group__chev { transition: transform .2s; color: var(--muted); }
.group.is-collapsed .group__chev { transform: rotate(-90deg); }
.group.is-collapsed .group__body { display: none; }

.match-row {
  display: grid; align-items: center; gap: 4px 10px; padding: 12px 16px; border-bottom: 1px solid var(--surface-3);
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas: "st home hs" "st away as";
}
.match-row:last-child { border-bottom: 0; }
.match-row.is-live { box-shadow: inset 3px 0 0 var(--live); }
.match-row[hidden] { display: none; }
.match-row__status { grid-area: st; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text); }
.match-row.is-live .match-row__status { color: var(--live-soft); }
.match-row.is-ft .match-row__status { color: var(--muted-2); }
.match-row__home { grid-area: home; }
.match-row__away { grid-area: away; }
.match-row__team { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.match-row__team.is-winner { font-weight: 700; }
.match-row__hs, .match-row__as { font-family: var(--font-display); font-weight: 800; font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.match-row__hs { grid-area: hs; }
.match-row__as { grid-area: as; }
.match-row__score, .match-row__link { display: none; }
@media (min-width: 768px) {
  .match-row { grid-template-columns: 72px minmax(0, 1fr) 100px minmax(0, 1fr) 150px; grid-template-areas: "st home score away link"; min-height: 64px; padding: 0 20px; }
  .match-row__home { justify-content: flex-start; flex-direction: row-reverse; text-align: right; }
  .match-row__hs, .match-row__as { display: none; }
  .match-row__score { grid-area: score; display: block; justify-self: center; min-width: 84px; padding: 6px 0; border-radius: 8px; background: var(--surface-3); text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
  .match-row.is-live .match-row__score { background: rgba(255, 51, 85, .16); }
  .match-row.is-upcoming .match-row__score { background: transparent; color: var(--muted-2); }
  .match-row__link { grid-area: link; display: block; justify-self: end; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--muted); }
  .match-row.is-live .match-row__link { color: var(--live-soft); }
  .match-row.is-upcoming .match-row__link { color: var(--accent); }
}
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }

/* ---------- 12. Standings ---------- */
.league-head { display: flex; align-items: center; gap: 16px; }
.league-head .crest { width: 56px; height: 56px; border-radius: 14px; font-size: 18px; }
@media (min-width: 1024px) { .league-head .crest { width: 72px; height: 72px; border-radius: 18px; font-size: 22px; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.select { min-height: 44px; min-width: 160px; padding: 0 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; }
.tabs-line { display: flex; gap: 4px; margin-top: 20px; margin-bottom: -20px; }
@media (min-width: 1024px) { .tabs-line { margin-bottom: -28px; } }
.tabs-line a { padding: 12px 14px; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: uppercase; color: var(--muted); }
.tabs-line a.is-active { color: #fff; box-shadow: inset 0 -4px 0 var(--accent); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.standings { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.standings thead th { position: sticky; top: 0; height: 46px; padding: 0 10px; background: var(--surface-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: right; white-space: nowrap; }
.standings th.left, .standings td.left { text-align: left; }
.standings td { height: 50px; padding: 0 10px; border-top: 1px solid var(--surface-3); text-align: right; color: var(--text-2); }
.standings tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.standings .pos { width: 48px; padding-left: 17px; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--muted); text-align: left; }
.standings .team { color: var(--text); font-weight: 600; white-space: nowrap; }
.standings .team a { display: flex; align-items: center; gap: 12px; }
.standings .pts { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--text); }
.standings th.pts { color: var(--text); font-family: var(--font-body); font-size: 12px; }
.standings .form span { width: 24px; height: 24px; font-size: 11px; }
/* Cố định cột # và Đội khi cuộn ngang trên mobile */
.standings .pos, .standings .team { position: sticky; background: var(--surface); z-index: 1; }
.standings .pos { left: 0; }
.standings .team { left: 48px; }
.standings thead .pos, .standings thead .team { background: var(--surface-2); z-index: 2; }
.standings .hide-sm { display: none; }
@media (min-width: 768px) { .standings .hide-sm { display: table-cell; } }
.legend { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; }

/* ---------- 13. Article ---------- */
.article-layout { display: grid; gap: 40px; padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-top: 36px; padding-bottom: 64px; } }
.article { display: flex; flex-direction: column; gap: 20px; max-width: 800px; }
.article__title { margin: 0; font-size: 34px; }
@media (min-width: 768px) { .article__title { font-size: 44px; } }
@media (min-width: 1280px) { .article__title { font-size: 52px; } }
.article__sapo { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 600; color: var(--text-2); }
@media (min-width: 768px) { .article__sapo { font-size: 19px; } }
.byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--line-strong); object-fit: cover; }
.byline__info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.byline__name { font-size: 14px; font-weight: 600; }
.figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.figure .thumb { border-radius: var(--radius-lg); }
.figure figcaption { font-size: 13px; color: var(--muted-2); font-style: italic; }
/* Style cho nội dung bài viết từ CMS */
.prose { font-size: 17px; line-height: 1.75; color: var(--text-2); }
@media (min-width: 768px) { .prose { font-size: 18px; } }
.prose > * { margin: 0 0 1.1em; }
.prose h2 { margin-top: 1.4em; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; text-transform: uppercase; color: var(--text); }
.prose h3 { font-size: 20px; color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); height: auto; }
.prose blockquote { margin: 1.4em 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--accent); font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 26px; line-height: 1.25; color: #fff; }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: 14px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px; border-bottom: 1px solid var(--line-strong); text-align: left; }
.prose ul, .prose ol { padding-left: 1.3em; }
.score-embed { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 18px; font-size: 15px; font-weight: 700; }
.score-embed__team { display: flex; align-items: center; gap: 10px; }
.score-embed__team:first-child { justify-content: flex-end; flex-direction: row-reverse; }
.score-embed__mid { display: flex; flex-direction: column; align-items: center; }
.score-embed__mid strong { font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1; }
.score-embed__mid span { font-size: 12px; color: var(--live-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.comments { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.comments h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.comments h2 span { color: var(--muted-2); }
.comments label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.comments textarea { min-height: 96px; padding: 14px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; resize: vertical; }
.comments textarea:focus { border-color: var(--accent); outline: none; }
.comments form .btn { align-self: flex-end; }
.comments form { display: flex; flex-direction: column; gap: 12px; }
.comment { display: flex; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.comment .avatar { width: 36px; height: 36px; }
.comment__name { font-size: 14px; font-weight: 600; }
.comment__name span { font-weight: 400; font-size: 12px; color: var(--muted-2); }
.comment__text { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.related { padding: 18px; }
.related a { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.45; }
.related .thumb { width: 96px; flex-shrink: 0; aspect-ratio: 3 / 2; border-radius: 8px; }
.mini-matches { padding: 18px; }
.mini-match { display: grid; grid-template-columns: 64px minmax(0, 1fr) 32px; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.mini-match > span:first-child { font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.mini-match .teams, .mini-match .goals { display: flex; flex-direction: column; gap: 4px; }
.mini-match .goals { text-align: right; font-family: var(--font-display); font-weight: 800; font-size: 16px; }

/* ---------- 14. 404 ---------- */
.error-page { position: relative; overflow: hidden; background: #0C1A14; min-height: calc(100vh - var(--header-h) - var(--ticker-h)); display: flex; align-items: center; }
.error-page::before { content: ''; position: absolute; inset: 24px; background: url('../images/matchday/pitch-full.svg') no-repeat center / contain; opacity: .9; pointer-events: none; }
.error-page .container { position: relative; display: flex; flex-direction: column; align-items: center; gap: 32px; padding-top: 48px; padding-bottom: 48px; text-align: center; }
@media (min-width: 1024px) { .error-page .container { flex-direction: row; justify-content: center; gap: 96px; text-align: left; } }
.error-code { display: flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 800; font-size: 130px; line-height: 1; }
@media (min-width: 768px) { .error-code { font-size: 240px; } }
.error-code img { width: .78em; height: .78em; animation: roll 6s ease-in-out infinite; }
.error-body { display: flex; flex-direction: column; gap: 18px; max-width: 480px; align-items: center; }
@media (min-width: 1024px) { .error-body { align-items: flex-start; } }
.red-card { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--live-soft); }
.red-card::before { content: ''; width: 36px; height: 50px; border-radius: 5px; background: var(--live); transform: rotate(-10deg); box-shadow: 0 10px 30px rgba(255, 51, 85, .35); }
.error-title { margin: 0; font-size: 44px; }
@media (min-width: 768px) { .error-title { font-size: 60px; } }
.error-title em { font-style: normal; color: var(--accent); }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- 15. Footer ---------- */
.site-footer { margin-top: auto; background: var(--bg-deep); border-top: 4px solid var(--accent); padding: 36px 0 24px; }
.footer__grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Số cột menu lấy từ Quản lý menu → tự co giãn */
@media (min-width: 1024px) { .footer__grid { grid-template-columns: minmax(260px, 320px) repeat(auto-fit, minmax(160px, 1fr)); gap: 48px; } }
.footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1024px) { .footer__brand { grid-column: auto; } }
.footer__brand p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.footer__col a { font-size: 14px; color: var(--text-2); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); }
.footer__bottom a { color: var(--muted); }

/* ---------- 16. Animations ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes roll { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(200deg); } }
@keyframes score-flash { 0% { color: var(--accent); transform: scale(1.15); } 100% { color: inherit; transform: none; } }
.score-flash { display: inline-block; animation: score-flash .8s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker__viewport { overflow-x: auto; }
}

/* ==========================================================================
   17. Tích hợp với dữ liệu thật (template .edge)
   ========================================================================== */
.site-main { display: block; flex: 1 0 auto; }
/* Grid 1 cột dưới desktop: minmax(0,1fr) để nội dung dài (bảng, iframe) không đẩy rộng layout.
   Phải nằm trong max-width để không ghi đè grid nhiều cột của desktop khai báo phía trên. */
@media (max-width: 1023px) {
  .layout, .article-layout, .cat-layout, .schedule, .hero { grid-template-columns: minmax(0, 1fr); }
}

/* Ảnh lỗi/thiếu: ẩn chữ alt, hiện ảnh giữ chỗ nền sân bóng */
.thumb, .hero__main { background-image: url('../images/matchday/placeholder.svg'); background-size: cover; background-position: center; }
.thumb img, .hero__main img { color: transparent; font-size: 0; }

/* Menu nhiều mục ở màn 1024–1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header .logo { margin-right: 12px; }
  .nav a { padding: 0 7px; font-size: 15px; letter-spacing: .02em; }
}

/* Mobile: tin thứ 2 trở đi dạng hàng ngang (ảnh trái) cho gọn */
@media (max-width: 639px) {
  .news-grid { gap: 0; }
  .news-grid .news-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 12px; row-gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
  .news-grid .news-card .thumb { grid-row: 1 / span 3; aspect-ratio: 4 / 3; border-radius: 10px; }
  .news-grid .news-card .news-card__title { font-size: 15px; }
  .news-grid .news-card:first-child { display: flex; padding-top: 0; border-top: 0; }
  .news-grid .news-card:first-child .thumb { aspect-ratio: 16 / 9; }
}
/* Footer luôn nằm sát đáy khi trang ít nội dung */
body { display: flex; flex-direction: column; min-height: 100vh; }
.logo img { max-width: 180px; object-fit: contain; }

/* Menu con trên desktop */
@media (min-width: 1024px) {
  .nav__item { position: relative; display: flex; }
  .nav__dropdown {
    position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px; padding: 8px;
    display: flex; flex-direction: column;
    background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
  }
  .nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
  .nav .nav__dropdown a { height: auto; padding: 10px 12px; border-radius: 8px; font-family: var(--font-body); font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-2); }
  .nav .nav__dropdown a::after { display: none; }
  .nav .nav__dropdown a:hover { background: var(--surface-3); color: var(--text); }
  .nav { overflow: visible; }
}
.drawer__sub { display: flex; flex-direction: column; padding: 0 0 6px 20px; }
.drawer__nav .drawer__sub a { min-height: 40px; font-family: var(--font-body); font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.drawer__clubs { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 20px 24px; }

/* Huy hiệu đội / giải có ảnh logo thật */
.crest--img { background: #fff; padding: 4px; }
.crest--img img { width: 100%; height: 100%; object-fit: contain; }
.crest--sm.crest--img { padding: 3px; }

/* Banner quảng cáo */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ad-slot img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.ad-slot--top { padding-top: 16px; }

/* Khối lịch/kết quả trang chủ khi không có trận */
.matches-empty { padding: 28px 16px; text-align: center; color: var(--muted); }

/* Cắt dòng tiêu đề */
.hero__summary { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story__title, .news-card__title, .related a span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Danh mục tin */
.cat-layout { display: grid; gap: 40px; padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 1024px) { .cat-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding-top: 32px; padding-bottom: 64px; } }
.cat-lead { display: grid; gap: 16px; margin-bottom: 24px; }
@media (min-width: 768px) { .cat-lead { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; } }
.cat-lead .thumb { border-radius: var(--radius-lg); }
.cat-lead__title { margin: 0; font-size: 28px; }
@media (min-width: 1280px) { .cat-lead__title { font-size: 34px; } }
.cat-lead__body { display: flex; flex-direction: column; gap: 12px; }
.sapo { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.news-list { display: flex; flex-direction: column; }
.news-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .news-row { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; } }
.news-row .thumb { border-radius: 10px; }
.news-row__body { display: flex; flex-direction: column; gap: 8px; }
.news-row__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
@media (min-width: 768px) { .news-row__title { font-size: 19px; } }
.news-row:hover .news-row__title { color: var(--accent); }
.news-row .sapo { display: none; }
@media (min-width: 768px) { .news-row .sapo { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }

/* Phân trang (ConvertUtil.paging) */
.pagination { margin-top: 28px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination a { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text-2); }
.pagination a:hover { border-color: var(--accent); color: var(--text); }
.pagination li.active a { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination li.disabled a { opacity: .35; pointer-events: none; }
.icon-pagination-prev::before { content: '\2190'; }
.icon-pagination-next::before { content: '\2192'; }

/* Chi tiết tin */
.article-tools { display: flex; align-items: center; gap: 8px; }
.font-size { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.font-size button { width: 44px; height: 44px; border: 0; background: var(--surface-2); color: var(--text); font-weight: 700; }
.font-size button + button { border-left: 1px solid var(--line-strong); }
.prose iframe, .prose video { max-width: 100%; border-radius: var(--radius); }
.prose figure { margin: 1.4em 0; }
.prose figure figcaption { margin-top: 8px; font-size: 14px; font-style: italic; text-align: center; color: var(--muted); }
.prose img { margin: 0 auto; }
.prose * { max-width: 100%; }
/* Nội dung dán từ nguồn khác thường mang màu chữ/nền inline cho nền trắng */
.prose [style*="color"] { color: inherit !important; }
.prose [style*="background"] { background: transparent !important; }
.related-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Bình luận (class khớp với public/js/news.js) */
.comments .form-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .comments .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.comments .req { color: var(--live-soft); }
.form-message { font-size: 14px; }
.comment_list { list-style: none; margin: 0; padding: 0; }
.comment_item { padding: 16px 0; border-top: 1px solid var(--line); }
.comment_item_header { display: flex; justify-content: space-between; gap: 12px; }
.comment_item_name { font-size: 14px; font-weight: 600; }
.comment_item_time { font-size: 12px; color: var(--muted-2); }
.comment_item_content { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; }
.comment_item_empty { padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Trang lịch / kết quả */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar__search { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.toolbar .select { min-width: 0; }
.group__head { color: var(--text); }
.group__links { display: flex; gap: 12px; padding: 0 16px 0 0; font-size: 13px; font-weight: 600; }
.group__links a { color: var(--muted); }
.group__links a:hover { color: var(--accent); }
.group__bar { display: flex; align-items: center; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.group__bar .group__head { flex: 1; border-bottom: 0; }
.match-row__league { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--muted-2); }
.match-row.is-cancel .match-row__status { color: var(--uel); }
.match-row.is-cancel .match-row__score { text-decoration: line-through; color: var(--muted-2); }

/* BXH nhiều giải */
.standings-block + .standings-block { margin-top: 40px; }
.standings-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.standings-block__title { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.standings .group-row td { height: 40px; background: var(--surface-2); font-family: var(--font-display); font-weight: 700; font-size: 15px; text-transform: uppercase; color: var(--muted); text-align: left; position: static; }
.mini-rank__select { margin: 12px 18px 4px; width: calc(100% - 36px); }
.mini-rank__panel[hidden] { display: none; }

/* Danh sách CLB ở sidebar */
.club-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px 18px; }

/* Vị trí quảng cáo cũ (giữ id cho script quảng cáo) */
.advstickyleft, .advstickyright { display: none; }

/* Mobile: ẩn liên kết LTĐ/KQ/BXH của từng giải để tên giải không bị xuống nhiều dòng */
@media (max-width: 639px) {
  .group__links { display: none; }
}
/* BXH mobile: ẩn T/H/B/BT-BB/phong độ → bảng vừa màn hình, cột Điểm luôn thấy */
@media (max-width: 767px) {
  .standings { min-width: 0; }
  .standings td, .standings th { padding: 0 8px; }
  .standings .pos { width: 40px; padding-left: 12px; }
  .standings .team { left: 40px; white-space: normal; line-height: 1.3; }
}

/* ==========================================================================
   Màn chi tiết trận (/tran-dau/...) — live/matchDetail.edge
   ========================================================================== */
.crest--xl { width: 64px; height: 64px; font-size: 20px; }
@media (min-width: 768px) { .crest--xl { width: 88px; height: 88px; font-size: 26px; } }

/* Link cả dòng trận ở danh sách → màn chi tiết (phủ toàn dòng, giữ layout cũ) */
.match-row { position: relative; }
.match-row__hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.match-row:hover { background: rgba(255, 255, 255, .025); }
.match-row a.match-row__link { position: relative; z-index: 2; }

.scoreboard { margin-top: 4px; padding: 16px; }
@media (min-width: 768px) { .scoreboard { padding: 22px 28px; } }
.scoreboard.is-live { border-color: var(--live); box-shadow: 0 0 0 1px rgba(255, 51, 85, .35), 0 12px 32px rgba(255, 51, 85, .14); }
.scoreboard__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.scoreboard__league { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-2); }
.scoreboard__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 20px 0 12px; }
.scoreboard__team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.scoreboard__name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
@media (min-width: 768px) { .scoreboard__name { font-size: 28px; } }
.scoreboard__center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scoreboard__score { font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.scoreboard__score span { margin: 0 8px; color: var(--muted-2); }
@media (min-width: 768px) { .scoreboard__score { font-size: 72px; } }
.scoreboard__score.is-upcoming { color: var(--muted); font-size: 36px; }
@media (min-width: 768px) { .scoreboard__score.is-upcoming { font-size: 52px; } }
.scoreboard__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.match-detail { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 1024px) { .match-detail { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding-top: 32px; padding-bottom: 64px; } }
.match-detail__main, .match-detail__aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.md-section { padding: 16px; scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 768px) { .md-section { padding: 20px 24px; } }
.md-section__title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.md-updated { text-align: right; }
.md-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Diễn biến: đội nhà bên trái, đội khách bên phải, phút ở giữa */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--surface-3); }
.timeline__item:last-child { border-bottom: 0; }
.timeline__min { justify-self: center; min-width: 48px; padding: 3px 6px; border-radius: 6px; background: var(--surface-3); text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text-2); }
.timeline__home { display: flex; justify-content: flex-end; text-align: right; }
.timeline__away { display: flex; justify-content: flex-start; }
.ev { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.timeline__home .ev { flex-direction: row-reverse; }
.ev__text { display: flex; flex-direction: column; min-width: 0; }
.ev__text strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ev__text small { font-size: 12px; color: var(--muted-2); }
.ev__text small:empty { display: none; }
.ev__icon { flex-shrink: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.ev--goal .ev__icon::before { content: "⚽"; }
.ev--own-goal .ev__icon::before { content: "⚽"; filter: hue-rotate(140deg) saturate(3); }
.ev--own-goal strong { color: var(--live-soft); }
.ev--missed .ev__icon::before { content: "✕"; color: var(--live-soft); font-weight: 800; }
.ev--yellow .ev__icon::before, .ev--red .ev__icon::before { content: ""; width: 12px; height: 16px; border-radius: 2px; background: #FFD23F; }
.ev--red .ev__icon::before { background: var(--live); }
.ev--sub .ev__icon::before { content: "⇄"; color: var(--pitch); font-weight: 800; }
.ev--var .ev__icon::before { content: "VAR"; font-family: var(--font-display); font-weight: 800; font-size: 11px; color: var(--ucl); }
.ev--other .ev__icon::before { content: "•"; color: var(--muted); }
.ev--goal strong { color: var(--text); font-weight: 700; }

/* Thống kê: 2 thanh đối xứng */
.stats { display: flex; flex-direction: column; gap: 14px; }
.stats__head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.stat__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 8px; }
.stat__label { text-align: center; font-size: 13px; color: var(--text-2); }
.stat__val { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--muted); }
.stat__val:last-child { text-align: right; }
.stat__val.is-lead { color: var(--text); }
.stat__bar { display: flex; gap: 4px; height: 6px; margin-top: 6px; }
.stat__fill { display: block; height: 100%; border-radius: 3px; background: var(--draw); }
.stat__fill.is-lead { background: var(--accent); }

/* Đội hình */
.lineups { display: grid; gap: 24px; }
@media (min-width: 768px) { .lineups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lineup { min-width: 0; }
.lineup__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lineup__head strong { flex: 1; font-family: var(--font-display); font-weight: 800; font-size: 18px; text-transform: uppercase; }
.lineup__formation { min-height: 28px; font-family: var(--font-display); font-weight: 800; }
.lineup__sub { margin: 16px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.lineup__coach { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* Sân: thủ môn ở dưới (hàng 1), tiền đạo ở trên */
.pitch { display: flex; flex-direction: column-reverse; justify-content: space-around; gap: 10px; min-height: 340px; padding: 14px 6px; border-radius: var(--radius); background:
    linear-gradient(0deg, transparent 49.6%, rgba(255, 255, 255, .18) 49.6%, rgba(255, 255, 255, .18) 50.4%, transparent 50.4%),
    repeating-linear-gradient(0deg, #0F5A36 0 12.5%, #0D5030 12.5% 25%); border: 1px solid rgba(255, 255, 255, .15); }
.pitch__row { display: flex; justify-content: space-around; gap: 4px; }
.pitch__player { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; text-align: center; }
.pitch__shirt { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--text); color: var(--bg); font-family: var(--font-display); font-weight: 800; font-size: 15px; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pitch__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.pitch__rating { position: absolute; top: -6px; right: 8px; padding: 0 4px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; }

.players { list-style: none; margin: 0; padding: 0; }
.player { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--surface-3); }
.player:last-child { border-bottom: 0; }
.player__num { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--muted); text-align: center; }
.player__name { display: flex; flex-direction: column; min-width: 0; font-size: 14px; font-weight: 600; }
.player__name small { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted-2); }
.player__tag.is-in { color: var(--pitch); }
.player__tag.is-out { color: var(--live-soft); }
.player__marks { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.mark--yellow, .mark--red { width: 10px; height: 14px; border-radius: 2px; background: #FFD23F; }
.mark--red { background: var(--live); }
.mark--assist { font-family: var(--font-display); font-weight: 800; color: var(--ucl); }
.player__rating { min-width: 34px; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); text-align: center; font-weight: 700; }

/* Trận khác cùng giải */
.related { list-style: none; margin: 0; padding: 0; }
.related__item { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--surface-3); font-size: 13px; }
.related li:last-child .related__item { border-bottom: 0; }
.related__team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.related__team--away { text-align: left; }
.related__score { justify-self: center; font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.related__item.is-live .related__score { color: var(--live-soft); }
.related__item.is-up .related__score { color: var(--muted); }
.match-card { position: relative; }
.match-card__hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.related__score { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.related__score small { font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted-2); }
/* Logo footer: logo dạng icon vuông → giữ tỉ lệ, không bị kéo giãn trong flex column */
.footer__logo { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; color: var(--text); }
.footer__logo:hover { color: var(--text); }
.footer__logo img { width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; }
.footer__logo-text { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.footer__col a:hover { color: var(--accent); }
/* Neo trong bài / trang tĩnh (vd #chia-se-noi-dung): không bị header sticky che */
.prose [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ==========================================================================
   Trang đội bóng (/doi-bong/...) — live/teamDetail.edge
   ========================================================================== */
.team-head { display: flex; align-items: center; gap: 18px; }
@media (min-width: 768px) { .team-head { gap: 24px; } }
.team-head__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.team-head__body .page-title { overflow-wrap: anywhere; }
.team-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.team-head__league { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); }
.team-head__form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-head__form .form span { width: 26px; height: 26px; font-size: 12px; }
.team-sub { margin: 20px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }

.team-next { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); }
.team-next:hover { border-color: var(--accent); color: inherit; }
.team-next.is-live { border-color: var(--live); }
.team-next__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.team-next__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.team-next__team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.team-next__team strong { font-size: 15px; overflow-wrap: anywhere; }
.team-next__score { font-family: var(--font-display); font-weight: 800; font-size: 34px; }

.team-standings { min-width: 480px; }
.team-standings__league { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.team-standings .pos, .team-standings .team { position: static; }

.team-matches { list-style: none; margin: 0; padding: 0; }
.team-match { position: relative; display: grid; align-items: center; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--surface-3);
  grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "when home score" "when away result"; }
.team-match:last-child { border-bottom: 0; }
.team-match:hover { background: rgba(255, 255, 255, .025); }
.team-match__hit { position: absolute; inset: 0; z-index: 1; }
.team-match__when { grid-area: when; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.team-match__when strong { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text-2); }
.team-match__team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.team-match__team span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-match__team.is-self { font-weight: 700; color: var(--text); }
.team-match__home { grid-area: home; }
.team-match__away { grid-area: away; }
.team-match__score { grid-area: score; font-family: var(--font-display); font-weight: 800; font-size: 18px; text-align: right; }
.team-match.is-up .team-match__score { color: var(--muted-2); font-size: 14px; }
.team-match.is-live .team-match__score { color: var(--live-soft); }
.team-match__league { display: none; }
.team-match__result { grid-area: result; justify-self: end; }
@media (min-width: 768px) {
  .team-match { grid-template-columns: 76px minmax(0, 1fr) 84px minmax(0, 1fr) 160px 32px; grid-template-areas: "when home score away league result"; padding: 12px 0; }
  .team-match__home { justify-content: flex-start; flex-direction: row-reverse; text-align: right; }
  .team-match__score { justify-self: center; min-width: 72px; padding: 4px 0; border-radius: 8px; background: var(--surface-3); text-align: center; }
  .team-match.is-up .team-match__score { background: transparent; }
  .team-match__league { grid-area: league; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
}

.squad { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.squad__player { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.squad__photo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.squad__info { display: flex; flex-direction: column; min-width: 0; }
.squad__info strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.squad__info small { font-size: 12px; color: var(--muted-2); }

.team-info { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.team-info dt { color: var(--muted-2); }
.team-info dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }

/* Tên đội trong BXH / trận đấu có link tới trang đội */
.team-link { color: inherit; }
.team-link:hover { color: var(--accent); }

/* ==========================================================================
   Trang giải đấu (/giai-dau, /giai-dau/<giai>[/tab]) — live/leagueHub.edge, live/leagueDirectory.edge
   ========================================================================== */
.md-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.md-section__head .md-section__title { margin: 0; }
.league-country { display: inline-flex; align-items: center; gap: 6px; }
.league-country img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.season-select { display: flex; gap: 8px; align-self: flex-start; }
@media (min-width: 1024px) { .season-select { align-self: flex-end; } }

.rounds { gap: 8px; margin: 0 0 14px; padding-bottom: 4px; }
.rounds .chip.has-live { border-color: var(--live); }
.round-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin-bottom: 6px; }
.round-head .btn { min-height: 40px; padding: 0; }
.round-head__title { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; text-transform: uppercase; }

.league-desc { font-size: 15px; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.faq__item summary { cursor: pointer; padding: 12px 14px; font-weight: 600; color: var(--text); }
.faq__item[open] summary { border-bottom: 1px solid var(--line); }
.faq__item p { margin: 0; padding: 12px 14px; font-size: 14px; line-height: 1.6; color: var(--text-2); }

.league-news { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.league-news__item { display: flex; flex-direction: column; gap: 8px; }
.league-news__title { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.league-teams { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.league-team { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.league-team:hover { border-color: var(--accent); color: inherit; }
.league-team__name { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }

.top-players { list-style: none; margin: 0; padding: 0; }
.top-player { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--surface-3); }
.top-player:last-child { border-bottom: 0; }
.top-player__rank { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--muted); text-align: center; }
.top-player__info { display: flex; flex-direction: column; min-width: 0; }
.top-player__info strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-player__info a, .top-player__info small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-player__value { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--text); }
.top-player__value small { margin-left: 3px; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted-2); }
.top-players--mini .top-player { grid-template-columns: 24px minmax(0, 1fr) auto; }
@media (max-width: 767px) { .top-player__played { display: none; } .top-player { grid-template-columns: 28px 40px minmax(0, 1fr) auto; } }

/* Danh mục */
.league-dir { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; padding-bottom: 56px; }
.league-search { max-width: 420px; width: 100%; }
.league-countries { display: grid; gap: 8px; }
@media (min-width: 768px) { .league-countries { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.league-country-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.league-country-group summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-weight: 600; }
.league-country-group summary img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.league-country-group summary span { flex: 1; }
.league-dir__list { list-style: none; margin: 0; padding: 4px 8px 10px; border-top: 1px solid var(--line); }
.league-dir__list a { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; font-size: 14px; }
.league-dir__list a:hover { background: var(--surface-3); }
.league-dir__list img { width: 24px; height: 24px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px; }

/* ==========================================================================
   Thanh tab dính dưới header khi cuộn (trang trận, đội, giải, BXH) — .subnav[data-subnav]
   ========================================================================== */
.page-band--tabs { padding-bottom: 16px; }
@media (min-width: 1024px) { .page-band--tabs { padding-bottom: 20px; } }
.subnav { position: sticky; top: calc(var(--header-h) + 1px); z-index: 40; background: var(--bg-band); border-bottom: 1px solid var(--line); transition: box-shadow .2s, background .2s; }
.subnav:not(:has(nav)) { display: none; }
.subnav.is-stuck { background: rgba(14, 20, 34, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.subnav .tabs-line { margin: 0; }
.subnav .tabs-line a { padding: 12px 14px 13px; }
/* Neo # trong trang có thanh tab: chừa chỗ cho header + thanh tab */
.md-section, .prose [id] { scroll-margin-top: calc(var(--header-h) + 64px); }

/* ==========================================================================
   Hàng cuộn ngang có nút ← → ([data-scroller] → bọc .scroller bởi matchday.js initScrollers)
   ========================================================================== */
.scroller { position: relative; min-width: 0; flex: 1 1 auto; --scroller-fade: var(--bg); }
.card .scroller, .trend .scroller { --scroller-fade: var(--bg); }
.card .scroller { --scroller-fade: var(--surface); }
.scroller::before, .scroller::after { content: ''; position: absolute; top: 0; bottom: 0; width: 56px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .2s; }
.scroller::before { left: 0; background: linear-gradient(90deg, var(--scroller-fade) 30%, transparent); }
.scroller::after { right: 0; background: linear-gradient(270deg, var(--scroller-fade) 30%, transparent); }
.scroller.has-prev::before, .scroller.has-next::after { opacity: 1; }
.scroller__btn { display: none; position: absolute; top: 50%; z-index: 3; width: 34px; height: 34px; margin-top: -17px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-2); color: var(--text); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.scroller__btn:hover { border-color: var(--accent); color: var(--accent); }
.scroller__btn .icon { width: 18px; height: 18px; }
.scroller__btn--prev { left: 0; }
.scroller__btn--next { right: 0; }
/* Chỉ hiện nút trên thiết bị có chuột; cảm ứng vẫn vuốt */
@media (hover: hover) and (pointer: fine) {
  .scroller.has-prev .scroller__btn--prev, .scroller.has-next .scroller__btn--next { display: inline-flex; }
}
.chip--more { border-color: var(--accent); color: var(--accent); font-weight: 600; }
