/* OndeDanse V2.7 — design system. Loaded after catalog-hub.css. */
body.cdl-ondedanse-hub,
.cdl-hub {
	--od-bg: #070614;
	--od-surface: #16132c;
	--od-surface-glass: rgba(10, 8, 22, 0.55);
	--od-text: #fff8ff;
	--od-muted: #ddd4ea;
	--od-magenta: #e84c9a;
	--od-prune: #2a1030;
	--od-radius-sm: 10px;
	--od-radius-md: 16px;
	--od-radius-lg: 22px;
	--od-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
	--od-content-max: 1440px;
	--od-gutter: clamp(1rem, 3.2vw, 2.4rem);
	--od-safe-bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px));
	--od-display: Georgia, "Palatino Linotype", Palatino, serif;
	--od-heading: Georgia, Palatino, serif;
	--od-body: system-ui, -apple-system, "Segoe UI", sans-serif;
	--od-meta: system-ui, -apple-system, "Segoe UI", sans-serif;
	--cdl-content-max: var(--od-content-max);
	--cdl-max: var(--od-content-max);
	--cdl-theater-max: 1480px;
}
.cdl-hub {
	background:
		radial-gradient(920px 420px at 8% -8%, rgba(232, 76, 154, 0.16), transparent 58%),
		radial-gradient(720px 360px at 92% 0%, rgba(91, 44, 138, 0.22), transparent 52%),
		var(--od-bg);
	color: var(--od-text);
	font-family: var(--od-body);
	padding-bottom: var(--od-safe-bottom);
}

/* Header — compact premium grid */
.cdl-hub__chrome {
	background: rgba(7, 6, 20, 0.78);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(244, 238, 248, 0.07);
}
body.cdl-ondedanse-hub--home .cdl-hub__chrome--home {
	background: linear-gradient(180deg, rgba(7, 6, 20, 0.42), transparent 88%);
	border-bottom-color: transparent;
	backdrop-filter: none;
}
body.cdl-ondedanse-hub--home .cdl-hub__chrome--home.is-scrolled {
	background: rgba(7, 6, 20, 0.88);
	backdrop-filter: blur(16px);
}
.cdl-hub__chrome-inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(140px, 240px) auto auto;
	grid-template-areas: "mark nav search launch profile";
	align-items: center;
	gap: 0.45rem 0.85rem;
	max-width: var(--od-content-max);
	margin: 0 auto;
	padding: 0.42rem var(--od-gutter);
	position: relative;
}
.cdl-lockup { grid-area: mark; }
.cdl-hub__nav {
	grid-area: nav;
	padding: 0;
	margin: 0;
	max-width: none;
	justify-content: center;
	overflow: visible;
}
.cdl-hub__search-toggle {
	display: none;
	grid-area: search;
}
.cdl-hub__search {
	grid-area: search;
	flex: 1 1 auto;
	max-width: none;
	margin: 0;
	width: 100%;
}
.cdl-hub__launch { grid-area: launch; }
.cdl-switcher { grid-area: profile; justify-self: end; }
.cdl-hub__nav-link {
	min-height: 40px;
	padding: 0 0.8rem;
	font-size: 0.92rem;
	background: transparent;
	border-color: transparent;
}
.cdl-hub__nav-link.is-active {
	background: rgba(232, 76, 154, 0.18);
	border-color: rgba(232, 76, 154, 0.4);
}
.cdl-hub__btn--launch {
	white-space: nowrap;
	min-height: 40px;
	padding: 0 1rem;
	font-size: 0.9rem;
}
.cdl-hub__profile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.7rem;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 650;
	background: rgba(244, 238, 248, 0.08);
}

