/* Sratim LIVE v3 — dark poster-grid theme, RTL default, no plugins. */
:root {
	--canvas: #0a0b10;
	--canvas-2: #101218;
	--surface: #15171f;
	--surface-2: #1c1f2a;
	--gold: #e8b84a;
	--gold-dim: #b8892a;
	--violet: #a78bc9;
	--text: #f3efe6;
	--muted: #9a958c;
	--line: rgba(232, 184, 74, 0.18);
	--line-strong: rgba(167, 139, 201, 0.45);
	--danger: #c45c5c;
	--radius: 12px;
	--shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
	--font: Heebo, Assistant, "IBM Plex Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
	--max: 1240px;
	--narrow: 960px;
	--header-h: 72px;
	--focus: 2px solid var(--gold);
}

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

html {
	direction: rtl;
	scroll-behavior: smooth;
}

html[dir="ltr"] { direction: ltr; }

body {
	margin: 0;
	background:
		radial-gradient(900px 420px at 10% -8%, rgba(167, 139, 201, 0.08), transparent 50%),
		radial-gradient(1100px 480px at 90% -12%, rgba(232, 184, 74, 0.07), transparent 52%),
		linear-gradient(180deg, var(--canvas-2), var(--canvas) 30%);
	background-color: var(--canvas);
	color: var(--text);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.7;
	min-height: 100vh;
}

img,
video { max-width: 100%; height: auto; }
iframe { max-width: 100%; border: 0; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: #f3d27a; text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
.nav-toggle-btn:focus-visible {
	outline: var(--focus);
	outline-offset: 2px;
}

.wrap { width: min(var(--max), calc(100% - 1.6rem)); margin-inline: auto; }
.wrap.narrow,
.site-main.narrow { width: min(var(--narrow), calc(100% - 1.6rem)); }

.skip-link {
	position: absolute;
	inset-block-start: -100px;
	inset-inline-start: 1rem;
	background: var(--gold);
	color: #1a1406;
	padding: 0.5rem 1rem;
	z-index: 1000;
	font-weight: 700;
}
.skip-link:focus { inset-block-start: 0.5rem; }

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	white-space: nowrap;
}

/* Header: brand row + 2011-style category bar */
.site-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 50;
	background: rgba(10, 11, 16, 0.94);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.header-top {
	width: min(var(--max), calc(100% - 1.6rem));
	margin-inline: auto;
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-wrap: wrap;
	padding-block: 0.55rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; margin-inline-end: auto; }
.custom-logo-link img { display: block; max-height: 48px; width: auto; }

.site-title {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: var(--text);
	text-decoration: none;
	font-size: 1.5rem;
	line-height: 1;
}
.site-title:hover { color: var(--text); text-decoration: none; }
.site-title__mark { color: var(--text); }
.site-title__live {
	color: #1a1406;
	background: var(--gold);
	font-size: 0.72em;
	padding: 0.12em 0.42em 0.08em;
	border-radius: 4px;
	letter-spacing: 0.06em;
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.88rem;
	font-weight: 600;
}
.lang-switch a { color: var(--muted); text-decoration: none; padding: 0.15rem 0.2rem; }
.lang-switch a:hover,
.lang-switch a.is-active {
	color: var(--gold);
	text-decoration: none;
}
.lang-switch a.is-active { border-bottom: 2px solid var(--gold); }
.lang-switch__sep { color: var(--muted); opacity: 0.5; }

.header-search { flex: 1 1 12rem; max-width: 22rem; }

.search-form { display: flex; gap: 0.35rem; }
.search-field {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--text);
	border-radius: 999px;
	padding: 0.45rem 0.95rem;
	min-width: 0;
	width: 100%;
	font-family: inherit;
	font-size: 0.95rem;
}
.search-field:focus { outline: var(--focus); border-color: var(--gold); }
.search-submit {
	background: var(--gold);
	color: #1a1406;
	border: 0;
	border-radius: 999px;
	padding: 0.45rem 0.95rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
}
.search-submit:hover { background: #f3d27a; }

.nav-toggle-btn {
	display: inline-flex;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 8px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	background: transparent;
}
.nav-toggle-btn span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--text);
}

