/* DTD Music Videos: front end. Follows the "Redneck Wisdom Editorial" design:
   rust accent, warm paper ground, Barlow Semi Condensed headings, square corners. */

:root {
	--dtd-mv-accent: var(--ast-global-color-0, #cf412b);
	--dtd-mv-accent-dark: var(--ast-global-color-1, #b23623);
	--dtd-mv-ink: var(--ast-global-color-2, #1f1f1f);
	--dtd-mv-muted: var(--ast-global-color-6, #6d6d6d);
	--dtd-mv-surface: var(--ast-global-color-4, #f5f5f5);
	--dtd-mv-paper: var(--ast-global-color-5, #fffefa);
	--dtd-mv-line: #e3ded4;
	--dtd-mv-head: "Barlow Semi Condensed", sans-serif;
}

/* ---------- Shared ---------- */

.dtd-mv-kicker {
	margin: 0 0 8px;
	font-family: var(--dtd-mv-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dtd-mv-accent);
}
.dtd-mv-kicker a {
	color: inherit;
	text-decoration: none;
}
.dtd-mv-kicker a:hover,
.dtd-mv-kicker a:focus-visible {
	text-decoration: underline;
}
.dtd-mv-kicker .sep,
.dtd-mv-ahead__meta .sep {
	margin: 0 .5em;
	opacity: .6;
}

.dtd-mv-sectitle {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
}
.dtd-mv-sectitle h2 {
	margin: 0;
	padding-left: 10px;
	border-left: 3px solid var(--dtd-mv-accent);
	font-family: var(--dtd-mv-head);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--dtd-mv-ink);
}
.dtd-mv-sectitle .rule {
	flex: 1;
	height: 1px;
	background: var(--dtd-mv-line);
}
.dtd-mv-sectitle a {
	font-family: var(--dtd-mv-head);
	font-size: 14px;
	font-weight: 600;
	color: var(--dtd-mv-accent);
	text-decoration: none;
	white-space: nowrap;
}
.dtd-mv-sectitle a:hover,
.dtd-mv-sectitle a:focus-visible {
	text-decoration: underline;
}

.dtd-mv-stars {
	letter-spacing: 2px;
	color: var(--dtd-mv-accent);
	white-space: nowrap;
}
.dtd-mv-stars .off {
	color: #d8d2c6;
}

.dtd-mv-btn {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid var(--dtd-mv-ink);
	border-radius: 0;
	background: transparent;
	font-family: var(--dtd-mv-head);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .03em;
	color: var(--dtd-mv-ink);
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.dtd-mv-btn:hover,
.dtd-mv-btn:focus-visible {
	background: var(--dtd-mv-ink);
	color: #fff;
}
.dtd-mv-btn.is-primary {
	border-color: var(--dtd-mv-accent);
	background: var(--dtd-mv-accent);
	color: #fff;
}
.dtd-mv-btn.is-primary:hover,
.dtd-mv-btn.is-primary:focus-visible {
	border-color: var(--dtd-mv-accent-dark);
	background: var(--dtd-mv-accent-dark);
}

/* ---------- Single: header bits ---------- */

.dtd-mv-dek {
	margin: 4px 0 0;
}
.dtd-mv-hook {
	margin: 0 0 6px;
	font-family: var(--dtd-mv-head);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--dtd-mv-muted);
}
.dtd-mv-myrating {
	margin: 0;
	font-size: 15px;
}
.dtd-mv-myrating > span:first-child {
	margin-right: 6px;
	font-family: var(--dtd-mv-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dtd-mv-muted);
}

/* ---------- Single: player ---------- */

.dtd-mv-player {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
}
.dtd-mv-player__btn {
	position: absolute;
	inset: 0;
	display: block;
}
.dtd-mv-player img,
.dtd-mv-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}
.dtd-mv-player__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1.35);
	transition: transform .2s;
}
.dtd-mv-player__play .bg {
	fill: var(--dtd-mv-accent);
	transition: fill .2s;
}
.dtd-mv-player__btn:hover .dtd-mv-player__play,
.dtd-mv-player__btn:focus-visible .dtd-mv-player__play {
	transform: translate(-50%, -50%) scale(1.5);
}
.dtd-mv-player__btn:hover .bg,
.dtd-mv-player__btn:focus-visible .bg {
	fill: var(--dtd-mv-accent-dark);
}
.dtd-mv-player__btn:focus-visible {
	outline: 3px solid var(--dtd-mv-accent);
	outline-offset: -3px;
}
.dtd-mv-player__ext {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 14px 22px;
	background: var(--dtd-mv-accent);
	font-family: var(--dtd-mv-head);
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
}
.dtd-mv-player.is-external .dtd-mv-player__btn:hover .dtd-mv-player__ext,
.dtd-mv-player.is-external .dtd-mv-player__btn:focus-visible .dtd-mv-player__ext {
	background: var(--dtd-mv-accent-dark);
}
.dtd-mv-player.is-gone img {
	filter: grayscale(1) brightness(.45);
}
.dtd-mv-player__gone {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 24px;
	text-align: center;
	color: #fff;
}
.dtd-mv-player__gone strong {
	font-family: var(--dtd-mv-head);
	font-size: 24px;
}

/* ---------- Single: details and listen ---------- */

.dtd-mv-facts dl {
	margin: 0;
}
.dtd-mv-facts dl > div {
	display: grid;
	grid-template-columns: 9.5em 1fr;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--dtd-mv-line);
}
.dtd-mv-facts dt {
	font-family: var(--dtd-mv-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--dtd-mv-muted);
}
.dtd-mv-facts dd {
	margin: 0;
	font-size: 16px;
	color: var(--dtd-mv-ink);
}
.dtd-mv-facts dd a {
	color: var(--dtd-mv-accent);
}
.dtd-mv-listen {
	margin-top: 32px;
}
.dtd-mv-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---------- Tiles: wipe reveal (DTD Playbook) ---------- */

.dtd-mv-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 24px;
}
.dtd-mv-tiles.is-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 921px) {
	.dtd-mv-tiles.is-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.dtd-mv-tiles,
	.dtd-mv-tiles.is-3 {
		grid-template-columns: 1fr;
	}
}

