:root {
	color-scheme: dark;
	--bg: #0b0b0b;
	--bg-alt: #141414;
	--fg: #d8d8d8;
	--fg-dim: #8a8a8a;
	--line: #2a2a2a;
	--accent: #7ac0ff;
}

* {
	box-sizing: border-box;
}

@font-face {
	font-family: "Lexend";
	src: url("/fonts/lexend-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

[hidden] {
	display: none !important;
}

html,
body {
	height: 100%;
}

#root,
astro-island,
.app-root {
	height: 100%;
	min-height: 0;
}

#root,
astro-island {
	display: block;
	flex: 1;
}

.app-root {
	display: flex;
	flex-direction: column;
}

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	padding-left: 68px;
	background: var(--bg);
	color: var(--fg);
	font: 400 13.5px/1.45 "Lexend", ui-sans-serif, system-ui, sans-serif;
}

code,
kbd,
samp,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

a {
	color: var(--accent);
}

button {
	padding: 2px 8px;
	border: 1px solid var(--line);
	background: var(--bg-alt);
	color: var(--fg);
	font: inherit;
	cursor: pointer;
}

button:hover:not(:disabled) {
	border-color: var(--fg-dim);
	color: #fff;
}

button:disabled {
	opacity: 0.35;
	cursor: default;
}

button[aria-pressed="true"] {
	border-color: var(--accent);
	color: var(--accent);
}

.toolbar {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 5px 6px;
	background: color-mix(in srgb, var(--bg-alt) 78%, transparent);
	backdrop-filter: blur(18px) saturate(1.2);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	border-bottom: 1px solid var(--line);
}

.toolbar__left,
.toolbar__right {
	display: flex;
	gap: 4px;
}

.toolbar__left button,
.toolbar__right button {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 50%;
	transition:
		border-color var(--dur) var(--ease),
		color var(--dur) var(--ease),
		background var(--dur) var(--ease),
		transform var(--dur-long) var(--ease);
}

.toolbar__left button:hover:not(:disabled),
.toolbar__right button:hover:not(:disabled) {
	transform: translateY(-1px) scale(1.08);
}

.toolbar__left button:active:not(:disabled),
.toolbar__right button:active:not(:disabled) {
	transform: scale(0.92);
}

.toolbar__left button svg,
.toolbar__right button svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.omnibox {
	flex: 1;
	min-width: 0;
}

.omnibox input {
	width: 100%;
	padding: 3px 6px;
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--fg);
	font: inherit;
}

.omnibox input:focus {
	outline: 0;
	border-color: var(--accent);
}

.menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 5px 6px;
	background: var(--bg-alt);
	border-bottom: 1px solid var(--line);
}

.menu[hidden] {
	display: none;
}

.tabs {
	display: flex;
	overflow-x: auto;
	gap: 1px;
	padding: 4px 6px;
	background: var(--bg-alt);
	border-bottom: 1px solid var(--line);
}

.tab {
	flex: 1 0 9rem;
	min-width: 7rem;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 2px 6px;
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--fg-dim);
	cursor: default;
	user-select: none;
}

.tab--active {
	border-color: var(--accent);
	color: var(--fg);
}

.tab__label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tab__close {
	padding: 0 3px;
	border: 0;
	background: none;
	color: var(--fg-dim);
}

.status {
	margin: 0;
	padding: 3px 8px;
	background: color-mix(in srgb, var(--bg-alt) 78%, transparent);
	backdrop-filter: blur(18px) saturate(1.2);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	border-bottom: 1px solid var(--line);
	color: var(--fg-dim);
}

.status[hidden] {
	display: none;
}

.frames {
	position: relative;
	flex: 1;
	min-height: 0;
}

.frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: none;
	background: var(--bg);
}

.frame--active {
	display: block;
}

.internal {
	max-width: none;
	margin: 0;
	padding: 18px clamp(14px, 3vw, 44px) 56px;
}

.internal--wide {
	max-width: none;
}

.internal h1 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
}

.internal h1 + p {
	margin: 0 0 20px;
	color: var(--fg-dim);
}

.internal h2 {
	margin: 24px 0 8px;
	padding-bottom: 3px;
	border-bottom: 1px solid var(--line);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--fg-dim);
}

.internal ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.internal li {
	padding: 3px 0;
	border-bottom: 1px solid var(--line);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.internal li .dim {
	color: var(--fg-dim);
}

.field {
	display: grid;
	grid-template-columns: 14rem minmax(0, 1fr);
	gap: 4px 12px;
	align-items: start;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
}

.field > label {
	padding-top: 3px;
}

.field__help {
	grid-column: 2;
	margin: 0;
	color: var(--fg-dim);
}

.field input[type="text"],
.field input[type="url"],
.field select {
	width: 100%;
	padding: 3px 6px;
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--fg);
	font: inherit;
}

