/* CD Comedians — public directory + profile pages
   Brand: charcoal #1F2937, CTA red #E5534B, secondary #d85b57, yellow #f4b400 */

.cd-comedians-page,
.cd-profile,
.cd-event-videos {
	--cd-red: #E5534B;
	--cd-red-2: #d85b57;
	--cd-yellow: #f4b400;
	--cd-dark: #1F2937;
	--cd-dark-2: #161d27;
	--cd-light: #f7f7f7;
	--cd-radius: 16px;
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Shared button ---------- */
.cd-btn {
	display: inline-block;
	font-weight: 800;
	text-decoration: none;
	border: none;
	cursor: pointer;
	border-radius: 10px;
	padding: 12px 22px;
	line-height: 1;
	transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
.cd-btn-primary {
	background: var(--cd-red);
	color: #fff;
	box-shadow: 4px 4px 0 var(--cd-yellow);
}
.cd-btn-primary:hover {
	background: var(--cd-red-2);
	color: #fff;
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--cd-yellow);
}
.cd-btn-primary:active {
	transform: translate(4px, 4px);
	box-shadow: 0 0 0 var(--cd-yellow);
}

/* ---------- Archive hero ---------- */
/* Generous top padding so the title clears Blocksy's transparent overlay header. */
.cd-comedians-hero {
	background: var(--cd-dark);
	color: #fff;
	padding: 150px 20px 64px;
	text-align: center;
}
.cd-comedians-hero-inner { max-width: 820px; margin: 0 auto; }
.cd-comedians-title {
	color: var(--cd-yellow);
	font-weight: 900;
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	margin: 0 0 14px;
	letter-spacing: -0.5px;
}
.cd-comedians-intro {
	color: #e7e9ee;
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0;
}

/* ---------- Directory body ---------- */
.cd-comedians-body {
	background: var(--cd-dark-2);
	padding: 40px 20px 72px;
}
.cd-comedians-wrap { max-width: 1200px; margin: 0 auto; }

.cd-comedians-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 26px;
}
.cd-comedians-wrap .cd-comedians-search {
	flex: 1 1 240px;
	max-width: 340px;
	padding: 12px 16px;
	border-radius: 10px;
	border: 2px solid #4a5568 !important;
	background: #f4f5f7 !important;
	color: #1f2937 !important;
	font-size: 1rem;
	font-family: inherit;
}
.cd-comedians-wrap .cd-comedians-search::placeholder { color: #6b7280; opacity: 1; }
.cd-comedians-wrap .cd-comedians-search:focus { outline: none; border-color: var(--cd-yellow) !important; background: #fff !important; }

.cd-comedians-az {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}
.cd-az-btn {
	background: transparent;
	color: #cfd4dd;
	border: 1px solid #3a4453;
	border-radius: 8px;
	width: 34px;
	height: 34px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: all .12s ease;
	padding: 0;
}
.cd-az-btn:hover { border-color: var(--cd-yellow); color: #fff; }
.cd-az-btn.is-active { background: var(--cd-red); border-color: var(--cd-red); color: #fff; }
.cd-az-btn.is-empty { opacity: .3; cursor: default; pointer-events: none; }

/* ---------- Featured + section headings ---------- */
.cd-section-title {
	color: var(--cd-yellow);
	font-weight: 800;
	font-size: 1.5rem;
	margin: 0 0 20px;
}
.cd-section-title-all { margin-top: 44px; padding-top: 32px; border-top: 1px solid #2b3441; }
.cd-featured { margin-bottom: 8px; }
/* When the visitor searches or picks a letter, JS adds this to focus results. */
.cd-comedians-wrap.is-filtering .cd-featured,
.cd-comedians-wrap.is-filtering .cd-section-title-all { display: none; }

/* ---------- Grid + cards ---------- */
.cd-comedians-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.cd-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cd-cols-2 { grid-template-columns: repeat(2, 1fr); }

.cd-card {
	background: #fff;
	border-radius: var(--cd-radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--cd-dark);
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 26px rgba(0,0,0,.28);
	transition: transform .14s ease, box-shadow .14s ease;
}
.cd-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0,0,0,.4); }

.cd-card-imgwrap { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cd-dark); }
.cd-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-card:hover .cd-card-img { transform: scale(1.04); transition: transform .3s ease; }
.cd-card-noimg {
	display: flex; align-items: center; justify-content: center;
	font-size: 3rem; font-weight: 900; color: var(--cd-yellow); background: var(--cd-dark);
}
.cd-card-videobadge {
	position: absolute; left: 10px; bottom: 10px;
	background: rgba(0,0,0,.72); color: #fff;
	font-size: .72rem; font-weight: 700;
	padding: 5px 9px; border-radius: 6px;
}

.cd-card-body { padding: 14px 14px 16px; display: flex; align-items: center; justify-content: center; }
.cd-card-name { font-weight: 800; font-size: 1.12rem; color: var(--cd-dark); text-align: center; }

/* Hover-reveal bio overlay over the headshot (desktop). */
.cd-card-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(31,41,55,.96), rgba(31,41,55,.86));
	color: #fff; padding: 18px;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity .18s ease;
	pointer-events: none;
}
.cd-card:hover .cd-card-overlay,
.cd-card:focus-visible .cd-card-overlay { opacity: 1; }
.cd-card-overlay-inner { font-size: .84rem; line-height: 1.5; text-align: center; }
.cd-card-overlay-cta {
	display: block; margin-top: 12px; color: var(--cd-yellow);
	font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px;
}

