/* Single music page */

#avt-root .avt-music {
	position: relative;
	isolation: isolate;
	padding-bottom: 48px;
	width: 100%;
	min-width: 0;
	overflow-x: clip;

	--avt-hero-top: rgb(26, 58, 52);
	--avt-hero-mid: rgb(34, 28, 42);
	--avt-hero-bottom: var(--avt-bg);
	--avt-hero-glow: rgb(20, 220, 180);
	--avt-hero-glow-soft: rgba(20, 220, 180, 0.45);
}

#avt-root .avt-music.is-themed {
	--avt-hero-bottom: var(--avt-bg);
}

#avt-root .avt-music__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: clamp(380px, 62vh, 640px);
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(
		to bottom,
		#000 0%,
		#000 40%,
		rgba(0, 0, 0, 0.7) 72%,
		transparent 100%
	);
	mask-image: linear-gradient(
		to bottom,
		#000 0%,
		#000 40%,
		rgba(0, 0, 0, 0.7) 72%,
		transparent 100%
	);
}

#avt-root .avt-music-hero,
#avt-root .avt-music-layout,
#avt-root .avt-mini-player {
	position: relative;
	z-index: 1;
}

#avt-root .avt-music-hero {
	overflow: visible;
	padding: 40px 0 28px;
	margin-bottom: 0;
	background: transparent;
}

#avt-root .avt-music-hero__ambient {
	position: absolute;
	inset: -12%;
	background-size: cover;
	background-position: center top;
	filter: blur(56px) saturate(1.35);
	transform: scale(1.08);
	opacity: 0.55;
}

#avt-root .avt-music-hero__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		var(--avt-hero-top) 0%,
		var(--avt-hero-mid) 44%,
		var(--avt-bg) 100%
	);
}

@supports (background: color-mix(in srgb, red, blue)) {
	#avt-root .avt-music-hero__gradient {
		background: linear-gradient(
			180deg,
			var(--avt-hero-top) 0%,
			var(--avt-hero-mid) 44%,
			color-mix(in srgb, var(--avt-hero-mid) 35%, var(--avt-bg)) 68%,
			var(--avt-bg) 100%
		);
	}
}

#avt-root .avt-music-hero__mesh {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 90% 60% at 85% 8%, var(--avt-hero-glow-soft) 0%, transparent 58%),
		radial-gradient(ellipse 70% 50% at 10% 92%, rgba(220, 20, 60, 0.22) 0%, transparent 55%);
	mix-blend-mode: soft-light;
	opacity: 0.9;
}

#avt-root .avt-music-hero__glass-sheen {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		165deg,
		rgba(255, 255, 255, 0.14) 0%,
		rgba(255, 255, 255, 0.04) 28%,
		rgba(255, 255, 255, 0) 52%
	);
}

#avt-root .avt-music-hero__noise {
	position: absolute;
	inset: 0;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 180px 180px;
}

#avt-root .avt-music-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 28px;
	align-items: end;
}

#avt-root .avt-music-hero__cover-stage {
	position: relative;
	width: 220px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
}

#avt-root .avt-music-hero__cover-glow {
	position: absolute;
	inset: -18%;
	border-radius: 50%;
	background: radial-gradient(circle, var(--avt-hero-glow-soft) 0%, transparent 68%);
	filter: blur(18px);
	opacity: 0.85;
	pointer-events: none;
}

#avt-root .avt-music-hero__cover-ring {
	grid-area: 1 / 1;
	width: 100%;
	max-width: 220px;
	aspect-ratio: 1;
	border-radius: 26px;
	padding: 1px;
	background: linear-gradient(
		145deg,
		rgba(255, 255, 255, 0.42),
		rgba(255, 255, 255, 0.08) 45%,
		rgba(255, 255, 255, 0.22)
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: 2;
}

#avt-root .avt-music-hero__cover {
	grid-area: 1 / 1;
	position: relative;
	width: 100%;
	max-width: 220px;
	aspect-ratio: 1;
	border-radius: 22px;
	overflow: hidden;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.25));
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(255, 255, 255, 0.1) inset;
	display: grid;
	place-items: center;
	z-index: 1;
}