.field input[type="text"]:focus,
.field input[type="url"]:focus,
.field select:focus {
	outline: 0;
	border-color: var(--accent);
}

.field input[type="checkbox"] {
	justify-self: start;
	margin: 4px 0 0;
	accent-color: var(--accent);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}

@media (max-width: 40rem) {
	button {
		min-height: 30px;
	}

	.toolbar {
		flex-wrap: wrap;
	}

	.omnibox {
		order: 3;
		flex-basis: 100%;
	}

	.toolbar__right {
		margin-left: auto;
	}

	.field {
		grid-template-columns: minmax(0, 1fr);
	}

	.field__help {
		grid-column: 1;
	}

	.internal li {
		white-space: normal;
		overflow-wrap: anywhere;
	}
}

/* ---------------------------------------------------------------- *
 * motion + shared bits
 * ---------------------------------------------------------------- */

:root {
	--dur: calc(160ms * var(--anim-multiplier, 1));
	--dur-long: calc(380ms * var(--anim-multiplier, 1));
	--ease: cubic-bezier(0.33, 1, 0.68, 1);
	--ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
	scroll-behavior: smooth;
}

/* url bar — centered chrome, circular buttons, glass */
.url-bar {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 5px 6px;
	background: color-mix(in srgb, var(--bg-alt) 78%, transparent);
	backdrop-filter: blur(18px) saturate(1.2);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	border-bottom: 1px solid var(--line);
	justify-content: center;
	flex-wrap: wrap;
	max-width: 100%;
	width: 100%;
}

.url-bar > * {
	flex-shrink: 0;
}

.url-bar .omnibox {
	flex: 1;
	min-width: 0;
	margin: 0 12px;
}

.url-bar .omnibox input {
	width: 100%;
	padding: 3px 6px;
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--fg);
	font: inherit;
}

.url-bar .omnibox input:focus {
	outline: 0;
	border-color: var(--accent);
}

.url-bar button {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 50%;
	transition:
		border-color var(--dur) var(--ease),
		color var(--dur) var(--ease),
		background var(--dur) var(--ease),
		transform var(--dur-long) var(--ease);
	background: none;
}

.url-bar button:hover:not(:disabled) {
	transform: translateY(-1px) scale(1.08);
	color: #fff;
	border-color: var(--fg-dim);
}

.url-bar button:active:not(:disabled) {
	transform: scale(0.92);
}

.url-bar button svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

/* looping background — settings → appearance → background */
body::before {
	content: "";
	position: fixed;
	inset: -40px;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(7, 7, 9, 0.55), rgba(7, 7, 9, 0.74)),
		url("/github/bg-loop.gif") center / cover no-repeat;
	filter: blur(16px) saturate(1.15);
	transform: scale(1.05);
	pointer-events: none;
}

html[data-bg="off"] body::before {
	display: none;
}

/* shared entrance keyframes */
@keyframes anaria-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes anaria-rise {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* internal pages glide in on every render */
.internal {
	animation: anaria-rise var(--dur-long) var(--ease) both;
}

/* status lines fade in when they appear */
.status:not([hidden]),
.status-line:not([hidden]) {
	animation: anaria-fade var(--dur) var(--ease) both;
}

:root[data-anim="off"] * {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg-alt);
	color: var(--fg);
	font: inherit;
	cursor: pointer;
	transition:
		border-color var(--dur) var(--ease),
		color var(--dur) var(--ease),
		background var(--dur) var(--ease),
		transform var(--dur-long) var(--ease);
}

.btn:hover:not(:disabled) {
	transform: translateY(-1px);
}

.btn:active:not(:disabled) {
	transform: translateY(0) scale(0.97);
}

.btn--primary {
	border-color: var(--accent);
	color: var(--accent);
}

/* inline svg glyphs inside text/buttons — never letters or emoji */
.glyph {
	width: 1em;
	height: 1em;
	vertical-align: -0.15em;
	fill: currentColor;
	flex: none;
}

.btn--danger {
	border-color: #d45757;
	color: #ff8f8f;
}

.status-line {
	margin: 8px 0;
	color: var(--fg-dim);
}

.status-line.is-error {
	color: #ff8f8f;
}

.empty {
	color: var(--fg-dim);
	padding: 14px 0;
}

.page-head h1 {
	margin: 0 0 4px;
	font-size: 18px;
}