@media (max-width: 1099px) {
	.cdl-hub__chrome-inner {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto auto;
		grid-template-areas:
			"mark search launch profile"
			"nav nav nav nav";
		padding: 0.45rem 0.85rem 0.35rem;
		gap: 0.35rem 0.5rem;
	}
	.cdl-hub__nav {
		overflow-x: auto;
		justify-content: flex-start;
		padding: 0 0.15rem 0.2rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		width: auto;
		order: unset;
	}
	.cdl-lockup__by { display: none; }
	.cdl-lockup { max-width: min(48vw, 168px); }
	.cdl-lockup__od { font-size: 1.08rem; }
	body.cdl-ondedanse-shell .cdl-hub__btn--launch,
	.cdl-hub__btn--launch {
		width: 42px !important;
		min-width: 42px !important;
		max-width: 42px;
		height: 42px;
		min-height: 42px;
		padding: 0 !important;
		font-size: 0 !important;
		line-height: 0;
		overflow: hidden;
		flex: 0 0 42px;
		justify-content: center;
		white-space: nowrap;
	}
	body.cdl-ondedanse-shell .cdl-hub__btn--launch::after,
	.cdl-hub__btn--launch::after {
		content: '+';
		font-size: 1.35rem;
		line-height: 42px;
		font-weight: 800;
		color: #fff;
	}
	.cdl-hub__search-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		justify-self: end;
		width: 42px;
		height: 42px;
		min-width: 42px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: rgba(244, 238, 248, 0.08);
		color: var(--od-text);
		cursor: pointer;
	}
	.cdl-hub__search {
		display: none;
		position: absolute;
		left: 0.45rem;
		right: 0.45rem;
		top: 0.28rem;
		z-index: 60;
		grid-area: auto;
		width: auto;
		max-width: none;
		min-width: 0;
		margin: 0;
		padding: 0.2rem 0.35rem 0.2rem 0.55rem;
		background: rgba(7, 6, 20, 0.98);
		border: 1px solid rgba(244, 238, 248, 0.12);
		border-radius: 999px;
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	}
	.cdl-hub__chrome.is-search-open .cdl-hub__search {
		display: flex;
		align-items: center;
		gap: 0.35rem;
	}
	.cdl-hub__chrome.is-search-open .cdl-lockup,
	.cdl-hub__chrome.is-search-open .cdl-hub__launch,
	.cdl-hub__chrome.is-search-open .cdl-switcher,
	.cdl-hub__chrome.is-search-open .cdl-hub__search-toggle {
		visibility: hidden;
		pointer-events: none;
	}
	.cdl-hub__search input {
		min-width: 0;
		flex: 1 1 auto;
	}
	.cdl-hub__search-close { display: inline-flex; }
}

/* Hero — 55–65vh, directional veil, catalog peek */
.cdl-hub__hero--billboard {
	min-height: 320px;
	height: min(62vh, 620px);
	max-height: 680px;
}
@media (min-width: 900px) {
	.cdl-hub__hero--billboard {
		min-height: 380px;
		height: min(60vh, 640px);
	}
}
.cdl-hub__hero--billboard .cdl-hub__hero-veil {
	background:
		linear-gradient(90deg, rgba(7, 6, 20, 0.78) 0%, rgba(7, 6, 20, 0.28) 38%, rgba(7, 6, 20, 0.02) 68%),
		linear-gradient(180deg, rgba(7, 6, 20, 0.12) 0%, rgba(7, 6, 20, 0) 42%, rgba(7, 6, 20, 0.72) 100%);
}
.cdl-hub__hero-body {
	max-width: var(--od-content-max);
	margin: 0 auto;
	padding: 2.4rem var(--od-gutter) 4.2rem;
	align-self: center;
	width: 100%;
}
.cdl-hub__hero-body > * {
	max-width: min(34rem, 46vw);
}
@media (max-width: 720px) {
	.cdl-hub__hero-body > * { max-width: 18rem; }
}
.cdl-hub__wordmark {
	font-family: var(--od-display);
	font-size: clamp(1.7rem, 4.6vw, 3.2rem);
	margin: 0 0 0.2rem;
}
.cdl-hub__wordmark-play { display: none; }
.cdl-hub__hero--billboard .cdl-hub__hero-title {
	font-family: var(--od-heading);
	font-size: clamp(1.28rem, 2.6vw, 2.05rem);
	max-width: 16ch;
	line-height: 1.18;
}
.cdl-hub__hero--billboard .cdl-hub__lead {
	max-width: 32rem;
	font-size: 0.98rem;
	color: var(--od-muted);
}
.cdl-hub__kicker {
	font-family: var(--od-meta);
	font-size: 0.7rem;
	letter-spacing: 0.38em;
}
.cdl-hub__hero-side {
	opacity: 0.55;
	font-size: 0.68rem;
	letter-spacing: 0.28em;
	max-width: 7rem;
	right: var(--od-gutter);
}
.cdl-hub__hero-script { display: none; }
.cdl-hub__feature-kicker { display: none; }