#avt-root .avt-music-hero__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#avt-root .avd-work-cover-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 1;
	color: rgba(237, 237, 237, 0.28);
}

#avt-root .avd-work-cover-fallback .fi {
	font-size: clamp(14px, 38%, 40px);
	line-height: 1;
}

#avt-root .avt-music-hero__meta-glass {
	position: relative;
	min-width: 0;
	padding: 4px 0 8px;
}

#avt-root .avt-music-hero__meta {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
	width: 100%;
}

#avt-root .avt-music-hero__title {
	margin: 0;
	font-size: clamp(1.55rem, 3.6vw, 2.35rem);
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: -0.02em;
	text-align: start;
}

#avt-root .avt-music-hero__artist-fa {
	margin: 0;
	font-size: clamp(0.95rem, 2.2vw, 1.05rem);
	font-weight: 750;
	line-height: 1.45;
	color: rgba(237, 237, 237, 0.94);
	text-align: start;
	flex: 1 1 auto;
	min-width: 0;
}

#avt-root .avt-music-hero__artist-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 14px;
	width: 100%;
}

#avt-root .avt-music-hero__artist-en {
	margin: 0;
	flex: 0 1 auto;
	margin-inline-start: auto;
	font-weight: normal;
	line-height: 1.45;
	color: var(--avt-muted);
	text-align: end;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

#avt-root .avt-music-hero__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 14px;
	width: 100%;
	margin-top: 8px;
	font-size: clamp(0.72rem, 1.7vw, 0.82rem);
	line-height: 1.55;
}

#avt-root .avt-music-hero__meta-fa {
	flex: 1 1 auto;
	min-width: 0;
	text-align: start;
	color: rgba(237, 237, 237, 0.72);
	word-break: break-word;
}

#avt-root .avt-music-hero__meta-en {
	flex: 0 1 auto;
	margin-inline-start: auto;
	font-size: clamp(0.72rem, 1.7vw, 0.82rem);
	text-align: end;
	color: var(--avt-muted);
	unicode-bidi: plaintext;
	word-break: break-word;
}

#avt-root .avt-music-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 22px;
	align-items: start;
	margin-top: 0;
	width: 100%;
	min-width: 0;
}

#avt-root .avt-music-main {
	display: grid;
	gap: 18px;
	min-width: 0;
}

#avt-root .avt-music-aside {
	position: sticky;
	top: 16px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Share widget */
#avt-root .avt-share {
	padding: 14px 16px;
}

#avt-root .avt-share__row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
}

#avt-root .avt-share__label {
	margin: 0;
	flex: 0 1 auto;
	min-width: 0;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.4;
	color: var(--avt-muted);
	white-space: nowrap;
}

#avt-root .avt-share__actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-inline-start: auto;
}

#avt-root .avt-share__btn {
	width: 38px;
	height: 38px;
	min-width: 38px;
	min-height: 38px;
	border-radius: 50%;
	border: 1px solid var(--avt-border);
	background: rgba(0, 0, 0, 0.2);
	display: grid;
	place-items: center;
	color: var(--avt-muted);
	transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

#avt-root .avt-share__btn svg {
	width: 17px;
	height: 17px;
	display: block;
}

#avt-root .avt-share__btn:hover,
#avt-root .avt-share__btn:focus-visible {
	color: var(--avt-text);
	border-color: rgba(237, 237, 237, 0.22);
	background: rgba(255, 255, 255, 0.06);
	outline: none;
}

#avt-root .avt-share__btn--native:hover,
#avt-root .avt-share__btn--native:focus-visible {
	color: var(--avt-accent);
	border-color: rgba(20, 220, 180, 0.35);
}

#avt-root .avt-share__btn--wa:hover,
#avt-root .avt-share__btn--wa:focus-visible {
	color: #25d366;
	border-color: rgba(37, 211, 102, 0.35);
}

#avt-root .avt-share__btn--tg:hover,
#avt-root .avt-share__btn--tg:focus-visible {
	color: #2aabee;
	border-color: rgba(42, 171, 238, 0.35);
}

#avt-root .avt-share__btn[hidden] {
	display: none !important;
}

