/* Editorial templates only. No site-wide header, footer or body overrides. */
.betflix-articles-shell,
.betflix-original-article,
.betflix-legacy-posts-page,
.bfg-review-archive {
	--bfg-article-text: #f5f0fa;
	--bfg-article-muted: #cec5d6;
	--bfg-article-gold: #e7c866;
	--bfg-article-line: rgba(218, 185, 94, .3);
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

:where(.betflix-articles-shell, .betflix-original-article, .betflix-legacy-posts-page, .bfg-review-archive) *,
:where(.betflix-articles-shell, .betflix-original-article, .betflix-legacy-posts-page, .bfg-review-archive) *::before,
:where(.betflix-articles-shell, .betflix-original-article, .betflix-legacy-posts-page, .bfg-review-archive) *::after {
	box-sizing: border-box;
}

.betflix-articles-shell {
	clear: both;
	padding: 32px clamp(12px, 3vw, 32px) 48px;
	background: #100d16;
	color: var(--bfg-article-text);
	line-height: 1.75;
}

.betflix-articles-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
	gap: 28px;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	align-items: start;
}

.betflix-articles-main,
.betflix-article-sidebar,
.betflix-post-card__body,
.betflix-blog-hub-hero__copy,
.betflix-blog-hub-content,
.betflix-article-reading-body,
.betflix-entry-content {
	min-width: 0;
	max-width: 100%;
}

.betflix-archive-header { margin: 0 0 24px; }
.betflix-archive-header h1,
.betflix-single-header h1,
.betflix-clean-title,
.betflix-blog-hub-hero h1 {
	margin: 0 0 16px;
	font-size: clamp(26px, 3.5vw, 40px);
	line-height: 1.35;
	color: var(--bfg-article-text);
}

.betflix-archive-intro,
.betflix-single-meta { color: var(--bfg-article-muted); }
.betflix-post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.betflix-post-card,
.betflix-sidebox,
.betflix-single-article,
.betflix-empty {
	min-width: 0;
	max-width: 100%;
	border: 1px solid var(--bfg-article-line);
	border-radius: 16px;
	background: #1c1525;
	color: var(--bfg-article-text);
}

.betflix-post-card { overflow: hidden; }
.betflix-post-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	background: #271b34;
	overflow: hidden;
}

.betflix-post-card__media img,
.betflix-post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
}

.betflix-post-card__placeholder {
	background: linear-gradient(135deg, #33223f, #17101e);
}

.betflix-post-card__body { padding: 20px; }
.betflix-post-card h2 {
	margin: 8px 0 12px;
	font-size: clamp(20px, 1.7vw, 24px);
	line-height: 1.45;
}

.betflix-post-card h2 a,
.betflix-sidebox a,
.betflix-post-card__cats a,
.betflix-single-cats a,
.betflix-single-tags a {
	color: var(--bfg-article-text);
	text-decoration: none;
}

.betflix-post-card h2 a:hover,
.betflix-sidebox a:hover,
.betflix-post-card__cats a:hover,
.betflix-single-cats a:hover,
.betflix-single-tags a:hover {
	color: var(--bfg-article-gold);
	text-decoration: underline;
	text-underline-offset: .2em;
}

.betflix-post-card__excerpt,
.betflix-post-card__cats,
.betflix-single-cats,
.betflix-single-meta {
	font-size: 15px;
	color: var(--bfg-article-muted);
}

.betflix-readmore {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 10px;
	color: var(--bfg-article-gold);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: .2em;
}

.betflix-article-sidebar { display: grid; gap: 18px; }
.betflix-sidebox { padding: 20px; }
.betflix-sidebox h2 { margin: 0 0 14px; color: var(--bfg-article-text); font-size: 20px; line-height: 1.4; }
.betflix-sidebox ul { margin: 0; padding-inline-start: 20px; }
.betflix-sidebox li { margin: 0 0 10px; }
.betflix-sidebox li:last-child { margin-bottom: 0; }
.betflix-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.betflix-tag-cloud a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	max-width: 100%;
	padding: 6px 10px;
	border: 1px solid var(--bfg-article-line);
	border-radius: 8px;
	font-size: 14px;
}

.betflix-articles-shell .betflix-search-form {
	display: flex;
	align-items: stretch;
	gap: 8px;
	max-width: 100%;
}

.betflix-articles-shell .betflix-search-form label { flex: 1 1 100px; min-width: 0; margin: 0; }
.betflix-articles-shell .betflix-search-form input[type="search"],
.betflix-articles-shell .post-password-form input[type="password"] {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid #9983a6;
	border-radius: 8px;
	background: #100c17;
	color: #fff;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}

.betflix-articles-shell .betflix-search-form input::placeholder { color: #c2b8cc; opacity: 1; }
.betflix-articles-shell .betflix-search-form button,
.betflix-articles-shell .post-password-form input[type="submit"] {
	flex: 0 0 auto;
	min-height: 44px;
	max-width: 100%;
	padding: 9px 12px;
	border: 1px solid #e7c866;
	border-radius: 8px;
	background: #e7c866;
	color: #201708;
	font: inherit;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
}

.betflix-articles-shell .post-password-form label { display: block; max-width: 100%; margin-bottom: 12px; }
.betflix-single-article { padding: clamp(18px, 3vw, 32px); }
.betflix-single-header { margin: 0 0 22px; }
.betflix-single-cover { margin: 0 0 24px; }
.betflix-single-cover img { display: block; width: 100%; height: auto; border-radius: 10px; }
.betflix-single-tags { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--bfg-article-line); }

.betflix-original-article {
	clear: both;
	width: min(980px, calc(100% - 32px));
	margin: 28px auto 40px;
	padding: clamp(18px, 3vw, 36px);
	border: 1px solid var(--bfg-article-line);
	border-radius: 16px;
	background: #1c1525;
	color: var(--bfg-article-text);
	line-height: 1.85;
}

.betflix-legacy-posts-page {
	clear: both;
	width: min(1200px, 100%);
	margin: 28px auto 40px;
	padding: clamp(12px, 3vw, 28px);
	background: #100d16;
	color: var(--bfg-article-text);
	line-height: 1.8;
}

.betflix-blog-hub-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	margin-bottom: 28px;
	padding: clamp(18px, 3vw, 32px);
	border: 1px solid var(--bfg-article-line);
	border-radius: 16px;
	background: #1c1525;
}

