/* ==========================================================================
   Flatsome Child 5Play – giao diện mô phỏng 5play.org
   ========================================================================== */

/* ---------- Màu & kích thước (token) ---------- */
html[data-fp-theme] {
	--fp-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fp-r-xs: 6px;
	--fp-r-sm: 10px;
	--fp-r-md: 14px;
	--fp-r-lg: 20px;
	--fp-r-xl: 28px;
	--fp-page: 1280px;
	--fp-gutter: clamp(14px, 1rem + 1.2vw, 32px);
	--fp-ease: cubic-bezier(.2, 0, 0, 1);
}

html[data-fp-theme="dark"] {
	color-scheme: dark;
	--fp-bg: #0b0f0d;
	--fp-surface: #121815;
	--fp-surface-2: #1a201d;
	--fp-surface-3: #232a27;
	--fp-border: #252c29;
	--fp-border-strong: #5f6964;
	--fp-text: #eef2f0;
	--fp-muted: #aab3ae;
	--fp-brand: #3ecf8e;
	--fp-primary: #45d49a;
	--fp-primary-hover: #63dcab;
	--fp-on-primary: #04150d;
	--fp-primary-soft: #16342a;
	--fp-on-primary-soft: #a5ebc8;
	--fp-link: #7ee2b4;
	--fp-mod: #f0c94b;
	--fp-on-mod: #2a2008;
	--fp-free: #16342a;
	--fp-on-free: #a5ebc8;
	--fp-paid: #2c2449;
	--fp-on-paid: #cdbdf6;
	--fp-upd: #1c2c4d;
	--fp-on-upd: #a9c5ff;
	--fp-shadow: 0 2px 4px -2px rgba(0, 0, 0, .25), 0 4px 14px -2px rgba(0, 0, 0, .5);
	--fp-overlay: rgba(2, 4, 3, .82);
}

html[data-fp-theme="light"] {
	color-scheme: light;
	--fp-bg: #f8faf9;
	--fp-surface: #ffffff;
	--fp-surface-2: #f1f4f2;
	--fp-surface-3: #e8ecea;
	--fp-border: #e2e7e4;
	--fp-border-strong: #8b9590;
	--fp-text: #1a201d;
	--fp-muted: #5a6560;
	--fp-brand: #22a06b;
	--fp-primary: #0f7d55;
	--fp-primary-hover: #0b6b48;
	--fp-on-primary: #ffffff;
	--fp-primary-soft: #e0f3e9;
	--fp-on-primary-soft: #0e5d3f;
	--fp-link: #0f7552;
	--fp-mod: #f8d24c;
	--fp-on-mod: #3a2a06;
	--fp-free: #e0f3e9;
	--fp-on-free: #0e5d3f;
	--fp-paid: #ede7fb;
	--fp-on-paid: #5a33b8;
	--fp-upd: #e3ecff;
	--fp-on-upd: #2456c4;
	--fp-shadow: 0 4px 12px -2px rgba(20, 40, 30, .08);
	--fp-overlay: rgba(10, 16, 13, .8);
}

/* ---------- Toàn site (Flatsome) ---------- */
body.fp-global,
body.fp-global #wrapper,
body.fp-global #main,
body.fp-global .page-wrapper,
body.fp-global .blog-wrapper {
	background-color: var(--fp-bg) !important;
	color: var(--fp-text);
}

body.fp-global,
body.fp-global button,
body.fp-global input,
body.fp-global select,
body.fp-global textarea,
body.fp-global .nav > li > a,
body.fp-global h1, body.fp-global h2, body.fp-global h3,
body.fp-global h4, body.fp-global h5, body.fp-global h6,
body.fp-global .heading-font,
body.fp-global .alt-font {
	font-family: var(--fp-font) !important;
}

body.fp-global h1, body.fp-global h2, body.fp-global h3,
body.fp-global h4, body.fp-global h5, body.fp-global h6,
body.fp-global .entry-title,
body.fp-global label,
body.fp-global strong {
	color: var(--fp-text);
	letter-spacing: -.01em;
}

body.fp-global a { color: var(--fp-link); }
body.fp-global a:hover { color: var(--fp-primary-hover); }
body.fp-global p,
body.fp-global .entry-content,
body.fp-global .widget { color: var(--fp-text); }
body.fp-global .is-divider { background-color: var(--fp-border); }
body.fp-global hr { border-color: var(--fp-border); }

/* Header */
body.fp-global .header-wrapper,
body.fp-global #header .header-main,
body.fp-global #header .header-bg-color,
body.fp-global #header .header-bottom,
body.fp-global #header .header-top,
body.fp-global .header-wrapper.stuck {
	background-color: color-mix(in srgb, var(--fp-bg) 92%, transparent) !important;
	background-image: none !important;
	color: var(--fp-text);
}
body.fp-global .header-wrapper.stuck,
body.fp-global #header .header-main { backdrop-filter: saturate(1.4) blur(10px); }
body.fp-global #header { border-bottom: 1px solid var(--fp-border); box-shadow: none; }
body.fp-global .header-shadow .header-wrapper,
body.fp-global .header-wrapper:not(.stuck) .header-main .header-nav { box-shadow: none; }
body.fp-global #header .nav > li > a,
body.fp-global #header .header-button,
body.fp-global #header .icon-menu,
body.fp-global #header .nav-icon a,
body.fp-global #header .account-item a {
	color: var(--fp-muted) !important;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}
body.fp-global #header .header-nav-main > li > a {
	padding: 7px 13px;
	border-radius: var(--fp-r-sm);
	transition: background .2s var(--fp-ease), color .2s var(--fp-ease);
}
body.fp-global #header .header-nav-main > li > a:hover,
body.fp-global #header .header-nav-main > li.active > a,
body.fp-global #header .header-nav-main > li.current-menu-item > a,
body.fp-global #header .header-nav-main > li.current-menu-ancestor > a {
	background: var(--fp-surface-2);
	color: var(--fp-text) !important;
}
body.fp-global #header .header-nav-main > li > a::before,
body.fp-global #header .header-nav-main > li > a::after { display: none; }
body.fp-global .nav-dropdown {
	background: var(--fp-surface) !important;
	border: 1px solid var(--fp-border) !important;
	border-radius: var(--fp-r-md);
	box-shadow: var(--fp-shadow);
}
body.fp-global .nav-dropdown li a { color: var(--fp-text) !important; }
body.fp-global .nav-dropdown li a:hover { background: var(--fp-surface-2); }

