:root {
	--ewpl-accent: #e11d48;
	--ewpl-ink: #172033;
	--ewpl-muted: #667085;
	--ewpl-soft: #f6f7fb;
	--ewpl-border: #e5e7eb;
}

body {
	background: #f3f5f8;
	color: var(--ewpl-ink);
}

.ewpl-story-shell {
	max-width: 850px;
	margin: 28px auto 48px;
	padding: 0 16px;
}

.post-container.ewpl-story-post {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 14px 45px rgba(16, 24, 40, .08);
	overflow: visible;
}

.ewpl-story-inner { padding: clamp(20px, 5vw, 48px); }
.ewpl-story-post .entry-header { margin-bottom: 22px; }
.ewpl-story-post .entry-category {
	display: inline-flex;
	margin-bottom: 12px;
	color: var(--ewpl-accent);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ewpl-story-title {
	margin: 0;
	font-size: clamp(2rem, 6vw, 3.25rem);
	font-weight: 850;
	letter-spacing: -.035em;
	line-height: 1.04;
}
.ewpl-story-meta {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 14px;
	color: var(--ewpl-muted);
	font-size: .9rem;
}

/* The compact view is deliberately desktop-like and always 16:9. */
.ewpl-story-video { margin: 0 0 28px; }
.ewpl-video-preview {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #090b10;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}
.ewpl-video-preview video,
.ewpl-video-preview iframe {
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
	background: #090b10;
	pointer-events: none;
}
.ewpl-open-video {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .42));
	color: #fff;
	font-size: .8rem;
}
.ewpl-open-video span {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	padding-left: 5px;
	border-radius: 50%;
	background: var(--ewpl-accent);
	color: #fff;
	font-size: 25px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.ewpl-open-video strong {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	color: #111827;
}

.ewpl-video-dialog[hidden] { display: none; }
.ewpl-video-dialog {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(3, 7, 18, .94);
	backdrop-filter: blur(8px);
}
.ewpl-phone-player {
	width: min(100%, 430px);
	height: min(88vh, 765px);
	aspect-ratio: 9 / 16;
	background: #000;
	border: 5px solid #23262d;
	border-radius: 27px;
	overflow: hidden;
	box-shadow: 0 25px 80px rgba(0, 0, 0, .55);
}
.ewpl-phone-player video,
.ewpl-phone-player iframe {
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
	background: #000;
}
.ewpl-phone-player video { display: block; }
.ewpl-phone-player video::-webkit-media-controls { visibility: visible; }
.ewpl-close-video {
	position: fixed;
	top: 14px;
	right: 16px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 30px;
	line-height: 1;
}
body.ewpl-modal-open { overflow: hidden; }

.ewpl-story-post .entry-content {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(1.08rem, 2.3vw, 1.22rem);
	line-height: 1.8;
	color: #222936;
}
.ewpl-story-featured {
	width: min(100%, 680px);
	aspect-ratio: 16 / 9;
	margin: 0 auto 30px;
	border-radius: 15px;
	overflow: hidden;
	background: #0a0f1e;
	box-shadow: 0 12px 28px rgba(16, 24, 40, .14);
}
.ewpl-story-featured img { width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; object-position: center 28%; }
.ewpl-story-post .entry-content p { margin: 0 0 1.35em; }
.ewpl-story-post .entry-content h2 {
	margin: 1.75em 0 .7em;
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 800;
	line-height: 1.16;
}
.ewpl-story-post .entry-content h3 {
	margin: 1.5em 0 .6em;
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 1.3rem;
	font-weight: 800;
}
.ewpl-story-post .entry-content img {
	width: 100%;
	height: auto;
	margin: 1.5rem auto;
	border-radius: 13px;
}
.ewpl-story-post .entry-content blockquote {
	margin: 1.5rem 0;
	padding: 16px 20px;
	border-left: 5px solid var(--ewpl-accent);
	background: var(--ewpl-soft);
	font-style: italic;
}
.ewpl-story-post .entry-content video,
.ewpl-story-post .entry-content iframe { max-width: 100%; }

.ewpl-inline-story-card {
	display: grid;
	grid-template-columns: 118px 1fr;
	gap: 18px;
	align-items: center;
	margin: 34px 0 38px;
	padding: 17px 18px;
	border: 1px solid var(--ewpl-border);
	border-left: 7px solid var(--ewpl-accent);
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(16, 24, 40, .09);
	font-family: ui-sans-serif, system-ui, sans-serif;
	text-decoration: none;
}
.ewpl-inline-story-card img {
	width: 118px !important;
	height: 98px !important;
	margin: 0 !important;
	border-radius: 9px !important;
	object-fit: cover;
}
.ewpl-related-copy { display: flex; flex-direction: column; gap: 3px; }
.ewpl-related-copy small { color: var(--ewpl-accent); font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.ewpl-related-copy strong { color: var(--ewpl-ink); font-size: 1.05rem; line-height: 1.23; }
.ewpl-related-copy em { color: var(--ewpl-muted); font-size: .82rem; font-style: normal; font-weight: 750; }

.ewpl-related-section { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--ewpl-border); }
.ewpl-related-section > h2 { margin: 0 0 18px; font-size: 1.65rem; font-weight: 850; }
.ewpl-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ewpl-related-card {
	display: block;
	border: 1px solid var(--ewpl-border);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	transition: transform .18s ease, box-shadow .18s ease;
}
.ewpl-related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16, 24, 40, .12); }
.ewpl-related-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ewpl-related-card .ewpl-related-copy { padding: 14px; }