.betflix-blog-hub-hero__copy { flex: 1 1 320px; }
.betflix-blog-hub-hero__eyebrow { display: block; margin-bottom: 10px; color: var(--bfg-article-gold); font-size: 13px; letter-spacing: .06em; }
.betflix-blog-hub-hero__cover { flex: 0 1 300px; min-width: 0; max-width: 100%; }
.betflix-blog-hub-hero__cover img { display: block; width: 100%; height: auto; border-radius: 10px; }

:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-blog-hub-content) {
	font-size: 17px;
	line-height: 1.85;
}

:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-blog-hub-content) :where(h2, h3, h4, h5, h6) {
	margin: 1.4em 0 .6em;
	line-height: 1.45;
	color: inherit;
	scroll-margin-top: 6rem;
}

:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-blog-hub-content) :where(p, ul, ol, blockquote) { margin-block: 0 1.1em; }
:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-blog-hub-content) :where(ul, ol) { padding-inline-start: 1.5em; }
:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-blog-hub-content) blockquote { margin-inline: 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--bfg-article-gold); }
:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-blog-hub-content) a { color: #efd17d; text-decoration: underline; text-underline-offset: .2em; }

:where(.betflix-articles-shell, .betflix-original-article, .betflix-legacy-posts-page) :where(img, video, canvas, svg, iframe, embed, object) { max-width: 100%; }
:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-legacy-posts-page) :where(img, video) { height: auto; }
:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-legacy-posts-page) :where(figure, .wp-caption, .wp-block-column, .elementor-container, .elementor-widget-wrap, .elementor-widget-container) { min-width: 0; max-width: 100%; }
:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-legacy-posts-page) figure { margin-inline: 0; }

/* Keep wide table/code content inside its own scroll area, never the viewport. */
:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-legacy-posts-page) :where(table, pre) {
	display: block;
	max-width: 100%;
	overflow: auto;
	overscroll-behavior-inline: contain;
}

:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-legacy-posts-page) table { border-collapse: collapse; }
:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-legacy-posts-page) :where(th, td) { padding: 10px 12px; border: 1px solid var(--bfg-article-line); vertical-align: top; }
:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-legacy-posts-page) .wp-block-table { max-width: 100%; overflow-x: auto; }
:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-legacy-posts-page) pre { padding: 16px; border-radius: 8px; background: #0e0b13; color: #f4eff8; white-space: pre; overflow-wrap: normal; }

.betflix-pagination,
.betflix-page-links { margin-top: 28px; }
.betflix-pagination .nav-links,
.betflix-page-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.betflix-pagination .page-numbers,
.betflix-page-links .post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--bfg-article-line);
	border-radius: 8px;
	background: #1c1525;
	color: var(--bfg-article-text);
	line-height: 1.4;
	text-decoration: none;
}

.betflix-pagination .current,
.betflix-page-links .current { background: #e7c866; color: #201708; }
.betflix-empty { padding: 28px 20px; }
.betflix-empty h2 { margin-top: 0; color: var(--bfg-article-text); }
.bfg-review-shell,
.bfg-review-card,
.bfg-review-heading { min-width: 0; max-width: 100%; }
.bfg-review-title { overflow-wrap: anywhere; }

:where(.betflix-articles-shell, .betflix-original-article, .betflix-legacy-posts-page, .bfg-review-archive) :where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid #f7db8d;
	outline-offset: 3px;
}

:where(.betflix-articles-shell, .betflix-original-article, .betflix-legacy-posts-page, .bfg-review-archive) .screen-reader-text:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 900px) {
	.betflix-articles-wrap { grid-template-columns: minmax(0, 1fr); }
	.betflix-article-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.betflix-articles-shell { padding-block: 24px 36px; }
	.betflix-post-grid,
	.betflix-article-sidebar { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.betflix-articles-wrap { gap: 24px; }
	.betflix-post-card__body,
	.betflix-sidebox { padding: 16px; }
	.betflix-original-article { width: calc(100% - 24px); margin-block: 20px 32px; padding: 18px 14px; }
	.betflix-single-article { padding: 18px 14px; }
	.betflix-blog-hub-hero { gap: 18px; }
	.betflix-blog-hub-hero__cover { flex-basis: 100%; }
	:where(.betflix-entry-content, .betflix-article-reading-body, .betflix-blog-hub-content) { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	:where(.betflix-articles-shell, .betflix-original-article, .betflix-legacy-posts-page, .bfg-review-archive) *,
	:where(.betflix-articles-shell, .betflix-original-article, .betflix-legacy-posts-page, .bfg-review-archive) *::before,
	:where(.betflix-articles-shell, .betflix-original-article, .betflix-legacy-posts-page, .bfg-review-archive) *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