#avt-root .avt-panel {
	border-radius: var(--avt-radius);
	border: 1px solid var(--avt-border);
	background: rgba(255, 255, 255, 0.03);
	box-shadow: var(--avt-shadow);
	padding: 18px;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

#avt-root .avt-artist-card-public {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

#avt-root a.avt-artist-card-public:hover {
	border-color: rgba(237, 237, 237, 0.22);
	transform: translateY(-2px);
}

#avt-root .avt-artist-card-public__row {
	display: flex;
	align-items: center;
	gap: 12px;
}

#avt-root .avt-artist-card-public__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
	text-align: start;
}

#avt-root .avt-artist-card-public__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	border: 1px solid rgba(237, 237, 237, 0.14);
	background: rgba(0, 0, 0, 0.28);
	display: grid;
	place-items: center;
}

#avt-root .avt-artist-card-public__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#avt-root .avt-artist-card-public__avatar-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, rgba(220, 20, 60, 0.2), rgba(220, 20, 60, 0.05));
}

#avt-root .avt-artist-card-public__avatar-fallback .avd-work-cover-fallback {
	color: var(--avt-primary);
}

#avt-root .avt-artist-card-public__avatar-fallback .avd-work-cover-fallback .fi {
	font-size: 14px;
}

#avt-root .avt-artist-card-public__name {
	margin: 0;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.35;
}

#avt-root .avt-artist-card-public__role {
	margin: 0;
	font-size: 12px;
	color: var(--avt-muted);
	line-height: 1.45;
}

/* Audio player */
#avt-root .avt-player {
	display: grid;
	gap: 16px;
}

#avt-root .avt-player__top {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-width: 0;
}

#avt-root .avt-player__play {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--avt-primary);
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 10px 28px rgba(220, 20, 60, 0.32);
	flex-shrink: 0;
	margin-inline-start: auto;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

#avt-root .avt-player__play:hover {
	background: #e81842;
	box-shadow: 0 12px 32px rgba(220, 20, 60, 0.4);
}

#avt-root .avt-player__play svg {
	width: 22px;
	height: 22px;
	display: block;
}

#avt-root .avt-player__play.is-playing [data-avt-icon-play] {
	display: none !important;
}

#avt-root .avt-player__play.is-playing [data-avt-icon-pause] {
	display: block !important;
}

#avt-root .avt-player__play:not(.is-playing) [data-avt-icon-pause] {
	display: none !important;
}

#avt-root .avt-player__info {
	flex: 1;
	min-width: 0;
}

#avt-root .avt-player__track-title {
	margin: 0;
	font-size: 15px;
	font-weight: 850;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#avt-root .avt-player__time {
	font-size: 12px;
	color: var(--avt-muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	direction: ltr;
	unicode-bidi: isolate;
}

#avt-root .avt-player__timeline {
	display: grid;
	gap: 6px;
	width: 100%;
}

#avt-root .avt-player__time-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

#avt-root .avt-player__time-sep {
	opacity: 0.72;
}

#avt-root .avt-player__progress {
	position: relative;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	cursor: pointer;
	touch-action: none;
}

#avt-root .avt-player__progress-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0%;
	border-radius: inherit;
	background: var(--avt-primary);
	pointer-events: none;
}

#avt-root .avt-player__progress-thumb {
	position: absolute;
	top: 50%;
	left: 0%;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--avt-primary);
	border: 2px solid #fff;
	transform: translate(-50%, -50%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.12s ease;
	pointer-events: none;
}

#avt-root .avt-player__progress:hover .avt-player__progress-thumb,
#avt-root .avt-player__progress:focus-within .avt-player__progress-thumb {
	opacity: 1;
}

#avt-root .avt-player__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

#avt-root .avt-player__controls--end {
	justify-content: flex-end;
}

#avt-root .avt-player__dl-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	width: 100%;
	min-width: 0;
}

#avt-root .avt-player__roles {
	margin: 0;
	margin-inline-end: auto;
	flex: 1 1 auto;
	min-width: 0;
	font-size: 11px;
	line-height: 1.55;
	font-weight: 500;
	color: rgba(237, 237, 237, 0.52);
}

#avt-root .avt-player__controls-left,
#avt-root .avt-player__controls-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