.dtd-wipe {
	--wipe-accent: var(--dtd-mv-accent);
	--wipe-shade: 17, 17, 17;
	--wipe-t: 700ms;
	--ease: cubic-bezier(.65, 0, .35, 1);
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 0;
	background: rgb(var(--wipe-shade));
	color: #fff;
	text-decoration: none;
}
.dtd-wipe img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 1.6s var(--ease);
}
.dtd-wipe img.b {
	clip-path: inset(0 100% 0 0);
	transform: scale(1.12);
	transition: clip-path var(--wipe-t) var(--ease), transform 1.6s var(--ease);
}
.dtd-wipe .edge {
	position: absolute;
	z-index: 2;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	background: var(--wipe-accent);
	opacity: 0;
	pointer-events: none;
}
.dtd-wipe .cap {
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 48px 16px 14px;
	background: linear-gradient(0deg, rgba(var(--wipe-shade), .94) 0%, rgba(var(--wipe-shade), .75) 55%, rgba(var(--wipe-shade), 0) 100%);
}
.dtd-wipe .cat {
	font-family: var(--dtd-mv-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #ff8a73;
}
.dtd-wipe .dtd-wipe__title {
	margin: 0;
	font-family: var(--dtd-mv-head);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.1;
	color: #fff;
}
.dtd-wipe__artist {
	font-size: 14px;
	opacity: .85;
}
.dtd-wipe .more {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--wipe-t) var(--ease);
}
.dtd-wipe .more > span {
	overflow: hidden;
}
.dtd-wipe__hook {
	display: block;
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.4;
	opacity: .92;
}
.dtd-wipe .go {
	display: inline-block;
	margin-top: 8px;
	font-family: var(--dtd-mv-head);
	font-size: 14px;
	font-weight: 700;
	color: #ff8a73;
}
.dtd-wipe .dots {
	position: absolute;
	z-index: 3;
	top: 12px;
	right: 12px;
	display: flex;
	gap: 5px;
}
.dtd-wipe .dots i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
}
.dtd-wipe .dots i:first-child {
	background: #fff;
}
.dtd-wipe:is(:hover, :focus-visible, .alt) img.b {
	clip-path: inset(0 0 0 0);
	transform: scale(1.04);
}
.dtd-wipe:is(:hover, :focus-visible, .alt) .edge {
	animation: dtdSweep var(--wipe-t) var(--ease) forwards;
}
.dtd-wipe:is(:hover, :focus-visible, .alt) .more {
	grid-template-rows: 1fr;
}
.dtd-wipe:is(:hover, :focus-visible, .alt) .dots i:first-child {
	background: rgba(255, 255, 255, .5);
}
.dtd-wipe:is(:hover, :focus-visible, .alt) .dots i:last-child {
	background: #fff;
}
.dtd-wipe:focus-visible {
	outline: 3px solid var(--dtd-mv-accent);
	outline-offset: 3px;
}
.dtd-wipe.is-gone img {
	filter: grayscale(1);
}
@keyframes dtdSweep {
	0% { left: 0; opacity: 1; }
	85% { opacity: 1; }
	100% { left: calc(100% - 5px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.dtd-wipe img.b {
		clip-path: none;
		opacity: 0;
		transform: none;
		transition: opacity .3s;
	}
	.dtd-wipe:is(:hover, :focus-visible, .alt) img.b {
		opacity: 1;
	}
	.dtd-wipe .edge {
		display: none;
	}
}

.dtd-mv-nav {
	margin: 0;
}

/* Video page title: magazine-size headline (Astra's h1 default is small for this layout). */
.single-music_video .elementor-widget-theme-post-title .elementor-heading-title {
	font-family: var(--dtd-mv-head);
	font-size: clamp(34px, 4.6vw, 52px);
	font-weight: 600;
	line-height: 1.05;
	color: var(--dtd-mv-ink);
}

/* Your write-up: comfortable reading size. */
.single-music_video .elementor-widget-theme-post-content {
	font-size: 18px;
	line-height: 1.7;
}

/* Cross-link box between a video and a related blog post. */
.dtd-mv-crosslink {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 32px 0 0;
	padding: 16px 20px;
	border-left: 3px solid var(--dtd-mv-accent);
	background: var(--dtd-mv-surface);
}
.dtd-mv-crosslink__kicker {
	font-family: var(--dtd-mv-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dtd-mv-accent);
}
.dtd-mv-crosslink a {
	font-family: var(--dtd-mv-head);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--dtd-mv-ink);
	text-decoration: none;
}
.dtd-mv-crosslink a:hover,
.dtd-mv-crosslink a:focus-visible {
	color: var(--dtd-mv-accent);
	text-decoration: underline;
}
.dtd-mv-crosslink__note {
	font-size: 14px;
	color: var(--dtd-mv-muted);
}

/* ---------- Related rows ---------- */

.dtd-mv-related {
	margin-top: 8px;
}

/* ---------- Archive header ---------- */

.dtd-mv-ahead h1 {
	margin: 0 0 8px;
	font-family: var(--dtd-mv-head);
	font-size: clamp(34px, 5vw, 52px);
	font-weight: 600;
	line-height: 1.05;
	color: var(--dtd-mv-ink);
}
.dtd-mv-ahead__meta {
	margin: 0;
	font-family: var(--dtd-mv-head);
	font-size: 15px;
	font-weight: 500;
	color: var(--dtd-mv-muted);
}
.dtd-mv-ahead__bio {
	max-width: 46em;
	margin: 0 0 10px;
	font-size: 17px;
	line-height: 1.6;
}
.dtd-mv-ahead__bio p {
	margin: 0 0 .8em;
}
.dtd-mv-ahead.is-artist {
	display: flex;
	align-items: flex-start;
	gap: 28px;
}
.dtd-mv-ahead__photo {
	flex: 0 0 180px;
	width: 180px;
	height: 180px;
	object-fit: cover;
	border-radius: 0;
}
.dtd-mv-ahead.is-artist .dtd-mv-ahead__meta {
	margin-bottom: 12px;
}
.dtd-mv-ahead__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 6px 0 0;
}
.dtd-mv-ahead__links a {
	font-family: var(--dtd-mv-head);
	font-size: 15px;
	font-weight: 600;
	color: var(--dtd-mv-accent);
}
@media (max-width: 600px) {
	.dtd-mv-ahead.is-artist {
		flex-direction: column;
		gap: 16px;
	}
	.dtd-mv-ahead__photo {
		flex-basis: auto;
		width: 120px;
		height: 120px;
	}
}

