/* FPS Hub — dark theme */
:root{
	--bg: #0b0d12;
	--bg-soft: #10131b;
	--surface: #151a26;
	--surface-2: #1b2233;
	--border: #242d42;
	--text: #e7eaf2;
	--muted: #8b93a7;
	--accent: #7c5cff;
	--accent-2: #22d3ee;
	--glow: rgba(124, 92, 255, .28);
	--radius: 14px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
	margin: 0;
	background:
		radial-gradient(1100px 500px at 85% -10%, rgba(124,92,255,.12), transparent 60%),
		radial-gradient(900px 420px at 0% -10%, rgba(34,211,238,.08), transparent 55%),
		var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.5;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
::selection{ background: var(--accent); color: #fff; }

:focus-visible{
	outline: 2px solid var(--accent-2);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ---------- header ---------- */
/* solid background so the bar renders EXACTLY the color chosen in the
   dashboard — no page-background bleed-through */
.site-header{
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--header-bg, #0b0d12);
	border-bottom: 1px solid var(--border);
}
.header-inner{
	max-width: 1280px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.brand{
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.02em;
	white-space: nowrap;
}
.brand-bolt{ margin-right: 2px; }
.brand-logo{ height: 36px; width: auto; display: block; }
.brand-accent{
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* top menu — links managed from the admin dashboard (Menu & Footer section) */
.top-menu{
	display: flex;
	gap: 4px;
	align-items: center;
}
.top-menu a{
	color: var(--menu-text, var(--muted));
	font-size: 14px;
	font-weight: 600;
	padding: 7px 13px;
	border-radius: 9px;
	transition: color .15s ease, background .15s ease;
}
.top-menu a:hover{
	color: var(--menu-hover, var(--text));
	background: var(--menu-hover-bg, rgba(255, 255, 255, .07));
}
.menu-toggle{
	display: none;
	background: transparent;
	border: 1px solid var(--menu-text, var(--border));
	color: var(--menu-text, var(--text));
	border-radius: 9px;
	padding: 6px 13px;
	font-size: 18px;
	cursor: pointer;
}
/* dropdown submenus (dashboard: "- Label | URL" lines under a menu item) */
.menu-item{ position: relative; }
.menu-item > a .caret{ font-size: 10px; opacity: .7; }
.submenu{
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--header-bg, var(--surface));
	border: 1px solid var(--border);
	border-radius: 11px;
	padding: 6px;
	min-width: 190px;
	z-index: 60;
	box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .7);
}
.menu-item:hover .submenu,
.menu-item:focus-within .submenu{ display: block; }
.submenu a{ display: block; }

.search{
	flex: 1;
	display: flex;
	min-width: 240px;
	max-width: 560px;
	margin-left: auto;
}
.search input{
	flex: 1;
	min-width: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-right: none;
	border-radius: 999px 0 0 999px;
	color: var(--text);
	font-size: 15px;
	padding: 10px 18px;
}
.search input::placeholder{ color: var(--muted); }
.search input:focus{ outline: none; border-color: var(--accent); }
.search button{
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	border: none;
	border-radius: 0 999px 999px 0;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 22px;
	cursor: pointer;
	transition: filter .15s ease;
}
.search button:hover{ filter: brightness(1.15); }

/* ---------- layout ---------- */
.page{
	flex: 1;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 28px 20px 48px;
}

.hero{
	text-align: center;
	padding: 26px 0 10px;
}
.hero h1{
	margin: 0 0 6px;
	font-size: clamp(26px, 4vw, 40px);
	font-weight: 800;
	letter-spacing: -.02em;
}
.hero p{
	margin: 0;
	color: var(--muted);
	font-size: 16px;
}

.section-title{
	font-size: 18px;
	font-weight: 700;
	margin: 30px 0 16px;
	color: var(--text);
}

.notice{
	background: rgba(239, 68, 68, .12);
	border: 1px solid rgba(239, 68, 68, .35);
	color: #fca5a5;
	border-radius: var(--radius);
	padding: 12px 18px;
	margin-bottom: 20px;
}

.empty{
	text-align: center;
	color: var(--muted);
	padding: 60px 0;
}

/* ---------- chips ---------- */
.chips{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 18px 0 8px;
}
.chip{
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--muted);
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 13.5px;
	transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.chip:hover{
	color: var(--text);
	border-color: var(--accent);
	transform: translateY(-1px);
}
.watch-chips{
	justify-content: flex-start;
	margin: 20px 0 0;
}

/* ---------- video grid ---------- */
.grid{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px;
	margin-top: 24px;
}
.card{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover{
	transform: translateY(-4px);
	border-color: var(--accent);
	box-shadow: 0 12px 32px -12px var(--glow);
}
.thumb{
	aspect-ratio: 16 / 9;
	background: var(--surface-2);
	overflow: hidden;
}
.thumb img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.card:hover .thumb img{ transform: scale(1.05); }
.card-body{ padding: 12px 14px 14px; }
.card-body h3{
	margin: 0 0 6px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}
.card .meta{
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- watch page ---------- */
.watch{
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
	gap: 28px;
	align-items: start;
}
.player{
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8);
}
.player iframe{
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.watch-title{
	margin: 18px 0 6px;
	font-size: clamp(18px, 2.4vw, 24px);
	font-weight: 700;
	line-height: 1.3;
}
.watch-meta{
	color: var(--muted);
	font-size: 14px;
	margin: 0 0 16px;
}
.watch-meta strong{ color: var(--text); font-weight: 600; }

.desc{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 4px 18px;
	font-size: 14px;
}
.desc summary{
	cursor: pointer;
	font-weight: 600;
	padding: 12px 0;
	color: var(--muted);
	list-style: none;
}
.desc summary::before{ content: "▸ "; color: var(--accent); }
.desc[open] summary::before{ content: "▾ "; }
.desc summary:hover{ color: var(--text); }
.desc p{
	margin: 0 0 16px;
	color: var(--text);
	white-space: normal;
	overflow-wrap: anywhere;
}

.related h2{
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
}
.related-list{
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.related-item{
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 12px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color .15s ease, transform .15s ease;
}
.related-item:hover{
	border-color: var(--accent);
	transform: translateX(3px);
}
.related-item .thumb{ aspect-ratio: 16 / 9; }
.related-item .r-body{ padding: 8px 10px 8px 0; min-width: 0; }
.related-item h3{
	margin: 0 0 4px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.related-item .meta{
	margin: 0;
	font-size: 12px;
	color: var(--muted);
}

/* ---------- share bar + translate ---------- */
.share-bar{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 14px 0 2px;
}
.share-btn{
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--muted);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease;
}
.share-btn:hover{ color: var(--text); border-color: var(--accent); }
.translate-select{
	margin-left: auto;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--muted);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
}
.translate-select:focus{ outline: none; border-color: var(--accent); }

/* ---------- ad slots ---------- */
.ad-slot{ margin: 16px auto; text-align: center; }
.ad-placeholder{
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px dashed var(--border);
	border-radius: 12px;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.5;
	background: rgba(255, 255, 255, .02);
}
.ad-home_top, .ad-footer, .ad-video_top, .ad-video_below_title, .ad-video_mid{
	min-height: 100px;
	max-width: 728px;
	width: 100%;
}
.ad-video_sidebar_top, .ad-video_sidebar_bottom{
	min-height: 250px;
	width: 300px;
	max-width: 100%;
	margin: 0 auto 16px;
}
.ad-video_sidebar_bottom{ margin-top: 16px; }
.ad-card{ padding: 0; display: flex; }
.ad-card .ad-slot{
	flex: 1;
	margin: 0;
	border: none;
	min-height: 100%;
}
.ad-card .ad-placeholder{ border: 2px dashed var(--border); border-radius: var(--radius); min-height: 230px; }

/* ---------- AI companion guide ---------- */
.article{
	margin-top: 22px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 8px 26px 22px;
	font-size: 15px;
	line-height: 1.65;
}
.article h2{
	font-size: 19px;
	font-weight: 700;
	margin: 24px 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
}
.article h2::before{
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 10px;
	border-radius: 3px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.article h3{
	font-size: 15.5px;
	font-weight: 650;
	margin: 18px 0 4px;
	color: var(--accent-2);
}
.article p{ margin: 8px 0; color: var(--text); }
.article a{ color: var(--accent-2); border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.article a:hover{ border-bottom-color: var(--accent-2); }
.article ul, .article ol{ margin: 8px 0 8px 4px; padding-left: 22px; }
.article li{ margin: 6px 0; }
.article li::marker{ color: var(--accent); font-weight: 700; }
.article-pending{ padding: 18px 26px; }
.article-loading{
	color: var(--muted);
	margin: 0;
	animation: ai-pulse 1.6s ease-in-out infinite;
}
@keyframes ai-pulse{
	0%, 100%{ opacity: .45; }
	50%{ opacity: 1; }
}

/* ---------- prose (privacy etc.) ---------- */
.prose{
	max-width: 760px;
	margin: 0 auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px 32px;
}
.prose h1{ margin-top: 0; font-size: 26px; }
.prose p{ color: var(--muted); }
.prose a{ color: var(--accent-2); }

/* ---------- footer ---------- */
.site-footer{
	border-top: 1px solid var(--border);
	background: var(--bg-soft);
	margin-top: 40px;
}
.footer-inner{
	max-width: 1280px;
	margin: 0 auto;
	padding: 26px 20px;
	text-align: center;
	color: var(--muted);
	font-size: 13px;
}
.footer-inner nav{
	display: flex;
	gap: 22px;
	justify-content: center;
	margin-bottom: 12px;
}
.footer-inner nav a{
	color: var(--text);
	font-weight: 600;
	font-size: 13.5px;
}
.footer-inner nav a:hover{ color: var(--accent-2); }
.footer-inner p{ margin: 4px 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px){
	.watch{ grid-template-columns: 1fr; }
}
/* collapse the top menu into a hamburger on smaller screens */
@media (max-width: 900px){
	.menu-toggle{ display: block; order: 2; margin-left: auto; }
	.brand{ order: 1; }
	.top-menu{
		display: none;
		order: 3;
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 4px 0 8px;
		border-top: 1px solid var(--border);
	}
	.top-menu.open{ display: flex; }
	.top-menu a{ padding: 11px 12px; }
	.search{ order: 4; margin-left: 0; }
	/* on mobile, submenus render expanded and indented under their parent */
	.menu-item{ position: static; }
	.submenu{
		display: block;
		position: static;
		border: none;
		background: transparent;
		box-shadow: none;
		padding: 0 0 0 18px;
		min-width: 0;
	}
}

@media (max-width: 560px){
	.header-inner{ gap: 12px; }
	.brand{ font-size: 19px; }
	.search{ order: 4; max-width: none; flex-basis: 100%; }
	.grid{ grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
	.related-item{ grid-template-columns: 130px 1fr; }
	.page{ padding: 20px 14px 36px; }
}

/* ---------- call-to-action button under the article (dashboard-controlled) ---------- */
.article-cta{
	margin: 18px 0 4px;
	text-align: center;
}
.article-cta a{
	display: inline-block;
	background: var(--cta-bg, var(--accent));
	color: var(--cta-text, #ffffff);
	font-weight: 700;
	font-size: 15px;
	padding: 12px 34px;
	border-radius: 999px;
	transition: filter .15s ease, transform .15s ease;
}
.article-cta a:hover{
	filter: brightness(1.12);
	transform: translateY(-1px);
}

/* ---------- WordPress news cards on video pages (same style as home grid) ---------- */
.news-feed{ margin-top: 26px; }
.news-feed h2{
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 14px;
}
.news-feed h2::before{
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 10px;
	border-radius: 3px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.news-grid{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}
@media (max-width: 640px){
	.news-grid{ grid-template-columns: 1fr; }
}

/* ---------- live-side search notes + pagination ---------- */
.title-note{ color: var(--muted); font-weight: 500; font-size: 15px; }
.fill-note{
	color: var(--muted);
	font-size: 14px;
	margin: -6px 0 18px;
}
.page-nav{
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	margin: 34px 0 6px;
	font-size: 14.5px;
}
.page-nav a{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 9px;
	padding: 7px 15px;
	color: var(--muted);
	transition: color .15s ease, border-color .15s ease;
}
.page-nav a:hover{ color: var(--text); border-color: var(--accent); }
.page-nav strong{
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	border-radius: 9px;
	padding: 7px 15px;
}
.page-nav .gap{ color: var(--muted); }

/* ---------- stacked sidebar buttons under related videos (dashboard-set) ---------- */
.side-btns{
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 18px;
}
.side-btns a{
	display: block;
	width: 100%;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--muted);
	border-radius: 999px;
	padding: 11px 16px;
	font-size: 14px;
	font-weight: 600;
	transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.side-btns a:hover{
	color: var(--text);
	border-color: var(--accent);
	transform: translateY(-1px);
}

/* ---- author layer (byline, mid-article tip, take, author card) ---- */
.byline{
	margin: 18px 0 -6px;
	font-size: 14px;
	color: var(--muted);
}
.byline a{ color: var(--accent); font-weight: 600; }
.byline a:hover{ text-decoration: underline; }
.byline strong{ color: var(--text); }

.author-tip{
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: 12px;
	padding: 14px 16px;
	margin: 22px 0;
}
.author-tip img{
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.author-tip .tip-label{
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 4px;
}
.author-tip p{ margin: 0; color: var(--text); }

.author-take{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 18px 20px;
	margin-top: 22px;
}
.author-take h2{
	margin: 0 0 10px;
	font-size: 20px;
}
.author-take p{ color: var(--text); margin: 0 0 10px; }
.take-rating{
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0 0 !important;
	padding-top: 12px;
	border-top: 1px solid var(--border);
}
.take-rating .thumbs span{ font-size: 24px; margin-right: 4px; }
.take-rating .rating-label{
	font-size: 14px;
	font-weight: 700;
	color: var(--accent);
}

.author-card{
	display: flex;
	gap: 14px;
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 14px 18px;
	margin-top: 18px;
}
.author-card img{
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.author-card-body strong{ font-size: 15px; color: var(--text); }
.author-card-body strong a{ color: var(--accent); }
.author-card-body strong a:hover{ text-decoration: underline; }
.author-card-body p{
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--muted);
	line-height: 1.5;
}
.author-links{
	display: flex;
	gap: 10px;
	margin-top: 8px;
	flex-wrap: wrap;
}
.author-links a{
	display: inline-block;
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--muted);
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 13px;
	font-weight: 600;
	transition: color .15s ease, border-color .15s ease;
}
.author-links a:hover{ color: var(--text); border-color: var(--accent); }

.citation{
	margin-top: 16px;
	padding: 12px 16px;
	border: 1px dashed var(--border);
	border-radius: 12px;
}
.citation p{
	margin: 0;
	font-size: 13px;
	color: var(--muted);
	line-height: 1.6;
}
.citation a{ color: var(--accent); font-weight: 600; }
.citation a:hover{ text-decoration: underline; }

.trust-box{
	margin-top: 26px;
	padding: 16px 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
}
.trust-box h2{
	margin: 0 0 8px;
	font-size: 16px;
}
.trust-box p{
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--muted);
	line-height: 1.65;
}
.trust-box p strong{ color: var(--text); }
.trust-contact{ margin-top: 10px !important; }
.trust-contact a{
	display: inline-block;
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--muted);
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 600;
	transition: color .15s ease, border-color .15s ease;
}
.trust-contact a:hover{ color: var(--text); border-color: var(--accent); }

.author-page-photo{
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 6px;
}
