/**
 * Drum Sheet page — new design (Figma "Drum Sheet", Oct 2026).
 * Blocks: [dt_sheet_player], [dt_song_offer], version panel + card tweaks.
 * Loaded on drum sheet pages only (inc/features/drum-sheet-design.php).
 */

:root {
	--dt-ds-cyan: #00e7fd;
	--dt-ds-cyan-rgb: 0, 231, 253;
	--dt-ds-ink: #050c0d;
	--dt-ds-panel: #0f1314;
	--dt-ds-line: #2b3134;
	--dt-ds-yellow: #ffe500;
	--dt-ds-yellow-rgb: 255, 229, 0;
	--dt-ds-radius: 10px;
}

/* ==========================================================================
   [dt_sheet_player] — buttons left, video right
   ========================================================================== */

.dt-player {
	display: grid;
	grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
	gap: 14px;
	align-items: stretch;
	font-family: 'Montserrat', sans-serif;
}

.dt-player__buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dt-player__btn {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 64px;
	padding: 10px 16px;
	margin: 0;
	background: var(--dt-ds-ink);
	border: 2px solid var(--dt-ds-cyan);
	border-radius: var(--dt-ds-radius);
	color: var(--dt-ds-cyan);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: box-shadow 0.2s, background-color 0.2s, transform 0.2s;
}

.dt-player__btn span {
	flex: 1;
}

.dt-player__btn .dt-ico {
	width: 30px;
	height: 30px;
	flex-shrink: 0;
}

.dt-player__btn .dt-ico-bg { fill: var(--dt-ds-cyan); }
.dt-player__btn .dt-ico-fg { fill: var(--dt-ds-ink); }

.dt-player__btn:hover,
.dt-player__btn:focus-visible {
	background: #082024;
	color: var(--dt-ds-cyan);
	box-shadow: 0 0 14px rgba(var(--dt-ds-cyan-rgb), 0.35);
	outline: none;
}

.dt-player__btn.is-active {
	box-shadow: 0 0 0 1px var(--dt-ds-cyan), 0 0 18px rgba(var(--dt-ds-cyan-rgb), 0.45);
	background: #0a2a2e;
}

.dt-player__btn--solid,
.dt-player__btn--solid:hover,
.dt-player__btn--solid:focus-visible {
	background: var(--dt-ds-cyan);
	color: var(--dt-ds-ink);
}

.dt-player__btn--solid .dt-ico-bg { fill: var(--dt-ds-ink); }
.dt-player__btn--solid .dt-ico-fg { fill: var(--dt-ds-cyan); }

.dt-player__btn--solid:hover {
	box-shadow: 0 0 18px rgba(var(--dt-ds-cyan-rgb), 0.55);
}

.dt-player__screen {
	position: relative;
	aspect-ratio: 16 / 9;
	align-self: center;
	width: 100%;
	background: #000;
	border: 1px solid #3a4150;
	border-radius: var(--dt-ds-radius);
	overflow: hidden;
}

.dt-player__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	background: #000;
}

@media (max-width: 767px) {
	.dt-player {
		grid-template-columns: 1fr;
	}
	.dt-player__screen {
		order: -1;
	}
	.dt-player__buttons {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.dt-player__btn {
		min-height: 56px;
		gap: 8px;
		padding: 8px 10px;
		font-size: 13px;
	}
	.dt-player__btn .dt-ico {
		width: 24px;
		height: 24px;
	}
}

/* ==========================================================================
   "Choose your Drum Sheet Version" panel + cards
   ========================================================================== */

.dt-version-panel {
	background: var(--dt-ds-panel);
	border: 1px solid var(--dt-ds-line);
	border-radius: 12px;
}

.dsv-version-card {
	border-color: #262c33;
}

.dsv-version-badge {
	border-radius: 6px;
	text-transform: uppercase;
}

.dsv-btn-action {
	padding: 14px 16px;
	font-size: 15px;
	border-radius: 8px;
}

.dsv-btn-action svg {
	width: 1.15rem;
}

/* ==========================================================================
   [dt_song_offer] — "Master This Song for Just $7.90"
   ========================================================================== */

.dt-offer {
	display: grid;
	grid-template-columns: 1.15fr 1.2fr 1fr;
	align-items: center;
	margin-top: 8px;
	padding: 26px 8px;
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(var(--dt-ds-cyan-rgb), 0.08), transparent 55%),
		#031415;
	border: 2px solid var(--dt-ds-cyan);
	border-radius: 18px;
	box-shadow: 0 0 22px rgba(var(--dt-ds-cyan-rgb), 0.45), inset 0 0 22px rgba(var(--dt-ds-cyan-rgb), 0.12);
	color: #fff;
	font-family: 'Montserrat', sans-serif;
}

