/*
 * Voxmack Site Kits.
 *
 * Every rule is scoped under .vsk or .vsk-bar, so nothing here can reach into
 * a theme's own markup. The reverse problem, a theme reaching in here, is
 * handled by setting the things themes most often set globally (font size,
 * line height, box-sizing, list style, link colour) rather than inheriting
 * them and hoping.
 *
 * ON THE LOOK
 *
 * The design leans on space, radius, one accent colour and restrained depth
 * rather than borders and gradients everywhere. That is a practical choice as
 * much as a taste one: this markup lands inside somebody else's theme, and a
 * heavy treatment fights whatever surrounds it while a quiet one reads as
 * deliberate almost anywhere. Artwork does the visual work, because on a music
 * site the artwork is the content.
 */

.vsk,
.vsk-bar {
	--vsk-accent: #1a73e8;
	--vsk-accent-ink: #ffffff;
	--vsk-bg: #ffffff;
	--vsk-surface: #ffffff;
	--vsk-raise: #f6f7f9;
	--vsk-fg: #14161a;
	--vsk-muted: #697586;
	--vsk-line: #e6e8ec;
	--vsk-radius: 14px;
	--vsk-radius-sm: 10px;
	--vsk-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
	--vsk-shadow-lift: 0 2px 6px rgba(16, 24, 40, .08), 0 18px 40px rgba(16, 24, 40, .12);
	--vsk-ease: cubic-bezier(.2, .7, .3, 1);

	box-sizing: border-box;
	color: var(--vsk-fg);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
	.vsk,
	.vsk-bar {
		--vsk-bg: #0f1115;
		--vsk-surface: #16191f;
		--vsk-raise: #1b1f27;
		--vsk-fg: #e9ecf1;
		--vsk-muted: #98a2b3;
		--vsk-line: #262b34;
		--vsk-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
		--vsk-shadow-lift: 0 2px 8px rgba(0, 0, 0, .5), 0 18px 44px rgba(0, 0, 0, .5);
	}
}

.vsk *,
.vsk-bar * { box-sizing: inherit; }

.vsk a { text-decoration: none; }

/* A visible focus ring, always. Keyboard users exist, and a player without
   one is unusable for them. */
.vsk :focus-visible,
.vsk-bar :focus-visible {
	outline: 2px solid var(--vsk-accent);
	outline-offset: 2px;
	border-radius: 6px;
}

.vsk-empty {
	color: var(--vsk-muted);
	margin: 0;
	padding: 36px 18px;
	text-align: center;
	border: 1px dashed var(--vsk-line);
	border-radius: var(--vsk-radius);
	background: var(--vsk-raise);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ===========================================================================
 * Heads and tools
 * ======================================================================== */

.vsk-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.vsk-playlist-title,
.vsk-charts-title,
.vsk-artists-title {
	font-size: 21px;
	line-height: 1.25;
	margin: 0;
	letter-spacing: -.01em;
}

.vsk-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.vsk-tools input[type="search"],
.vsk-searchform input[type="search"] {
	border: 1px solid var(--vsk-line);
	background: var(--vsk-surface);
	color: var(--vsk-fg);
	border-radius: 999px;
	padding: 9px 16px;
	font: inherit;
	min-width: 180px;
	transition: border-color .18s var(--vsk-ease), box-shadow .18s var(--vsk-ease);
}

.vsk-tools input[type="search"]:focus,
.vsk-searchform input[type="search"]:focus {
	border-color: var(--vsk-accent);
	box-shadow: 0 0 0 4px rgba(26, 115, 232, .18);  /* fallback */
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--vsk-accent) 14%, transparent);
	outline: none;
}

.vsk-playall,
.vsk-shuffle,
.vsk-searchform button {
	border: 1px solid var(--vsk-line);
	background: var(--vsk-surface);
	color: var(--vsk-fg);
	border-radius: 999px;
	padding: 9px 18px;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	transition: transform .14s var(--vsk-ease), box-shadow .18s var(--vsk-ease), background .18s var(--vsk-ease);
}

.vsk-playall,
.vsk-searchform button {
	background: var(--vsk-accent);
	border-color: transparent;
	color: var(--vsk-accent-ink);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .1);
}

