/* Filmmaker Crop Factor Calculator */
.fcfc {
	--fcfc-bg: transparent;
	--fcfc-panel: rgba(0, 0, 0, 0.025);
	--fcfc-panel-2: #ffffff;
	--fcfc-text: #141416;
	--fcfc-muted: #66666f;
	--fcfc-line: rgba(0, 0, 0, 0.12);
	--fcfc-accent: #e8412b;
	--fcfc-alt: #0b84c4;
	--fcfc-ok: #1fae5b;
	--fcfc-warn: #e39400;
	--fcfc-bad: #e03131;
	--fcfc-gap: clamp(14px, 1.6vw, 24px);
	--fcfc-radius: 6px;
	--fcfc-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	max-width: none;
	flex: 1 1 100%;
	align-self: stretch;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	background: var(--fcfc-bg);
	color: var(--fcfc-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
}
.elementor-widget-fcfc_calculator,
.elementor-widget-fcfc_calculator > .elementor-widget-container { width: 100%; max-width: 100%; flex: 1 1 100%; align-self: stretch; }

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

.fcfc--dark {
	--fcfc-panel: rgba(255, 255, 255, 0.04);
	--fcfc-panel-2: rgba(255, 255, 255, 0.06);
	--fcfc-text: #f4f2ee;
	--fcfc-muted: #a2a2ab;
	--fcfc-line: rgba(255, 255, 255, 0.12);
	--fcfc-accent: #ff4d2e;
	--fcfc-alt: #35c6ff;
	--fcfc-ok: #3ddc84;
	--fcfc-warn: #ffb020;
	--fcfc-bad: #ff4d4d;
}

.fcfc__inner { width: 100%; margin: 0 auto; }

/* Header */
.fcfc-head { margin: 0 0 calc(var(--fcfc-gap) * 1.8); max-width: 980px; }
.fcfc-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 14px; font-family: var(--fcfc-mono);
	font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fcfc-muted);
}
.fcfc-rec, .fcfc-dot {
	width: 9px; height: 9px; border-radius: 50%; background: var(--fcfc-accent);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--fcfc-accent) 60%, transparent);
	animation: fcfc-rec 1.6s infinite;
}
@keyframes fcfc-rec {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fcfc-accent) 55%, transparent); opacity: 1; }
	60% { box-shadow: 0 0 0 9px transparent; opacity: 0.55; }
	100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}
.fcfc .fcfc-title {
	margin: 0 0 14px; padding: 0; color: var(--fcfc-text);
	font-family: inherit; font-weight: 800; letter-spacing: -0.035em; line-height: 0.98;
	font-size: clamp(34px, 6vw, 84px); text-transform: none;
}
.fcfc-sub { margin: 0; max-width: 720px; color: var(--fcfc-muted); font-size: clamp(15px, 1.25vw, 18px); }

/* Grids */
.fcfc-grid,
.fcfc-compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--fcfc-gap); }
.fcfc-compare { margin-top: var(--fcfc-gap); }
.fcfc.fcfc-w900 .fcfc-grid,
.fcfc.fcfc-w900 .fcfc-compare { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); }

/* Monitor */
.fcfc-monitor {
	position: relative; aspect-ratio: 16 / 9; width: 100%;
	background: #000; border-radius: var(--fcfc-radius); overflow: hidden;
	box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.45);
}
.fcfc-monitor__box { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fcfc-monitor canvas { display: block; }
.fcfc-hud {
	position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
	padding: 5px 9px; font-family: var(--fcfc-mono); font-size: clamp(10px, 1vw, 12px);
	font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
	background: rgba(0, 0, 0, 0.45); border-radius: 3px; backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px); pointer-events: none; white-space: nowrap; max-width: 60%;
	overflow: hidden; text-overflow: ellipsis;
}
.fcfc-hud--tl { top: 12px; left: 12px; }
.fcfc-hud--tr { top: 12px; right: 12px; }
.fcfc-hud--bl { bottom: 12px; left: 12px; }
.fcfc-hud--br { bottom: 12px; right: 12px; color: var(--fcfc-accent); }
.fcfc-hud .fcfc-dot { width: 8px; height: 8px; }