.cd-comedians-noresults, .cd-comedians-empty {
	color: #cfd4dd; text-align: center; padding: 40px 0; font-size: 1.05rem;
}

/* "More comedians" load button */
.cd-loadmore-wrap { text-align: center; margin-top: 36px; }
.cd-loadmore {
	background: var(--cd-red) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 4px 4px 0 var(--cd-yellow) !important;
	padding: 14px 30px;
	font-size: 1rem;
}
.cd-loadmore:hover { background: var(--cd-red-2) !important; }
.cd-loadmore.is-loading { opacity: .7; cursor: default; }
.cd-loadmore.is-loading::after { content: ' …'; }

/* ---------- Profile ---------- */
.cd-profile {
	background: var(--cd-dark);
	color: #fff;
	padding: 0 0 64px;
}
/* Contained portrait (not full-bleed) + top padding so it sits below the
   transparent header and a small ~5KB headshot isn't upscaled into pixelation. */
.cd-profile-top {
	display: grid;
	grid-template-columns: 320px 1fr;
	align-items: center;
	gap: 44px;
	max-width: 1080px;
	margin: 0 auto;
	padding: 150px 24px 40px;
}
.cd-profile-media {
	background: var(--cd-dark-2);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 14px 32px rgba(0,0,0,.45);
	aspect-ratio: 4 / 5;
}
.cd-profile-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cd-profile-noimg {
	display: flex; align-items: center; justify-content: center; height: 100%;
	font-size: 5rem; font-weight: 900; color: var(--cd-yellow);
}
.cd-profile-head {
	display: flex; flex-direction: column; justify-content: center;
	padding: 0;
}
.cd-profile-eyebrow {
	color: var(--cd-yellow); font-weight: 800; text-transform: uppercase;
	letter-spacing: 1.5px; font-size: .85rem; margin: 0 0 8px;
}
.cd-profile-name {
	font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem);
	margin: 0 0 22px; line-height: 1.05; color: #fff;
}
.cd-profile-topcta { align-self: flex-start; }