.vsk-playall:hover,
.vsk-searchform button:hover { transform: translateY(-1px); box-shadow: var(--vsk-shadow); }
.vsk-playall:active { transform: translateY(0); }
.vsk-shuffle:hover { border-color: var(--vsk-accent); color: var(--vsk-accent); }
.vsk-shuffle[aria-pressed="true"] { background: var(--vsk-accent); border-color: transparent; color: var(--vsk-accent-ink); }

.vsk-searchform {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.vsk-searchform input[type="search"] { flex: 1 1 240px; min-width: 0; }
.vsk-clear { align-self: center; color: var(--vsk-muted); font-size: 13px; }
.vsk-clear:hover { color: var(--vsk-accent); }

/* ===========================================================================
 * Song rows
 *
 * A card per list rather than a bare stack: it gives the rows an edge to sit
 * against, which is what stops them reading as loose text when the theme
 * around them is busy.
 * ======================================================================== */

.vsk-rows,
.vsk-chart-list {
	list-style: none;
	margin: 0;
	padding: 6px;
	background: var(--vsk-surface);
	border: 1px solid var(--vsk-line);
	border-radius: var(--vsk-radius);
	box-shadow: var(--vsk-shadow);
	counter-reset: vskrow;
}

.vsk-row,
.vsk-chart-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: var(--vsk-radius-sm);
	position: relative;
	transition: background .16s var(--vsk-ease);
}

.vsk-row + .vsk-row::before,
.vsk-chart-row + .vsk-chart-row::before {
	content: "";
	position: absolute;
	top: 0;
	left: 76px;
	right: 10px;
	height: 1px;
	background: var(--vsk-line);
}

.vsk-row:hover,
.vsk-chart-row:hover { background: var(--vsk-raise); }
.vsk-row:hover::before,
.vsk-row:hover + .vsk-row::before { opacity: 0; }

.vsk-row.is-playing {
	background: var(--vsk-raise);                   /* fallback */
	background: color-mix(in srgb, var(--vsk-accent) 10%, transparent);
}

.vsk-row.is-playing .vsk-row-title { color: var(--vsk-accent); }

/* ---- artwork, with the play button living on top of it ---------------- */

.vsk-row-art,
.vsk-chart-art {
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	object-fit: cover;
	border-radius: var(--vsk-radius-sm);
	background: var(--vsk-raise);
	display: block;
}

.vsk-row-art-blank,
.vsk-chart-art-blank {
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--vsk-accent) 22%, transparent), transparent 70%),
		var(--vsk-raise);
}

.vsk-row-play {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: var(--vsk-accent);
	position: relative;
	padding: 0;
	display: grid;
	place-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .22);       /* fallback */
	box-shadow: 0 2px 8px color-mix(in srgb, var(--vsk-accent) 40%, transparent);
	transition: transform .16s var(--vsk-ease), box-shadow .18s var(--vsk-ease);
}

.vsk-row-play:hover { transform: scale(1.07); }
.vsk-row-play:active { transform: scale(.96); }

.vsk-row-play::after {
	content: "";
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent var(--vsk-accent-ink);
	margin-left: 2px;
}

.vsk-row-play-off {
	background: var(--vsk-raise);
	border: 1px dashed var(--vsk-line);
	box-shadow: none;
	width: 36px; height: 36px; flex: 0 0 36px;
	border-radius: 50%;
	display: inline-block;
}

.vsk-row-meta,
.vsk-chart-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;          /* lets the title ellipsis rather than stretch the row */
	flex: 1 1 auto;
	gap: 1px;
}

.vsk-row-title,
.vsk-chart-title {
	color: var(--vsk-fg);
	font-weight: 650;
	letter-spacing: -.005em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color .16s var(--vsk-ease);
}

.vsk-row-title:hover,
.vsk-chart-title:hover { color: var(--vsk-accent); }

