/* PartyFlow: ein Stylesheet für alle Seiten. Hell und Dunkel sind getrennt gestaltet
   (Coding-Baselines: Buttons rechteckig mit kleinem Radius, Umschalter auf jeder Seite). */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 16px;
	--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--ok: #2f9e6e;
	--warn: #b7861b;
	--danger: #c0283c;
}

:root[data-theme='dark'] {
	color-scheme: dark;
	--page-bg: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg3) 100%);
	--bar: var(--bg1);
	--text: #f5efe1;
	--muted: rgba(245, 239, 225, 0.66);
	--card: rgba(255, 255, 255, 0.06);
	--card-strong: rgba(255, 255, 255, 0.1);
	--border: rgba(255, 255, 255, 0.13);
	--input: rgba(0, 0, 0, 0.28);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
	--btn-text: #1b1405;
	--glow-a: color-mix(in srgb, var(--accent2) 22%, transparent);
	--glow-b: color-mix(in srgb, var(--accent) 16%, transparent);
	--glow-c: rgba(90, 60, 160, 0.14);
	--word-a: #fff6df;
	--word-b: var(--accent);
	--word-c: #ff5a6e;
	--link: var(--accent);
	--ok-text: #5fd29c;
	--danger-text: #ff8595;
	--warn-text: #e6b94c;
	--modal-bg: #141d3a;
	--select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9d2c0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

:root[data-theme='light'] {
	color-scheme: light;
	--page-bg: linear-gradient(135deg, var(--lbg1) 0%, var(--lbg2) 55%, var(--lbg3) 100%);
	--bar: var(--lbg1);
	--text: #1c2340;
	--muted: rgba(28, 35, 64, 0.66);
	--card: rgba(255, 255, 255, 0.72);
	--card-strong: #ffffff;
	--border: rgba(28, 35, 64, 0.14);
	--input: #ffffff;
	--shadow: 0 10px 28px rgba(28, 35, 64, 0.12);
	--shadow-sm: 0 1px 4px rgba(28, 35, 64, 0.12);
	--btn-text: #1b1405;
	--glow-a: color-mix(in srgb, var(--accent2) 10%, transparent);
	--glow-b: color-mix(in srgb, var(--accent) 14%, transparent);
	--glow-c: rgba(13, 27, 62, 0.06);
	--word-a: #0d1b3e;
	--word-b: #22356e;
	--word-c: var(--accent2);
	--link: #8a6a12;
	--ok-text: #1f7a52;
	--danger-text: #a51d30;
	--warn-text: #8a6410;
	--modal-bg: #ffffff;
	--select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a4160' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

html, body { min-height: 100%; }

body {
	font-family: var(--font);
	color: var(--text);
	background: var(--page-bg);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	line-height: 1.45;
	transition: background 0.3s ease, color 0.3s ease;
}

a { color: var(--link); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; }

/* ---------- Bausteine ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 18px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer;
	font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
	background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff));
	color: var(--btn-text); box-shadow: var(--shadow-sm);
	transition: transform 0.1s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-secondary { background: var(--card-strong); color: var(--text); border-color: var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { padding: 7px 12px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

.theme-toggle {
	position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 40;
	width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center;
	border-radius: var(--r-sm); border: 0; background: none; color: var(--muted); cursor: pointer;
}
.theme-toggle:hover, .theme-toggle:focus-visible { color: var(--text); background: color-mix(in srgb, var(--card-strong) 70%, transparent); }
.theme-toggle .ic { width: 18px; height: 18px; }
/* Hell/Dunkel in der Verwaltung: nur Symbol, ohne Rahmen */
.tb-btn.theme-icon { border-color: transparent; background: none; color: var(--muted); box-shadow: none; }
.tb-btn.theme-icon:hover, .tb-btn.theme-icon:focus-visible { color: var(--text); border-color: var(--border); }

.help-btn {
	position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 48px; z-index: 40;
	width: 32px; height: 32px; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--border);
	background: var(--card-strong); color: var(--text); font-weight: 700; font-size: 0.95rem; cursor: pointer;
	box-shadow: var(--shadow-sm);
}
.modal {
	position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.6);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-card {
	background: var(--modal-bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg);
	width: 100%; max-width: 720px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.modal-head { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.modal-body { overflow: auto; padding: 16px 18px; line-height: 1.55; font-size: 0.95rem; }
/* Formatierter Text: im Modal, im Editor und auf der Einladung gleich */
.modal-body h2, .rich h2 { font-size: 1.05rem; margin: 14px 0 6px; }
.modal-body h3, .rich h3 { font-size: 0.95rem; margin: 12px 0 4px; }
.modal-body h2:first-child, .rich h2:first-child, .modal-body h3:first-child, .rich h3:first-child { margin-top: 0; }
.modal-body p, .rich p { margin-bottom: 10px; }
.modal-body ul, .modal-body ol, .rich ul, .rich ol { margin: 0 0 10px 20px; }
.rich a { color: var(--link); }

/* Einfacher Editor (contenteditable) über einer versteckten Textarea */
.field-block { display: flex; flex-direction: column; gap: 4px; }
.field-block .caption { font-size: 0.85rem; color: var(--muted); }
.editor { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--input); overflow: hidden; }
.editor-bar { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px; border-bottom: 1px solid var(--border); background: var(--card-strong); }
.editor-bar button {
	display: inline-flex; align-items: center; gap: 4px; min-width: 32px; height: 30px; padding: 0 8px; border-radius: 6px; border: 1px solid transparent;
	background: none; color: var(--text); cursor: pointer; font-size: 0.82rem; font-weight: 700;
}
.editor-bar button:hover { background: var(--card); border-color: var(--border); }
.editor-bar button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.editor-bar button .ic { width: 15px; height: 15px; }
.editor-bar .sep { width: 1px; margin: 4px 3px; background: var(--border); }
.editor-bar .grow { flex: 1; }
.editor-body { min-height: 240px; max-height: 60vh; overflow: auto; padding: 12px 14px; outline: none; line-height: 1.55; font-size: 0.95rem; color: var(--text); overflow-wrap: anywhere; }
.editor-body:empty::before { content: attr(data-placeholder); color: var(--muted); }
.editor.compact .editor-body { min-height: 120px; }
.editor .editor-src { display: none !important; }
.editor.show-src .editor-src { display: block !important; border: 0; border-radius: 0; min-height: 240px; max-height: 60vh; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; line-height: 1.5; }
.editor.show-src .editor-body { display: none; }

.card {
	background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
	padding: 18px; box-shadow: var(--shadow-sm);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.badge {
	display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 0.76rem; font-weight: 600;
	border: 1px solid var(--border); background: var(--card-strong); white-space: nowrap;
}
.badge.ok { border-color: var(--ok); color: var(--ok-text); }
.badge.warn { border-color: var(--warn); color: var(--warn-text); }
.badge.off { border-color: var(--danger); color: var(--danger-text); }

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }

input.input, select.input, textarea.input,
label.field input, label.field textarea, label.field select {
	padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--border);
	background: var(--input); color: var(--text); font-size: 1rem; width: 100%; min-height: 44px; line-height: 1.3;
}
/* Dropdowns: gleiche Höhe wie Eingabefelder, eigener Pfeil (Safari gibt nativen Selects weniger Höhe) */
select.input, label.field select {
	-webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
	background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px 14px;
}
select.input:focus, label.field select:focus, input.input:focus, label.field input:focus, label.field textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); }
label.field input[type=color] { padding: 3px; height: 44px; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 0.92rem; }

.notice { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--card-strong); }
.notice.ok { border-color: var(--ok); }
.notice.warn { border-color: var(--warn); }
.notice.error { border-color: var(--danger); }

.toast {
	position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
	z-index: 60; padding: 12px 16px; border-radius: var(--r-md); background: var(--card-strong);
	border: 1px solid var(--border); box-shadow: var(--shadow); max-width: calc(100% - 32px); font-size: 0.95rem;
}

/* ---------- Startseite und Einladung ---------- */

.landing { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.landing::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(ellipse at 20% 50%, var(--glow-a) 0%, transparent 55%),
		radial-gradient(ellipse at 80% 20%, var(--glow-b) 0%, transparent 50%),
		radial-gradient(ellipse at 50% 85%, var(--glow-c) 0%, transparent 50%);
}
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.landing-inner {
	position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 26px; padding: 56px 16px calc(32px + env(safe-area-inset-bottom));
}
.logo-wrap { position: relative; width: clamp(220px, 58vw, 420px); text-align: center; animation: fadeInUp 1.1s ease-out both; }
.logo-wrap img { width: 78%; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.3)); }
.wordmark {
	margin-top: 10px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05;
	font-size: clamp(2.5rem, 10vw, 5rem); white-space: nowrap;
	background: linear-gradient(135deg, var(--word-a), var(--word-b));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wordmark span {
	background: linear-gradient(135deg, var(--word-c), var(--accent2) 75%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.flash {
	display: inline-flex; align-items: flex-end; gap: 0.11em; margin-left: 0.14em; vertical-align: baseline;
	height: 0.24em; position: relative; top: -0.02em;
}
.flash .dot {
	position: relative; width: 0.2em; height: 0.2em; border-radius: 50%; background: #fff;
	box-shadow: 0 0 0.08em 0.01em rgba(255, 255, 255, 0.55); opacity: 0; transform: scale(0.3);
	transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.flash .dot.show { opacity: 1; transform: scale(1); }
[data-theme='light'] .flash .dot { box-shadow: 0 0 0 1px rgba(13, 27, 62, 0.35), 0 1px 4px rgba(13, 27, 62, 0.35); }
.flash .d3 .core { position: absolute; inset: 0; border-radius: 50%; background: #fff; }
.flash .d3 .glow {
	position: absolute; inset: -170%; border-radius: 50%; opacity: 0; transform: scale(0.2);
	background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.5) 22%, rgba(255, 250, 235, 0.15) 45%, rgba(255, 255, 255, 0) 65%);
}
.flash .d3 .ray {
	position: absolute; left: 50%; top: 50%; width: 1200%; height: 5%; border-radius: 1em; opacity: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 25%, #fff 75%, rgba(255, 255, 255, 0));
	transform: translate(-50%, -50%) rotate(var(--a)) scaleX(0.1);
}
[data-theme='light'] .flash .d3 .ray { background: linear-gradient(90deg, rgba(13, 27, 62, 0), rgba(255, 255, 255, 0.95) 25%, rgba(255, 255, 255, 0.95) 75%, rgba(13, 27, 62, 0)); filter: drop-shadow(0 0 2px rgba(13, 27, 62, 0.45)); }
.flash.charging .d3 .core { animation: flashCharge 1.1s ease-in forwards; }
.flash.firing .d3 .core { animation: flashCore 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.flash.firing .d3 .glow { animation: flashGlow 1s cubic-bezier(0.1, 0.9, 0.2, 1) forwards; }
.flash.firing .d3 .ray { animation: flashRay 0.75s cubic-bezier(0.1, 0.9, 0.2, 1) forwards; }
#flashVeil { position: fixed; inset: 0; z-index: 3; pointer-events: none; background: #fff; opacity: 0; }
#flashVeil.firing { animation: flashVeil 0.6s ease-out forwards; }
.logo-wrap.firing img { animation: logoFlash 0.8s ease-out; }
@keyframes flashCharge {
	from { box-shadow: 0 0 0.08em 0.01em rgba(255, 255, 255, 0.55); transform: scale(1); }
	to { box-shadow: 0 0 0.5em 0.14em rgba(255, 255, 255, 0.95), 0 0 1.3em 0.4em rgba(255, 250, 230, 0.55); transform: scale(1.15); }
}
@keyframes flashCore {
	0% { transform: scale(1.15); box-shadow: 0 0 0.6em 0.2em #fff, 0 0 2em 0.8em rgba(255, 255, 255, 0.8); }
	12% { transform: scale(1.6); box-shadow: 0 0 1.3em 0.6em #fff, 0 0 4.5em 1.8em rgba(255, 255, 255, 0.6); }
	45% { transform: scale(1.05); box-shadow: 0 0 0.5em 0.1em rgba(255, 255, 255, 0.5); }
	100% { transform: scale(1); box-shadow: 0 0 0.08em 0.01em rgba(255, 255, 255, 0.55); }
}
@keyframes flashGlow {
	0% { opacity: 1; transform: scale(0.3); }
	10% { opacity: 1; transform: scale(1.6); }
	100% { opacity: 0; transform: scale(2.4); }
}
@keyframes flashRay {
	0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) scaleX(0.1); }
	10% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) scaleX(1); }
	100% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--a) + 18deg)) scaleX(1.25); }
}
@keyframes flashVeil {
	0% { opacity: 0; }
	5% { opacity: 0.5; }
	100% { opacity: 0; }
}
[data-theme='light'] #flashVeil.firing { animation-name: flashVeilLight; }
@keyframes flashVeilLight {
	0% { opacity: 0; }
	6% { opacity: 0.85; }
	100% { opacity: 0; }
}
@keyframes logoFlash {
	0% { filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.3)) brightness(1.55) contrast(0.9); }
	100% { filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.3)) brightness(1); }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .flash .core, .flash .glow, .flash .ray, #flashVeil, .logo-wrap, .logo-wrap img, .event-card { animation: none !important; } .flash .dot { opacity: 1; transform: none; } }

