.chad-clips {
	--cc-red: #e21f26;
	--cc-blue: #2f57d8;
	--cc-black: #0a0a0a;
	/* let the gallery be wider than the theme's narrow text column, centered */
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: min(1120px, calc(100vw - 32px));
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-top: 0;
	margin-bottom: 0;
	padding: 8px 0 24px;
	box-sizing: border-box;
	text-align: center;
}
.chad-clips *, .chad-clips *::before, .chad-clips *::after { box-sizing: border-box; }

/* ---- Embedded inside another page (no own title / no full-bleed) ---- */
.chad-clips.cc-embed {
	position: static;
	left: auto;
	transform: none;
	width: 100%;
	padding: 0;
}
/* ---- Orange theme (Presskit family) ---- */
.chad-clips.cc-orange { --cc-red: #ff6900; --cc-blue: #ff6900; }
.cc-orange .cc-card:hover, .cc-orange .cc-card:focus-visible { box-shadow: 9px 9px 0 var(--cc-black); }
.cc-orange .cc-label { color: #000; text-shadow: none; }
.cc-orange .cc-play { background: var(--cc-red); }
.cc-orange .cc-play::after { border-left-color: #000; }
.cc-orange .cc-dialog { box-shadow: 8px 8px 0 var(--cc-black); }
.cc-orange .cc-close { color: #000; }
.cc-orange .cc-nav { border-color: var(--cc-red); }

/* ---- Title (logo colors) ---- */
.cc-title {
	margin: 0 0 26px;
	padding: 0 6px 6px 0;
	font-family: Impact, "Haettenschweiler", "Arial Narrow Bold", "Arial Black", sans-serif;
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: clamp(2.1rem, 10.5vw, 4.9rem);
	line-height: 1.02;
	color: #fff;
}
.cc-title .cc-l1, .cc-title .cc-l2 {
	display: block;
	-webkit-text-stroke: 7px var(--cc-blue);
	paint-order: stroke fill;
	stroke-linejoin: round;
}
.cc-title .cc-l1 {
	color: #fff;
	filter:
		drop-shadow(1px 1px 0 #e21f26) drop-shadow(1px 1px 0 #e21f26)
		drop-shadow(1px 1px 0 #c4161c) drop-shadow(1px 1px 0 #c4161c)
		drop-shadow(1px 1px 0 #9b1015) drop-shadow(1px 1px 0 #9b1015)
		drop-shadow(0 8px 6px rgba(0, 0, 0, 0.35));
}
.cc-title .cc-l2 {
	font-size: 1.28em;
	color: var(--cc-red);
	filter:
		drop-shadow(1px 1px 0 #1c2f8f) drop-shadow(1px 1px 0 #1c2f8f)
		drop-shadow(1px 1px 0 #142270) drop-shadow(1px 1px 0 #142270)
		drop-shadow(1px 1px 0 #0d1650) drop-shadow(1px 1px 0 #0d1650)
		drop-shadow(0 8px 6px rgba(0, 0, 0, 0.35));
}
.cc-intro { margin: 0 0 22px; color: #444; font-size: 0.95rem; }

/* ---- Card grid ---- */
.cc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 26px 22px;
	padding: 6px 8px 10px 4px;
}
.cc-card {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 3px solid var(--cc-black);
	background: linear-gradient(135deg, #2a0808, #0a0a0a);
	cursor: pointer;
	box-shadow: 6px 6px 0 var(--cc-blue);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}
.cc-card:hover, .cc-card:focus-visible {
	transform: translate(-3px, -3px);
	box-shadow: 9px 9px 0 var(--cc-red);
}
.cc-card:focus-visible { outline: 3px solid #ffd900; outline-offset: 3px; }
.cc-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease, filter 0.35s ease;
}
.cc-card:hover img { transform: scale(1.06); filter: brightness(0.78); }

.cc-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 62px;
	height: 62px;
	margin: -31px 0 0 -31px;
	border-radius: 50%;
	background: var(--cc-red);
	border: 3px solid #fff;
	box-shadow: 0 0 0 3px var(--cc-black), 0 6px 14px rgba(0, 0, 0, 0.55);
	transition: transform 0.15s ease;
}
.cc-play::after {
	content: "";
	position: absolute;
	left: 22px;
	top: 15px;
	border-style: solid;
	border-width: 13px 0 13px 21px;
	border-color: transparent transparent transparent #fff;
}
.cc-card:hover .cc-play { transform: scale(1.12); }

.cc-label {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 6px 14px 5px 12px;
	background: var(--cc-red);
	color: #fff;
	font-family: Impact, "Haettenschweiler", "Arial Narrow Bold", "Arial Black", sans-serif;
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
	border-top: 3px solid var(--cc-black);
	border-right: 3px solid var(--cc-black);
}
.cc-dur {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 4px 7px;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	font: 700 0.85rem/1 "Courier New", Courier, monospace;
	letter-spacing: 0.04em;
}

/* ---- Viewer ---- */
html.cc-lock { overflow: hidden; }
.cc-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 12px; }
.cc-modal[hidden] { display: none; }
.cc-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.93); }
.cc-dialog {
	position: relative;
	width: min(1000px, 100%);
	max-height: 100%;
	padding: 10px;
	background: var(--cc-black);
	border: 3px solid var(--cc-blue);
	box-shadow: 8px 8px 0 var(--cc-red);
	color: #fff;
}
.cc-video {
	display: block;
	width: 100%;
	max-height: calc(100vh - 150px);
	background: #000;
	object-fit: contain;
}
.cc-close {
	position: absolute;
	top: -18px;
	right: -14px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--cc-red);
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 0 0 3px var(--cc-black);
}
.cc-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
.cc-now { flex: 1; text-align: center; font-family: Impact, "Arial Narrow Bold", "Arial Black", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem; }
.cc-nav {
	padding: 9px 14px;
	border: 2px solid var(--cc-red);
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 800;
	font-size: 0.85rem;
	text-transform: uppercase;
	cursor: pointer;
}
.cc-nav:hover { background: var(--cc-red); }

@media (max-width: 640px) {
	.cc-grid { grid-template-columns: 1fr; gap: 22px; padding-right: 10px; }
	.cc-close { top: -14px; right: -6px; }
	.cc-nav { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.cc-card, .cc-card img, .cc-play { transition: none; }
}
