/* SINGLE RELEASE LAYOUT */

/*
 * Release projects own their page layout. Hide common theme sidebar regions
 * and free the theme's content column so the project can use the full row.
 */
body:is(.single-oan_release, .oan-musichub-single-page) #sidebar,
body:is(.single-oan_release, .oan-musichub-single-page) #secondary,
body:is(.single-oan_release, .oan-musichub-single-page) .sidebar,
body:is(.single-oan_release, .oan-musichub-single-page) .oan-musichub-hidden-sidebar,
body:is(.single-oan_release, .oan-musichub-single-page) .oan-musichub-sidebar-column {
	display: none !important;
}

body:is(.single-oan_release, .oan-musichub-single-page) #primary,
body:is(.single-oan_release, .oan-musichub-single-page) .content-area,
body:is(.single-oan_release, .oan-musichub-single-page) .site-main,
body:is(.single-oan_release, .oan-musichub-single-page) .oan-musichub-content-host {
	box-sizing: border-box !important;
	float: none !important;
	clear: both !important;
	min-width: 0 !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	flex: 1 1 100% !important;
}

body:is(.single-oan_release, .oan-musichub-single-page) .oan-musichub-layout-host {
	display: block !important;
}

.oan-release-single {

	max-width: 1200px;
	margin: 30px auto;
	padding: 25px;

	background: #fff;

	border: 1px solid #e5e5e5;
	border-radius: 12px;

	box-sizing: border-box;
	width: calc(100% - 30px);
	overflow-wrap: anywhere;

}

.oan-release-single *,
.oan-release-single *::before,
.oan-release-single *::after {
	box-sizing: border-box;
}

.oan-release-single img,
.oan-release-single iframe,
.oan-release-single video {
	max-width: 100%;
}

/* HERO */
.oan-release-hero {

	display: flex;
	flex-wrap: wrap;
	gap: 25px;

	align-items: flex-start;

	margin-bottom: 30px;

}

.oan-posters {

	flex: 0 0 400px;

}

.oan-posters img {

	width: 400px;
	max-width: 100%;

	height: auto;

	display: block;

	border-radius: 8px;

}

.oan-release-details {

	flex: 1;
	min-width: 300px;

}

.oan-release-details h1 {

	margin: 0 0 20px;
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.1;

}

.oan-description {

	position: relative;
	padding: 12px;
	margin-top: 18px;
	text-align: left;
	text-indent: 10px;
	line-height: 1.7;
	background: #fff;
	min-height: 150px;

}

.oan-description:before {

	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 50px;
	height: 50px;
	border-top: 3px solid #666;
	border-left: 3px solid #666;

}

.oan-description:after {

	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 50px;
	height: 50px;
	border-right: 3px solid #666;
	border-bottom: 3px solid #666;

}

.oan-releases-meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin: 20px 0;
}

.oan-meta-cards {

	background: #f8f8f8;

	padding: 15px;

	border: 1px solid #e5e5e5;
	border-radius: 8px;

}

.oan-meta-labels {

	display: block;

	font-size: 11px;
	font-weight: 700;

	text-transform: uppercase;
	letter-spacing: 1px;

	color: #666;

	margin-bottom: 5px;

}

.oan-meta-values {

	display: block;

	font-size: 15px;
	font-weight: 600;

}

/* TITLE */
.oan-release-details h1 {

	margin: 0 0 15px;

	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;

}

/* FEATURED RELEASE */
.oan-featured {
	display: inline-block;
	padding: 6px 12px;
	background: #f4b400;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 6px;
	margin-bottom: 12px;
}

/* EXPLICIT */
.oan-explicits {

	display: inline-flex;

	align-items: center;
	justify-content: center;

	width: 24px;
	height: 24px;

	margin-left: 10px;

	background: #d93025;
	color: #fff;

	font-size: 12px;
	font-weight: 700;

	border-radius: 4px;

	vertical-align: middle;

}

/* SECTIONS */

.oan-release-section {

	margin-top: 35px;

}