.vsk-row-artist,
.vsk-chart-artist {
	color: var(--vsk-muted);
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.vsk-row-artist:hover,
a.vsk-chart-artist:hover,
a.vsk-pod-artist:hover { color: var(--vsk-accent); }

/* The download button appears on hover on a pointer device, and is simply
   always there on touch, where there is no hover to reveal it with. */
.vsk-row-dl {
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	border-radius: 50%;
	border: 1px solid var(--vsk-line);
	position: relative;
	opacity: 0;
	transition: opacity .16s var(--vsk-ease), border-color .16s var(--vsk-ease), background .16s var(--vsk-ease);
}

.vsk-row:hover .vsk-row-dl,
.vsk-row-dl:focus-visible { opacity: 1; }

.vsk-row-dl:hover { border-color: var(--vsk-accent); background: var(--vsk-raise); }
.vsk-row-dl:hover { background: color-mix(in srgb, var(--vsk-accent) 10%, transparent); }

@media (hover: none) {
	.vsk-row-dl { opacity: .75; }
}

.vsk-row-dl::before {
	content: "";
	position: absolute;
	top: 43%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 6px 4px 0 4px;
	border-color: var(--vsk-fg) transparent transparent transparent;
}

.vsk-row-dl::after {
	content: "";
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: 11px;
	height: 2px;
	border-radius: 1px;
	background: var(--vsk-fg);
}

/* ---- the three bars on the row that is playing ------------------------ */

.vsk-eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }

.vsk-eq i {
	width: 3px;
	border-radius: 1px;
	background: var(--vsk-accent-ink);
	animation: vsk-eq 900ms ease-in-out infinite;
}

.vsk-eq i:nth-child(1) { height: 6px;  animation-delay: 0ms; }
.vsk-eq i:nth-child(2) { height: 13px; animation-delay: 150ms; }
.vsk-eq i:nth-child(3) { height: 9px;  animation-delay: 300ms; }

@keyframes vsk-eq {
	0%, 100% { transform: scaleY(.4); }
	50%      { transform: scaleY(1); }
}

.vsk-row.is-playing .vsk-row-play .vsk-eq { display: flex; }
.vsk-row.is-playing .vsk-row-play::after { display: none; }

@media (prefers-reduced-motion: reduce) {
	.vsk-eq i { animation: none; }
	.vsk, .vsk-bar, .vsk * { transition-duration: .01ms !important; }
}

.vsk-noresults { color: var(--vsk-muted); padding: 22px 12px; text-align: center; }

.vsk-note {
	color: var(--vsk-muted);
	font-size: 12px;
	margin-top: 14px;
	text-align: center;
}

/* ===========================================================================
 * Artist header
 * ======================================================================== */

.vsk-artist-head {
	position: relative;
	display: flex;
	gap: 18px;
	align-items: center;
	padding: 20px;
	border-radius: var(--vsk-radius);
	margin-bottom: 18px;
	overflow: hidden;
	background: var(--vsk-raise);
	border: 1px solid var(--vsk-line);
}

/* A wash of the accent behind the header rather than a photo blur, which
   would need the artwork at a size the index does not store. */
.vsk-artist-head::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(900px 200px at 0% 0%, color-mix(in srgb, var(--vsk-accent) 18%, transparent), transparent 70%);
	pointer-events: none;
}

.vsk-artist-art {
	width: 104px;
	height: 104px;
	border-radius: 16px;
	object-fit: cover;
	flex: 0 0 104px;
	box-shadow: var(--vsk-shadow-lift);
	position: relative;
}

.vsk-artist-head-meta { position: relative; min-width: 0; }
.vsk-artist-name { margin: 0 0 2px; font-size: 25px; line-height: 1.15; letter-spacing: -.02em; }
.vsk-artist-sub { margin: 0 0 10px; color: var(--vsk-muted); font-size: 14px; }

.vsk-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--vsk-accent);
}

.vsk-back::before { content: "\2190"; }

.vsk-artist-plain { display: block; padding: 11px 13px; color: var(--vsk-muted); }

/* ===========================================================================
 * Artist grids
 * ======================================================================== */

.vsk-artist-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}

.vsk-artist a,
.vsk-artist-plain {
	display: block;
	padding: 13px 15px;
	border: 1px solid var(--vsk-line);
	border-radius: var(--vsk-radius-sm);
	color: var(--vsk-fg);
	background: var(--vsk-surface);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
	transition: transform .16s var(--vsk-ease), border-color .16s var(--vsk-ease), box-shadow .18s var(--vsk-ease);
}

.vsk-artist a:hover {
	border-color: transparent;
	color: var(--vsk-accent);
	transform: translateY(-2px);
	box-shadow: var(--vsk-shadow);
}

.vsk-artist-count { float: right; color: var(--vsk-muted); font-size: 12px; font-weight: 500; }

.vsk-az { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }

.vsk-az a {
	padding: 6px 11px;
	border: 1px solid var(--vsk-line);
	border-radius: 8px;
	color: var(--vsk-fg);
	font-size: 13px;
	font-weight: 600;
	background: var(--vsk-surface);
	transition: background .16s var(--vsk-ease), color .16s var(--vsk-ease), border-color .16s var(--vsk-ease);
}

.vsk-az a:hover { border-color: var(--vsk-accent); color: var(--vsk-accent); }
.vsk-az a.is-active { background: var(--vsk-accent); border-color: transparent; color: var(--vsk-accent-ink); }

.vsk-hub-intro { color: var(--vsk-muted); margin: 0 0 14px; }

/* ===========================================================================
 * Charts
 * ======================================================================== */

.vsk-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.vsk-tab {
	border: 1px solid var(--vsk-line);
	background: var(--vsk-surface);
	color: var(--vsk-fg);
	padding: 8px 16px;
	border-radius: 999px;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	transition: background .16s var(--vsk-ease), color .16s var(--vsk-ease), border-color .16s var(--vsk-ease);
}

.vsk-tab:hover { border-color: var(--vsk-accent); color: var(--vsk-accent); }
.vsk-tab.is-active { background: var(--vsk-accent); border-color: transparent; color: var(--vsk-accent-ink); }

.vsk-chart-pos {
	min-width: 26px;
	text-align: right;
	font-weight: 800;
	color: var(--vsk-muted);
	font-variant-numeric: tabular-nums;
	font-size: 15px;
}

.vsk-chart-row.is-top .vsk-chart-pos { color: var(--vsk-accent); }

.vsk-move { font-size: 11px; font-weight: 800; min-width: 36px; text-align: center; letter-spacing: .02em; }
.vsk-move-up { color: #16a34a; }
.vsk-move-down { color: #e11d48; }
.vsk-move-same { color: var(--vsk-muted); }

.vsk-move-new {
	color: var(--vsk-accent-ink);
	background: var(--vsk-accent);
	border-radius: 5px;
	padding: 2px 6px;
	font-size: 10px;
}

/* Admin only, so it never appears for a visitor at all. */
.vsk-chart-views {
	color: var(--vsk-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	min-width: 44px;
	text-align: right;
	opacity: .7;
}

.vsk-chart-built { color: var(--vsk-muted); font-size: 13px; margin-top: 12px; text-align: center; }
.vsk-chart-pane[hidden] { display: none; }
.vsk-chart-empty { padding: 30px 16px; color: var(--vsk-muted); text-align: center; }

/* ---- podium ------------------------------------------------------------ */

.vsk-podium {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 18px;
}

.vsk-pod {
	position: relative;
	border: 1px solid var(--vsk-line);
	border-radius: var(--vsk-radius);
	padding: 14px;
	text-align: center;
	background: var(--vsk-surface);
	box-shadow: var(--vsk-shadow);
	transition: transform .18s var(--vsk-ease), box-shadow .2s var(--vsk-ease);
}

.vsk-pod:hover { transform: translateY(-3px); box-shadow: var(--vsk-shadow-lift); }

.vsk-pod-1 {
	border-color: var(--vsk-accent);                /* fallback */
	border-color: color-mix(in srgb, var(--vsk-accent) 45%, var(--vsk-line));
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--vsk-accent) 7%, transparent), transparent 55%),
		var(--vsk-surface);
}

.vsk-pod-rank {
	position: absolute;
	top: 10px;
	left: 12px;
	font-weight: 900;
	font-size: 17px;
	color: var(--vsk-muted);
	font-variant-numeric: tabular-nums;
	z-index: 2;
	text-shadow: 0 1px 0 var(--vsk-surface);
}

.vsk-pod-1 .vsk-pod-rank { color: var(--vsk-accent); }

.vsk-pod-art {
	position: relative;
	width: 100%;
	min-height: 150px;                              /* floor for browsers with no aspect-ratio */
	aspect-ratio: 1 / 1;
	margin-bottom: 12px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--vsk-raise);
}

.vsk-pod-art img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s var(--vsk-ease);
}

.vsk-pod:hover .vsk-pod-art img { transform: scale(1.04); }