.event-card { width: min(520px, 100%); text-align: center; animation: fadeInUp 1.3s ease-out both; }
.event-card h1 { font-size: clamp(1.5rem, 5vw, 2.1rem); margin-bottom: 10px; }
.event-card .when { font-size: 1.08rem; font-weight: 600; color: var(--link); }
.event-card .where { margin-top: 6px; }
.event-card .comment { margin-top: 14px; font-style: italic; }
.event-card .comment.rich p:last-child { margin-bottom: 0; }
.event-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.event-actions .btn { padding: 14px 18px; }

.footer-links { position: relative; z-index: 2; text-align: center; padding: 0 16px 18px; font-size: 0.8rem; }
.footer-links a { color: var(--muted); text-decoration: none; margin: 0 8px; }

/* ---------- Gästeseiten ---------- */

.page { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }
.page-header { display: flex; align-items: center; gap: 12px; margin: 4px 130px 16px 0; }
.page-header img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.page-header h1 { font-size: 1.3rem; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--border); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
	padding: 10px 14px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer;
	text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs .active { color: var(--text); border-bottom-color: var(--accent); }

.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.switch .btn { padding: 16px 10px; font-size: 1.05rem; }
.switch .btn .ic { width: 20px; height: 20px; }
.page-header h1 { font-size: 1.35rem; letter-spacing: -0.01em; }
.switch .btn.active { outline: 2px solid var(--accent); outline-offset: 2px; }
.upload-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upload-actions .btn { padding: 20px 10px; flex-direction: column; font-size: 1rem; text-align: center; border-radius: var(--r-md); }
.upload-actions .btn svg { width: 34px; height: 34px; }

.name-hint { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.name-hint + .name-row { margin-top: 6px; }
.name-row { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.name-modal { max-width: 420px; }
.name-modal h2 { font-size: 1.2rem; margin-bottom: 6px; }
.name-modal p { color: var(--muted); margin-bottom: 14px; }
.name-modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.name-modal-actions .btn { flex: 1; }
.gallery-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: -4px 0 10px; }
.gallery-hint { flex: 1 1 220px; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; flex: none; }
.seg button { border: 0; background: var(--card); color: var(--muted); padding: 6px 12px; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: color-mix(in srgb, var(--accent) 22%, var(--card)); color: var(--text); }
.tile.fav { border-color: color-mix(in srgb, var(--accent2) 60%, transparent); }
.tile.fav .like { background: color-mix(in srgb, var(--accent2) 80%, rgba(0, 0, 0, 0.55)); }
.lightbox .lb-hint { margin-top: 12px; max-width: 520px; text-align: center; color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; line-height: 1.45; }
.lightbox .lb-hint:empty { display: none; }
.name-row input { flex: 1; min-width: 0; }

.queue { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.queue-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--card-strong); border: 1px solid var(--border); }
.queue-item .qname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; }
.queue-item .bar { width: 90px; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.queue-item .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.queue-item.done .bar i { background: var(--ok); }
.queue-item.error .bar i { background: var(--danger); width: 100%; }

.success { margin-top: 14px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.success strong { display: block; font-size: 1.12rem; margin-bottom: 4px; }

.section-title { margin: 26px 0 10px; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.grid > p { grid-column: 1 / -1; }
.tile { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--card-strong); border: 1px solid var(--border); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.tile .video-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--muted); cursor: pointer; }
.tile .video-badge svg { width: 32px; height: 32px; }
.like {
	position: absolute; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px;
	padding: 4px 8px; border-radius: var(--r-sm); border: 0; cursor: pointer;
	background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.85rem; font-weight: 700;
}
.like svg { width: 16px; height: 16px; }
.like.on { background: var(--accent2); }
.tile .del { position: absolute; left: 6px; top: 6px; border: 0; border-radius: var(--r-sm); padding: 3px 8px; cursor: pointer; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.75rem; }
.tile .pick {
	position: absolute; left: 6px; top: 6px; width: 26px; height: 26px; border-radius: 6px; border: 2px solid #fff;
	background: rgba(0, 0, 0, 0.35); cursor: pointer;
}
.tile.selected { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile.selected .pick { background: var(--accent); }
.tile .tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; font-size: 0.72rem; background: rgba(0, 0, 0, 0.6); color: #fff; }

.select-bar {
	position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); margin-top: 14px; z-index: 20;
	display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
	padding: 10px 12px; border-radius: var(--r-md); background: var(--card-strong); border: 1px solid var(--border); box-shadow: var(--shadow);
}

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 80vh; border-radius: var(--r-sm); }
.lightbox .lb-bar { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.lightbox .like { position: static; padding: 9px 12px; }

/* ---------- Musik ---------- */

.now-playing { display: flex; gap: 14px; align-items: center; }
.now-playing img { width: 72px; height: 72px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--card-strong); }
.now-playing .t { font-weight: 700; font-size: 1.05rem; }
.progress { height: 4px; border-radius: 2px; background: var(--border); margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; }

.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; }
.search-row input::-webkit-search-cancel-button { display: none; }