/* Ô tìm kiếm dạng viên thuốc */
body.fp-global .searchform .search-field,
body.fp-global .header-search-form .search-field,
body.fp-global input.search-field {
	background: var(--fp-surface-2) !important;
	border: 1px solid transparent !important;
	border-radius: var(--fp-r-full, 999px) !important;
	color: var(--fp-text) !important;
	box-shadow: none !important;
	height: 40px;
	padding-left: 16px;
}
body.fp-global .searchform .search-field:focus { border-color: var(--fp-primary) !important; }
body.fp-global .searchform .button.icon,
body.fp-global .searchform button[type="submit"] {
	background: transparent !important;
	color: var(--fp-muted) !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
}
body.fp-global .searchform .flex-col:first-child { position: relative; }
body.fp-global .header-search-form .searchform-wrapper { min-width: 320px; }

/* Off-canvas menu trên điện thoại */
body.fp-global .off-canvas .mfp-content,
body.fp-global .off-canvas-left .mfp-content,
body.fp-global .off-canvas-right .mfp-content,
body.fp-global .mfp-content .nav-sidebar {
	background: var(--fp-surface) !important;
}
body.fp-global .nav-sidebar > li > a,
body.fp-global .nav-vertical li a { color: var(--fp-text) !important; }
body.fp-global .nav-vertical li li a { color: var(--fp-muted) !important; }
body.fp-global .nav-sidebar > li + li { border-top-color: var(--fp-border) !important; }

/* Nút Flatsome */
body.fp-global .button.primary,
body.fp-global button.primary,
body.fp-global input[type="submit"].primary,
body.fp-global input[type="submit"],
body.fp-global .button.alt {
	background-color: var(--fp-primary) !important;
	color: var(--fp-on-primary) !important;
	border-radius: 999px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
	box-shadow: none;
}
body.fp-global .button.primary:hover,
body.fp-global input[type="submit"]:hover { background-color: var(--fp-primary-hover) !important; }

/* Form */
body.fp-global input[type="text"],
body.fp-global input[type="email"],
body.fp-global input[type="url"],
body.fp-global input[type="password"],
body.fp-global input[type="number"],
body.fp-global input[type="search"],
body.fp-global textarea,
body.fp-global select {
	background-color: var(--fp-surface-2);
	border: 1px solid var(--fp-border);
	color: var(--fp-text);
	border-radius: var(--fp-r-sm);
	box-shadow: none;
}
body.fp-global input:focus,
body.fp-global textarea:focus,
body.fp-global select:focus {
	border-color: var(--fp-primary);
	background-color: var(--fp-surface);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--fp-primary) 22%, transparent);
}

/* Footer */
body.fp-global .footer-wrapper,
body.fp-global .footer,
body.fp-global .footer-1,
body.fp-global .footer-2,
body.fp-global .absolute-footer {
	background: var(--fp-surface) !important;
	color: var(--fp-muted) !important;
	border-top: 1px solid var(--fp-border);
}
body.fp-global .footer-wrapper a,
body.fp-global .absolute-footer a { color: var(--fp-muted) !important; }
body.fp-global .footer-wrapper a:hover { color: var(--fp-text) !important; }
body.fp-global .footer-wrapper .widget-title,
body.fp-global .footer-wrapper h3,
body.fp-global .footer-wrapper h4 { color: var(--fp-text) !important; }
body.fp-global #top-link,
body.fp-global .back-to-top {
	background: var(--fp-surface-2) !important;
	color: var(--fp-text) !important;
	border-color: var(--fp-border) !important;
}

/* Bài thường / trang thường của Flatsome */
body.fp-global .article-inner,
body.fp-global .entry-header-text,
body.fp-global .box-blog-post .box-text,
body.fp-global .col-inner .box-text { color: var(--fp-text); }
body.fp-global .box-blog-post .box-text,
body.fp-global .post-item .box-text { background: transparent; }
body.fp-global .breadcrumbs,
body.fp-global .entry-meta,
body.fp-global .entry-category,
body.fp-global .is-small,
body.fp-global .post-date { color: var(--fp-muted); }
body.fp-global .badge-inner { background: var(--fp-primary) !important; color: var(--fp-on-primary) !important; }

/* ---------- Bố cục chung ---------- */
.fp-page {
	font-family: var(--fp-font);
	color: var(--fp-text);
	padding: 18px 0 48px;
	font-size: 16px;
	line-height: 1.55;
}
.fp-page *,
.fp-page *::before,
.fp-page *::after { box-sizing: border-box; }
.fp-container {
	max-width: var(--fp-page);
	margin: 0 auto;
	padding: 0 var(--fp-gutter);
}
.fp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	align-items: start;
}
.fp-main { min-width: 0; }
.fp-aside { position: sticky; top: calc(var(--flatsome--header--sticky-height, 70px) + 16px); }
.fp-svg { display: inline-block; flex: none; vertical-align: middle; }
.fp-page a { text-decoration: none; }

.fp-section { margin-top: 32px; }
.fp-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.fp-page .fp-section__title,
.fp-section__title {
	font-size: clamp(19px, 1.1rem + .25vw, 21px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 14px;
	color: var(--fp-text);
}
.fp-section__head .fp-section__title { margin: 0; }
.fp-section__more {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: var(--fp-link) !important;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}
.fp-section__more .fp-svg { width: 16px; height: 16px; }

.fp-card {
	background: var(--fp-surface);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-r-lg);
	padding: 20px;
}

/* ---------- Nhãn ---------- */
.fp-badge {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 7px;
	border-radius: var(--fp-r-xs);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}