.dt-offer__col {
	padding: 0 22px;
}

.dt-offer__col + .dt-offer__col {
	border-left: 1px solid rgba(var(--dt-ds-cyan-rgb), 0.35);
}

.dt-offer__badge {
	display: inline-block;
	padding: 3px 12px;
	border: 1.5px solid var(--dt-ds-yellow);
	border-radius: 6px;
	color: var(--dt-ds-yellow);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.dt-offer__lead {
	margin: 12px 0 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}

.dt-offer__amount {
	margin: 2px 0 6px;
	color: var(--dt-ds-cyan);
	font-size: 54px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	text-shadow: 0 0 18px rgba(var(--dt-ds-cyan-rgb), 0.35);
}

.dt-offer__sub {
	margin: 0;
	color: #d7dee0;
	font-size: 13px;
	line-height: 1.45;
}

.dt-offer__list {
	list-style: none;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dt-offer__list li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #e6eced;
	font-size: 13px;
	line-height: 1.45;
}

.dt-offer .dt-ico {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
}

.dt-offer .dt-ico-bg { fill: var(--dt-ds-cyan); }
.dt-offer .dt-ico-stroke { stroke: var(--dt-ds-ink); }

.dt-offer__action {
	text-align: center;
}

.dt-offer__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 16px;
	background: var(--dt-ds-yellow);
	border-radius: 6px;
	color: #0b0b0b;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.15;
	text-align: left;
	text-decoration: none;
	text-transform: uppercase;
	transition: box-shadow 0.2s, transform 0.2s;
}

.dt-offer__cta .dt-ico {
	width: 38px;
	height: 38px;
	color: #0b0b0b;
}

.dt-offer__cta:hover,
.dt-offer__cta:focus-visible {
	color: #0b0b0b;
	box-shadow: 0 0 22px rgba(var(--dt-ds-yellow-rgb), 0.55);
	transform: translateY(-1px);
	outline: none;
}

.dt-offer__note {
	margin: 12px 0 0;
	color: #cfd6d8;
	font-size: 12px;
	line-height: 1.45;
}

/* Bought already: one row with the access date and a link to the lesson. */
.dt-offer--owned {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
}

.dt-offer__owned-text {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	font-weight: 600;
}

.dt-offer--owned .dt-offer__cta {
	width: auto;
}

@media (max-width: 1024px) {
	.dt-offer {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 24px 6px;
		text-align: center;
	}
	.dt-offer__col + .dt-offer__col {
		border-left: 0;
		border-top: 1px solid rgba(var(--dt-ds-cyan-rgb), 0.35);
		padding-top: 22px;
	}
	.dt-offer__list li {
		text-align: left;
	}
	.dt-offer__list {
		max-width: 360px;
		margin: 0 auto;
	}
	.dt-offer__cta {
		max-width: 360px;
	}
}

/* Links: beat the kit's global link color (.elementor-kit-* a). */
.dt-player a.dt-player__btn--solid,
.dt-player a.dt-player__btn--solid:visited,
.dt-player a.dt-player__btn--solid:hover {
	color: var(--dt-ds-ink);
}

