#toasts {
	position: fixed;
	right: 10px;
	top: 5px;
	z-index: 1001;
}
#toasts > * {
	background-color: #000A;
	border-radius: 10px;
	clear: both;
	color: white;
	cursor: zoom-out;
	float: right;
	margin-top: 5px;
	padding: 3px 6px;
}
:root {
	--bg: #0b0d12;
	--panel: #141924;
	--line: #232a38;
	--text: #e8ecf2;
	--muted: #8a94a6;
	--accent: #ff3b30;
	--ok: #30d158;
}
* {
	box-sizing: border-box;
}
html {
	height: 100%;
}
body {
	margin: 0;
	min-height: 100dvh;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.5;
}
a {
	color: var(--text);
	text-decoration: none;
}
.shell {
	max-width: 680px;
	margin: 0 auto;
	padding: 0 16px calc(24px + env(safe-area-inset-bottom));
}
.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	margin-bottom: 20px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	letter-spacing: .02em;
}
.brand-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 10px rgba(255,59,48,.8);
}
.nav {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: .95rem;
}
.nav a {
	color: var(--muted);
}
.nav a.active {
	color: var(--text);
}
.nav a:hover {
	color: var(--text);
}
.nav .rec-link {
	color: var(--accent);
	font-weight: 600;
}
.nav-form {
	display: inline;
}
.linkish {
	background: none;
	border: none;
	color: var(--muted);
	font: inherit;
	font-size: .95rem;
	cursor: pointer;
	padding: 0;
}
.linkish:hover {
	color: var(--text);
}
h1 {
	font-size: 1.5rem;
	margin: 0 0 6px;
}
.list-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.geo-note {
	color: var(--muted);
	font-size: .9rem;
	margin: 0;
}
.cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px;
	transition: border-color .15s;
}
.card:hover {
	border-color: #3a465c;
}
.card-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.card-body strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.card-meta {
	color: var(--muted);
	font-size: .85rem;
	margin: 0;
}
.badge {
	flex-shrink: 0;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .08em;
	padding: 4px 8px;
	border-radius: 6px;
	background: #202737;
	color: var(--muted);
}
.badge.live {
	background: var(--accent);
	color: #fff;
	animation: pulse 1.6s infinite;
}
.empty {
	color: var(--muted);
	text-align: center;
	padding: 40px 0;
}
.rec {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.rec-stage {
	position: relative;
	background: #000;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	max-height: 55dvh;
}
.rec-stage video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rec-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .1em;
	padding: 4px 8px;
	border-radius: 6px;
	background: rgba(0,0,0,.55);
	color: var(--muted);
}
.rec-badge.on {
	background: var(--accent);
	color: #fff;
	animation: pulse 1.6s infinite;
}
.rec-status {
	text-align: center;
	min-height: 1.4em;
}
.rec-status a {
	color: var(--accent);
	text-decoration: underline;
}
.rec-meta {
	text-align: center;
	color: var(--muted);
	font-size: .9rem;
	min-height: 1.3em;
	font-variant-numeric: tabular-nums;
}
.rec-controls {
	display: flex;
	justify-content: center;
	padding: 6px 0;
}
.rec-btn {
	width: 78px;
	height: 78px;
	border-radius: 50%;
	border: 4px solid #fff;
	background: var(--accent);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .1s;
}
.rec-btn:active {
	transform: scale(.93);
}
.rec-btn-dot {
	width: 26px;
	height: 26px;
	border-radius: 6px;
	background: #fff;
	opacity: .9;
}
.rec-hint {
	color: var(--muted);
	font-size: .85rem;
	text-align: center;
	margin: 0;
}
.melding-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin-bottom: 14px;
}
.player {
	width: 100%;
	background: #000;
	border-radius: 14px;
	max-height: 70dvh;
}
.melding-pos {
	color: var(--muted);
	font-size: .9rem;
}
.melding-summary {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	margin: 14px 0 0;
}
.melding-transcript {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: .9rem;
}
.melding-transcript summary {
	cursor: pointer;
	color: var(--text);
}
.melding-transcript p {
	margin: 8px 0 0;
	line-height: 1.6;
}
.melding-edit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}
.title-form {
	display: flex;
	flex: 1;
	min-width: 240px;
	gap: 8px;
}
.title-form input {
	flex: 1;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--text);
	padding: 8px 10px;
	font: inherit;
}
.title-form input:focus border-color {
	--accent; outline: none;
}
.btn-ghost {
	background: transparent;
	border: 1px solid var(--line);
	color: var(--muted);
}
.btn-ghost:hover color {
	--text; border-color: #3a465c;
}
.rec-recover {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.rec-recover p {
	margin: 0;
	color: var(--muted);
	font-size: .9rem;
}
.rec-saved {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}
.rec-saved p {
	margin: 0;
}
.rec-saved .title-form {
	width: 100%;
	max-width: 420px;
}
.melding-pos a {
	color: var(--text);
	text-decoration: underline;
}
.auth {
	max-width: 420px;
	margin: 24px auto 0;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 24px;
}
.auth-sub {
	color: var(--muted);
	font-size: .9rem;
	margin: 0 0 16px;
}
.field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 14px;
	font-size: .9rem;
}
.field span {
	color: var(--muted);
}
.field input {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--text);
	padding: 10px 12px;
	font: inherit;
}
.field input:focus border-color {
	--accent; outline: none;
}
.btn {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}
.btn:hover {
	filter: brightness(1.1);
}
.auth .btn {
	width: 100%;
}
.btn-small {
	padding: 6px 12px;
	font-size: .85rem;
	font-weight: 500;
	background: #202737;
	color: var(--text);
}
.auth-alt {
	text-align: center;
	color: var(--muted);
	font-size: .9rem;
	margin: 14px 0 0;
}
.auth-alt a {
	color: var(--text);
	text-decoration: underline;
}
.app-error {
	background: rgba(255,59,48,.12);
	border: 1px solid rgba(255,59,48,.4);
	color: #ff8a84;
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 14px;
	font-size: .9rem;
}
.center-note {
	text-align: center;
	padding: 60px 0;
}
@keyframes pulse{
	0% {
		opacity: 1;
	}
	50% {
		opacity: .55;
	}
	100% {
		opacity: 1;
	}
}
