/* TED-inspired featured sections — APH TV brand tokens */

.aph-tv-spotlight,
.aph-tv-section,
.aph-tv-pills {
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Topic pills */
.aph-tv-pills {
	padding: 0 32px 8px;
	border-bottom: 1px solid #ece8e1;
	background: #fff;
}

.aph-tv-pills__track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 14px 0 16px;
}

.aph-tv-pills__track::-webkit-scrollbar {
	display: none;
}

.aph-tv-pills__item {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid #ddd8d0;
	background: #fff;
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.aph-tv-pills__item:hover {
	background: #f5f1ea;
	border-color: #002b45;
	color: #1a1a1a;
}

.aph-tv-pills__item.is-active {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

/* Spotlight (hub hero) */
.aph-tv-spotlight {
	padding: 36px 32px 28px;
	background: #fff;
	border-bottom: 1px solid #ece8e1;
}

.aph-tv-spotlight__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 52%);
	gap: 32px;
	align-items: start;
	margin-bottom: 28px;
}

.aph-tv-spotlight__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6f6a63;
}

.aph-tv-spotlight__title {
	margin: 0 0 14px;
	font-size: clamp(28px, 3.2vw, 42px);
	line-height: 1.08;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.aph-tv-spotlight__desc {
	margin: 0 0 22px;
	max-width: 42ch;
	font-size: 15px;
	line-height: 1.6;
	color: #6f6a63;
}

.aph-tv-spotlight__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.aph-tv-spotlight__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 132px;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	background: #1a1a1a;
	color: #fff !important;
	border: 1px solid #1a1a1a;
	transition: background 0.15s;
}

.aph-tv-spotlight__cta:hover {
	background: #000;
	color: #fff;
}

.aph-tv-spotlight__cta--ghost {
	background: #fff;
	color: #1a1a1a;
	border-color: #1a1a1a;
}

.aph-tv-spotlight__cta--ghost:hover {
	background: #f5f1ea;
	color: #1a1a1a;
}

.aph-tv-spotlight__row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	padding-top: 8px;
	border-top: 1px solid #ece8e1;
}

/* Section blocks */
.aph-tv-section {
	padding: 36px 32px;
	background: #fff;
	border-bottom: 1px solid #ece8e1;
}

.aph-tv-section:nth-child(even) {
	background: #faf8f5;
}

.aph-tv-section__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px 24px;
	align-items: start;
	margin-bottom: 22px;
}

.aph-tv-section__head-copy {
	max-width: 720px;
}

.aph-tv-section__title {
	margin: 0 0 8px;
	font-size: clamp(24px, 2.8vw, 32px);
	line-height: 1.12;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: -0.01em;
}

.aph-tv-section__desc {
	margin: 0;
	max-width: 52ch;
	font-size: 14px;
	line-height: 1.65;
	color: #6f6a63;
}

.aph-tv-section__more {
	align-self: start;
	font-size: 13px;
	font-weight: 600;
	color: #6f6a63;
	white-space: nowrap;
	padding-top: 6px;
}

.aph-tv-section__more:hover {
	color: #1a1a1a;
}

.aph-tv-section__mosaic {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(220px, 1fr);
	gap: 18px;
	margin-bottom: 18px;
}

.aph-tv-section__stack {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 18px;
}

.aph-tv-section__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

/* Video cards */
.aph-tv-vcard {
	display: block;
	color: inherit;
	text-decoration: none;
}

.aph-tv-vcard__thumb {
	position: relative;
	display: block;
	background: #ddd7cc center/cover no-repeat;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.aph-tv-vcard__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 16px 18px 14px;
	background: linear-gradient(
		180deg,
		rgba(0, 43, 69, 0.2) 0%,
		rgba(0, 43, 69, 0.45) 42%,
		rgba(0, 43, 69, 0.92) 100%
	);
	color: #fff;
	pointer-events: none;
}

.aph-tv-vcard__overlay-show {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.aph-tv-vcard__overlay-badge {
	display: block;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
}

.aph-tv-vcard__overlay-title {
	display: block;
	margin-bottom: auto;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(16px, 2.2vw, 28px);
	font-weight: 700;
	line-height: 1.22;
	color: #fff;
}

.aph-tv-vcard__overlay-rule {
	display: block;
	width: 80px;
	height: 1px;
	margin: 10px 0 8px;
	background: rgba(255, 255, 255, 0.45);
}

.aph-tv-vcard__overlay-foot {
	display: block;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.72);
}

.aph-tv-vcard__play {
	position: absolute;
	left: 10px;
	bottom: 10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #1a1a1a;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	opacity: 0;
	transition: opacity 0.15s;
}

.aph-tv-vcard__play svg {
	width: 12px;
	height: 12px;
	margin-left: 2px;
}

.aph-tv-vcard:hover .aph-tv-vcard__play {
	opacity: 1;
}

.aph-tv-vcard__body {
	display: block;
	padding: 10px 2px 0;
}

.aph-tv-vcard__eyebrow {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6f6a63;
}

.aph-tv-vcard__title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: #1a1a1a;
}

.aph-tv-vcard__meta {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #6f6a63;
}