/* Headline */
.fcfc-headline {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
	margin: calc(var(--fcfc-gap) * 1.1) 0 var(--fcfc-gap);
}
.fcfc-headline p {
	margin: 0; flex: 1 1 420px; font-size: clamp(20px, 2.3vw, 32px);
	font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--fcfc-text);
}
.fcfc-hl { font-weight: 800; font-variant-numeric: tabular-nums; }
.fcfc-hl--accent { color: var(--fcfc-accent); }
.fcfc-hl--alt { color: var(--fcfc-alt); }
.fcfc-hl-cam { color: var(--fcfc-muted); font-weight: 600; }
.fcfc-chip {
	display: inline-block; padding: 7px 12px; border: 1px solid var(--fcfc-line); border-radius: 999px;
	font-family: var(--fcfc-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fcfc-text);
	background: var(--fcfc-panel);
}

/* Stats */
.fcfc-stats {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
	background: var(--fcfc-panel); border: 1px solid var(--fcfc-line); border-radius: var(--fcfc-radius); overflow: hidden;
}
.fcfc.fcfc-w620 .fcfc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fcfc.fcfc-w1300 .fcfc-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fcfc-stat { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: transparent; min-width: 0; box-shadow: inset -1px -1px 0 var(--fcfc-line); }
.fcfc-stats { margin-bottom: 0; }
.fcfc-stats .fcfc-stat { margin: 0 -1px -1px 0; }
.fcfc-stat__label {
	font-family: var(--fcfc-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fcfc-muted);
}
.fcfc-stat__value {
	font-size: clamp(22px, 2.2vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
	font-variant-numeric: tabular-nums; color: var(--fcfc-text); white-space: nowrap;
}
.fcfc-stat--big .fcfc-stat__value { color: var(--fcfc-accent); }

.fcfc-notes { display: grid; gap: 4px 24px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
.fcfc.fcfc-w700 .fcfc-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fcfc-note { display: flex; gap: 10px; margin: 0; font-size: 14px; color: var(--fcfc-text); }
.fcfc-note[hidden] { display: none; }
.fcfc-note__k { flex: 0 0 auto; min-width: 110px; font-family: var(--fcfc-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fcfc-muted); padding-top: 2px; }

/* Panel */
.fcfc-panel, .fcfc-side {
	display: flex; flex-direction: column; gap: 18px; padding: clamp(18px, 2vw, 28px);
	background: var(--fcfc-panel); border: 1px solid var(--fcfc-line); border-radius: var(--fcfc-radius);
	min-width: 0;
}
.fcfc-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fcfc-label {
	display: flex; align-items: center; gap: 8px; margin: 0;
	font-family: var(--fcfc-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fcfc-muted);
}
.fcfc-key {
	display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
	border-radius: 3px; font-size: 11px; color: #000; letter-spacing: 0;
}
.fcfc-key--a { background: var(--fcfc-accent); }
.fcfc-key--b { background: var(--fcfc-alt); }

.fcfc .fcfc-select,
.fcfc .fcfc-focal__num input {
	width: 100%; height: 46px; margin: 0; padding: 0 40px 0 14px;
	font: inherit; font-size: 15px; font-weight: 600; color: var(--fcfc-text);
	background-color: var(--fcfc-panel-2); border: 1px solid var(--fcfc-line); border-radius: var(--fcfc-radius);
	box-shadow: none; outline: none; appearance: none; -webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--fcfc-muted) 50%), linear-gradient(135deg, var(--fcfc-muted) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
	background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer;
	transition: border-color 0.2s ease;
}
.fcfc .fcfc-select option, .fcfc .fcfc-select optgroup { color: #111; background: #fff; }
.fcfc .fcfc-select:hover, .fcfc .fcfc-select:focus { border-color: var(--fcfc-accent); }
.fcfc .fcfc-focal__num input { background-image: none; padding: 0 34px 0 12px; text-align: left; cursor: text; -moz-appearance: textfield; }
.fcfc .fcfc-focal__num input::-webkit-outer-spin-button,
.fcfc .fcfc-focal__num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.fcfc-focal { display: flex; align-items: center; gap: 14px; }
.fcfc-focal__num { position: relative; flex: 0 0 104px; }
.fcfc-focal__num em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--fcfc-muted); pointer-events: none; }