.cdl-hub__rows {
	position: relative;
	z-index: 3;
	margin-top: -3.25rem;
	max-width: var(--od-content-max);
	margin-left: auto;
	margin-right: auto;
	padding: 0 var(--od-gutter) 2rem;
}
.cdl-hub__row {
	margin: 0 0 1.6rem;
}
.cdl-hub__row-head {
	margin-bottom: 0.65rem;
}
.cdl-hub__row-head h2 {
	font-family: var(--od-heading);
	font-size: clamp(1.15rem, 2vw, 1.45rem);
}

/* Adaptive density */
.cdl-hub__row--calm .cdl-hub__calm {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1.1rem;
	border-radius: var(--od-radius-md);
	background: linear-gradient(90deg, rgba(232, 76, 154, 0.16), rgba(42, 16, 48, 0.55));
	border: 1px solid rgba(244, 238, 248, 0.08);
}
.cdl-hub__calm-copy {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 600;
}
@media (min-width: 900px) {
	.cdl-hub__row--duo .cdl-hub__track {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
		overflow: visible;
	}
	.cdl-hub__row--duo .cdl-hub__track > li {
		flex: none;
		width: auto;
		max-width: none;
		min-width: 0;
	}
	.cdl-hub__row--duo .cdl-hub-card__media {
		aspect-ratio: 16 / 9;
		min-height: 280px;
		height: auto;
	}
	.cdl-hub__row--sparse:not(.cdl-hub__row--duo) .cdl-hub__track > li {
		width: min(560px, 86vw);
		max-width: 600px;
	}
	.cdl-hub__row--live:not(.cdl-hub__row--calm) .cdl-hub__track > li {
		width: min(340px, 70vw);
		max-width: 380px;
	}
}
@media (max-width: 899px) {
	.cdl-hub__row--sparse .cdl-hub__track > li,
	.cdl-hub__row--duo .cdl-hub__track > li {
		flex: 0 0 86vw;
		width: 86vw;
		max-width: 86vw;
	}
}

/* Cards — image first, one title */
.cdl-hub-card {
	background: transparent;
	position: relative;
}
.cdl-hub-card__media {
	border-radius: var(--od-radius-md);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--od-prune);
	box-shadow: var(--od-shadow);
}
.cdl-hub-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cdl-hub-card__overlay {
	background: linear-gradient(180deg, transparent 35%, rgba(7, 6, 20, 0.88) 100%);
	padding: 2.4rem 0.85rem 0.75rem;
}
.cdl-hub-card__title--on {
	font-family: var(--od-heading);
	font-size: 1.02rem;
	line-height: 1.2;
	margin: 0;
}
.cdl-hub-card--graphic .cdl-hub-card__title--on { display: none; }
.cdl-hub-card--graphic .cdl-hub-card__badge { display: none; }
.cdl-hub-card--graphic .cdl-hub-card__overlay {
	background: linear-gradient(180deg, transparent 70%, rgba(7, 6, 20, 0.35) 100%);
	padding-top: 1rem;
}
.cdl-hub-card__body {
	padding: 0.45rem 0.15rem 0;
}
.cdl-hub-card__meta,
.cdl-hub-card__handle,
.cdl-hub-card__dur,
.cdl-hub-detail__line,
.cdl-hub-detail__org {
	font-family: var(--od-meta);
	font-size: 0.86rem;
	color: var(--od-muted);
}
.cdl-hub-card__badge {
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	opacity: 0.92;
}
.cdl-hub-card .cdl-like {
	position: absolute;
	right: 0.45rem;
	bottom: 2.6rem;
	z-index: 3;
	min-width: 44px;
	min-height: 44px;
	background: transparent;
	border: 0;
	color: #fff;
}
.cdl-hub-card__audio {
	font-size: 0.68rem;
	opacity: 0.85;
}