.page-head p {
	margin: 0 0 16px;
	color: var(--fg-dim);
}

.toolbar-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
}

.toolbar-inline input[type="search"],
.toolbar-inline input[type="text"],
.toolbar-inline select {
	flex: 1;
	min-width: 12rem;
	padding: 7px 9px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--bg);
	color: var(--fg);
	font: inherit;
}

.toolbar-inline input:focus,
.toolbar-inline select:focus {
	outline: 0;
	border-color: var(--accent);
}

/* ---------------------------------------------------------------- *
 * left floating dock
 * ---------------------------------------------------------------- */

.dock {
	position: fixed;
	left: 9px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 9px 7px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: color-mix(in srgb, var(--bg-alt) 74%, transparent);
	backdrop-filter: blur(20px) saturate(1.25);
	-webkit-backdrop-filter: blur(20px) saturate(1.25);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dock__group {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.dock__sep {
	height: 1px;
	margin: 4px 6px;
	background: var(--line);
}

.dock__btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: var(--fg-dim);
	transition:
		color var(--dur) var(--ease),
		background var(--dur) var(--ease),
		border-color var(--dur) var(--ease),
		transform var(--dur-long) var(--ease);
}

.dock__btn:hover {
	color: var(--fg);
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	border-color: var(--line);
	transform: translateY(-2px) scale(1.07);
}

.dock__btn:active {
	transform: translateY(0) scale(0.93);
}

.dock__btn--active {
	color: var(--accent);
	border-color: var(--accent);
	background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.dock__btn svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.dock__btn span {
	position: absolute;
	left: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(-6px);
	padding: 3px 7px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: var(--bg-alt);
	color: var(--fg);
	font-size: 12px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity var(--dur) var(--ease),
		transform var(--dur-long) var(--ease);
}

.dock__btn:hover span {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

:root[data-ui="minimal"] .dock__btn span {
	display: none;
}

:root[data-ui="detailed"] .dock {
	width: 132px;
}

:root[data-ui="detailed"] .dock__btn {
	display: flex;
	justify-content: flex-start;
	gap: 9px;
	width: 100%;
	padding: 0 9px;
}

:root[data-ui="detailed"] .dock__btn span {
	position: static;
	transform: none;
	opacity: 1;
	padding: 0;
	border: 0;
	background: none;
	font-size: 12px;
}

/* ---------------------------------------------------------------- *
 * toolbar cog
 * ---------------------------------------------------------------- */

#settings-toggle {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	padding: 0;
}

#settings-toggle svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

#settings-toggle[aria-expanded="true"] {
	border-color: var(--accent);
	color: var(--accent);
}

/* ---------------------------------------------------------------- *
 * settings modal
 * ---------------------------------------------------------------- */

.settings-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
}

.settings-modal[hidden] {
	display: none;
}

.settings-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}

html[data-settings="open"] .settings-modal__backdrop {
	animation: anaria-fade var(--dur-long) var(--ease) both;
}

.settings-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(780px, calc(100vw - 28px));
	height: min(560px, calc(100vh - 48px));
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: color-mix(in srgb, var(--bg-alt) 90%, transparent);
	backdrop-filter: blur(26px) saturate(1.2);
	-webkit-backdrop-filter: blur(26px) saturate(1.2);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

html[data-settings="open"] .settings-modal__panel {
	animation: anaria-rise var(--dur-long) var(--ease) both;
}

.settings-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
}

.settings-modal__close {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 6px;
	background: none;
	color: var(--fg-dim);
}

.settings-modal__close svg {
	width: 15px;
	height: 15px;
	stroke: currentColor;
}

.settings-modal__close:hover {
	color: var(--fg);
	border-color: var(--line);
}

.settings-modal__body {
	display: grid;
	grid-template-columns: 172px minmax(0, 1fr);
	flex: 1;
	min-height: 0;
}

.settings-modal__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px;
	border-right: 1px solid var(--line);
	overflow-y: auto;
}

.settings-modal__nav button {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--fg-dim);
	text-align: left;
	transition:
		color var(--dur) var(--ease),
		background var(--dur) var(--ease);
}

.settings-modal__nav button:hover {
	color: var(--fg);
	background: var(--bg);
}

.settings-modal__nav button.modal__nav-item--active {
	color: var(--accent);
	border-color: var(--line);
	background: var(--bg);
}

.settings-modal__nav svg {
	width: 16px;
	height: 16px;
	flex: none;
	fill: currentColor;
}

.settings-modal__content {
	padding: 14px 16px 26px;
	overflow-y: auto;
}

.settings-modal__content form {
	display: block;
}