#avt-root .avt-player__btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--avt-border);
	background: rgba(0, 0, 0, 0.2);
	display: grid;
	place-items: center;
	color: var(--avt-muted);
	transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

#avt-root .avt-player__btn:hover,
#avt-root .avt-player__btn.is-active {
	color: var(--avt-accent);
	border-color: rgba(20, 220, 180, 0.35);
	background: rgba(20, 220, 180, 0.1);
}

#avt-root .avt-player__btn svg {
	width: 18px;
	height: 18px;
}

#avt-root .avt-player__volume {
	display: none;
	align-items: center;
	gap: 8px;
}

#avt-root .avt-player__volume input[type="range"] {
	width: 88px;
	accent-color: var(--avt-accent);
}

#avt-root .avt-player__download {
	min-height: 40px;
	padding: 0 14px;
	border-radius: var(--avt-radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(14px) saturate(1.2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	color: rgba(237, 237, 237, 0.88);
	font-size: 12px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#avt-root .avt-player__download:hover {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

#avt-root .avt-player__download svg {
	width: 16px;
	height: 16px;
}

/* Album tracklist */
#avt-root .avt-album {
	display: grid;
	gap: 14px;
}

#avt-root .avt-album__list {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#avt-root .avt-album__item {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 12px 12px;
	border-radius: 14px;
	border: 1px solid transparent;
	background: rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease;
}

#avt-root .avt-album__item.is-lyrics-open {
	align-items: start;
}

#avt-root .avt-album__item:hover {
	background: rgba(255, 255, 255, 0.04);
}

#avt-root .avt-album__item.is-active {
	border-color: rgba(220, 20, 60, 0.45);
}

#avt-root .avt-album__num {
	font-size: 13px;
	font-weight: 800;
	color: var(--avt-muted);
	text-align: center;
	font-variant-numeric: tabular-nums;
}

#avt-root .avt-album__item.is-active .avt-album__num {
	color: var(--avt-primary);
}

#avt-root .avt-album__title {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#avt-root .avt-album__title-en {
	margin: 2px 0 0;
	font-size: 11px;
	color: var(--avt-muted);
	direction: ltr;
	text-align: right;
}

#avt-root .avt-album__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

#avt-root .avt-album__actions .avt-player__dl-row {
	flex: 1 1 auto;
	min-width: 0;
}

#avt-root .avt-album__lyrics-btn,
#avt-root .avt-album__dl {
	min-height: 32px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid var(--avt-border);
	font-size: 11px;
	font-weight: 750;
	color: var(--avt-muted);
	background: transparent;
	transition: color 0.12s ease, border-color 0.12s ease;
}

#avt-root .avt-album__lyrics-btn.is-open,
#avt-root .avt-album__lyrics-btn:hover,
#avt-root .avt-album__dl:hover {
	color: var(--avt-accent);
	border-color: rgba(20, 220, 180, 0.35);
}

#avt-root .avt-album__dl {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	text-decoration: none;
}

#avt-root .avt-album__dl svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

#avt-root .avt-album__lyrics-panel {
	display: none;
	grid-column: 1 / -1;
	padding: 12px 8px 4px;
	margin-top: -2px;
	border-top: 1px solid var(--avt-border);
	text-align: center;
	line-height: 2;
	font-size: 13px;
	color: rgba(237, 237, 237, 0.88);
	word-break: break-word;
}

#avt-root .avt-album__item.is-lyrics-open .avt-album__lyrics-panel {
	display: block;
}

/* Lyrics (single) */
#avt-root .avt-lyrics {
	line-height: 2.15;
	font-size: 15px;
	color: rgba(237, 237, 237, 0.9);
	padding: 8px 4px;
	word-break: break-word;
}

#avt-root .avt-player__btn.is-playing [data-avt-video-icon-play] {
	display: none !important;
}

#avt-root .avt-player__btn.is-playing [data-avt-video-icon-pause] {
	display: block !important;
}

#avt-root .avt-player__btn:not(.is-playing) [data-avt-video-icon-pause] {
	display: none !important;
}

#avt-root .avt-video__frame.is-fullscreen [data-avt-video-icon-enter-fs] {
	display: none !important;
}

