/* Lean Media Player */

.lap-wrap { display: flex; width: 100%; margin: 1em 0; }
.lap-wrap.lap-al-center { justify-content: center; }
.lap-wrap.lap-al-right { justify-content: flex-end; }
.lap-wrap.lap-wrap-sticky { margin: 0; height: 0; }

.lap {
	--lap-w: 100%;
	--lap-radius: 8px;
	--lap-primary: #4A5464;
	--lap-control: #4A5464;
	--lap-bg: #F5F5F5;
	--lap-text: #4A5464;
	position: relative;
	box-sizing: border-box;
	width: var(--lap-w);
	max-width: 100%;
	font-family: var(--lap-font, inherit);
	font-size: 14px;
	line-height: 1.3;
	color: var(--lap-text);
	-webkit-tap-highlight-color: transparent;
}
.lap *, .lap *::before, .lap *::after { box-sizing: border-box; }
.lap audio { display: none; }
.lap img { max-width: none; margin: 0; border: 0; box-shadow: none; }

/* ---------- buttons (defensive against theme button styles) ---------- */
.lap .lap-btn {
	appearance: none; -webkit-appearance: none;
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 auto;
	width: 34px; height: 34px; min-width: 0; min-height: 0;
	margin: 0; padding: 0;
	border: 0; border-radius: 50%;
	background: transparent; box-shadow: none;
	color: var(--lap-control);
	font: inherit; line-height: 1; letter-spacing: normal; text-transform: none; text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, opacity .15s, transform .1s;
}
.lap .lap-btn:hover, .lap .lap-btn:focus-visible { background: color-mix(in srgb, var(--lap-control) 14%, transparent); color: var(--lap-control); }
.lap .lap-btn:active { transform: scale(.94); }
.lap .lap-btn:focus { outline: none; }
.lap .lap-btn:focus-visible { outline: 2px solid var(--lap-primary); outline-offset: 2px; }
.lap .lap-btn[aria-pressed="false"] { opacity: .55; }
.lap .lap-btn[aria-pressed="true"] { opacity: 1; color: var(--lap-primary); }
.lap .lap-i { width: 20px; height: 20px; fill: currentColor; display: block; pointer-events: none; }

.lap .lap-when-playing, .lap.is-playing .lap-when-paused,
.lap .lap-when-muted, .lap.is-muted .lap-when-unmuted { display: none; }
.lap.is-playing .lap-when-playing, .lap.is-muted .lap-when-muted { display: block; }
.lap.lap-no-pause.is-playing .lap-btn-play { pointer-events: none; opacity: .6; }

.lap .lap-ring { border: 2px solid currentColor; }
.lap .lap-ring .lap-i { width: 18px; height: 18px; }

.lap .lap-time { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .9; }
.lap .lap-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lap .lap-artist { font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lap .lap-spacer { flex: 1 1 auto; }

/* ---------- range inputs ---------- */
.lap input[type="range"] {
	--lap-pct: 0%;
	appearance: none; -webkit-appearance: none;
	display: block; width: 100%; height: 16px; margin: 0; padding: 0;
	background: transparent; border: 0; box-shadow: none; cursor: pointer;
}
.lap input[type="range"]:focus { outline: none; }
.lap input[type="range"]:focus-visible { outline: 2px solid var(--lap-primary); outline-offset: 2px; border-radius: 4px; }
.lap input[type="range"]::-webkit-slider-runnable-track {
	height: 4px; border-radius: 4px;
	background: linear-gradient(to right, var(--lap-primary) var(--lap-pct), var(--lap-track, color-mix(in srgb, var(--lap-control) 25%, transparent)) var(--lap-pct));
}
.lap input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--lap-track, color-mix(in srgb, var(--lap-control) 25%, transparent)); }
.lap input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--lap-primary); }
.lap input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%;
	background: var(--lap-primary); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .1s;
}
.lap input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--lap-primary); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.lap input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.2); }

.lap .lap-progress { position: relative; flex: 1 1 auto; min-width: 60px; }
.lap .lap-buffer { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: 0; border-radius: 4px; background: var(--lap-buffer, color-mix(in srgb, var(--lap-control) 20%, transparent)); pointer-events: none; }
.lap .lap-progress input { position: relative; }
.lap input[type="range"].lap-vol { width: 80px; flex: 0 0 auto; }

