/**
 * Reels — isolated full-screen vertical video experience.
 * Loaded only by template-reels.php.
 */
	:root {
		--ec18-reel-black: #050607;
		--ec18-reel-panel: #111318;
		--ec18-reel-panel-2: #191c22;
		--ec18-reel-line: rgba(255,255,255,.18);
		--ec18-reel-text: #fff;
		--ec18-reel-muted: rgba(255,255,255,.74);
		--ec18-reel-accent: var(--ec18-accent, #ffd82f);
		--ec18-reel-danger: var(--ec18-danger, #ef4444);
	}

	html:has(body.ec18-reels-screen),
	body.ec18-reels-screen {
		width: 100%;
		height: 100%;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		background: var(--ec18-reel-black) !important;
		overscroll-behavior: none;
	}

	body.ec18-reels-screen #wpadminbar { display: none !important; }
	html:has(body.ec18-reels-screen) { margin-top: 0 !important; }
	body.ec18-reels-screen::before,
	body.ec18-reels-screen::after { display: none !important; }

	.ec18-reels-app {
		position: fixed;
		inset: 0;
		z-index: 100000;
		width: 100vw;
		height: 100dvh;
		background: var(--ec18-reel-black);
		color: var(--ec18-reel-text);
		font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		isolation: isolate;
	}

	.ec18-reels-feed {
		position: absolute;
		inset: 0;
		height: 100dvh;
		overflow-x: hidden;
		overflow-y: auto;
		scroll-snap-type: y mandatory;
		scroll-behavior: smooth;
		overscroll-behavior-y: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.ec18-reels-feed::-webkit-scrollbar { display: none; }

	.ec18-reel {
		position: relative;
		display: grid;
		place-items: center;
		width: 100%;
		height: 100dvh;
		min-height: 100dvh;
		scroll-snap-align: start;
		scroll-snap-stop: always;
		background: var(--ec18-reel-black);
		overflow: hidden;
	}

	.ec18-reel__stage {
		position: relative;
		width: min(100vw, 560px);
		height: 100dvh;
		max-height: 100dvh;
		background: #000;
		overflow: hidden;
		box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 16px 60px rgba(0,0,0,.42);
	}

	.ec18-reel__poster,
	.ec18-reel__media {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		background: #000;
	}
	.ec18-reel__poster { z-index: 1; transition: opacity .18s ease; }
	.ec18-reel__poster img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: var(--ec18-reel-object-fit, contain);
		background: #000;
	}
	.ec18-reel.is-media-ready .ec18-reel__poster { opacity: 0; pointer-events: none; }

	.ec18-reel__media { z-index: 2; display:block; overflow:hidden; }
	.ec18-reel__media video,
	.ec18-reel__media iframe {
		display: block;
		width: 100%;
		height: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		background: #000;
	}
	.ec18-reel__media video { position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;object-fit:var(--ec18-reel-object-fit,contain)!important;object-position:center center!important; }
	.ec18-reel__media iframe { object-fit: fill; }

	.ec18-reel__bottom-gradient {
		position: absolute;
		z-index: 4;
		inset: auto 0 0;
		height: min(46vh, 390px);
		pointer-events: none;
		background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.18) 18%, rgba(0,0,0,.78) 74%, rgba(0,0,0,.93) 100%);
	}

	.ec18-reels-topbar {
		position: fixed;
		z-index: 40;
		top: max(12px, env(safe-area-inset-top));
		left: max(12px, env(safe-area-inset-left));
		right: max(12px, env(safe-area-inset-right));
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		pointer-events: none;
	}
	.ec18-reels-brand,
	.ec18-reels-topbar__actions { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
	.ec18-reels-brand {
		min-height: 40px;
		padding: 6px 10px;
		border: 1px solid rgba(255,255,255,.18);
		border-radius: 10px;
		background: rgba(7,8,10,.82);
		box-shadow: 0 3px 10px rgba(0,0,0,.22);
		font-size: 12px;
		font-weight: 800;
		letter-spacing: .06em;
		text-transform: uppercase;
	}
	.ec18-reels-brand { color: #fff; text-decoration: none; }
	.ec18-reels-brand:visited { color: #fff; }
	@media (hover:hover) { .ec18-reels-brand:hover { border-color: rgba(255,255,255,.34); color: #fff; background: rgba(14,16,20,.92); } }
	.ec18-reels-brand { max-width:min(48vw,220px); overflow:hidden; }
	.ec18-reels-brand img { display:block; width:auto; max-width:min(148px,42vw); max-height:30px; object-fit:contain; object-position:left center; }
	.ec18-reels-brand--text span { display:block; min-width:0; overflow:hidden; color:inherit; font-size:13px; font-weight:850; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }

	.ec18-reels-topbutton,
	.ec18-reels-nav button {
		display: inline-grid;
		place-items: center;
		width: 46px;
		height: 46px;
		margin: 0;
		padding: 0;
		border: 1px solid rgba(255,255,255,.24);
		border-radius: 11px;
		background: rgba(7,8,10,.88);
		box-shadow: 0 4px 12px rgba(0,0,0,.24);
		color: #fff;
		font-size: 18px;
		line-height: 1;
		text-decoration: none;
		cursor: pointer;
		transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
	}
	@media (hover:hover) {
		.ec18-reels-topbutton:hover,
		.ec18-reels-nav button:hover {
			border-color: var(--ec18-reel-accent);
			background: #17191e;
			color: var(--ec18-reel-accent);
			transform: translateY(-1px);
		}
	}
	.ec18-reels-topbutton:focus-visible,
	.ec18-reels-nav button:focus-visible,
	.ec18-reel-action:focus-visible,
	.ec18-reel__detail:focus-visible { outline: 3px solid var(--ec18-reel-accent); outline-offset: 2px; }


	/* v2.19.11 — Quick Reel Rail: five lightweight thumbnails mirrored against the right action rail. */
	.ec18-reels-quick {
		position: fixed;
		z-index: 41;
		top: 50%;
		left: max(12px, env(safe-area-inset-left));
		transform: translateY(-50%);
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		pointer-events: auto;
	}
	.ec18-reels-quick__toggle {
		display: inline-grid;
		place-items: center;
		width: 42px;
		height: 38px;
		margin: 0;
		padding: 0;
		border: 1px solid rgba(255,255,255,.24);
		border-radius: 10px;
		background: rgba(7,8,10,.9);
		box-shadow: 0 4px 12px rgba(0,0,0,.24);
		color: #fff;
		font-size: 21px;
		cursor: pointer;
		transition: transform .16s ease, border-color .16s ease, background .16s ease;
	}
	.ec18-reels-quick__list {
		display: flex;
		flex-direction: column;
		gap: 7px;
		max-height: min(390px, 55dvh);
		opacity: 1;
		transform: translateX(0);
		transition: opacity .18s ease, transform .18s ease;
	}
	.ec18-reels-quick__item {
		display: block;
		width: 68px;
		height: 50px;
		margin: 0;
		padding: 0;
		overflow: hidden;
		border: 2px solid rgba(255,255,255,.24);
		border-radius: 10px;
		background: #111318;
		box-shadow: 0 4px 12px rgba(0,0,0,.28);
		color: #fff;
		cursor: pointer;
		transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
	}
	.ec18-reels-quick__thumb { position: relative; display: block; width: 100%; height: 100%; background: #08090b; }
	.ec18-reels-quick__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
	.ec18-reels-quick__thumb > i {
		position: absolute;
		top: 50%; left: 50%;
		display: grid; place-items: center;
		width: 23px; height: 23px;
		transform: translate(-50%,-50%);
		border: 1px solid rgba(255,255,255,.8);
		border-radius: 50%;
		background: rgba(5,6,7,.72);
		font-size: 9px;
		text-indent: 1px;
		opacity: .9;
	}
	.ec18-reels-quick__item.is-active {
		border-color: var(--ec18-reel-progress-color, var(--ec18-reel-accent));
		box-shadow: 0 0 0 1px var(--ec18-reel-progress-color, var(--ec18-reel-accent)), 0 5px 14px rgba(0,0,0,.34);
	}
	.ec18-reels-quick__item.is-active .ec18-reels-quick__thumb > i { background: var(--ec18-reel-progress-color, var(--ec18-reel-accent)); color: #fff; }
	.ec18-reels-quick.is-collapsed .ec18-reels-quick__list { max-height:0; overflow:hidden; visibility:hidden; opacity:0; transform:translateX(calc(-100% - 18px)); pointer-events:none; }
	@media (hover:hover) {
		.ec18-reels-quick__toggle:hover { border-color: var(--ec18-reel-accent); background: #17191e; transform: translateX(1px); }
		.ec18-reels-quick__item:hover { border-color: rgba(255,255,255,.65); transform: translateX(2px); }
	}
	.ec18-reels-quick__toggle:focus-visible, .ec18-reels-quick__item:focus-visible { outline: 3px solid var(--ec18-reel-accent); outline-offset: 2px; }

	.ec18-reels-nav {
		position: fixed;
		z-index: 42;
		top: 50%;
		right: max(12px, env(safe-area-inset-right));
		transform: translateY(-50%);
		display: flex;
		flex-direction: column;
		gap: 8px;
		pointer-events: auto;
	}
	.ec18-reels-nav button { width: 50px; height: 50px; font-size: 20px; }
	.ec18-reels-nav button:disabled { opacity: .32; cursor: default; transform: none; color: #fff; border-color: rgba(255,255,255,.14); }

	.ec18-reel__actions {
		position: absolute;
		z-index: 12;
		right: max(12px, env(safe-area-inset-right));
		top: calc(50% + 78px);
		bottom: auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 9px;
	}
	.ec18-reel-action {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-width: 50px;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: #fff;
		text-decoration: none;
		cursor: pointer;
	}
	.ec18-reel-action__icon {
		display: grid;
		place-items: center;
		width: 48px;
		height: 48px;
		border: 1px solid rgba(255,255,255,.22);
		border-radius: 14px;
		background: rgba(7,8,10,.78);
		box-shadow: 0 4px 12px rgba(0,0,0,.24);
		font-size: 20px;
		transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
	}
	.ec18-reel-action__count { min-height: 15px; color: #fff; font-size: 11px; line-height: 1.2; font-weight: 800; text-shadow: 0 1px 4px #000; }
	@media (hover:hover) {
		.ec18-reel-action:hover .ec18-reel-action__icon { transform: translateY(-2px); border-color: var(--ec18-reel-accent); background: #15171c; }
	}
	.ec18-reel-action--like.is-active .ec18-reel-action__icon,
	.ec18-reel-action--bookmark.is-active .ec18-reel-action__icon { border-color: var(--ec18-reel-accent); color: var(--ec18-reel-accent); }
	.ec18-reel-action--dislike.is-active .ec18-reel-action__icon { border-color: var(--ec18-reel-danger); color: var(--ec18-reel-danger); }
	.ec18-reel-action--like.is-feedback .ec18-reel-action__icon { animation: ec18-reel-like-feedback .38s ease-out; }
	.ec18-reel-action--dislike.is-feedback .ec18-reel-action__icon { animation: ec18-reel-dislike-feedback .38s ease-out; }
	@keyframes ec18-reel-like-feedback {
		0% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,.24), 0 0 0 0 rgba(34,197,94,.62); }
		45% { transform: scale(1.08); box-shadow: 0 4px 12px rgba(0,0,0,.24), 0 0 0 8px rgba(34,197,94,.2); }
		100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,.24), 0 0 0 13px rgba(34,197,94,0); }
	}
	@keyframes ec18-reel-dislike-feedback {
		0% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,.24), 0 0 0 0 rgba(239,68,68,.64); }
		45% { transform: scale(1.08); box-shadow: 0 4px 12px rgba(0,0,0,.24), 0 0 0 8px rgba(239,68,68,.22); }
		100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,.24), 0 0 0 13px rgba(239,68,68,0); }
	}


	.ec18-reel__meta {
		position: absolute;
		z-index: 10;
		left: max(16px, env(safe-area-inset-left));
		right: 84px;
		bottom: calc(max(52px, env(safe-area-inset-bottom) + 38px));
		max-width: 430px;
		text-shadow: 0 2px 7px rgba(0,0,0,.82);
	}
	.ec18-reel__title { margin: 0 0 5px; color: #fff; font-size: clamp(18px, 4vw, 24px); line-height: 1.2; font-weight: 850; letter-spacing: -.02em; }
	.ec18-reel__title a { color: inherit; text-decoration: none; }
	.ec18-reel__submeta { margin-bottom: 7px; color: var(--ec18-reel-muted); font-size: 12px; font-weight: 650; }
	.ec18-reel__description { display: -webkit-box; margin: 0 0 7px; overflow: hidden; color: rgba(255,255,255,.9); font-size: 13px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.ec18-reel__taxonomy { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 8px; }
	.ec18-reel__taxonomy a { color: #fff; font-size: 12px; font-weight: 750; text-decoration: none; }
	@media (hover:hover) { .ec18-reel__taxonomy a:hover { color: var(--ec18-reel-accent); } }
	.ec18-reel__detail { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: rgba(0,0,0,.52); color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }

	.ec18-reel__progress {
		position: absolute;
		z-index: 15;
		left: 0;
		right: 0;
		bottom: max(0px, env(safe-area-inset-bottom));
		height: 26px;
		padding: 0 10px;
		pointer-events: auto;
	}
	.ec18-reel__progress[hidden] { display: none !important; }
	.ec18-reel__progress input[type="range"] {
		--reel-played: 0%;
		position: absolute;
		left: 10px;
		right: 10px;
		bottom: 3px;
		width: calc(100% - 20px);
		height: 18px;
		margin: 0;
		padding: 0;
		appearance: none;
		-webkit-appearance: none;
		border: 0;
		outline: 0;
		background: linear-gradient(to right, var(--ec18-reel-progress-color, var(--ec18-reel-accent)) 0 var(--reel-played), rgba(255,255,255,.35) var(--reel-played) 100%) center / 100% 3px no-repeat;
		cursor: pointer;
	}
	.ec18-reel__progress input[type="range"]::-webkit-slider-thumb { width: 10px; height: 10px; appearance: none; -webkit-appearance: none; border: 2px solid #fff; border-radius: 50%; background: var(--ec18-reel-knob-color, var(--ec18-reel-accent)); box-shadow: 0 1px 4px rgba(0,0,0,.55); }
	.ec18-reel__progress input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--ec18-reel-knob-color, var(--ec18-reel-accent)); box-shadow: 0 1px 4px rgba(0,0,0,.55); }
	.ec18-reel__time { position: absolute; right: 12px; bottom: 18px; display: none; padding: 2px 5px; border-radius: 4px; background: rgba(0,0,0,.78); color: #fff; font-size: 10px; font-variant-numeric: tabular-nums; }
	.ec18-reel__progress.is-seeking .ec18-reel__time { display: inline-block; }
	@media (hover:hover) { .ec18-reel__progress:hover .ec18-reel__time { display: inline-block; } }

	.ec18-reel__center-play {
		position: absolute;
		z-index: 13;
		top: 50%;
		left: 50%;
		width: 66px;
		height: 66px;
		transform: translate(-50%,-50%);
		border: 2px solid rgba(255,255,255,.78);
		border-radius: 50%;
		background: rgba(0,0,0,.74);
		color: #fff;
		font-size: 24px;
		cursor: pointer;
	}
	.ec18-reel__center-play[hidden] { display: none !important; }

	.ec18-reel__loading {
		position: absolute;
		z-index: 14;
		top: 50%; left: 50%;
		width: 34px; height: 34px;
		transform: translate(-50%,-50%);
	}
	.ec18-reel__loading[hidden] { display: none !important; }
	.ec18-reel__loading > span:first-child { display: block; width: 100%; height: 100%; border: 3px solid rgba(255,255,255,.24); border-top-color: #fff; border-radius: 50%; animation: ec18-reel-spin .7s linear infinite; }
	@keyframes ec18-reel-spin { to { transform: rotate(360deg); } }

	.ec18-reel__error {
		position: absolute;
		z-index: 16;
		top: 50%; left: 50%;
		width: min(82%, 340px);
		transform: translate(-50%,-50%);
		padding: 16px;
		border: 1px solid rgba(255,255,255,.2);
		border-radius: 12px;
		background: #111318;
		box-shadow: 0 8px 26px rgba(0,0,0,.4);
		text-align: center;
	}
	.ec18-reel__error[hidden] { display: none !important; }
	.ec18-reel__error strong { display: block; margin-bottom: 12px; font-size: 15px; }
	.ec18-reel__error div { display: flex; justify-content: center; gap: 8px; }
	.ec18-reel__error button { min-height: 38px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: #1d2026; color: #fff; font-weight: 750; cursor: pointer; }

	.ec18-reels-app.is-iframe [data-reels-sound] { visibility: hidden; pointer-events: none; }

	.ec18-reel-comments { position: fixed; z-index: 80; inset: 0; pointer-events: none; visibility: hidden; }
	.ec18-reel-comments.is-open { pointer-events: auto; visibility: visible; }
	.ec18-reel-comments__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.58); opacity: 0; transition: opacity .18s ease; cursor: default; }
	.ec18-reel-comments.is-open .ec18-reel-comments__backdrop { opacity: 1; }
	.ec18-reel-comments__panel {
		position: absolute;
		top: 0; right: 0; bottom: 0;
		width: min(430px, 100vw);
		padding: max(10px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom));
		background: #f7f7f8;
		color: #15171b;
		box-shadow: -12px 0 36px rgba(0,0,0,.3);
		transform: translateX(102%);
		transition: transform .2s ease;
		display: flex;
		flex-direction: column;
	}
	.ec18-reel-comments.is-open .ec18-reel-comments__panel { transform: translateX(0); }
	.ec18-reel-comments__panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 8px 14px; border-bottom: 1px solid #dddfe3; }
	.ec18-reel-comments__panel > header > div { display: flex; align-items: baseline; gap: 7px; }
	.ec18-reel-comments__panel > header strong { font-size: 17px; }
	.ec18-reel-comments__panel > header span { color: #6c7078; font-size: 12px; font-weight: 700; }
	.ec18-reel-comments__panel > header button { width: 36px; height: 36px; border: 1px solid #d5d7db; border-radius: 9px; background: #fff; color: #16181c; cursor: pointer; }
	.ec18-reel-comments__content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px; }
	.ec18-reel-comments__loading,
	.ec18-reel-comments__empty,
	.ec18-reel-comments__closed { padding: 24px 10px; color: #686c74; text-align: center; }
	.ec18-reel-comment { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid #e0e2e5; }
	.ec18-reel-comment__avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
	.ec18-reel-comment__body { min-width: 0; }
	.ec18-reel-comment__body header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
	.ec18-reel-comment__body header strong { overflow: hidden; color: #15171b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
	.ec18-reel-comment__body header time { flex: none; color: #7a7e86; font-size: 10px; }
	.ec18-reel-comment__body p { margin: 0; color: #34373d; font-size: 13px; line-height: 1.45; }
	.ec18-reel-comment-form { position: sticky; bottom: 0; margin-top: 12px; padding-top: 12px; border-top: 1px solid #dddfe3; background: #f7f7f8; }
	.ec18-reel-comment-form__identity { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
	.ec18-reel-comment-form label span { display: block; margin-bottom: 3px; color: #545860; font-size: 11px; font-weight: 750; }
	.ec18-reel-comment-form input,
	.ec18-reel-comment-form textarea { width: 100%; border: 1px solid #cfd2d7; border-radius: 8px; background: #fff; color: #17191d; font: inherit; }
	.ec18-reel-comment-form input { height: 38px; padding: 7px 9px; }
	.ec18-reel-comment-form textarea { min-height: 76px; padding: 9px; resize: vertical; }
	.ec18-reel-comment-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
	.ec18-reel-comment-form__footer span { color: #6b6f77; font-size: 11px; }
	.ec18-reel-comment-form__footer button { min-height: 38px; padding: 7px 13px; border: 1px solid #111318; border-radius: 8px; background: #111318; color: #fff; font-weight: 800; cursor: pointer; }

	.ec18-reels-toast {
		position: fixed;
		z-index: 100;
		left: 50%;
		bottom: calc(max(36px, env(safe-area-inset-bottom) + 22px));
		max-width: min(88vw, 420px);
		transform: translate(-50%, 12px);
		padding: 9px 12px;
		border: 1px solid rgba(255,255,255,.18);
		border-radius: 8px;
		background: #15171c;
		color: #fff;
		box-shadow: 0 6px 20px rgba(0,0,0,.35);
		font-size: 12px;
		font-weight: 700;
		opacity: 0;
		pointer-events: none;
		transition: opacity .16s ease, transform .16s ease;
	}
	.ec18-reels-toast.is-visible { opacity: 1; transform: translate(-50%,0); }

	.ec18-reels-empty {
		position: absolute;
		z-index: 20;
		top: 50%; left: 50%;
		width: min(88vw, 460px);
		transform: translate(-50%,-50%);
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
		padding: 24px;
		border: 1px solid rgba(255,255,255,.18);
		border-radius: 14px;
		background: #111318;
		color: #fff;
		text-align: center;
	}
	.ec18-reels-empty span { color: rgba(255,255,255,.7); font-size: 13px; }
	.ec18-reels-empty a { padding: 8px 12px; border-radius: 8px; background: var(--ec18-reel-accent); color: #111; font-weight: 850; text-decoration: none; }
	.ec18-reels-sentinel { width: 1px; height: 1px; }

	@media (max-width: 560px) {
		.ec18-reels-quick { left: max(8px, env(safe-area-inset-left)); gap: 6px; }
		.ec18-reels-quick__toggle { width: 38px; height: 35px; border-radius: 9px; font-size: 19px; }
		.ec18-reels-quick__list { gap: 6px; }
		.ec18-reels-quick__item { width: 58px; height: 43px; border-radius: 9px; }
		.ec18-reels-quick__thumb > i { width: 20px; height: 20px; font-size: 8px; }
	}
	@media (max-height: 650px) {
		.ec18-reels-quick { top: 47%; }
		.ec18-reels-quick__item { width: 54px; height: 40px; }
		.ec18-reels-quick__list { gap: 5px; }
	}

	@media (max-width: 700px) {
		.ec18-reel__stage { width: 100vw; box-shadow: none; }
	
		.ec18-reels-nav { top: 42%; right: max(8px, env(safe-area-inset-right)); }
		.ec18-reel__actions { top: calc(42% + 70px); }
		.ec18-reels-nav button { width: 44px; height: 44px; border-radius: 11px; font-size: 18px; }
		.ec18-reel__actions { right: max(8px, env(safe-area-inset-right)); gap: 7px; }
		.ec18-reel-action { min-width: 46px; }
		.ec18-reel-action__icon { width: 44px; height: 44px; border-radius: 13px; font-size: 18px; }
		.ec18-reel-action__count { font-size: 10px; }
		.ec18-reel__meta { left: max(12px, env(safe-area-inset-left)); right: 68px; }
		.ec18-reel__description { font-size: 12px; }
		.ec18-reels-brand { min-height:42px; max-width:min(55vw,190px); padding:6px 9px; }
		.ec18-reels-brand img { max-width:min(122px,44vw); max-height:27px; }
		.ec18-reels-brand--text span { display:block; max-width:100%; font-size:12px; }
		.ec18-reels-topbutton { width: 42px; height: 42px; }
		.ec18-reel-comments__panel {
			top: auto;
			left: 0;
			right: 0;
			bottom: 0;
			width: 100%;
			height: auto;
			max-height: min(78dvh, 680px);
			padding-top: 0;
			border-radius: 16px 16px 0 0;
			box-shadow: 0 -12px 36px rgba(0,0,0,.32);
			transform: translateY(102%);
		}
		.ec18-reel-comments.is-open .ec18-reel-comments__panel { transform: translateY(0); }
	}

	@media (max-height: 700px) {
	
		.ec18-reels-nav { top: 38%; }
		.ec18-reel__actions { top: calc(38% + 70px); bottom: auto; gap: 5px; }
		.ec18-reel-action__icon { width: 41px; height: 41px; font-size: 17px; }
		.ec18-reel__meta { bottom: calc(max(45px, env(safe-area-inset-bottom) + 32px)); }
		.ec18-reel__description { -webkit-line-clamp: 1; }
		.ec18-reel__taxonomy { display: none; }
	}

	@media (max-width: 390px), (max-height: 650px) {
		.ec18-reel-action--dislike { display: none; }
		.ec18-reel__description { display: none; }
		.ec18-reel__title { font-size: 17px; }
	}

	@media (prefers-reduced-motion: reduce) {
		.ec18-reels-feed { scroll-behavior: auto; }
		.ec18-reel__poster,
		.ec18-reels-topbutton,
		.ec18-reels-nav button,
		.ec18-reel-action__icon,
		.ec18-reel-comments__backdrop,
		.ec18-reel-comments__panel,
		.ec18-reels-toast { transition: none !important; }
		.ec18-reel-action.is-feedback .ec18-reel-action__icon { animation: none !important; }
		.ec18-reels-quick__list, .ec18-reels-quick__item, .ec18-reels-quick__toggle { transition: none !important; }
		.ec18-reel__loading > span:first-child { animation-duration: 1.2s; }
	}

/* v2.19.8 — Reel navigation mode + draggable iframe player ---------------- */
.ec18-reels-mode{
	position:fixed;z-index:44;top:max(12px,env(safe-area-inset-top));left:50%;display:inline-flex;align-items:center;gap:4px;
	min-height:42px;padding:4px;border:1px solid rgba(255,255,255,.2);border-radius:11px;background:#111318;
	box-shadow:0 5px 16px rgba(0,0,0,.28);transform:translateX(-50%);pointer-events:auto
}
.ec18-reels-mode button{
	display:inline-flex;min-width:92px;height:34px;align-items:center;justify-content:center;gap:7px;margin:0;padding:0 10px;
	border:1px solid transparent;border-radius:7px;background:transparent;color:rgba(255,255,255,.72);
	font:800 10px/1 Inter,sans-serif;letter-spacing:.01em;white-space:nowrap;cursor:pointer;
	transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease
}
.ec18-reels-mode button i{font-size:14px}
.ec18-reels-mode button.is-active,.ec18-reels-mode button[aria-pressed="true"]{
	border-color:color-mix(in srgb,var(--ec18-reel-accent) 70%,#fff);background:var(--ec18-reel-accent);color:#111318
}
@media(hover:hover){.ec18-reels-mode button:not(.is-active):hover{border-color:rgba(255,255,255,.24);background:#20242b;color:#fff;transform:translateY(-1px)}}
.ec18-reels-mode button:focus-visible{outline:3px solid var(--ec18-reel-accent);outline-offset:2px}

.ec18-reel-iframe-frame{
	--reel-iframe-x:0px;--reel-iframe-y:0px;position:relative;width:calc(100% - 10px);height:calc(100% - 10px);
	border:1px solid rgba(255,255,255,.24);border-radius:12px;background:#000;box-shadow:0 12px 34px rgba(0,0,0,.42);
	overflow:hidden;transform:translate3d(var(--reel-iframe-x),var(--reel-iframe-y),0);will-change:transform
}
.ec18-reel-iframe-frame.is-dragging{border-color:var(--ec18-reel-accent);box-shadow:0 14px 38px rgba(0,0,0,.48)}
.ec18-reel-iframe-frame__viewport{position:absolute;z-index:1;inset:0;background:#000}
.ec18-reel-iframe-frame__viewport iframe{display:block;width:100%!important;height:100%!important;border:0!important;background:#000}
.ec18-reel-iframe-frame__handle{
	position:absolute;z-index:5;top:max(62px,calc(env(safe-area-inset-top) + 52px));left:50%;display:flex;min-height:34px;align-items:center;gap:7px;
	max-width:calc(100% - 96px);padding:4px 5px 4px 8px;border:1px solid rgba(255,255,255,.24);border-radius:9px;
	background:rgba(11,13,17,.92);color:#fff;box-shadow:0 5px 16px rgba(0,0,0,.32);transform:translateX(-50%);
	font:800 10px/1 Inter,sans-serif;cursor:grab;user-select:none;touch-action:none
}
.ec18-reel-iframe-frame.is-dragging .ec18-reel-iframe-frame__handle{cursor:grabbing;border-color:var(--ec18-reel-accent)}
.ec18-reel-iframe-frame__grip{display:grid;width:24px;height:24px;flex:0 0 24px;place-items:center;border-radius:6px;background:#242832;color:var(--ec18-reel-accent);font-size:11px}
.ec18-reel-iframe-frame__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ec18-reel-iframe-frame__handle button{
	display:grid;width:25px;height:25px;flex:0 0 25px;place-items:center;margin:0 0 0 2px;padding:0;border:1px solid rgba(255,255,255,.2);
	border-radius:6px;background:#242832;color:#fff;font-size:11px;cursor:pointer
}
.ec18-reel-iframe-frame__handle button:hover,.ec18-reel-iframe-frame__handle button:focus-visible{border-color:var(--ec18-reel-accent);color:var(--ec18-reel-accent);outline:0}

@media(max-width:700px){
	.ec18-reels-mode{top:max(9px,env(safe-area-inset-top));min-height:40px;padding:3px}
	.ec18-reels-mode button{min-width:42px;width:42px;height:32px;padding:0;font-size:0}
	.ec18-reels-mode button i{font-size:15px}
	.ec18-reels-mode button span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
	.ec18-reel-iframe-frame{width:calc(100% - 6px);height:calc(100% - 6px);border-radius:9px}
	.ec18-reel-iframe-frame__handle{top:max(58px,calc(env(safe-area-inset-top) + 48px));max-width:calc(100% - 76px);min-height:32px;padding:3px 4px 3px 6px}
	.ec18-reel-iframe-frame__label{display:none}
}
@media(max-width:390px),(max-height:650px){
	.ec18-reel-iframe-frame__handle{top:max(52px,calc(env(safe-area-inset-top) + 42px))}
}
@media(prefers-reduced-motion:reduce){.ec18-reels-mode button{transition:none!important;transform:none!important}}


/* v2.19.10 — Dedicated Reel center advertisement -------------------------- */

/* v2.20.33 — adaptive quick rail and HLS/MP4 geometry parity. */
.ec18-reels-quick[data-quick-count="8"] .ec18-reels-quick__item,.ec18-reels-quick[data-quick-count="9"] .ec18-reels-quick__item,.ec18-reels-quick[data-quick-count="10"] .ec18-reels-quick__item{width:58px;height:43px;border-radius:8px}
.ec18-reels-quick[data-quick-count="6"] .ec18-reels-quick__list,.ec18-reels-quick[data-quick-count="7"] .ec18-reels-quick__list,.ec18-reels-quick[data-quick-count="8"] .ec18-reels-quick__list,.ec18-reels-quick[data-quick-count="9"] .ec18-reels-quick__list,.ec18-reels-quick[data-quick-count="10"] .ec18-reels-quick__list{gap:5px;max-height:min(440px,62dvh);overflow-y:auto;scrollbar-width:none}
.ec18-reels-quick__list::-webkit-scrollbar{display:none}
.ec18-reel__media.is-direct-media-surface,.ec18-reel__media .ec18-reel-video--normalized{box-sizing:border-box!important}
@media(max-width:767px){.ec18-reels-quick[data-quick-count="8"] .ec18-reels-quick__item,.ec18-reels-quick[data-quick-count="9"] .ec18-reels-quick__item,.ec18-reels-quick[data-quick-count="10"] .ec18-reels-quick__item{width:52px;height:39px}.ec18-reel__media video{width:100%!important;height:100%!important;object-fit:var(--ec18-reel-object-fit,contain)!important}}
@media(orientation:landscape) and (max-height:520px){.ec18-reels-quick__list{max-height:58dvh!important}.ec18-reels-quick__item{width:52px!important;height:38px!important}}

.ec18-reel-ad{
  position:fixed;z-index:38;inset:0;display:grid;place-items:center;padding:max(70px,calc(env(safe-area-inset-top) + 58px)) max(76px,calc(env(safe-area-inset-right) + 66px)) max(72px,calc(env(safe-area-inset-bottom) + 58px)) max(18px,env(safe-area-inset-left));
  visibility:hidden;opacity:0;pointer-events:none
}
.ec18-reel-ad.is-visible{visibility:visible;opacity:1}
.ec18-reel-ad__card{
  width:max-content;max-width:min(336px,calc(100vw - 112px));max-height:calc(100dvh - 150px);overflow:visible;
  border:1px solid rgba(255,255,255,.24);border-radius:12px;background:#111318;box-shadow:0 16px 40px rgba(0,0,0,.48);color:#fff;pointer-events:auto;transform-origin:center center
}
.ec18-reel-ad__bar{display:flex;min-height:34px;align-items:center;justify-content:space-between;gap:10px;padding:4px 5px 4px 10px;border-bottom:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.64);font:850 9px/1 Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.ec18-reel-ad__close{display:inline-flex;min-width:68px;height:27px;align-items:center;justify-content:center;gap:5px;margin:0;padding:0 9px;border:1px solid rgba(255,255,255,.2);border-radius:7px;background:#252a33;color:#fff;font:800 10px/1 Inter,sans-serif;cursor:pointer;transition:background .14s ease,border-color .14s ease,transform .14s ease}
.ec18-reel-ad__close:hover,.ec18-reel-ad__close:focus-visible{border-color:var(--ec18-reel-accent);background:#313845;color:#fff;transform:translateY(-1px);outline:0}
.ec18-reel-ad__close:focus-visible{outline:3px solid var(--ec18-reel-accent);outline-offset:2px}
.ec18-reel-ad__content{display:grid;max-width:100%;max-height:calc(100dvh - 190px);place-items:center;overflow:auto;background:#08090b;border-radius:0 0 11px 11px}
.ec18-reel-ad__content>*{max-width:100%!important}
.ec18-reel-ad__content img{display:block;width:auto;max-width:100%!important;height:auto!important}
.ec18-reel-ad__content iframe{display:block;max-width:100%!important;border:0}
.ec18-reel-ad.effect-none .ec18-reel-ad__card{animation:none}
.ec18-reel-ad.effect-fade .ec18-reel-ad__card{animation:ec18-reel-ad-fade .22s ease both}
.ec18-reel-ad.effect-slide-up .ec18-reel-ad__card{animation:ec18-reel-ad-slide-up .28s cubic-bezier(.2,.72,.22,1) both}
.ec18-reel-ad.effect-slide-down .ec18-reel-ad__card{animation:ec18-reel-ad-slide-down .28s cubic-bezier(.2,.72,.22,1) both}
.ec18-reel-ad.effect-bomber .ec18-reel-ad__card{animation:ec18-reel-ad-bomber .32s cubic-bezier(.18,.85,.28,1.18) both}
.ec18-reel-ad.effect-flash .ec18-reel-ad__card{animation:ec18-reel-ad-flash .36s ease both}
@keyframes ec18-reel-ad-fade{from{opacity:0}to{opacity:1}}
@keyframes ec18-reel-ad-slide-up{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}
@keyframes ec18-reel-ad-slide-down{from{opacity:0;transform:translateY(-28px)}to{opacity:1;transform:translateY(0)}}
@keyframes ec18-reel-ad-bomber{0%{opacity:0;transform:scale(.82)}65%{opacity:1;transform:scale(1.045)}100%{opacity:1;transform:scale(1)}}
@keyframes ec18-reel-ad-flash{0%{opacity:0}38%{opacity:1;filter:brightness(1.22)}62%{opacity:.72;filter:brightness(1)}100%{opacity:1;filter:none}}
@media(max-width:520px){
  .ec18-reel-ad{padding-right:max(72px,calc(env(safe-area-inset-right) + 62px));padding-left:max(10px,env(safe-area-inset-left))}
  .ec18-reel-ad__card{max-width:min(300px,calc(100vw - 94px));border-radius:10px}
  .ec18-reel-ad__content{border-radius:0 0 9px 9px}
  .ec18-reel-ad__close{min-width:40px;width:40px;padding:0;font-size:0}
  .ec18-reel-ad__close i{font-size:12px}
}
@media(max-width:360px){.ec18-reel-ad__card{max-width:calc(100vw - 86px)}}
@media(prefers-reduced-motion:reduce){
  .ec18-reel-ad.effect-slide-up .ec18-reel-ad__card,.ec18-reel-ad.effect-slide-down .ec18-reel-ad__card,.ec18-reel-ad.effect-bomber .ec18-reel-ad__card,.ec18-reel-ad.effect-flash .ec18-reel-ad__card{animation:ec18-reel-ad-fade .16s linear both}
  .ec18-reel-ad__close{transition:none!important;transform:none!important}
}

/* v2.19.14 — Reel comments share the same semantic discussion language as Single Video. */
.ec18-reel-comments__panel{background:var(--ec18-surface-1)!important;color:var(--ec18-text-1)!important;box-shadow:-14px 0 38px color-mix(in srgb,#000 32%,transparent)!important}
.ec18-reel-comments__panel>header{border-bottom:1px solid var(--ec18-border-soft)!important;background:var(--ec18-surface-1)}
.ec18-reel-comments__panel>header strong{color:var(--ec18-text-1);font:850 18px/1.2 Quicksand,Inter,sans-serif}.ec18-reel-comments__panel>header span{color:var(--ec18-text-muted)!important}
.ec18-reel-comments__panel>header button{border-color:var(--ec18-border-soft)!important;background:var(--ec18-surface-2)!important;color:var(--ec18-text-1)!important;transition:background .14s ease,border-color .14s ease,color .14s ease}
@media(hover:hover){.ec18-reel-comments__panel>header button:hover{border-color:var(--ec18-accent);background:var(--ec18-accent-soft)!important;color:var(--ec18-accent-on-surface)!important}}
.ec18-reel-comments__content{padding:14px 15px;background:var(--ec18-surface-1)}
.ec18-reel-comments__loading,.ec18-reel-comments__empty,.ec18-reel-comments__closed{color:var(--ec18-text-muted)!important}.ec18-reel-comments__closed a{color:var(--ec18-accent-on-surface);font-weight:800}
.ec18-reel-comments__toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid var(--ec18-border-soft)}
.ec18-reel-comments__toolbar>strong{color:var(--ec18-text-1);font-size:13px;font-weight:850}.ec18-reel-comments__sort{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--ec18-border-soft);border-radius:9px;background:var(--ec18-surface-2)}
.ec18-reel-comments__sort button{min-height:30px;margin:0;padding:4px 8px;border:0;border-radius:6px;background:transparent;color:var(--ec18-text-muted);font:800 10px/1 Inter,sans-serif;cursor:pointer}.ec18-reel-comments__sort button.is-active{background:var(--ec18-text-1);color:var(--ec18-surface-1)}
.ec18-reel-comments__list{padding-bottom:6px}.ec18-reel-comments .ec18-comment-thread,.ec18-reel-comments .ec18-comment-thread__children{margin:0;padding:0;list-style:none}.ec18-reel-comments .ec18-comment-thread__children{position:relative;margin:4px 0 0 15px;padding-left:12px}.ec18-reel-comments .ec18-comment-thread__children::before{position:absolute;top:2px;bottom:7px;left:0;width:2px;border-radius:2px;background:color-mix(in srgb,var(--ec18-border) 78%,var(--ec18-accent) 22%);content:""}
.ec18-reel-comments .ec18-comment-thread>.ec18-comment+.ec18-comment{border-top:1px solid var(--ec18-border-soft)}.ec18-reel-comments .ec18-comment__card{grid-template-columns:36px minmax(0,1fr);gap:9px;padding:10px 2px;border-radius:9px;background:transparent}.ec18-reel-comments .ec18-comment__avatar img{width:36px;height:36px;border-color:var(--ec18-border);background:var(--ec18-surface-2)}
.ec18-reel-comments .ec18-comment__meta{gap:4px;margin-bottom:4px;color:var(--ec18-text-muted);font-size:10px}.ec18-reel-comments .ec18-comment__author{max-width:190px;color:var(--ec18-text-1);font-size:12.5px}.ec18-reel-comments .ec18-comment__op{border-color:color-mix(in srgb,var(--ec18-accent) 60%,var(--ec18-border));background:var(--ec18-accent-soft);color:var(--ec18-accent-on-surface);font-size:8px}.ec18-reel-comments .ec18-comment__time{color:var(--ec18-text-muted)}
.ec18-reel-comments .ec18-comment__content{color:var(--ec18-text-1);font-size:13px;line-height:1.52}.ec18-reel-comments .ec18-comment__content>*{margin:0 0 6px}.ec18-reel-comments .ec18-comment__content>*:last-child{margin-bottom:0}.ec18-reel-comments .ec18-comment__actions{gap:3px;margin-top:6px}.ec18-reel-comments .ec18-comment__actions a,.ec18-reel-comments .ec18-comment__actions button{min-height:27px;padding:3px 7px;border:1px solid transparent;color:var(--ec18-text-muted);font:760 9.5px/1.2 Inter,sans-serif}.ec18-reel-comments .ec18-comment-replies>summary{margin-left:44px;color:var(--ec18-accent-on-surface);font-size:9.5px}
@media(hover:hover){.ec18-reel-comments .ec18-comment__actions a:hover,.ec18-reel-comments .ec18-comment__actions button:hover{border-color:var(--ec18-border-soft);background:var(--ec18-surface-2);color:var(--ec18-text-1)}}
.ec18-reel-comment-form__reply{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;padding:7px 8px;border:1px solid var(--ec18-border-soft);border-radius:8px;background:var(--ec18-accent-soft);color:var(--ec18-text-2);font-size:10px;font-weight:750}.ec18-reel-comment-form__reply[hidden]{display:none!important}.ec18-reel-comment-form__reply button{min-height:27px;margin:0;padding:3px 7px;border:1px solid var(--ec18-border-soft);border-radius:6px;background:var(--ec18-surface-1);color:var(--ec18-text-1);font-size:9px;font-weight:850;cursor:pointer}
.ec18-reel-comment-form{z-index:2;position:sticky;bottom:0;margin-top:12px;padding:12px 0 calc(4px + env(safe-area-inset-bottom));border-top:1px solid var(--ec18-border-soft);background:var(--ec18-surface-1)!important}.ec18-reel-comment-form__identity{gap:9px}.ec18-reel-comment-form label span{color:var(--ec18-text-2)!important}.ec18-reel-comment-form input,.ec18-reel-comment-form textarea{box-sizing:border-box;border:1px solid var(--ec18-input-border)!important;border-radius:9px!important;background:var(--ec18-surface-2)!important;color:var(--ec18-input-text)!important;box-shadow:none}.ec18-reel-comment-form input::placeholder,.ec18-reel-comment-form textarea::placeholder{color:var(--ec18-text-muted);opacity:.8}.ec18-reel-comment-form input:focus,.ec18-reel-comment-form textarea:focus{border-color:var(--ec18-accent)!important;outline:2px solid color-mix(in srgb,var(--ec18-accent) 18%,transparent);outline-offset:1px}.ec18-reel-comment-form textarea{min-height:88px;max-height:220px;padding:10px 11px;line-height:1.5;resize:vertical}
.ec18-reel-comment-form__footer{margin-top:9px}.ec18-reel-comment-form__footer span{color:var(--ec18-text-muted)!important;font-size:10.5px}.ec18-reel-comment-form__footer button{display:inline-flex;min-height:39px;align-items:center;gap:6px;padding:7px 13px;border:1px solid var(--ec18-accent-strong)!important;border-radius:8px;background:linear-gradient(135deg,var(--ec18-accent),var(--ec18-accent-strong))!important;color:var(--ec18-accent-contrast,#111)!important;font-weight:900!important;box-shadow:0 3px 8px color-mix(in srgb,var(--ec18-accent) 16%,transparent);cursor:pointer}.ec18-reel-comment-form__footer button:disabled{cursor:wait;opacity:.68}
@media(max-width:520px){.ec18-reel-comments__content{padding:11px 12px}.ec18-reel-comments .ec18-comment-thread__children{margin-left:10px;padding-left:9px}.ec18-reel-comments .ec18-comment-thread__children .ec18-comment-thread__children{margin-left:2px;padding-left:6px}.ec18-reel-comments .ec18-comment__card{grid-template-columns:32px minmax(0,1fr);gap:7px;padding-inline:1px}.ec18-reel-comments .ec18-comment__avatar img{width:32px;height:32px}.ec18-reel-comments__toolbar{align-items:flex-start;flex-direction:column}.ec18-reel-comments .ec18-comment-replies>summary{margin-left:39px}.ec18-reel-comment-form__identity{grid-template-columns:1fr}.ec18-reel-comment-form__footer{align-items:stretch;flex-direction:column}.ec18-reel-comment-form__footer button{width:100%;justify-content:center}}

/* v2.19.15 — compact, content-aware Reel discussion sheet. */
@media(max-width:700px){
  .ec18-reel-comments__panel{height:auto!important;max-height:min(78dvh,680px);padding-bottom:max(6px,env(safe-area-inset-bottom));overflow:hidden}
  .ec18-reel-comments__panel>header{flex:0 0 auto;min-height:48px;padding:6px 11px}
  .ec18-reel-comments__panel>header strong{font-size:16px}.ec18-reel-comments__panel>header span{font-size:10.5px}
  .ec18-reel-comments__panel>header button{width:34px;height:34px;border-radius:8px}
  .ec18-reel-comments__content{flex:0 1 auto;min-height:0;max-height:calc(78dvh - 48px - env(safe-area-inset-bottom));padding:10px 12px 7px;overflow-y:auto}
  .ec18-reel-comments__toolbar{gap:8px;margin-bottom:7px;padding-bottom:7px}
  .ec18-reel-comments__toolbar>strong{font-size:12px}.ec18-reel-comments__sort{padding:2px;border-radius:8px}
  .ec18-reel-comments__sort button{min-height:28px;padding:4px 8px;font-size:9.5px}
  .ec18-reel-comments .ec18-comment__card{padding-top:8px;padding-bottom:8px}
  .ec18-reel-comment-form{position:relative;bottom:auto;margin-top:7px;padding:9px 0 2px;background:var(--ec18-surface-2)!important;border-top:1px solid var(--ec18-border-soft);border-radius:9px}
  .ec18-reel-comment-form__comment{display:block;padding:0 8px}.ec18-reel-comment-form textarea{min-height:82px;max-height:180px;padding:9px 10px}
  .ec18-reel-comment-form__reply,.ec18-reel-comment-form__identity{margin-left:8px;margin-right:8px}
  .ec18-reel-comment-form__footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:7px 8px 0}
  .ec18-reel-comment-form__footer button{min-width:132px;min-height:38px;justify-content:center;padding:7px 12px;box-shadow:0 2px 6px color-mix(in srgb,var(--ec18-text-1) 10%,transparent)}
}
@media(max-width:420px){
  .ec18-reel-comments__panel{max-height:min(76dvh,640px)}
  .ec18-reel-comments__content{max-height:calc(76dvh - 48px - env(safe-area-inset-bottom));padding:9px 10px 6px}
  .ec18-reel-comments__toolbar{align-items:center;flex-direction:row;flex-wrap:wrap}.ec18-reel-comments__sort{margin-left:auto}
  .ec18-reel-comment-form__footer{grid-template-columns:1fr}.ec18-reel-comment-form__footer button{width:100%;min-width:0}
}


/* v2.20.13 — one fixed Reel media controlbar for direct video and iframe adapters. */
.ec18-reels-app{
  --ec18-reel-controlbar-height:66px;
  --ec18-reel-controlbar-inline:12px;
}
.ec18-reels-app[data-reel-controlbar-mode="minimal"]{--ec18-reel-controlbar-height:50px}
.ec18-reels-controlbar{
  position:fixed;
  z-index:64;
  left:50%;
  right:auto;
  bottom:0;
  display:block;
  width:min(100vw,560px);
  min-height:var(--ec18-reel-controlbar-height);
  box-sizing:border-box;
  padding:13px max(var(--ec18-reel-controlbar-inline),env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(var(--ec18-reel-controlbar-inline),env(safe-area-inset-left));
  transform:translateX(-50%);
  border-top:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg,rgba(11,13,17,.96),rgba(3,5,8,.985));
  box-shadow:0 -9px 28px rgba(0,0,0,.34);
  color:#fff;
  pointer-events:auto;
  backdrop-filter:blur(12px);
}
.ec18-reels-controlbar[hidden]{display:none!important}
.ec18-reels-controlbar__progress{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:18px;
  transform:translateY(-8px);
  padding:0 8px;
  box-sizing:border-box;
}
.ec18-reels-controlbar__progress[hidden]{display:none!important}
.ec18-reels-controlbar__progress input[type="range"]{
  --reel-played:0%;
  display:block;
  width:100%;
  height:18px;
  margin:0;
  padding:0;
  border:0;
  outline:0;
  appearance:none;
  -webkit-appearance:none;
  background:linear-gradient(to right,var(--ec18-reel-progress-color,var(--ec18-reel-accent)) 0 var(--reel-played),rgba(255,255,255,.34) var(--reel-played) 100%) center/100% 4px no-repeat;
  cursor:pointer;
  touch-action:none;
}
.ec18-reels-controlbar__progress input[type="range"]::-webkit-slider-thumb{
  width:12px;height:12px;appearance:none;-webkit-appearance:none;border:2px solid #fff;border-radius:50%;background:var(--ec18-reel-knob-color,var(--ec18-reel-accent));box-shadow:0 1px 5px rgba(0,0,0,.65)
}
.ec18-reels-controlbar__progress input[type="range"]::-moz-range-thumb{
  width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:var(--ec18-reel-knob-color,var(--ec18-reel-accent));box-shadow:0 1px 5px rgba(0,0,0,.65)
}
.ec18-reels-controlbar__row{display:flex;min-width:0;min-height:40px;align-items:center;gap:7px}
.ec18-reels-controlbar__playback{display:flex;min-width:0;align-items:center;gap:5px}
.ec18-reels-controlbar__playback[hidden]{display:none!important}
.ec18-reels-controlbar button{
  position:relative;
  display:grid;
  flex:0 0 38px;
  width:38px;
  height:38px;
  place-items:center;
  margin:0;
  padding:0;
  border:1px solid rgba(255,255,255,.16);
  border-radius:10px;
  background:rgba(24,28,35,.82);
  color:#fff;
  font-size:15px;
  line-height:1;
  cursor:pointer;
}
.ec18-reels-controlbar button[hidden]{display:none!important}
.ec18-reels-controlbar button:hover,.ec18-reels-controlbar button:focus-visible,.ec18-reels-controlbar button.is-active{
  border-color:color-mix(in srgb,var(--ec18-reel-progress-color,var(--ec18-reel-accent)) 74%,#fff);
  background:color-mix(in srgb,var(--ec18-reel-progress-color,var(--ec18-reel-accent)) 22%,#151922);
  color:#fff;
  outline:0;
}
.ec18-reels-controlbar__badge{position:absolute;right:4px;bottom:3px;font:800 8px/1 Inter,sans-serif;color:currentColor}
.ec18-reels-controlbar__time{
  flex:0 1 auto;
  min-width:82px;
  padding:0 5px;
  color:#fff;
  font:800 12px/1.2 Inter,sans-serif;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.ec18-reels-controlbar__time[hidden]{display:none!important}
.ec18-reels-controlbar__source{
  min-width:0;
  overflow:hidden;
  color:rgba(255,255,255,.78);
  font:800 12px/1.2 Inter,sans-serif;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ec18-reels-controlbar__source[hidden]{display:none!important}
.ec18-reels-controlbar__fullscreen{margin-left:auto!important}
.ec18-reels-app[data-reel-controlbar-mode="minimal"] .ec18-reels-controlbar{padding-top:6px}
.ec18-reels-app.has-reel-controlbar .ec18-reel__meta{
  bottom:calc(var(--ec18-reel-controlbar-height) + max(12px,env(safe-area-inset-bottom) + 5px));
}
.ec18-reels-app.has-reel-controlbar .ec18-reel__bottom-gradient{height:min(52vh,440px)}

/* Full-viewport fallback keeps iframe controls usable when mobile browsers reject element fullscreen. */
html.ec18-reel-fullscreen-active,body.ec18-reel-fullscreen-active{overflow:hidden!important;overscroll-behavior:none!important}
.ec18-reels-app.is-reel-fullviewport,
.ec18-reels-app:fullscreen,
.ec18-reels-app:-webkit-full-screen{
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  background:#000!important;
}
.ec18-reels-app.is-reel-fullviewport .ec18-reel__stage,
.ec18-reels-app:fullscreen .ec18-reel__stage,
.ec18-reels-app:-webkit-full-screen .ec18-reel__stage{
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  max-height:100dvh!important;
}
.ec18-reels-app.is-reel-fullviewport .ec18-reels-controlbar,
.ec18-reels-app:fullscreen .ec18-reels-controlbar,
.ec18-reels-app:-webkit-full-screen .ec18-reels-controlbar{width:100vw;max-width:none}

@media(max-width:700px){
  .ec18-reels-app{--ec18-reel-controlbar-height:62px;--ec18-reel-controlbar-inline:8px}
  .ec18-reels-app[data-reel-controlbar-mode="minimal"]{--ec18-reel-controlbar-height:48px}
  .ec18-reels-controlbar{padding-top:11px;padding-bottom:max(6px,env(safe-area-inset-bottom));border-radius:0}
  .ec18-reels-controlbar__row{min-height:38px;gap:4px}
  .ec18-reels-controlbar__playback{gap:3px}
  .ec18-reels-controlbar button{flex-basis:34px;width:34px;height:34px;border-radius:9px;font-size:14px}
  .ec18-reels-controlbar__time{min-width:72px;padding-inline:3px;font-size:10.5px}
  .ec18-reels-controlbar__source{font-size:11px}
  .ec18-reels-controlbar__progress{height:20px;transform:translateY(-9px);padding-inline:5px}
  .ec18-reels-controlbar__progress input[type="range"]{height:20px;background-size:100% 3px}
  .ec18-reels-app.has-reel-controlbar .ec18-reel__meta{right:74px;bottom:calc(var(--ec18-reel-controlbar-height) + max(9px,env(safe-area-inset-bottom) + 3px))}
  .ec18-reels-app.has-reel-controlbar .ec18-reel__actions{max-height:calc(100dvh - var(--ec18-reel-controlbar-height) - 230px)}
}
@media(max-width:420px){
  .ec18-reels-controlbar button{flex-basis:32px;width:32px;height:32px;font-size:13px}
  .ec18-reels-controlbar__time{min-width:66px;font-size:10px}
  .ec18-reels-controlbar__badge{right:3px;bottom:2px;font-size:7px}
}

/* v2.20.19 — Compact mobile Reel rails: preserve >=44px action touch targets while freeing media width. */
@media (max-width: 700px) {
	.ec18-reels-quick{left:max(5px,env(safe-area-inset-left));gap:4px}
	.ec18-reels-quick__toggle{width:34px;height:32px;border-radius:8px;font-size:17px}
	.ec18-reels-quick__list{gap:4px}
	.ec18-reels-quick__item{width:49px;height:36px;border-radius:8px;border-width:1px}
	.ec18-reels-quick__thumb>i{width:18px;height:18px;font-size:7px}
	.ec18-reels-nav{right:max(5px,env(safe-area-inset-right));gap:5px}
	.ec18-reels-nav button{width:44px;height:44px;border-radius:11px;font-size:17px}
	.ec18-reel__actions{right:max(5px,env(safe-area-inset-right));gap:5px}
	.ec18-reel-action{min-width:44px}
	.ec18-reel-action__icon{width:44px;height:44px;border-radius:12px;font-size:17px}
	.ec18-reel-action__count{min-height:13px;font-size:9px}
	.ec18-reel__meta{right:58px}
}
@media (max-width: 390px) {
	.ec18-reels-quick__item{width:46px;height:34px}
	.ec18-reels-quick__toggle{width:32px;height:30px}
	.ec18-reel__meta{right:55px}
}
