/* Hanifan Jellyfin Player – Spotify-inspired layout. Uses theme.json presets when available. */
:root {
	--hjf-bg: var(--wp--preset--color--base, #0e0f12);
	--hjf-surface: var(--wp--preset--color--surface, #16181d);
	--hjf-elev: #1f2229;
	--hjf-bar: #08090b;
	--hjf-fg: var(--wp--preset--color--contrast, #f2efe9);
	--hjf-muted: var(--wp--preset--color--muted, #a7a9b0);
	--hjf-accent: var(--wp--preset--color--accent, #e3a94b);
	--hjf-line: rgba(255, 255, 255, .1);
	--hjf-hover: rgba(255, 255, 255, .07);
	--hjf-tint-default: #5a4120;
	--hjf-bar-h: 84px;
	--hjf-lib-w: 380px;
	--hjf-font: var(--wp--preset--font-family--body, system-ui, -apple-system, "Segoe UI", sans-serif);
}

html.hjf-has-player body { padding-bottom: calc(var(--hjf-bar-h) + env(safe-area-inset-bottom, 0px)); }
:where(.hjf-player, .hjf-library, .hjf-playlist) svg { display: block; }
.hjf-player button, .hjf-library button, .hjf-playlist button { -webkit-tap-highlight-color: transparent; }

/* ============ Playlist (page block + library album view) ============ */
.hjf-playlist {
	--hjf-tint: var(--hjf-tint-default);
	position: relative;
	color: var(--hjf-fg);
	font-family: var(--hjf-font);
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(180deg, color-mix(in srgb, var(--hjf-tint) 55%, var(--hjf-bg)) 0, var(--hjf-bg) 420px);
	transition: background .4s ease;
}

.hjf-hero {
	display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 32px);
	padding: clamp(20px, 4vw, 40px) clamp(16px, 3vw, 32px) clamp(16px, 2.5vw, 24px);
	background: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .25) 100%);
}
.hjf-hero__art { flex: none; width: clamp(128px, 22vw, 232px); aspect-ratio: 1; }
.hjf-hero__art img, .hjf-hero__art-fallback {
	width: 100%; height: 100%; object-fit: cover; border-radius: 6px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, .55);
}
.hjf-hero__art-fallback { display: grid; place-items: center; background: var(--hjf-elev); color: var(--hjf-muted); }
.hjf-hero__art-fallback svg { width: 40%; height: 40%; }
.hjf-hero__meta { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hjf-hero__eyebrow { margin: 0; font-size: .8rem; font-weight: 600; }
.hjf-hero__eyebrow a { color: inherit; text-decoration: none; }
.hjf-hero__eyebrow a:hover { text-decoration: underline; }
.hjf-hero__title {
	margin: 0 0 6px; font-family: var(--hjf-font); font-weight: 800; letter-spacing: -.04em; line-height: 1.02;
	font-size: clamp(2rem, 6vw, 4.75rem); overflow-wrap: anywhere;
}
.hjf-hero__sub { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.hjf-hero__sub strong { color: var(--hjf-fg); font-weight: 700; }
.hjf-hero__sub span[aria-hidden] { margin: 0 4px; }

.hjf-actions {
	display: flex; align-items: center; gap: 24px;
	padding: clamp(16px, 2.5vw, 24px) clamp(16px, 3vw, 32px);
	background: linear-gradient(180deg, rgba(0, 0, 0, .18), transparent);
}
.hjf-bigplay {
	display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; padding: 0;
	background: var(--hjf-accent); color: #111; cursor: pointer;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .35); transition: transform .12s ease, filter .12s ease;
}
.hjf-bigplay svg { width: 26px; height: 26px; }
.hjf-bigplay:hover { transform: scale(1.05); filter: brightness(1.08); }
.hjf-bigplay:active { transform: scale(.97); }
.hjf-bigplay .hjf-i-pause, .hjf-playlist.is-playing .hjf-bigplay .hjf-i-play { display: none; }
.hjf-playlist.is-playing .hjf-bigplay .hjf-i-pause { display: block; }
.hjf-pagelink { color: var(--hjf-muted); font-size: .85rem; font-weight: 600; text-decoration: none; }
.hjf-pagelink:hover { color: var(--hjf-fg); text-decoration: underline; }

/* Track table */
.hjf-table, .hjf-playlist > .hjf-tracks { padding: 0 clamp(8px, 2.5vw, 24px) clamp(16px, 2.5vw, 24px); }
.hjf-playlist { --hjf-cols: 40px minmax(0, 1fr) 64px; }
.hjf-playlist.is-mixed { --hjf-cols: 40px minmax(0, 1.4fr) minmax(0, 1fr) 64px; }
.hjf-table__head {
	display: grid; grid-template-columns: var(--hjf-cols); gap: 16px; align-items: center;
	padding: 0 16px 8px; margin-bottom: 8px; border-bottom: 1px solid var(--hjf-line);
	color: var(--hjf-muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
}
.hjf-table__head .hjf-col-num { text-align: center; }
.hjf-table__head .hjf-col-dur { justify-self: end; margin-right: 8px; }
.hjf-tracks { list-style: none; margin: 0; padding: 0; }
.hjf-track__btn {
	display: grid; grid-template-columns: var(--hjf-cols); gap: 16px; align-items: center;
	width: 100%; min-height: 56px; padding: 6px 16px; border: 0; border-radius: 6px;
	background: none; color: var(--hjf-muted); font: inherit; font-size: .9rem; text-align: left; cursor: pointer;
}
.hjf-track__btn:hover, .hjf-track__btn:focus-visible { background: var(--hjf-hover); }
.hjf-track.is-current .hjf-track__btn { background: rgba(255, 255, 255, .04); }
.hjf-track__num { position: relative; display: grid; place-items: center; height: 16px; font-variant-numeric: tabular-nums; font-size: 1rem; }
.hjf-track__num > * { grid-area: 1 / 1; }
.hjf-track__play, .hjf-track__pause, .hjf-track__eq { display: none; color: var(--hjf-fg); }
.hjf-track__play svg, .hjf-track__pause svg, .hjf-track__num > svg { width: 16px; height: 16px; }
.hjf-track__btn:hover .hjf-track__n, .hjf-track__btn:focus-visible .hjf-track__n { display: none; }
.hjf-track__btn:hover .hjf-track__play, .hjf-track__btn:focus-visible .hjf-track__play { display: block; }
.hjf-track.is-current .hjf-track__n { color: var(--hjf-accent); }
.hjf-track.is-playing .hjf-track__n { display: none; }
.hjf-track.is-playing .hjf-track__eq { display: inline-flex; }
.hjf-track.is-playing .hjf-track__btn:hover .hjf-track__eq,
.hjf-track.is-playing .hjf-track__btn:hover .hjf-track__play { display: none; }
.hjf-track.is-playing .hjf-track__btn:hover .hjf-track__pause { display: block; }
.hjf-track__eq { height: 14px; gap: 2px; align-items: flex-end; justify-content: center; }
.hjf-track__eq i, .hjf-lib-item__eq i { width: 3px; background: var(--hjf-accent); border-radius: 1px; animation: hjf-eq .9s infinite ease-in-out; }
.hjf-track__eq i:nth-child(2), .hjf-lib-item__eq i:nth-child(2) { animation-delay: -.3s; }
.hjf-track__eq i:nth-child(3), .hjf-lib-item__eq i:nth-child(3) { animation-delay: -.6s; }
.hjf-track__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes hjf-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.hjf-track__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hjf-track__art { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex: none; }
.hjf-track__text { display: flex; flex-direction: column; min-width: 0; }
.hjf-track__title { color: var(--hjf-fg); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hjf-track.is-current .hjf-track__title { color: var(--hjf-accent); }
.hjf-track__artist, .hjf-track__album { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hjf-track__dur { justify-self: end; margin-right: 8px; font-variant-numeric: tabular-nums; }
.hjf-notice { padding: 12px 16px; border: 1px dashed var(--hjf-line); border-radius: 8px; color: var(--hjf-muted); }

/* ============ Player bar ============ */
.hjf-player {
	position: fixed; inset: auto 0 0 0; z-index: 9999;
	background: var(--hjf-bar); color: var(--hjf-fg); font-family: var(--hjf-font);
	border-top: 1px solid rgba(255, 255, 255, .06);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.hjf-player__inner {
	display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr); align-items: center; gap: 16px;
	height: var(--hjf-bar-h); padding: 0 16px;
}
.hjf-player__now { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hjf-player__artbtn {
	position: relative; flex: none; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 6px; overflow: hidden;
	background: var(--hjf-elev); color: var(--hjf-muted); cursor: pointer;
}
.hjf-player__art { width: 100%; height: 100%; object-fit: cover; }
.hjf-player__art-ph { display: grid; place-items: center; width: 100%; height: 100%; }
.hjf-player__art-ph svg { width: 24px; height: 24px; }
.hjf-player__art:not([hidden]) + .hjf-player__art-ph { display: none; }
.hjf-player__text { min-width: 0; }
.hjf-player__title {
	display: block; color: var(--hjf-fg); font-size: .9rem; font-weight: 600; text-decoration: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hjf-player__title:hover { text-decoration: underline; }
.hjf-player.is-idle .hjf-player__title { pointer-events: none; }
.hjf-player__artist { color: var(--hjf-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.hjf-player__center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.hjf-player__controls { display: flex; align-items: center; gap: 16px; }
.hjf-player__progress { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 640px; }
.hjf-time { min-width: 40px; color: var(--hjf-muted); font-size: .75rem; font-variant-numeric: tabular-nums; text-align: center; }
.hjf-player__extra { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.hjf-btn {
	display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
	border: 0; border-radius: 50%; background: none; color: var(--hjf-muted); cursor: pointer;
	transition: color .12s ease, transform .12s ease;
}
.hjf-btn svg { width: 20px; height: 20px; }
.hjf-btn:hover, .hjf-btn:focus-visible { color: var(--hjf-fg); }
.hjf-btn[hidden] { display: none; }
.hjf-btn.is-active { color: var(--hjf-accent); }
.hjf-btn { position: relative; }
.hjf-btn.is-active::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
.hjf-btn--main { width: 36px; height: 36px; background: var(--hjf-fg); color: #000; }
.hjf-btn--main svg { width: 18px; height: 18px; }
.hjf-btn--main:hover, .hjf-btn--main:focus-visible { color: #000; transform: scale(1.06); }
.hjf-i-pause, .hjf-player.is-playing .hjf-i-play { display: none; }
.hjf-player.is-playing .hjf-i-pause { display: block; }
.hjf-i-muted, .hjf-player.is-muted .hjf-i-vol { display: none; }
.hjf-player.is-muted .hjf-i-muted { display: block; }
.hjf-player.is-idle [data-hjf-action="prev"], .hjf-player.is-idle [data-hjf-action="next"], .hjf-player.is-idle .hjf-player__progress { opacity: .4; pointer-events: none; }
.hjf-vol { display: flex; align-items: center; gap: 4px; }
.hjf-vol__input { width: 96px; }

/* Range inputs: thin bar, fills with --hjf-fill, accent + thumb on hover */
.hjf-range {
	--hjf-fill: 0%;
	-webkit-appearance: none; appearance: none; flex: 1; height: 12px; margin: 0; background: transparent; cursor: pointer;
}
.hjf-range::-webkit-slider-runnable-track {
	height: 4px; border-radius: 2px;
	background: linear-gradient(to right, var(--hjf-fg) var(--hjf-fill), rgba(255, 255, 255, .25) var(--hjf-fill));
}
.hjf-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.hjf-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--hjf-fg); }
.hjf-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .1s; }
.hjf-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
.hjf-range:hover::-webkit-slider-runnable-track, .hjf-range:focus-visible::-webkit-slider-runnable-track {
	background: linear-gradient(to right, var(--hjf-accent) var(--hjf-fill), rgba(255, 255, 255, .25) var(--hjf-fill));
}
.hjf-range:hover::-moz-range-progress, .hjf-range:focus-visible::-moz-range-progress { background: var(--hjf-accent); }
.hjf-range:hover::-webkit-slider-thumb, .hjf-range:focus-visible::-webkit-slider-thumb { opacity: 1; }
.hjf-range:hover::-moz-range-thumb, .hjf-range:focus-visible::-moz-range-thumb { opacity: 1; }
.hjf-player__mini-progress { display: none; }

/* ============ Library panel ============ */
.hjf-library {
	position: fixed; z-index: 9998; top: 0; left: 0; bottom: calc(var(--hjf-bar-h) + env(safe-area-inset-bottom, 0px));
	width: min(var(--hjf-lib-w), 100vw);
	display: flex; flex-direction: column;
	background: var(--hjf-surface); color: var(--hjf-fg); font-family: var(--hjf-font);
	border-right: 1px solid rgba(255, 255, 255, .06);
	box-shadow: 16px 0 40px rgba(0, 0, 0, .4);
	transform: translateX(-100%); transition: transform .22s ease;
}
/* Wide screens: the panel docks on the left and pushes the site over, so pages stay fully
   browsable (and clickable) while music plays. Narrower screens overlay the panel instead. */
@media (min-width: 1100px) {
	.wp-site-blocks { transition: margin-left .22s ease; }
	html.hjf-library-open .wp-site-blocks { margin-left: var(--hjf-lib-w); }
}
.admin-bar .hjf-library { top: var(--wp-admin--admin-bar--height, 32px); }
.hjf-library.is-open { transform: none; }
.hjf-library[hidden] { display: none; }
.hjf-library__head { display: flex; align-items: center; gap: 8px; padding: 16px 12px 8px 16px; }
.hjf-library__title { display: flex; align-items: center; gap: 10px; flex: 1; margin: 0; font-family: var(--hjf-font); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.hjf-library__title svg { width: 22px; height: 22px; color: var(--hjf-muted); }
.hjf-library.is-album .hjf-library__title svg { display: none; }
.hjf-library__search { padding: 4px 16px 12px; }
.hjf-library__q {
	width: 100%; box-sizing: border-box; height: 36px; padding: 0 12px 0 36px; border: 1px solid transparent; border-radius: 6px;
	background: var(--hjf-elev) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a7a9b0' d='M10 2a8 8 0 0 1 6.32 12.9l5.39 5.4-1.41 1.4-5.4-5.39A8 8 0 1 1 10 2m0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12'/%3E%3C/svg%3E") 10px 50% / 16px no-repeat;
	color: var(--hjf-fg); font: inherit; font-size: .875rem;
}
.hjf-library__q:focus { outline: none; border-color: rgba(255, 255, 255, .35); }
.hjf-library__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 16px; scrollbar-width: thin; }
.hjf-library__body:focus { outline: none; }
.hjf-library__msg { padding: 24px 12px; color: var(--hjf-muted); font-size: .9rem; }
.hjf-lib-section { margin-bottom: 12px; }
.hjf-lib-section__title { margin: 12px 8px 4px; font-family: var(--hjf-font); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hjf-muted); }
.hjf-lib-list { list-style: none; margin: 0; padding: 0; }
.hjf-lib-item, .hjf-lib-song {
	display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 6px;
	background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.hjf-lib-item:hover, .hjf-lib-item:focus-visible, .hjf-lib-song:hover, .hjf-lib-song:focus-visible { background: var(--hjf-hover); }
.hjf-lib-item__art { flex: none; width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.hjf-lib-item__art--ph { display: grid; place-items: center; background: var(--hjf-elev); color: var(--hjf-muted); }
.hjf-lib-item__art--ph svg { width: 20px; height: 20px; }
.hjf-lib-item__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hjf-lib-item__name { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hjf-lib-item__sub { color: var(--hjf-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hjf-lib-item.is-current .hjf-lib-item__name { color: var(--hjf-accent); }
.hjf-lib-item__eq { display: none; height: 14px; gap: 2px; align-items: flex-end; margin-right: 8px; }
.hjf-lib-item.is-playing .hjf-lib-item__eq { display: inline-flex; }
.hjf-lib-song__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 4px; background: var(--hjf-elev); color: var(--hjf-muted); }
.hjf-lib-song__icon svg { width: 18px; height: 18px; }
.hjf-lib-song__icon .hjf-lib-item__eq { margin: 0; }
.hjf-lib-song.is-current .hjf-lib-item__name { color: var(--hjf-accent); }
.hjf-lib-song.is-playing .hjf-lib-song__play { display: none; }
.hjf-lib-song.is-playing .hjf-lib-item__eq { display: inline-flex; }

/* Albums / Songs switch, counts, small pill buttons */
.hjf-library__tabs { display: flex; gap: 8px; padding: 0 16px 8px; }
.hjf-library.is-album .hjf-library__tabs { display: none; }
.hjf-tab {
	padding: 6px 14px; border: 0; border-radius: 999px; background: var(--hjf-elev); color: var(--hjf-fg);
	font: inherit; font-size: .825rem; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.hjf-tab:hover { background: rgba(255, 255, 255, .14); }
.hjf-tab.is-active { background: var(--hjf-fg); color: var(--hjf-bg); }
.hjf-library__count { margin: 4px 8px 0; color: var(--hjf-muted); font-size: .8rem; }
.hjf-library__msg p { margin: 0 0 12px; }
.hjf-lib-more { margin: 4px 8px 0; }

/* Album view inside the panel: compact hero, no column header */
.hjf-playlist--panel { border-radius: 8px; margin-top: 4px; }
.hjf-playlist--panel .hjf-hero { flex-direction: column; align-items: flex-start; padding: 20px 16px 12px; }
.hjf-playlist--panel .hjf-hero__art { width: 140px; }
.hjf-playlist--panel .hjf-hero__title { font-size: 1.75rem; letter-spacing: -.02em; }
.hjf-playlist--panel .hjf-actions { padding: 8px 16px 12px; gap: 16px; }
.hjf-playlist--panel .hjf-bigplay { width: 48px; height: 48px; }
.hjf-playlist--panel .hjf-tracks { padding: 0 0 8px; }
.hjf-playlist--panel .hjf-track__btn { gap: 12px; padding: 6px 8px; min-height: 52px; --hjf-cols: 28px minmax(0, 1fr) 44px; grid-template-columns: var(--hjf-cols); }

/* Focus rings */
.hjf-player :focus-visible, .hjf-playlist :focus-visible, .hjf-library :focus-visible { outline: 2px solid var(--hjf-accent); outline-offset: 2px; }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
	.hjf-vol__input { display: none; }
}
@media (max-width: 720px) {
	:root { --hjf-bar-h: 64px; }
	.hjf-player { margin: 0 8px 8px; inset: auto 0 0 0; border-radius: 8px; border: 0; background: color-mix(in srgb, var(--hjf-elev) 92%, #000); overflow: hidden; }
	html.hjf-has-player body { padding-bottom: calc(var(--hjf-bar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
	.hjf-player__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 0 8px; }
	.hjf-player__artbtn { width: 44px; height: 44px; border-radius: 4px; }
	.hjf-player__center { flex-direction: row; order: 3; }
	.hjf-player__progress, .hjf-player__controls [data-hjf-action="prev"], .hjf-player__controls [data-hjf-action="next"], .hjf-vol { display: none; }
	.hjf-player__extra { order: 2; }
	.hjf-player__inner { grid-template-columns: minmax(0, 1fr) auto auto; }
	.hjf-btn--main { width: 40px; height: 40px; background: none; color: var(--hjf-fg); }
	.hjf-btn--main svg { width: 24px; height: 24px; }
	.hjf-btn--main:hover, .hjf-btn--main:focus-visible { color: var(--hjf-fg); }
	.hjf-btn { width: 40px; height: 40px; }
	.hjf-player__mini-progress { display: block; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: rgba(255, 255, 255, .2); border-radius: 1px; }
	.hjf-player__mini-progress span { display: block; height: 100%; width: 0; background: var(--hjf-fg); border-radius: 1px; }
	.hjf-library { width: 100vw; border-right: 0; bottom: calc(var(--hjf-bar-h) + 8px + env(safe-area-inset-bottom, 0px)); }
	.hjf-library.is-open { transform: none; }
	html.hjf-library-open { overflow: hidden; }

	.hjf-hero { flex-direction: column; align-items: flex-start; }
	.hjf-hero__art { width: min(60vw, 232px); align-self: center; }
	.hjf-playlist, .hjf-playlist.is-mixed { --hjf-cols: 28px minmax(0, 1fr) 44px; }
	.hjf-col-album, .hjf-table__head { display: none; }
	.hjf-track__btn { gap: 12px; padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.hjf-library, .wp-site-blocks { transition: none; }
	.hjf-track__eq i, .hjf-lib-item__eq i { animation: none; height: 70%; }
	.hjf-bigplay, .hjf-btn { transition: none; }
}
.hjf-library__body:focus, .hjf-library__body:focus-visible { outline: none; }
.hanifan-grid a[aria-busy="true"], a.hanifan-major__link[aria-busy="true"] { cursor: progress; opacity: .7; }

/* ============ Full-page player (Library docked into the Music page) ============ */
.hjf-library-dock { min-height: 480px; }
.hjf-library.is-docked {
	position: relative; inset: auto; z-index: auto; transform: none; transition: none;
	width: 100%; height: max(480px, calc(100svh - 150px - var(--hjf-bar-h)));
	border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.admin-bar .hjf-library.is-docked { top: auto; }
.hjf-library.is-docked [data-hjf-lib="close"] { display: none; }
.hjf-library.is-docked .hjf-library__head { padding: 20px 20px 8px 24px; }
.hjf-library.is-docked .hjf-library__title { font-size: 1.15rem; }
.hjf-library.is-docked .hjf-library__search, .hjf-library.is-docked .hjf-library__tabs { padding-left: 24px; padding-right: 24px; }
.hjf-library.is-docked .hjf-library__body { padding: 0 16px 24px; }
.hjf-library.is-docked .hjf-library__search { max-width: 520px; }
@media (min-width: 720px) {
	.hjf-library.is-docked .hjf-playlist--panel .hjf-hero { flex-direction: row; align-items: flex-end; padding: 24px 24px 16px; }
	.hjf-library.is-docked .hjf-playlist--panel .hjf-hero__art { width: 160px; flex: none; }
	.hjf-library.is-docked .hjf-playlist--panel .hjf-hero__title { font-size: 2.25rem; }
	.hjf-library.is-docked .hjf-playlist--panel .hjf-actions { padding: 8px 24px 12px; }
	.hjf-library.is-docked:not(.is-album) .hjf-lib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 12px; }
}
.hjf-library.is-docked .hjf-playlist--panel { max-width: 1000px; }
html.hjf-library-docked .hjf-btn--lib { opacity: .5; }