.fp-badge--mod { background: var(--fp-mod); color: var(--fp-on-mod); }
.fp-badge--free { background: var(--fp-free); color: var(--fp-on-free); }
.fp-badge--paid { background: var(--fp-paid); color: var(--fp-on-paid); }
.fp-badge--upd { background: var(--fp-upd); color: var(--fp-on-upd); }
.fp-chip {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 9px;
	border-radius: var(--fp-r-xs);
	background: var(--fp-surface-2);
	color: var(--fp-muted);
	font-size: 12px;
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.fp-chip--link {
	font-family: var(--fp-font);
	font-size: 14px;
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	color: var(--fp-text) !important;
	border: 1px solid var(--fp-border);
	background: var(--fp-surface);
}
.fp-chip--link:hover { background: var(--fp-surface-2); }
.fp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Nút ---------- */
.fp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	font: 600 15px/1 var(--fp-font);
	text-decoration: none !important;
	cursor: pointer;
	transition: background .2s var(--fp-ease), transform .12s var(--fp-ease);
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
}
.fp-btn:active { transform: scale(.98); }
.fp-btn--primary { background: var(--fp-primary); color: var(--fp-on-primary) !important; }
.fp-btn--primary:hover { background: var(--fp-primary-hover); color: var(--fp-on-primary) !important; }
.fp-btn--lg { min-height: 52px; padding: 0 30px; font-size: 16px; min-width: 220px; }
.fp-btn--soft { background: var(--fp-primary-soft); color: var(--fp-on-primary-soft) !important; min-height: 34px; font-size: 14px; padding: 0 14px; }
.fp-btn--soft:hover { filter: brightness(1.08); }

.fp-icon-btn,
.fp-theme-toggle {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border-radius: 999px;
	border: 1px solid var(--fp-border);
	background: var(--fp-surface);
	color: var(--fp-text);
	cursor: pointer;
	transition: background .2s var(--fp-ease);
	box-shadow: none;
	min-height: 0;
	line-height: 1;
}
.fp-icon-btn:hover,
.fp-theme-toggle:hover { background: var(--fp-surface-2); }
.fp-theme-toggle { width: 38px; height: 38px; border-color: transparent; background: transparent; color: var(--fp-muted); }
html[data-fp-theme="dark"] .fp-theme-toggle__moon,
html[data-fp-theme="light"] .fp-theme-toggle__sun { display: none; }

/* ---------- Breadcrumb ---------- */
.fp-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 14px;
	color: var(--fp-muted);
	margin-bottom: 16px;
}
.fp-crumbs a { color: var(--fp-muted) !important; }
.fp-crumbs a:hover { color: var(--fp-text) !important; }

/* ---------- Hero trang chi tiết ---------- */
.fp-hero {
	display: grid;
	grid-template-columns: 132px auto 1fr;
	grid-template-areas:
		"icon title title"
		"icon meta  meta"
		"icon cta   tools";
	column-gap: 22px;
	row-gap: 6px;
	align-items: start;
}
.fp-hero__title { grid-area: title; }
.fp-hero__icon { grid-area: icon; }
.fp-hero__meta { grid-area: meta; }
.fp-hero__cta { grid-area: cta; margin-top: 12px; }
.fp-hero__tools { grid-area: tools; margin-top: 12px; display: flex; gap: 10px; align-items: center; }
.fp-hero__icon .fp-icon {
	width: 132px;
	height: 132px;
	border-radius: var(--fp-r-xl);
	object-fit: cover;
	display: grid;
	place-items: center;
	background: var(--fp-surface-2);
	box-shadow: var(--fp-shadow);
}
.fp-icon--empty { font-size: 44px; font-weight: 700; color: var(--fp-muted); }
.fp-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.fp-hero__badges .fp-badge { height: 26px; padding: 0 10px; font-size: 12.5px; border-radius: 999px; }
.fp-hero__badges .fp-chip { height: 26px; border-radius: 999px; padding: 0 11px; }
.fp-page .fp-hero__title {
	font-size: clamp(24px, 1.3rem + .9vw, 34px);
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
	color: var(--fp-text);
	letter-spacing: -.02em;
}
.fp-hero__cat { color: var(--fp-muted) !important; font-size: 16px; }
.fp-hero__cat:hover { color: var(--fp-text) !important; }
.fp-hero__tools .fp-icon-btn { width: 48px; height: 48px; border-color: transparent; background: var(--fp-surface-2); }
.fp-hero__tools .fp-icon-btn:hover { background: var(--fp-surface-3); }
.fp-hero__tools .fp-icon-btn .fp-svg { width: 22px; height: 22px; }

/* Điện thoại: tiêu đề trên cùng, icon lớn bên trái, nhãn + nút tải bên phải, các nút tròn ở giữa (như 5play) */
@media (max-width: 849px) {
	.fp-hero {
		grid-template-columns: clamp(108px, 31vw, 150px) minmax(0, 1fr);
		grid-template-areas:
			"title title"
			"icon  meta"
			"icon  cta"
			"tools tools";
		column-gap: 16px;
		row-gap: 0;
	}
	.fp-hero__title { margin-bottom: 18px !important; }
	.fp-page .fp-hero__title { font-size: clamp(23px, 5.6vw, 30px); }
	.fp-hero__icon .fp-icon { width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%; }
	.fp-hero__meta { align-self: start; }
	.fp-hero__badges { margin-top: 0; }
	.fp-hero__cat { font-size: 17px; }
	.fp-hero__cta { align-self: end; margin-top: 10px; }
	.fp-hero__cta .fp-btn--lg { width: 100%; min-width: 0; min-height: 56px; padding: 0 14px; font-size: 18px; }
	.fp-hero__tools { justify-content: center; gap: 12px; margin-top: 18px; }
	.fp-hero__tools .fp-icon-btn { width: 52px; height: 52px; }
}