.fcfc .fcfc-range {
	flex: 1 1 auto; height: 28px; margin: 0; padding: 0; background: transparent; border: 0; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.fcfc .fcfc-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--fcfc-accent), var(--fcfc-line)); }
.fcfc .fcfc-range::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--fcfc-accent), var(--fcfc-line)); }
.fcfc .fcfc-range::-webkit-slider-thumb {
	-webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%;
	background: #fff; border: 4px solid var(--fcfc-accent); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.fcfc .fcfc-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--fcfc-accent); }
.fcfc .fcfc-range:focus-visible { outline: 2px solid var(--fcfc-accent); outline-offset: 4px; }

.fcfc-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.fcfc-seg[data-fcfc-seg="frame"] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fcfc-seg[data-fcfc-seg="sq"] { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); }
.fcfc-seg[data-fcfc-seg="b"] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fcfc .fcfc-seg__btn { min-width: 0; padding: 0 4px; }
.fcfc .fcfc-seg__btn {
	flex: 1 1 auto; min-width: 54px; height: 38px; margin: 0; padding: 0 12px;
	font: inherit; font-family: var(--fcfc-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; line-height: 1;
	color: var(--fcfc-text); background: var(--fcfc-panel-2); border: 1px solid var(--fcfc-line); border-radius: var(--fcfc-radius);
	cursor: pointer; text-transform: none; box-shadow: none; transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.fcfc .fcfc-seg__btn:hover { border-color: var(--fcfc-accent); }
.fcfc .fcfc-seg__btn.is-active { background: var(--fcfc-accent); border-color: var(--fcfc-accent); color: #fff; }
.fcfc .fcfc-seg__btn:focus-visible, .fcfc .fcfc-btn:focus-visible, .fcfc .fcfc-scene:focus-visible { outline: 2px solid var(--fcfc-accent); outline-offset: 2px; }

.fcfc-desq { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fcfc-muted); cursor: pointer; }
.fcfc-desq[hidden] { display: none; }
.fcfc-desq input { accent-color: var(--fcfc-accent); margin: 0; }

/* Coverage */
.fcfc-coverage {
	display: flex; gap: 12px; align-items: flex-start; margin-top: auto; padding: 14px 16px;
	border-radius: var(--fcfc-radius); border: 1px solid var(--fcfc-line); background: var(--fcfc-panel-2);
}
.fcfc-coverage__dot { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--fcfc-ok); box-shadow: 0 0 14px var(--fcfc-ok); }
.fcfc-coverage[data-state="tight"] .fcfc-coverage__dot { background: var(--fcfc-warn); box-shadow: 0 0 14px var(--fcfc-warn); }
.fcfc-coverage[data-state="vignette"] .fcfc-coverage__dot { background: var(--fcfc-bad); box-shadow: 0 0 14px var(--fcfc-bad); }
.fcfc-coverage[data-state="vignette"] { border-color: color-mix(in srgb, var(--fcfc-bad) 50%, transparent); }
.fcfc-coverage__msg { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--fcfc-text); }
.fcfc-coverage__pct { margin: 4px 0 0; font-family: var(--fcfc-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--fcfc-muted); }

