/* ==========================================================================
   Cineru cross-site live search  (cineru.lk + sub.lk)
   ========================================================================== */

.cineru-search {
	position: relative !important;
	width: 100% !important;
	max-width: 480px !important;
	box-sizing: border-box !important;
	font-family: inherit !important;
}
.cineru-search *,
.cineru-search *::before,
.cineru-search *::after { box-sizing: border-box !important; }

/* shared text metrics for input + ghost (must stay identical for alignment) */
.cineru-search__input,
.cineru-search__ghost {
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 26px !important;
	letter-spacing: 0 !important;
	font-family: inherit !important;
	padding: 0 4px 0 16px !important;
	text-transform: none !important;
}

/* --- search box (pill) --------------------------------------------------- */
.cineru-search__form {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	background: #21242a !important;
	border: 1px solid rgba(255,255,255,.1) !important;
	border-radius: 34px !important;
	padding: 7px 7px 7px 4px !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	height: auto !important;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.28), 0 2px 10px rgba(0,0,0,.18) !important;
	transition: border-color .2s ease, box-shadow .2s ease !important;
}
.cineru-search__form:focus-within {
	border-color: rgba(244,194,13,.7) !important;
	box-shadow: 0 0 0 3px rgba(244,194,13,.16), inset 0 1px 2px rgba(0,0,0,.28) !important;
}

/* input + ghost share this relative box so the ghost can overlay the input */
.cineru-search__field {
	position: relative !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	display: flex !important;
	align-items: center !important;
	background: transparent !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}