.settings-modal .field {
	grid-template-columns: 11rem minmax(0, 1fr);
	gap: 6px 12px;
}

.settings-modal .actions {
	margin-top: 14px;
}

.switch {
	display: inline-flex;
	align-items: center;
	width: 40px;
	height: 21px;
	padding: 2px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
	cursor: pointer;
	transition: border-color var(--dur) var(--ease);
}

.switch__knob {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--fg-dim);
	transition:
		transform var(--dur) var(--ease),
		background var(--dur) var(--ease);
}

.switch--on {
	border-color: var(--accent);
}

.switch--on .switch__knob {
	transform: translateX(18px);
	background: var(--accent);
}

/* ---------------------------------------------------------------- *
 * in-page proxied player (movies → play)
 * ---------------------------------------------------------------- */

.embed {
	position: absolute;
	inset: 0;
	z-index: 40;
	display: flex;
	flex-direction: column;
	background: #000;
	animation: anaria-fade var(--dur-long) var(--ease) both;
}

.embed__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 10px;
	background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid var(--line);
}

.embed__title {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 700;
}

.embed__close {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: none;
	color: var(--fg-dim);
	transition:
		color var(--dur) var(--ease),
		background var(--dur) var(--ease),
		transform var(--dur-long) var(--ease);
}

.embed__close:hover {
	color: var(--fg);
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	transform: scale(1.08);
}

.embed__close:active {
	transform: scale(0.92);
}

.embed__close svg {
	width: 14px;
	height: 14px;
}

.embed__frame {
	flex: 1;
	min-height: 0;
	width: 100%;
	border: 0;
	background: #000;
}

.credits pre {
	margin: 0;
	white-space: pre-wrap;
	font: inherit;
	line-height: 1.7;
	color: var(--fg);
}

.credits__sign {
	margin-top: 18px;
	color: var(--fg-dim);
}

/* ---------------------------------------------------------------- *
 * pages
 * ---------------------------------------------------------------- */

.hero {
	margin-bottom: 20px;
}

.hero h1 {
	margin: 0 0 6px;
	font-size: 22px;
	letter-spacing: 0.02em;
}

.hero p {
	margin: 0;
	color: var(--fg-dim);
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}

.grid--posters {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.grid--destinations {
	grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}

.card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg-alt);
	transition:
		border-color var(--dur) var(--ease),
		transform var(--dur) var(--ease);
}

.card:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
}

.card:active {
	transform: translateY(0) scale(0.99);
}

.card__art {
	display: grid;
	place-items: center;
	height: 74px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--accent) 16%, var(--bg));
	color: var(--accent);
	font-size: 26px;
	font-weight: 700;
	text-transform: uppercase;
}

.card__body h3 {
	margin: 0 0 2px;
	font-size: 13px;
	font-weight: 700;
}

.card__body p {
	margin: 0;
}

.card__play {
	align-self: flex-start;
	padding: 5px 14px;
	border: 1px solid var(--accent);
	border-radius: 999px;
	color: var(--accent);
	text-decoration: none;
	transition: background var(--dur) var(--ease);
}

.card__play:hover {
	background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.card--poster {
	gap: 6px;
	padding: 8px;
	cursor: pointer;
}

.card__img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 6px;
	background: var(--bg);
}

.card--destination {
	padding: 0;
}

.card--destination a {
	display: block;
	padding: 13px 12px;
	border-radius: 10px;
	text-decoration: none;
	color: var(--fg);
}

.card--destination h3 {
	margin: 0 0 3px;
	font-size: 14px;
	color: var(--accent);
}

.card--destination p {
	margin: 0;
	font-size: 12px;
}

.quickrow {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

/* ---------------------------------------------------------------- *
 * home — browser-window hero, rotating quip, quicksites, snow
 * ---------------------------------------------------------------- */

.home-page {
	position: relative;
	min-height: calc(100vh - 44px);
	padding-top: 26px;
	overflow: hidden;
}

.home-snow {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

.home-hero {
	position: relative;
	z-index: 2;
	max-width: 46rem;
	margin: 0 auto;
	padding: 0 4px;
	text-align: center;
}

/* fake browser window chrome above the title */
.home-window {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 26px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 12px 12px 0 0;
	background: var(--bg-alt);
}

.home-window__dots {
	display: inline-flex;
	gap: 6px;
}

.home-window__dots i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--line);
}

.home-window__dots i:nth-child(1) {
	background: #e06c60;
}

.home-window__dots i:nth-child(2) {
	background: #e5c07b;
}

.home-window__dots i:nth-child(3) {
	background: #98c379;
}

