.dselect {
	position: relative;
	font: 15px / 1.3 var(--sans);
}

.dselect-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 44px;
	padding: 0 12px 0 14px;
	border: 1px solid #1e1f22;
	border-radius: 8px;
	background: #1e1f22;
	color: #dbdee1;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.dselect-button:hover,
.dselect.open .dselect-button {
	border-color: #4e5058;
}

.dselect.open .dselect-button {
	border-radius: 8px 8px 0 0;
}

.dselect-chevron {
	width: 8px;
	height: 8px;
	margin: 0 4px 4px 0;
	border-right: 2px solid #b5bac1;
	border-bottom: 2px solid #b5bac1;
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.dselect.open .dselect-chevron {
	margin: 4px 4px 0 0;
	transform: rotate(-135deg);
}

.dselect-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 6;
	max-height: 280px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	border: 1px solid #4e5058;
	border-top: 0;
	border-radius: 0 0 8px 8px;
	background: #2b2d31;
	list-style: none;
	box-shadow: 0 16px 30px #00000080;
	scrollbar-width: thin;
}

.dselect-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	color: #b5bac1;
	cursor: pointer;
	outline: none;
}

.dselect-option:hover,
.dselect-option:focus {
	background: #35373c;
	color: #dbdee1;
}

.dselect-option[aria-selected="true"] {
	color: #fff;
}

.dselect-check {
	width: 18px;
	height: 18px;
	border: 2px solid #b5bac1;
	border-radius: 50%;
}

.dselect-option[aria-selected="true"] .dselect-check {
	border: 5px solid #5865f2;
	background: #fff;
}

.trail {
	position: fixed;
	inset: 0;
	z-index: 35;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: grid;
	place-items: center;
	padding: 24px;
	background: #00000000;
	cursor: zoom-out;
	transition:
		background 0.38s ease,
		backdrop-filter 0.38s ease;
}

.lightbox.open {
	background: #000000c7;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.lightbox-box {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 12px;
	cursor: default;
}

.lightbox-box img {
	width: auto;
	height: auto;
	max-width: min(1080px, 86vw);
	max-height: calc(84vh - 40px);
	border-radius: 10px;
	filter: drop-shadow(0 30px 80px #000);
	transform-origin: center;
	transition: transform 0.38s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.lightbox-box figcaption,
.lightbox-close {
	opacity: 0;
	transition: opacity 0.25s ease;
}

.lightbox.open figcaption,
.lightbox.open .lightbox-close {
	opacity: 1;
	transition-delay: 0.15s;
}

.lightbox-box figcaption {
	color: var(--text);
	font-size: 18px;
}

.lightbox-close {
	position: absolute;
	top: -16px;
	right: -16px;
	z-index: 1;
	width: 38px;
	height: 38px;
	border: 1px solid var(--edge-strong);
	border-radius: 50%;
	background: var(--card);
	color: var(--gold);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.music {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 38px;
	padding: 0 14px 0 4px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: #0e0e0fcc;
	color: var(--muted);
	transition:
		color 0.2s ease,
		border-color 0.2s ease;
}

.music:hover,
.music.is-on {
	border-color: var(--edge-strong);
	color: var(--gold);
}

.music-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 190px;
	height: 30px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: inherit;
	cursor: pointer;
}

.music-label {
	overflow: hidden;
	font-size: 15px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.music-volume {
	--fill: 35%;
	width: 84px;
	height: 18px;
	margin: 0;
	background: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.music-volume::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		currentColor var(--fill),
		#ffffff26 var(--fill)
	);
}

.music-volume::-moz-range-track {
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		currentColor var(--fill),
		#ffffff26 var(--fill)
	);
}

.music-volume::-webkit-slider-thumb {
	width: 12px;
	height: 12px;
	margin-top: -4px;
	border: 0;
	border-radius: 2px;
	background: var(--gold);
	box-shadow: 0 0 10px #f4c44880;
	appearance: none;
	-webkit-appearance: none;
	transition: transform 0.15s ease;
}

.music-volume::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 0;
	border-radius: 2px;
	background: var(--gold);
	box-shadow: 0 0 10px #f4c44880;
}

.music-volume:hover::-webkit-slider-thumb {
	transform: scale(1.2);
}

.music-bars {
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	height: 14px;
}

.music-bars i {
	width: 3px;
	height: 4px;
	background: currentColor;
	transition: height 0.2s ease;
}

.music.is-on .music-bars i {
	animation: bars 0.9s ease-in-out infinite;
}

.music.is-on .music-bars i:nth-child(2) {
	animation-delay: -0.3s;
}

.music.is-on .music-bars i:nth-child(3) {
	animation-delay: -0.6s;
}

@keyframes bars {
	0%,
	100% {
		height: 4px;
	}
	50% {
		height: 14px;
	}
}
