:root {
    --vc-bg: #0a0a0f;
    --vc-card: #15151f;
    --vc-border: #2a2a3a;
    --vc-accent: #e0197a;
}
body { background: var(--vc-bg); color: #e5e7eb; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
/* Avatar-Rahmen (21.11.2026): Container etwas groesser als der Avatar, der Rahmen liegt als
   eigenes <img> darueber (z-index), die runde Aussparung im Rahmenbild laesst das Avatarbild
   darunter durchscheinen. Groesse ist relativ (em/% ueber inline style), damit sich dieselbe
   Klasse fuer grosse (Profil) und kleine (Chat) Avatare eignet. */
.vc-avatar-frame-wrap { position: relative; display: inline-block; }
.vc-avatar-frame-wrap img.vc-avatar-inner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; object-fit: cover; }
.vc-avatar-frame-wrap img.vc-avatar-frame-overlay { position: relative; display: block; z-index: 2; pointer-events: none; }
/* Abzeichen neben dem Namen (Chat, Kopfbereich) -- klein, inline, mit dem Bild vertikal zentriert. */
.vc-profile-badge-inline { width: 1.1em; height: 1.1em; object-fit: contain; vertical-align: -0.15em; margin-right: 2px; }
/* Abzeichen als Ecken-Marke direkt am Profilbild (21.11.2026, Andres Wunsch: "sollte die Flamme
   am Profilbild [unten rechts] sein, waere das nicht schicker" statt einer Textzeile darunter).
   Braucht einen position:relative-Container um das Avatar -- .vc-avatar-frame-wrap hat das
   schon (bei aktivem Rahmen), ohne Rahmen uebernimmt .vc-avatar-plain-wrap denselben Zweck. */
.vc-avatar-plain-wrap { position: relative; display: inline-block; }
.vc-avatar-badge-corner {
    position: absolute; bottom: -2px; right: -2px; z-index: 3;
    width: 30%; height: 30%; min-width: 26px; min-height: 26px;
    border-radius: 50%; background: var(--vc-card); border: 2px solid var(--vc-bg);
    display: flex; align-items: center; justify-content: center;
}
.vc-avatar-badge-corner img { width: 68%; height: 68%; object-fit: contain; }
/* Kleine Variante fuer das winzige Navbar-Avatar (header.php, 26-34px) -- die normale
   Mindestgroesse 26px waere dort fast so gross wie das Avatar selbst. */