.dt-offer a.dt-offer__cta,
.dt-offer a.dt-offer__cta:visited,
.dt-offer a.dt-offer__cta:hover,
.dt-offer a.dt-offer__cta:focus-visible {
	color: #0b0b0b;
}

/* CTA label on two lines like Figma ("START MASTERING / THIS SONG") in the narrow 3-column layout. */
@media (min-width: 1025px) {
	.dt-offer {
		grid-template-columns: 1.1fr 1.15fr 1.05fr;
	}
	.dt-offer__action {
		padding: 0 16px;
	}
	.dt-offer__cta {
		gap: 8px;
		padding: 12px 12px;
		font-size: 14px;
		letter-spacing: 0;
	}
	.dt-offer__cta .dt-ico {
		width: 32px;
		height: 32px;
	}
}

@media (min-width: 1025px) {
	.dt-offer {
		padding: 24px 4px;
	}
	.dt-offer__col {
		padding: 0 16px;
	}
	.dt-offer__action {
		padding: 0 12px;
	}
	.dt-offer__cta {
		padding: 11px 10px;
		font-size: 13.5px;
	}
	.dt-offer__cta .dt-ico {
		width: 28px;
		height: 28px;
	}
}

/* ==========================================================================
   Player buttons scale with the space they get (the middle column is
   ~220–330px wide depending on the screen). The theme reset sets
   button { white-space: nowrap } — allow wrapping inside these buttons.
   ========================================================================== */

.dt-player {
	container-type: inline-size;
	container-name: dt-player;
}

.dt-player__btn,
.dt-player__btn span {
	white-space: normal;
	overflow-wrap: anywhere;
	min-width: 0;
}

@container dt-player (min-width: 600px) {
	.dt-player__btn {
		gap: clamp(8px, 1.6cqi, 14px);
		padding: 8px clamp(10px, 2cqi, 16px);
		font-size: clamp(13px, 2.15cqi, 16px);
	}
	.dt-player__btn .dt-ico {
		width: clamp(22px, 4cqi, 30px);
		height: clamp(22px, 4cqi, 30px);
	}
}

/* Player video thumbnail (video-thumbs.php) fills the screen. */
.dt-player__screen > .dt-vthumb {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	border-radius: 0;
}

/* ==========================================================================
   Shay's notes (Oct 30): buttons line up with the video top and bottom, and
   the labels stay on one line. The video sets the row height; the button
   column takes exactly that height (height:0 + min-height:100% keeps it from
   growing the row) and shares it between the buttons. Below 1024px the
   player is too narrow for that, so the video goes on top (as on phones).
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
	.dt-player {
		grid-template-columns: 1fr;
	}
	.dt-player__screen {
		order: -1;
	}
	.dt-player__buttons {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.dt-player__btn {
		min-height: 52px;
		font-size: 14px;
	}
}

@media (min-width: 1024px) {
	.dt-player {
		grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
		align-items: stretch;
	}
	.dt-player__screen {
		align-self: start;
	}
	.dt-player__buttons {
		height: 0;
		min-height: 100%;
		gap: clamp(6px, 1.4cqi, 12px);
	}
	.dt-player__btn {
		flex: 1 1 0;
		min-height: 0;
		padding-block: 2px;
	}
	.dt-player__btn,
	.dt-player__btn span {
		white-space: nowrap;
		overflow-wrap: normal;
	}
	.dt-player__btn span {
		overflow: hidden;
		text-overflow: ellipsis;
		text-align: left;
	}
}

@media (min-width: 1024px) {
@container dt-player (min-width: 480px) {
	.dt-player__btn {
		gap: clamp(6px, 1.3cqi, 12px);
		padding-inline: clamp(8px, 1.6cqi, 14px);
		font-size: clamp(10.5px, 1.78cqi, 15px);
	}
	.dt-player__btn .dt-ico {
		width: clamp(18px, 3.6cqi, 28px);
		height: clamp(18px, 3.6cqi, 28px);
	}
}
}

/* ==========================================================================
   [dt_song_offer] v2 — Shay's mockup (Oct 30): copy + yellow button on the
   left; Original / Simplified sheets and a tablet with the player on the right.
   ========================================================================== */

