.wf-player {
	--wf-bg: #f7f7f7;
	--wf-card: #ffffff;
	--wf-card-2: #fafafa;
	--wf-border: #e7e7e7;
	--wf-text: #212529;
	--wf-subtle: #6c757d;
	--wf-accent: #ff5500;
	--wf-accent-2: #ff6f2f;
	--wf-accent-rgb: 255, 85, 0;
	--wf-radius: 8px;
	--wf-corner: 6px;
	color: var(--wf-text);
	border: 0;
}

.wf-player-overview {
	padding: 0;
}

.wf-player-header {
	margin-bottom: 0.8rem;
}

.wf-player-kicker {
	margin: 0 0 0.5rem;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wf-subtle);
	font-weight: 600;
}

.wf-player-header h2 {
	margin-bottom: 0.25rem;
	font-size: 1.15rem;
	line-height: 1.2;
}

.wf-player-header p {
	margin: 0;
	color: var(--wf-subtle);
}

.wf-player-grid {
	display: grid;
	grid-template-columns: minmax(320px, 1.8fr) minmax(220px, 1fr) minmax(220px, 1fr);
	gap: 1rem;
}

.wf-player-card {
	padding: 0;
}

.wf-player-card h3 {
	font-size: 1rem;
	margin: 0 0 0.75rem;
}

.wf-player-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.wf-player-links a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	text-decoration: none;
	color: var(--wf-text);
}

.wf-link-artwork {
	width: 32px;
	height: 32px;
	border-radius: calc(var(--wf-corner) * 0.66);
	object-fit: cover;
	flex-shrink: 0;
}

.wf-link-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.wf-link-title {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wf-link-artist {
	font-size: 0.8rem;
	color: var(--wf-subtle);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wf-link-artwork-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	color: #8a8f94;
}

.wf-link-label {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wf-player-card-album .wf-player-links {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.8rem;
}

.wf-player-card-album .wf-player-links a {
	display: grid;
	gap: 0.4rem;
}

.wf-player-card-album .wf-link-artwork {
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
	border-radius: var(--wf-corner);
}

.wf-player-card-album .wf-link-title {
	font-size: 0.95rem;
	font-weight: 600;
	white-space: normal;
}

.wf-player-card-track .wf-player-links,
.wf-player-card-playlist .wf-player-links {
	gap: 0.45rem;
}

.wf-player-embed {
	padding: 0.85rem;
	overflow: hidden;
}

.wf-player-shell {
	display: block;
}

.wf-player-main {
	padding: 0.7rem;
}

.wf-player-head {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 0.75rem;
	align-items: start;
}

.wf-player-cover {
	width: 100%;
	max-width: 150px;
}

.wf-hero-artwork {
	display: block;
	width: 100%;
	max-width: 150px;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: var(--wf-corner);
	background: #f3f3f3;
}

.wf-hero-artwork-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #adb5bd;
	font-size: 2rem;
}

.wf-player-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wf-player-title {
	margin: 0;
	font-size: 1rem;
}

.wf-player-description {
	margin-top: 0.35rem;
	margin-bottom: 0;
	font-size: 0.9rem;
	color: var(--wf-subtle);
}

.wf-player-widget {
	margin-top: 0.7rem;
	margin-bottom: 0;
	padding: 0.65rem;
	border-radius: var(--wf-corner);
	border: 1px solid #e4e5e6;
}

.wf-player-top {
	display: flex;
	gap: 0.55rem;
	align-items: center;
}

.wf-now-artwork {
	width: 32px;
	height: 32px;
	border-radius: calc(var(--wf-corner) * 0.66);
	object-fit: cover;
	flex-shrink: 0;
}

.wf-btn {
	width: 1.95rem;
	height: 1.95rem;
	border-radius: 50%;
	border: 0;
	cursor: pointer;
	background: transparent;
	color: #212529;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wf-play {
	width: 2.1rem;
	height: 2.1rem;
	background: var(--wf-accent);
	border-color: var(--wf-accent);
	color: #fff;
}

.wf-play:hover {
	background: var(--wf-accent-2);
}

.wf-btn i {
	font-size: 1rem;
	line-height: 1;
	padding: 2px 0 0 1px;
}

.wf-now-playing {
	min-width: 0;
	flex: 1;
}

.wf-now-title {
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wf-now-meta {
	font-size: 0.8rem;
	color: var(--wf-subtle);
	display: flex;
	align-items: center;
	gap: 0.4rem;
	min-width: 0;
}

.wf-now-meta [data-now-meta] {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	flex: 1;
}

.wf-now-plays {
	margin-left: auto;
	font-size: 0.72rem;
	white-space: nowrap;
	color: #7c838a;
}

.wf-waveform {
	position: relative;
	margin-top: 0.55rem;
	height: 72px;
	border-radius: calc(var(--wf-corner) * 0.66);
	overflow: hidden;
	cursor: pointer;
}

.wf-waveform:focus-visible {
	outline: 2px solid var(--wf-accent);
	outline-offset: 2px;
}

.wf-waveform-canvas {
	width: 100%;
	height: 100%;
	display: block;
}

.wf-waveform-times {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	padding: 0.2rem 0.35rem;
	pointer-events: none;
}

.wf-player-volume {
	margin-top: 0;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--wf-subtle);
	max-width: 200px;
	margin-left: auto;
}

.wf-volume {
	width: 100%;
	accent-color: var(--wf-accent);
}

.wf-time {
	font-size: 0.75rem;
	color: var(--wf-subtle);
	font-variant-numeric: tabular-nums;
}

.wf-player-queue {
	padding: 0;
	margin-top: 0.35rem;
	padding-top: 0.25rem;
	max-height: 246px;
	overflow: auto;
}

.wf-queue-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.15rem;
}

.wf-queue-item button {
	width: 100%;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	border-radius: calc(var(--wf-corner) * 0.66);
	padding: 0.22rem 0.28rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.38rem;
}

.wf-queue-item button:hover {
	color: inherit;
}

.wf-queue-item.is-active button {
	background: rgba(var(--wf-accent-rgb), 0.16);
}

.wf-queue-artwork {
	width: 22px;
	height: 22px;
	border-radius: calc(var(--wf-corner) * 0.5);
	object-fit: cover;
	flex-shrink: 0;
}

.wf-queue-artwork-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	color: #8a8f94;
}

.wf-queue-line {
	display: inline-flex;
	align-items: center;
	gap: 0.18rem;
	min-width: 0;
	flex: 1;
}

.wf-queue-title {
	display: inline;
	font-weight: 500;
	font-size: 0.78rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}

.wf-queue-sep {
	color: #a1a6ab;
	font-size: 0.68rem;
}

.wf-queue-meta {
	display: inline;
	font-size: 0.68rem;
	color: var(--wf-subtle);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wf-queue-plays {
	margin-left: auto;
	font-size: 0.66rem;
	color: #7c838a;
	white-space: nowrap;
	padding-left: 0.4rem;
}

@media (max-width: 860px) {
	.wf-player-grid {
		grid-template-columns: 1fr;
	}

	.wf-player-head {
		grid-template-columns: 1fr;
	}

	.wf-player-top {
		display: flex;
	}

	.wf-hero-artwork {
		max-width: 150px;
		height: auto;
		aspect-ratio: 1/1;
	}

	.wf-now-playing {
		min-width: 0;
	}
}