.oan-release-section h2 {

	margin: 0 0 15px;

	padding-bottom: 8px;

	font-size: 1.25rem;
	font-weight: 700;

	border-bottom: 2px solid #e5e5e5;

}

/* SUB HEADINGS */
.oan-release-section h3 {
	margin: 20px 0 10px;
	font-size: 1rem;
	font-weight: 700;
}

/* STREAMING / PURCHASE ICONS */
.oan-services {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.oan-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
}

.oan-icon i {

	font-size: 20px;
	color: #fff !important;

}

.oan-icon,
.oan-icon:link,
.oan-icon:visited,
.oan-icon:hover,
.oan-icon:active {
	color: #fff !important;
	text-decoration: none !important;
}

.oan-services-svg {
	width: 42px;
	height: 42px;
	display: block;
}

/* RELEASE INFO */
.oan-info-grid {
	display: grid;
	grid-template-columns:
			repeat(
			auto-fit,
			minmax(min(100%, 450px), 1fr)
		);
	gap: 12px 25px;
}

.oan-info-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.oan-info-label {
	flex: 0 0 170px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #666;
}

.oan-info-value {
	flex: 1;
	font-size: 15px;
	color: #222;
}

.oan-info-label {
	flex: 0 0 170px;
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #555;

}

.oan-info-label:before {
	content: "";
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: #d0d0d0;
}

/* ALTERNATE COVERS */
.oan-alternate-covers {
	display: grid;
	grid-template-columns:
		repeat(
			auto-fill,
			minmax(min(100%, 220px), 1fr)
		);
	gap: 20px;
}

.oan-cover-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	overflow: hidden;
	transition: .2s ease;
}

.oan-cover-card:hover {
	transform: translateY(-2px);
}

.oan-cover-card img,
.oan-cover-card video {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #111;
}

.oan-cover-content {
	padding: 12px;
}

.oan-cover-card h3 {
	margin: 0 0 5px;
	font-size: 14px;
	font-weight: 700;
}

.oan-cover-card p {
	margin: 0;
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

/* TRACK LISTS */
.oan-disc-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 30px 0 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e5e5e5;
}

.oan-disc-title {
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.oan-disc-meta {
	margin-top: 4px;
	text-align: right;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #888;
}

.oan-track-list {
	display: flex;
	flex-direction: column;
	margin-bottom: 15px;
}

.oan-track-row {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 10px 0;
	border-bottom: 1px solid #f2f2f2;
}

.oan-track-number {
	width: 40px;
	font-size: 13px;
	font-weight: 700;
	color: #999;
}

.oan-track-title {
	flex: 1;
	font-size: 15px;
	text-align: left;
}

.oan-track-title a,
.oan-track-title a:visited {
	color: #2271b1 !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px !important;
}

.oan-track-title a:hover,
.oan-track-title a:focus {
	color: #2271b1 !important;
	text-decoration: underline !important;
}

.oan-track-duration {
	width: 60px;
	text-align: right;
	color: #888;
	font-size: 13px;
}

.oan-track-explicit {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 14px;
	height: 14px;
	background: #d93025;
	color: #fff;
	font-size: 8px;
	font-weight: 700;
	line-height: 1;
	border-radius: 2px;
	margin-left: 5px;
	transform: translateY(-2px);
	vertical-align: middle;
	flex-shrink: 0;
}

.oan-track-label {
	display: inline-flex;
	align-items: center;
	margin-left: 7px;
	padding: 3px 7px;
	border: 1px solid #dcdcde;
	border-radius: 999px;
	background: #f6f7f7;
	color: #50575e;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.45px;
	text-transform: uppercase;
	vertical-align: middle;
}

.oan-bonus-star {
	color: #d39e00;
	font-size: 14px;
	line-height: 1;
}

.oan-bonus-summary {
	display: flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
	margin: 0 0 10px auto;
	padding: 6px 10px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	background: #f8f8f8;
	color: #666;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.7px;
	text-transform: uppercase;
}

.oan-track-row.is-linkable {
	transition: background-color 0.15s ease;
}

.oan-track-row.is-linkable:hover {
	background: #f8f9fa;
}

/* LYRICS */
.oan-lyrics {
	margin-top: -50px;
	padding: 10px;
	line-height: 2;
	text-align: left;
	white-space: pre-line;
	font-size: 13px;
}

/* VIDEOS */
.oan-video-grid {
	display: grid;
	grid-template-columns:
		repeat(
			auto-fit,
			minmax(min(100%, 320px), 1fr)
		);
	gap: 20px;
}

.oan-video-card {
	background: #fafafa;
	border: 1px solid #ececec;
	border-radius: 8px;
	overflow: hidden;
}

.oan-video-card h3 {
	margin: 0;
	padding: 12px 15px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 1px solid #ececec;
	background: #fff;
}

.oan-video-embed {
	padding: 15px;
}

.oan-video-embed iframe,
.oan-video-embed video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 6px;
}

