/*
Theme Name: Ball Today Matchday
Theme URI: https://ufabetballtoday.com/
Author: Ball Today
Description: ธีมเว็บบอลโทนมืด "Matchday Night" กรมท่า-เขียวนีออน — ผลบอลสด โปรแกรมบอล ตารางคะแนน AI วิเคราะห์บอล และระบบบทความพร้อม SEO
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: balltoday-matchday
*/

:root {
	--bg: #070b16;
	--bg-2: #0b1222;
	--card: #101a2f;
	--card-2: #15213c;
	--line: rgba(255, 255, 255, .08);
	--text: #e9eef8;
	--soft: #c8d1e3;
	--muted: #8c99b5;
	--accent: #b6ff3b;
	--accent-2: #38bdf8;
	--ink: #08101d;
	--live: #ff3b5c;
	--radius: 14px;
	--head: "Kanit", "Sarabun", system-ui, sans-serif;
	--body: "Sarabun", "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;
	--shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
	--w: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.fbt-lock { overflow: hidden; }
body {
	margin: 0;
	background: var(--bg) radial-gradient(1200px 500px at 85% -10%, rgba(56, 189, 248, .10), transparent 60%) no-repeat;
	color: var(--text);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #d4ff8a; }
h1, h2, h3, h4, h5 { font-family: var(--head); line-height: 1.25; margin: 0 0 .5em; color: #fff; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; font-family: var(--head); font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 0 8px 24px -8px rgba(182, 255, 59, .55); }
.btn--accent:hover { color: var(--ink); background: #c9ff6b; }
.btn--ghost { border-color: rgba(255, 255, 255, .2); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { color: #fff; border-color: var(--accent); }
.btn--line { background: #06c755; color: #fff; margin-top: 6px; }
.btn--line:hover { color: #fff; background: #05b14b; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: #fff; cursor: pointer; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(7, 11, 22, .86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.topbar { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topbar__date { display: inline-flex; align-items: center; gap: 6px; }
.topbar__live b { color: #fff; }
.topbar__sep { margin: 0 4px; opacity: .5; }
.site-header.is-scrolled .topbar { display: none; }
.header__in { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.logo a { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.logo__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--ink); transform: rotate(-8deg); box-shadow: 0 6px 18px -6px rgba(182, 255, 59, .6); }
.logo__icon .ico { width: 26px; height: 26px; }
.logo__text { font-family: var(--head); font-weight: 800; font-style: italic; font-size: 21px; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.logo__b { color: var(--accent); }
.logo--image img { max-height: 48px; width: auto; }
.nav { margin-left: auto; }
.nav__head { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu a { display: block; padding: 10px 12px; color: var(--soft); font-family: var(--head); font-weight: 500; font-size: 15.5px; border-radius: 10px; transition: color .2s, background .2s; }
.menu a:hover, .menu .current-menu-item > a, .menu .current_page_item > a { color: #fff; background: rgba(255, 255, 255, .05); }
.menu .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--accent); }
.menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.search-panel { display: none; border-top: 1px solid var(--line); padding: 14px 0; background: var(--bg-2); }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-form label { flex: 1; margin: 0; }
.search-field { width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: #fff; font: inherit; }
.search-field:focus { outline: none; border-color: var(--accent); }
.search-submit { padding: 12px 22px; border-radius: 999px; border: 0; background: var(--accent); color: var(--ink); font-family: var(--head); font-weight: 600; cursor: pointer; }

/* Ticker */
.ticker-bar { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ticker-bar__in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.ticker-bar__label { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--live); color: #fff; font-family: var(--head); font-weight: 600; font-size: 14px; }
.ticker-bar .fbt-w { flex: 1; min-width: 0; }
.ticker-bar .fbt-tk { background: var(--card); }

/* Widgets → theme */
.fbt-w {
	--w-bg: var(--card); --w-text: var(--text); --w-muted: var(--muted); --w-line: var(--line);
	--w-accent: var(--accent); --w-accent-ink: var(--ink); --w-live: var(--live); --w-win: #fff;
	--w-home: var(--accent); --w-draw: #55627e; --w-away: var(--accent-2);
	--w-radius: 12px; --w-chip-bg: rgba(255, 255, 255, .06); --w-chip-text: var(--soft);
	--w-row-hover: rgba(182, 255, 59, .04); --w-skel: rgba(255, 255, 255, .06); --w-head-font: var(--head);
	min-width: 0;
}
.fbt-group__h { background: linear-gradient(90deg, rgba(182, 255, 59, .08), transparent 60%); }
.fbt-lglogo { background: #fff; border-radius: 50%; padding: 2px; }
.fbt-chip .fbt-lglogo { padding: 1px; }
.fbt-match.is-live { background: linear-gradient(90deg, rgba(255, 59, 92, .10), transparent 50%); }
.fbt-mc--compact .fbt-list .fbt-match { grid-template-columns: 52px minmax(0, 1fr) 46px minmax(0, 1fr); padding: 9px 10px; font-size: 13.5px; }
.fbt-mc--compact .fbt-match__team .fbt-logo { width: 18px; height: 18px; }
.fbt-mc--compact .fbt-sc { min-width: 0; padding: 3px 6px; font-size: 14px; }
.fbt-pred { background: linear-gradient(180deg, var(--card-2), var(--card)); }
.fbt-pred__score { color: var(--accent); }
.fbt-big { background: transparent; border: 0; padding: 0; }
.fbt-big__x { color: var(--accent); text-shadow: 0 0 24px rgba(182, 255, 59, .45); }
.fbt-noscript { color: var(--muted); font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero__glow { position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(182, 255, 59, .16), transparent 62%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(182, 255, 59, .35); color: var(--accent); font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .06em; margin-bottom: 18px; }
.hero__title { font-size: clamp(30px, 4.3vw, 54px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 16px; background: linear-gradient(100deg, #fff 30%, var(--accent) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__text { font-size: 18px; color: var(--soft); max-width: 58ch; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0; max-width: 520px; }
.stat { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.stat b { display: block; font-family: var(--head); font-size: 30px; line-height: 1.1; color: #fff; }
.stat span { font-size: 13px; color: var(--muted); }
.stat--live b { color: var(--live); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__big { position: relative; padding: 22px; border-radius: 22px; background: linear-gradient(160deg, rgba(182, 255, 59, .10), rgba(56, 189, 248, .06) 45%, var(--card) 70%); border: 1px solid rgba(182, 255, 59, .22); box-shadow: var(--shadow); }
.panel-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }

/* Sections */
.section { padding: 44px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--news-top { padding-top: 12px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { position: relative; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin: 0; padding-left: 14px; }
.section-title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 4px; background: var(--accent); }
.section-title span { color: var(--accent); }
.section-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 70ch; }
.section-link { flex: none; display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 500; font-size: 15px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.layout__main, .layout__side { min-width: 0; }
.panel { padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.panel .fbt-table-wrap { border: 0; }
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty-note { padding: 28px; border-radius: var(--radius); border: 1px dashed rgba(255, 255, 255, .15); color: var(--muted); text-align: center; }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(182, 255, 59, .35); box-shadow: var(--shadow); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card-2); }
.fbt-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .fbt-img { transform: scale(1.05); }
.fbt-img--ph { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(182, 255, 59, .5); background: repeating-linear-gradient(90deg, #12203a 0 40px, #0f1b33 40px 80px); }
.fbt-img--ph .ico { width: 30%; height: 30%; max-width: 72px; max-height: 72px; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card__title { font-size: 18px; font-weight: 600; margin: 0; line-height: 1.4; }
.card__title a { color: #fff; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 6px; background: var(--accent); color: var(--ink); font-family: var(--head); font-size: 13px; font-weight: 600; line-height: 1.3; }
.badge:hover { color: var(--ink); background: #d4ff8a; }
.badge--sm { padding: 2px 8px; font-size: 12px; background: rgba(182, 255, 59, .14); color: var(--accent); }
.badge--sm:hover { color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-top: auto; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.card--lead { min-height: 440px; height: 100%; }
.card--lead .card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.card--lead .card__overlay { position: relative; margin-top: auto; padding: 28px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(0deg, rgba(5, 9, 18, .96) 10%, rgba(5, 9, 18, .55) 65%, transparent); }
.card--lead .card__title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; }
.card--lead .card__excerpt { color: var(--soft); }
.card--lead .meta { margin-top: 0; }
.card--row { flex-direction: row; align-items: stretch; }
.card--row .card__media { flex: none; width: 128px; aspect-ratio: auto; }
.card--row .card__body { padding: 12px 14px; gap: 6px; }
.card--row .card__title { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card--mini { flex-direction: row; gap: 12px; background: none; border: 0; border-radius: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.card--mini:hover { transform: none; box-shadow: none; }
.card--mini:last-child { border-bottom: 0; }
.card--mini .card__media { width: 76px; height: 60px; flex: none; border-radius: 10px; aspect-ratio: auto; }
.card--mini .card__body { padding: 0; gap: 4px; }
.card--mini .card__title { font-size: 14.5px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__date { font-size: 12px; color: var(--muted); }
.news-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.news-top__list { display: grid; gap: 14px; align-content: start; }

/* SEO / FAQ */
.section--seo { border-top: 1px solid var(--line); background: var(--bg-2); }
.seo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.seo__title { font-size: 24px; margin-bottom: 14px; }
.seo .entry-content { font-size: 16px; color: var(--soft); }
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: 12px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.faq__q { cursor: pointer; list-style: none; padding: 15px 46px 15px 18px; position: relative; font-family: var(--head); font-weight: 500; color: #fff; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 18px 14px; color: var(--soft); font-size: 15px; }
.faq__a p:last-child { margin: 0; }

/* Article */
.fbt-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 80; pointer-events: none; }
.fbt-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.breadcrumbs { font-size: 13.5px; color: var(--muted); padding: 20px 0 8px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px 0 2px; opacity: .6; }
.breadcrumbs a { color: var(--soft); }
.breadcrumbs span[aria-current] { color: var(--muted); display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.layout--article { padding-bottom: 20px; }
.article { min-width: 0; }
.article__head { padding: 10px 0 22px; }
.article__title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; margin: 14px 0 12px; }
.article__lead { font-size: 19px; color: var(--soft); border-left: 4px solid var(--accent); padding-left: 16px; }
.article__media { margin: 0 0 26px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.article__media figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); background: var(--card); }
.toc { margin: 0 0 28px; padding: 16px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.toc__title { cursor: pointer; font-family: var(--head); font-weight: 600; color: #fff; }
.toc { --toc-num: var(--accent); }
.toc__list { margin: 12px 0 0; padding-left: 0; display: grid; gap: 6px; }
.toc__list a { color: var(--soft); }
.toc__list a:hover { color: var(--accent); }
.entry-content { font-size: 18px; line-height: 1.9; color: #d6ddec; overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; scroll-margin-top: 120px; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; scroll-margin-top: 120px; color: var(--accent); }
.entry-content h4 { font-size: 19px; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(182, 255, 59, .4); text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--accent); }
.entry-content blockquote { margin-left: 0; padding: 16px 22px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0; color: #fff; font-size: 19px; }
.entry-content img { border-radius: 14px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--card-2); color: #fff; font-family: var(--head); font-weight: 500; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content code { background: var(--card-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.entry-content .fbt-embed { margin: 1.6em 0; }
.entry-content--wide { font-size: 17px; }
.alignwide, .alignfull { max-width: 100%; }
.article__foot { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.tags a { padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--soft); }
.tags a:hover { border-color: var(--accent); color: var(--accent); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { font-family: var(--head); font-weight: 600; margin-right: 6px; }
.share__btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.share__btn:hover { color: #fff; border-color: var(--accent); }
.share__btn--facebook .ico { color: #4f8dff; } .share__btn--line .ico { color: #06c755; } .share__btn--x .ico { color: #fff; }
.share__btn.is-copied { border-color: var(--accent); color: var(--accent); }
.related { padding: 30px 0 56px; }

/* Sidebar */
.sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; position: sticky; top: 100px; min-width: 0; }
.sidebar > * { min-width: 0; }
.side-box { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); min-width: 0; overflow: hidden; }
.side-box__title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 14px; }
.side-box__title .ico { color: var(--accent); }
.side-box .fbt-w { --w-bg: transparent; }
.side-box .fbt-table-wrap { border: 0; }
.side-box .fbt-list .fbt-match { border-radius: 10px; }
.widget { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.widget-title { font-size: 18px; }
.widget ul { margin: 0; padding-left: 18px; }

/* Listing pages */
.page-hero { padding: 8px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 34px; background: linear-gradient(180deg, var(--bg-2), transparent); }
.page-hero__title { font-size: clamp(28px, 3.4vw, 42px); margin: 8px 0 8px; }
.page-hero__desc { color: var(--muted); max-width: 70ch; }
.page-hero__desc p { margin: 0; }
.page-hero__search { margin-top: 18px; }
.page-wrap { max-width: 1040px; padding-bottom: 60px; }
.pagination { margin: 34px 0 10px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--soft); font-family: var(--head); }
.page-numbers.current, .page-numbers:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.page-links { margin: 20px 0; }

/* 404 */
.notfound { padding: 80px 0 100px; text-align: center; }
.notfound__in { max-width: 680px; }
.notfound__code { font-family: var(--head); font-weight: 800; font-size: clamp(90px, 18vw, 170px); line-height: 1; color: #fff; display: flex; justify-content: center; align-items: center; gap: 6px; }
.notfound__code span { display: inline-grid; place-items: center; color: var(--accent); animation: spin 6s linear infinite; }
.notfound__code .ico { width: .8em; height: .8em; }
@keyframes spin { to { transform: rotate(360deg); } }
.notfound__title { font-size: 28px; margin: 16px 0 10px; }
.notfound p { color: var(--muted); }
.notfound__search { display: flex; justify-content: center; margin: 24px 0; }

/* Footer */
.site-footer { margin-top: 0; padding: 56px 0 24px; background: #050810; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer__brand p { margin: 16px 0; max-width: 40ch; }
.footer__col h4 { font-size: 17px; color: #fff; margin-bottom: 14px; }
.footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__menu a { color: var(--muted); }
.footer__menu a:hover { color: var(--accent); }
.footer__widgets { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; display: grid; gap: 6px; }
.footer__bottom p { margin: 0; }
.footer__disclaimer { opacity: .85; }

/* Floating */
.line-float { position: fixed; right: 18px; bottom: 84px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: #06c755; color: #fff; font-family: var(--head); font-weight: 600; box-shadow: 0 10px 30px -10px rgba(6, 199, 85, .7); }
.line-float:hover { color: #fff; transform: translateY(-2px); }
.fbt-totop { position: fixed; right: 18px; bottom: 24px; z-index: 70; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); color: var(--accent); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; }
.fbt-totop.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr) 320px; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
	.nav-toggle { display: inline-grid; }
	.nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); margin: 0; padding: 18px; background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .3s ease; z-index: 90; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
	.nav.is-open { transform: none; box-shadow: -30px 0 60px rgba(0, 0, 0, .6); }
	.nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
	.menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.menu a { padding: 12px 14px; font-size: 17px; }
	.menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 14px; }
	.nav__cta { display: inline-flex; }
	.header__actions { margin-left: auto; }
	.hero__grid, .layout, .seo, .news-top { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: static; }
	.card--lead { min-height: 380px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) {
	.container { padding: 0 16px; }
	.header__cta { display: none; }
	.header__in { min-height: 62px; gap: 10px; }
	.logo__text { font-size: 17px; }
	.logo__icon { width: 34px; height: 34px; }
	.topbar__date { display: none; }
	.topbar__in { justify-content: center; }
	.hero { padding: 34px 0 24px; }
	.hero__text { font-size: 16px; }
	.hero__stats { gap: 8px; }
	.stat { padding: 10px 12px; }
	.stat b { font-size: 24px; }
	.hero__big { padding: 16px; }
	.grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
	.section { padding: 32px 0; }
	.section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
	.card--row .card__media { width: 104px; }
	.ticker-bar__label { display: none; }
	.entry-content { font-size: 17px; }
	.entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
	.footer__grid { grid-template-columns: 1fr; }
	.line-float span { display: none; }
	.line-float { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