.primary-nav {
	display: none;
	width: min(var(--max), calc(100% - 1.6rem));
	margin-inline: auto;
	padding-block: 0 0.85rem;
	border-top: 1px solid transparent;
}
.nav-toggle:checked ~ .primary-nav,
.nav-toggle:checked + .nav-toggle-btn + .primary-nav { display: block; }
/* checkbox is in header-top; nav is a sibling of header-top, not of the checkbox.
   Use :has() which is widely supported in 2026. */
.site-header:has(.nav-toggle:checked) .primary-nav { display: block; }

.primary-nav .menu {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 0.15rem 0;
	list-style: none;
	margin: 0;
	padding: 0;
}
.primary-nav a {
	color: var(--text);
	font-weight: 600;
	padding: 0.45rem 0.2rem;
	text-decoration: none;
	display: block;
	border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-cat > a {
	color: var(--gold);
	border-bottom-color: var(--gold);
	text-decoration: none;
}

.primary-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.2rem 0 0.4rem 0;
	padding-inline-start: 0.8rem;
}
.primary-nav .sub-menu a {
	font-weight: 500;
	color: var(--muted);
	padding-block: 0.3rem;
	font-size: 0.95rem;
}

/* Hero */
.hero {
	padding: 2.4rem 0 2rem;
	background:
		linear-gradient(180deg, rgba(232, 184, 74, 0.06), transparent 70%);
	border-bottom: 1px solid var(--line);
}
.hero-kicker {
	color: var(--gold);
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
}
.hero-title {
	font-size: clamp(1.7rem, 5vw, 3rem);
	line-height: 1.2;
	margin: 0 0 0.85rem;
	font-weight: 800;
	max-width: 18ch;
}
.hero-lead {
	max-width: 54ch;
	color: var(--muted);
	margin: 0 0 1.4rem;
	font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1a1406 !important; }
.btn-gold:hover { background: #f3d27a; }
.btn-ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold) !important; }

/* Sections + poster grid (mobile-first: 2 columns) */
.section { padding: 2.2rem 0; }
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.15rem;
}
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-more { font-weight: 600; white-space: nowrap; }
.section-empty { color: var(--muted); margin: 0; }

.poster-grid,
.trailer-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.85rem;
}

.poster-card,
.trailer-card {
	min-width: 0;
	background: var(--surface);
	border: 1px solid transparent;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.18s ease, border-color 0.18s ease;
}
.poster-card:hover,
.poster-card:focus-within {
	transform: translateY(-3px);
	border-color: var(--line-strong);
}

.poster-card__link {
	display: block;
	position: relative;
	color: inherit;
	text-decoration: none !important;
}

.poster-card__media {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	background:
		repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255,255,255,0.03) 18px, rgba(255,255,255,0.03) 19px),
		linear-gradient(180deg, var(--surface-2), #0d0e14);
	overflow: hidden;
}
.poster-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.poster-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background:
		radial-gradient(circle at 50% 30%, rgba(232, 184, 74, 0.16), transparent 55%),
		var(--surface-2);
}
.poster-card__mark {
	font-size: 3.2rem;
	font-weight: 800;
	color: var(--gold);
	line-height: 1;
}

.poster-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 0.85rem 0.7rem 0.9rem;
	background: linear-gradient(to top, rgba(8, 9, 12, 0.92) 0%, rgba(8, 9, 12, 0.35) 45%, transparent 70%);
	color: var(--text);
	text-align: center;
}
.poster-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 3rem;
	height: 3rem;
	margin: -1.5rem 0 0 -1.5rem;
	border-radius: 50%;
	background: rgba(232, 184, 74, 0.92);
	box-shadow: 0 0 0 6px rgba(232, 184, 74, 0.18);
	opacity: 0.95;
}
.poster-card__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	transform: translate(-40%, -50%);
	border-style: solid;
	border-width: 0.45rem 0 0.45rem 0.75rem;
	border-color: transparent transparent transparent #1a1406;
}
.poster-card__caption { width: 100%; }
.poster-card__title {
	display: block;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.3;
}
.poster-card__year {
	display: block;
	margin-top: 0.15rem;
	color: var(--gold);
	font-size: 0.82rem;
	font-weight: 600;
}