/* Variants */
.aph-tv-vcard--hero .aph-tv-vcard__thumb {
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.aph-tv-vcard--hero .aph-tv-vcard__body {
	display: none;
}

.aph-tv-vcard--lead .aph-tv-vcard__body,
.aph-tv-vcard--stack .aph-tv-vcard__body,
.aph-tv-vcard--grid .aph-tv-vcard__body,
.aph-tv-vcard--pick .aph-tv-vcard__body {
	display: none;
}

.aph-tv-vcard--grid .aph-tv-vcard__overlay,
.aph-tv-vcard--pick .aph-tv-vcard__overlay {
	padding: 10px 12px 8px;
	background: linear-gradient(
		180deg,
		rgba(0, 43, 69, 0.15) 0%,
		rgba(0, 43, 69, 0.55) 52%,
		rgba(0, 43, 69, 0.94) 100%
	);
}

.aph-tv-vcard--grid .aph-tv-vcard__overlay-show,
.aph-tv-vcard--pick .aph-tv-vcard__overlay-show {
	font-size: 9px;
	margin-bottom: 4px;
}

.aph-tv-vcard--grid .aph-tv-vcard__overlay-badge,
.aph-tv-vcard--pick .aph-tv-vcard__overlay-badge {
	font-size: 9px;
	margin-bottom: 6px;
}

.aph-tv-vcard--grid .aph-tv-vcard__overlay-title,
.aph-tv-vcard--pick .aph-tv-vcard__overlay-title {
	font-size: clamp(12px, 1.4vw, 15px);
	line-height: 1.28;
	margin-bottom: auto;
}

.aph-tv-vcard--grid .aph-tv-vcard__overlay-rule,
.aph-tv-vcard--pick .aph-tv-vcard__overlay-rule {
	width: 48px;
	height: 2px;
	margin: 6px 0 4px;
}

.aph-tv-vcard--grid .aph-tv-vcard__overlay-foot,
.aph-tv-vcard--pick .aph-tv-vcard__overlay-foot {
	font-size: 9px;
}

.aph-tv-vcard--stack .aph-tv-vcard__overlay {
	padding: 12px 14px 10px;
}

.aph-tv-vcard--stack .aph-tv-vcard__overlay-title {
	font-size: 15px;
	line-height: 1.28;
}

.aph-tv-vcard--hero .aph-tv-vcard__overlay {
	justify-content: flex-end;
	padding-bottom: 18px;
}

.aph-tv-vcard--hero .aph-tv-vcard__play {
	opacity: 1;
	width: 44px;
	height: 44px;
	left: 50%;
	top: 50%;
	bottom: auto;
	transform: translate(-50%, -50%);
}

.aph-tv-vcard--hero .aph-tv-vcard__play svg {
	width: 16px;
	height: 16px;
}

.aph-tv-vcard--pick .aph-tv-vcard__thumb,
.aph-tv-vcard--lead .aph-tv-vcard__thumb,
.aph-tv-vcard--stack .aph-tv-vcard__thumb,
.aph-tv-vcard--grid .aph-tv-vcard__thumb {
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.aph-tv-vcard--lead .aph-tv-vcard__thumb {
	min-height: 0;
}

.aph-tv-vcard--placeholder {
	aspect-ratio: 16 / 9;
	background: #e8e4dc;
}

/* Show archive — series spotlight */
.aph-sa-series-spotlight {
	padding: 36px 40px 28px;
	background: #fff;
	border-bottom: 1px solid #ece8e1;
}

.aph-sa-series-spotlight .aph-tv-spotlight__title {
	text-transform: none;
	letter-spacing: -0.02em;
}

.aph-sa-series-spotlight .aph-tv-spotlight__top {
	margin-bottom: 0;
}

.aph-sa-panel-featured {
	padding-top: 4px;
}

.aph-sa-panel-featured .aph-tv-section {
	padding-left: 0;
	padding-right: 0;
	border-bottom: 0;
	background: transparent;
}

.aph-sa-panel-featured .aph-tv-section:nth-child(even) {
	background: transparent;
}

.aph-sa-panel-featured .aph-tv-section__head {
	margin-bottom: 18px;
}

/* Legacy hub rows — keep minimal for editor compat */
.aph-tv-home-seasons {
	background: #fff;
	padding: 28px 32px 34px;
	border-bottom: 1px solid #ece8e1;
}

.aph-tv-home-seasons__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.aph-tv-home-seasons h2 {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
}

.aph-tv-home-seasons__sub {
	margin: 0;
	font-size: 13px;
	color: #6f6a63;
	line-height: 1.5;
}

.aph-tv-home-seasons__nav {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.aph-tv-seasons-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #ddd8d0 !important;
	background: #fff !important;
	color: #1a1a1a !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.aph-tv-home-seasons__track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.aph-tv-home-seasons__track::-webkit-scrollbar {
	display: none;
}

@media (max-width: 1024px) {
	.aph-tv-spotlight__top,
	.aph-tv-section__mosaic {
		grid-template-columns: 1fr;
	}

	.aph-tv-spotlight__row,
	.aph-tv-section__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aph-tv-section__stack {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto;
	}
}

@media (max-width: 640px) {
	.aph-tv-spotlight,
	.aph-tv-section,
	.aph-tv-pills {
		padding-left: 20px;
		padding-right: 20px;
	}

	.aph-tv-spotlight__row,
	.aph-tv-section__grid,
	.aph-tv-section__stack {
		grid-template-columns: 1fr;
	}

	.aph-tv-section__head {
		grid-template-columns: 1fr;
	}
}
