/*
 * 1805 SongLinks - frontend styles
 *
 * Palette pulled from the Mavin Records screenshot: warm near-black
 * background, a single gold accent, warm off-white for headlines.
 * These are CSS variables on purpose - once the real theme is ready,
 * swap the values here (or override them from the theme's own
 * stylesheet, since a later-loaded rule with the same specificity
 * wins) and every button, badge, and link updates together.
 *
 * Layout is a single column on phones and a sticky-cover two-column
 * layout from 900px up, so the page holds up on a desktop monitor
 * instead of just stretching a phone-width column.
 */

.sa-release-page {
	--sa-bg: #0d0a08;
	--sa-bg-elevated: #17130f;
	--sa-gold: #e9a836;
	--sa-gold-deep: #c6842a;
	--sa-white: #f7f3ea;
	--sa-muted: #a89f8e;
	--sa-border: rgba(233, 168, 54, 0.18);
	--sa-radius-pill: 999px;
	--sa-radius: 14px;
	--sa-font-display: 'Archivo Black', 'Arial Black', sans-serif;
	--sa-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	background: var(--sa-bg);
	color: var(--sa-white);
	font-family: var(--sa-font-body);
	padding: 32px 16px 64px;
	width: 100%;
	box-sizing: border-box;
}

.sa-release-page *,
.sa-release-page *::before,
.sa-release-page *::after {
	box-sizing: inherit;
}

.sa-release-page img {
	max-width: 100%;
	height: auto;
}

.sa-release-inner {
	max-width: 480px;
	margin: 0 auto;
}

@media (min-width: 900px) {
	.sa-release-page {
		padding: 56px 32px 96px;
	}
	.sa-release-inner {
		max-width: 920px;
		display: grid;
		grid-template-columns: 380px 1fr;
		gap: 56px;
		align-items: start;
	}
	.sa-release-cover-col {
		position: sticky;
		top: 32px;
	}
	/* The archive grid has no cover column - it is a flat list of
	   cards, so it opts out of the single/artist two-column split. */
	.sa-archive-inner {
		display: block;
		max-width: 1100px;
	}
}

.sa-cover-wrap {
	position: relative;
	margin-bottom: 20px;
}

.sa-cover-wrap::before {
	content: "";
	position: absolute;
	inset: -6%;
	background: radial-gradient(circle, var(--sa-gold) 0%, transparent 68%);
	opacity: 0.35;
	filter: blur(28px);
	z-index: 0;
	border-radius: var(--sa-radius);
	animation: sa-glow-pulse 3.6s ease-in-out infinite;
}

@keyframes sa-glow-pulse {
	0%, 100% {
		opacity: 0.28;
		transform: scale(0.97);
	}
	50% {
		opacity: 0.5;
		transform: scale(1.03);
	}
}

.sa-cover-art {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--sa-radius);
	display: block;
	box-shadow: 0 24px 60px -20px rgba(233, 168, 54, 0.35);
	transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.sa-cover-wrap:hover .sa-cover-art {
	box-shadow: 0 28px 70px -18px rgba(233, 168, 54, 0.55);
	transform: translateY(-2px);
}

.sa-artist-photo {
	border-radius: 50%;
}

.sa-cover-placeholder {
	background: linear-gradient(160deg, var(--sa-bg-elevated), #000);
}

.sa-release-type-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--sa-gold);
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-pill);
	padding: 4px 12px;
	margin-bottom: 10px;
}

.sa-release-title {
	font-family: var(--sa-font-display);
	font-size: 28px;
	line-height: 1.15;
	margin: 0 0 8px;
	color: var(--sa-white);
}

@media (min-width: 900px) {
	.sa-release-title {
		font-size: 40px;
	}
}

.sa-release-artists {
	font-size: 16px;
	margin: 0 0 16px;
	color: var(--sa-muted);
}

.sa-artist-link {
	color: var(--sa-gold);
	text-decoration: none;
	font-weight: 600;
}

.sa-artist-link:hover,
.sa-artist-link:focus-visible {
	text-decoration: underline;
}

.sa-release-description {
	font-size: 15px;
	line-height: 1.6;
	color: var(--sa-muted);
	margin: 0 0 24px;
}

.sa-preview-wrap {
	margin-bottom: 24px;
}

.sa-preview-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--sa-gold);
	margin: 0 0 8px;
}