.home-window__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	height: 22px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
	color: var(--fg-dim);
}

.home-window__pill svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

.home-page .home-title {
	margin: 0 0 10px;
	font-size: clamp(38px, 7vw, 64px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.home-page .home-quip {
	min-height: 1.5em;
	margin: 0 0 22px;
	font-size: 13.5px;
	color: var(--fg-dim);
	transition: opacity var(--dur) var(--ease);
}

.home-search {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 34rem;
	margin: 0 auto 20px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg-alt);
	transition: border-color var(--dur) var(--ease);
}

.home-search:focus-within {
	border-color: var(--accent);
}

.home-search__icon {
	flex: none;
	width: 16px;
	height: 16px;
	fill: var(--fg-dim);
}

.home-search input {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--fg);
	font: inherit;
	outline: 0;
}

.home-search input::placeholder {
	color: var(--fg-dim);
}

.home-search__go {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--accent);
	color: var(--bg);
}

.home-search__go:hover {
	color: var(--bg);
	border: 0;
	filter: brightness(1.1);
}

.home-search__go svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.quicksites {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.quicksite {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--bg-alt);
	color: var(--fg-dim);
	transition:
		color var(--dur) var(--ease),
		border-color var(--dur) var(--ease),
		transform var(--dur) var(--ease);
}

.quicksite:hover {
	color: var(--fg);
	border-color: var(--accent);
	transform: translateY(-2px);
}

.quicksite svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.grid--destinations {
	margin-top: 34px;
}

.home-page .quickrow {
	justify-content: center;
	margin-top: 14px;
}

.recent {
	margin-bottom: 18px;
}

.recent ul,
.recent__list {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}

.recent li {
	padding: 3px 0;
	border-bottom: 1px solid var(--line);
}

.dim {
	color: var(--fg-dim);
}

.tabs-row {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
}

.tab-btn {
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--fg-dim);
	cursor: pointer;
}

.tab-btn.is-active {
	border-color: var(--accent);
	color: var(--accent);
}

/* movies */

.detail {
	display: flex;
	gap: 14px;
	margin: 12px 0 16px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg-alt);
	background-size: cover;
	background-position: center;
}

.detail__poster {
	width: 130px;
	flex: none;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 8px;
	background: var(--bg);
}

.detail__meta h2 {
	margin: 0 0 4px;
	font-size: 17px;
}

.detail__meta p {
	margin: 0 0 8px;
}

.overview {
	max-width: 46rem;
	line-height: 1.6;
}

.episode-picker {
	display: flex;
	gap: 12px;
	margin-bottom: 10px;
}

.episode-picker label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--fg-dim);
}

.episode-picker input {
	width: 5rem;
	padding: 5px 7px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--bg);
	color: var(--fg);
	font: inherit;
}

.player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	background: #000;
}

.player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* music */

.tracks {
	list-style: none;
	margin: 0 0 90px;
	padding: 0;
}

.track {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-bottom: 1px solid var(--line);
}

.track__art {
	width: 42px;
	height: 42px;
	flex: none;
	object-fit: cover;
	border-radius: 6px;
	background: var(--bg-alt);
}

.track__meta {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.track__meta strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.track__meta span {
	font-size: 12px;
}

.track .btn.is-saved {
	border-color: var(--accent);
	color: var(--accent);
}

.player-bar {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px;
	margin-top: -80px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg-alt);
}

.player-bar__meta {
	font-size: 12px;
	color: var(--fg-dim);
	min-height: 1em;
}

.player-bar__progress {
	height: 3px;
	border-radius: 2px;
	background: var(--line);
	overflow: hidden;
}

.player-bar__progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--accent);
}

.player-bar audio {
	width: 100%;
}

/* ai + chat */

.chatlog {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 200px;
	max-height: 55vh;
	padding: 10px;
	margin-bottom: 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg-alt);
	overflow-y: auto;
}

.bubble {
	max-width: min(80%, 44rem);
	padding: 8px 11px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--bg);
}

.bubble--user {
	align-self: flex-end;
	border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
	background: color-mix(in srgb, var(--accent) 12%, var(--bg));
}

.bubble__who {
	display: block;
	margin-bottom: 3px;
	font-size: 11px;
	color: var(--fg-dim);
	text-transform: lowercase;
}

.bubble p {
	margin: 0;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.split {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 12px;
	min-height: 60vh;
}

.split__side {
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-right: 1px solid var(--line);
	padding-right: 10px;
}

.chat-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	overflow-y: auto;
}

.chat-item {
	padding: 7px 9px;
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	color: var(--fg-dim);
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
}

