/* =========================================================
   TRAMSCORE NEWS — kiểu báo bóng đá
   Nền trắng · tít đen đậm · tiêu đề khối đỏ · font Mulish
   ========================================================= */

:root {
    --bg: #ffffff;
    --soft: #f5f5f5;
    --soft-2: #ececec;
    --ink: #1f1d22;
    --ink-2: #4a4750;
    --muted: #7b7880;
    --line: #e5e5e5;
    --red: #d6182a;
    --red-ink: #d6182a;
    --red-2: #a90f1e;
    --dark: #1d1b22;
    --green: #2e7d32;
    --f: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #141316;
    --soft: #1e1d22;
    --soft-2: #29272e;
    --ink: #eeecf1;
    --ink-2: #c4c1ca;
    --muted: #918e97;
    --line: #2f2d34;
    --red-ink: #ff5a66;
    --dark: #0d0c0f;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #141316;
        --soft: #1e1d22;
        --soft-2: #29272e;
        --ink: #eeecf1;
        --ink-2: #c4c1ca;
        --muted: #918e97;
        --line: #2f2d34;
        --red-ink: #ff5a66;
        --dark: #0d0c0f;
        color-scheme: dark;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }

.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 300; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Masthead ---------- */
.masthead { background: var(--bg); }
.mh-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px 0 12px; }
.mh-date { font-size: 13px; color: var(--muted); text-transform: capitalize; }
.mh-brand { display: grid; justify-items: center; gap: 2px; text-align: center; }
.mh-tagline { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.mh-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }

.logo { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.logo-mark svg { width: 36px; height: 36px; display: block; }
.logo-mark circle { fill: var(--red); }
.logo-mark path { fill: #fff; }
.logo-word { font-size: 34px; font-weight: 900; letter-spacing: -.04em; color: var(--red); font-style: italic; }
.logo-word b { color: var(--ink); font-weight: 900; }
.custom-logo { max-height: 56px; width: auto; }

.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--soft); color: var(--red-ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .i-sun { display: block; }
    :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* ---------- Thanh menu ---------- */
.navbar { position: sticky; top: 0; z-index: 100; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0, 0, 0, .04); }
.nb-in { display: flex; align-items: center; gap: 6px; min-height: 46px; }
.nb-home { display: inline-grid; place-items: center; width: 34px; height: 34px; color: var(--red); flex: none; }
.nb-home svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-menu a { display: block; padding: 12px 11px; font-weight: 700; font-size: 15px; white-space: nowrap; position: relative; }
.nav-menu a:hover { color: var(--red-ink); }
.nav-menu .current-menu-item > a, .nav-menu .current-menu-parent > a { color: var(--red-ink); }
.nav-menu .current-menu-item > a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 3px; background: var(--red); }
.nb-actions { display: flex; align-items: center; gap: 4px; padding-left: 10px; border-left: 1px solid var(--line); }
.btn-live { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 4px; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.btn-live:hover { background: var(--red-2); }

.search-panel { padding: 10px 0 14px; border-top: 1px solid var(--line); }
.search-form { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg); border-radius: 4px; padding: 3px 3px 3px 12px; }
.search-form svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-form input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 4px; font: 500 15px var(--f); color: var(--ink); outline: none; }
.search-form button { border: 0; border-radius: 3px; background: var(--red); color: #fff; padding: 8px 16px; font-weight: 800; font-size: 14px; }
.search-form button:hover { background: var(--red-2); }

/* ---------- Dải kết quả ---------- */
.mstrip { background: var(--soft); border-bottom: 1px solid var(--line); }
.mstrip-in { display: flex; align-items: stretch; gap: 10px; padding: 10px 0; }
.mstrip-label { flex: none; display: grid; align-content: center; padding-right: 10px; border-right: 1px solid var(--line); font-size: 13px; font-weight: 900; text-transform: uppercase; color: var(--red-ink); line-height: 1.25; }
.mstrip-label small { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: none; }
.mstrip-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.ms { flex: none; width: 176px; display: grid; gap: 3px; padding: 7px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
.ms:hover { border-color: var(--red); }
.ms-league { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; }
.ms-league em { font-style: normal; color: var(--red-ink); font-weight: 800; }
.ms-team { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.ms-team .crest { width: 18px; height: 18px; font-size: 7px; }
.ms-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-team b { font-weight: 900; min-width: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.ms-team.is-win { font-weight: 800; }

/* ---------- Khung trang ---------- */
.site-main { padding: 22px 0 44px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; margin-top: 28px; }
.layout--post { margin-top: 0; }
.main-col { min-width: 0; }
.side { min-width: 0; }

/* Tiêu đề khối */
.cap { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cap-title { font-size: 20px; font-weight: 900; color: var(--red-ink); display: flex; align-items: center; gap: 8px; }
.cap-title::before { content: ""; width: 4px; height: 18px; background: var(--red); border-radius: 1px; }
.cap-title a:hover { text-decoration: underline; }
.cap-kicker { font-size: 13px; color: var(--muted); }
.cap-more { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cap-more:hover { color: var(--red-ink); }
.side .cap-title { font-size: 18px; }

.box { margin-bottom: 26px; }
.box--grey { background: var(--soft); padding: 14px 16px 16px; border-radius: 4px; }
.box-more { display: block; margin-top: 10px; text-align: center; font-size: 12px; font-weight: 800; color: var(--red-ink); text-transform: uppercase; letter-spacing: .03em; }
.box-more:hover { text-decoration: underline; }

/* ---------- Thẻ bài ---------- */
.media { display: block; overflow: hidden; background: var(--soft); border-radius: 4px; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.nc:hover .media img { transform: scale(1.03); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--red-2)); }
.ph span { font-weight: 900; font-size: 44px; color: rgba(255, 255, 255, .85); }
.nc-title { font-weight: 800; color: var(--ink); }
.nc-title a:hover { color: var(--red-ink); }
.nc-sapo { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.nc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.nc-meta b { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.nc-meta b + time::before { content: "·"; margin-right: 8px; }

.nc--lead .nc-media { aspect-ratio: 16 / 10; }
.nc--lead .nc-title { font-size: 30px; line-height: 1.25; font-weight: 900; margin-top: 12px; letter-spacing: -.01em; }
.nc--lead .nc-sapo { font-size: 15px; }

.nc--side { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nc--side .nc-media { order: 2; aspect-ratio: 4 / 3; align-self: start; }
.nc--side .nc-title { font-size: 16px; line-height: 1.4; }

.nc--text { padding: 11px 0; border-bottom: 1px solid var(--line); }
.nc--text .nc-title { font-size: 16px; line-height: 1.42; font-weight: 700; }
.nc--text .nc-meta { margin-top: 4px; }

.nc--tile .nc-media { aspect-ratio: 16 / 9; }
.nc--tile .nc-title { font-size: 17px; line-height: 1.4; margin-top: 10px; }

.nc--list { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.nc--list .nc-media { aspect-ratio: 16 / 10; align-self: start; }
.nc--list .nc-title { font-size: 19px; line-height: 1.35; }
.nc--list .nc-sapo { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.nc--mini { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nc--mini .nc-media { aspect-ratio: 1; }
.nc--mini .nc-title { font-size: 14px; line-height: 1.4; }

/* Bảng tỷ số thay ảnh khi bài kết quả không có ảnh */
.board--tile { height: 100%; display: grid; align-content: center; padding: 8px; background: var(--dark); color: #fff; }
.board--tile .board-league { font-size: 10px; text-align: center; opacity: .7; margin-bottom: 4px; text-transform: uppercase; }
.board--tile .board-team { font-size: 11px; gap: 4px; }
.board--tile .board-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board--tile .board-score strong { font-size: 20px; }
.board--tile .board-score i { font-size: 14px; }
.board--tile .board-status, .board--tile .board-ht { display: none; }
.nc--side .board--tile .board-league, .nc--side .board--tile .board-name, .nc--mini .board--tile .board-league, .nc--mini .board--tile .board-name { display: none; }

/* ---------- Trang chủ: cụm tin nổi bật ---------- */
.headline { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) 320px; gap: 0; padding-bottom: 6px; }
.hl-lead { padding-right: 22px; }
.hl-list { padding: 0 22px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.hl-list > .nc:first-child { padding-top: 0; }
.hl-list > .nc:last-child { border-bottom: 0; }
.hl-side { padding-left: 22px; min-width: 0; }
.hl-related { margin-top: 12px; }
.hl-related .nc--text { border: 0; padding: 4px 0 4px 16px; position: relative; }
.hl-related .nc--text::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.hl-related .nc-title { font-size: 15px; font-weight: 700; }

/* Thanh nhận định */
.pbar { margin-top: 26px; background: var(--soft); border-radius: 4px; padding: 14px 18px 8px; }
.pbar .cap { margin-bottom: 6px; }
.pbar-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; }
.pbar .nc--text { border: 0; padding: 6px 0 10px 18px; position: relative; }
.pbar .nc--text::before { content: ""; position: absolute; left: 0; top: 13px; border: 6px solid transparent; border-left: 8px solid var(--red); border-right: 0; }
.pbar .nc-title { font-size: 15px; }

/* Khối chuyên mục */
.catblock { margin-bottom: 30px; padding-top: 4px; border-top: 1px solid var(--line); }
.catblock .cap { padding-top: 12px; }
.cb-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
.cb-main .nc--tile { padding-bottom: 6px; }
.cb-main .nc--tile .nc-title { font-size: 20px; }
.cb-side > .nc:first-child { padding-top: 0; }
.nlist > .nc:first-child { padding-top: 4px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }

/* ---------- Kết quả: ngày → giải → trận ---------- */
.rs-day[hidden], .rs-league[hidden] { display: none; }
.rs-date { font-size: 14px; font-weight: 800; text-align: center; padding: 7px 10px; background: var(--soft-2); border-radius: 3px; margin: 10px 0 2px; }
.rs-day:first-child .rs-date { margin-top: 0; }
.rs-lname { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 0 2px; }
.rs-lname::before, .rs-lname::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fx-list { display: grid; }
.fx { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px dashed var(--line); }
.fx:last-child { border-bottom: 0; }
.fx:hover { background: rgba(214, 24, 42, .05); }
.fx-team { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; font-weight: 600; }
.fx-home { justify-content: flex-end; text-align: right; }
.fx-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-team.is-win { font-weight: 800; }
.fx-score { min-width: 52px; padding: 3px 8px; border-radius: 3px; background: var(--dark); color: #fff; font-weight: 900; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.fx-score i { font-style: normal; opacity: .6; padding: 0 3px; }
.fx-score.is-pre { background: var(--bg); color: var(--ink); border: 1px solid var(--line); font-weight: 800; font-size: 13px; }
.fx-meta { grid-column: 1 / -1; text-align: center; font-size: 12px; color: var(--muted); }
.fx .crest { width: 22px; height: 22px; font-size: 8px; }
.rs--side .fx { padding: 7px 0; }
.rs--side .fx-team { font-size: 13px; gap: 5px; }
.rs--side .fx-score { min-width: 44px; font-size: 14px; padding: 2px 6px; }
.rs--side .fx .crest { width: 18px; height: 18px; font-size: 7px; }
.rs--side .fx-meta { display: none; }
.rs--page .rs-date { font-size: 16px; padding: 9px 12px; }
.rs--page .rs-lname { font-size: 13px; color: var(--red-ink); }
.rs--page .fx { padding: 11px 6px; }
.rs--page .fx-team { font-size: 15px; }

.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; border: 1px solid var(--line); background: var(--bg); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pill:hover { border-color: var(--red); color: var(--red-ink); }
.pill.is-on { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Cột phải ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 8px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.tab { flex: 1; border: 0; background: none; padding: 7px 10px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.tab.is-on { background: var(--red); color: #fff; }
.toplist { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.toplist li { counter-increment: top; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; line-height: 1.4; }
.toplist li:last-child { border-bottom: 0; }
.toplist li::before { content: counter(top); font-size: 24px; font-weight: 900; line-height: 1; color: var(--red-ink); font-style: italic; }
.toplist a:hover { color: var(--red-ink); }

/* CTA */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 24px; padding: 20px 22px; border-radius: 4px; background: linear-gradient(120deg, var(--red) 0%, var(--red-2) 100%); color: #fff; margin-bottom: 26px; }
.cta-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.cta-text strong { display: block; font-size: 22px; font-weight: 900; margin: 4px 0; line-height: 1.25; }
.cta-text p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 15px; }
.cta .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 4px; background: #fff; color: var(--red-2); font-weight: 900; font-size: 14px; white-space: nowrap; }
.cta .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.cta .btn:hover { background: var(--dark); color: #fff; }
.cta--side { grid-template-columns: 1fr; }
.cta--side strong { font-size: 19px; }
.cta--side p { font-size: 14px; }
.cta--inline { margin: 2em 0; }

/* Nội dung SEO */
.seo-box { margin-top: 34px; padding: clamp(18px, 3vw, 30px); background: var(--soft); border-top: 3px solid var(--red); border-radius: 0 0 4px 4px; }
.seo-box-title { font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.seo-box.is-folded .seo-box-body { max-height: 380px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.seo-box-more { margin-top: 12px; border: 1px solid var(--red); border-radius: 999px; background: var(--bg); color: var(--red-ink); padding: 7px 20px; font-weight: 800; font-size: 14px; }
.seo-box-more:hover { background: var(--red); color: #fff; }
.more-close { display: none; }
.seo-box:not(.is-folded) .more-open { display: none; }
.seo-box:not(.is-folded) .more-close { display: inline; }
.main-col .seo-box { margin-top: 30px; }

/* ---------- Đầu trang danh mục ---------- */
.page-head { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; color: var(--red-ink); margin-top: 6px; }
.page-intro { margin-top: 6px; max-width: 80ch; color: var(--ink-2); font-size: 16px; }
.page-intro p:last-child { margin: 0; }
.page-head .search-form { margin-top: 6px; max-width: 560px; }
.layout .page-head + .bxh-full { margin-top: 16px; }

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.crumbs a:hover { color: var(--red-ink); }
.crumbs span { display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.arc-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.arc-top .nc--lead .nc-media { aspect-ratio: 16 / 9; }
.arc-top .nc--lead .nc-title { font-size: 26px; }
.arc-top:empty { display: none; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; }
.pager .page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 3px; font-weight: 800; font-size: 14px; }
.pager .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.pager a.page-numbers:hover { border-color: var(--red); color: var(--red-ink); }

.empty { text-align: center; padding: 36px 20px; background: var(--soft); border-radius: 4px; }
.empty h2 { font-size: 22px; margin-bottom: 6px; }
.admin-hint { padding: 12px 14px; border-radius: 4px; border: 1px dashed var(--red); font-size: 14px; }

/* ---------- Bài viết ---------- */
.post .crumbs { margin-bottom: 10px; }
.post-head { margin-bottom: 18px; }
.tag { display: inline-block; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; color: var(--red-ink); }
.tag:hover { text-decoration: underline; }
.post-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; line-height: 1.25; margin: 6px 0 12px; letter-spacing: -.01em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.post-meta .by { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.post-meta .by img { border-radius: 50%; }
.post-sapo { font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--ink); margin: 16px 0 0; }
.post-thumb { margin: 0 0 22px; }
.post-thumb img { width: 100%; border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; }
.post-thumb figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; text-align: center; font-style: italic; }

.post-board { margin-bottom: 22px; }
.board--hero { border-radius: 4px; padding: clamp(18px, 4vw, 32px); background: var(--dark); color: #fff; text-align: center; border-top: 4px solid var(--red); }
.board--hero .board-league { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); margin-bottom: 16px; }
.board-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.board-team { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; font-weight: 800; }
.board--hero .board-team { font-size: clamp(16px, 2vw, 21px); }
.board--hero .crest { width: 60px; height: 60px; font-size: 18px; }
.board-score { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.board-score strong { font-size: clamp(40px, 6vw, 60px); font-weight: 900; line-height: 1; min-width: .8em; }
.board-score i { font-style: normal; font-size: 30px; opacity: .6; padding: 0 6px; }
.board-score em { font-style: normal; font-weight: 900; font-size: 22px; }
.board-status { flex-basis: 100%; margin-top: 10px; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.board-status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); vertical-align: middle; margin-right: 8px; }
.board-ht { flex-basis: 100%; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.board-meta { display: flex; justify-content: center; gap: 16px; margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .7); }

.toc { background: var(--soft); border-left: 3px solid var(--red); margin-bottom: 22px; }
.toc-head { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 16px; background: none; border: 0; font-size: 15px; font-weight: 900; text-align: left; }
.toc-head::after { content: "−"; font-size: 20px; line-height: 1; color: var(--red-ink); }
.toc.is-closed .toc-head::after { content: "+"; }
.toc.is-closed .toc-list { display: none; }
.toc-list { margin: 0; padding: 0 16px 12px 38px; font-size: 15px; }
.toc-list li { padding: 3px 0; }
.toc-list ul { list-style: none; padding-left: 4px; margin: 4px 0 0; font-size: 14px; }
.toc-list ul li::before { content: "– "; color: var(--muted); }
.toc-list a:hover { color: var(--red-ink); text-decoration: underline; }

.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content > * { margin-top: 0; }
.entry-content h2 { font-size: clamp(21px, 2.4vw, 25px); font-weight: 900; margin: 1.6em 0 .6em; }
.entry-content h3 { font-size: clamp(19px, 2vw, 21px); font-weight: 800; margin: 1.4em 0 .5em; }
.entry-content h4 { font-size: 18px; font-weight: 800; margin: 1.3em 0 .4em; }
.entry-content a { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--red-ink); }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 20px; background: var(--soft); border-left: 4px solid var(--red); font-size: 19px; font-weight: 700; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content img { border-radius: 4px; margin: 1.2em auto; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; text-align: center; font-style: italic; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-scroll { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-scroll table { margin: 0; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content thead th { background: var(--soft); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.entry-content tbody tr:last-child td, .entry-content tbody tr:last-child th { border-bottom: 0; }
.seo-box-body > :first-child { margin-top: 0; }

/* Bài kết quả do plugin tạo */
.tramscore-match-result > h2:first-child { display: none; } /* trùng bảng tỷ số đầu bài */
.tramscore-match-result p[style] { font-size: 14px !important; color: var(--muted) !important; background: var(--soft); padding: 10px 14px; }
.tramscore-result-table th { width: 170px; color: var(--muted); font-weight: 700; background: var(--soft); }
.tramscore-result-table tr:nth-child(4) td strong { font-size: 24px; font-weight: 900; color: var(--red-ink); }

/* Textlink cuối bài (Tramscore Sync 2.x) */
.tramscore-footer-link { margin-top: 1.6em; padding: 12px 16px; background: var(--soft); border-left: 4px solid var(--red); font-size: 16px; font-weight: 600; }
.tramscore-footer-link a { font-weight: 900; }

/* Rank Math FAQ */
.rank-math-faq-item, .wp-block-rank-math-faq-block .rank-math-list-item { border: 1px solid var(--line); border-left: 3px solid var(--red); padding: 14px 18px; margin-bottom: 10px; }
.rank-math-question { margin: 0 0 6px !important; font-size: 17px !important; font-weight: 800 !important; }
.rank-math-answer > :last-child { margin-bottom: 0; }

.post-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 4px 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 700; }
.tags a:hover { color: var(--red-ink); }
.share { display: flex; align-items: center; gap: 6px; }
.share-label { font-size: 13px; font-weight: 800; color: var(--muted); margin-right: 4px; }
.share .soc { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; border: 0; background: var(--soft); color: var(--ink); padding: 0; }
.share .soc svg { width: 16px; height: 16px; }
.share .soc:hover, .share .soc.is-done { background: var(--red); color: #fff; }

.author-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; margin-top: 24px; padding: 18px; background: var(--soft); border-radius: 4px; }
.author-avatar img { width: 64px; height: 64px; border-radius: 50%; }
.author-kicker { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.author-name { font-size: 18px; font-weight: 900; }
.author-info p { margin: 4px 0 10px; font-size: 15px; color: var(--ink-2); }

.related { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); }

/* BXH Ngoại hạng Anh (Tramscore Sync 2.x): plugin lo bố cục, theme đổi màu */
.tramscore-epl-standings, .tramscore-epl-mini, .tramscore-epl-cards {
    --ts-epl-brand: var(--dark);
    --ts-epl-brand-2: #3a3740;
    --ts-epl-line: var(--line);
    --ts-epl-soft: var(--soft);
    --ts-epl-muted: var(--muted);
    --ts-epl-cl: #1e6fd9;
    --ts-epl-el: #f59e0b;
    --ts-epl-ecl: var(--green);
    --ts-epl-rel: var(--red);
    margin-bottom: 0;
}
.tramscore-epl-standings { border-radius: 4px; }
.tramscore-epl-standings .epl-head { border-radius: 4px 4px 0 0; }
.tramscore-epl-standings .epl-head strong { background: var(--red); color: #fff; }
.tramscore-epl-mini .epl-mini-head span { font-weight: 800; color: var(--ink); }
.epl-legend { padding: 10px 2px 0; }
.tramscore-epl-cards .epl-card { background: var(--bg); }
.tramscore-epl-error { color: var(--ink-2); }

/* 404 */
.notfound { text-align: center; padding: 50px 20px; display: grid; justify-items: center; gap: 14px; }
.nf-score { font-size: clamp(56px, 10vw, 96px); font-weight: 900; color: #fff; background: var(--dark); border-bottom: 6px solid var(--red); padding: 4px 28px; line-height: 1.1; }
.nf-score i { font-style: normal; opacity: .5; padding: 0 8px; }
.notfound h1 { font-size: 28px; font-weight: 900; }
.notfound p { color: var(--ink-2); max-width: 52ch; margin: 0; }
.nf-search { width: min(520px, 100%); }
.btn-red { display: inline-flex; padding: 10px 22px; border-radius: 4px; background: var(--red); color: #fff; font-weight: 900; }
.btn-red:hover { background: var(--red-2); }

/* ---------- Mạng xã hội ---------- */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.soc { --brand-c: var(--red); display: inline-flex; align-items: center; gap: 10px; transition: background .2s, color .2s; }
.soc svg { width: 16px; height: 16px; }
.soc--facebook { --brand-c: #1877f2; }
.soc--youtube { --brand-c: #ff0000; }
.soc--tiktok { --brand-c: #111; }
.soc--telegram { --brand-c: #229ed9; }
.soc--zalo { --brand-c: #0068ff; }
.soc--instagram { --brand-c: #e1306c; }
.soc--x { --brand-c: #111; }
.soc--threads { --brand-c: #111; }
.soc span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.social--top { gap: 2px; }
.social--top .soc { --soc-ink: var(--bg); width: 30px; height: 30px; justify-content: center; border-radius: 50%; color: var(--muted); }
.social--top .soc:hover { background: var(--brand-c); color: #fff; --soc-ink: var(--brand-c); }

.social--footer { gap: 8px; }
.social--footer .soc { --soc-ink: var(--soft); width: 40px; height: 40px; justify-content: center; border-radius: 50%; background: var(--soft); color: var(--ink); }
.social--footer .soc svg { width: 19px; height: 19px; }
.social--footer .soc:hover { background: var(--brand-c); color: #fff; --soc-ink: var(--brand-c); }

.social--box .soc { --soc-ink: var(--bg); width: 32px; height: 32px; justify-content: center; border-radius: 50%; background: var(--bg); color: var(--ink); }
.social--box .soc:hover { background: var(--brand-c); color: #fff; --soc-ink: var(--brand-c); }

/* ---------- Chân trang ---------- */
.footer { border-top: 3px solid var(--red); background: var(--bg); margin-top: 10px; }
.footer-cats { display: flex; align-items: center; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.footer-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.footer-cats a:not(.nb-home) { display: block; padding: 8px 12px; font-weight: 800; font-size: 14px; }
.footer-cats a:hover { color: var(--red-ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 32px; padding: 26px 0; }
.f-about .logo-word { font-size: 28px; }
.f-about .logo-mark svg { width: 30px; height: 30px; }
.f-about p { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); max-width: 46ch; }
.footer h4 { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.f-col a:hover { color: var(--red-ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 0 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom a:hover { color: var(--red-ink); }

/* Logo đội */
.crest { --h: 0; width: 28px; height: 28px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 900; color: #fff; background: hsl(var(--h) 45% 40%); }
.crest--img { border-radius: 0; background: none; object-fit: contain; padding: 0; }
.board--hero .crest--img { width: 64px; height: 64px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .headline { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
    .hl-list { border-right: 0; padding-right: 0; }
    .hl-side { grid-column: 1 / -1; padding: 24px 0 0; }
    .hl-side .rs--side { columns: 2; column-gap: 24px; }
    .hl-side .rs-day { break-inside: avoid; }
    .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; }
}

@media (max-width: 900px) {
    .mh-date { display: none; }
    .headline { grid-template-columns: 1fr; }
    .hl-lead { padding: 0 0 8px; }
    .hl-list { border: 0; padding: 0; margin-top: 8px; border-top: 1px solid var(--line); }
    .hl-list > .nc:first-child { padding-top: 14px; }
    .hl-side .rs--side { columns: 1; }
    .layout { grid-template-columns: 1fr; }
    .pbar-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .f-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .mh-in { grid-template-columns: 1fr auto; padding: 10px 0 8px; }
    .mh-left { display: none; }
    .mh-brand { justify-items: start; text-align: left; }
    .mh-tagline { display: none; }
    .mh-right .social { display: none; }
    .logo-word { font-size: 26px; }
    .logo-mark svg { width: 28px; height: 28px; }
    .nav-menu a { padding: 11px 9px; font-size: 14px; }
    .nb-actions { padding-left: 6px; }
    .btn-live { padding: 5px 9px; font-size: 12px; }
    .site-main { padding-top: 16px; }
    .nc--lead .nc-title { font-size: 23px; }
    .nc--side { grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; }
    .nc--side .nc-title, .nc--text .nc-title { font-size: 15px; }
    .nc--list { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
    .nc--list .nc-title { font-size: 15px; }
    .nc--list .nc-sapo { display: none; }
    .nc--list .nc-media { aspect-ratio: 4 / 3; }
    .pbar { padding: 12px 14px 4px; }
    .pbar-list { grid-template-columns: 1fr; }
    .cb-grid { grid-template-columns: 1fr; gap: 0; }
    .cb-side > .nc:first-child { padding-top: 14px; border-top: 1px solid var(--line); }
    .tiles { grid-template-columns: 1fr; gap: 0; }
    .tiles .nc--tile { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .tiles .nc--tile .nc-media { aspect-ratio: 4 / 3; }
    .tiles .nc--tile .nc-title { margin-top: 0; font-size: 15px; }
    .arc-top { grid-template-columns: 1fr; }
    .arc-top .nc--lead .nc-title { font-size: 22px; }
    .fx-team, .rs--page .fx-team { font-size: 13px; }
    .fx-score { min-width: 46px; font-size: 14px; }
    .cta { grid-template-columns: 1fr; }
    .post-sapo { font-size: 17px; }
    .entry-content { font-size: 17px; }
    .board--hero .crest, .board--hero .crest--img { width: 46px; height: 46px; }
    .author-box { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .crumbs span { max-width: 26ch; }
}

/* Nút Livescore: trên mobile chuyển lên dòng logo để thanh menu đủ chỗ */
.btn-live--mh { display: none; }
@media (max-width: 640px) {
    .btn-live--mh { display: inline-flex; }
    .nb-actions .btn-live { display: none; }
    .nb-actions { border-left: 0; padding-left: 0; }
}