/* Theater */
.cdl-theater__env {
	padding: 0.2rem 0 1rem;
}
.cdl-theater__env::before {
	content: "";
	position: absolute;
	inset: -30% -20% auto;
	height: 85%;
	background:
		radial-gradient(50% 60% at 50% 30%, rgba(232, 76, 154, 0.16), transparent 70%),
		radial-gradient(40% 50% at 80% 20%, rgba(91, 44, 138, 0.2), transparent 65%);
	pointer-events: none;
	z-index: 0;
}
.cdl-theater__glow {
	filter: blur(56px) saturate(1.2) brightness(0.38);
	opacity: 0.9;
}
.cdl-theater__stage {
	width: min(var(--cdl-theater-max), calc(100% - 2 * var(--od-gutter)));
}
.cdl-theater .cdl-hub-player.cdl-player {
	max-height: min(76vh, 820px) !important;
	border-radius: 14px;
	background: #05040d;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 70px rgba(232, 76, 154, 0.1);
}
.cdl-player__close {
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	background: rgba(7, 6, 20, 0.38);
	backdrop-filter: blur(8px);
}
body.cdl-ondedanse-hub .cdl-hub-player.cdl-player > .cdl-player__bigplay,
.cdl-player__bigplay {
	width: 58px;
	height: 58px;
	min-width: 58px;
	background: rgba(7, 6, 20, 0.42) !important;
	backdrop-filter: blur(10px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 28px rgba(232, 76, 154, 0.35);
}
.cdl-hub-player.cdl-player > .cdl-player__chrome {
	background: linear-gradient(180deg, transparent, rgba(7, 6, 20, 0.78));
	backdrop-filter: blur(8px);
}
.cdl-hub-player.cdl-player .cdl-player__btn {
	min-width: 44px;
	min-height: 44px;
	background: rgba(255, 255, 255, 0.07);
}
.cdl-hub-player.cdl-player .cdl-player__bar {
	height: 4px;
	accent-color: var(--od-magenta);
}
.cdl-player__viz {
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 4.6rem;
	z-index: 5;
	width: 84%;
	height: 56px;
	pointer-events: none;
	opacity: 0.7;
}
.cdl-player__session {
	margin: 0 0 0.2rem;
	font-family: var(--od-heading);
	font-size: 0.92rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f3c4de;
}
.cdl-player__audio-only {
	font-size: 0.8rem;
	opacity: 0.78;
}

/* Media Info Rail */
.cdl-hub-info {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.8rem 1.4rem;
	align-items: start;
	max-width: var(--cdl-theater-max);
	margin: 0 auto;
	padding: 0.85rem var(--od-gutter) 0.4rem;
}
.cdl-hub-info__main h1 {
	font-family: var(--od-heading);
	font-size: clamp(1.2rem, 2.2vw, 1.75rem);
	margin: 0.15rem 0 0.25rem;
}
.cdl-hub-info__actions {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 44px;
}
.cdl-hub-detail__org {
	font-size: 0.8rem;
	opacity: 0.78;
}
.cdl-like.is-pop .cdl-like__heart {
	animation: od-like-burst 0.38s ease;
}
@keyframes od-like-burst {
	0% { transform: scale(1); }
	40% { transform: scale(1.22); }
	100% { transform: scale(1); }
}
.cdl-like.is-on .cdl-like__heart { color: var(--od-magenta); }

.cdl-hub-detail .cdl-hub__row { max-width: var(--cdl-theater-max); margin-left: auto; margin-right: auto; padding: 0 var(--od-gutter); }

@media (max-width: 720px) {
	.cdl-hub-info { grid-template-columns: 1fr; }
	.cdl-hub__hero-body { padding: 2.2rem 1rem 3.4rem; }
	.cdl-hub__rows { margin-top: -2.4rem; padding-left: 0.85rem; padding-right: 0.85rem; }
	.cdl-hub__calm { flex-wrap: wrap; }
	.cdl-hub-card__title--on,
	.cdl-hub-card__meta,
	.cdl-hub-detail__line { font-size: 0.9rem; }
}
@media (max-width: 390px) {
	.cdl-hub__hero--billboard {
		min-height: 38vh;
		height: min(48vh, 380px);
	}
	.cdl-hub__lead { display: none; }
	.cdl-hub__hero-side { display: none; }
}
@media (min-width: 653px) and (max-width: 884px) {
	.cdl-hub__chrome-inner {
		grid-template-columns: auto minmax(0, 1fr) auto auto;
		grid-template-areas:
			"mark search launch profile"
			"nav nav nav nav";
	}
	.cdl-hub__hero--billboard { height: min(52vh, 520px); }
}

/* V2.7.1 — Calendanse Bridge (header only; V2.7 visual base preserved) */
.cdl-lockup {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 44px;
	max-width: min(46vw, 220px);
}
.cdl-lockup__parent {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	border-radius: 8px;
	background: rgba(244, 238, 248, 0.06);
}
.cdl-lockup__symbol {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}
.cdl-lockup__stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.05;
	min-width: 0;
}
.cdl-lockup__od {
	font-family: var(--od-display);
	font-size: clamp(1.12rem, 2vw, 1.42rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
	white-space: nowrap;
}
.cdl-lockup__by {
	font-size: 0.62rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(221, 212, 234, 0.72);
	text-decoration: none;
	margin-top: 0.08rem;
}
.cdl-hub__search-close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 40px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--od-text);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}
.cdl-switcher {
	position: relative;
}
.cdl-switcher__sum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	width: auto;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0 0.35rem 0 0.2rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(244, 238, 248, 0.08);
	color: var(--od-text);
	cursor: pointer;
	list-style: none;
}
.cdl-switcher__sum::-webkit-details-marker { display: none; }
.cdl-switcher__sum::marker { content: ""; }
.cdl-switcher__caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid rgba(244, 238, 248, 0.75);
	margin-left: 0.08rem;
}
.cdl-switcher[open] .cdl-switcher__caret { transform: rotate(180deg); }
.cdl-switcher__avatar {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	display: block;
}
.cdl-switcher__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.4rem);
	z-index: 10120;
	min-width: 220px;
	width: min(92vw, 280px);
	max-width: min(92vw, 280px);
	max-height: min(70vh, calc(100dvh - var(--od-safe-bottom, 5.6rem) - 4.5rem));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0.45rem 0.35rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
	border-radius: 14px;
	background: rgba(16, 13, 32, 0.98);
	border: 1px solid rgba(244, 238, 248, 0.1);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.cdl-switcher__close {
	position: sticky;
	top: 0;
	float: right;
	z-index: 1;
	width: 36px;
	height: 36px;
	margin: 0 0.15rem 0.15rem 0;
	border: 0;
	border-radius: 999px;
	background: rgba(244, 238, 248, 0.08);
	color: var(--od-text);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}