/* ---------- Bảng thông tin ---------- */
.fp-info {
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	background: var(--fp-surface);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-r-lg);
	overflow: hidden;
}
.fp-info__item {
	padding: 14px 18px;
	border-right: 1px solid var(--fp-border);
	border-bottom: 1px solid var(--fp-border);
	margin: 0 -1px -1px 0;
	min-width: 0;
}
.fp-info__label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--fp-muted);
	font-size: 13px;
	margin-bottom: 4px;
}
.fp-info__label .fp-svg { width: 16px; height: 16px; }
.fp-info__value {
	font-weight: 600;
	font-size: 16px;
	color: var(--fp-text);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}
.fp-info__value a { color: var(--fp-link) !important; }

/* ---------- Thanh cuộn ngang ---------- */
.fp-scroller {
	display: grid;
	grid-auto-flow: column;
	gap: 14px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
	margin: 0 calc(var(--fp-gutter) * -1);
	padding-left: var(--fp-gutter);
	padding-right: var(--fp-gutter);
	scroll-padding-left: var(--fp-gutter);
}
.fp-layout .fp-scroller { margin: 0; padding-left: 0; padding-right: 0; scroll-padding-left: 0; }
.fp-scroller::-webkit-scrollbar { display: none; }
.fp-scroller > * { scroll-snap-align: start; }

/* Ảnh chụp màn hình */
.fp-screens__track { grid-auto-columns: max-content; }
.fp-screens__item {
	display: block;
	height: 300px;
	border-radius: var(--fp-r-lg);
	overflow: hidden;
	background: var(--fp-surface-2);
}
.fp-screens__item img { height: 100%; width: auto; max-width: none; object-fit: cover; display: block; transition: transform .3s var(--fp-ease); }
.fp-screens__item:hover img { transform: scale(1.02); }

/* ---------- Mô tả ---------- */
.fp-desc {
	position: relative;
	max-height: 260px;
	overflow: hidden;
	color: var(--fp-text);
	line-height: 1.65;
}
.fp-desc::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 90px;
	background: linear-gradient(to bottom, transparent, var(--fp-bg));
	pointer-events: none;
}
.fp-desc.is-open { max-height: none; }
.fp-desc.is-open::after { display: none; }
.fp-desc h2, .fp-desc h3 { font-size: 19px; margin: 20px 0 8px; }
.fp-desc img { border-radius: var(--fp-r-md); }
.fp-desc a { color: var(--fp-link) !important; }
.fp-desc__toggle { margin-top: 12px; }

/* ---------- Đánh giá (kiểu 5play) ---------- */
.fp-rate {
	text-align: center;
	padding: 26px 26px 18px;
	border-radius: var(--fp-r-xl);
}
.fp-rate__big { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.fp-page .fp-rate__percent {
	font-size: clamp(44px, 2.2rem + 1.6vw, 60px);
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--fp-text);
	font-variant-numeric: tabular-nums;
}
.fp-rate__thumb { color: var(--fp-brand); display: inline-grid; }
.fp-rate__thumb .fp-svg { width: 40px; height: 40px; stroke-width: 1.7; }
.fp-rate__label { color: var(--fp-muted); font-size: 17px; margin: 8px 0 18px; }
.fp-rate__bar {
	height: 10px;
	border-radius: 99px;
	background: var(--fp-surface-3);
	overflow: hidden;
	text-align: left;
}
.fp-rate__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #1fae6e 0%, #8cc06a 45%, #f7d147 100%);
	transition: width .5s var(--fp-ease);
}
.fp-rate__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.fp-vote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 58px;
	padding: 0 16px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: var(--fp-surface-2);
	color: var(--fp-text);
	font: 700 19px/1 var(--fp-font);
	letter-spacing: .06em;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	text-transform: none;
	min-height: 0;
	transition: background .2s var(--fp-ease), transform .12s var(--fp-ease);
}
.fp-vote .fp-svg { width: 24px; height: 24px; }
.fp-vote:hover { background: var(--fp-surface-3); }
.fp-vote:active { transform: scale(.98); }
.fp-vote.is-active { background: var(--fp-primary-soft); color: var(--fp-on-primary-soft); }
.fp-rate:not([data-voted=""]) .fp-vote:not(.is-active) { opacity: .55; cursor: default; }
.fp-rate__foot { color: var(--fp-muted); font-size: 16px; margin-top: 16px; }
@media (max-width: 480px) {
	.fp-rate { padding: 22px 16px 16px; }
	.fp-vote { height: 52px; font-size: 17px; }
	.fp-rate__btns { gap: 10px; }
}

/* ---------- Link tải ---------- */
.fp-dl {
	background: var(--fp-surface);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-r-xl);
	padding: 22px;
	scroll-margin-top: 90px;
}
.fp-dl__list { display: grid; gap: 14px; }
.fp-dl__row { display: grid; gap: 8px; }
.fp-dl__note {
	background: var(--fp-surface-2);
	border-radius: var(--fp-r-md);
	padding: 12px 16px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--fp-text);
}
.fp-dl__note p { margin: 0 0 6px; }
.fp-dl__note p:last-child { margin-bottom: 0; }
.fp-dl__note ul { margin: 0 0 0 18px; }
.fp-dl__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: var(--fp-r-md);
	background: var(--fp-primary);
	color: var(--fp-on-primary) !important;
	text-decoration: none !important;
	transition: background .2s var(--fp-ease), transform .12s var(--fp-ease);
}
.fp-dl__item:hover { background: var(--fp-primary-hover); }
.fp-dl__item:active { transform: scale(.99); }
.fp-dl__ico {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--fp-r-sm);
	background: rgba(0, 0, 0, .12);
	flex: none;
}
.fp-dl__body { display: grid; min-width: 0; flex: 1; }
.fp-dl__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-dl__meta { font-size: 13px; opacity: .8; }
.fp-dl__go { opacity: .8; }

.fp-modinfo {
	margin-top: 18px;
	background: var(--fp-surface-2);
	border-radius: var(--fp-r-md);
	padding: 16px 18px;
}
.fp-page .fp-modinfo__title { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--fp-text); }
.fp-modinfo__body { color: var(--fp-text); font-size: 15px; }
.fp-modinfo__body p { margin: 0 0 6px; }
.fp-modinfo__body ul { margin: 0 0 0 18px; }