.vsk-pod-art .vsk-row-play {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 42px; height: 42px; flex: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

.vsk-pod-title {
	display: block;
	font-weight: 700;
	color: var(--vsk-fg);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.vsk-pod-artist {
	display: block;
	color: var(--vsk-muted);
	font-size: 13px;
	margin-bottom: 6px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===========================================================================
 * Pagination
 * ======================================================================== */

.vsk-pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 18px; justify-content: center; }

.vsk-page {
	border: 1px solid var(--vsk-line);
	border-radius: 9px;
	padding: 8px 13px;
	color: var(--vsk-fg);
	font-size: 14px;
	font-weight: 600;
	background: var(--vsk-surface);
	transition: border-color .16s var(--vsk-ease), color .16s var(--vsk-ease);
}

.vsk-page:hover { border-color: var(--vsk-accent); color: var(--vsk-accent); }
.vsk-page.is-current { background: var(--vsk-accent); border-color: transparent; color: var(--vsk-accent-ink); }
.vsk-gap { color: var(--vsk-muted); padding: 0 2px; }

/* ===========================================================================
 * The player bar
 *
 * Floating and rounded on a wide screen so it reads as an object rather than
 * a browser chrome strip; edge to edge on a phone, where every pixel of width
 * is needed and a floating card just wastes it.
 * ======================================================================== */

.vsk-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 99990;
	background: var(--vsk-bg);                      /* fallback: older browsers drop the next line */
	background: color-mix(in srgb, var(--vsk-bg) 86%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-top: 1px solid var(--vsk-line);
	padding: 9px 12px;
	padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -8px 30px rgba(16, 24, 40, .1);
	animation: vsk-bar-in .28s var(--vsk-ease) both;
}

@keyframes vsk-bar-in {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

@media (min-width: 900px) {
	.vsk-bar {
		left: 16px; right: 16px; bottom: 16px;
		border: 1px solid var(--vsk-line);
		border-radius: 18px;
		box-shadow: var(--vsk-shadow-lift);
		padding: 10px 14px;
	}
}

.vsk-bar[hidden] { display: none; }

.vsk-bar-progress {
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--vsk-line);
	overflow: hidden;
}

@media (min-width: 900px) {
	.vsk-bar-progress { border-radius: 18px 18px 0 0; }
}

.vsk-bar-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--vsk-accent);
	transition: width .2s linear;
}

.vsk-bar-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1180px;
	margin: 0 auto;
}

.vsk-bar-art {
	width: 46px; height: 46px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--vsk-raise);
	box-shadow: 0 2px 8px rgba(16, 24, 40, .14);
}

.vsk-bar-meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }

.vsk-bar-title {
	color: var(--vsk-fg);
	font-weight: 650;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.vsk-bar-title:hover { color: var(--vsk-accent); }
.vsk-bar-artist { color: var(--vsk-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vsk-bar-controls { display: flex; align-items: center; gap: 4px; }

.vsk-bar-btn {
	width: 36px; height: 36px;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
	padding: 0;
	color: var(--vsk-fg);
	border-radius: 50%;
	transition: background .16s var(--vsk-ease), color .16s var(--vsk-ease), transform .14s var(--vsk-ease);
}

.vsk-bar-btn:hover { background: var(--vsk-raise); }
.vsk-bar-btn:active { transform: scale(.94); }

.vsk-toggle {
	background: var(--vsk-accent);
	width: 42px; height: 42px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);      /* fallback */
	box-shadow: 0 2px 10px color-mix(in srgb, var(--vsk-accent) 45%, transparent);
}

.vsk-toggle:hover { background: var(--vsk-accent); filter: brightness(1.06); }

.vsk-toggle::after {
	content: "";
	position: absolute;
	top: 50%; left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent var(--vsk-accent-ink);
}

.vsk-toggle.is-playing::after {
	border-width: 0;
	width: 10px; height: 13px;
	left: 50%;
	border-left: 3px solid var(--vsk-accent-ink);
	border-right: 3px solid var(--vsk-accent-ink);
}

.vsk-prev::after,
.vsk-next::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 6px 9px 6px 0;
	border-color: transparent currentColor transparent transparent;
}

.vsk-next::after { border-width: 6px 0 6px 9px; border-color: transparent transparent transparent currentColor; }

.vsk-bar-seek { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; min-width: 0; }

.vsk-bar-seek input[type="range"] {
	flex: 1 1 auto;
	min-width: 0;
	accent-color: var(--vsk-accent);
	height: 4px;
}

.vsk-time { color: var(--vsk-muted); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 38px; }

.vsk-bar-extra { display: flex; align-items: center; gap: 2px; }

.vsk-repeat::after,
.vsk-shuffle-btn::after,
.vsk-queue-btn::after,
.vsk-dl::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 14px; height: 14px;
	border: 2px solid currentColor;
	border-radius: 3px;
}