/* ---------- speed menu ---------- */
.lap .lap-menu-wrap { position: relative; display: inline-flex; }
.lap .lap-menu {
	position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 20;
	min-width: 120px; padding: 6px; border-radius: 8px;
	background: #fff; color: #333; box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.lap .lap-menu[hidden] { display: none; }
.lap .lap-menu-h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; opacity: .6; padding: 4px 8px; }
.lap .lap-menu button {
	appearance: none; display: block; width: 100%; margin: 0; padding: 6px 8px; border: 0; border-radius: 6px;
	background: transparent; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; box-shadow: none; text-transform: none;
}
.lap .lap-menu button:hover, .lap .lap-menu button:focus-visible { background: #f0f0f0; outline: none; }
.lap .lap-menu button[aria-checked="true"] { font-weight: 700; }
.lap .lap-menu button[aria-checked="true"]::before { content: "✓ "; }

/* ---------- loader ---------- */
.lap.lap-is-loading::after {
	content: ""; position: absolute; inset: 0; border-radius: var(--lap-radius);
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
	background-size: 200% 100%; animation: lap-shimmer 1.2s linear infinite; pointer-events: none;
}
.lap.is-waiting .lap-btn-play { animation: lap-pulse 1s ease-in-out infinite; }
@keyframes lap-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes lap-pulse { 50% { opacity: .5; } }
.lap.is-error { outline: 1px dashed #d63638; outline-offset: 2px; }

/* Custom-skin extras (border, shadow) on each layout's surface. */
.lap-skin-default .lap-bar, .lap-fusion, .lap-stamp, .lap-wave {
	border: var(--lap-border-w, 0px) solid var(--lap-border, transparent);
	box-shadow: var(--lap-shadow, none);
}

/* ================= Default skin ================= */
.lap-skin-default .lap-bar {
	display: flex; align-items: center; gap: 6px;
	padding: 8px 10px; border-radius: var(--lap-radius);
	background: var(--lap-bg);
}
.lap-skin-default .lap-time { margin: 0 2px; }

/* ================= Fusion skin ================= */
.lap-skin-fusion .lap-fusion {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 14px; border-radius: var(--lap-radius); background: var(--lap-bg);
}
.lap-skin-fusion .lap-thumb { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; flex: 0 0 auto; }
.lap-skin-fusion .lap-f-ctrls, .lap-skin-fusion .lap-f-extra, .lap-skin-fusion .lap-f-vol { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.lap-skin-fusion .lap-f-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lap-skin-fusion .lap-title { background: rgba(255,255,255,.08); padding: 3px 8px; border-radius: 3px; font-size: 13px; }
.lap-skin-fusion .lap-f-time { display: flex; align-items: center; gap: 8px; }
.lap-skin-fusion .lap-btn { width: 30px; height: 30px; }

/* ================= Stamp skin ================= */
.lap-skin-stamp .lap-stamp { padding: 14px 18px 16px; border-radius: var(--lap-radius); background: var(--lap-bg); }
.lap-skin-stamp .lap-s-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lap-skin-stamp .lap-s-top .lap-title { flex: 1 1 auto; order: -1; padding-left: 4px; }
.lap-skin-stamp .lap-s-top .lap-vol { order: 1; }
.lap-skin-stamp .lap-s-top .lap-btn-mute { order: 2; }
.lap-skin-stamp .lap-s-main { display: flex; align-items: center; gap: 8px; }
.lap-skin-stamp .lap-s-main .lap-btn-rewind { margin-left: -6px; }
.lap-skin-stamp .lap-s-main .lap-btn-forward { margin-right: -6px; }

/* ================= Wave skin ================= */
.lap-skin-wave .lap-wave { display: flex; gap: 12px; padding: 10px 12px; border-radius: var(--lap-radius); background: var(--lap-bg); }
.lap-skin-wave .lap-thumb { width: 86px; height: 86px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }
.lap-skin-wave .lap-w-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lap-skin-wave .lap-w-canvas { position: relative; display: grid; grid-template-columns: 1fr auto; row-gap: 2px; }
.lap-skin-wave .lap-w-canvas .lap-dur { text-align: right; }
.lap-skin-wave canvas { grid-column: 1 / -1; display: block; width: 100%; height: 44px; }
.lap-skin-wave .lap-w-row { display: flex; align-items: center; gap: 10px; }
.lap-skin-wave .lap-w-meta { flex: 1 1 auto; min-width: 0; }
.lap-skin-wave .lap-w-vol { display: flex; align-items: center; gap: 2px; }

/* ================= Sticky ================= */
.lap.lap-sticky {
	position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 9999;
	width: min(var(--lap-w), 100vw); --lap-radius: 0px !important; /* square edges even with a rounded custom skin */
	box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.lap.lap-sticky .lap-sticky-close {
	position: absolute; right: 6px; top: -30px; width: 26px; height: 26px;
	background: var(--lap-bg); color: var(--lap-control); box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.lap.lap-sticky .lap-sticky-close .lap-i { width: 16px; height: 16px; }

/* ---------- narrow players ----------
 * Based on the player's own width (container queries), so players in gallery
 * grids, sidebars and columns adapt too, not just on small screens.
 * Order of retreat: extras first, then secondary controls; play, progress,
 * current time and mute always stay.
 */
.lap-audio, .lap-playlist { container: lap / inline-size; }

@container lap (max-width: 480px) {
	.lap input[type="range"].lap-vol { width: 56px; }
	.lap .lap-fusion { flex-wrap: wrap; gap: 8px; }
	.lap .lap-f-info { order: 5; flex-basis: 100%; }
	.lap .lap-f-vol .lap-vol, .lap .lap-bar input.lap-vol { display: none; }
	.lap .lap-wave .lap-thumb { width: 56px; height: 56px; }
	.lap .lap-bar { gap: 2px; padding: 6px; }
	.lap .lap-bar .lap-btn { width: 30px; height: 30px; }
	.lap .lap-bar .lap-btn-restart, .lap .lap-bar .lap-dur { display: none; }
	.lap .lap-progress { min-width: 30px; }
}

@container lap (max-width: 300px) {
	.lap .lap-bar .lap-btn-rewind, .lap .lap-bar .lap-btn-forward { display: none; }
	.lap .lap-fusion { padding: 8px 10px; }
	.lap .lap-fusion .lap-thumb, .lap .lap-f-ctrls .lap-btn-rewind, .lap .lap-f-ctrls .lap-btn-forward, .lap .lap-f-extra { display: none; }
	.lap .lap-f-ctrls { flex: 1 1 auto; }
	.lap .lap-stamp { padding: 10px 12px 12px; }
	.lap .lap-s-top .lap-vol, .lap .lap-s-main .lap-btn-rewind, .lap .lap-s-main .lap-btn-forward { display: none; }
	.lap .lap-s-top .lap-title { padding-left: 0; }
	.lap .lap-wave .lap-thumb, .lap .lap-w-vol .lap-vol { display: none; }
	.lap .lap-wave { padding: 8px 10px; }
	.lap .lap-w-row { gap: 6px; }
	.lap .lap-pl { padding: 12px; gap: 10px; }
	.lap .lap-pl-ctrls .lap-btn { width: 30px; height: 30px; }
	.lap .lap-pl-ctrls .lap-btn-play { width: 38px; height: 38px; }
	.lap .lap-pl-vol .lap-vol, .lap .lap-pl-ctrls .lap-btn-rewind, .lap .lap-pl-ctrls .lap-btn-forward { display: none; }
	.lap .lap-pl-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
	.lap .lap-pl-top > * { flex-basis: 100%; min-width: 0; }
	.lap .lap-pl-desc-btn, .lap .lap-pl-desc { margin-left: 8px; }
	.lap .lap-time { font-size: 11px; }
}

@container lap (max-width: 220px) {
	.lap .lap-bar .lap-menu-wrap, .lap .lap-bar .lap-btn-download { display: none; }
	.lap .lap-s-main .lap-dur { display: none; }
	.lap .lap-s-main { gap: 6px; }
	.lap .lap-pl-ctrls .lap-btn-shuffle, .lap .lap-pl-ctrls .lap-btn-repeatall, .lap .lap-pl-ctrls .lap-menu-wrap { display: none; }
	.lap .lap-pl-list .lap-pl-art { display: none; }
	.lap .lap-w-meta .lap-artist { display: none; }
}

/* ================= Playlist ================= */
.lap-playlist { --lap-radius: 14px; }
.lap-playlist .lap-pl {
	display: flex; flex-direction: column; gap: 14px;
	padding: 18px; border-radius: var(--lap-radius);
	background: var(--lap-bg); color: var(--lap-text);
	--lap-control: var(--lap-text);
}
.lap-pl-fallback { margin: 0; padding: 12px 12px 12px 32px; border-radius: 12px; background: var(--lap-bg); color: var(--lap-text); }
.lap-pl-fallback a { color: inherit; }

.lap-pl-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lap .lap-pl-search { flex: 1 1 180px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 8px; background: color-mix(in srgb, var(--lap-text) 10%, transparent); }
.lap .lap-pl-search .lap-i { opacity: .6; width: 18px; }
.lap .lap-pl-search input, .lap .lap-pl-filter {
	appearance: none; flex: 1 1 auto; min-width: 0; height: 36px; margin: 0; padding: 0 4px; border: 0; border-radius: 8px;
	background: transparent; color: inherit; font: inherit; font-size: 13px; box-shadow: none;
}
.lap .lap-pl-filter { flex: 0 0 auto; padding: 0 10px; background: color-mix(in srgb, var(--lap-text) 10%, transparent); cursor: pointer; }
.lap .lap-pl-filter option { color: #222; }
.lap .lap-pl-search input:focus, .lap .lap-pl-filter:focus { outline: none; }
.lap .lap-pl-search:focus-within, .lap .lap-pl-filter:focus-visible { outline: 2px solid var(--lap-primary); }
.lap-pl-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.lap-pl-sub span { font-weight: 600; margin-right: 2px; }
.lap .lap-pl-sub a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 6px; background: color-mix(in srgb, var(--lap-text) 10%, transparent); color: inherit; font-weight: 600; text-decoration: none; }
.lap .lap-pl-sub a:hover { background: var(--lap-primary); color: #fff; }
.lap-pl-sub .lap-i { width: 14px; height: 14px; }

.lap-pl-player { display: flex; flex-direction: column; gap: 8px; }
.lap-pl-meta { text-align: center; min-height: 36px; }
.lap-pl-meta .lap-title { font-size: 16px; }
.lap-pl-meta .lap-artist { font-size: 13px; margin-top: 2px; }
.lap-pl-time { display: flex; align-items: center; gap: 10px; }
.lap-pl-ctrls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; }
.lap-pl-ctrls .lap-btn-play { width: 44px; height: 44px; margin: 0 4px; }
.lap-pl-vol { display: inline-flex; align-items: center; margin-left: 6px; }
.lap .lap-btn-speed { width: auto; min-width: 34px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 700; }

.lap-pl-items { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lap-pl-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.lap-pl-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.lap-pl-empty { padding: 30px 0; text-align: center; opacity: .6; font-size: 13px; }

.lap .lap-pl-grid .lap-pl-item {
	appearance: none; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
	color: inherit; font: inherit; text-align: center; cursor: pointer; text-transform: none;
}
.lap-pl-grid .lap-pl-art { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--lap-text) 12%, transparent); outline: 2px solid transparent; transition: outline-color .15s; }
.lap-pl-grid .lap-pl-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lap-pl-grid .lap-pl-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; opacity: .5; }
.lap-pl-grid .lap-pl-eq { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.35); color: #fff; }
.lap-pl-grid .lap-pl-eq .lap-i { width: 32px; height: 32px; }
.lap-pl-grid .lap-pl-item:hover .lap-pl-eq, .lap-pl-grid .lap-pl-item.is-active .lap-pl-eq { display: flex; }
.lap-pl-grid .lap-pl-item.is-active .lap-pl-art { outline-color: var(--lap-primary); }
.lap-pl-grid .lap-pl-item:focus-visible { outline: none; }
.lap-pl-grid .lap-pl-item:focus-visible .lap-pl-art { outline-color: var(--lap-primary); }
.lap-pl-grid .lap-pl-t { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lap:not(.is-playing) .lap-pl-item.is-active .lap-pl-eq .lap-when-paused { display: block; }

.lap-pl-list .lap-pl-item { border-radius: 8px; padding: 2px; }
.lap-pl-list .lap-pl-item:nth-child(even) { background: color-mix(in srgb, var(--lap-text) 5%, transparent); }
.lap-pl-list .lap-pl-item.is-active { background: color-mix(in srgb, var(--lap-primary) 22%, transparent); }
.lap-pl-row { display: flex; align-items: center; gap: 4px; }
.lap .lap-pl-main {
	appearance: none; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px; border: 0; border-radius: 6px;
	background: none; box-shadow: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-transform: none;
}
.lap .lap-pl-main:hover { background: color-mix(in srgb, var(--lap-text) 8%, transparent); }
.lap .lap-pl-main:focus-visible { outline: 2px solid var(--lap-primary); outline-offset: -2px; }
.lap-pl-list .lap-pl-art { position: relative; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--lap-text) 12%, transparent); display: flex; align-items: center; justify-content: center; }
.lap-pl-list .lap-pl-art img { width: 100%; height: 100%; object-fit: cover; }
.lap-pl-list .lap-pl-num { font-size: 13px; font-weight: 700; opacity: .6; }
.lap-pl-txt { min-width: 0; display: flex; flex-direction: column; }
.lap-pl-list .lap-pl-t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lap-pl-a { font-size: 12px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lap .lap-pl-desc-btn { appearance: none; margin: 0 0 4px 58px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--lap-primary); font: inherit; font-size: 12px; cursor: pointer; text-transform: none; }
.lap-pl-desc { margin: 0 8px 8px 58px; font-size: 13px; line-height: 1.5; opacity: .85; white-space: pre-line; }
.lap-pl-desc[hidden] { display: none; }

.lap-pl-more { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lap-pl-more:empty { display: none; }
.lap .lap-pl-more button {
	appearance: none; min-width: 34px; height: 34px; margin: 0; padding: 0 12px; border: 0; border-radius: 8px;
	background: color-mix(in srgb, var(--lap-text) 10%, transparent); color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: none; text-transform: none;
}
.lap .lap-pl-more button:hover, .lap .lap-pl-more .is-active { background: var(--lap-primary); color: #fff; }

/* ================= Radio ================= */
.lap-radio {
	--lap-r-bg: #fff; --lap-r-bg2: #fff; --lap-r-title: #1e293b; --lap-r-sub: #64748b; --lap-r-status: #f87171;
	--lap-r-icon: #0D77F8; --lap-r-play-bg: #fff; --lap-r-play-color: #111; --lap-r-track: #1e293b;
	--lap-r-title-size: 20px; --lap-r-title-wt: 700; --lap-radius: 12px;
	--lap-primary: var(--lap-r-track); --lap-control: var(--lap-r-sub);
	padding: 22px 24px; border-radius: var(--lap-radius); background: var(--lap-r-bg); color: var(--lap-r-title);
	display: flex; flex-direction: column; gap: 10px;
}
.lap-r-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lap-r-main { min-width: 0; flex: 1 1 auto; }
.lap-r-status { display: inline-flex; align-items: center; gap: 8px; color: var(--lap-r-status); font-size: 14px; font-weight: 500; }
.lap-r-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 18%, transparent); }
.lap-radio[data-state="live"] .lap-r-dot { animation: lap-pulse 1.4s ease-in-out infinite; }
.lap-radio[data-state="wait"] .lap-r-dot { background: #f59e0b; color: #f59e0b; }
.lap-radio[data-state="off"] .lap-r-dot { background: #94a3b8; animation: none; }
.lap-r-title { font-size: var(--lap-r-title-size); font-weight: var(--lap-r-title-wt); color: var(--lap-r-title); line-height: 1.25; overflow-wrap: anywhere; }
.lap-r-sub { color: var(--lap-r-sub); font-size: 15px; }
.lap-r-icon { color: var(--lap-r-icon); display: inline-flex; }
.lap-r-icon .lap-i { width: 24px; height: 24px; }
.lap-r-poster { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.lap-r-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.lap-r-vol { display: flex; align-items: center; gap: 6px; flex: 0 1 170px; }
.lap-r-vol input[type="range"].lap-vol { width: 100%; flex: 1 1 auto; }
.lap .lap-r-play { width: 48px; height: 48px; border: 0; background: var(--lap-r-play-bg); color: var(--lap-r-play-color); box-shadow: 0 4px 14px rgba(15,23,42,.12); }
.lap .lap-r-play:hover { background: var(--lap-r-play-bg); color: var(--lap-r-play-color); transform: scale(1.05); }
.lap .lap-r-play .lap-i { width: 24px; height: 24px; }

.lap-radio-glassmorphism {
	--lap-r-bg: linear-gradient(135deg, #f4f7ff 0%, #f7f0fb 100%);
	box-shadow: 0 10px 30px rgba(99,102,241,.12); border: 1px solid rgba(255,255,255,.7);
}
.lap-radio-glassmorphism .lap-r-play { width: 56px; height: 56px; }
.lap-radio-soft {
	--lap-r-bg: #eaf2ff; --lap-r-title: #2563eb; --lap-r-sub: #1e40af; --lap-r-title-wt: 500;
	border: 1px solid #c7dbff; padding: 16px 18px;
}
.lap-radio-soft .lap-r-head { justify-content: flex-start; }
.lap-radio-soft .lap-r-status { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.lap-radio-soft .lap-r-play { width: 36px; height: 36px; box-shadow: none; }
.lap-radio-soft .lap-r-play .lap-i { width: 18px; height: 18px; }
.lap-radio-compacthorizontal {
	--lap-r-bg: #1e293b; --lap-r-title: #cbd5e1; --lap-r-title-wt: 400; --lap-r-status: #f87171;
	flex-direction: row; align-items: center; gap: 18px; padding: 12px 16px; --lap-radius: 4px;
}
.lap-radio-compacthorizontal .lap-r-status { flex: 0 0 auto; }
.lap-radio-compacthorizontal .lap-r-main { flex: 1 1 auto; }
.lap-radio-compacthorizontal .lap-r-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lap-radio-compacthorizontal .lap-r-now { font-size: 12px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lap-radio-compacthorizontal .lap-r-poster { width: 40px; height: 40px; }
.lap-radio-compacthorizontal .lap-r-play { width: 38px; height: 38px; }
.lap-radio-dashboardstyle {
	--lap-r-bg: #f1f5f9; --lap-r-bg2: #fff; border: 1px solid #e2e8f0;
}
.lap-radio-dashboardstyle .lap-r-status { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; }
.lap-radio-dashboardstyle .lap-r-icon .lap-i { width: 44px; height: 44px; }
.lap-radio-dashboardstyle .lap-r-card { background: var(--lap-r-bg2); border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; margin-top: 8px; }
.lap-radio-dashboardstyle .lap-r-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--lap-r-sub); margin-bottom: 6px; }
.lap-radio-dashboardstyle .lap-r-now { color: var(--lap-r-title); }
.lap-radio-dashboardstyle .lap-r-row { justify-content: flex-start; }
.lap-radio-dashboardstyle .lap-r-play { border-radius: 10px; }

.lap-notice { padding: 10px 12px; border: 1px dashed #c3c4c7; border-radius: 6px; color: #50575e; font-size: 13px; }

/* ================= Album ================= */
.lap-album {
	container: lapab / inline-size;
	--lap-radius: 12px;
	padding: 20px;
	border-radius: var(--lap-radius);
	background: var(--lap-bg);
	color: var(--lap-text);
	border: var(--lap-border-w, 0px) solid var(--lap-border, transparent);
	box-shadow: var(--lap-shadow, none);
	--lap-line: color-mix(in srgb, var(--lap-text) 12%, transparent);
}
.lap-album * { margin: 0; }
.lap-ab-head { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: end; }
.lap-ab-nocover .lap-ab-head { grid-template-columns: minmax(0, 1fr); }
.lap .lap-ab-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--lap-radius) * .6); box-shadow: 0 6px 20px rgba(0,0,0,.2); display: block; height: auto; }
.lap-ab-meta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lap .lap-ab-title { padding: 0; border: 0; background: none; font: inherit; font-size: 24px; font-weight: 700; line-height: 1.2; color: inherit; text-transform: none; letter-spacing: normal; overflow-wrap: anywhere; }
.lap .lap-ab-title::before, .lap .lap-ab-title::after { content: none; }
.lap-ab-artist { font-size: 16px; font-weight: 600; opacity: .9; }
.lap-ab-sub { font-size: 13px; opacity: .7; }
.lap-ab-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.lap .lap-ab-playall, .lap .lap-ab-link {
	appearance: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0; padding: 0 16px; border-radius: 999px;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: none;
}
.lap .lap-ab-playall { border: 0; background: var(--lap-primary); color: var(--lap-bg); padding-left: 12px; }
.lap .lap-ab-playall:hover { filter: brightness(1.1); }
.lap .lap-ab-link { border: 1px solid color-mix(in srgb, var(--lap-text) 30%, transparent); background: transparent; color: inherit; }
.lap .lap-ab-link:hover { border-color: var(--lap-primary); color: var(--lap-primary); }
.lap .lap-ab-playall:focus-visible, .lap .lap-ab-link:focus-visible { outline: 2px solid var(--lap-primary); outline-offset: 2px; }
.lap-ab-playall .lap-i { width: 20px; height: 20px; }
.lap-ab-link .lap-i { width: 16px; height: 16px; }
.lap .lap-when-playing-t, .lap.is-playing .lap-when-paused-t { display: none; }
.lap.is-playing .lap-when-playing-t { display: inline; }

.lap-ab-bar { display: flex; align-items: center; gap: 4px; margin: 18px 0 8px !important; padding: 10px 0; border-top: 1px solid var(--lap-line); border-bottom: 1px solid var(--lap-line); }
.lap-ab-bar .lap-btn-play { border: 2px solid currentColor; width: 38px; height: 38px; }
.lap-ab-now { flex: 1 1 auto; min-width: 0; margin: 0 8px !important; }
.lap-ab-now-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lap-ab-time { display: flex; align-items: center; gap: 8px; }
.lap-ab-vol { display: inline-flex; align-items: center; }

.lap .lap-ab-tracks { list-style: none; padding: 0; border: 0; counter-reset: none; }
.lap .lap-ab-track { list-style: none; padding: 0; border: 0; background: none; border-radius: 8px; }
.lap .lap-ab-track::before, .lap .lap-ab-track::marker { content: none; }
.lap-ab-row { display: flex; align-items: center; gap: 4px; }
.lap .lap-ab-main {
	appearance: none; flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px;
	margin: 0; padding: 9px 8px; border: 0; border-radius: 8px; background: none; box-shadow: none;
	color: inherit; font: inherit; font-size: 14px; line-height: 1.3; text-align: left; text-transform: none; letter-spacing: normal; cursor: pointer;
}
.lap .lap-ab-main:hover { background: color-mix(in srgb, var(--lap-text) 7%, transparent); }
.lap .lap-ab-main:focus-visible { outline: 2px solid var(--lap-primary); outline-offset: -2px; }
.lap-ab-num { position: relative; display: flex; align-items: center; justify-content: center; height: 20px; font-variant-numeric: tabular-nums; opacity: .7; }
.lap-ab-num .lap-i { width: 18px; height: 18px; display: none; }
.lap-ab-main:hover .lap-ab-n { display: none; }
.lap-ab-main:hover .lap-ab-hover { display: block; }
.lap-ab-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.lap-ab-eq i { width: 3px; background: var(--lap-primary); animation: lap-eq 0.9s ease-in-out infinite; }
.lap-ab-eq i:nth-child(2) { animation-delay: -.3s; }
.lap-ab-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes lap-eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .lap-ab-eq i { animation: none; height: 70%; } }
.lap-ab-track.is-playing .lap-ab-n, .lap-ab-track.is-playing .lap-ab-hover { display: none !important; }
.lap-ab-track.is-playing .lap-ab-eq { display: flex; }
.lap-ab-track.is-current .lap-ab-num { opacity: 1; color: var(--lap-primary); }
.lap-ab-track.is-current .lap-ab-name { color: var(--lap-primary); font-weight: 700; }
.lap-ab-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lap-ab-name { font-weight: 600; }
.lap-ab-credit { font-size: 12px; opacity: .65; }
.lap-ab-len { font-size: 13px; opacity: .7; font-variant-numeric: tabular-nums; }
.lap .lap-ab-lyr-btn {
	appearance: none; flex: 0 0 auto; margin: 0; padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--lap-text) 25%, transparent); border-radius: 999px;
	background: none; box-shadow: none; color: inherit; font: inherit; font-size: 12px; line-height: 1.2; text-transform: none; cursor: pointer;
}
.lap .lap-ab-lyr-btn[aria-expanded="true"], .lap .lap-ab-lyr-btn:hover { border-color: var(--lap-primary); color: var(--lap-primary); }
.lap .lap-ab-lyr-btn:focus-visible { outline: 2px solid var(--lap-primary); outline-offset: 2px; }
.lap-ab-lyrics { padding: 4px 12px 14px 50px; font-size: 14px; line-height: 1.6; opacity: .9; }
.lap-ab-lyrics[hidden] { display: none; }
.lap-ab-lyrics p + p { margin-top: .9em; }
.lap-ab-notes { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--lap-line); font-size: 13px; line-height: 1.6; opacity: .8; }
.lap-ab-notes p + p { margin-top: .8em; }