.sa-preview-audio {
	width: 100%;
	border-radius: var(--sa-radius-pill);
}

/* ------------------------------------------------------------------
 * Platform buttons - icon badge (brand color + logo/play glyph),
 * label, and a trailing chevron so each row reads as a clear,
 * tappable "listen on X" action rather than a flat tile.
 * ---------------------------------------------------------------- */

.sa-platform-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

@media (min-width: 640px) {
	.sa-platform-buttons {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
}

.sa-platform-btn {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--sa-bg-elevated);
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius);
	padding: 10px 16px;
	color: var(--sa-white);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.sa-platform-btn:hover,
.sa-platform-btn:focus-visible {
	border-color: var(--sa-gold);
	box-shadow: 0 8px 30px -12px rgba(233, 168, 54, 0.55);
	transform: translateY(-1px);
}

.sa-platform-icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.sa-platform-icon-logo {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sa-platform-icon-logo svg {
	width: 20px;
	height: 20px;
	fill: #ffffff;
	display: block;
}

/* Play-button glyph shown until a real logo SVG is dropped into
   assets/icons/{key}.svg - a simple triangle in a translucent white
   circle, universally read as "play". */
.sa-play-glyph {
	width: 0;
	height: 0;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid rgba(255, 255, 255, 0.92);
	margin-left: 3px;
}

.sa-platform-label {
	flex: 1 1 auto;
}

.sa-platform-chevron {
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--sa-muted);
	border-right: 2px solid var(--sa-muted);
	transform: rotate(45deg);
	margin-right: 4px;
	flex-shrink: 0;
}

.sa-sound-buttons {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.sa-sound-btn {
	flex: 1 1 auto;
	text-align: center;
	background: transparent;
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-pill);
	padding: 10px 16px;
	color: var(--sa-gold);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

.sa-sound-btn:hover,
.sa-sound-btn:focus-visible {
	border-color: var(--sa-gold);
}

.sa-btn {
	border-radius: var(--sa-radius-pill);
	padding: 14px 24px;
	font-weight: 700;
	font-size: 15px;
	border: none;
	cursor: pointer;
}

.sa-btn-primary {
	background: var(--sa-gold);
	color: #1a1206;
}

.sa-btn-primary:hover,
.sa-btn-primary:focus-visible {
	background: var(--sa-gold-deep);
}

.sa-btn-outline {
	display: inline-block;
	background: transparent;
	border: 1px solid var(--sa-border);
	color: var(--sa-gold);
	text-decoration: none;
}

.sa-btn-outline:hover,
.sa-btn-outline:focus-visible {
	border-color: var(--sa-gold);
}

.sa-see-all-wrap {
	text-align: center;
	margin: 4px 0 32px;
}

.sa-back-link {
	color: var(--sa-muted);
	text-decoration: none;
	font-size: 13px;
}

.sa-back-link:hover,
.sa-back-link:focus-visible {
	color: var(--sa-gold);
}

.sa-pagination {
	display: flex;
	justify-content: space-between;
	margin-top: 24px;
}

/* Music video grid - fixed 2 columns mobile, 3 desktop. */
.sa-video-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 8px;
}

@media (min-width: 640px) {
	.sa-video-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

.sa-video-card {
	display: block;
	text-decoration: none;
	color: var(--sa-white);
}

.sa-video-thumb-wrap {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: var(--sa-bg-elevated);
	margin-bottom: 8px;
}

.sa-video-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sa-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(13, 10, 8, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
}

.sa-video-play::before {
	content: "";
	width: 0;
	height: 0;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 14px solid var(--sa-gold);
	margin-left: 4px;
}

.sa-video-title {
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.sa-tour-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 24px;
}

.sa-tour-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--sa-border);
	flex-wrap: wrap;
}

.sa-tour-date {
	color: var(--sa-gold);
	font-size: 13px;
	font-weight: 700;
	width: 84px;
	flex-shrink: 0;
}

.sa-tour-info {
	flex: 1 1 160px;
	display: flex;
	flex-direction: column;
}

.sa-tour-name {
	font-weight: 600;
	font-size: 14px;
}

.sa-tour-where {
	color: var(--sa-muted);
	font-size: 13px;
}

.sa-tour-ticket {
	padding: 6px 16px;
	font-size: 13px;
}