/* Map */
.fcfc-map {
	position: relative; aspect-ratio: 16 / 9; width: 100%; background: #050506;
	border-radius: var(--fcfc-radius); overflow: hidden; border: 1px solid var(--fcfc-line);
}
.fcfc-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fcfc-legend {
	position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 14px;
	margin: 0; padding: 7px 11px; list-style: none; background: rgba(0, 0, 0, 0.55); border-radius: 3px;
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	font-family: var(--fcfc-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
}
.fcfc-legend li { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.fcfc-legend li::before { content: none; }
.fcfc-sw { display: inline-block; width: 14px; height: 10px; border: 2px solid; }
.fcfc-sw--a { border-color: var(--fcfc-accent); }
.fcfc-sw--b { border-color: var(--fcfc-alt); }
.fcfc-sw--ff { border: 1px dashed rgba(255, 255, 255, 0.7); }
.fcfc-sw--c { border: 1px dashed rgba(255, 255, 255, 0.7); border-radius: 50%; width: 12px; height: 12px; }

.fcfc-row { display: flex; gap: 8px; }
.fcfc .fcfc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; margin: 0; padding: 0 18px;
	font: inherit; font-size: 14px; font-weight: 700; color: var(--fcfc-text); text-transform: none; letter-spacing: 0;
	background: var(--fcfc-panel-2); border: 1px solid var(--fcfc-line); border-radius: var(--fcfc-radius);
	cursor: pointer; box-shadow: none; transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.fcfc .fcfc-btn:hover { border-color: var(--fcfc-accent); }
.fcfc .fcfc-btn--icon { flex: 0 0 46px; padding: 0; }
.fcfc .fcfc-share { width: 100%; background: var(--fcfc-accent); border-color: var(--fcfc-accent); color: #fff; }
.fcfc .fcfc-share:hover { filter: brightness(1.08); }

.fcfc-match { margin: 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

.fcfc-fov { position: relative; padding: 4px 0 0; }
.fcfc-fov svg { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; overflow: visible; }
.fcfc-fov path { transition: d 0.35s ease; }
.fcfc-fov__ff { fill: none; stroke: var(--fcfc-muted); stroke-width: 1; stroke-dasharray: 4 4; }
.fcfc-fov__b { fill: color-mix(in srgb, var(--fcfc-alt) 14%, transparent); stroke: var(--fcfc-alt); stroke-width: 1.5; }
.fcfc-fov__a { fill: color-mix(in srgb, var(--fcfc-accent) 22%, transparent); stroke: var(--fcfc-accent); stroke-width: 2; }
.fcfc-fov__cam { fill: var(--fcfc-text); }
.fcfc-fov__label { display: block; margin-top: 6px; text-align: center; font-family: var(--fcfc-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fcfc-muted); }

/* Scenes */
.fcfc-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fcfc .fcfc-scene {
	position: relative; aspect-ratio: 16 / 9; margin: 0; padding: 0; border: 2px solid transparent; border-radius: var(--fcfc-radius);
	background-color: #000; background-size: cover; background-position: center; cursor: pointer; overflow: hidden;
	transition: border-color 0.18s ease, transform 0.18s ease; box-shadow: none;
}
.fcfc .fcfc-scene:hover { transform: translateY(-2px); }
.fcfc .fcfc-scene.is-active { border-color: var(--fcfc-accent); }
.fcfc-scene__label {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; text-align: left;
	font-family: var(--fcfc-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.fcfc-disclaimer { margin: calc(var(--fcfc-gap) * 1.2) 0 0; max-width: 900px; font-size: 12px; line-height: 1.5; color: var(--fcfc-muted); }

/* Entrance */
.fcfc .fcfc-monitor, .fcfc .fcfc-map { opacity: 0.001; transition: opacity 0.6s ease; }
.fcfc.is-ready .fcfc-monitor, .fcfc.is-ready .fcfc-map { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.fcfc-rec, .fcfc-dot { animation: none; }
	.fcfc-fov path { transition: none; }
}