@container lapab (max-width: 560px) {
	.lap .lap-ab-head { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
	.lap .lap-ab-title { font-size: 20px; }
	.lap .lap-ab-vol .lap-vol { display: none; }
	.lap .lap-ab-lyrics { padding-left: 12px; }
}
@container lapab (max-width: 380px) {
	.lap .lap-ab-head { grid-template-columns: minmax(0, 1fr); }
	.lap .lap-ab-cover, .lap .lap-ab-coverwrap { max-width: 220px; }
	.lap .lap-ab-bar .lap-btn-repeatall { display: none; }
	.lap .lap-ab-main { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; padding: 8px 4px; }
	.lap .lap-ab-credit { display: none; }
}
@media (max-width: 420px) { .lap.lap-album { padding: 14px; } }

/* ================= Skin options: cut corners and glow ================= */
/* Cut corners: the surface is drawn by two layers behind the content (border, then background),
   each with the angled shape. The player itself is not clipped, so pop-ups such as the speed
   menu still show. */
.lap.lap-cut { --lap-cut: max(8px, var(--lap-radius)); }
.lap-cut .lap-bar, .lap-cut .lap-fusion, .lap-cut .lap-stamp, .lap-cut .lap-wave, .lap.lap-cut.lap-album {
	position: relative; isolation: isolate;
	background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
.lap-cut .lap-bar::before, .lap-cut .lap-fusion::before, .lap-cut .lap-stamp::before, .lap-cut .lap-wave::before, .lap.lap-cut.lap-album::before,
.lap-cut .lap-bar::after, .lap-cut .lap-fusion::after, .lap-cut .lap-stamp::after, .lap-cut .lap-wave::after, .lap.lap-cut.lap-album::after {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	clip-path: polygon(var(--lap-cut) 0, 100% 0, 100% calc(100% - var(--lap-cut)), calc(100% - var(--lap-cut)) 100%, 0 100%, 0 var(--lap-cut));
}
/* Border layer (only visible where the background layer is inset). */
.lap-cut .lap-bar::before, .lap-cut .lap-fusion::before, .lap-cut .lap-stamp::before, .lap-cut .lap-wave::before, .lap.lap-cut.lap-album::before {
	inset: 0; background: var(--lap-border, var(--lap-bg));
}
.lap-cut .lap-bar::after, .lap-cut .lap-fusion::after, .lap-cut .lap-stamp::after, .lap-cut .lap-wave::after, .lap.lap-cut.lap-album::after {
	inset: var(--lap-border-w, 0px); background: var(--lap-bg);
	--lap-cut2: max(0px, calc(var(--lap-cut) - var(--lap-border-w, 0px) * .41));
	clip-path: polygon(var(--lap-cut2) 0, 100% 0, 100% calc(100% - var(--lap-cut2)), calc(100% - var(--lap-cut2)) 100%, 0 100%, 0 var(--lap-cut2));
}

/* Glow: an outer glow in the accent colour that follows the player's shape (rounded or cut). */
.lap.lap-glow { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--lap-primary) 65%, transparent)); }
.lap.lap-glow.lap-cut { --lap-shadow: none; }