.sa-presave-block {
	background: var(--sa-bg-elevated);
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius);
	padding: 24px;
	text-align: center;
	margin-bottom: 24px;
}

.sa-presave-heading {
	font-family: var(--sa-font-display);
	color: var(--sa-gold);
	font-size: 18px;
	margin: 0 0 6px;
}

.sa-presave-copy {
	color: var(--sa-muted);
	font-size: 14px;
	margin: 0 0 16px;
}

.sa-presave-form {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.sa-presave-email {
	flex: 1 1 180px;
	background: var(--sa-bg);
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-pill);
	padding: 12px 18px;
	color: var(--sa-white);
	font-size: 14px;
}

.sa-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.sa-presave-message {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--sa-gold);
	min-height: 1em;
}

/* ------------------------------------------------------------------
 * Like button + view count
 * ---------------------------------------------------------------- */

.sa-engagement-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 8px 0 24px;
}

.sa-like-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--sa-bg-elevated);
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-pill);
	padding: 10px 20px;
	color: var(--sa-white);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: border-color 0.2s ease, transform 0.1s ease;
}

.sa-like-btn:active {
	transform: scale(0.96);
}

.sa-heart {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linejoin: round;
	transition: fill 0.2s ease, stroke 0.2s ease;
}

.sa-like-btn[aria-pressed="true"] {
	color: var(--sa-gold);
	border-color: var(--sa-gold);
	background: rgba(233, 168, 54, 0.1);
}

.sa-like-btn[aria-pressed="true"] .sa-heart {
	fill: var(--sa-gold);
	stroke: var(--sa-gold);
}

.sa-view-count {
	color: var(--sa-muted);
	font-size: 13px;
}

.sa-lyrics-block {
	margin-bottom: 24px;
}

.sa-lyrics-toggle {
	background: transparent;
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-pill);
	padding: 10px 20px;
	color: var(--sa-gold);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.sa-lyrics-body {
	margin-top: 16px;
	color: var(--sa-muted);
	font-size: 14px;
	line-height: 1.8;
	white-space: pre-line;
}

.sa-comments-wrap {
	color: var(--sa-white);
}

/* ------------------------------------------------------------------
 * Artist profile
 * ---------------------------------------------------------------- */

.sa-artist-bio {
	color: var(--sa-muted);
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 32px;
}

.sa-artist-songs-heading {
	font-family: var(--sa-font-display);
	font-size: 18px;
	color: var(--sa-white);
	margin: 0 0 16px;
}

.sa-release-list {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--sa-border);
}

.sa-release-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 4px;
	text-decoration: none;
	color: var(--sa-white);
	border-bottom: 1px solid var(--sa-border);
}

.sa-release-row:hover,
.sa-release-row:focus-visible {
	background: var(--sa-bg-elevated);
}

.sa-release-row-cover {
	display: block;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--sa-bg-elevated);
}

.sa-release-row-cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sa-release-row-title {
	flex: 1 1 auto;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sa-release-row-meta {
	flex-shrink: 0;
	font-size: 12px;
	color: var(--sa-muted);
}

.sa-release-row-chevron {
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-top: 2px solid var(--sa-muted);
	border-right: 2px solid var(--sa-muted);
	transform: rotate(45deg);
}

.sa-artist-no-songs {
	color: var(--sa-muted);
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.sa-platform-btn,
	.sa-like-btn,
	.sa-cover-art {
		transition: none;
	}
	.sa-cover-wrap::before {
		animation: none;
	}
}

/* ---- v1.12: producers + official video ---- */
.sa-release-producers {
	margin: 0 0 14px;
	font-size: 13px;
	color: #a89f8e;
	letter-spacing: 0.02em;
}
.sa-official-video {
	margin: 18px 0 22px;
	max-width: 560px;
}
.sa-official-video-label {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #e9a836;
}
.sa-official-video-thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #17130f;
	cursor: pointer;
}
.sa-official-video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sa-official-video-thumb .sa-video-play {
	width: 60px;
	height: 60px;
}
.sa-official-video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 12px;
	display: block;
}

.sa-official-video .sa-video-play { background: rgba(13, 10, 8, 0.6); }
.sa-official-video .sa-video-play::before { border-left-color: #e9a836; }

/* Used when the theme's own template embeds SongLinks blocks inside its layout. */
.sa-release-page.sa-embedded {
	background: transparent;
	padding: 0;
	width: auto;
}