.fp-verified {
	display: flex;
	gap: 12px;
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: var(--fp-r-md);
	background: var(--fp-primary-soft);
	color: var(--fp-on-primary-soft);
}
.fp-verified__title { color: var(--fp-on-primary-soft); display: block; margin-bottom: 2px; }
.fp-verified p strong { color: var(--fp-text); }
.fp-verified p { margin: 0; font-size: 14px; color: var(--fp-text); }

/* ---------- Bình luận (template Flatsome) ---------- */
.fp-comments .comments-title,
.fp-comments #reply-title,
.fp-comments .comment-reply-title { font-size: 21px; font-weight: 700; color: var(--fp-text); }
.fp-comments .comment-list { padding: 0; margin: 0; list-style: none; }
.fp-comments .comment-list > li,
.fp-comments .comment-list .children > li {
	background: var(--fp-surface);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-r-lg);
	padding: 14px 16px;
	margin: 0 0 10px;
}
.fp-comments .comment-list .children { margin: 10px 0 0 22px; padding: 0; list-style: none; }
.fp-comments .comment-list .children > li { background: var(--fp-surface-2); }
.fp-comments .comment-inner,
.fp-comments article { padding: 0 !important; border: 0 !important; }
.fp-comments .avatar { border-radius: 999px; }
.fp-comments .comment-author cite,
.fp-comments .fn { font-style: normal; font-weight: 600; color: var(--fp-text); }
.fp-comments .comment-meta,
.fp-comments .comment-metadata a,
.fp-comments time { color: var(--fp-muted) !important; font-size: 13px; }
.fp-comments .comment-respond {
	background: var(--fp-surface);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-r-lg);
	padding: 18px;
	margin-top: 16px;
}

/* ---------- Cột phải ---------- */
.fp-aside__box {
	background: var(--fp-surface);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-r-xl);
	padding: 18px 14px 10px;
	margin-bottom: 18px;
}
.fp-page .fp-aside__title { font-size: 17px; font-weight: 700; margin: 0 6px 10px; color: var(--fp-text); }
.fp-aside__list { display: grid; }

/* ---------- Dòng danh sách ---------- */
.fp-row-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: var(--fp-r-md);
	color: var(--fp-text) !important;
	text-decoration: none !important;
	min-width: 0;
	transition: background .2s var(--fp-ease);
}
.fp-row-item:hover { background: var(--fp-surface-2); }
.fp-row-item__rank { min-width: 28px; text-align: center; color: var(--fp-muted); font-weight: 800; font-size: 18px; flex: none; font-variant-numeric: tabular-nums; }
.fp-row-item__rank.is-top { color: var(--fp-brand); }
.fp-row-item__icon {
	width: 56px;
	height: 56px;
	border-radius: var(--fp-r-md);
	object-fit: cover;
	flex: none;
	background: var(--fp-surface-2);
	display: grid;
	place-items: center;
}
.fp-row-item__icon.fp-icon--empty { font-size: 20px; }
.fp-row-item__body { display: grid; gap: 4px; min-width: 0; }
.fp-row-item__title { font-weight: 600; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-row-item__meta { display: flex; align-items: center; gap: 8px; color: var(--fp-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; }

.fp-ranked {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px 16px;
}

/* ---------- Thẻ vuông ---------- */
.fp-tiles { grid-auto-columns: 128px; }
.fp-tile {
	display: grid;
	gap: 6px;
	align-content: start;
	color: var(--fp-text) !important;
	text-decoration: none !important;
	min-width: 0;
}
.fp-tile__media { position: relative; display: block; }
.fp-tile__media .fp-icon {
	width: 100%;
	aspect-ratio: 1;
	border-radius: var(--fp-r-lg);
	object-fit: cover;
	background: var(--fp-surface-2);
	display: grid;
	place-items: center;
	transition: transform .2s var(--fp-ease), box-shadow .2s var(--fp-ease);
}
.fp-tile:hover .fp-icon { transform: translateY(-2px); box-shadow: var(--fp-shadow); }
.fp-tile__badges { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; }
.fp-tile__badges .fp-badge { height: 18px; font-size: 10px; padding: 0 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.fp-tile__title {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.fp-tile__meta { color: var(--fp-muted); font-size: 12.5px; margin-top: -2px; }

.fp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
	gap: 22px 16px;
}

/* ---------- Thẻ lớn (Đề xuất) ---------- */
.fp-featured { grid-auto-columns: minmax(280px, calc((100% - 42px) / 4)); }
.fp-feature {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--fp-r-xl);
	overflow: hidden;
	background: var(--fp-surface-2);
	color: #fff !important;
	text-decoration: none !important;
	isolation: isolate;
}
.fp-feature__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s var(--fp-ease); }
.fp-feature:hover .fp-feature__bg { transform: scale(1.04); }
.fp-feature::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .25) 45%, transparent 70%);
}
.fp-feature__foot { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; }
.fp-feature__icon { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; background: var(--fp-surface-2); display: grid; place-items: center; }
.fp-feature__title { display: block; font-weight: 700; font-size: 16px; line-height: 1.2; margin-bottom: 4px; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

/* ---------- Trang chủ / lưu trữ ---------- */
.fp-page .fp-home__title,
.fp-page .fp-archive-head__title {
	font-size: clamp(24px, 1.3rem + .9vw, 32px);
	font-weight: 700;
	margin: 6px 0 0;
	color: var(--fp-text);
	letter-spacing: -.02em;
}
.fp-home .fp-section:first-of-type { margin-top: 22px; }
.fp-archive-head { margin-bottom: 26px; }
.fp-archive-desc { margin-top: 36px; }
.fp-pagination { display: flex; justify-content: center; margin-top: 34px; }
.fp-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	margin: 0 3px;
	border-radius: 999px;
	background: var(--fp-surface);
	border: 1px solid var(--fp-border);
	color: var(--fp-text) !important;
	font-weight: 600;
	text-decoration: none !important;
}
.fp-pagination .page-numbers.current { background: var(--fp-primary); color: var(--fp-on-primary) !important; border-color: transparent; }
.fp-pagination .page-numbers.dots { background: transparent; border: 0; }
.fp-empty { color: var(--fp-muted); }