.tracks { display: flex; flex-direction: column; }
.track { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.track:last-child { border-bottom: 0; }
.track img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; flex: none; background: var(--card-strong); }
.track .info { flex: 1; min-width: 0; }
.track .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track .artist { font-size: 0.85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track .votes { display: flex; align-items: center; gap: 6px; }
.vote {
	min-width: 54px; padding: 7px 10px; border-radius: var(--r-sm); border: 1px solid var(--border);
	background: var(--card-strong); font-weight: 700; cursor: pointer;
}
.vote.on { background: var(--accent); color: var(--btn-text); border-color: transparent; }
.track .by { font-size: 0.74rem; color: var(--muted); }
.vote-heart { position: static; padding: 7px 11px; font-size: 0.95rem; background: var(--card-strong); color: var(--text); border: 1px solid var(--border); }
.vote-heart svg { color: #e84a64; }
.vote-heart.on { background: var(--accent2); color: #fff; border-color: transparent; }
.vote-heart.on svg { color: #fff; }
.vote-heart[disabled] { opacity: 0.6; cursor: default; }
.spotify-note { font-size: 0.75rem; color: var(--muted); margin-top: 10px; }
.spotify-note a { color: inherit; }

/* ---------- TV ---------- */

.tv { position: fixed; inset: 0; overflow: hidden; background: #000; cursor: none; color: #fff; font-family: var(--tv-font, var(--font)); }
[data-theme='light'] .tv { background: var(--lbg2); }
.tv-panel > *, .tv-bar .np, .tv-bar .next, .tv-caption, .tv-empty .center, .tv-music .m-left, .tv-music .m-right, .tv-qr span, .tv-qr small, .tv-new { zoom: var(--tv-scale, 1); }
.tv.show-cursor { cursor: default; }
.tv .slide {
	position: absolute; inset: 0; opacity: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
	transition: opacity var(--tv-trans, 1.6s) ease, transform var(--tv-trans, 1.6s) ease, filter var(--tv-trans, 1.6s) ease, clip-path var(--tv-trans, 1.6s) ease;
}
.tv .slide.show { opacity: 1; }
/* Übergänge je Folie (fx-*); .out ist die weichende Folie */
.tv .slide.fx-zoom { transform: scale(1.06); }
.tv .slide.fx-zoom.show { transform: scale(1); }
.tv .slide.fx-slide { transform: translateX(6%); }
.tv .slide.fx-slide.show { transform: none; }
.tv .slide.fx-slide.out { transform: translateX(-6%); }
.tv .slide.fx-blur { filter: blur(22px); }
.tv .slide.fx-blur.show { filter: blur(0); }
.tv .slide.fx-flip { transform: perspective(1400px) rotateY(-24deg) scale(0.94); }
.tv .slide.fx-flip.show { transform: perspective(1400px) rotateY(0) scale(1); }
.tv .slide.fx-flip.out { transform: perspective(1400px) rotateY(24deg) scale(0.94); }
.tv .slide.fx-wipe { opacity: 1; clip-path: inset(0 100% 0 0); }
.tv .slide.fx-wipe.show, .tv .slide.fx-wipe.out { clip-path: inset(0 0 0 0); }
.tv .slide.fx-none { transition: none; }
.tv .slide .blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(0.45); }
.tv .slide .pic { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; transform: rotate(var(--tilt, 0deg)); }
.tv .slide img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; will-change: transform; }
/* Bewegung, solange das Foto steht */
.tv .slide.mv img { animation: var(--kb) linear forwards; animation-duration: var(--dur, 9s); }
.tv .slide.mv-drift img, .tv .slide.mv-breathe img { animation-timing-function: ease-in-out; }
@keyframes kbIn { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes kbOut { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes kbLeft { from { transform: scale(1.1) translateX(2.5%); } to { transform: scale(1.1) translateX(-2.5%); } }
@keyframes kbRight { from { transform: scale(1.1) translateX(-2.5%); } to { transform: scale(1.1) translateX(2.5%); } }
@keyframes kbUp { from { transform: scale(1.1) translateY(2.5%); } to { transform: scale(1.1) translateY(-2.5%); } }
@keyframes driftA { from { transform: scale(1.06) translate(-1.4%, 1%); } to { transform: scale(1.06) translate(1.4%, -1%); } }
@keyframes driftB { from { transform: scale(1.06) translate(1.4%, 1.2%); } to { transform: scale(1.06) translate(-1.2%, -1%); } }
@keyframes driftC { from { transform: scale(1.06) translate(0, 1.6%); } to { transform: scale(1.06) translate(0, -1.6%); } }
@keyframes breathe { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
/* Darstellung des Fotos (frame-*) */
.tv.frame-dark .slide .blur, .tv.frame-cover .slide .blur { display: none; }
.tv.frame-cover .slide .pic img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.tv.frame-polaroid .slide .blur { filter: blur(40px) brightness(0.35); }
.tv.frame-polaroid .slide .pic img {
	box-sizing: border-box; max-width: 82%; max-height: 84%; padding: 1.6vh 1.6vh 7vh; background: #fff; border-radius: 0.4vh;
	box-shadow: 0 2vh 6vh rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.tv.with-bar .slide, .tv.with-bar .tv-empty { bottom: 12vh; }
.tv-music .cover.hidden { display: none; }
.tv-music .cover-logo { width: 60%; margin: 0 auto; display: block; filter: drop-shadow(0 2vh 6vh rgba(0, 0, 0, 0.5)); }

.tv-caption {
	position: absolute; left: 3vw; bottom: 3vh; z-index: 5; display: flex; gap: 1.2vw; align-items: center;
	padding: 1vh 1.4vw; border-radius: 1vh; background: rgba(0, 0, 0, 0.55); font-size: 2.2vh;
}
.tv.with-bar .tv-caption { bottom: 14vh; }
.tv-caption .heart { display: flex; align-items: center; gap: 0.5vw; color: #ff6b81; font-weight: 700; }
.tv-caption svg { width: 2.4vh; height: 2.4vh; }
.tv-qr { position: absolute; right: 2.5vw; bottom: 3vh; z-index: 6; background: #fff; color: #111; border-radius: 1.2vh; padding: 1.2vh; text-align: center; font-weight: 700; font-size: 1.6vh; width: var(--tv-qr, 17vh); }
.tv.with-bar .tv-qr { bottom: 14vh; }
.tv-qr img { width: 100%; height: auto; display: block; margin-bottom: 0.6vh; }
.tv-logo { position: absolute; left: 2.5vw; top: 3vh; z-index: 5; width: var(--tv-logo, 11vh); filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6)); }
.tv-logo.pos-right { left: auto; right: 2.5vw; }
.tv.mode-gallery .tv-logo.pos-right { right: 36vw; }
.tv-new { position: absolute; right: 2.5vw; top: 3vh; z-index: 5; padding: 1vh 1.6vw; border-radius: 1vh; background: var(--accent2); color: #fff; font-weight: 700; font-size: 2vh; opacity: 0; transition: opacity 0.6s; }
.tv-new.on { opacity: 1; }
.tv-empty {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 3vh; text-align: center; background: linear-gradient(135deg, var(--bg1), var(--bg2) 55%, var(--bg3)); z-index: 4; overflow: hidden;
}
.tv-empty .bg {
	position: absolute; inset: -6vh; background-size: cover; background-position: center;
	filter: blur(28px) brightness(0.32) saturate(1.15); opacity: 0; transition: opacity 1.2s ease;
}
.tv-empty.has-art .bg { opacity: 1; }
.tv-empty .shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)); opacity: 0; transition: opacity 1.2s ease; }
.tv-empty.has-art .shade { opacity: 1; }
.tv-empty .center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2.4vh; padding: 0 6vw; max-width: 90vw; }
.tv-empty.has-art .center { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); }
.tv-empty .hint { font-size: 2.9vh; line-height: 1.35; opacity: 0.95; }
.tv-empty .hint.small { font-size: 2.1vh; opacity: 0.75; }
.tv-empty .qr-pair { display: flex; gap: 4vw; }
.tv-empty .qr-pair > div { background: #fff; color: #111; padding: 1.4vh; border-radius: 1.6vh; width: 24vh; font-weight: 700; font-size: 1.8vh; }
.tv-empty .qr-pair img { width: 100%; display: block; margin-bottom: 0.6vh; }
[data-theme='light'] .tv-empty { background: linear-gradient(135deg, var(--lbg1), var(--lbg2) 55%, var(--lbg3)); color: var(--text); }
.tv-empty img.logo { width: 30vh; }
.tv-empty h1 { font-size: 6vh; line-height: 1.1; }
.tv-empty .qr-big { background: #fff; padding: 2vh; border-radius: 2vh; width: 30vh; }
.tv-empty .qr-big img { width: 100%; display: block; }

.tv-bar {
	position: absolute; left: 0; right: 0; bottom: 0; height: 12vh; z-index: 7;
	display: flex; align-items: center; gap: 2vw; padding: 0 2.5vw;
	background: linear-gradient(90deg, var(--bg1), var(--bg2)); border-top: 0.3vh solid var(--accent);
}
.tv-bar img { height: 8.5vh; width: 8.5vh; border-radius: 0.8vh; object-fit: cover; }
.tv-bar .np { min-width: 0; flex: 1.2; }
.tv-bar .np .label { font-size: 1.5vh; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.1em; }
.tv-bar .np .t { font-size: 3vh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-bar .np .a { font-size: 2.2vh; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-bar .next { flex: 1; min-width: 0; font-size: 1.9vh; display: flex; flex-direction: column; justify-content: center; }
.tv-bar .next .label { font-size: 1.5vh; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.1em; }
.tv-bar .next .nx { display: flex; align-items: center; gap: 0.8vw; margin-top: 0.4vh; white-space: nowrap; overflow: hidden; }
.tv-bar .next .nx img { width: 3.9vh; height: 3.9vh; border-radius: 0.6vh; object-fit: cover; flex: none; background: rgba(255, 255, 255, 0.1); }
.tv-bar .next .nx span { overflow: hidden; text-overflow: ellipsis; }
.tv-bar .next .nx em { font-style: normal; opacity: 0.7; }
.tv-bar .progress { height: 0.5vh; margin-top: 1vh; background: rgba(255, 255, 255, 0.2); }

.tv-music {
	position: absolute; inset: 0; z-index: 3; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4vw;
	padding: 3vh 4vw 3vh 16vh; background: linear-gradient(135deg, var(--bg1), var(--bg2) 55%, var(--bg3));
}
.tv-music .m-left { display: flex; flex-direction: column; min-height: 0; }
.tv-music .m-right { display: flex; flex-direction: column; min-height: 0; padding-top: 1vh; }
.tv-music .cover { width: 46vh; max-width: 100%; aspect-ratio: 1; border-radius: 2vh; object-fit: cover; box-shadow: 0 2vh 6vh rgba(0, 0, 0, 0.5); }
.tv-music .cover.hidden { display: none; }
.tv-music .cover-logo { width: 34vh; margin: 2vh 0; display: block; filter: drop-shadow(0 2vh 6vh rgba(0, 0, 0, 0.5)); }
.tv-music .t { font-size: 4.2vh; font-weight: 800; line-height: 1.1; margin-top: 2.4vh; }
.tv-music .a { font-size: 2.6vh; opacity: 0.8; margin-top: 0.6vh; }
.tv-music .progress { height: 0.7vh; margin: 2vh 0; background: rgba(255, 255, 255, 0.2); }
.tv-music .m-left .p-cta { margin-top: auto; }
.tv-music .m-left .label { margin-top: 3vh; }
.tv-music .m-left .label + .t { margin-top: 0.6vh; }
.tv-music .m-right .g-queue { font-size: 2.2vh; --thumb: 3.4vh; gap: 0.7vh; }
.tv-music .m-right .g-queue.rows-m { font-size: 2.5vh; --thumb: 4.4vh; gap: 1vh; }
.tv-music .m-right .g-queue.rows-l { font-size: 2.9vh; --thumb: 5.6vh; gap: 1.4vh; }
.tv-music .m-right .g-queue.rows-xl { font-size: 3.3vh; --thumb: 7vh; gap: 2.2vh; }
[data-theme='light'] .tv-music { background: linear-gradient(135deg, var(--lbg1), var(--lbg2) 55%, var(--lbg3)); color: var(--text); }
[data-theme='light'] .tv-music .progress { background: rgba(28, 35, 64, 0.15); }

.tv-panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: 34vw; z-index: 6; display: flex; flex-direction: column;
	padding: 3vh 2vw 2.5vh; background: rgba(6, 10, 28, 0.74); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	border-left: 1px solid rgba(255, 255, 255, 0.12); color: #fff;
}
[data-theme='light'] .tv-panel { background: rgba(255, 252, 245, 0.82); color: var(--text); border-left-color: rgba(28, 35, 64, 0.14); }
.tv-panel .p-head { font-size: 3.2vh; font-weight: 800; margin-bottom: 1.2vh; }
.tv-panel .label, .tv-music .label { font-size: 1.6vh; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; margin-bottom: 0.8vh; }
.tv-panel .g-now { display: flex; gap: 1.4vh; align-items: center; margin-bottom: 2vh; }
.tv-panel .g-now img { width: 8vh; height: 8vh; border-radius: 1vh; object-fit: cover; flex: none; }
.tv-panel .g-now .t { font-size: 2.6vh; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-panel .g-now .a { font-size: 1.9vh; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-panel .g-now .progress { height: 0.5vh; margin-top: 1vh; background: rgba(255, 255, 255, 0.2); }
[data-theme='light'] .tv-panel .g-now .progress { background: rgba(28, 35, 64, 0.15); }
.tv-panel .g-queue, .tv-music .g-queue { list-style: none; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 0.45vh; font-size: 1.95vh; --thumb: 2.8vh; }
.tv-panel .g-queue.rows-m, .tv-music .g-queue.rows-m { font-size: 2.2vh; gap: 0.8vh; --thumb: 3.8vh; }
.tv-panel .g-queue.rows-l, .tv-music .g-queue.rows-l { font-size: 2.5vh; gap: 1.2vh; --thumb: 4.8vh; }
.tv-panel .g-queue.rows-xl, .tv-music .g-queue.rows-xl { font-size: 2.9vh; gap: 2vh; --thumb: 6.2vh; }
.tv-panel .g-queue li, .tv-music .g-queue li { display: flex; align-items: center; gap: 1.2vh; line-height: 1.15; }
.tv-panel .g-queue .n, .tv-music .g-queue .n { width: 3vh; text-align: right; opacity: 0.55; font-variant-numeric: tabular-nums; flex: none; }
.tv-panel .g-queue img, .tv-music .g-queue img { width: var(--thumb); height: var(--thumb); border-radius: 0.6vh; object-fit: cover; flex: none; background: rgba(255, 255, 255, 0.1); }
.tv-panel .g-queue .txt, .tv-music .g-queue .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-panel .g-queue.rows-xl .txt, .tv-music .g-queue.rows-xl .txt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.tv-panel .g-queue .txt em, .tv-music .g-queue .txt em { font-style: normal; opacity: 0.65; margin-left: 0.6vh; }
.tv-panel .g-queue.rows-l .txt em, .tv-music .g-queue.rows-l .txt em, .tv-panel .g-queue.rows-xl .txt em, .tv-music .g-queue.rows-xl .txt em { display: block; margin-left: 0; font-size: 0.8em; }
.tv-panel .g-queue .v, .tv-music .g-queue .v { display: flex; align-items: center; gap: 0.4vh; color: #ff6b81; font-weight: 700; font-size: 0.95em; flex: none; min-width: 5.5vh; justify-content: flex-end; }
.tv-panel .g-queue .v svg, .tv-music .g-queue .v svg { width: 1em; height: 1em; }
.tv-panel .p-more, .tv-music .p-more { font-size: 1.7vh; margin: 0.6vh 0 0 4.2vh; min-height: 2vh; }
.tv-panel .p-cta, .tv-music .p-cta {
	margin-top: 1.2vh; display: flex; align-items: center; gap: 2vh; padding: 1.5vh; border-radius: 1.6vh;
	background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
}
[data-theme='light'] .tv-panel .p-cta, [data-theme='light'] .tv-music .p-cta { background: rgba(255, 255, 255, 0.7); border-color: rgba(28, 35, 64, 0.14); }
.tv-panel .p-cta .qr, .tv-music .p-cta .qr { background: #fff; padding: 0.9vh; border-radius: 1.2vh; width: 14vh; flex: none; }
.tv-panel .p-cta .qr img, .tv-music .p-cta .qr img { width: 100%; display: block; }
.tv-panel .p-cta h4, .tv-music .p-cta h4 { font-size: 2.6vh; font-weight: 800; margin-bottom: 0.4vh; }
.tv-panel .p-cta p, .tv-music .p-cta p { font-size: 1.9vh; line-height: 1.35; opacity: 0.9; }
.tv-panel .p-cta .scan, .tv-music .p-cta .scan { margin-top: 0.6vh; font-size: 1.8vh; font-weight: 700; color: var(--link); }
/* Slideshow im Galerie-Modus links neben der Tafel */
.tv.mode-gallery .slide { padding-right: 34vw; }
.tv.mode-gallery .tv-empty .center { padding-right: 36vw; }
.tv.mode-gallery .tv-qr { display: none; }
.tv.mode-gallery .tv-caption { right: auto; }
.tv.mode-gallery .tv-new { right: 36vw; }
.tv-qr small { display: block; font-weight: 500; font-size: 1.25vh; line-height: 1.25; opacity: 0.75; margin-top: 0.4vh; }
.tv-bar .next .nx .v { display: inline-flex; align-items: center; gap: 0.3vh; color: #ff6b81; font-weight: 700; font-size: 1.7vh; margin-left: 0.6vw; flex: none; }
.tv-bar .next .nx .v svg { width: 1.7vh; height: 1.7vh; }

/* ---------- Webplayer: Fenster (player.php) und Leiste in der Seitenleiste ---------- */
.player-page { min-height: 100vh; background: var(--page-bg); }
.wp { max-width: 520px; margin: 0 auto; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.wp-head { display: flex; align-items: center; gap: 12px; }
.wp-head img { width: 44px; height: 44px; }
.wp-brand { flex: 1; min-width: 0; font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.wp-brand small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--muted); }
.wp-now { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); }
.wp-now img, .wp-cover-empty { width: 96px; height: 96px; border-radius: var(--r-md); object-fit: cover; flex: none; }
.wp-cover-empty { display: flex; align-items: center; justify-content: center; background: var(--card-strong); color: var(--muted); }
.wp-cover-empty .ic { width: 34px; height: 34px; }
.wp-now .txt { flex: 1; min-width: 0; }
.wp-now .t { font-weight: 800; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-now .a { color: var(--muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.wp-now .progress { margin-top: 10px; }
.wp-time { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.wp-start { width: 100%; }
.wp-controls { display: flex; gap: 8px; }
.wp-playlist { margin-top: 2px; }
.wp-controls .btn { flex: 1; }
.wp-volume { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.wp-volume input { flex: 1; accent-color: var(--accent); }
.wp-volume b { width: 2.4em; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.wp-hint { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.wp-error { padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--danger); color: var(--danger-text); font-size: 0.88rem; }
.pdock { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--card-strong); border: 1px solid var(--border); margin-bottom: 6px; }
.pd-head { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.pd-head span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-live { display: flex; flex-direction: column; gap: 12px; }
.pd-now { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pd-now img { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; flex: none; box-shadow: var(--shadow-sm); }
.pd-now .txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pd-now .t { font-weight: 700; font-size: 0.9rem; line-height: 1.25; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-now .a { font-size: 0.76rem; line-height: 1.3; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-prog .progress { height: 4px; margin-top: 0; }
.pd-time { display: flex; justify-content: space-between; margin-top: 5px; font-size: 0.68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-ctl { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pd-btn { width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
.pd-btn:hover { border-color: var(--accent); }
.pd-btn.primary { width: 46px; height: 46px; background: var(--accent); color: var(--btn-text); border-color: transparent; }
.pd-btn .ic { width: 18px; height: 18px; }
.pd-vol { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.pd-vol .ic { width: 15px; height: 15px; }
.pd-vol input { flex: 1; min-width: 0; height: 18px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.pd-vol input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--border); }
.pd-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--accent); border: 0; }
.pd-vol input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--border); }
.pd-vol input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.pd-vol input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 0; }
.pd-open { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--border); background: none; color: var(--muted); font-size: 0.76rem; font-weight: 600; cursor: pointer; }
.pd-open:hover { color: var(--text); }
.pd-open .ic { width: 14px; height: 14px; }

/* ---------- Cover des laufenden Songs: Hintergrund (cover.js) und Folie in der Slideshow ---------- */
.has-cover-bg { isolation: isolate; }
.has-cover-bg:not(body) { overflow: hidden; }
.cover-bg {
	position: absolute; inset: -6%; z-index: -1; pointer-events: none; opacity: 0;
	background: center / cover no-repeat; transition: opacity 1.6s ease;
}
.cover-bg.on { opacity: 1; }
.cover-bg.cover-dim { filter: brightness(0.3) saturate(1.1); }
.tv-panel .cover-bg.cover-dim, .tv-bar .cover-bg.cover-dim, .kiosk .cover-bg.cover-dim { filter: brightness(0.2) saturate(1.1); }
.cover-bg.cover-blur { filter: blur(26px) brightness(0.45) saturate(1.25); }
.tv-panel .cover-bg.cover-blur, .tv-bar .cover-bg.cover-blur { filter: blur(26px) brightness(0.32) saturate(1.2); }
[data-theme='light'] .cover-bg.cover-dim { filter: saturate(0.9); }
[data-theme='light'] .cover-bg.cover-dim.on { opacity: 0.2; }
[data-theme='light'] .cover-bg.cover-blur { filter: blur(26px) saturate(1.1); }
[data-theme='light'] .cover-bg.cover-blur.on { opacity: 0.38; }
body > .cover-bg { position: fixed; }
.tv-panel .cover-bg::after, .tv-bar .cover-bg::after { content: ''; position: absolute; inset: 0; background: rgba(6, 10, 28, 0.5); }
[data-theme='light'] .tv-panel .cover-bg::after, [data-theme='light'] .tv-bar .cover-bg::after { background: rgba(255, 252, 245, 0.55); }
.tv-bar.has-cover-bg .cover-bg { inset: -10%; }
.tv .slide.cover-slide .cs-body { position: relative; display: flex; align-items: center; gap: 4vw; max-width: 88%; zoom: var(--tv-scale, 1); }
.tv .slide.cover-slide .cs-body img { width: 56vh; height: 56vh; max-width: none; max-height: none; flex: none; object-fit: cover; border-radius: 2vh; box-shadow: 0 3vh 8vh rgba(0, 0, 0, 0.55); }
.tv .slide.cover-slide .cs-cap { display: flex; flex-direction: column; gap: 1.2vh; min-width: 0; color: #fff; text-shadow: 0 0.3vh 2vh rgba(0, 0, 0, 0.5); }
.tv .slide.cover-slide .cs-cap small { font-size: 2vh; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.8; }
.tv .slide.cover-slide .cs-cap b { font-size: 6vh; line-height: 1.05; font-weight: 800; }
.tv .slide.cover-slide .cs-cap span { font-size: 3.2vh; opacity: 0.85; }
.tv.mode-gallery .slide.cover-slide .cs-body { flex-direction: column; text-align: center; gap: 3vh; }
.tv.mode-gallery .slide.cover-slide .cs-body img { width: 50vh; height: 50vh; }
.tv.mode-gallery .slide.cover-slide .cs-cap b { font-size: 4.4vh; }

/* Alle Titel: Liste läuft durch (TV) oder lässt sich blättern (Touch-Station), Leiste rechts zeigt: es geht weiter */
.tv-panel .g-queue.all, .tv-music .g-queue.all { mask-image: linear-gradient(transparent, #000 3vh, #000 calc(100% - 3vh), transparent); -webkit-mask-image: linear-gradient(transparent, #000 3vh, #000 calc(100% - 3vh), transparent); padding-top: 1.5vh; padding-bottom: 1.5vh; overflow-y: auto; padding-right: 1vh; }
/* Breite je Anzeige einstellbar (--sb-w). Chrome ignoriert ::-webkit-scrollbar, sobald scrollbar-width gesetzt ist,
   deshalb die Standard-Eigenschaften nur für Browser ohne ::-webkit-scrollbar (Firefox). */
.g-queue.all::-webkit-scrollbar, .k-queue::-webkit-scrollbar { width: var(--sb-w, 4px); }
.g-queue.all::-webkit-scrollbar-track, .k-queue::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 99px; }
.g-queue.all::-webkit-scrollbar-thumb, .k-queue::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 99px; }
[data-theme='light'] .g-queue.all::-webkit-scrollbar-track, [data-theme='light'] .k-queue::-webkit-scrollbar-track { background: rgba(28, 35, 64, 0.05); }
@supports not selector(::-webkit-scrollbar) {
	.g-queue.all, .k-queue { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) transparent; }
}

/* ---------- Touch-Station (Anzeige im Modus kiosk) ---------- */

.kiosk {
	position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); overflow: hidden;
	background: var(--page-bg); color: var(--text); font-family: var(--tv-font, var(--font));
}
.kiosk .k-left > *, .kiosk .k-right > * { zoom: var(--tv-scale, 1); }
.k-left { display: flex; flex-direction: column; min-height: 0; padding: 2.5vh 2.5vw 2vh; }
.k-head { display: flex; align-items: center; gap: 1.5vw; margin-bottom: 1.5vh; }
.k-head img { height: var(--tv-logo, 9vh); width: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4)); }
.k-head h1 { font-size: 3.8vh; line-height: 1.1; }
.k-head p { font-size: 2vh; opacity: 0.8; margin-top: 0.4vh; }
.k-search {
	display: flex; align-items: center; gap: 1vw; height: 8vh; padding: 0 1.6vw; border-radius: 1.5vh;
	background: var(--input); border: 2px solid var(--border); font-size: 3vh;
}
.k-search:focus-within { border-color: var(--accent); }
.k-search > svg { width: 3.4vh; height: 3.4vh; flex: none; opacity: 0.7; }
.k-search input { flex: 1; min-width: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 3vh; outline: none; caret-color: var(--accent); }
.k-search input::placeholder { color: var(--muted); }
.k-clear { width: 5.5vh; height: 5.5vh; border-radius: 1vh; border: 1px solid var(--border); background: var(--card-strong); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; flex: none; }
.k-search:has(input:placeholder-shown) .k-clear { visibility: hidden; }
.k-clear svg { width: 2.6vh; height: 2.6vh; }
.k-results { flex: 1; min-height: 0; overflow: auto; margin: 1.5vh 0; display: flex; flex-direction: column; gap: 1vh; scrollbar-width: thin; }
.k-hint { padding: 2.5vh 1.5vw; border-radius: 1.5vh; border: 1px dashed var(--border); color: var(--muted); font-size: 2.3vh; text-align: center; }
.k-hint.error { color: var(--danger-text); border-color: var(--danger); }
.k-row {
	display: flex; align-items: center; gap: 1.3vw; min-height: 9.5vh; padding: 1vh 1.3vw; border-radius: 1.5vh; text-align: left;
	background: var(--card-strong); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 2.4vh; cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.k-row:active { border-color: var(--accent); }
.k-row img { width: 7.2vh; height: 7.2vh; border-radius: 1vh; object-fit: cover; flex: none; background: var(--card); }
.k-row .txt { flex: 1; min-width: 0; }
.k-row .t { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-row .a { font-size: 0.82em; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-row .add {
	flex: none; display: inline-flex; align-items: center; gap: 0.6vw; padding: 1.3vh 1.6vw; border-radius: 1vh; font-size: 2.1vh; font-weight: 800; white-space: nowrap;
	background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff)); color: var(--btn-text);
}
.k-row .add svg { width: 2.2vh; height: 2.2vh; }
.k-row.inqueue .add { background: var(--card); color: var(--muted); border: 1px solid var(--border); }
.k-row.done .add { background: var(--ok); color: #fff; }
.k-row.busy { opacity: 0.6; pointer-events: none; }
.k-keyboard { display: flex; flex-direction: column; gap: 0.9vh; padding-top: 0.5vh; }
.k-krow { display: flex; gap: 0.6vw; justify-content: center; }
.k-key {
	flex: 1 1 0; max-width: 7.6vw; height: 7.2vh; border-radius: 1.2vh; border: 1px solid var(--border); background: var(--card-strong); color: var(--text);
	font: inherit; font-size: 3vh; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center;
	user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; padding: 0;
}
.k-key:active { background: var(--accent); color: var(--btn-text); border-color: transparent; }
.k-key.wide { max-width: 18vw; flex-grow: 2.4; font-size: 2.2vh; }
.k-key.space { max-width: 34vw; flex-grow: 5; font-size: 2.2vh; }
.k-key svg { width: 3.4vh; height: 3.4vh; }
.k-right { display: flex; flex-direction: column; min-height: 0; padding: 3vh 2vw 2.5vh; background: rgba(0, 0, 0, 0.22); border-left: 1px solid var(--border); }
[data-theme='light'] .k-right { background: rgba(255, 255, 255, 0.45); }
.k-right .label { font-size: 1.7vh; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; margin-bottom: 1vh; }
.k-now { display: flex; align-items: center; gap: 1.4vw; margin-bottom: 3vh; }
.k-now img { width: 15vh; height: 15vh; border-radius: 1.5vh; object-fit: cover; flex: none; box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.4); }
.k-now .txt { flex: 1; min-width: 0; }
.k-now .t { font-size: 3.2vh; font-weight: 800; line-height: 1.15; }
.k-now .a { font-size: 2.2vh; opacity: 0.8; margin-top: 0.4vh; }
.k-now .progress { height: 0.6vh; margin-top: 1.4vh; background: rgba(255, 255, 255, 0.2); }
[data-theme='light'] .k-now .progress { background: rgba(28, 35, 64, 0.15); }
.k-queue { list-style: none; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 1vh; touch-action: pan-y; display: flex; flex-direction: column; gap: 1vh; font-size: 2.3vh; }
.k-queue li { display: flex; align-items: center; gap: 1vw; min-width: 0; line-height: 1.15; padding: 0.3vh 0.6vw; border-radius: 1vh; border: 2px solid transparent; }
.k-queue li.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.k-queue .n { width: 3vh; text-align: right; opacity: 0.5; font-variant-numeric: tabular-nums; flex: none; }
.k-queue img { width: 5.4vh; height: 5.4vh; border-radius: 0.8vh; object-fit: cover; flex: none; background: var(--card); }
.k-queue .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-queue .txt em { font-style: normal; opacity: 0.65; margin-left: 0.6vh; }
.k-queue .v { display: flex; align-items: center; gap: 0.4vh; color: #ff6b81; font-weight: 700; flex: none; }
.k-queue .v svg { width: 2.2vh; height: 2.2vh; }
.k-more { font-size: 1.8vh; opacity: 0.7; margin: 0.6vh 0 0 4.2vh; min-height: 2.2vh; }
.k-cta { margin-top: 1.5vh; display: flex; align-items: center; gap: 1.4vw; padding: 1.4vh 1.4vw; border-radius: 1.5vh; background: var(--card); border: 1px solid var(--border); }
.k-cta .qr { width: 12vh; flex: none; background: #fff; padding: 0.8vh; border-radius: 1vh; }
.k-cta .qr img { width: 100%; display: block; }
.k-cta h4 { font-size: 2.3vh; margin-bottom: 0.3vh; }
.k-cta p { font-size: 1.8vh; opacity: 0.85; line-height: 1.35; }
.k-toast {
	position: fixed; left: 50%; top: 3vh; z-index: 10; transform: translate(-50%, -250%); transition: transform 0.3s ease;
	padding: 2vh 3vw; border-radius: 1.5vh; background: var(--ok); color: #fff; font-size: 2.7vh; font-weight: 800; text-align: center;
	max-width: 80vw; box-shadow: var(--shadow);
}
.k-toast.show { transform: translate(-50%, 0); }
.k-toast.error { background: var(--danger); }
@media (max-aspect-ratio: 5/4) {
	.kiosk { grid-template-columns: minmax(0, 1fr); }
	.k-right { display: none; }
	.k-key { max-width: 9vw; height: 6.5vh; }
	.k-key.wide, .k-key.space { max-width: none; font-size: 1.9vh; }
}

/* Herkunft und Statistik */
.tile .tag.origin-archive { background: rgba(176, 24, 42, 0.75); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.stat { padding: 12px 14px; border-radius: var(--r-md); background: var(--card-strong); border: 1px solid var(--border); }
.stat .v { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.stat .k { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.admin-tile .meta.origin { padding-top: 0; }

.subnav { display: flex; flex-wrap: wrap; gap: 6px; }
.subnav a { padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--card-strong); color: var(--text); text-decoration: none; font-size: 0.85rem; }
.impersonate-bar {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: 10px 16px; background: var(--warn); color: #1b1405; font-size: 0.92rem;
}
.impersonate-bar .btn { background: #1b1405; color: #fff; }

/* ---------- Verwaltung: Rahmen ---------- */

:root { --sidebar-w: 236px; --topbar-h: 60px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[data-theme='dark'] .ic-moon { display: none; }
[data-theme='light'] .ic-sun { display: none; }
body.admin { background-attachment: fixed; }
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar {
	width: var(--sidebar-w); flex: none; position: sticky; top: 0; height: 100vh; height: 100dvh;
	display: flex; flex-direction: column; gap: 14px; padding: 18px 12px 14px; overflow-y: auto; scrollbar-width: thin;
	background: var(--card); border-right: 1px solid var(--border);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; color: var(--text); text-decoration: none; font-weight: 800; line-height: 1.15; }
.sidebar .brand img { width: 40px; height: 40px; }
.sidebar .brand small { display: block; font-weight: 500; font-size: 0.74rem; color: var(--muted); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm);
	color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.sidebar nav a:hover { background: var(--card-strong); color: var(--text); }
.sidebar nav a.active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.sidebar nav a .ic { width: 20px; height: 20px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; }
.sidebar-foot .who { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); background: var(--card-strong); min-width: 0; color: var(--muted); }
.sidebar-foot .who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.side-link { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); cursor: pointer; font-weight: 600; text-align: left; }
.side-link:hover { background: var(--card-strong); color: var(--text); }
.sidebar-foot .links { display: flex; gap: 12px; padding: 4px 10px 0; }
.sidebar-foot .links button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 0.76rem; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
	position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	height: var(--topbar-h); padding: 0 24px; background: color-mix(in srgb, var(--bar) 72%, transparent);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.topbar-title { min-width: 0; }
.topbar h1 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.tb-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: var(--r-sm); border: 1px solid var(--border);
	background: var(--card-strong); color: var(--text); font-size: 0.84rem; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.tb-btn .ic { width: 16px; height: 16px; }
.tb-btn.tb-icon { width: 34px; height: 34px; padding: 0; justify-content: center; }
.tb-btn.tb-icon .ic { width: 18px; height: 18px; }
.tb-btn:hover { border-color: var(--accent); }
.tb-btn.on { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); }
.tb-btn[disabled] { opacity: 0.55; cursor: default; }
.tb-btn.primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff)); color: var(--btn-text); border-color: transparent; }
.content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 24px 48px; display: flex; flex-direction: column; gap: 14px; }
.tabbar { display: none; }
input.input-auto, select.input-auto { width: auto; }

/* Bereiche */
.sec { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px 10px 12px; }
.sec-toggle { display: flex; align-items: center; gap: 8px; flex: 1 1 190px; min-width: 0; overflow: hidden; padding: 4px 2px; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left; }
.sec-toggle .chev .ic { transition: transform 0.2s ease; color: var(--muted); }
.sec.closed .sec-toggle .chev .ic { transform: rotate(-90deg); }
.sec-toggle .sec-ic { width: 20px; height: 20px; color: var(--link); }
.sec-toggle .sec-title { flex: 0 0 auto; max-width: 100%; font-size: 1.02rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-count { font-size: 0.78rem; color: var(--muted); font-weight: 600; white-space: nowrap; flex: 0 40 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.info-dot { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--card-strong); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.info-dot .ic { width: 15px; height: 15px; }
.info-dot:hover, .info-dot.on { color: var(--text); border-color: var(--accent); }
.sec-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sec-body { padding: 2px 16px 16px; }
.sec.closed .sec-body { display: none; }
.sec .sub-title { font-size: 0.92rem; font-weight: 700; margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; }
.sec .sub-title .ic { width: 16px; height: 16px; color: var(--muted); }
.help {
	display: none; margin-bottom: 12px; padding: 10px 12px; border-radius: var(--r-sm); line-height: 1.5;
	font-size: 0.86rem; color: var(--muted); background: color-mix(in srgb, var(--accent) 8%, transparent); border-left: 3px solid var(--accent);
}
html[data-help='on'] .help, .sec.show-help .help { display: block; }
.help p + p { margin-top: 6px; }

/* Sprungleiste und Live-Leiste */
.jumpbar {
	position: sticky; top: var(--topbar-h); z-index: 25; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 24px; margin: -6px -24px -4px;
	background: color-mix(in srgb, var(--bar) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.jumpbar::-webkit-scrollbar { display: none; }
.jumpbar a {
	flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-sm); border: 1px solid var(--border);
	background: color-mix(in srgb, var(--bar) 80%, transparent); color: var(--muted); font-size: 0.82rem; font-weight: 600; text-decoration: none;
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.jumpbar a .ic { width: 14px; height: 14px; }
.jumpbar a.active, .jumpbar a:hover { color: var(--text); border-color: var(--accent); }
.livebar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 10px; }
.lv { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border); }
.lv > .ic { width: 20px; height: 20px; color: var(--link); }
.lv .txt { min-width: 0; flex: 1; }
.lv .k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.lv .v { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.95rem; }
.lv .s { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; background: var(--card-strong); flex: none; }
.lv .progress { margin-top: 5px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.off { background: var(--danger); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--card-strong); border: 1px solid var(--border); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill.ok i { background: var(--ok); } .pill.warn i { background: var(--warn); } .pill.off i { background: var(--danger); }

/* Veranstaltungskarten */
.ev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ev-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.ev-card.live { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
.ev-card.clickable { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.ev-card.clickable:hover { transform: translateY(-2px); border-color: var(--accent); animation: cardGlow 1.6s ease-in-out infinite; }
@keyframes cardGlow {
	0%, 100% { background-color: color-mix(in srgb, var(--accent) 10%, var(--card)); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
	50% { background-color: color-mix(in srgb, var(--accent) 22%, var(--card)); box-shadow: 0 0 0 1px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow-sm); }
}
@media (prefers-reduced-motion: reduce) { .ev-card.clickable:hover { animation: none; background-color: color-mix(in srgb, var(--accent) 14%, var(--card)); } }
.ev-card.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ev-card h3 { font-size: 1.12rem; line-height: 1.2; }
.ev-card h3 a { color: var(--text); text-decoration: none; }
.ev-card .when { font-size: 0.86rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.ev-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.ev-stats b { color: var(--text); font-size: 1.05rem; margin-right: 3px; }
.ev-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-top: auto; }
.ev-actions > .btn, .ev-actions .ev-menu > summary {
	flex-direction: column; gap: 4px; padding: 8px 4px; min-height: 56px; width: 100%; font-size: 0.78rem; white-space: nowrap; text-align: center;
}
.ev-actions .ic { width: 18px; height: 18px; }
.ev-menu { position: relative; }
.sec:has(details.ev-menu[open]) { position: relative; z-index: 24; }
.ev-menu > summary { list-style: none; cursor: pointer; }
.ev-menu > summary::-webkit-details-marker { display: none; }
.ev-menu[open] > summary { border-color: var(--accent); }
.ev-menu-pop {
	position: absolute; z-index: 20; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); min-width: 220px; max-width: 80vw;
	display: flex; flex-direction: column; padding: 6px; border-radius: var(--r-md); background: var(--modal-bg); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.ev-menu.right .ev-menu-pop { left: auto; right: 0; transform: none; }
.ev-menu-pop a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: 0.9rem; }
.ev-menu-pop a span { font-size: 0.78rem; color: var(--muted); }
.ev-menu-pop a:hover, .ev-menu-pop a:focus-visible { background: color-mix(in srgb, var(--accent) 16%, transparent); outline: none; }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--r-md); }

/* Status-Kacheln */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.st { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--card-strong); border: 1px solid var(--border); }
.st > .ic { width: 20px; height: 20px; color: var(--link); }
.st > div { min-width: 0; flex: 1; }
.st .k { font-size: 0.74rem; color: var(--muted); }
.st .v { font-weight: 700; font-size: 0.92rem; display: flex; gap: 6px; align-items: center; min-width: 0; }
.st .v span { overflow-wrap: anywhere; }

/* Speichern-Leiste */
.savebar {
	position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; transform: translate(-50%, 160%);
	display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r-md); max-width: calc(100% - 32px);
	background: var(--modal-bg); border: 1px solid var(--accent); box-shadow: var(--shadow); transition: transform 0.25s ease;
}
/* Versteckt: außerhalb UND unsichtbar; am Handy ragte die weggeschobene Leiste sonst unten ins Bild */
.savebar:not(.show) { visibility: hidden; pointer-events: none; transition-property: transform, visibility; transition-delay: 0s, 0.3s; }
.savebar.show { transform: translate(-50%, 0); }
.savebar span { font-size: 0.9rem; }

/* Formulare */
.admin-page h2 { font-size: 1.15rem; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: end; }
.form-grid > .check { min-height: 42px; }
.form-grid.wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.form-grid.stacked { grid-template-columns: 1fr; align-items: start; }
.form-grid + .form-grid { margin-top: 12px; }
label.field + .form-grid { margin-top: 16px; }
.perms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.perm { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--card-strong); cursor: pointer; }
.perm input { margin-top: 3px; flex: none; }
.perm strong { display: block; font-size: 0.9rem; }
.perm span { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.form-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn .ic { width: 16px; height: 16px; }
.btn-icon { padding: 7px; }
.btn-icon .ic { width: 18px; height: 18px; }
.btn-ghost { background: none; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn-ghost:hover { color: var(--text); background: var(--card-strong); }
table.list { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.list th, table.list td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.list th { font-size: 0.76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
table.list tr:last-child td { border-bottom: 0; }
table.list a { color: var(--text); overflow-wrap: anywhere; }
.table-wrap { max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
select, .input { max-width: 100%; }
table.list select.input { min-width: 0 !important; width: 100% !important; }
@media (max-width: 640px) {
	table.list, table.list tbody, table.list tr, table.list td { display: block; width: 100%; }
	table.list thead { display: none; }
	table.list tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
	table.list td { padding: 3px 0; border: 0; white-space: normal; }
	table.list td[data-label]::before { content: attr(data-label); display: block; font-size: 0.72rem; color: var(--muted); }
	table.list td:empty { display: none; }
	table.list td .row { margin-top: 6px; }
}
.tokens { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.token-card { display: flex; flex-direction: column; gap: 8px; }
.token-card .qr { background: #fff; border-radius: var(--r-sm); padding: 10px; width: 170px; align-self: center; }
.token-card .qr img { width: 100%; display: block; }
.token-card .url { word-break: break-all; font-size: 0.85rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.admin-tile { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--card-strong); border: 1px solid var(--border); }
.admin-tile .thumb { aspect-ratio: 1; display: block; width: 100%; object-fit: cover; cursor: zoom-in; }
.admin-tile .meta { padding: 6px 8px; font-size: 0.78rem; display: flex; justify-content: space-between; gap: 6px; }
.admin-tile .acts { display: flex; gap: 6px; padding: 0 8px 8px; }
.admin-tile .acts button {
	flex: 1; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center;
	border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer;
}
.admin-tile .acts button svg { width: 18px; height: 18px; }
.admin-tile .acts button:hover { background: var(--card-strong); }
.admin-tile .acts button.ok { color: var(--ok-text); border-color: var(--ok); }
.admin-tile .acts button.danger:hover { color: var(--danger-text); border-color: var(--danger); }
.admin-tile.is-hidden .thumb { opacity: 0.3; }
.admin-tile.is-review { outline: 3px solid var(--warn); outline-offset: -3px; }
.admin-tile .vid { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); }
.login-box { max-width: 400px; margin: 10vh auto 0; padding: 0 16px 40px; }
.login-box h2 { font-size: 1.3rem; }
.login-box .field input { padding: 12px 14px; }
.login-box img { display: block; width: 130px; margin: 0 auto 18px; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.3)); }
.login-box .card { padding: 22px; }
.player-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 0.92rem; }
.kv dt { color: var(--muted); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.kv .badge { white-space: normal; }
@media (max-width: 560px) {
	.kv { grid-template-columns: 1fr; gap: 2px; }
	.kv dt { margin-top: 8px; }
}
.danger-zone { border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); border-radius: var(--r-md); padding: 12px 14px; background: color-mix(in srgb, var(--danger) 6%, transparent); }
.host-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.host-row:last-child { border-bottom: 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; }
.notice .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.notice.ok .ic { color: var(--ok-text); } .notice.warn .ic { color: var(--warn-text); } .notice.error .ic { color: var(--danger-text); }
.toast.error { border-color: var(--danger); }

@media (max-width: 900px) {
	.sidebar { display: none; }
	.topbar { padding: 0 14px; }
	.topbar-actions .tb-btn span { display: none; }
	.content { padding: 14px 14px calc(86px + env(safe-area-inset-bottom)); }
	.tabbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--bar) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border);
	}
	.tabbar a, .tabbar button {
		flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none;
		color: var(--muted); text-decoration: none; font-size: 0.64rem; font-weight: 600; border-radius: var(--r-sm); cursor: pointer;
	}
	.tabbar form { flex: 1; display: flex; }
	.tabbar form button { width: 100%; }
	.tabbar a.active { color: var(--text); background: color-mix(in srgb, var(--accent) 18%, transparent); }
	.tabbar .ic { width: 22px; height: 22px; }
	.livebar { grid-template-columns: 1fr 1fr; }
	.livebar .lv:first-child { grid-column: 1 / -1; }
	.jumpbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 8px 14px; margin: -6px -14px -4px; }
	.savebar { bottom: calc(78px + env(safe-area-inset-bottom)); }
	.toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
	.livebar { grid-template-columns: 1fr 1fr; gap: 8px; }
	.form-actions .input-auto { width: 100%; }
	.sec-actions { flex: 1 1 100%; justify-content: flex-start; }
	.sec-actions > .input, .sec-actions > input { flex: 1; width: auto; min-width: 0; }
	.lv { padding: 8px 10px; }
	.lv img { width: 40px; height: 40px; }
	.sec-body { padding: 2px 12px 14px; }
	.sec-head { padding: 8px 10px; }
}

@media print {
	body { background: #fff !important; color: #000; }
	.sidebar, .topbar, .tabbar, .jumpbar, .livebar, .savebar, .no-print, .theme-toggle, .help, .sec-head, form { display: none !important; }
	.sec, .card { box-shadow: none; border: 1px solid #ccc; background: #fff; backdrop-filter: none; }
	.sec.closed .sec-body { display: block !important; }
	.content { padding: 0; }
	.token-card { break-inside: avoid; }
}

@media (max-width: 560px) {
	.page-header { margin-right: 0; padding-top: 34px; }
}

.tv-page .theme-toggle { opacity: 0; transition: opacity 0.3s; }
.tv-page.cursor .theme-toggle { opacity: 1; }

/* ---------- Selfie-Station: Kamera-Knopf im Kopf, Overlay mit Countdown, Blitz und Vorschau ---------- */
.k-head-txt { flex: 1; min-width: 0; }
.k-selfie-btn {
	flex: none; display: flex; align-items: center; gap: 1vw; padding: 1.6vh 2vw; border-radius: 1.2vh; border: 0;
	background: var(--accent); color: var(--btn-text); font: inherit; font-size: 2.4vh; font-weight: 800; cursor: pointer;
	box-shadow: 0 0.8vh 2.4vh rgba(0, 0, 0, 0.35); -webkit-tap-highlight-color: transparent;
}
.k-selfie-btn:active { transform: scale(0.97); }
.k-selfie-btn svg { width: 3.4vh; height: 3.4vh; }
.k-cam { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #05081a; color: #f5efe1; }
.k-cam.hidden { display: none; }
.k-cam-stage { position: relative; overflow: hidden; background: #000; }
.k-cam-stage video, .k-cam-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-cam-stage video { transform: scaleX(-1); }
.k-cam-count {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 36vh; font-weight: 800; line-height: 1;
	color: #fff; text-shadow: 0 0 6vh rgba(0, 0, 0, 0.7); pointer-events: none;
}
.k-cam-count.pop { animation: kcamPop 0.9s ease-out; }
@keyframes kcamPop { 0% { transform: scale(1.35); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(0.9); opacity: 0.85; } }
.k-cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.k-cam-flash.go { animation: kcamFlash 0.5s ease-out; }
@keyframes kcamFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
.k-cam-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 2vh 3vw; border-radius: 1.5vh; background: rgba(0, 0, 0, 0.7); font-size: 2.6vh; font-weight: 700; text-align: center; max-width: 80%; }
.k-cam-bar { display: flex; align-items: center; gap: 1.5vw; padding: 2.5vh 3vw; background: linear-gradient(90deg, var(--bg1), var(--bg2)); border-top: 0.3vh solid var(--accent); }
.k-cam-txt { flex: 1; min-width: 0; font-size: 3vh; font-weight: 800; line-height: 1.2; }
.k-cam-btn {
	flex: none; display: flex; align-items: center; justify-content: center; gap: 1vw; padding: 2vh 2.6vw; border-radius: 1.2vh;
	border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #f5efe1; font: inherit; font-size: 2.6vh; font-weight: 800; cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.k-cam-btn.primary { background: var(--accent); color: var(--btn-text); border-color: transparent; }
.k-cam-btn.hidden { display: none; }
.k-cam-btn svg { width: 3.4vh; height: 3.4vh; }
@media (max-aspect-ratio: 5/4) { .k-selfie-btn span { display: none; } }

/* ---------- Hover-Tooltips (tips.js) ---------- */
.pf-tip {
	position: fixed; z-index: 200; max-width: 280px; padding: 7px 10px; border-radius: var(--r-sm);
	background: #141d3a; color: #f5efe1; border: 1px solid rgba(212, 175, 55, 0.45); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	font-size: 0.78rem; font-weight: 500; line-height: 1.4; text-align: left; pointer-events: none;
	opacity: 0; transform: translateY(3px); transition: opacity 0.12s ease, transform 0.12s ease;
}
.pf-tip.on { opacity: 1; transform: none; }
.pf-tip::after {
	content: ''; position: absolute; left: var(--arrow, 50%); bottom: -5px; width: 8px; height: 8px; margin-left: -4px;
	background: inherit; border-right: 1px solid rgba(212, 175, 55, 0.45); border-bottom: 1px solid rgba(212, 175, 55, 0.45); transform: rotate(45deg);
}
.pf-tip.below::after { bottom: auto; top: -5px; transform: rotate(225deg); }
[data-theme='light'] .pf-tip { background: #1c2340; color: #fff; }
@media print { .pf-tip { display: none; } }

/* Gastgeber-Ansicht (Impersonation): Hinweisbalken am Handy kompakt */
@media (max-width: 640px) {
	.impersonate-bar { gap: 8px; padding: 8px 12px; font-size: 0.82rem; }
	.impersonate-bar .btn { padding: 6px 10px; font-size: 0.8rem; white-space: nowrap; }
}

/* ---------- Hülle /live (ab 1800 px): Verwaltung im Rahmen links, rechts Webplayer und Vorschau der Anzeigen ---------- */
:root { --livepanel-w: 560px; }
.shell { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.shell-frame { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; }
.livepanel {
	display: flex; flex-direction: column; gap: 14px; width: var(--livepanel-w); flex: none; height: 100%; overflow-y: auto;
	padding: 14px 18px 24px; background: var(--card); border-left: 1px solid var(--border); scrollbar-width: thin;
}
.lp-toggle { display: none; }
@media (min-width: 1800px) { .lp-toggle { display: inline-flex; } .content { max-width: 1320px; } }
html[data-embedded] .lp-toggle { display: inline-flex; }
html[data-embedded] .pdock, html[data-embedded] [data-open-player] { display: none; }
.lp-head { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 2px 2px 0; }
.lp-title { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lp-event { flex: 1; min-width: 0; font-weight: 800; font-size: 1rem; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-event:hover { color: var(--link); }
.lp-player { flex: none; border-radius: var(--r-md); overflow: hidden; background: var(--card-strong); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.lp-player iframe { display: block; width: 100%; height: 420px; border: 0; transition: height 0.2s ease; }
#lpCards { flex: none; display: flex; flex-direction: column; gap: 14px; }
.livepanel > .lp-head { flex: none; }
.lp-empty { padding: 14px; border-radius: var(--r-md); border: 1px dashed var(--border); color: var(--muted); font-size: 0.88rem; text-align: center; }
.lp-card { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--card-strong); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.lp-frame { position: relative; aspect-ratio: 16 / 9; background: #05081a; overflow: hidden; }
.lp-frame iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; transform: scale(var(--lp-s, 0.3)); pointer-events: none; background: #05081a; }
.lp-meta { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.lp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.lp-txt b { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-txt span { font-size: 0.74rem; color: var(--muted); }
.lp-btn { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
.lp-btn:hover { border-color: var(--accent); }
.lp-btn .ic { width: 15px; height: 15px; }
/* Player in der Spalte: kompakt */
.player-page.player-embedded { background: transparent; min-height: 0; }
.player-embedded .wp { max-width: none; padding: 12px 14px 12px; gap: 10px; }
.player-embedded .wp-head img { width: 34px; height: 34px; }
.player-embedded .wp-brand { font-size: 0.95rem; }
.player-embedded #themeToggle, .player-embedded .wp-hint { display: none; }
.player-embedded .wp-now img, .player-embedded .wp-cover-empty { width: 72px; height: 72px; }
/* Vorschau: kein Mauszeiger-Handling nötig */
.tv-preview .tv-qr, .tv-preview .k-toast { pointer-events: none; }

/* ---------- Herz-Hinweise: pulsierendes Herz in Großansicht und beim ersten Blick auf die Galerie ---------- */
@keyframes heartPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.28); } }
.like.pulse { animation: heartPulse 0.7s ease-in-out 3; }
.grid.intro .tile .like { animation: heartPulse 0.7s ease-in-out 2; animation-delay: calc(var(--i, 0) * 0.08s); }
.tile .like { padding: 6px 10px; font-size: 0.92rem; }
.tile .like svg { width: 18px; height: 18px; }
.lightbox .like { padding: 10px 16px; font-size: 1.05rem; }
.lightbox .like svg { width: 20px; height: 20px; }
.lightbox .lb-hint { margin-top: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 0.95rem; font-weight: 600; max-width: 560px; }
.tabs .tabs-right { margin-left: auto; }

/* ---------- Seitenleiste als Baum: Veranstaltungen, Bereiche, Anzeigen ---------- */
.side-tree { display: flex; flex-direction: column; gap: 2px; flex: none; }
.sidebar-foot { flex: none; }
.side-tree ul { list-style: none; margin: 0; padding: 0; }
.side-tree a { display: flex; align-items: center; gap: 8px; min-width: 0; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-weight: 600; }
.side-tree a:hover { background: var(--card-strong); color: var(--text); }
.side-tree a.active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.side-tree a span, .side-tree a .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-tree .st-item { padding: 10px 12px; font-size: 0.95rem; }
.side-tree .st-item .ic { width: 20px; height: 20px; }
.st-events { margin: 0 0 6px 10px; padding-left: 8px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.st-event { padding: 7px 10px; font-size: 0.88rem; }
.st-event .dot { width: 7px; height: 7px; flex: none; }
.st-events > li.current > .st-event { color: var(--text); font-weight: 800; }
.st-sections { margin: 2px 0 4px 8px; padding-left: 8px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 1px; }
.st-sec { padding: 6px 10px; font-size: 0.85rem; }
.st-sec .ic { width: 16px; height: 16px; }
.st-displays { margin: 1px 0 3px 8px; padding-left: 8px; border-left: 1px solid var(--border); }
.st-display { padding: 5px 10px; font-size: 0.8rem; font-weight: 600; flex-wrap: wrap; row-gap: 0; }
.st-display .ic { width: 14px; height: 14px; }
.st-display small { flex-basis: 100%; padding-left: 22px; font-size: 0.7rem; font-weight: 500; color: var(--muted); }
.st-more { padding: 6px 10px; font-size: 0.8rem; font-weight: 600; color: var(--link) !important; }
.st-settings { margin-top: -2px; }
@media (min-width: 901px) { .tree-sections .jumpbar { display: none; } }

/* ---------- Fotoalbum nach der Feier: Alben mit durchfadenden Vorschauen ---------- */
.page.album { max-width: 1100px; }
.album-page .page-header { align-items: center; }
.album-page .page-header .ph-text { flex: 1; min-width: 0; }
.album-page .feier-link { flex: none; }
.album-intro { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; line-height: 1.45; max-width: 720px; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.album-card { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform 0.2s ease, border-color 0.2s ease; }
.album-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.ac-stack { position: relative; aspect-ratio: 4 / 3; background: var(--card-strong); cursor: pointer; overflow: hidden; }
.ac-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: acFade calc(var(--n) * 4s) ease-in-out infinite; animation-delay: calc(var(--i) * 4s); }
.ac-stack img:first-child:last-of-type { opacity: 1; animation: none; }
@keyframes acFade { 0% { opacity: 0; transform: scale(1); } 7% { opacity: 1; } 22% { opacity: 1; transform: scale(1.06); } 30% { opacity: 0; } 100% { opacity: 0; } }
.ac-stack:has(img:nth-child(1):nth-last-child(2)) img { animation-duration: 8s; }
.ac-stack .ac-count { position: absolute; right: 8px; top: 8px; padding: 2px 8px; border-radius: var(--r-sm); background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.78rem; font-weight: 700; }
.ac-stack .ac-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ac-stack .ac-empty svg { width: 36px; height: 36px; }
.ac-body { padding: 10px 12px 4px; }
.ac-body h3 { margin: 0; font-size: 1.02rem; }
.ac-body p { margin: 2px 0 0; line-height: 1.35; }
.ac-actions { display: flex; gap: 8px; padding: 8px 12px 12px; margin-top: auto; }
.ac-actions .ac-open { flex: 1; }
.ac-actions .ac-zip svg { width: 16px; height: 16px; }
.album-card.empty .ac-stack { opacity: 0.5; }
.album-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.album-head .ah-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.album-head h2 { margin: 0; font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-tools { margin-bottom: 10px; }
.albums.people { margin-top: 6px; }
.grid.album-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.album-grid .tile .tag { max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .dl { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(0, 0, 0, 0.55); color: #fff; opacity: 0; transition: opacity 0.15s; }
.tile .dl svg { width: 16px; height: 16px; }
.tile:hover .dl, .tile:focus-within .dl { opacity: 1; }
@media (hover: none) { .tile .dl { opacity: 1; } }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; }
.lightbox .lb-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox .lb-nav.prev { left: 10px; }
.lightbox .lb-nav.next { right: 10px; }
.lightbox .lb-nav svg { width: 28px; height: 28px; }
.lightbox .lb-meta { color: rgba(255, 255, 255, 0.75); }
@media (max-width: 600px) {
	.albums { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
	.ac-actions { flex-direction: column; }
	.grid.album-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
	.lightbox .lb-nav { width: 36px; height: 52px; }
	.lightbox .lb-bar { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Erklärung als Fenster, Rechte in Gruppen, dünne Rollbalken in der Verwaltung ---------- */
html:has(body.admin) { scrollbar-width: thin; }
.help-modal .modal-card { max-width: 720px; width: calc(100% - 24px); }
.help-modal .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.help-modal .modal-head h2 { margin: 0; font-size: 1.05rem; }
.help-modal .modal-body { max-height: 70vh; }
.help-modal .modal-body p { color: var(--text); }
.hf { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 6px 14px; margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.hf dt { font-weight: 700; font-size: 0.88rem; }
.hf dd { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.hf dd b { color: var(--text); font-weight: 600; }
.perm-group h4 { margin: 12px 0 6px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.perm-group:first-child h4 { margin-top: 0; }
@media (max-width: 600px) { .hf { grid-template-columns: 1fr; gap: 2px; } .hf dd { margin-bottom: 8px; } }

/* ---------- Aushänge (DIN A4): Blatt, Blöcke, Liste, Editor ---------- */
.poster { position: relative; width: 210mm; height: 297mm; overflow: hidden; background: #fff; color: #141a33; transform-origin: 0 0; }
.poster.landscape { width: 297mm; height: 210mm; }
.pb { position: absolute; box-sizing: border-box; transform-origin: center center; }
.pb-text .pb-inner { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; word-wrap: break-word; }
.pb-text .pb-inner p, .pb-text .pb-inner h1, .pb-text .pb-inner h2, .pb-text .pb-inner h3 { margin: 0 0 0.35em; }
.pb-text .pb-inner h1 { font-size: 1.6em; } .pb-text .pb-inner h2 { font-size: 1.3em; } .pb-text .pb-inner h3 { font-size: 1.1em; }
.pb-text .pb-inner ul, .pb-text .pb-inner ol { margin: 0 0 0.4em 1.2em; padding: 0; }
.pb-text .pb-inner li { margin-bottom: 0.45em; }
.pb-text .pb-inner .ql-align-center { text-align: center; } .pb-text .pb-inner .ql-align-right { text-align: right; } .pb-text .pb-inner .ql-align-justify { text-align: justify; }
.pb-text .pb-inner .ql-size-small { font-size: 0.75em; } .pb-text .pb-inner .ql-size-large { font-size: 1.5em; } .pb-text .pb-inner .ql-size-huge { font-size: 2.5em; }
.pb-qr svg { width: 100%; height: 100%; display: block; }
.pb-qr .pb-qr-logo { position: absolute; left: 50%; top: 50%; width: 24%; height: 24%; transform: translate(-50%, -50%); border-radius: 12%; padding: 2%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.pb-qr .pb-qr-logo img { width: 100%; height: 100%; object-fit: contain; }
.pb-qr .pb-qr-missing { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #eee; color: #999; font: 12pt sans-serif; }
.pb-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.poster-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.poster-card { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--card-strong); overflow: hidden; display: flex; flex-direction: column; }
.poster-thumb { display: block; position: relative; overflow: hidden; background: #888; border-bottom: 1px solid var(--border); }
.poster-thumb-in { transform-origin: 0 0; pointer-events: none; }
.poster-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 4px; min-width: 0; }
.poster-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-actions { padding: 8px 12px 12px; gap: 6px; }
.poster-actions form { display: inline; }
/* Editor */
.pe { display: grid; grid-template-columns: 340px 1fr; gap: 14px; min-height: calc(100vh - var(--topbar-h) - 40px); }
.pe-panel { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); max-height: calc(100vh - var(--topbar-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.pe-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pe-bar.between { justify-content: space-between; }
.pe-group { border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 10px; }
.pe-group summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; }
.pe-group > *:not(summary) { margin-top: 8px; }
.pe .form-grid.two { grid-template-columns: 1fr 1fr; }
.pe .form-grid.four { grid-template-columns: repeat(4, 1fr); }
.pe .field { font-size: 0.78rem; }
.pe .field .input, .pe .field input, .pe .field select { padding: 6px 8px; font-size: 0.88rem; }
.pe input[type=color] { height: 34px; padding: 2px; }
.pe-layers { display: flex; flex-direction: column; gap: 3px; max-height: 180px; overflow-y: auto; scrollbar-width: thin; }
.pe-layer { flex: none; text-align: left; padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card-strong); color: var(--muted); font-size: 0.8rem; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-layer.active { color: var(--text); border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.pe-stage { position: relative; overflow: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: color-mix(in srgb, var(--card-strong) 60%, #555); padding: 20px; display: grid; place-items: start center; scrollbar-width: thin; }
.pe-stage::after { content: ''; display: block; width: var(--pw, 0); height: var(--ph, 0); grid-area: 1 / 1; }
.pe-canvas { grid-area: 1 / 1; transform-origin: 0 0; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); position: relative; }
.pe-canvas .pb { cursor: move; }
.pe-canvas .pb:hover { outline: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent); }
.pe-canvas .pb.sel { outline: 2px solid var(--accent); }
.pe-canvas .pb-text .pb-inner { user-select: none; }
.pe-handles { position: absolute; pointer-events: none; transform-origin: center center; }
.pe-handles .h { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid var(--accent); border-radius: 3px; pointer-events: auto; transform: translate(-50%, -50%); }
.pe-handles .h-nw { left: 0; top: 0; cursor: nwse-resize; } .pe-handles .h-ne { left: 100%; top: 0; cursor: nesw-resize; }
.pe-handles .h-sw { left: 0; top: 100%; cursor: nesw-resize; } .pe-handles .h-se { left: 100%; top: 100%; cursor: nwse-resize; }
.pe-handles .h-e { left: 100%; top: 50%; cursor: ew-resize; } .pe-handles .h-s { left: 50%; top: 100%; cursor: ns-resize; }
.pe-quill { margin-top: 8px; }
.pe-quill .ql-toolbar, .pe-quill .ql-container { border-color: var(--border); background: var(--card-strong); color: var(--text); }
.pe-quill .ql-toolbar { border-radius: var(--r-sm) var(--r-sm) 0 0; }
.pe-quill .ql-container { border-radius: 0 0 var(--r-sm) var(--r-sm); min-height: 160px; font-size: 0.95rem; }
.pe-quill .ql-editor { min-height: 160px; }
.pe-quill .ql-snow .ql-stroke { stroke: var(--text); } .pe-quill .ql-snow .ql-fill { fill: var(--text); } .pe-quill .ql-snow .ql-picker { color: var(--text); }
.pe-quill .ql-snow .ql-picker-options { background: var(--card); border-color: var(--border); }
.pe-quill .ql-editor.ql-blank::before { color: var(--muted); }
.pe.readonly .pe-panel button:not(#peZoomFit):not(#peZoom100):not(#pePrint) { pointer-events: none; opacity: 0.5; }
#peSave.attention { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
@media (max-width: 1100px) { .pe { grid-template-columns: 1fr; } .pe-panel { max-height: none; order: 2; } .pe-stage { min-height: 70vh; } }

/* ---------- Kommentare an Fotos und Live-Reaktionen auf den Anzeigen ---------- */
.lb-comments { width: min(560px, 100%); margin-top: 12px; }
.lightbox.has-comments img, .lightbox.has-comments video { max-height: 56vh; }
.cm { display: flex; flex-direction: column; gap: 8px; }
.cm-list { list-style: none; margin: 0; padding: 0; max-height: 22vh; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 6px; }
.cm-list li { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 0.9rem; line-height: 1.35; }
.cm-line { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cm-line strong { margin-right: 4px; }
.cm-list time { flex: none; font-size: 0.74rem; color: rgba(255, 255, 255, 0.6); }
.cm-del { flex: none; border: 0; background: none; color: rgba(255, 255, 255, 0.7); font-size: 0.76rem; text-decoration: underline; cursor: pointer; padding: 0; }
.cm-del:hover { color: #fff; }
.cm-empty { color: rgba(255, 255, 255, 0.7) !important; margin: 0; }
.cm-form { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-form .cm-text { flex: 1 1 200px; min-width: 0; }
.cm-form .cm-name { flex: 0 1 150px; min-width: 0; }
.cm-err { margin: 0; color: #ff9aa8; }
.tile .cm-count { position: absolute; right: 6px; bottom: 44px; display: flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: var(--r-sm); background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.78rem; font-weight: 700; pointer-events: none; }
.tile .cm-count svg { width: 14px; height: 14px; }
/* Beamer: Kärtchen links oben, Sprechblasen links unten */
.tv-react { position: absolute; left: 2.5vw; top: 3vh; z-index: 7; display: flex; flex-direction: column; gap: 1.2vh; width: min(34vw, 60vh); pointer-events: none; font-size: calc(2.1vh * var(--tv-scale, 1)); }
.tv-react.below-logo { top: calc(3vh + var(--tv-logo, 11vh) + 2vh); }
.tv-react .rx { display: flex; align-items: center; gap: 1.1vw; padding: 1vh 1.2vw 1vh 1vh; border-radius: 1.2vh; background: rgba(6, 10, 28, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.35); border-left: 0.5vh solid var(--accent); animation: rxIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.tv-react .rx-like { border-left-color: var(--accent2); }
.tv-react .rx.out { animation: rxOut 0.6s ease-in forwards; }
.tv-react .rx img { width: 7vh; height: 7vh; object-fit: cover; border-radius: 0.8vh; flex: none; }
.tv-react .rx-t { display: flex; flex-direction: column; min-width: 0; gap: 0.3vh; line-height: 1.25; }
.tv-react .rx-t b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-react .rx-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tv-react .rx-heart { display: flex; align-items: center; gap: 0.5vw; color: #ff8fa3; font-weight: 700; }
.tv-react .rx-heart svg { width: 2.3vh; height: 2.3vh; animation: heartPulse 0.7s ease-in-out 2; }
@keyframes rxIn { from { opacity: 0; transform: translateX(-3vw) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes rxOut { to { opacity: 0; transform: translateX(-2vw); } }
.tv-comments { position: absolute; left: 3vw; bottom: 10vh; z-index: 5; display: flex; flex-direction: column; gap: 1vh; align-items: flex-start; max-width: min(42vw, 80vh); pointer-events: none; font-size: calc(2.2vh * var(--tv-scale, 1)); }
.tv.with-bar .tv-comments { bottom: 21vh; }
.tv.mode-gallery .tv-comments { max-width: 36vw; }
.tv-comments .tc { display: flex; gap: 0.7vw; align-items: baseline; padding: 1vh 1.3vw; border-radius: 1.6vh 1.6vh 1.6vh 0.3vh; background: rgba(255, 255, 255, 0.92); color: #141a33; box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.3); opacity: 0; animation: tcIn 0.6s ease-out forwards; line-height: 1.3; }
.tv-comments .tc b { flex: none; color: var(--accent2); }
.tv-comments .tc span { overflow-wrap: anywhere; }
@keyframes tcIn { from { opacity: 0; transform: translateY(1.5vh); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tv-react .rx, .tv-comments .tc { animation-duration: 0.01s; } }