/* ================= Reduce motion ================= */
@media (prefers-reduced-motion: reduce) {
	.lap *, .lap *::before, .lap *::after, .lap.lap-is-loading::after { animation: none !important; transition: none !important; }
	.lap .lap-btn:active, .lap .lap-r-play:hover { transform: none !important; }
}

/* ================= Video ================= */
.lap-video { container: lapv / inline-size; --lap-radius: 10px; }
.lap-video .lap-v-stage { position: relative; aspect-ratio: var(--lap-ratio, 16 / 9); background: #000; border-radius: var(--lap-radius) var(--lap-radius) 0 0; overflow: hidden; }
.lap-video video.lap-v-media { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: contain; background: #000; }
.lap-video .lap-v-big {
	appearance: none; position: absolute; left: 50%; top: 50%; z-index: 2;
	display: flex; align-items: center; justify-content: center;
	width: 72px; height: 72px; margin: -36px 0 0 -36px; padding: 0; border: 0; border-radius: 50%;
	background: var(--lap-primary); color: var(--lap-bg); box-shadow: 0 4px 18px rgba(0,0,0,.35);
	cursor: pointer; transition: transform .15s, opacity .15s;
}
.lap-video .lap-v-big .lap-i { width: 38px; height: 38px; fill: currentColor; }
.lap-video .lap-v-big:hover { transform: scale(1.06); }
.lap-video .lap-v-big:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lap-video.is-playing .lap-v-big, .lap-video.is-waiting .lap-v-big { opacity: 0; pointer-events: none; }
.lap-video .lap-v-bar {
	display: flex; align-items: center; gap: 4px; padding: 6px 10px;
	background: var(--lap-bg); color: var(--lap-text);
	border: var(--lap-border-w, 0px) solid var(--lap-border, transparent); border-top: 0;
	border-radius: 0 0 var(--lap-radius) var(--lap-radius); box-shadow: var(--lap-shadow, none);
}
.lap-video .lap-time { font-variant-numeric: tabular-nums; margin: 0 1px; }
.lap-video .lap-v-sep { opacity: .6; }
.lap-video .lap-v-marks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.lap-video .lap-v-mark { position: absolute; top: 50%; width: 3px; height: 8px; margin: -4px 0 0 -1px; border-radius: 1px; background: var(--lap-bg); }
.lap-video .lap-when-full, .lap-video.is-full .lap-when-normal { display: none; }
.lap-video.is-full .lap-when-full { display: block; }
.lap-video video::cue { background: rgba(0,0,0,.75); color: #fff; }
/* Before the script runs the browser's own controls work; if it never runs, only they show. */
.lap-video:not(.lap-ready) .lap-v-big,
.lap-video.lap-fallback .lap-v-bar, .lap-video.lap-fallback .lap-v-big { display: none !important; }
/* Full screen: picture fills the screen above the bar; the bar fades when idle (it keeps its
   place, so subtitles are never covered and the picture never jumps). */
.lap-video.is-full { width: 100%; height: 100%; max-width: none; display: flex; flex-direction: column; background: #000; }
.lap-video.is-full .lap-v-stage { flex: 1 1 auto; aspect-ratio: auto; border-radius: 0; }
.lap-video.is-full .lap-v-bar { flex: 0 0 auto; border-radius: 0; transition: opacity .25s; }
.lap-video.is-full.is-idle .lap-v-bar { opacity: 0; pointer-events: none; }
.lap-video.is-full.is-idle { cursor: none; }

@container lapv (max-width: 520px) {
	.lap-video .lap-v-bar input.lap-vol, .lap-video .lap-v-bar .lap-v-pip, .lap-video .lap-v-bar .lap-v-sep, .lap-video .lap-v-bar .lap-dur { display: none; }
	.lap-video .lap-v-big { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
	.lap-video .lap-v-big .lap-i { width: 30px; height: 30px; }
}
@container lapv (max-width: 340px) {
	.lap-video .lap-v-bar { gap: 2px; padding: 4px 6px; }
	.lap-video .lap-v-bar .lap-btn { width: 30px; height: 30px; }
	.lap-video .lap-v-bar .lap-btn-download, .lap-video .lap-v-bar .lap-btn-cc { display: none; }
}

/* ================= Albums with video ================= */
.lap-album .lap-ab-screen { display: none; margin: 16px 0 0; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.lap-album.lap-ab-isvideo .lap-ab-screen { display: block; }
.lap-album .lap-ab-screen video { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; cursor: pointer; }
.lap-album:not(.lap-ab-isvideo) .lap-ab-full { display: none; }

/* ================= Galleries ================= */
.lap-gallery { container: lapg / inline-size; margin: 1.5em 0; }
.lap-gallery .lap-g-title { margin: 0 0 .6em; }
.lap-g-bar .lap-i, .lap-g-thumb .lap-i { display: block; fill: currentColor; }
.lap-gallery .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.lap-g-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.lap-g-search { flex: 1 1 200px; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 10px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 8px; }
.lap-g-search .lap-i { width: 18px; height: 18px; opacity: .7; }
.lap-g-search input { flex: 1 1 auto; min-width: 0; margin: 0; padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; box-shadow: none; outline: none; }
.lap-g-sel { margin: 0; }
.lap-g-sel select { margin: 0; padding: 8px 10px; border-radius: 8px; font: inherit; }
.lap-g-go { margin: 0; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--lap-primary); color: var(--lap-bg); font: inherit; cursor: pointer; }
.lap-g-items { list-style: none; display: grid; gap: 16px; margin: 0; padding: 0; }
.lap-g-grid { grid-template-columns: repeat(var(--lap-g-cols, 3), minmax(0, 1fr)); }
.lap-g-list { grid-template-columns: minmax(0, 1fr); }
.lap-g-item { position: relative; margin: 0; padding: 0; }
.lap-g-item::before { content: none; }
.lap-g-card {
	appearance: none; display: block; width: 100%; margin: 0; padding: 0; border: 0;
	background: none; box-shadow: none; color: inherit; font: inherit; text-align: left; text-decoration: none !important; cursor: pointer;
}
.lap-g-card:focus-visible { outline: 2px solid var(--lap-primary); outline-offset: 3px; border-radius: 10px; }
.lap-g-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: color-mix(in srgb, currentColor 10%, transparent); }
.lap-g-thumb img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; transition: transform .25s; }
.lap-g-card:hover .lap-g-thumb img { transform: scale(1.03); }
.lap-g-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lap-g-ph .lap-i { width: 40px; height: 40px; opacity: .5; }
.lap-g-len { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.lap-g-kind { position: absolute; left: 6px; top: 6px; display: flex; padding: 4px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; }
.lap-g-kind .lap-i { width: 16px; height: 16px; }
.lap-g-playicon { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--lap-primary); color: var(--lap-bg); opacity: 0; transition: opacity .15s; }
.lap-g-playicon .lap-i { width: 26px; height: 26px; }
.lap-g-card:hover .lap-g-playicon, .lap-g-card:focus-visible .lap-g-playicon, .lap-g-item.is-current .lap-g-playicon { opacity: .95; }
/* Locked (members, buyers, private): the lock always shows; the picture is dimmed. */
.lap-g-locked .lap-g-playicon { opacity: .9; background: rgba(0,0,0,.6); color: #fff; }
.lap-g-locked .lap-g-thumb img { filter: brightness(.7) saturate(.7); }
div.lap-g-card.lap-g-locked { cursor: default; }
.lap-locked-note .lap-i { width: 1.1em; height: 1.1em; vertical-align: -.15em; fill: currentColor; }
.lap-g-txt { display: block; padding: 8px 2px 0; }
.lap-g-t { display: block; font-weight: 600; line-height: 1.3; }
.lap-g-item.is-current .lap-g-t { color: var(--lap-primary); }
.lap-g-m { display: block; margin-top: 2px; font-size: .85em; opacity: .7; }
.lap-g-x { display: block; margin-top: 4px; font-size: .9em; opacity: .85; }
.lap-g-open { display: inline-block; margin: 4px 2px 0; font-size: .85em; opacity: .8; }
.lap-g-list .lap-g-card { display: flex; align-items: flex-start; gap: 14px; }
.lap-g-list .lap-g-thumb { flex: 0 0 min(240px, 38%); }
.lap-g-list .lap-g-txt { padding-top: 0; }
.lap-g-player { margin: 0 0 18px; }
.lap-g-player .lap-wrap { margin: 0; }
.lap-g-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.lap-g-page { min-width: 36px; padding: 6px 10px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 8px; color: inherit; text-align: center; text-decoration: none !important; }
.lap-g-page.is-current { border-color: transparent; background: var(--lap-primary); color: var(--lap-bg); }
.lap-g-gap { padding: 6px 4px; opacity: .6; }
.lap-g-empty { opacity: .7; }
@container lapg (max-width: 700px) { .lap-g-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
@container lapg (max-width: 420px) {
	.lap-g-grid { grid-template-columns: minmax(0, 1fr); }
	.lap-g-list .lap-g-card { flex-direction: column; }
	.lap-g-list .lap-g-thumb { flex-basis: auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lap-g-thumb img, .lap-g-playicon, .lap-video .lap-v-big, .lap-video.is-full .lap-v-bar { transition: none; } }

/* ================= Visuals: audio shown as a picture ================= */
.lap-v-visual video.lap-v-media { opacity: 0; }
.lap-v-vis, .lap-ab-vis { position: absolute; inset: 0; z-index: 1; }
.lap-vis {
	position: absolute; inset: 0; overflow: hidden; container-type: inline-size;
	background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--lap-primary) 55%, #000), #000);
	color: #fff; user-select: none; -webkit-user-select: none;
}
.lap-vis-pic { position: absolute; inset: 0; transform-origin: 50% 55%; }
.lap-vis-slide { position: absolute; inset: -3%; opacity: 0; background-size: cover; background-position: center; will-change: opacity, transform; }
.lap-vis-slide.is-on { opacity: 1; }
.lap-vis-noimg { background-image: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--lap-primary) 60%, #000), #000); }
.lap-vis-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,0) 35%, rgba(0,0,0,.55)); pointer-events: none; }
.lap-vis-manual .lap-vis-slide, .lap-vis-manual .lap-vis-words p { transition: opacity .8s ease; }
.lap-vis-ken .lap-vis-slide.is-on { animation: lap-vis-ken 24s ease-in-out infinite alternate; animation-play-state: paused; }
.lap-vis-ken.is-playing .lap-vis-slide.is-on { animation-play-state: running; }
@keyframes lap-vis-ken { from { transform: scale(1); } to { transform: scale(1.1) translate(-1.5%, 1%); } }

.lap-vis-wave { position: absolute; left: 4%; right: 4%; bottom: 5%; height: 22%; cursor: pointer; z-index: 2; }
.lap-vis-wave > div { position: absolute; inset: 0; }
.lap-vis-wave svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lap-vis-w-base path { fill: rgba(255,255,255,.38); }
.lap-vis-w-played { clip-path: inset(0 100% 0 0); }
.lap-vis-w-played path { fill: var(--lap-primary); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--lap-primary) 70%, transparent)); }
.lap-vis-wave-line .lap-vis-w-base path { fill: rgba(255,255,255,.22); }