/* ---------- Grid: filters, count, pages ---------- */

.dtd-mv-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	margin: 0 0 20px;
	padding: 16px;
	border-top: 3px solid var(--dtd-mv-accent);
	background: var(--dtd-mv-surface);
}
.dtd-mv-filters__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 150px;
}
.dtd-mv-filters label {
	font-family: var(--dtd-mv-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dtd-mv-muted);
}
.dtd-mv-filters select {
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid #cfc8bb;
	border-radius: 0;
	background-color: #fff;
	font-size: 15px;
	color: var(--dtd-mv-ink);
}
.dtd-mv-filters select:focus-visible {
	outline: 2px solid var(--dtd-mv-accent);
	outline-offset: 1px;
}
.dtd-mv-filters__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}
.dtd-mv-filters.is-js .dtd-mv-filters__go {
	display: none;
}
.dtd-mv-filters__reset {
	font-size: 14px;
	color: var(--dtd-mv-muted);
}
.dtd-mv-grid__count {
	margin: 0 0 12px;
	font-family: var(--dtd-mv-head);
	font-size: 14px;
	font-weight: 600;
	color: var(--dtd-mv-muted);
}
.dtd-mv-empty {
	padding: 24px;
	background: var(--dtd-mv-surface);
}
.dtd-mv-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 32px;
}
.dtd-mv-pager .page-numbers {
	min-width: 42px;
	padding: 9px 12px;
	border: 1px solid var(--dtd-mv-line);
	font-family: var(--dtd-mv-head);
	font-weight: 600;
	text-align: center;
	color: var(--dtd-mv-ink);
	text-decoration: none;
}
.dtd-mv-pager .page-numbers.current {
	border-color: var(--dtd-mv-accent);
	background: var(--dtd-mv-accent);
	color: #fff;
}
.dtd-mv-pager a.page-numbers:hover,
.dtd-mv-pager a.page-numbers:focus-visible {
	border-color: var(--dtd-mv-ink);
}
@media (max-width: 600px) {
	.dtd-mv-filters__field {
		flex: 1 1 calc(50% - 8px);
		min-width: 0;
	}
	.dtd-mv-filters__actions {
		width: 100%;
		margin-left: 0;
	}
}

/* ---------- Homepage: Video of the week ---------- */

.dtd-mv-featured__body {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	align-items: center;
	gap: 32px;
}
.dtd-mv-featured__text h3 {
	margin: 0 0 8px;
	font-family: var(--dtd-mv-head);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 600;
	line-height: 1.05;
}
.dtd-mv-featured__text h3 a {
	color: var(--dtd-mv-ink);
	text-decoration: none;
}
.dtd-mv-featured__text h3 a:hover,
.dtd-mv-featured__text h3 a:focus-visible {
	color: var(--dtd-mv-accent);
}
.dtd-mv-featured__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
}
@media (max-width: 767px) {
	.dtd-mv-featured__body {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}