.vsk-repeat::after { border-radius: 50%; border-bottom-color: transparent; }
.vsk-shuffle-btn::after { border-radius: 2px; border-left-color: transparent; border-top-color: transparent; }
.vsk-queue-btn::after { border-width: 2px 0; height: 10px; width: 15px; }
.vsk-dl::after { border-width: 0 2px 2px 0; width: 9px; height: 9px; transform: translate(-50%, -70%) rotate(45deg); }

.vsk-bar-btn[aria-pressed="true"] { color: var(--vsk-accent); background: var(--vsk-raise); }
.vsk-bar-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--vsk-accent) 12%, transparent); }

.vsk-bar-close { width: 30px; height: 30px; color: var(--vsk-muted); font-size: 0; }

.vsk-bar-close::before,
.vsk-bar-close::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 13px; height: 2px;
	border-radius: 1px;
	background: currentColor;
}

.vsk-bar-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.vsk-bar-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---- queue panel ------------------------------------------------------- */

.vsk-queue {
	position: absolute;
	right: 12px;
	bottom: calc(100% + 10px);
	width: min(380px, calc(100vw - 24px));
	max-height: 54vh;
	overflow: auto;
	background: var(--vsk-surface);
	border: 1px solid var(--vsk-line);
	border-radius: var(--vsk-radius);
	box-shadow: var(--vsk-shadow-lift);
	animation: vsk-pop .18s var(--vsk-ease) both;
}

@keyframes vsk-pop {
	from { opacity: 0; transform: translateY(8px) scale(.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.vsk-queue[hidden] { display: none; }

.vsk-queue-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 14px;
	border-bottom: 1px solid var(--vsk-line);
	font-weight: 700;
	position: sticky;
	top: 0;
	background: var(--vsk-surface);
}

.vsk-queue-head button { border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--vsk-muted); }
.vsk-queue-list { list-style: none; margin: 0; padding: 6px; }

.vsk-queue-item {
	display: grid;
	grid-template-columns: 24px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 9px 10px;
	cursor: pointer;
	border-radius: var(--vsk-radius-sm);
	transition: background .14s var(--vsk-ease);
}

.vsk-queue-item:hover { background: var(--vsk-raise); }
.vsk-queue-item.is-current { background: var(--vsk-raise); color: var(--vsk-accent); font-weight: 650; }
.vsk-queue-item.is-current { background: color-mix(in srgb, var(--vsk-accent) 12%, transparent); }
.vsk-queue-n { color: var(--vsk-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.vsk-queue-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsk-queue-a { color: var(--vsk-muted); font-size: 12px; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsk-queue-empty { padding: 20px; color: var(--vsk-muted); text-align: center; }

/* So a fixed bar never covers the end of the page. */
body.vsk-has-bar { padding-bottom: 96px; }

@media (min-width: 900px) {
	body.vsk-has-bar { padding-bottom: 110px; }
}

/* ===========================================================================
 * Narrow screens
 *
 * The seek control and artwork go first: on a phone the title and the play
 * button are what people reach for, and everything else is in the way.
 * ======================================================================== */

@media (max-width: 720px) {
	.vsk { font-size: 14px; }
	.vsk-podium { grid-template-columns: 1fr; }
	.vsk-pod-art { aspect-ratio: 16 / 9; }
	.vsk-artist-head { padding: 16px; gap: 14px; }
	.vsk-artist-art { width: 72px; height: 72px; flex-basis: 72px; border-radius: 13px; }
	.vsk-artist-name { font-size: 20px; }
	.vsk-row-art, .vsk-chart-art { width: 46px; height: 46px; flex-basis: 46px; }
	.vsk-row, .vsk-chart-row { gap: 10px; padding: 8px; }
	.vsk-row + .vsk-row::before, .vsk-chart-row + .vsk-chart-row::before { left: 64px; }
	.vsk-chart-views { display: none; }
	.vsk-move { min-width: 28px; }
}

@media (max-width: 640px) {
	.vsk-bar-seek { display: none; }
	.vsk-bar-art { display: none; }
	.vsk-bar-extra .vsk-repeat,
	.vsk-bar-extra .vsk-shuffle-btn { display: none; }
}