.chat-item:hover {
	color: var(--fg);
	background: var(--bg-alt);
}

.chat-item.is-active {
	color: var(--accent);
	border-color: var(--line);
	background: var(--bg-alt);
}

.split__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.split__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.split__main .chatlog {
	flex: 1;
	margin-bottom: 8px;
}

.chat-side__label {
	margin: 8px 0 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--fg-dim);
}

.chat-side__label:first-child {
	margin-top: 0;
}

.chat-dm {
	display: flex;
	gap: 6px;
	margin-top: 6px;
}

.chat-dm input {
	flex: 1;
	min-width: 0;
	padding: 6px 8px;
	border: 1px solid var(--line);
	border-radius: 7px;
	background: var(--bg);
	color: var(--fg);
	font: inherit;
}

.chat-dm input:focus {
	outline: 0;
	border-color: var(--accent);
}

/* cloudsync + panels */

.panel {
	margin-bottom: 14px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg-alt);
}

.panel h2 {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	font-size: 13px;
	color: var(--fg);
	text-transform: none;
	letter-spacing: 0;
}

.panel .field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 10px;
	padding: 0;
	border: 0;
	color: var(--fg-dim);
}

.panel .field input {
	width: 100%;
	max-width: 22rem;
	padding: 7px 9px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--bg);
	color: var(--fg);
	font: inherit;
}

.panel .field input:focus {
	outline: 0;
	border-color: var(--accent);
}

/* ---------------------------------------------------------------- *
 * responsive
 * ---------------------------------------------------------------- */

@media (max-width: 46rem) {
	body {
		padding-left: 0;
		padding-bottom: 62px;
	}

	.dock {
		left: 0;
		right: 0;
		top: auto;
		bottom: 0;
		transform: none;
		flex-direction: row;
		justify-content: center;
		gap: 6px;
		padding: 6px 8px;
		border-radius: 14px 14px 0 0;
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
		overflow-x: auto;
	}

	.dock__group {
		flex-direction: row;
		gap: 4px;
	}

	.dock__sep {
		width: 1px;
		height: auto;
		margin: 6px 2px;
	}

	.dock__btn span,
	:root[data-ui="detailed"] .dock__btn span {
		position: absolute;
		left: 50%;
		bottom: calc(100% + 10px);
		top: auto;
		transform: translateX(-50%);
		opacity: 0;
		padding: 3px 7px;
		border: 1px solid var(--line);
		background: var(--bg-alt);
		font-size: 11px;
	}

	.dock__btn:hover span,
	:root[data-ui="detailed"] .dock__btn:hover span {
		opacity: 1;
	}

	:root[data-ui="detailed"] .dock {
		width: auto;
	}

	:root[data-ui="detailed"] .dock__btn {
		width: 38px;
		justify-content: center;
		padding: 0;
	}

	.split {
		grid-template-columns: minmax(0, 1fr);
	}

	.split__side {
		border-right: 0;
		border-bottom: 1px solid var(--line);
		padding-right: 0;
		padding-bottom: 8px;
	}

	.detail {
		flex-direction: column;
	}

	.detail__poster {
		width: 110px;
	}

	.settings-modal__body {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
	}

	.settings-modal__nav {
		flex-direction: row;
		border-right: 0;
		border-bottom: 1px solid var(--line);
		overflow-x: auto;
	}

	.settings-modal__nav span {
		display: none;
	}

	.settings-modal .field {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ *
 * round controls, game sources, music player, discord-style chat
 * ------------------------------------------------------------------ */

.toolbar-inline input[type="search"],
.toolbar-inline input[type="text"] {
	border-radius: 999px;
}

.icon-btn {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: transparent;
	color: var(--fg);
	cursor: pointer;
	transition:
		border-color var(--dur) var(--ease),
		color var(--dur) var(--ease),
		background var(--dur) var(--ease);
}

.icon-btn svg {
	width: 16px;
	height: 16px;
}

.icon-btn--accent {
	background: var(--accent);
	border-color: transparent;
	color: var(--bg);
}

.icon-btn--accent:hover:not(:disabled) {
	color: var(--bg);
	filter: brightness(1.1);
	border-color: transparent;
}

.icon-btn--danger {
	color: #ff8585;
}

.icon-btn--danger:hover:not(:disabled) {
	border-color: #ff8585;
	color: #ff8585;
}

/* cards with cover art — the letter shows through when there is no image */
.card__art {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
}

.card__art::after {
	content: attr(data-letter);
}

.card__art img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

/* game source chips */
.src-bar {
	margin: 2px 0 16px;
}

.src-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 9px;
}

.src-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px 6px 15px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg-alt);
	color: var(--fg-dim);
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
	transition:
		border-color var(--dur) var(--ease),
		color var(--dur) var(--ease);
}