.dt-buy {
	container-type: inline-size;
	container-name: dt-buy;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	margin-top: 8px;
	padding: 22px 20px;
	background:
		radial-gradient(90% 120% at 100% 0%, rgba(var(--dt-ds-cyan-rgb), 0.10), transparent 60%),
		linear-gradient(180deg, #072326 0%, #031415 100%);
	border: 2px solid var(--dt-ds-cyan);
	border-radius: 18px;
	box-shadow: 0 0 22px rgba(var(--dt-ds-cyan-rgb), 0.35);
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	overflow: hidden;
}

.dt-buy p { margin: 0; }

.dt-buy__info {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.dt-buy__title {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
}

.dt-buy__amount {
	margin-top: 2px !important;
	color: var(--dt-ds-cyan);
	font-size: 58px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	text-shadow: 0 0 18px rgba(var(--dt-ds-cyan-rgb), 0.3);
}

.dt-buy__editions {
	margin-top: 6px !important;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.15;
}

/* Two lines, each: icon | text (Nov 15 mockup). */
.dt-buy__what {
	display: grid;
	gap: 12px;
	margin: 16px 0 20px;
	padding: 0;
	list-style: none;
}

.dt-buy__what li {
	display: flex;
	align-items: center;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
}

.dt-buy__what-ico {
	flex-shrink: 0;
	width: 30px;
	height: 36px;
	color: var(--dt-ds-cyan);
}

.dt-buy__what li span {
	margin-left: 14px;
	padding: 2px 0 2px 14px;
	border-left: 1.5px solid rgba(var(--dt-ds-cyan-rgb), 0.6);
}

.dt-buy a.dt-buy__cta,
.dt-buy a.dt-buy__cta:visited {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: 420px;
	padding: 10px 18px 10px 10px;
	background: var(--dt-ds-yellow);
	border-radius: 14px;
	color: #0b0b0b;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: box-shadow 0.2s, transform 0.2s;
}

.dt-buy a.dt-buy__cta:hover,
.dt-buy a.dt-buy__cta:focus-visible {
	color: #0b0b0b;
	box-shadow: 0 0 22px rgba(var(--dt-ds-yellow-rgb), 0.55);
	transform: translateY(-1px);
	outline: none;
}

.dt-buy__cta span { flex: 1; }

.dt-buy__cta-play {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
}
.dt-buy__cta-play circle { fill: #0b0b0b; }
.dt-buy__cta-play path { fill: var(--dt-ds-yellow); }

.dt-buy__cta-arrow {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}

.dt-buy__note {
	margin-top: 10px !important;
	color: #a9b6b9;
	font-size: 12px;
}

/* Visual: two sheet cards behind, tablet in front. */
.dt-buy__visual {
	position: relative;
	width: 100%;
	max-width: 440px;
	aspect-ratio: 440 / 330;
	margin: 0 auto;
}

.dt-buy__sheet {
	position: absolute;
	top: 0;
	width: 48%;
	aspect-ratio: 210 / 170;
	margin: 0;
	padding: 6px 8px 0;
	background: #fff;
	border: 3px solid var(--dt-ds-cyan);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.dt-buy__sheet--original {
	left: 4%;
	top: 3%;
	transform: rotate(-6deg);
}

.dt-buy__sheet--simplified {
	right: 2%;
	top: 0;
	border-color: var(--dt-ds-yellow);
	transform: rotate(5deg);
}

.dt-buy__sheet figcaption {
	color: #1b2a33;
	font-size: clamp(11px, 3cqi, 15px);
	font-weight: 800;
	text-align: center;
}

.dt-buy__sheet img {
	display: block;
	width: 100%;
	height: 100%;
	margin-top: 4px;
	object-fit: cover;
	object-position: top center;
}

.dt-buy__tablet {
	position: absolute;
	left: 14%;
	width: 76%;
	bottom: 2%;
	aspect-ratio: 16 / 10;
	padding: 2.4%;
	background: #15191c;
	border: 2px solid #3b4247;
	border-radius: 18px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

.dt-buy__tablet img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 6px;
	object-fit: cover;
	object-position: left top;
}

/* Wide enough: copy left, visual right (as in the mockup). */
@container dt-buy (min-width: 540px) {
		.dt-buy__info { max-width: 56%; }
		.dt-buy__visual {
			position: absolute;
			right: 2.5%;
			top: 50%;
			width: 44%;
			max-width: none;
			transform: translateY(-50%);
		}
		.dt-buy__title { font-size: clamp(22px, 4cqi, 34px); }
		.dt-buy__amount { font-size: clamp(44px, 8.6cqi, 70px); }
		.dt-buy__editions { font-size: clamp(17px, 3.1cqi, 27px); }
		.dt-buy__what li { font-size: clamp(12.5px, 1.95cqi, 16px); }
		.dt-buy a.dt-buy__cta { font-size: clamp(14px, 2.6cqi, 19px); }
}

@container dt-buy (max-width: 539px) {
	.dt-buy__info { align-items: center; text-align: center; }
	.dt-buy__what { justify-items: start; text-align: left; }
	.dt-buy a.dt-buy__cta { justify-content: center; }
	.dt-buy__visual { order: -1; max-width: 360px; }
}

/* --------------------------------------------------------------------------
 * Sheet preview popup (2026-11-09) — studio watermark images, click to open
 * (inc/features/studio-sync.php dt_sheet_preview_zoom, assets/js/dt-zoom.js)
 * ----------------------------------------------------------------------- */
.dt-zoom {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: zoom-in;
}
.dt-zoom img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dt-buy__sheet .dt-zoom { height: calc(100% - 1.2em); margin-top: 4px; }
.dt-buy__sheet .dt-zoom img { margin-top: 0; }
.dt-zoom__hint {
	position: absolute;
	right: 6px;
	bottom: 6px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(9, 18, 26, 0.78);
	transition: transform 0.15s ease;
}
.dt-zoom__hint svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.dt-zoom:hover .dt-zoom__hint,
.dt-zoom:focus-visible .dt-zoom__hint { transform: scale(1.12); }
.dt-zoom:focus-visible { outline: 3px solid var(--dt-ds-cyan, #00f0ff); outline-offset: 2px; }

.dt-zoom-box {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 16px 16px;
	background: rgba(4, 10, 16, 0.92);
	cursor: zoom-out;
}
.dt-zoom-box[hidden] { display: none; }
.dt-zoom-box__fig { margin: 0; max-width: min(900px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dt-zoom-box__fig img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 120px);
	width: auto;
	height: auto;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	cursor: default;
}
.dt-zoom-box__fig figcaption { color: #dfe8ee; font-size: 14px; line-height: 1.4; text-align: center; max-width: 640px; }
.dt-zoom-box__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 30px;
	line-height: 42px;
	cursor: pointer;
}
.dt-zoom-box__close:hover,
.dt-zoom-box__close:focus-visible { background: rgba(255, 255, 255, 0.25); }
html.dt-zoom-open { overflow: hidden; }

/* Version opened from a song card (?version=simplified): its card comes first and is marked. */
.e-grid > .elementor-widget:has(.dsv-version-card.is-selected) { order: -1; }
body:has(.dsv-version-card.dsv-type-simplified.is-selected) .dsv-version-card.is-selected {
	box-shadow: 0 0 0 2px #22d3ee, 0 0 24px rgba(34, 211, 238, .35);
}

/* 2026-11-18: Elementor 4 flex containers size a shortcode widget from its content at the wrong width when the
   content is a CSS container (.dt-player, .dt-buy use container queries) → big empty gap under the player and the
   buy box on mobile. Full width makes the widget height match its content. */
.e-con > .elementor-widget-shortcode { width: 100%; }