/* ---------- Lightbox ---------- */
.fp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: var(--fp-overlay);
	display: grid;
	place-items: center;
	padding: 48px 64px;
	backdrop-filter: blur(4px);
}
.fp-lightbox[hidden] { display: none; }
.fp-lightbox img { max-width: 100%; max-height: calc(100vh - 96px); border-radius: var(--fp-r-md); }
.fp-lightbox button {
	position: absolute;
	width: 46px;
	height: 46px;
	border: 0;
	margin: 0;
	padding: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	min-height: 0;
}
.fp-lightbox button:hover { background: rgba(255, 255, 255, .22); }
.fp-lightbox__close { top: 14px; right: 14px; }
.fp-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.fp-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
body.fp-lb-open { overflow: hidden; }

.fp-toast {
	position: fixed;
	left: 50%;
	bottom: 90px;
	transform: translate(-50%, 20px);
	opacity: 0;
	background: var(--fp-text);
	color: var(--fp-bg);
	padding: 10px 18px;
	border-radius: 999px;
	font: 500 14px/1.2 var(--fp-font);
	z-index: 99999;
	transition: all .25s var(--fp-ease);
}
.fp-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Thanh điều hướng dưới (điện thoại) ---------- */
.fp-bottom-nav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.fp-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
	.fp-ranked { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fp-featured { grid-auto-columns: minmax(260px, 40%); }
}

@media (max-width: 849px) {
	.fp-layout { grid-template-columns: minmax(0, 1fr); }
	.fp-aside { position: static; }
	.fp-layout .fp-scroller {
		margin: 0 calc(var(--fp-gutter) * -1);
		padding-left: var(--fp-gutter);
		padding-right: var(--fp-gutter);
		scroll-padding-left: var(--fp-gutter);
	}
	.fp-screens__item { height: 220px; }
	.fp-ranked { grid-template-columns: minmax(0, 1fr); }
	.fp-featured { grid-auto-columns: 78%; }
	.fp-tiles { grid-auto-columns: 104px; }
	.fp-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 18px 12px; }
	.fp-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	body.fp-has-bottom-nav { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
	body.fp-has-bottom-nav #top-link { bottom: calc(84px + env(safe-area-inset-bottom)); }
	.fp-bottom-nav {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		height: calc(70px + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: color-mix(in srgb, var(--fp-surface) 94%, transparent);
		backdrop-filter: blur(12px);
		border-top: 1px solid var(--fp-border);
		font-family: var(--fp-font);
	}
	.fp-bottom-nav__item {
		display: grid;
		place-items: center;
		align-content: center;
		gap: 2px;
		color: var(--fp-muted) !important;
		font-size: 12.5px;
		font-weight: 500;
		text-decoration: none !important;
	}
	.fp-bottom-nav__ico { display: grid; place-items: center; width: 58px; height: 34px; border-radius: 999px; transition: background .2s var(--fp-ease); }
	.fp-bottom-nav__ico .fp-svg { width: 27px; height: 27px; stroke-width: 1.7; }
	.fp-bottom-nav__item.is-active { color: var(--fp-primary) !important; font-weight: 600; }
	.fp-bottom-nav__item.is-active .fp-bottom-nav__ico { background: var(--fp-primary-soft); color: var(--fp-on-primary-soft); }
}

@media (max-width: 480px) {
	.fp-dl { padding: 16px; border-radius: var(--fp-r-lg); }
	.fp-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.fp-page *, .fp-page *::before, .fp-page *::after { transition: none !important; }
}

/* ---------- Trang download đếm ngược (plugin dl-countdown) ---------- */
html[data-fp-theme] .dlcd-wrap { --dl: var(--fp-primary); font-family: var(--fp-font); }
html[data-fp-theme] .dlcd-card {
	background: var(--fp-surface);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-r-xl);
	box-shadow: none;
	color: var(--fp-text);
}
html[data-fp-theme] .dlcd-head h1,
html[data-fp-theme] .dlcd-num,
html[data-fp-theme] .dlcd-chips b,
html[data-fp-theme] .dlcd-sec h2,
html[data-fp-theme] .dlcd-mod-body strong,
html[data-fp-theme] .dlcd-mod-body b { color: var(--fp-text); }
html[data-fp-theme] .dlcd-head h1 small,
html[data-fp-theme] .dlcd-num small,
html[data-fp-theme] .dlcd-status,
html[data-fp-theme] .dlcd-file,
html[data-fp-theme] .dlcd-mod-body { color: var(--fp-muted); }
html[data-fp-theme] .dlcd-chips span { background: var(--fp-surface-2); color: var(--fp-muted); }
html[data-fp-theme] .dlcd-ring .bg { stroke: var(--fp-surface-3); }
html[data-fp-theme] .dlcd-btn { color: var(--fp-on-primary) !important; border-radius: 999px; box-shadow: none; }
html[data-fp-theme] .dlcd-btn:hover { background: var(--fp-primary-hover); filter: none; }
html[data-fp-theme] .dlcd-note { background: var(--fp-primary-soft); color: var(--fp-text); border-left-color: var(--fp-primary); border-radius: var(--fp-r-sm); }
html[data-fp-theme] .dlcd-back { color: var(--fp-link) !important; }
html[data-fp-theme] .dlcd-others a { border-color: var(--fp-border); color: var(--fp-text) !important; border-radius: var(--fp-r-md); background: var(--fp-surface-2); }
html[data-fp-theme] .dlcd-others a:hover { border-color: var(--fp-primary); }
html[data-fp-theme] .dlcd-rel a { color: var(--fp-text) !important; }
html[data-fp-theme] .dlcd-mod-body td,
html[data-fp-theme] .dlcd-mod-body th { border-color: var(--fp-border); }
html[data-fp-theme] .dlcd-mod-body li::after { border-color: var(--fp-on-primary); }
html[data-fp-theme] .dlcd-mod-body h3 { color: var(--fp-on-primary); }
html[data-fp-theme] .dlcd-sc-btn { background: var(--fp-primary); color: var(--fp-on-primary) !important; border-radius: 999px; box-shadow: none; }