.src-chip:hover {
	border-color: var(--fg-dim);
	color: var(--fg);
}

.src-chip b {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--line);
	color: var(--fg);
	font-size: 11px;
	font-weight: 500;
}

.src-chip--on {
	border-color: var(--accent);
	color: var(--accent);
}

.src-chip--on b {
	background: var(--accent);
	color: var(--bg);
}

.src-count {
	margin: 0;
	font-size: 12.5px;
}

/* ------------------------------- music ------------------------------- */
.mp svg {
	fill: currentColor;
}

.mp-list {
	margin: 0 0 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mp-row {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 8px 10px;
	border-radius: 14px;
	cursor: pointer;
	transition: background var(--dur) var(--ease);
}

.mp-row:hover {
	background: var(--bg-alt);
}

.mp-row.is-current .mp-row__meta strong {
	color: var(--accent);
}

.mp-row__art {
	position: relative;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent) 14%, var(--bg));
	color: var(--accent);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	overflow: hidden;
	flex: none;
}

.mp-row__art::after {
	content: attr(data-letter);
}

.mp-row__art img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.mp-row__meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.mp-row__meta strong {
	font-size: 13.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mp-row__meta span {
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mp-like {
	flex: none;
}

.mp-like svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.mp-like.is-liked {
	color: #1db954;
	border-color: #1db954;
}

.mp-like.is-liked svg {
	fill: currentColor;
	stroke: currentColor;
}

.mp-row__play {
	flex: none;
}

.mp-player {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 18px;
	padding: 10px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg-alt);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.mp-player__art {
	position: relative;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent) 14%, var(--bg));
	color: var(--accent);
	font-weight: 700;
	overflow: hidden;
	flex: none;
}

.mp-player__art::after {
	content: attr(data-letter);
}

.mp-player__art img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.mp-player__meta {
	min-width: 0;
	max-width: 230px;
	display: flex;
	flex-direction: column;
}

.mp-player__meta strong {
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mp-player__meta span {
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mp-player__transport {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mp-player__play {
	width: 44px;
	height: 44px;
}

.mp-player__timeline {
	flex: 1;
	min-width: 170px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mp-seek {
	flex: 1;
	height: 6px;
	border-radius: 999px;
	background: var(--line);
	overflow: hidden;
	cursor: pointer;
}

.mp-seek span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--accent);
	border-radius: 999px;
}

.mp-player__time {
	font-size: 11px;
	white-space: nowrap;
}

.mp-player__vol {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
}

.mp-player__vol input[type="range"] {
	width: 92px;
	accent-color: var(--accent);
}

.mp-player__transport .icon-btn[data-mode="youtube"] {
	color: #ff0000;
	border-color: #ff0000;
}

.mp-player__transport .icon-btn[data-mode="soundcloud"] {
	color: #ff5500;
	border-color: #ff5500;
}

.mp-player__transport .icon-btn[data-mode="loop-on"] {
	color: #0f0;
}

.mp-player__transport .icon-btn[data-mode="loop-off"] {
	color: #666;
}

.mp-player__transport select {
	padding: 4px 8px;
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--fg);
	font: inherit;
	border-radius: 4px;
	min-width: 48px;
}

/* liked count */
.page-head p {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--fg-dim);
}

/* album rows in search results */
.al-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: background var(--dur) var(--ease);
	font-size: 12px;
}

.al-row:hover {
	background: var(--bg-alt);
}

.al-art {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: 6px;
	overflow: hidden;
	background: var(--bg-alt);
	color: var(--fg-dim);
	font-size: 11px;
	font-weight: 700;
	display: grid;
	place-items: center;
}

.al-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.al-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.al-meta strong {
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.al-meta span {
	font-size: 10px;
}

/* artist rows in search results */
.art-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	border-radius: 50%;
	cursor: pointer;
	transition: background var(--dur) var(--ease);
	font-size: 12px;
}

.art-row:hover {
	background: var(--bg-alt);
}

.art-pic {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--bg-alt);
	color: var(--fg-dim);
	font-size: 11px;
	font-weight: 700;
	display: grid;
	place-items: center;
}

.art-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.art-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.art-meta strong {
	font-size: 12px;
}
/* ------------------------------- chat -------------------------------- */
.dc {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	height: clamp(420px, 70vh, 780px);
	margin-top: 6px;
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	background: var(--bg);
}