.vc-avatar-badge-corner-sm { min-width: 13px; min-height: 13px; bottom: -1px; right: -1px; border-width: 1px; }
.vc-navbar { background: #12121a; border-bottom: 1px solid var(--vc-border); }
.vc-card {
    background: var(--vc-card);
    border: 1px solid var(--vc-border);
    border-radius: 14px;
    padding: 1.25rem;
}
.btn-vc {
    background: var(--vc-accent); border: none; color: #fff; font-weight: 600;
}
.btn-vc:hover { background: #c01569; color: #fff; }
.btn-vc-outline {
    background: transparent; border: 1px solid var(--vc-accent); color: var(--vc-accent);
}
.btn-vc-outline:hover { background: rgba(224,25,122,.12); color: var(--vc-accent); }
a { color: var(--vc-accent); }
.form-control, .form-select {
    background: #262635; border: 1px solid #3d3d52; color: #e5e7eb;
}
.form-control:focus, .form-select:focus {
    background: #262635; border-color: var(--vc-accent); color: #e5e7eb;
    box-shadow: 0 0 0 .2rem rgba(224,25,122,.2);
}
/* Platzhaltertext hatte keine eigene Farbe -- der Browser-Standard war auf dem dunklen
   Eingabefeld-Hintergrund kaum lesbar (z.B. "neues Passwort" im Admin-Bereich). */
.form-control::placeholder, .form-select::placeholder { color: #8b8b9a; opacity: 1; }
.vc-muted { color: #8b8b9a; }
/* Spam-Falle für Formulare: für echte Nutzer unsichtbar, aber nicht per inline display:none,
   das erkennen findige Bots inzwischen. */
.vc-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vc-live-dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: #ef4444; margin-right: 5px; animation: vcPulse 1.4s infinite;
}
@keyframes vcPulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.vc-video-wrap { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.vc-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.vc-chat-body { height: 140px; overflow-y: auto; background: #0f0f17; border-radius: 10px; padding: .75rem; }
.vc-chat-msg { margin-bottom: .5rem; font-size: .88rem; word-break: break-word; }
.vc-chat-msg b { color: var(--vc-accent); }
/* Geschenke + Nachricht hervorheben (20.11.2026) */
.vc-chat-gift { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); border-radius: 8px; padding: .4rem .6rem; }
.vc-chat-highlight { background: rgba(224,25,122,.12); border: 1px solid rgba(224,25,122,.35); border-radius: 8px; padding: .4rem .6rem; }
.vc-gift-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.vc-gift-btn { background: #262635; border: 1px solid #3d3d52; border-radius: 10px; padding: .4rem; text-align: center; width: 72px; cursor: pointer; color: #e5e7eb; }
.vc-gift-btn:hover { border-color: var(--vc-accent); }
.vc-gift-btn img { width: 36px; height: 36px; object-fit: contain; }
.vc-gift-btn .vc-gift-preis { font-size: .72rem; color: #8b8b9a; margin-top: 2px; }
@keyframes vcGiftFloat {
    0%   { opacity: 0; transform: translate(-50%, 0) scale(.5); }
    15%  { opacity: 1; transform: translate(-50%, -10px) scale(1.15); }
    30%  { transform: translate(-50%, -10px) scale(1); }
    85%  { opacity: 1; transform: translate(-50%, -70px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -100px) scale(.9); }
}
/* 21.11.2026 wieder vergroessert (Andre: "die Geschenke fliegen ja durchs Bild ... koennen die
   Bildchen ruhig groesser machen, damit sie auch auffallen") -- am 20.11. bewusst von 64px auf
   36px verkleinert worden, jetzt auf Andres Wunsch wieder auf den urspruenglichen Stand. */
.vc-gift-fly { position: absolute; left: 50%; bottom: 20px; pointer-events: none; text-align: center; animation: vcGiftFloat 3.2s ease-out forwards; z-index: 5; }
.vc-gift-fly img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.vc-gift-fly .vc-gift-fly-text { color: #fff; font-weight: 700; font-size: .85rem; text-shadow: 0 1px 4px rgba(0,0,0,.8); white-space: nowrap; }

/* Schnelle Reaktionen (20.11.2026): eigene, schlichtere Animation als bei Geschenken -- nur
   der Emoji, kuerzer, mit leichtem horizontalem Versatz (per JS gesetzt), damit mehrere
   gleichzeitige Reaktionen nicht alle exakt uebereinander fliegen. */
@keyframes vcReactionFloat {
    0%   { opacity: 0; transform: translate(-50%, 0) scale(.6); }
    15%  { opacity: 1; transform: translate(-50%, -15px) scale(1.2); }
    80%  { opacity: 1; transform: translate(-50%, -90px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -120px) scale(.9); }
}
.vc-reaction-fly { position: absolute; bottom: 20px; pointer-events: none; font-size: 2rem; animation: vcReactionFloat 2.2s ease-out forwards; z-index: 5; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.vc-reaction-btn { font-size: 1.1rem; line-height: 1; padding: .3rem .6rem; }
code { word-break: break-all; }

/* Altersverifikation: kleines, deutlich erkennbares Zeichen neben dem Namen -- bewusst nicht
   in Markenfarbe (--vc-accent), damit es sich von Status-/Rollen-Badges nie verwechseln lässt. */
.vc-badge-18 {
    display: inline-block; background: #f59e0b; color: #000; font-weight: 700;
    font-size: .65rem; line-height: 1; padding: .15rem .35rem; border-radius: .3rem;
    vertical-align: middle;
}

/* Handy/Tablet */
@media (max-width: 991.98px) {
    .vc-chat-body { height: 120px; }
    .vc-card { padding: 1rem; }
    body { overflow-x: hidden; }
}

/* 20.11.2026: Chat-Eingabe bewusst ueber allem anderen in der Karte -- auf manchen Android-Geraeten (gemeldet: Xiaomi/MIUI) tippte ein Tap daneben, Verdacht war Ueberlappung durch die Schnellreaktions-Buttons direkt darueber. */
#vcChatForm, #vcChatText { position: relative; z-index: 2; }


/* 20.11.2026, Kontrast-Audit nach dem Chat-Feld-Fund: gleiche Fehlerklasse (interaktives
   Element fast gleich dunkel wie sein Container) systematisch fuer alle Formularfelder und
   Geschenke-Buttons behoben (siehe .form-control/.form-select/.vc-gift-btn oben). Das
   #vcChatText-Sonderfall bleibt zusaetzlich mit dem Akzent-Rand, weil genau dieses Feld schon
   einmal uebersehen wurde. */
/* 20.11.2026: Chat-Eingabefeld deutlich sichtbar machen -- vorher kaum vom dunklen Nachrichtenverlauf darueber zu unterscheiden (Andre konnte das Feld auf dem Handy nicht finden, tippte stattdessen auf die Verlaufsbox). */
#vcChatText { background: #2a2a3a !important; border: 1px solid var(--vc-accent) !important; }

/* Kamera-Chat-Gaeste als Kacheln ueber dem eigenen Bild (21.11.2026, Andres Skizze mit roten
   Kaesten): rechts oben im Hauptvideo, statt einer eigenen Karte daneben/darunter -- auf
   Tablet/Handy war das bisher erst nach dem Herunterscrollen sichtbar, weil die Karte unter das
   Hauptbild rutschte. #vcGaesteOverlay liegt als Kind von .vc-video-wrap (position:relative,
   overflow:hidden), die Kacheln bleiben dadurch zuverlaessig innerhalb des Videobilds. */
#vcGaesteOverlay { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100% - 20px); overflow-y: auto; z-index: 4; }
/* 21.11.2026: auf Andres Wunsch ("Gast bild ist ... zu klein") von 110px auf 200px vergroessert. */
.vc-gast-tile { position: relative; width: 200px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 2px 10px rgba(0,0,0,.5); flex-shrink: 0; }
.vc-gast-tile video { width: 100%; height: 100%; object-fit: cover; }
.vc-gast-tile-dot { position: absolute; top: 6px; left: 6px; width: 10px; height: 10px; border-radius: 50%; background: #6b7280; box-shadow: 0 0 0 2px rgba(0,0,0,.5); }
.vc-gast-tile-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-gast-tile-btn { position: absolute; width: 26px; height: 26px; border: none; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
.vc-gast-tile-btn:hover { background: rgba(224,25,122,.85); }
/* 21.11.2026: solange die Kachel noch kein echtes Bild zeigt (kein "playing"-Ereignis des
   Videos), steht hier ein ehrlicher Hinweis statt eines stummen schwarzen Rechtecks -- bleibt er
   laenger stehen, zeigt das ein echtes Problem (z.B. Kamera des Gastes aus), keine Render-Macke. */
.vc-gast-tile-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: .5rem; color: #aaa; font-size: .72rem; background: #000; }
@media (max-width: 575.98px) {
    .vc-gast-tile { width: 150px; }
    .vc-gast-tile-name { font-size: .72rem; }
}