.poster-card__badge {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	left: auto;
	background: rgba(11, 12, 16, 0.88);
	color: var(--gold);
	font-size: 0.68rem;
	font-weight: 700;
	padding: 0.18rem 0.45rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	z-index: 1;
	pointer-events: none;
}
html[dir="ltr"] .poster-card__badge {
	left: 0.5rem;
	right: auto;
}

/* On pointer devices, hide the overlay until hover/focus; keep a thin title bar for context? 
   Title+year+play appear on hover as requested. On touch, the overlay stays visible. */
@media (hover: hover) and (pointer: fine) {
	.poster-card__overlay { opacity: 0; transition: opacity 0.18s ease; }
	.poster-card:hover .poster-card__overlay,
	.poster-card:focus-within .poster-card__overlay { opacity: 1; }
}

.legal-band {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: calc(var(--radius) + 4px);
	padding: 1.4rem 1.5rem;
	margin-bottom: 2.4rem;
}
.legal-band h2 { margin: 0; font-size: 1.25rem; }
.legal-band p { margin: 0; color: var(--muted); }

/* Entry / title page */
.page-header { padding: 2rem 0 1.1rem; }
.page-title { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; }
.kicker { color: var(--gold); font-weight: 700; margin: 0 0 0.3rem; }
.archive-description { color: var(--muted); }
.archive-description p:first-child { margin-top: 0; }

.single-entry { padding: 2rem 0 1.6rem; }
.entry-title { margin: 0.15rem 0 0.4rem; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.25; }
.entry-subtitle { color: var(--muted); margin: 0 0 1.2rem; font-size: 1.05rem; }
.entry-year { color: var(--gold); font-weight: 700; margin-inline-start: 0.5rem; }
.entry-meta { color: var(--muted); margin: 0 0 1.4rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3 { line-height: 1.3; }
.entry-content .wp-block-embed,
.entry-content iframe {
	width: 100%;
	border-radius: var(--radius);
	overflow: hidden;
	background: #000;
}
.entry-content .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.entry-content .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
}

.trailer-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 0 0 1.5rem;
	border-radius: var(--radius);
	overflow: hidden;
	background: #000;
	box-shadow: var(--shadow);
}
.trailer-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
}
.trailer-pending,
.legal-note { font-size: 0.95rem; color: var(--muted); }

.synopses { display: grid; gap: 1rem; margin: 0 0 1.5rem; }
.synopsis {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1rem 1.15rem;
}
.synopsis h2 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.6rem;
}
.synopsis__lang { color: var(--gold); font-size: 0.78rem; font-weight: 700; }
.synopsis p { margin: 0; }

/* Language content blocks (optional class on imported content) */
html[lang="en"] .lang-he:not(.lang-keep),
html[dir="ltr"] .lang-he:not(.lang-keep) { display: none; }
html[lang="he"] .lang-en:not(.lang-keep),
html[dir="rtl"] .lang-en:not(.lang-keep) { display: none; }

.facts-box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1rem 1.15rem 1.1rem;
	margin: 0 0 1.5rem;
}
.facts-box h2 { margin: 0 0 0.7rem; font-size: 1.05rem; }
.facts-box dl {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.55rem 1.25rem;
	margin: 0;
}
.facts-box dl > div { display: grid; grid-template-columns: 9rem 1fr; gap: 0.5rem; }
.facts-box dt { margin: 0; color: var(--muted); font-weight: 600; }
.facts-box dd { margin: 0; }