#avt-root .avt-video__frame.is-fullscreen [data-avt-video-icon-exit-fs] {
	display: block !important;
}

#avt-root .avt-video__frame:not(.is-fullscreen) [data-avt-video-icon-exit-fs] {
	display: none !important;
}

#avt-root .avt-video__frame:fullscreen,
#avt-root .avt-video__frame:-webkit-full-screen {
	width: 100vw;
	height: 100vh;
	max-height: none;
	border-radius: 0;
	border: 0;
	aspect-ratio: auto;
}

#avt-root .avt-video__frame:fullscreen video,
#avt-root .avt-video__frame:-webkit-full-screen video {
	object-fit: contain;
}

/* Video player */
#avt-root .avt-video {
	display: grid;
	gap: 14px;
}

#avt-root .avt-video__frame {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: #000;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--avt-border);
}

#avt-root .avt-video__frame video {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: #000;
	pointer-events: none;
}

/* Full-frame tap target while playing (works in normal + fullscreen). */
#avt-root .avt-video__hit {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: none;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
	touch-action: manipulation;
}

#avt-root .avt-video__frame.is-playing .avt-video__hit {
	display: block;
}

/* When chrome is hidden, hit sits above everything so any tap on the frame works. */
#avt-root .avt-video__frame.is-playing:not(.is-controls) .avt-video__hit {
	z-index: 5;
}

#avt-root .avt-video__bar .avt-player__time {
	color: rgba(255, 255, 255, 0.85);
}

#avt-root .avt-video__bar .avt-player__btn {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(0, 0, 0, 0.35);
}

#avt-root .avt-video__overlay {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.4);
	opacity: 1;
	pointer-events: auto;
	transition: opacity 0.18s ease;
}

/* Big play only when paused / idle — never blocked by chrome state. */
#avt-root .avt-video__frame.is-playing .avt-video__overlay {
	opacity: 0;
	pointer-events: none;
}

#avt-root .avt-video__big-play {
	width: 72px;
	height: 72px;
	border: 0;
	border-radius: 50%;
	background: var(--avt-primary);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 14px 40px rgba(220, 20, 60, 0.35);
	-webkit-tap-highlight-color: transparent;
}

#avt-root .avt-video__big-play svg {
	width: 28px;
	height: 28px;
	margin-inline-start: 2px;
}

#avt-root .avt-video__bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

/* Chrome is JS-driven only (is-controls). */
#avt-root .avt-video__frame.is-controls .avt-video__bar {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

#avt-root .avt-video__actions {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
}

#avt-root .avt-video__actions [data-avt-video-toggle] {
	margin-inline-start: auto;
}

#avt-root .avt-video__time-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

#avt-root .avt-video__footer {
	display: flex;
	justify-content: flex-end;
}

#avt-root .avt-video__footer .avt-player__download {
	width: auto;
}

/* Related works */
#avt-root .avt-related {
	margin-top: 8px;
}

#avt-root .avt-related--aside {
	margin-top: 0;
}

#avt-root .avt-related--aside .avt-related__title {
	margin-bottom: 12px;
	font-size: clamp(0.92rem, 2vw, 1.05rem);
}

#avt-root .avt-related__list {
	display: grid;
	gap: 12px;
}

#avt-root .avt-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

#avt-root .avt-work-card-public {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	border-radius: 16px;
	border: 1px solid var(--avt-border);
	background: rgba(255, 255, 255, 0.03);
	transition: border-color 0.15s ease, transform 0.15s ease;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

#avt-root .avt-work-card-public--row {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding: 18px;
	border-radius: var(--avt-radius);
	box-shadow: var(--avt-shadow);
}

#avt-root a.avt-work-card-public:hover {
	border-color: rgba(20, 220, 180, 0.35);
	transform: translateY(-2px);
}

#avt-root a.avt-work-card-public--row:hover {
	border-color: rgba(237, 237, 237, 0.22);
	transform: translateY(-2px);
}

#avt-root .avt-work-card-public__cover {
	aspect-ratio: 1;
	border-radius: var(--avt-radius-sm);
	overflow: hidden;
	background: linear-gradient(145deg, rgba(20, 220, 180, 0.16), rgba(220, 20, 60, 0.2));
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

