
/* ----------------------------------------
| VARIABLES & ROOT
---------------------------------------- */

.kfc {
	--kfc-bg: #111111;
	--kfc-panel: #1a1a1a;
	--kfc-border: #2c2c2c;
	--kfc-text: #f2f2f2;
	--kfc-text-soft: #9a9a9a;
	--kfc-accent: #d0d0d0;
	--kfc-result-font-size: 0.9em;

	font-family:
		Inter,
		system-ui,
		sans-serif;

	color: var(--kfc-text);

	max-width: 1400px;
	margin: 0 auto;
	padding: 32px;
}

.kfc * {
	box-sizing: border-box;
}


/* ----------------------------------------
| TYPOGRAPHY
---------------------------------------- */

.kfc-header h2 {
	margin: 0 0 6px 0;

	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.kfc-header p,
.kfc-section-title,
.kfc-field label,
.kfc-checkbox,
.kfc-result span,
.kfc-reel span {
	font-size: 13px;
	color: var(--kfc-text-soft);
}

.kfc-section-title {
	margin: 0 0 20px 0;

	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.kfc-result strong,
.kfc-reels strong,
.kfc-tc {
	font-size: var(--kfc-result-font-size);
	font-family:
		ui-monospace,
		SFMono-Regular,
		Menlo,
		monospace;
}


/* ----------------------------------------
| LAYOUT
---------------------------------------- */

.kfc-header {
	margin-bottom: 32px;
}

.kfc-layout {
	display: grid;

	grid-template-columns:
		minmax(320px, 1fr)
		minmax(320px, 420px);

	gap: 24px;
}

.kfc-panel,
.kfc-results,
.kfc-reels {
	display: flex;
	flex-direction: column;
}

.kfc-panel {
	gap: 24px;
}

.kfc-results {
	gap: 14px;
}

.kfc-reels {
	gap: 12px;
}


/* ----------------------------------------
| PANELS & CONTAINERS
---------------------------------------- */

.kfc-section,
.kfc-results {
	padding: 20px;

	background: var(--kfc-panel);

	border: 1px solid var(--kfc-border);
	border-radius: 12px;
}

.kfc-result,
.kfc-reel {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.kfc-result {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--kfc-border);
}

.kfc-result:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.kfc-reel {
	padding: 12px 14px;

	background: #0d0d0d;

	border: 1px solid var(--kfc-border);
	border-radius: 8px;
}


/* ----------------------------------------
| FORMS
---------------------------------------- */

.kfc-field {
	display: flex;
	flex-direction: column;

	gap: 8px;
	margin-bottom: 20px;
}

.kfc-field:last-child {
	margin-bottom: 0;
}

.kfc select,
.kfc input {
	width: 100%;

	padding: 12px 14px;

	background: #0d0d0d;

	border: 1px solid var(--kfc-border);
	border-radius: 8px;

	color: var(--kfc-text);
	font-size: var(--kfc-result-font-size);

	outline: none;

	transition:
		border-color 0.15s ease,
		background 0.15s ease;
}

.kfc select:focus,
.kfc input:focus {
	border-color: #666666;
	background: #141414;
}


/* ----------------------------------------
| INPUT UNIT
---------------------------------------- */

.kfc-input-unit {
	position: relative;
}

.kfc-input-unit span {
	position: absolute;

	top: 50%;
	right: 14px;

	transform: translateY(-50%);

	font-size: 12px;
	color: var(--kfc-text-soft);

	pointer-events: none;
}

.kfc-input-unit input {
	padding-right: 42px;
}


/* ----------------------------------------
| RADIO BUTTONS
---------------------------------------- */

.kfc-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.kfc-radio {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;

	flex: 1;

	cursor: pointer;
}

.kfc-radio input {
	position: absolute;

	opacity: 0;
	pointer-events: none;
}

.kfc-radio span {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	height: 100%;
	min-width: 110px;

	padding: 12px 16px;

	background: #0d0d0d;

	border: 1px solid var(--kfc-border);
	border-radius: 8px;

	font-size: 13px;

	transition:
		border-color 0.15s ease,
		background 0.15s ease;
}

.kfc-radio input:checked + span {
	color: var(--kfc-text);
	border-color: #7a7a7a;
	background: #202020;
}


/* ----------------------------------------
| CHECKBOX
---------------------------------------- */

.kfc-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;

	cursor: pointer;
}

.kfc-checkbox input {
	width: auto;
	margin: 0;
}


/* ----------------------------------------
| TIMECODE
---------------------------------------- */

.kfc-timecode-input,
.kfc-tc {
	text-align: center;
}

.kfc-timecode-input {
	letter-spacing: 0.08em;

	font-variant-numeric: tabular-nums;

	font-family: monospace;
}

.kfc-tc {
	appearance: textfield;
	-moz-appearance: textfield;
}

.kfc-tc::-webkit-outer-spin-button,
.kfc-tc::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}


/* ----------------------------------------
| DETAILS / ACCORDION
---------------------------------------- */

.kfc-section details {
	width: 100%;
}

.kfc-section summary {
	list-style: none;
	cursor: pointer;
}

.kfc-section summary::-webkit-details-marker {
	display: none;
}

.kfc details[open] summary {
	margin-bottom: 20px;
}


/* ----------------------------------------
| SVG FILM BODY
---------------------------------------- */

.kfc-film-base {
	fill: #1a1a1a;

	stroke: #444;
	stroke-width: 1;
}


/* ----------------------------------------
| SVG IMAGE FRAME
---------------------------------------- */

.kfc-image-frame {
	fill: rgba(255,255,255,0.08);

	stroke: #ffffff;
	stroke-width: 1.5;
}


/* ----------------------------------------
| SVG OVERSCAN
---------------------------------------- */

.kfc-overscan-frame {
	fill: rgba(255,255,255,0.03);

	stroke: rgba(255,255,255,0.35);
	stroke-width: 1;

	stroke-dasharray: 2 2;
}


/* ----------------------------------------
| SVG LABELS
---------------------------------------- */

.kfc-preview-label {
	fill: rgba(255,255,255,0.75);

	font-size: 5px;
	font-family: sans-serif;
}


/* ----------------------------------------
| TOOLTIP
---------------------------------------- */

.kfc-tooltip {
	position: relative;
}

.kfc-tooltip span,
.kfc-tooltip label,
span.kfc-tooltip {
	transition: 0.3s;
}

.kfc-tooltip:hover span,
.kfc-tooltip:hover label,
span.kfc-tooltip:hover {
	color: #ffffff;
	opacity: 1;
}


/* ----------------------------------------
| TOOLTIP BUBBLE
---------------------------------------- */

.kfc-tooltip::after {
	content: attr(data-tooltip);

	position: absolute;

	left: 50%;
	bottom: calc(100% + 10px);

	transform: translateX(-50%);

	width: 220px;

	padding: 10px 12px;

	background: #111;

	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 8px;

	color: rgba(255,255,255,0.82);

	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;

	white-space: pre-line;

	opacity: 0;
	pointer-events: none;

	transition:
		opacity 0.15s,
		transform 0.5s;

	z-index: 50;
}

.kfc-tooltip:hover::after {
	opacity: 1;

	transform:
		translateX(-50%)
		translateY(-2px);
}


/* ----------------------------------------
| RESPONSIVE
---------------------------------------- */

@media (max-width: 960px) {
	.kfc {
		padding: 20px;
	}

	.kfc-layout {
		grid-template-columns: 1fr;
	}
}