/**
 * Wavyl — layout for artist taxonomy + playlist/album station headers.
 *
 * Loaded on every front-end request (after parent theme CSS) so waveme PJAX
 * navigations still apply these rules: PJAX replaces #content only and does
 * not merge <head> from the fetched document.
 *
 * Previously split across wp_head inline blocks in wavyl-artist-profile.php
 * and wavyl-playlist-images.php.
 */

/* ── Artist taxonomy profile (wavyl-artist-profile.php) ───────────── */

.wavyl-artist-profile {
	margin-bottom: 1.5rem;
}

.wavyl-artist-profile__cover {
	position: relative;
	width: 100%;
	min-height: 140px;
	border-radius: 12px 12px 0 0;
	background: var(--color-bg-secondary, #1a1a2e);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.wavyl-artist-profile__cover--has-image {
	min-height: 220px;
}

@media (min-width: 768px) {
	.wavyl-artist-profile__cover--has-image {
		min-height: 280px;
	}
}

.wavyl-artist-profile__cover-actions {
	position: absolute;
	bottom: 12px;
	right: 12px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	z-index: 2;
}

.wavyl-artist-profile__btn {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	border: none;
	backdrop-filter: blur(6px);
}

.wavyl-artist-profile__head {
	display: flex;
	align-items: flex-end;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: -36px;
	padding: 0 16px 12px;
	position: relative;
	z-index: 1;
}

.wavyl-artist-profile__avatar {
	position: relative;
	width: 120px;
	height: 120px;
	border-radius: 16px;
	background: var(--color-bg-secondary, #1a1a2e);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	flex-shrink: 0;
}

.wavyl-artist-profile__avatar--has-image {
	background: #000;
}

.wavyl-artist-profile__avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wavyl-artist-profile__avatar-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
}

.wavyl-artist-profile__avatar-edit {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	opacity: 0;
	cursor: pointer;
	transition: opacity 0.2s;
	font-size: 12px;
	text-align: center;
	padding: 8px;
}

.wavyl-artist-profile__avatar:hover .wavyl-artist-profile__avatar-edit {
	opacity: 1;
}

.wavyl-artist-profile__avatar-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	padding: 0;
}

.wavyl-artist-profile__titles {
	flex: 1;
	min-width: 0;
	padding-bottom: 4px;
}

.wavyl-artist-profile__name {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.15;
}

.wavyl-artist-profile__edit-desc {
	margin-top: 8px;
}

.wavyl-artist-profile__description {
	padding: 0 16px 16px;
	max-width: 720px;
}

.wavyl-artist-profile__editor {
	padding: 0 16px 16px;
	max-width: 720px;
}

.wavyl-artist-profile__textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wavyl-artist-profile__save-msg {
	margin-left: 8px;
	font-size: 13px;
}

/* ── Playlist / album station cover + avatar (wavyl-playlist-images.php) ─ */

.wavyl-playlist-cover {
	position: relative;
	width: 100%;
	min-height: 120px;
	border-radius: 12px 12px 0 0;
	background-color: var(--color-bg-secondary, #1a1a2e);
	background-size: cover;
	background-position: center;
	overflow: hidden;
	transition: min-height 0.3s ease;
}

.wavyl-playlist-cover--has-image {
	min-height: 220px;
}

@media (min-width: 768px) {
	.wavyl-playlist-cover--has-image {
		min-height: 280px;
	}
}

.wavyl-playlist-cover__actions {
	position: absolute;
	bottom: 12px;
	right: 12px;
	display: flex;
	gap: 6px;
	z-index: 2;
}

.wavyl-playlist-cover__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	border: none;
	backdrop-filter: blur(6px);
	transition: background 0.2s;
}

.wavyl-playlist-cover__btn:hover {
	background: rgba(0, 0, 0, 0.75);
}

.wavyl-playlist-cover__btn svg {
	flex-shrink: 0;
}

.wavyl-playlist-avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--color-bg-secondary, #1a1a2e);
	margin-bottom: 8px;
	flex-shrink: 0;
}

.wavyl-playlist-avatar__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wavyl-playlist-avatar__placeholder {
	color: var(--color-text-tertiary, rgba(255, 255, 255, 0.35));
}

.wavyl-playlist-avatar__edit {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	opacity: 0;
	cursor: pointer;
	transition: opacity 0.2s;
}

.wavyl-playlist-avatar:hover .wavyl-playlist-avatar__edit {
	opacity: 1;
}