#avt-root .avt-work-card-public--row .avt-work-card-public__cover {
	width: 64px;
	height: 64px;
	min-width: 64px;
	min-height: 64px;
	border-radius: var(--avt-radius-sm);
	border: 1px solid rgba(237, 237, 237, 0.14);
}

#avt-root .avt-work-card-public__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#avt-root .avt-work-card-public__body {
	min-width: 0;
	flex: 1;
}

#avt-root .avt-work-card-public__title {
	margin: 0;
	font-size: 14px;
	font-weight: 850;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#avt-root .avt-work-card-public__body--row {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#avt-root .avt-work-card-public--row .avt-work-card-public__title {
	font-size: 16px;
	font-weight: 900;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	-webkit-line-clamp: unset;
	-webkit-box-orient: unset;
}

#avt-root .avt-work-card-public__type {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--avt-muted);
}

#avt-root .avt-work-card-public__chev {
	opacity: 0.45;
	flex-shrink: 0;
	display: grid;
	place-items: center;
}

#avt-root .avt-work-card-public__chev svg {
	display: block;
}

#avt-root a.avt-work-card-public--row:hover .avt-work-card-public__chev {
	opacity: 0.72;
}

#avt-root .avt-work-card-public__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* Mini player (mobile sticky) */
#avt-root .avt-mini-player {
	display: none;
}

@media (min-width: 900px) {
	#avt-root .avt-player__volume {
		display: inline-flex;
	}
}