/* ---------- Có gì mới / Video ---------- */
.fp-details { padding: 0; overflow: hidden; }
.fp-details__sum {
	cursor: pointer;
	list-style: none;
	padding: 16px 20px;
	font-weight: 700;
	font-size: 17px;
	color: var(--fp-text);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.fp-details__sum::-webkit-details-marker { display: none; }
.fp-details__sum::after { content: "+"; font-size: 22px; color: var(--fp-muted); line-height: 1; }
.fp-details[open] .fp-details__sum::after { content: "–"; }
.fp-details__body { padding: 0 20px 18px; color: var(--fp-text); }
.fp-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--fp-r-lg); overflow: hidden; background: var(--fp-surface-2); }
.fp-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Trang /file/ và shortcode [app_info] của plugin GameMod App Info ---------- */
html[data-fp-theme] .gmai {
	--gmai-c: var(--fp-primary);
	--gmai-bd: var(--fp-border);
	--gmai-bg: var(--fp-surface-2);
	--gmai-mu: var(--fp-muted);
	color: var(--fp-text);
	font-family: var(--fp-font);
}
html[data-fp-theme] .gmai-file,
html[data-fp-theme] .gmai-box,
html[data-fp-theme] .gmai-download,
html[data-fp-theme] .gmai-item {
	background: var(--fp-surface);
	border-color: var(--fp-border);
	border-radius: var(--fp-r-xl);
	box-shadow: none;
}
html[data-fp-theme] .gmai-fname,
html[data-fp-theme] .gmai-name { color: var(--fp-text); }
html[data-fp-theme] .gmai-btn,
html[data-fp-theme] .gmai-dline {
	background: var(--fp-primary);
	color: var(--fp-on-primary) !important;
	border-radius: var(--fp-r-md);
}
html[data-fp-theme] .gmai-btn-lg { border-radius: 999px; }
html[data-fp-theme] .gmai-dnote { background: var(--fp-primary-soft); color: var(--fp-text); }
html[data-fp-theme] .gmai-label { background: var(--fp-mod); color: var(--fp-on-mod); }
html[data-fp-theme] .gmai-vbtn { background: var(--fp-surface-2) !important; color: var(--fp-text) !important; }

/* ---------- Cột phải: cả tiêu đề là link ---------- */
.fp-page .fp-aside__title { margin: 0 0 8px; }
.fp-aside__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 6px;
	margin: -4px 0 0;
	border-radius: var(--fp-r-sm);
	color: var(--fp-text) !important;
}
.fp-aside__head:hover { background: var(--fp-surface-2); }
.fp-aside__head .fp-svg { color: var(--fp-muted); width: 18px; height: 18px; }

/* ---------- Top 100 ---------- */
.fp-top100 .fp-section { margin-top: 18px; }
.fp-top100 .fp-ranked { gap: 2px 16px; }

/* ---------- Nút tim ---------- */
.fp-wish.is-active { color: #e5484d; border-color: color-mix(in srgb, #e5484d 35%, var(--fp-border)); background: color-mix(in srgb, #e5484d 10%, var(--fp-surface)); }
.fp-wish.is-active .fp-svg { fill: currentColor; }
.fp-wish.is-pop { animation: fpPop .35s var(--fp-ease); }
@keyframes fpPop { 50% { transform: scale(1.18); } }

.fp-activity-btn,
.fp-act-fab {
	position: relative;
	display: inline-grid;
	grid-auto-flow: column;
	align-items: center;
	gap: 6px;
	border: 0;
	margin: 0;
	padding: 0 10px;
	height: 38px;
	min-height: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fp-muted);
	cursor: pointer;
	font: 500 14px/1 var(--fp-font);
	text-transform: none;
}
.fp-activity-btn:hover { background: var(--fp-surface-2); color: var(--fp-text); }
.fp-act-count {
	position: absolute;
	top: 0;
	right: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 99px;
	background: #e5484d;
	color: #fff;
	font: 700 11px/18px var(--fp-font);
	text-align: center;
}
.fp-act-count[hidden] { display: none; }
.fp-act-fab {
	position: fixed;
	right: 18px;
	bottom: calc(146px + env(safe-area-inset-bottom));
	z-index: 998;
	width: 52px;
	height: 52px;
	padding: 0;
	justify-content: center;
	background: var(--fp-surface);
	color: #e5484d;
	border: 1px solid var(--fp-border);
	box-shadow: var(--fp-shadow);
}
.fp-act-fab .fp-svg { width: 24px; height: 24px; fill: currentColor; }
.fp-act-fab .fp-act-count { top: -4px; right: -4px; }