.cineru-search__input {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: 100% !important;
	max-width: none !important;
	height: 44px !important;
	border: 0 !important;
	outline: none !important;
	background: transparent !important;
	color: #eceef1 !important;
	margin: 0 !important;
	box-shadow: none !important;
	position: relative !important;
	z-index: 2 !important;
	border-radius: 0 !important;
}
.cineru-search__input::placeholder { color: #8b9096 !important; opacity: 1 !important; }

/* ghost completion sits under the input, same metrics => perfect alignment */
.cineru-search__ghost {
	position: absolute !important;
	left: 0 !important; top: 0 !important;
	width: 100% !important;
	height: 44px !important;
	display: flex !important;
	align-items: center !important;
	white-space: pre !important;
	overflow: hidden !important;
	pointer-events: none !important;
	color: #6a7079 !important;
	background: transparent !important;
	margin: 0 !important;
	z-index: 1 !important;
}
.cineru-search__ghost b { visibility: hidden !important; font-weight: inherit !important; }

.cineru-search__btn {
	flex: 0 0 auto !important;
	width: 44px !important;
	height: 44px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 0 !important;
	cursor: pointer !important;
	color: #1c1f24 !important;
	background: #f4c20d !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 17px !important;
	line-height: 1 !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 8px rgba(244,194,13,.4) !important;
	transition: background .15s ease, transform .12s ease !important;
	min-width: 0 !important;
	text-shadow: none !important;
}
.cineru-search__btn:hover { background: #ffd02e !important; }
.cineru-search__btn:active { transform: scale(.92) !important; }
.cineru-search__btn i { line-height: 1 !important; color: inherit !important; }

/* --- dropdown ------------------------------------------------------------ */
.cineru-search__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 99999;
	background: #2a2e34;
	border: 1px solid rgba(255,255,255,.07);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(0,0,0,.5);
	overflow: hidden;
	max-height: 72vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	animation: cineru-pop .16s ease-out;
}
@keyframes cineru-pop {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.cineru-search__dropdown::-webkit-scrollbar { width: 8px; }
.cineru-search__dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; }

.cineru-dd__loading,
.cineru-dd__empty {
	padding: 26px 16px;
	text-align: center;
	color: #9aa0a6;
	font-size: 13px;
}
.cineru-dd__loading i { font-size: 20px; color: #f4c20d; }
.cineru-dd__list { padding: 6px; }

/* --- result item (shared by dropdown + full page) ------------------------ */
.cineru-item {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 9px 10px;
	text-decoration: none;
	border-radius: 9px;
	transition: background .15s ease;
}
.cineru-item + .cineru-item { margin-top: 2px; }
.cineru-item:hover { background: rgba(255,255,255,.06); }

.cineru-item__thumb {
	flex: 0 0 auto;
	width: 86px;
	height: 48px;
	border-radius: 5px;
	overflow: hidden;
	background: #1d2025;
	display: block;
	box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.cineru-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cineru-item__thumb.is-empty {
	background: #1d2025 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="%23555" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M21 15l-5-5L5 21"/></svg>') center/24px no-repeat;
}

.cineru-item__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.cineru-item__title {
	color: #e9eaec;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cineru-item:hover .cineru-item__title { color: #ffd02e; }

.cineru-item__meta {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
}
.cineru-item__date {
	color: #868c93;
	font-size: 11px;
	display: inline-flex;
	align-items: center;
}
.cineru-item__date i { margin-right: 4px; font-size: 11px; }
.cineru-item__src {
	font-size: 9.5px;
	font-weight: 700;
	text-transform: lowercase;
	letter-spacing: .03em;
	padding: 2px 8px;
	border-radius: 10px;
	color: #fff;
	line-height: 1.5;
}
.cineru-item__src--cineru { background: linear-gradient(135deg,#e74c3c,#c0392b); }
.cineru-item__src--sub    { background: linear-gradient(135deg,#3aa0e0,#2575b8); }

/* --- View All footer ----------------------------------------------------- */
.cineru-dd__more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 6px;
	padding: 12px 14px;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #1c1f24;
	background: #f4c20d;
	border-radius: 8px;
	text-decoration: none;
	transition: background .15s ease;
}
.cineru-dd__more::after { content: '\f061'; font-family: FontAwesome; font-size: 11px; }
.cineru-dd__more:hover { background: #ffd02e; }

/* ==========================================================================
   Full results page  (/cineru-search/)
   ========================================================================== */
.cineru-page { padding: 0 0 56px; max-width: 100%; overflow-x: hidden; }
.cineru-page, .cineru-page * { box-sizing: border-box; } /* stop padding from overflowing the theme column */
.cineru-page .container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* --- hero header --- */
.cineru-hero {
	position: relative;
	padding: 46px 0 40px;
	margin-bottom: 28px;
	background:
		radial-gradient(1100px 320px at 50% -40%, rgba(244,194,13,.16), transparent 70%),
		linear-gradient(180deg, #1b1e23 0%, #15171b 100%);
	border-bottom: 1px solid rgba(255,255,255,.06);
	overflow: hidden;
}
.cineru-hero__inner { position: relative; text-align: center; }
.cineru-hero__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #f4c20d;
	font-weight: 700;
}
.cineru-hero__eyebrow i { margin-right: 6px; }
.cineru-hero__title {
	margin: 0 0 22px;
	font-size: 30px;
	line-height: 1.25;
	color: #f1f3f5;
	font-weight: 800;
}
.cineru-hero__q { color: #f4c20d; }

.cineru-hero__search {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 560px;
	margin: 0 auto;
	background: #23262c;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 34px;
	padding: 7px 7px 7px 6px;
	box-shadow: 0 8px 26px rgba(0,0,0,.35);
}
.cineru-hero__search:focus-within { border-color: rgba(244,194,13,.7); }
.cineru-hero__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	border: 0 !important;
	outline: none !important;
	background: transparent !important;
	color: #eceef1 !important;
	font-size: 16px !important;
	padding: 0 6px 0 16px !important;
	margin: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}
.cineru-hero__input::placeholder { color: #8b9096 !important; }
.cineru-hero__btn {
	flex: 0 0 auto;
	width: 46px; height: 46px;
	border: 0 !important;
	border-radius: 50% !important;
	background: #f4c20d !important;
	color: #1c1f24 !important;
	font-size: 17px;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	margin: 0 !important; padding: 0 !important;
	transition: background .15s ease;
}
.cineru-hero__btn:hover { background: #ffd02e !important; }

/* --- toolbar (count + tabs) --- */
.cineru-page__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 22px;
}
.cineru-page__count { font-size: 14px; color: #9aa0a6; font-weight: 600; }
.cineru-page__tabs { display: flex; gap: 8px; }
.cineru-tab {
	border: 1px solid rgba(127,127,127,.32);
	background: transparent;
	color: inherit;
	padding: 7px 16px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: all .15s ease;
}
.cineru-tab:hover { border-color: #f4c20d; color: #f4c20d; }
.cineru-tab.is-active { background: #f4c20d; border-color: #f4c20d; color: #1c1f24; }

/* --- landscape card grid (matches site's 2:1 stills) --- */
.cineru-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 18px 14px;
}
.cineru-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	border-radius: 10px;
	overflow: hidden;
	transition: transform .18s ease;
}
.cineru-card:not(.cineru-card--skeleton) { animation: cineru-fade .28s ease both; }
@keyframes cineru-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cineru-card:hover { transform: translateY(-3px); }

.cineru-card__poster {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 2 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: #1d2025;
	box-shadow: 0 6px 16px rgba(0,0,0,.38);
}
.cineru-card__poster img {
	width: 100%; height: 100%;
	object-fit: cover; display: block;
	transition: transform .35s ease, filter .35s ease;
}
.cineru-card:hover .cineru-card__poster img { transform: scale(1.06); filter: brightness(1.05); }
.cineru-card__poster.is-empty {
	background: #1d2025 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="34" height="34" fill="none" stroke="%234a4f57" stroke-width="2"><rect x="3" y="3" width="28" height="28" rx="3"/><circle cx="11" cy="11" r="2.5"/><path d="M31 22l-7-7L6 31"/></svg>') center/40px no-repeat;
}
.cineru-card__poster::after {
	content: '';
	position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
	background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
	opacity: 0; transition: opacity .2s ease;
}
.cineru-card:hover .cineru-card__poster::after { opacity: 1; }

.cineru-card__badge {
	position: absolute;
	top: 8px; left: 8px;
	z-index: 2;
	font-size: 10px;
	font-weight: 700;
	text-transform: lowercase;
	letter-spacing: .02em;
	color: #fff;
	padding: 3px 9px;
	border-radius: 11px;
	box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.cineru-card__badge--cineru { background: linear-gradient(135deg,#e74c3c,#c0392b); }
.cineru-card__badge--sub    { background: linear-gradient(135deg,#3aa0e0,#2575b8); }

.cineru-card__info { padding: 11px 4px 0; }
.cineru-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #e7e9ec;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	transition: color .15s ease;
}
.cineru-card:hover .cineru-card__title { color: #ffd02e; }
.cineru-card__date {
	display: block;
	margin-top: 6px;
	color: #868c93;
	font-size: 11.5px;
}
.cineru-card__date i { margin-right: 4px; }

/* --- skeleton loading --- */
.cineru-card--skeleton { pointer-events: none; }
.sk {
	position: relative;
	overflow: hidden;
	background: rgba(255,255,255,.06);
	border-radius: 8px;
}
.cineru-card--skeleton .cineru-card__poster.sk { aspect-ratio: 2 / 1; box-shadow: none; }
.cineru-card--skeleton .cineru-card__info { padding: 11px 4px 0; }
.sk-line { display: block; height: 12px; margin-top: 8px; }
.sk-line--sm { width: 55%; }
.sk::after {
	content: '';
	position: absolute; inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
	animation: cineru-shimmer 1.2s infinite;
}
@keyframes cineru-shimmer { 100% { transform: translateX(100%); } }

/* --- load more + empty --- */
.cineru-results__foot { text-align: center; margin-top: 36px; }
.cineru-loadmore {
	position: relative;
	border: 0;
	background: #f4c20d;
	color: #1c1f24;
	font-weight: 700;
	padding: 12px 34px;
	border-radius: 26px;
	cursor: pointer;
	font-size: 14px;
	transition: background .15s ease;
}
.cineru-loadmore:hover { background: #ffd02e; }
.cineru-loadmore:disabled { opacity: .7; cursor: default; }
.cineru-loadmore__spin { display: none; margin-left: 8px; }
.cineru-loadmore.is-loading .cineru-loadmore__spin { display: inline-block; }

.cineru-results__empty { text-align: center; color: #868c93; padding: 50px 0; }
.cineru-results__empty i { font-size: 40px; opacity: .5; display: block; margin-bottom: 14px; }
.cineru-results__empty p { margin: 0; font-size: 15px; }

/* --- responsive --- */
@media (max-width: 600px) {
	.cineru-hero { padding: 34px 0 30px; }
	.cineru-hero__title { font-size: 22px; }
	.cineru-results { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px 10px; }
}
@media (max-width: 480px) {
	.cineru-search { max-width: 100%; }
}

/* --- inside Sahifa mobile menu (replaces the theme's .search-mobile form) --- */
.cineru-search-mobile { padding: 10px 12px; }
.cineru-search-mobile .cineru-search { max-width: 100%; }
.cineru-search-mobile .cineru-search__dropdown { max-height: 60vh; }