@media (max-width: 960px) {
	#avt-root .avt-music-layout {
		grid-template-columns: 1fr;
	}

	#avt-root .avt-music-aside {
		position: static;
		order: 2;
	}

	#avt-root .avt-music-main {
		order: 1;
	}

	#avt-root .avt-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	#avt-root .avt-music__backdrop {
		height: clamp(340px, 56vh, 560px);
		-webkit-mask-image: linear-gradient(
			to bottom,
			#000 0%,
			#000 36%,
			rgba(0, 0, 0, 0.65) 68%,
			transparent 100%
		);
		mask-image: linear-gradient(
			to bottom,
			#000 0%,
			#000 36%,
			rgba(0, 0, 0, 0.65) 68%,
			transparent 100%
		);
	}

	#avt-root .avt-music-hero {
		padding: calc(20px + env(safe-area-inset-top, 0px)) 0 20px;
		margin-bottom: 0;
	}

	#avt-root .avt-music-hero__ambient {
		inset: -20% -8%;
		filter: blur(64px) saturate(1.45);
		opacity: 0.62;
	}

	#avt-root .avt-music-hero__inner {
		grid-template-columns: 1fr;
		justify-items: stretch;
		text-align: center;
		gap: 0;
	}

	#avt-root .avt-music-hero__inner.avt-container {
		padding-left: 0;
		padding-right: 0;
		max-width: none;
	}

	#avt-root .avt-music-hero__cover-stage {
		width: 100%;
		padding: 28px 24px 22px;
	}

	#avt-root .avt-music-hero__cover-glow {
		inset: 10% 16%;
		filter: blur(28px);
		opacity: 1;
	}

	#avt-root .avt-music-hero__cover,
	#avt-root .avt-music-hero__cover-ring {
		width: min(76vw, 280px);
		max-width: min(76vw, 280px);
	}

	#avt-root .avt-music-hero__cover {
		border-radius: 24px;
		box-shadow:
			0 28px 70px rgba(0, 0, 0, 0.5),
			0 0 0 1px rgba(255, 255, 255, 0.14) inset;
	}

	#avt-root .avt-music-hero__cover-ring {
		border-radius: 26px;
	}

	#avt-root .avt-music-hero__meta-glass {
		margin: 0;
		padding: 2px 14px 16px;
		width: 100%;
	}

	#avt-root .avt-music-hero__meta {
		align-items: flex-start;
		gap: 5px;
	}

	#avt-root .avt-music-hero__title {
		font-size: clamp(1.35rem, 5.2vw, 1.75rem);
		line-height: 1.3;
	}

	#avt-root .avt-music-hero__title,
	#avt-root .avt-music-hero__artist-fa,
	#avt-root .avt-music-hero__artist-en,
	#avt-root .avt-music-hero__meta-fa,
	#avt-root .avt-music-hero__meta-en {
		word-break: break-word;
	}

	#avt-root .avt-music-hero__artist-row {
		gap: 8px 12px;
	}

	#avt-root .avt-music-hero__artist-en {
		margin-inline-start: auto;
		max-width: 100%;
		white-space: normal;
	}

	#avt-root .avt-music-hero__meta-row {
		margin-top: 10px;
		gap: 8px 12px;
	}

	#avt-root .avt-music-hero__meta-en {
		margin-inline-start: auto;
		max-width: 100%;
	}

	#avt-root .avt-music-layout {
		margin-top: 0;
	}

	#avt-root .avt-panel {
		padding: 14px;
	}

	#avt-root .avt-player__top {
		gap: 10px;
	}

	#avt-root .avt-player__play {
		width: 48px;
		height: 48px;
	}

	#avt-root .avt-player__controls {
		flex-direction: column;
		align-items: stretch;
	}

	#avt-root .avt-player__controls-left,
	#avt-root .avt-player__controls-right {
		justify-content: center;
		flex-wrap: wrap;
	}

	#avt-root .avt-player__download {
		width: 100%;
		justify-content: center;
	}

	#avt-root .avt-player__dl-row {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	#avt-root .avt-player__roles {
		margin-inline-end: 0;
		order: -1;
	}

	#avt-root .avt-player__dl-row .avt-player__download,
	#avt-root .avt-player__dl-row .avt-album__dl {
		width: 100%;
		justify-content: center;
	}

	#avt-root .avt-album__item {
		grid-template-columns: 28px minmax(0, 1fr);
		padding: 10px;
	}

	#avt-root .avt-album__actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	#avt-root .avt-album__title {
		white-space: normal;
	}

	#avt-root .avt-video__footer .avt-player__download {
		width: 100%;
		justify-content: center;
	}

	#avt-root .avt-video__big-play {
		width: 64px;
		height: 64px;
	}

	#avt-root .avt-related__grid {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		padding-bottom: 6px;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	#avt-root .avt-related__grid .avt-work-card-public {
		flex: 0 0 68%;
		scroll-snap-align: start;
	}

	#avt-root .avt-mini-player {
		display: flex;
		align-items: center;
		gap: 10px;
		position: fixed;
		left: max(12px, env(safe-area-inset-left, 0px));
		right: max(12px, env(safe-area-inset-right, 0px));
		bottom: calc(var(--avt-mini-player-bottom, 12px) + var(--avt-safe-bottom));
		z-index: 50;
		padding: 10px 12px;
		border-radius: 16px;
		border: 1px solid var(--avt-border);
		background: rgba(26, 26, 26, 0.94);
		backdrop-filter: blur(14px);
		box-shadow: var(--avt-shadow-lg);
		transform: translateY(120%);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.22s ease, opacity 0.22s ease, bottom 0.18s ease;
		max-width: calc(100vw - 24px);
	}

	#avt-root .avt-mini-player .avt-player__play {
		width: 40px;
		height: 40px;
		flex-shrink: 0;
	}

	#avt-root .avt-mini-player .avt-player__play.is-playing [data-avt-mini-icon-play] {
		display: none !important;
	}

	#avt-root .avt-mini-player .avt-player__play.is-playing [data-avt-mini-icon-pause] {
		display: block !important;
	}

	#avt-root .avt-mini-player .avt-player__play:not(.is-playing) [data-avt-mini-icon-pause] {
		display: none !important;
	}

	#avt-root .avt-mini-player.is-visible {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	#avt-root .avt-mini-player__cover {
		width: 42px;
		height: 42px;
		border-radius: 10px;
		overflow: hidden;
		flex-shrink: 0;
		background: rgba(0, 0, 0, 0.3);
	}

	#avt-root .avt-mini-player__cover img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	#avt-root .avt-mini-player__title {
		flex: 1;
		min-width: 0;
		font-size: 13px;
		font-weight: 800;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#avt-root .avt-music {
		padding-bottom: 96px;
	}
}