.cdl-switcher__group {
	margin: 0.35rem 0.7rem 0.2rem;
	font-size: 0.68rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(221, 212, 234, 0.55);
}
.cdl-switcher__group:first-of-type { margin-top: 0.1rem; }
.cdl-switcher__link {
	display: block;
	padding: 0.48rem 0.75rem;
	border-radius: 10px;
	color: var(--od-text);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 550;
}
.cdl-switcher__link:hover,
.cdl-switcher__link:focus-visible {
	background: rgba(232, 76, 154, 0.16);
}
.cdl-switcher__link--return {
	font-weight: 750;
	background: rgba(232, 76, 154, 0.12);
	margin: 0 0.2rem 0.25rem;
}
@media (max-width: 1099px) {
	.cdl-switcher__caret { display: none; }
	.cdl-switcher__sum {
		width: 44px;
		height: 44px;
		min-width: 44px;
		padding: 0;
	}
}
@media (min-width: 1100px) {
	.cdl-hub__chrome-inner {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) minmax(140px, 240px) auto auto;
		grid-template-areas: "mark nav search launch profile";
	}
	.cdl-hub__search-toggle,
	.cdl-hub__search-close { display: none; }
	.cdl-hub__search { display: flex; position: relative; }
}
@media (prefers-reduced-motion: reduce) {
	.cdl-like.is-pop .cdl-like__heart,
	.cdl-player__viz { animation: none !important; }
	.cdl-player__viz { display: none; }
}
.cdl-hub :focus-visible {
	outline: 2px solid var(--od-magenta);
	outline-offset: 3px;
}