.title-cats { color: var(--muted); }
.title-cats__label { font-weight: 700; color: var(--text); margin-inline-end: 0.35rem; }
.card-cats { font-size: 0.85rem; color: var(--muted); }
.card-cats a { color: var(--muted); }
.album-links { color: var(--muted); }
.empty-state { padding: 1rem 0 3rem; color: var(--muted); }
.back-link { margin-top: 1.5rem; }

.post-nav { border-top: 1px solid var(--line); padding: 1.2rem 0 2rem; }
.post-nav .nav-links { display: flex; justify-content: space-between; gap: 1rem; }
.post-nav span { display: block; color: var(--muted); font-size: 0.85rem; }

/* Comments */
.comments-area {
	border-top: 1px solid var(--line);
	padding: 2rem 0 3rem;
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-form label { display: block; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--text);
	border-radius: 10px;
	padding: 0.55rem 0.8rem;
	font-family: inherit;
}
.comment-form .submit {
	background: var(--gold);
	color: #1a1406;
	border: 0;
	border-radius: 999px;
	padding: 0.65rem 1.2rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}

/* Pagination */
.pagination,
.navigation.pagination .nav-links {
	display: flex;
	gap: 0.4rem;
	justify-content: center;
	padding: 2rem 0;
	flex-wrap: wrap;
}
.page-numbers {
	display: inline-flex;
	min-width: 2.2rem;
	height: 2.2rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--text);
	padding: 0 0.5rem;
	text-decoration: none;
}
.page-numbers.current,
.page-numbers:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* Footer */
.site-footer {
	border-top: 1px solid var(--line);
	padding: 2.2rem 0 1.8rem;
	background: #07080c;
}
.footer-inner {
	width: min(var(--max), calc(100% - 1.6rem));
	margin-inline: auto;
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	margin-bottom: 1.3rem;
}
.footer-tagline { color: var(--muted); margin: 0.4rem 0 0; max-width: 40ch; }
.footer-nav .menu { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--text); }
.footer-legal {
	width: min(var(--max), calc(100% - 1.6rem));
	margin: 0 auto;
	color: var(--muted);
	font-size: 0.88rem;
}

.entry-content .wp-block-quote {
	border-inline-start: 3px solid var(--gold);
	margin-inline: 0;
	padding-inline-start: 1rem;
	color: var(--muted);
}

/* Breakpoints */
@media (min-width: 600px) {
	.poster-grid,
	.trailer-grid { grid-template-columns: repeat(3, 1fr); }
	.facts-box dl { grid-template-columns: 1fr 1fr; }
	.hero { padding: 3.2rem 0 2.6rem; }
	.section { padding: 2.6rem 0; }
}

@media (min-width: 900px) {
	.nav-toggle-btn { display: none; }
	.primary-nav { display: block; padding-block: 0 0.7rem; }
	.primary-nav .menu {
		flex-direction: row;
		align-items: center;
		gap: 0.15rem 1.15rem;
	}
	.primary-nav a { padding: 0.35rem 0; }
	.primary-nav .menu-item-has-children { position: relative; }
	.primary-nav .sub-menu {
		display: none;
		position: absolute;
		inset-inline-start: 0;
		inset-block-start: 100%;
		min-width: 14rem;
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: 10px;
		padding: 0.5rem 0.7rem;
		box-shadow: var(--shadow);
		z-index: 60;
	}
	.primary-nav .menu-item-has-children:hover > .sub-menu,
	.primary-nav .menu-item-has-children:focus-within > .sub-menu {
		display: block;
	}
	.poster-grid,
	.trailer-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
	.synopses { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1200px) {
	.poster-grid,
	.trailer-grid { grid-template-columns: repeat(6, 1fr); }
	.wrap { width: min(var(--max), calc(100% - 2.4rem)); }
	.header-top,
	.primary-nav,
	.footer-inner,
	.footer-legal { width: min(var(--max), calc(100% - 2.4rem)); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn,
	.poster-card,
	.poster-card__overlay { transition: none; }
	.poster-card:hover { transform: none; }
}