/* CREDITS & METADATA */
.oan-credits-grid {
	display: grid;
	grid-template-columns:
		repeat(
			auto-fit,
			minmax(min(100%, 250px), 1fr)
		);
	gap: 15px;
}

.oan-credit-group {
	background: #fafafa;
	padding: 15px;
	border-radius: 8px;
	border: 1px solid #ececec;
}

.oan-credit-group h3 {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #555;
}

.oan-credit-values {
	color: #333;
	line-height: 1.8;
}

@media (max-width: 900px) {
	.oan-posters {
		flex-basis: 320px;
	}

	.oan-release-details {
		min-width: 0;
	}
}

@media (max-width: 700px) {
	.oan-release-single {
		width: calc(100% - 20px);
		margin: 15px auto;
		padding: 16px;
	}

	.oan-release-hero {
		display: block;
		margin-bottom: 24px;
	}

	.oan-posters {
		width: 100%;
		max-width: 400px;
		margin: 0 auto 20px;
	}

	.oan-posters img {
		width: 100%;
	}

	.oan-release-details h1 {
		font-size: clamp(1.65rem, 8vw, 2.25rem);
	}

	.oan-releases-meta {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.oan-info-item {
		display: grid;
		grid-template-columns: minmax(100px, 0.45fr) 1fr;
		gap: 10px;
	}

	.oan-info-label {
		flex-basis: auto;
	}

	.oan-lyrics {
		margin-top: 0;
		padding: 0;
	}

	.oan-video-embed {
		padding: 10px;
	}
}

@media (max-width: 420px) {
	.oan-release-single {
		width: calc(100% - 12px);
		padding: 12px;
		border-radius: 8px;
	}

	.oan-release-section {
		margin-top: 26px;
	}

	.oan-info-item {
		grid-template-columns: 1fr;
	}

	.oan-track-row {
		align-items: flex-start;
		gap: 8px;
	}

	.oan-track-number {
		width: 28px;
		flex: 0 0 28px;
	}

	.oan-track-duration {
		width: auto;
		flex: 0 0 auto;
	}

	.oan-disc-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.oan-disc-meta {
		text-align: left;
	}

	.oan-bonus-summary {
		margin-left: 0;
	}
}

/* Keep the plugin-owned project template independent from theme component CSS. */
.oan-release-single {
	background: #fff !important;
	color: #222 !important;
	text-align: left !important;
}

.oan-release-single h1,
.oan-release-single h2,
.oan-release-single h3,
.oan-release-single p {
	font-style: normal !important;
	text-decoration: none !important;
}

.oan-release-single .oan-icon,
.oan-release-single .oan-icon:hover,
.oan-release-single .oan-icon:focus,
.oan-release-single .oan-icon:visited,
.oan-release-single .oan-icon:active {
	display: flex !important;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	margin: 0 !important;
	padding: 0 !important;
	align-items: center !important;
	justify-content: center !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	color: #fff !important;
	line-height: 1 !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	transform: none !important;
}

.oan-release-single .oan-icon i,
.oan-release-single .oan-icon i::before {
	color: #fff !important;
	line-height: 1 !important;
}