.dc-side {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--bg-alt);
	border-right: 1px solid var(--line);
}

.dc-switch {
	padding: 10px;
	border-bottom: 1px solid var(--line);
}

.dc-switch select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg);
	color: var(--fg);
	font: inherit;
	cursor: pointer;
}

.dc-switch select:focus {
	outline: none;
	border-color: var(--accent);
}

.dc-side__body {
	flex: 1;
	overflow-y: auto;
	padding: 10px 8px;
}

.dc-side__label {
	margin: 8px 8px 6px;
	font-size: 11px;
	letter-spacing: 0.05em;
	color: var(--fg-dim);
}

.dc-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 7px 10px;
	margin-bottom: 2px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--fg-dim);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.dc-row:hover {
	background: color-mix(in srgb, #fff 6%, transparent);
	color: var(--fg);
}

.dc-row.is-active {
	background: color-mix(in srgb, #fff 10%, transparent);
	color: #fff;
}

.dc-row svg {
	width: 16px;
	height: 16px;
	flex: none;
	fill: currentColor;
}

.dc-row span:not(.dc-avatar) {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dc-avatar {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: hsl(var(--av, 220) 42% 40%);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	flex: none;
}

.dc-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.dc-head {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 11px 16px;
	border-bottom: 1px solid var(--line);
	flex: none;
}

.dc-head svg {
	width: 18px;
	height: 18px;
	flex: none;
	fill: var(--fg-dim);
}

.dc-head .dc-avatar {
	width: 26px;
	height: 26px;
	font-size: 12px;
}

.dc-head strong {
	font-size: 14px;
}

.dc-log {
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px 8px;
	display: flex;
	flex-direction: column;
}

.dc-msg {
	display: flex;
	gap: 12px;
	padding: 4px 8px;
	margin-top: 12px;
	border-radius: 8px;
}

.dc-msg:first-child {
	margin-top: 0;
}

.dc-msg--grouped {
	margin-top: 1px;
	padding-top: 1px;
	padding-bottom: 1px;
}

.dc-msg:hover {
	background: color-mix(in srgb, #fff 3%, transparent);
}

.dc-msg__spacer {
	width: 32px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.dc-msg__spacer time {
	display: none;
	font-size: 9.5px;
	color: var(--fg-dim);
	text-align: right;
	line-height: 1.2;
}

.dc-msg:hover .dc-msg__spacer time {
	display: block;
}

.dc-msg__body {
	min-width: 0;
}

.dc-msg__meta {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 2px;
}

.dc-msg__meta strong {
	font-size: 13.5px;
	font-weight: 600;
}

.dc-msg__meta time {
	font-size: 10.5px;
	color: var(--fg-dim);
}

.dc-msg__body p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.dc-msg--me .dc-msg__meta strong {
	color: var(--accent);
}

.dc-composer {
	display: flex;
	gap: 10px;
	padding: 6px 16px 16px;
	flex: none;
}

.dc-composer input {
	flex: 1;
	min-width: 0;
	padding: 11px 16px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: color-mix(in srgb, #fff 7%, var(--bg));
	color: var(--fg);
	font: inherit;
}

.dc-composer input:focus {
	outline: none;
	border-color: var(--accent);
}

.dc-composer__send {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--accent);
	color: var(--bg);
	cursor: pointer;
}

.dc-composer__send:hover {
	filter: brightness(1.1);
}

.dc-composer__send svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.dc-friends {
	flex: 1;
	overflow-y: auto;
	padding: 18px;
}

.dc-addfriend {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.dc-addfriend input {
	flex: 1;
	min-width: 0;
	padding: 9px 15px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
	color: var(--fg);
	font: inherit;
}

.dc-addfriend input:focus {
	outline: none;
	border-color: var(--accent);
}

.dc-friendlist {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dc-friend {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 8px 10px;
	border-radius: 14px;
}

.dc-friend:hover {
	background: color-mix(in srgb, #fff 5%, transparent);
}

.dc-friend strong {
	flex: 1;
	min-width: 0;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dc-friend .icon-btn {
	width: 30px;
	height: 30px;
}

.dc svg {
	fill: currentColor;
}

.dc-friendlist .empty,
.dc .empty {
	margin: 0;
	padding: 8px 10px;
}

@media (max-width: 46rem) {
	.dc {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
	}

	.dc-side {
		border-right: 0;
		border-bottom: 1px solid var(--line);
		max-height: 180px;
	}

	.dc-log {
		max-height: 50vh;
	}

	.mp-player {
		border-radius: 22px;
	}

	.mp-player__vol {
		display: none;
	}
}