/* ---------- Bảng Hoạt động của bạn ---------- */
.fp-act-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: var(--fp-overlay);
	opacity: 0;
	transition: opacity .25s var(--fp-ease);
}
.fp-act-overlay.is-open { opacity: 1; }
.fp-act {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 100001;
	width: min(400px, 92vw);
	display: flex;
	flex-direction: column;
	background: var(--fp-surface);
	color: var(--fp-text);
	border-left: 1px solid var(--fp-border);
	box-shadow: var(--fp-shadow);
	transform: translateX(105%);
	visibility: hidden;
	transition: transform .3s var(--fp-ease), visibility .3s;
	font-family: var(--fp-font);
}
.fp-act.is-open { transform: none; visibility: visible; }
html.fp-act-lock { overflow: hidden; }
.fp-act__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 20px; }
.fp-act__title { margin: 0; font-size: 19px; font-weight: 700; color: var(--fp-text); }
.fp-act__close,
.fp-act__remove {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 0;
	min-height: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fp-muted);
	cursor: pointer;
}
.fp-act__close:hover,
.fp-act__remove:hover { background: var(--fp-surface-2); color: var(--fp-text); }
.fp-act__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 16px 10px; padding: 4px; border-radius: 999px; background: var(--fp-surface-2); }
.fp-act__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	margin: 0;
	min-height: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fp-muted);
	font: 600 14.5px/1 var(--fp-font);
	text-transform: none;
	cursor: pointer;
}
.fp-act__tab .fp-svg { width: 18px; height: 18px; }
.fp-act__tab.is-active { background: var(--fp-surface); color: var(--fp-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.fp-act__pane { display: none; flex: 1; overflow-y: auto; padding: 4px 10px 20px; }
.fp-act__pane.is-active { display: block; }
.fp-act__item { display: flex; align-items: center; gap: 4px; border-radius: var(--fp-r-md); }
.fp-act__item:hover { background: var(--fp-surface-2); }
.fp-act__link { flex: 1; display: flex; align-items: center; gap: 12px; padding: 8px; min-width: 0; color: var(--fp-text) !important; text-decoration: none !important; }
.fp-act__icon { width: 52px; height: 52px; border-radius: var(--fp-r-md); object-fit: cover; flex: none; background: var(--fp-surface-3); display: grid; place-items: center; font-weight: 700; color: var(--fp-muted); }
.fp-act__body { display: grid; gap: 4px; min-width: 0; }
.fp-act__name { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fp-act__meta { display: flex; align-items: center; gap: 8px; color: var(--fp-muted); font-size: 12.5px; }
.fp-act__empty { color: var(--fp-muted); text-align: center; padding: 40px 20px; margin: 0; }
.fp-act__clear {
	display: block;
	margin: 14px auto 0;
	padding: 8px 14px;
	min-height: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fp-muted);
	font: 500 13.5px/1 var(--fp-font);
	text-transform: none;
	cursor: pointer;
}
.fp-act__clear:hover { background: var(--fp-surface-2); color: var(--fp-text); }

/* Nút lên đầu trang tròn như 5play */
body.fp-global #top-link {
	border-radius: 999px !important;
	width: 52px;
	height: 52px;
	line-height: 50px;
	box-shadow: var(--fp-shadow);
}
@media (min-width: 850px) {
	.fp-act-fab { bottom: 88px; right: 22px; }
}

/* ---------- Trang Yêu thích ---------- */
.fp-wl-page { max-width: 1100px; margin: 0 auto 32px; font-family: var(--fp-font); color: var(--fp-text); }
.fp-wl-page .fp-act__tabs { max-width: 420px; margin: 8px 0 18px; }
.fp-wl-page .fp-act__items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 6px 16px;
}
.fp-wl-page .fp-act__item { background: var(--fp-surface); border: 1px solid var(--fp-border); border-radius: var(--fp-r-lg); padding-right: 6px; }
.fp-wl-page .fp-act__item:hover { background: var(--fp-surface-2); }
.fp-wl-page .fp-act__empty { background: var(--fp-surface); border: 1px dashed var(--fp-border); border-radius: var(--fp-r-lg); }
.fp-wl-page .fp-act__clear { margin-top: 18px; }
.fp-wl-page a { text-decoration: none !important; }

/* Trên điện thoại đã có tab Yêu thích ở thanh dưới -> ẩn nút tim nổi */
@media (max-width: 849px) {
	body.fp-has-bottom-nav .fp-act-fab { display: none; }
}

/* ---------- Gạch chân link trong bài và bảng thông tin (kiểu 5play) ---------- */
body.fp-global .entry-content a:not(.button):not(.fp-btn):not(.fp-tile):not(.fp-row-item):not(.fp-feature):not(.fp-dl__item):not(.fp-chip),
.fp-page .fp-desc a,
.fp-page .fp-details__body a,
.fp-page .fp-dl__note a,
.fp-page .fp-info__value a,
.fp-page .fp-archive-desc a {
	color: var(--fp-link) !important;
	text-decoration-line: underline !important;
	text-decoration-thickness: from-font;
	text-decoration-color: color-mix(in oklch, currentColor 35%, transparent);
	-webkit-text-decoration-color: color-mix(in oklch, currentColor 35%, transparent);
	text-underline-offset: .2em;
	transition: text-decoration-color .12s var(--fp-ease), color .12s var(--fp-ease);
}
body.fp-global .entry-content a:not(.button):not(.fp-btn):hover,
.fp-page .fp-desc a:hover,
.fp-page .fp-details__body a:hover,
.fp-page .fp-dl__note a:hover,
.fp-page .fp-info__value a:hover,
.fp-page .fp-archive-desc a:hover {
	text-decoration-color: currentColor;
	-webkit-text-decoration-color: currentColor;
}
/* Ảnh có link thì không gạch chân */
body.fp-global .entry-content a:has(> img:only-child),
.fp-page .fp-desc a:has(> img:only-child) { text-decoration-line: none !important; }

/* ---------- Hàng chuyên mục con ---------- */
.fp-chips--scroll { position: relative; }
.fp-chip--link.is-active {
	background: var(--fp-primary);
	border-color: transparent;
	color: var(--fp-on-primary) !important;
	font-weight: 600;
}
/* Điện thoại & máy tính bảng: một dòng, vuốt ngang */
@media (max-width: 1024px) {
	.fp-chips--scroll {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		margin-left: calc(var(--fp-gutter) * -1);
		margin-right: calc(var(--fp-gutter) * -1);
		padding: 2px var(--fp-gutter) 4px;
		scroll-padding-left: var(--fp-gutter);
	}
	.fp-chips--scroll::-webkit-scrollbar { display: none; }
	.fp-chips--scroll .fp-chip { flex: none; white-space: nowrap; scroll-snap-align: start; }
}

/* ---------- Trang Game / App: nổi bật + Top tuần này ---------- */
.fp-sr-only,
.fp-page .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.fp-hub-featured { margin-top: 22px; }
.fp-hub-week { margin-top: 30px; }
.fp-page .fp-hub-all { margin: 34px 0 16px; }
