/* Basis */
html, body { margin: 0; height: 100%; background: #000; color: #e5e7eb; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* Vollbild-Player */
iframe.ctv-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Center-Layout für Login */
.center { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.card { width: 100%; max-width: 420px; background: #111827; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,.45); text-align:center; }
@media (max-width: 420px){ .card{ border-radius: 14px; padding: 18px; } }

h1 { margin: 0 0 4px; font-size: 20px; }
.muted { color: #9ca3af; font-size: 14px; }
.logo { display:block; margin: 0 auto 8px auto; height: 40px; }

label { display:block; margin: 16px 0 8px; font-size: 14px; color: #cbd5e1; text-align:left; }
input[type=password] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(17,24,39,.85); color: #e5e7eb; font-size: 16px; line-height: 1.4; box-sizing: border-box; }
button { margin-top: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 12px; font-weight: 700; cursor: pointer; background: #d90429; color: #fff; font-size: 16px; }
button:hover { background: #a0031f; }
.alert { margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.35); color: #fecaca; text-align:left; }

/* Logout-Button oben rechts (nur wenn eingeloggt) */
.topbar { position: fixed; top: 8px; right: 8px; z-index: 10; }
.topbar a { color: #fff; background:#d90429; text-decoration: none; font-size: 12px; padding: 6px 10px; border-radius: 8px; }
.topbar a:hover { background:#a0031f; }

/* Support unten fixiert */
.support { position: fixed; left: 0; right: 0; bottom: 24px; text-align: center; z-index: 20; }
.support-text { color:#9ca3af; font-size:14px; margin-bottom:8px; }
.support a { display:inline-block; background:#25D366; color:#fff; padding:12px 20px; border-radius:8px; font-weight:600; text-decoration:none; font-size:15px; }
.support a:hover { background:#1da851; }