.lap-vis-words { position: absolute; left: 6%; right: 6%; top: 5%; bottom: 52%; z-index: 3; pointer-events: none; }
.lap-vis-words p {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0;
	opacity: 0; text-align: center; white-space: pre-line;
	font-size: clamp(14px, 4.6cqw, 42px); font-weight: 700; line-height: 1.3; color: #fff;
	text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.9);
}
.lap-vis-words p.is-on { opacity: 1; }
.lap-vis-words p:empty { display: none; }

.lap-vis-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.lap-vis-lane { position: absolute; top: 0; bottom: 0; width: 0; opacity: 0; will-change: transform, opacity; }
.lap-vis-lane i { position: absolute; left: 0; bottom: -1.2em; transform: translateX(-50%); font-style: normal; line-height: 1; }
.lap-vis-heart i { color: #ff3d7f; text-shadow: 0 0 10px rgba(255,61,127,.7); }
.lap-vis-kiss i { filter: drop-shadow(0 0 6px rgba(255,80,120,.6)); }
.lap-vis-spark { position: absolute; opacity: 0; font-style: normal; line-height: 1; color: #fff; text-shadow: 0 0 8px #fff, 0 0 16px var(--lap-primary); transform: translate(-50%, -50%); will-change: transform, opacity; }
.lap-vis-fw { position: absolute; width: 0; height: 0; }
.lap-vis-fw i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; opacity: 0; background: currentColor; box-shadow: 0 0 8px currentColor, 0 0 2px #fff; will-change: transform, opacity; }
.lap-vis-confetti { opacity: 1; }
.lap-vis-confetti i { bottom: auto; top: -14px; width: 8px; height: 12px; border-radius: 2px; }
.lap-vis-flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.lap-vis-snow { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.lap-vis-snow .lap-vis-lane { opacity: .85; animation: lap-vis-snow 9s linear infinite; animation-play-state: paused; }
.lap-vis-snow .lap-vis-lane i { bottom: auto; top: -1em; color: #fff; text-shadow: 0 0 4px rgba(255,255,255,.8); }
.lap-vis.is-playing .lap-vis-snow .lap-vis-lane { animation-play-state: running; }
@keyframes lap-vis-snow { from { transform: translate(0, 0); } 50% { transform: translate(12px, 52%); } to { transform: translate(-6px, 108%); } }

/* Light leaks, glitches, bokeh and grain (3.1.0). */
.lap-vis-leak { position: absolute; top: 50%; width: 90%; height: 140%; opacity: 0; mix-blend-mode: screen; filter: blur(18px); will-change: transform, opacity; }
.lap-vis-glitch { position: absolute; left: -5%; right: -5%; opacity: 0; mix-blend-mode: screen; background: linear-gradient(90deg, rgba(0,255,255,.55), rgba(255,0,180,.45) 40%, rgba(255,255,255,.35) 60%, rgba(0,255,120,.4)); will-change: transform, opacity; }
.lap-vis-glitch.is-b { background: repeating-linear-gradient(0deg, rgba(255,255,255,.5) 0 1px, rgba(255,0,90,.35) 1px 3px); }
.lap-vis-bokeh { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.lap-vis-bokeh span { position: absolute; aspect-ratio: 1; height: auto !important; border-radius: 50%; opacity: .35; filter: blur(2px);
	background: radial-gradient(circle, color-mix(in srgb, var(--lap-primary, #ffb000) 75%, #fff) 0%, color-mix(in srgb, var(--lap-primary, #ffb000) 40%, transparent) 55%, transparent 72%);
	animation: lap-vis-bokeh 16s ease-in-out infinite alternate; animation-play-state: paused; }
.lap-vis-bokeh span.is-white { background: radial-gradient(circle, rgba(255,255,255,.9) 0%, rgba(255,255,255,.25) 55%, transparent 72%); opacity: .22; }
.lap-vis.is-playing .lap-vis-bokeh span { animation-play-state: running; }
@keyframes lap-vis-bokeh { from { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, -8%) scale(1.15); } to { transform: translate(-5%, 4%) scale(.9); } }
.lap-vis-grain { position: absolute; inset: -50%; z-index: 4; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: lap-vis-grain .6s steps(6) infinite, lap-vis-flicker 3.1s linear infinite; animation-play-state: paused; }
.lap-vis.is-playing .lap-vis-grain { animation-play-state: running; }
@keyframes lap-vis-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-8%, 4%); } 40% { transform: translate(5%, -6%); } 60% { transform: translate(-3%, 9%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); } }
@keyframes lap-vis-flicker { 0%, 100% { opacity: .16; } 47% { opacity: .2; } 50% { opacity: .1; } 53% { opacity: .18; } }

/* Effects over a real video: no background, and the controls stay usable. */
.lap-v-fxhost { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.lap-vis-overlay { background: none; pointer-events: none; }
.lap-video video.lap-v-media { transform-origin: 50% 50%; }

.lap-vis-next, .lap-vis-prev {
	appearance: none; position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
	display: inline-flex; align-items: center; gap: 4px; margin: 0; border: 0; cursor: pointer;
	background: rgba(0,0,0,.45); color: #fff; font: inherit; font-size: 14px; font-weight: 600; box-shadow: none;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.lap-vis-next { right: 3%; padding: 8px 10px 8px 16px; border-radius: 999px; }
.lap-vis-prev { left: 3%; width: 38px; height: 38px; justify-content: center; border-radius: 50%; padding: 0; }
.lap-vis-next .lap-i, .lap-vis-prev .lap-i { width: 20px; height: 20px; fill: currentColor; }
.lap-vis-next:hover, .lap-vis-prev:hover, .lap-vis-next:focus-visible, .lap-vis-prev:focus-visible { background: color-mix(in srgb, var(--lap-primary) 75%, #000); outline: none; }
.lap-vis.is-playing .lap-vis-next { animation: lap-vis-nudge 2.4s ease-in-out infinite; }
@keyframes lap-vis-nudge { 0%, 70%, 100% { transform: translateY(-50%); } 80% { transform: translate(5px, -50%); } 90% { transform: translate(0, -50%); } }
.lap-vis-next[hidden], .lap-vis-prev[hidden] { display: none; }
@container (max-width: 360px) { .lap-vis-next span { display: none; } .lap-vis-next { padding: 8px; } }

.lap-video.lap-v-visual .lap-v-big { z-index: 6; }
.lap-video.lap-v-visual.is-playing .lap-v-big { opacity: 0; }

/* Albums */
.lap-album.lap-ab-visuals .lap-ab-screen { position: relative; }
.lap-album.lap-ab-isvisual .lap-ab-screen { display: block; }
.lap-album.lap-ab-isvisual .lap-ab-screen video { display: none; }
.lap-album:not(.lap-ab-isvisual) .lap-ab-vis { display: none; }
.lap-album.lap-ab-isvisual .lap-ab-full { display: inline-flex; }
.lap-album .lap-ab-vis { background-size: cover; background-position: center; }
.lap-ab-screen:fullscreen, .lap-ab-screen:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
	.lap-vis *, .lap-vis-next { animation: none !important; transition: none !important; }
}

/* Video clips as slides */
.lap-vis-slide .lap-vis-clip { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; pointer-events: none; }

/* Drawings that draw themselves, and flipbooks */
.lap-vis-draw { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 5% 7% 27%; background: var(--lap-vis-paper, #fbfaf6); }
.lap-vis-draw svg { display: block; width: 100%; height: 100%; max-width: none; overflow: visible; }
.lap-vis-frame { position: absolute; inset: 0; opacity: 0; background-size: cover; background-position: center; }
.lap-vis-frame.is-first { opacity: 1; }
.lap-vis-still .lap-vis-frame { opacity: 0; }
.lap-vis-still .lap-vis-frame.is-first { opacity: 1; }

/* ---------- podcast library ---------- */
.lap-podcast { container: lappod / inline-size; display: block; padding: 18px; border-radius: var(--lap-radius); background: var(--lap-bg); font-size: 15px; line-height: 1.45; }
.lap-podcast.lap-pod-clear { background: transparent; padding-left: 0; padding-right: 0; }
.lap-podcast.lap-pod-theme-light { --lap-bg: #ffffff; --lap-text: #1f2328; --lap-control: #1f2328; border: 1px solid #e3e5e8; }
.lap-podcast.lap-pod-theme-dark { --lap-bg: #16181c; --lap-text: #f1f2f4; --lap-control: #f1f2f4; }
.lap-podcast a { color: inherit; }
.lap-podcast .lap-pod-link { appearance: none; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.lap-podcast .lap-pod-link:focus-visible, .lap-podcast a:focus-visible { outline: 2px solid var(--lap-primary); outline-offset: 2px; }

.lap-pod-head { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 16px; }
.lap-podcast .lap-pod-cover { width: 120px; height: 120px; flex: 0 0 auto; object-fit: cover; border-radius: 8px; }
.lap-pod-info { min-width: 0; }
.lap-podcast .lap-pod-title { margin: 0 0 4px; font-size: 1.35em; line-height: 1.2; color: inherit; }
.lap-podcast .lap-pod-title a { text-decoration: none; }
.lap-podcast .lap-pod-by { margin: 0 0 6px; opacity: .8; }
.lap-podcast .lap-pod-desc { margin: 0 0 8px; opacity: .9; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lap-podcast .lap-pod-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.lap-podcast .lap-pod-sub { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--lap-text) 30%, transparent); border-radius: 99px; font-size: 13px; text-decoration: none; }
.lap-podcast .lap-pod-sub .lap-i { width: 15px; height: 15px; }

.lap-pod-player { margin: 0 0 14px; padding: 12px; border-radius: 8px; background: color-mix(in srgb, var(--lap-text) 6%, var(--lap-bg)); }
.lap-pod-now { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.lap-podcast .lap-pod-nowimg { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.lap-pod-nowtxt { min-width: 0; flex: 1 1 auto; }
.lap-pod-nowlabel { display: block; font-size: 12px; opacity: .7; }
.lap-pod-nowtitle { display: block; font-weight: 600; line-height: 1.3; }
.lap-podcast .lap-pod-audio { display: block; width: 100%; }
.lap-podcast.lap-pod-js .lap-pod-audio { display: none; }
.lap-podcast:not(.lap-pod-js) .lap-pod-ctl, .lap-podcast:not(.lap-pod-js) .lap-pod-chbtn { display: none; }
.lap-pod-ctl { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lap-pod-ctl .lap-btn-play { width: 44px; height: 44px; background: var(--lap-primary); color: var(--lap-bg); }
.lap-podcast .lap-pod-ctl .lap-btn-play:hover, .lap-podcast .lap-pod-ctl .lap-btn-play:focus-visible { background: var(--lap-primary); color: var(--lap-bg); opacity: .9; }
.lap-pod-ctl .lap-btn-play .lap-i { width: 24px; height: 24px; }
.lap-pod-skip { font-size: 10px; font-weight: 700; margin: 0 4px 0 -6px; opacity: .75; }
.lap-pod-ctl .lap-progress { flex: 1 1 140px; margin: 0 6px; }
.lap-pod-msg { margin: 8px 0 0; font-size: 13px; }
.lap-pod-err { color: #b42318; }
.lap-pod-theme-dark .lap-pod-err { color: #ff8a80; }
.lap-pod-chapters { margin: 10px 0 0; font-size: 14px; }
.lap-pod-chapters ol { list-style: none; margin: 6px 0 0; padding: 0; max-height: 220px; overflow: auto; }
.lap-podcast .lap-pod-chap { appearance: none; display: block; width: 100%; padding: 4px 6px; margin: 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lap-podcast .lap-pod-chap:hover, .lap-podcast .lap-pod-chap:focus-visible { background: color-mix(in srgb, var(--lap-text) 10%, transparent); }
.lap-podcast .lap-pod-chap.is-current { font-weight: 700; color: var(--lap-primary); }
.lap-pod-chapt { display: inline-block; min-width: 3.5em; font-variant-numeric: tabular-nums; opacity: .75; }
.lap-podcast .lap-pod-unstick { display: none; }

/* Kept in view while scrolling, once listening has started. */
.lap-podcast.lap-pod-stuck .lap-pod-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; margin: 0; padding: 8px 12px; border-radius: 0; background: var(--lap-bg); box-shadow: 0 -4px 18px rgba(0,0,0,.18); }
.lap-podcast.lap-pod-stuck .lap-pod-now { margin: 0 0 4px; }
.lap-podcast.lap-pod-stuck .lap-pod-nowimg { width: 36px; height: 36px; }
.lap-podcast.lap-pod-stuck .lap-pod-nowlabel, .lap-podcast.lap-pod-stuck .lap-pod-chapters, .lap-podcast.lap-pod-stuck .lap-pod-resumed { display: none; }
.lap-podcast.lap-pod-stuck .lap-pod-unstick { display: inline-flex; }

.lap-pod-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.lap-podcast .lap-pod-search { position: relative; flex: 1 1 200px; display: flex; align-items: center; }
.lap-podcast .lap-pod-search .lap-i { position: absolute; left: 10px; width: 16px; height: 16px; opacity: .6; }
.lap-podcast .lap-pod-search input, .lap-podcast .lap-pod-sel select { width: 100%; min-height: 38px; margin: 0; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--lap-text) 30%, transparent); border-radius: 8px; background: var(--lap-bg); color: var(--lap-text); font: inherit; font-size: 14px; }
.lap-podcast .lap-pod-search input { padding-left: 32px; }
.lap-podcast .lap-pod-go { min-height: 38px; padding: 6px 14px; border: 0; border-radius: 8px; background: var(--lap-primary); color: var(--lap-bg); font: inherit; cursor: pointer; }
.lap-podcast.lap-pod-js .lap-pod-go { display: none; }
.lap-pod-count { font-size: 13px; opacity: .75; }

.lap-podcast .lap-pod-list { list-style: none; margin: 0; padding: 0; }
.lap-pod-ep { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--lap-text) 14%, transparent); }
.lap-pod-ep[hidden] { display: none; }
.lap-podcast .lap-pod-epimg { width: 72px; height: 72px; flex: 0 0 auto; object-fit: cover; border-radius: 6px; }
.lap-pod-epbody { min-width: 0; flex: 1 1 auto; }
.lap-podcast .lap-pod-eptitle { margin: 0 0 3px; font-size: 1.02em; line-height: 1.3; color: inherit; }
.lap-podcast .lap-pod-play { display: inline-flex; gap: 8px; align-items: flex-start; text-decoration: none; }
.lap-pod-playicon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--lap-primary); color: var(--lap-bg); }
.lap-pod-playicon .lap-i { width: 16px; height: 16px; }
.lap-podcast .lap-pod-ep .lap-pod-playicon .lap-when-playing { display: none; }
.lap-podcast .lap-pod-ep .lap-pod-playicon .lap-when-paused { display: block; }
.lap-podcast.is-playing .lap-pod-ep.is-current .lap-pod-playicon .lap-when-playing { display: block; }
.lap-podcast.is-playing .lap-pod-ep.is-current .lap-pod-playicon .lap-when-paused { display: none; }
.lap-pod-ep.is-current .lap-pod-eptitle { color: var(--lap-primary); }
.lap-podcast .lap-pod-meta { margin: 0 0 4px; font-size: 13px; opacity: .8; }
.lap-pod-badge { display: inline-block; padding: 0 6px; border-radius: 4px; background: color-mix(in srgb, var(--lap-text) 14%, transparent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.lap-podcast .lap-pod-notes { margin: 2px 0 4px; font-size: 14px; }
.lap-podcast .lap-pod-notes summary { cursor: pointer; opacity: .9; }
.lap-pod-notesbody { margin: 6px 0 0; }
.lap-pod-notesbody p { margin: 0 0 .6em; }
.lap-podcast .lap-pod-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 13px; }
.lap-podcast .lap-pod-none { margin: 12px 0; opacity: .8; }
.lap-pod-morewrap { margin: 12px 0 0; text-align: center; }
.lap-podcast .lap-pod-more { min-height: 38px; padding: 6px 18px; border: 1px solid color-mix(in srgb, var(--lap-text) 35%, transparent); border-radius: 99px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.lap-pod-privacy { margin: 12px 0 0; font-size: 12px; opacity: .75; }

/* Cards */
.lap-pod-cards .lap-pod-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lap-pod-cards .lap-pod-ep { flex-direction: column; padding: 0; border: 1px solid color-mix(in srgb, var(--lap-text) 14%, transparent); border-radius: 8px; overflow: hidden; }
.lap-podcast.lap-pod-cards .lap-pod-epimg { width: 100%; height: auto; aspect-ratio: 1; max-height: 260px; object-fit: cover; border-radius: 0; }
.lap-pod-cards .lap-pod-epbody { padding: 0 12px 12px; }
.lap-pod-cards .lap-pod-ep:not(:has(.lap-pod-epimg)) .lap-pod-epbody { padding-top: 12px; }

/* Compact */
.lap-podcast.lap-pod-compact .lap-pod-epimg, .lap-podcast.lap-pod-compact .lap-pod-cover { display: none; }
.lap-pod-compact .lap-pod-ep { padding: 7px 0; }
.lap-podcast.lap-pod-compact .lap-pod-notes, .lap-podcast.lap-pod-compact .lap-pod-desc { display: none; }

@container lappod (max-width: 520px) {
	.lap-podcast .lap-pod-cover { width: 76px; height: 76px; }
	.lap-pod-ctl .lap-progress { order: 10; flex: 1 1 100%; margin: 4px 0 0; }
	.lap-pod-ctl input.lap-vol, .lap-pod-skip, .lap-pod-ctl .lap-btn-mute { display: none; } /* Phones: their own volume buttons. */
	.lap-pod-ctl .lap-dur { margin-right: auto; }
	.lap-pod-ctl .lap-dur::before { content: "/ "; opacity: .6; }
	.lap-podcast.lap-pod-cards .lap-pod-epimg { max-height: 160px; }
	.lap-pod-head { gap: 12px; }
	.lap-podcast .lap-pod-epimg { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .lap-podcast * { transition: none !important; } }

/* Masks: a picture shown through a shape (LAP_Mask; the --lap-mask variables are set on the element). */
.lap-masked { -webkit-mask-image: var(--lap-mask); mask-image: var(--lap-mask); -webkit-mask-size: var(--lap-mask-size, contain); mask-size: var(--lap-mask-size, contain); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; border-radius: 0 !important; box-shadow: none !important; }
.lap .lap-ab-cover.lap-masked { filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.lap-vis-pic.lap-masked::after { display: none; }
.lap-vis-dark { position: absolute; inset: 0; pointer-events: none; }
.lap-vis-wave-look canvas { display: block; width: 100%; height: 100%; }
.lap-vis-badge { position: absolute; inset: 0; pointer-events: none; z-index: 3; }

/* Ready-made shapes for any picture: class="lap-mask-heart" (generated by LAP_Mask::utility_css(); keep in step with its shapes). */
.lap-mask-circle{--lap-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cpath%20d%3D%27M50%200A50%2050%200%201%201%2050%20100A50%2050%200%201%201%2050%200Z%27%2F%3E%3C%2Fsvg%3E");--lap-mask-size:contain;}.lap-mask-ellipse{--lap-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M50%200A50%2050%200%201%201%2050%20100A50%2050%200%201%201%2050%200Z%27%2F%3E%3C%2Fsvg%3E");--lap-mask-size:100% 100%;}.lap-mask-rounded{--lap-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M14%200H86Q100%200%20100%2014V86Q100%20100%2086%20100H14Q0%20100%200%2086V14Q0%200%2014%200Z%27%2F%3E%3C%2Fsvg%3E");--lap-mask-size:100% 100%;}.lap-mask-arch{--lap-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%20100V50A50%2050%200%200%201%20100%2050V100Z%27%2F%3E%3C%2Fsvg%3E");--lap-mask-size:100% 100%;}.lap-mask-diamond{--lap-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cpath%20d%3D%27M50%200L100%2050L50%20100L0%2050Z%27%2F%3E%3C%2Fsvg%3E");--lap-mask-size:contain;}.lap-mask-triangle{--lap-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cpath%20d%3D%27M50%204L100%2094H0Z%27%2F%3E%3C%2Fsvg%3E");--lap-mask-size:contain;}.lap-mask-hexagon{--lap-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cpath%20d%3D%27M100%2050L75%2093.3L25%2093.3L0%2050L25%206.7L75%206.7Z%27%2F%3E%3C%2Fsvg%3E");--lap-mask-size:contain;}.lap-mask-octagon{--lap-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cpath%20d%3D%27M69.13%203.81L96.19%2030.87L96.19%2069.13L69.13%2096.19L30.87%2096.19L3.81%2069.13L3.81%2030.87L30.87%203.81Z%27%2F%3E%3C%2Fsvg%3E");--lap-mask-size:contain;}.lap-mask-star{--lap-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cpath%20d%3D%27M50%200L62.34%2033.01L97.55%2034.55L69.97%2056.49L79.39%2090.45L50%2071L20.61%2090.45L30.03%2056.49L2.45%2034.55L37.66%2033.01Z%27%2F%3E%3C%2Fsvg%3E");--lap-mask-size:contain;}.lap-mask-heart{--lap-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cpath%20d%3D%27M50%2094C22%2074%200%2056%200%2031C0%2014%2013%203%2028%203C38%203%2046%209%2050%2017C54%209%2062%203%2072%203C87%203%20100%2014%20100%2031C100%2056%2078%2074%2050%2094Z%27%2F%3E%3C%2Fsvg%3E");--lap-mask-size:contain;}.lap-mask-circle,.lap-mask-ellipse,.lap-mask-rounded,.lap-mask-arch,.lap-mask-diamond,.lap-mask-triangle,.lap-mask-hexagon,.lap-mask-octagon,.lap-mask-star,.lap-mask-heart{-webkit-mask-image:var(--lap-mask);mask-image:var(--lap-mask);-webkit-mask-size:var(--lap-mask-size);mask-size:var(--lap-mask-size);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;border-radius:0}

/* Badges (LAP_Badge): a small mark on a picture; the picture is wrapped, the badge placed over it. */
.lap-badged { position: relative; display: inline-block; max-width: 100%; line-height: 0; vertical-align: top; }
.lap-badged > img { display: block; max-width: 100%; height: auto; }
.lap-badge { position: absolute; z-index: 2; pointer-events: none; height: auto !important; max-width: none !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
.lap-badge.lap-badge-shadow { filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.lap .lap-ab-coverwrap.lap-badged { display: block; width: 100%; }
.lap-podcast .lap-pod-coverwrap.lap-badged { flex: 0 0 auto; }
.lap-podcast .lap-pod-coverwrap.lap-badged > img { max-width: none; }
.lap-podcast.lap-pod-compact .lap-pod-coverwrap { display: none; }

/* Galleries (player layout): a YouTube video takes the file player's place (YouTube's box styles: lap-yt.css). */
.lap-g-player.is-yt > .lap-wrap { display: none; }
.lap-g-yt > .lye, .lap-g-yt > div > .lye { margin: 0; }

/* ================= Fan favourites (3.1.0) ================= */
.lap .lap-heart { position: relative; color: var(--lap-control); }
.lap .lap-heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.lap .lap-heart:hover svg, .lap .lap-heart:focus-visible svg, .lap .lap-heart.is-on svg { fill: #ff3d7f; stroke: #ff3d7f; }
.lap .lap-heart.is-on svg { animation: lap-heart-pop .45s ease-out; }
@keyframes lap-heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.lap .lap-heart-fly { position: absolute; left: 50%; top: 0; width: 18px; height: 18px; margin-left: -9px; pointer-events: none; animation: lap-heart-fly 1s ease-out forwards; }
.lap .lap-heart-fly svg { width: 18px; height: 18px; fill: #ff3d7f; stroke: none; }
@keyframes lap-heart-fly { from { transform: translateY(0) scale(.8); opacity: 1; } to { transform: translateY(-36px) scale(1.3); opacity: 0; } }
.lap-heart-live { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lap .lap-heat { position: absolute; left: 0; right: 0; bottom: 50%; height: 14px; margin-bottom: 2px; pointer-events: none; opacity: .55; }
.lap .lap-heat svg { display: block; width: 100%; height: 100%; }
.lap .lap-heat polygon { fill: var(--lap-primary); }
.lap .lap-fav { position: absolute; bottom: 50%; z-index: 2; width: 20px; height: 20px; margin: 0 0 6px -10px; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; cursor: pointer; color: #ff3d7f; line-height: 0; }
.lap .lap-fav svg { width: 14px; height: 14px; fill: currentColor; filter: drop-shadow(0 0 2px rgba(0,0,0,.4)); }
.lap .lap-fav:hover svg, .lap .lap-fav:focus-visible svg { transform: scale(1.25); }
.lap .lap-fav:focus-visible { outline: 2px solid var(--lap-primary); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .lap .lap-heart.is-on svg { animation: none; } }
.lap .lap-w-canvas .lap-heat, .lap-vis-wave .lap-heat { top: auto; bottom: 0; height: 40%; margin: 0; z-index: 1; opacity: .35; }
.lap .lap-w-canvas .lap-fav { bottom: auto; top: 0; margin: 0 0 0 -10px; }
.lap-vis-wave .lap-fav { bottom: 100%; margin-bottom: 2px; }
.lap-vis-wave .lap-heat polygon { fill: #fff; }

/* Practice tools (3.2.0): A–B loop and slow-down. */
.lap-practice {
	flex-basis: 100%;
	box-sizing: border-box;
	width: 100%;
	margin-top: .4em;
	padding: 0 .6em .5em;
	font-size: .85em;
	color: var(--lap-text, inherit);
}

.lap-pr-toggle,
.lap-pr-btn {
	font: inherit;
	color: inherit;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 999px;
	padding: .15em .8em;
	cursor: pointer;
	opacity: .85;
}

.lap-pr-toggle[aria-expanded="true"],
.lap-pr-btn[aria-pressed="true"] {
	background: var(--lap-primary, #1aafff);
	border-color: var(--lap-primary, #1aafff);
	color: #fff;
	opacity: 1;
}

.lap-pr-btn:disabled {
	opacity: .35;
	cursor: default;
}

.lap-pr-toggle:focus-visible,
.lap-pr-btn:focus-visible {
	outline: 2px solid var(--lap-primary, #1aafff);
	outline-offset: 2px;
}

.lap-pr-panel {
	margin-top: .5em;
}

.lap-pr-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4em .6em;
	margin: .35em 0;
}

.lap-pr-ab {
	font-variant-numeric: tabular-nums;
	opacity: .85;
}

.lap-pr-speed {
	display: inline-flex;
	align-items: center;
	gap: .4em;
}

.lap-pr-speed input {
	width: 9em;
	accent-color: var(--lap-primary, #1aafff);
}

.lap-pr-speed output {
	min-width: 3em;
	font-variant-numeric: tabular-nums;
}

.lap-practice.is-looping .lap-pr-ab::before {
	content: "↻ ";
}

/* Shop rows (3.2.0): price and buy button. */
.lap-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.lap-pl-buy { display: inline-flex; align-items: center; gap: .5em; margin-left: auto; padding-left: .5em; white-space: nowrap; font-size: .85em; }
.lap-pl-price { opacity: .85; font-variant-numeric: tabular-nums; }
.lap-pl-buybtn { display: inline-block; padding: .25em .8em; border-radius: 999px; background: var(--lap-primary, #1aafff); color: #fff !important; text-decoration: none !important; font-weight: 600; }
.lap-pl-buybtn:hover, .lap-pl-buybtn:focus-visible { filter: brightness(1.1); }
.lap-pl-buybtn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 480px) { .lap-pl-item.has-buy .lap-pl-row { flex-wrap: wrap; } .lap-pl-buy { margin-left: 3.2em; padding: 0 0 .4em; } }
.lap-practice-host { width: var(--lap-w, 100%); max-width: 100%; }
.lap-wrap.has-practice { flex-direction: column; }
.lap-wrap.has-practice.lap-al-center { align-items: center; }
.lap-wrap.has-practice.lap-al-right { align-items: flex-end; }
.lap-practice-host .lap-practice { padding-left: 0; padding-right: 0; }
/* Practice bar inside a full-screen video (3.4.0). */
.lap-practice.is-fs { position: absolute; top: .6em; left: .6em; z-index: 5; width: auto; max-width: calc(100% - 1.2em); margin: 0; padding: .4em .7em; border-radius: 10px; background: rgba(0, 0, 0, .62); color: #fff; }
.lap-practice.is-fs .lap-pr-toggle, .lap-practice.is-fs .lap-pr-btn { color: #fff; }

/* SoundCloud, Mixcloud and Bandcamp, click to load (3.5.0). */
.lap-ext { display: flex; gap: .8em; align-items: flex-start; max-width: 700px; margin: 1em 0; padding: .8em 1em; border-radius: 12px; background: var(--lap-bg, #f2f4f7); color: var(--lap-text, inherit); box-sizing: border-box; }
.lap-ext.is-loaded { display: block; padding: 0; background: none; }
.lap-ext-frame { display: block; width: 100%; border: 0; }
.lap-ext-play { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.75em; height: 2.75em; padding: 0; border: 0; border-radius: 50%; background: var(--lap-primary, #1aafff); color: #fff; cursor: pointer; }
.lap-ext-play .lap-i { width: 1.4em; height: 1.4em; fill: currentColor; }
.lap-ext-play:focus-visible { outline: 2px solid var(--lap-primary, #1aafff); outline-offset: 3px; }
.lap-ext-body { min-width: 0; }
.lap-ext-t { font-weight: 600; line-height: 1.3; }
.lap-ext-by { font-size: .85em; opacity: .8; }
.lap-ext-note { margin-top: .35em; font-size: .8em; opacity: .8; }
.lap-ext-note a { color: inherit; }
.lap-ext-always { white-space: nowrap; }
.lap-ext-compact { margin: .4em 0; padding: .5em .8em; align-items: center; }
.lap-ext-list .lap-ext-compact + .lap-ext-compact .lap-ext-note { display: none; } /* Said once per list (each play button also names the service). */
.lap-ext-compact .lap-ext-play { width: 2.2em; height: 2.2em; }
.lap-ext-credit { font-size: .85em; opacity: .85; margin-top: .4em; }

/* Virtual radio (3.6.0). */
.lap-station { display: flex; align-items: center; gap: 1em; width: var(--lap-w, 100%); max-width: 640px; padding: .9em 1.1em; border-radius: 14px; background: var(--lap-bg, #1d2230); color: var(--lap-text, #fff); box-sizing: border-box; }
.lap-st-art { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.lap-st-body { flex: 1 1 auto; min-width: 0; }
.lap-st-top { display: flex; align-items: center; gap: .5em; font-size: .78em; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.lap-st-live { width: .6em; height: .6em; border-radius: 50%; background: currentColor; opacity: .5; }
.lap-station.is-playing .lap-st-live { background: #e5484d; opacity: 1; animation: lap-st-pulse 1.6s ease-in-out infinite; }
@keyframes lap-st-pulse { 50% { opacity: .35; } }
.lap-st-now { margin-top: .2em; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lap-st-now-a { font-weight: 400; opacity: .85; }
.lap-st-next { margin-top: .15em; font-size: .82em; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lap-st-ctrls { display: flex; align-items: center; gap: .6em; flex: 0 0 auto; }
.lap-st-play { width: 3em; height: 3em; border-radius: 50%; background: var(--lap-primary, #1aafff); color: #fff; display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; }
.lap-st-play .lap-i { width: 1.5em; height: 1.5em; fill: currentColor; }
.lap-station .lap-when-playing { display: none; }
.lap-station.is-playing .lap-when-playing { display: inline; }
.lap-station.is-playing .lap-when-paused { display: none; }
.lap-station.is-waiting .lap-st-play { opacity: .7; }
.lap-st-vol { width: 6em; }
.lap-st-noscript { margin: 0; font-size: .85em; }
@media (max-width: 480px) { .lap-station { flex-wrap: wrap; } .lap-st-ctrls { width: 100%; justify-content: space-between; } .lap-st-art { width: 56px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .lap-station.is-playing .lap-st-live { animation: none; } }

/* Stations: programmes, listening now, the schedule (3.7.0). */
.lap-st-name a { color: inherit; text-decoration: none; }
.lap-st-name a:hover, .lap-st-name a:focus { text-decoration: underline; }
.lap-st-prog, .lap-st-here { text-transform: none; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lap-st-prog::before, .lap-st-here::before { content: "·"; margin-right: .5em; opacity: .7; }
.lap-st-here { margin-left: auto; opacity: .85; }
.lap-st-prog[hidden], .lap-st-here[hidden] { display: none; }
.lap-station-single { margin: 0 0 1.5em; }
.lap-schedule { margin: 1em 0; }
.lap-sch-zone, .lap-sch-rest { font-size: .9em; opacity: .8; }
.lap-sch-day h3 { margin: 1.2em 0 .4em; font-size: 1.05em; }
.lap-sch-day ul { list-style: none; margin: 0; padding: 0; }
.lap-sch-day li { display: flex; flex-wrap: wrap; gap: .2em .8em; align-items: baseline; padding: .5em .7em; border-radius: 8px; border-left: 3px solid transparent; }
.lap-sch-day li.is-on { border-left-color: var(--lap-primary, #1aafff); background: rgba(127, 127, 127, .1); }
.lap-sch-time { font-variant-numeric: tabular-nums; min-width: 8.5em; }
.lap-sch-yours { font-size: .85em; opacity: .75; }
.lap-sch-name { font-weight: 600; }
.lap-sch-on { font-size: .75em; text-transform: uppercase; letter-spacing: .06em; padding: .1em .5em; border-radius: 999px; background: var(--lap-primary, #1aafff); color: #fff; }
.lap-sch-on[hidden], .lap-sch-yours[hidden] { display: none; }
.lap-sch-about { flex-basis: 100%; font-size: .9em; opacity: .8; }

/* Protected recordings this visitor may not have (3.10.0): a note instead of a player that can't play;
   in albums, locked tracks are dimmed with a lock and one note says who they are for. */
.lap-locked-note .lap-i, .lap-ab-locked .lap-i { width: 1.1em; height: 1.1em; vertical-align: -.18em; fill: currentColor; }
.lap-locked-note a, .lap-ab-locked a { color: inherit; text-decoration: underline; }
.lap-album .lap-ab-track.is-locked .lap-ab-main { opacity: .6; cursor: not-allowed; }
.lap-album .lap-ab-lock { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; fill: currentColor; }
.lap-album .lap-ab-locked { margin: 10px 4px 0; padding: 8px 10px; border-radius: 6px; background: rgba(0,0,0,.05); font-size: 13px; }
.lap-album .lap-ab-locked.is-flash { animation: lap-flash 1s ease-out; }
@keyframes lap-flash { from { box-shadow: 0 0 0 3px var(--lap-primary); } to { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .lap-album .lap-ab-locked.is-flash { animation: none; outline: 2px solid var(--lap-primary); } }
.lap > .lap-problem { margin: 6px 0 0; padding: 6px 10px; border-radius: 6px; background: #fcf0f1; color: #8a2424; font-size: 13px; line-height: 1.4; }
.lap-ext-open { margin: .3em 0 0; font-size: 13px; }
.lap-station > .lap-st-problem, .lap-st-problem { margin: 6px 0 0; padding: 6px 10px; border-radius: 6px; background: #fcf0f1; color: #8a2424; font-size: 13px; line-height: 1.4; }