.cd-profile-columns {
	max-width: 1120px; margin: 0 auto; padding: 48px 20px 0;
	display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px;
}
.cd-profile-h2 {
	color: var(--cd-yellow); font-weight: 800; font-size: 1.5rem;
	margin: 0 0 18px;
}
.cd-profile-section { margin-bottom: 40px; }
.cd-profile-biotext { color: #e7e9ee; line-height: 1.7; font-size: 1.02rem; }
.cd-profile-biotext p { margin: 0 0 1em; }

/* Video facade (click to load) */
.cd-video-facade {
	position: relative; width: 100%; aspect-ratio: 16 / 9;
	background-color: #000; background-size: cover; background-position: center;
	border-radius: var(--cd-radius); cursor: pointer; overflow: hidden;
	box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.cd-video-facade::after {
	content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); transition: background .15s ease;
}
.cd-video-facade:hover::after { background: rgba(0,0,0,.05); }
.cd-video-play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
	width: 74px; height: 74px; border-radius: 50%;
	background: var(--cd-red); box-shadow: 4px 4px 0 var(--cd-yellow); z-index: 2;
	transition: transform .1s ease, box-shadow .1s ease;
}
.cd-video-play::before {
	content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%);
	border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff;
}
.cd-video-facade:hover .cd-video-play { transform: translate(-50%,-50%) scale(1.06); }
.cd-video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Upcoming performances */
.cd-upcoming {
	background: var(--cd-dark-2); border-radius: var(--cd-radius);
	padding: 24px; position: sticky; top: 20px;
}
.cd-upcoming-list { list-style: none; margin: 0; padding: 0; }
.cd-upcoming-item {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
	padding: 14px 0; border-bottom: 1px solid #2b3441;
}
.cd-upcoming-item:last-child { border-bottom: none; }
.cd-upcoming-date {
	display: flex; flex-direction: column; align-items: flex-start;
	background: #000; border-radius: 8px; padding: 8px 10px; min-width: 74px;
}
.cd-upcoming-day { font-weight: 800; font-size: .82rem; color: #fff; }
.cd-upcoming-time { font-size: .78rem; color: var(--cd-yellow); font-weight: 700; }
.cd-upcoming-name { font-weight: 700; font-size: .95rem; color: #e7e9ee; }
.cd-upcoming-book { padding: 9px 16px; font-size: .85rem; }
.cd-upcoming-empty { color: #aeb6c2; line-height: 1.6; }
.cd-upcoming-empty a { color: var(--cd-yellow); }

.cd-profile-backwrap { max-width: 1120px; margin: 8px auto 0; padding: 0 20px; }
.cd-profile-back { color: #aeb6c2; text-decoration: none; font-weight: 700; }
.cd-profile-back:hover { color: var(--cd-yellow); }

/* "More comedians" strip on profiles */
.cd-profile-more {
	max-width: 1120px; margin: 24px auto 0; padding: 40px 20px 0;
	border-top: 1px solid #2b3441;
}
.cd-profile-more .cd-comedians-grid { margin-top: 4px; }

/* Performer name links on event pages */
.cd-perf-link { color: inherit; text-decoration: none; }
.cd-perf-link:hover { color: #E5534B; text-decoration: underline; }

/* Subscribe form (shown when there are no upcoming shows) */
.cd-subscribe { margin-top: 18px; padding-top: 18px; border-top: 1px solid #2b3441; }
.cd-subscribe-label { display: block; font-weight: 700; color: #fff; margin-bottom: 10px; font-size: .95rem; }
.cd-subscribe-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cd-subscribe-email {
	flex: 1 1 160px; min-width: 0; padding: 11px 14px; border-radius: 10px;
	border: 2px solid transparent; background: #fff; font-size: .95rem; font-family: inherit;
}
.cd-subscribe-email:focus { outline: none; border-color: var(--cd-yellow); }
.cd-subscribe-btn {
	flex: 0 0 auto; padding: 11px 18px; font-size: .9rem;
	background: var(--cd-red) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 4px 4px 0 var(--cd-yellow) !important;
}
.cd-subscribe-btn:hover { background: var(--cd-red-2) !important; }
.cd-subscribe-btn:disabled { opacity: .6; cursor: default; }
.cd-subscribe-msg { margin: 10px 0 0; font-size: .9rem; color: var(--cd-yellow); }
.cd-subscribe-msg.is-error { color: #ff9a94; }
.cd-subscribe.is-done .cd-subscribe-row, .cd-subscribe.is-done .cd-subscribe-label { display: none; }

/* Event-page performer videos (social proof) */
.cd-event-videos { margin: 0 0 30px; }
.cd-event-videos-title {
	font-weight: 800; font-size: 1.4rem; margin: 0 0 16px; color: inherit;
}
.cd-event-videos-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.cd-event-videos-grid.cd-evcount-2,
.cd-event-videos-grid.cd-evcount-3,
.cd-event-videos-grid.cd-evcount-4 { grid-template-columns: repeat(2, 1fr); }
.cd-event-video { display: flex; flex-direction: column; gap: 8px; }
.cd-event-video-name { font-weight: 700; text-decoration: none; color: inherit; }
.cd-event-video-name:hover { color: var(--cd-red); }
@media (max-width: 680px) {
	.cd-event-videos-grid.cd-evcount-2,
	.cd-event-videos-grid.cd-evcount-3,
	.cd-event-videos-grid.cd-evcount-4 { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.cd-comedians-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.cd-comedians-hero { padding-top: 104px; }
	.cd-profile-top {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 24px;
		padding-top: 104px;
	}
	.cd-profile-media { width: min(360px, 86vw); max-width: 360px; margin: 0 auto; }
	.cd-profile-head { align-items: center; }
	.cd-profile-topcta { align-self: center; }
	.cd-profile-columns { grid-template-columns: 1fr; gap: 8px; }
	.cd-upcoming { position: static; }
}
@media (max-width: 680px) {
	.cd-comedians-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.cd-comedians-controls { flex-direction: column; align-items: stretch; }
	.cd-comedians-az { justify-content: center; }
	.cd-comedians-wrap .cd-comedians-search { flex: 0 0 auto; width: 100%; max-width: none; }
	.cd-card-name { font-size: 1rem; }
}
@media (max-width: 420px) {
	.cd-comedians-grid { grid-template-columns: 1fr 1fr; }
	.cd-card-snippet { display: none; }
}