.ewpl-video-admin-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }

@media (max-width: 640px) {
	.ewpl-story-shell { margin-top: 12px; padding: 0 8px; }
	.post-container.ewpl-story-post { border-radius: 12px; }
	.ewpl-story-inner { padding: 20px 16px 28px; }
	.ewpl-story-title { font-size: 2rem; }
	.ewpl-open-video strong { display: none; }
	.ewpl-open-video span { width: 58px; height: 58px; }
	.ewpl-related-grid { grid-template-columns: 1fr; }
	.ewpl-inline-story-card { grid-template-columns: 96px 1fr; gap: 13px; padding: 13px 12px; margin-left: 0; margin-right: 0; }
	.ewpl-inline-story-card img { width: 96px !important; height: 88px !important; }
	.ewpl-related-copy strong { font-size: .96rem; }
	.ewpl-video-admin-row { grid-template-columns: 1fr; }
}

/* Header inspired by the requested cinema-style reference, using a neutral red accent. */
.ewpl-site-header {
	position: relative;
	z-index: 100;
	background: #0b1224;
	color: #fff;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.ewpl-header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	width: min(100% - 36px, 1320px);
	min-height: 74px;
	margin: 0 auto;
}
.ewpl-brand { flex: 0 0 auto; }
.ewpl-brand .custom-logo-link > img { width: auto; max-width: 190px; max-height: 46px; }
.ewpl-site-name { color: #fff; font-size: 1.55rem; font-weight: 900; letter-spacing: -.03em; }
.ewpl-main-nav { margin-right: auto; }
.ewpl-main-nav ul { display: flex; gap: 24px; align-items: center; }
.ewpl-main-nav a { color: rgba(255,255,255,.78); font-size: .94rem; font-weight: 650; }
.ewpl-main-nav a:hover { color: #fff; }
.ewpl-header-search {
	display: flex;
	align-items: center;
	width: min(270px, 25vw);
	padding: 0 4px 0 15px;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 999px;
	background: rgba(255,255,255,.08);
}
.ewpl-header-search input { min-width: 0; width: 100%; padding: 10px 0; outline: 0; background: transparent; color: #fff; }
.ewpl-header-search input::placeholder { color: rgba(255,255,255,.52); }
.ewpl-header-search button { width: 38px; height: 38px; color: #fff; font-size: 1.45rem; }
.ewpl-menu-check, .ewpl-menu-button { display: none; }
.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; }

/* Cinema-style home. */
.home, .blog, .archive { background: #070d1d; color: #fff; }
.ewpl-cinema-home { min-height: 100vh; background: #070d1d; }
.ewpl-home-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(470px, 63vw, 720px);
	background-color: #111827;
	background-position: center 25%;
	background-size: cover;
}
.ewpl-home-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(4,9,22,.96) 0%, rgba(4,9,22,.72) 42%, rgba(4,9,22,.18) 72%), linear-gradient(0deg, #070d1d 0%, transparent 55%);
}
.ewpl-home-hero-content {
	position: relative;
	z-index: 1;
	width: min(100% - 40px, 1320px);
	margin: 0 auto;
	padding: 72px 0 95px;
}
.ewpl-hero-badge, .ewpl-home-card-category {
	display: inline-flex;
	padding: 5px 9px;
	border-radius: 5px;
	background: #e11d48;
	color: #fff;
	font-size: .68rem;
	font-weight: 850;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.ewpl-home-hero h1 { max-width: 760px; margin: 14px 0; color: #fff; font-size: clamp(2.35rem, 5.5vw, 5rem); line-height: .98; font-weight: 900; letter-spacing: -.045em; text-shadow: 0 5px 24px rgba(0,0,0,.35); }
.ewpl-home-hero p { max-width: 760px; margin: 0 0 25px; color: rgba(255,255,255,.75); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.55; }
.ewpl-hero-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border-radius: 999px;
	background: #e11d48;
	color: #fff;
	font-weight: 800;
	box-shadow: 0 12px 30px rgba(225,29,72,.3);
}
.ewpl-home-content, .ewpl-archive-shell { width: min(100% - 36px, 1320px); margin: 0 auto; padding: 24px 0 70px; }
.ewpl-section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.ewpl-section-heading small, .ewpl-archive-heading small { color: #e11d48; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ewpl-section-heading h2, .ewpl-archive-heading h1 { margin: 3px 0 0; color: #fff; font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 900; letter-spacing: -.025em; }
.ewpl-home-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 25px 18px; }
.ewpl-home-card { min-width: 0; overflow: hidden; border-radius: 10px; background: #111a2e; box-shadow: 0 8px 25px rgba(0,0,0,.18); transition: transform .2s ease, box-shadow .2s ease; }
.ewpl-home-card:hover { transform: translateY(-5px); box-shadow: 0 16px 35px rgba(0,0,0,.32); }
.ewpl-home-card-media { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #151e31; }
.ewpl-home-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ewpl-home-card:hover .ewpl-home-card-image { transform: scale(1.035); }
.ewpl-home-card-category { position: absolute; left: 10px; bottom: 10px; }
.ewpl-home-card-body { padding: 14px 13px 15px; }
.ewpl-home-card h2 { min-height: 2.6em; margin: 0; overflow: hidden; color: #fff; font-size: .98rem; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ewpl-home-card-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 11px; color: #8f9bb3; font-size: .72rem; }
.ewpl-home-card-meta span { color: #f43f5e; font-weight: 800; }
.ewpl-pagination { margin-top: 38px; }
.ewpl-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ewpl-pagination .page-numbers { padding: 9px 13px; border-radius: 7px; background: #121b30; color: #cbd5e1; }
.ewpl-pagination .current, .ewpl-pagination a:hover { background: #e11d48; color: #fff; }
.ewpl-archive-shell { padding-top: 50px; min-height: 80vh; }
.ewpl-archive-heading { margin-bottom: 28px; }
.ewpl-archive-heading > div { margin-top: 8px; color: #98a3b9; }
.post-nav__link, .btn-earnify { background: #e11d48 !important; }

@media (max-width: 1050px) {
	.ewpl-home-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 780px) {
	.ewpl-header-inner { min-height: 64px; gap: 14px; }
	.ewpl-header-search { width: 46px; margin-left: auto; padding-left: 5px; background: transparent; border: 0; }
	.ewpl-header-search input { position: absolute; left: 14px; right: 14px; top: 68px; z-index: 10; display: none; width: calc(100% - 28px); padding: 13px 15px; border-radius: 8px; background: #151e31; }
	.ewpl-menu-button { display: flex; flex-direction: column; gap: 5px; order: 5; width: 42px; padding: 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; }
	.ewpl-menu-button span { display: block; height: 2px; background: #fff; }
	.ewpl-main-nav { position: absolute; top: 64px; left: 0; right: 0; display: none; padding: 14px 20px; background: #0b1224; box-shadow: 0 15px 30px rgba(0,0,0,.3); }
	.ewpl-main-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
	.ewpl-menu-check:checked ~ .ewpl-main-nav { display: block; }
	.ewpl-home-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px 12px; }
}
@media (max-width: 560px) {
	.ewpl-home-hero { min-height: 510px; background-position: center top; }
	.ewpl-home-hero-overlay { background: linear-gradient(0deg, #070d1d 2%, rgba(4,9,22,.82) 45%, rgba(4,9,22,.2) 100%); }
	.ewpl-home-hero-content { padding: 220px 0 52px; }
	.ewpl-home-hero h1 { font-size: 2.25rem; }
	.ewpl-home-hero p { font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.ewpl-home-content { padding-top: 8px; }
	.ewpl-home-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px 10px; }
	.ewpl-home-card-body { padding: 11px 10px 12px; }
	.ewpl-home-card h2 { font-size: .86rem; }
	.ewpl-home-card-meta time { display: none; }
	.ewpl-home-card-meta { justify-content: flex-end; }
	.ewpl-brand .custom-logo-link > img { max-width: 150px; }
	.ewpl-site-name { font-size: 1.25rem; }
}
