*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;background:#11080a;color:#f7f1f2}body{background:radial-gradient(circle at top,#4a101b 0,#1b0b0f 42%,#090507 100%) fixed}.shell{width:min(1180px,100%);margin:auto;padding:16px}.card{background:rgba(28,10,15,.94);border:1px solid #6d2835;border-radius:14px;box-shadow:0 14px 40px #0008}.auth{max-width:520px;margin:6vh auto;padding:24px}.brand{text-align:center;margin-bottom:18px}.brand h1{margin:6px 0;color:#fff}.brand p{color:#d9b9c1}.tabs{display:flex;gap:8px;margin-bottom:16px}.tabs button,.btn{border:0;border-radius:9px;padding:11px 16px;font-weight:700;cursor:pointer;background:#a51632;color:white}.tabs button.secondary,.btn.secondary{background:#3a2027}.field{margin:12px 0}.field label{display:block;margin-bottom:6px;color:#e8cbd1}.field input,.field select,.field textarea{width:100%;padding:11px;border-radius:8px;border:1px solid #71404a;background:#160d10;color:#fff}.notice{padding:10px 12px;border-radius:8px;background:#4b1722;margin:10px 0}.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px;height:calc(100vh - 32px)}.chat-main{display:grid;grid-template-rows:auto 1fr auto;min-height:0}.topbar{padding:13px 16px;border-bottom:1px solid #5d2632;display:flex;align-items:center;justify-content:space-between;gap:10px}.messages{padding:14px;overflow:auto;min-height:0}.msg{padding:8px 10px;margin:5px 0;border-radius:10px;background:#251117;word-break:break-word}.msg.mine{background:#4d1724}.msg .meta{font-size:12px;color:#cfaeb6;margin-bottom:4px}.composer{display:flex;gap:8px;padding:12px;border-top:1px solid #5d2632}.composer input{flex:1;padding:12px;border-radius:9px;border:1px solid #71404a;background:#10090b;color:#fff}.sidebar{padding:14px;overflow:auto}.user{padding:9px;border-bottom:1px solid #49202a}.online{display:inline-block;width:9px;height:9px;border-radius:50%;background:#46d17d;margin-right:7px}.navlinks a{color:#fff;text-decoration:none;margin-left:10px}.mobile-users{display:none}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:9px;border-bottom:1px solid #54303a;text-align:left}.muted{color:#c9aab2;font-size:13px}@media(max-width:760px){.shell{padding:0}.chat-layout{display:block;height:100dvh}.chat-main{height:100dvh;border-radius:0}.sidebar{display:none;position:fixed;z-index:20;inset:0 0 0 25%;background:#170b0f}.sidebar.open{display:block}.mobile-users{display:inline-block}.topbar{padding:10px}.composer{padding:8px}.composer .btn{padding:10px}.admin-grid{grid-template-columns:1fr}.auth{margin:0;min-height:100dvh;border-radius:0}}


/* Compact radio player and categorized smileys */
.radio-player{margin:0 0 10px;padding:8px 10px;overflow:hidden;max-width:520px}
.player-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px;font-size:.9rem}
.player-badge{font-size:.65rem;padding:2px 6px;border-radius:999px;background:rgba(255,255,255,.1)}
.radio-player .stream-audio{display:block;width:100%;height:36px}
.radio-player .azura-embed{display:block;width:100%;height:92px;border:0;border-radius:8px;background:#111}
.smiley-panel{display:none;border-top:1px solid rgba(255,255,255,.09);padding:10px 12px;background:rgba(0,0,0,.18)}
.smiley-panel.open{display:block}.smiley-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px}.smiley-tabs button{border:0;border-radius:999px;padding:6px 10px;cursor:pointer;white-space:nowrap;background:rgba(255,255,255,.08);color:inherit}.smiley-tabs button.active{background:rgba(255,255,255,.2)}.smiley-list{display:flex;gap:6px;flex-wrap:wrap;max-height:125px;overflow:auto}.smiley{font-size:1.45rem;line-height:1;border:0;background:transparent;border-radius:8px;padding:7px;cursor:pointer}.smiley:hover{background:rgba(255,255,255,.12)}.composer{grid-template-columns:minmax(0,1fr) auto auto}
@media(max-width:700px){.radio-player{margin:6px;max-width:none;padding:7px 8px}.radio-player .azura-embed{height:86px}.radio-player .stream-audio{height:34px}.smiley-list{max-height:115px}.composer{gap:6px}.composer .btn{padding-left:11px;padding-right:11px}}

/* Smiley upload administration */
.admin-card{padding:16px}.admin-section{margin-top:16px}.form-actions{margin-top:12px}.notice.error{background:#651927;border:1px solid #b54055}.sidebar-head{display:flex;justify-content:space-between}.smiley-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.smiley-admin-item{padding:12px;border:1px solid #54303a;border-radius:10px;background:#170c10}.smiley-admin-item>img{display:block;width:64px;height:64px;object-fit:contain;margin:0 auto 10px;background:#fff1;border-radius:8px}.smiley-admin-actions{display:flex;gap:8px;margin-top:10px}.btn.danger{background:#761b2c}.user-admin-form{display:flex;gap:6px;min-width:330px}.smiley img{display:block;width:30px;height:30px;object-fit:contain}.chat-smiley{display:inline-block;width:32px;height:32px;object-fit:contain;vertical-align:middle;margin:0 2px}.msg .text{white-space:pre-wrap}
@media(max-width:600px){.smiley-admin-grid{grid-template-columns:1fr}.chat-smiley{width:28px;height:28px}}

/* Schreibleiste dauerhaft sichtbar */
html,body{height:100%;overflow:hidden}
body{min-height:100dvh}
.shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.radio-player{flex:0 0 auto}
.chat-layout{flex:1 1 auto;min-height:0;height:auto}
.chat-main{grid-template-rows:auto minmax(0,1fr) auto auto;min-height:0;overflow:hidden}
.messages{min-height:0;overscroll-behavior:contain;padding-bottom:18px}
.smiley-panel{position:relative;z-index:4;max-height:190px;overflow:hidden}
.composer{position:sticky;bottom:0;z-index:5;flex:0 0 auto;background:rgba(28,10,15,.99);padding-bottom:max(12px,env(safe-area-inset-bottom));box-shadow:0 -8px 22px rgba(0,0,0,.3)}
.composer input{min-width:0}
.sidebar{min-height:0}
@media(max-width:760px){
 html,body{height:100%;overflow:hidden}
 .shell{height:100dvh;min-height:100dvh;padding:0}
 .radio-player{margin:0;border-radius:0;max-width:none}
 .chat-layout{height:auto;min-height:0;flex:1 1 auto;display:block}
 .chat-main{height:100%;min-height:0;border-radius:0;grid-template-rows:auto minmax(0,1fr) auto auto}
 .composer{padding:8px 8px max(8px,env(safe-area-inset-bottom));}
 .messages{padding-bottom:14px}
 .smiley-panel{max-height:170px}
}


/* Uploadbare Login- und Chatgrafiken */
.login-page{background-image:linear-gradient(rgba(9,5,7,.58),rgba(9,5,7,.78)),var(--login-bg,none),radial-gradient(circle at top,#4a101b 0,#1b0b0f 42%,#090507 100%);background-size:cover;background-position:center;background-attachment:fixed}
.login-page .auth{backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.chat-page .messages{position:relative;background-image:linear-gradient(rgba(17,8,10,.78),rgba(17,8,10,.78)),var(--chat-bg,none);background-size:cover;background-position:center;background-repeat:no-repeat}
.chat-page .messages>.msg{position:relative;z-index:1}
.design-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.design-upload-box{padding:14px;border:1px solid #54303a;border-radius:10px;background:#170c10}.design-preview{display:block;width:100%;height:160px;object-fit:cover;border-radius:9px;border:1px solid #71404a;background:#0d0809}.design-empty{height:160px;display:grid;place-items:center;border:1px dashed #71404a;border-radius:9px;color:#c9aab2;background:#10090b}.inline-delete{display:inline-block;margin-top:8px}.design-upload-box h3{margin-top:0}
@media(max-width:760px){.design-upload-grid{grid-template-columns:1fr}.design-preview,.design-empty{height:135px}.login-page{background-attachment:scroll}}


/* Adminbereich darf unabhängig vom fixierten Chat vollständig scrollen */
html:has(body.admin-page),html:has(body.admin-page) body{height:auto;min-height:100%;overflow:auto}
body.admin-page{min-height:100vh;overflow-y:auto;overflow-x:hidden;background-attachment:fixed}
body.admin-page .admin-shell{height:auto;min-height:100vh;display:block;overflow:visible;padding-bottom:40px}
body.admin-page .admin-grid{align-items:start}
body.admin-page .admin-card{min-width:0}

/* Sichere Anzeige der hochgeladenen Hintergründe */
.login-page{background-repeat:no-repeat;background-color:#090507}
.chat-page .messages{background-color:#11080a;background-attachment:local}
.design-preview{background-color:#10090b}
@media(max-width:760px){body.admin-page .admin-shell{padding:10px 10px 36px}.user-admin-form{min-width:280px}}

/* Grafiken automatisch und proportional an ihre Bereiche anpassen */
.login-page{
  background-image:radial-gradient(circle at top,#4a101b 0,#1b0b0f 42%,#090507 100%);
  background-size:cover;
  background-position:center;
}
.login-page .auth{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background-color:rgba(28,10,15,.94);
}
.login-page .auth::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background-image:var(--login-bg,none);
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover;
}
.login-page .auth::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(rgba(15,7,10,.55),rgba(15,7,10,.78));
  pointer-events:none;
}
.chat-page .messages{
  isolation:isolate;
  background-image:none;
  overflow:auto;
}
.chat-page .messages::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background-image:var(--chat-bg,none);
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover;
  pointer-events:none;
}
.chat-page .messages::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:rgba(17,8,10,.72);
  pointer-events:none;
}
.chat-page .messages>.msg{position:relative;z-index:1}
.design-preview{
  width:100%;
  height:clamp(135px,22vw,220px);
  object-fit:contain;
  object-position:center;
}
@media(max-width:760px){
  .login-page .auth{min-height:100dvh}
  .login-page .auth::before,.chat-page .messages::before{background-size:cover;background-position:center}
}
@media(orientation:portrait) and (max-width:760px){
  .login-page .auth::before{background-size:cover}
  .chat-page .messages::before{background-size:cover}
}

/* Zuverlaessige Bildanzeige ueber design-image.php */
body.login-page .auth::before,
body.chat-page .messages::before{
  opacity:1;
  visibility:visible;
  display:block;
}
body.login-page .auth::before{background-color:transparent}
body.chat-page .messages::before{background-color:transparent}


/* Sichtbare echte Bildebenen statt verdeckter CSS-Pseudoelemente */
.login-page .auth{position:relative;isolation:isolate;overflow:hidden}
.login-design-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:0;
  pointer-events:none;
}
.login-page .auth::before,.login-page .auth::after{display:none!important;content:none!important}
.login-page .auth>*:not(.login-design-image){position:relative;z-index:2}
.login-page .auth{background:rgba(28,10,15,.62)}
.login-page .auth:has(.login-design-image){box-shadow:inset 0 0 0 9999px rgba(12,5,8,.38),0 14px 40px #0008}

.chat-page .messages{position:relative;isolation:isolate;background:#11080a;overflow:auto}
.chat-page .messages::before,.chat-page .messages::after{display:none!important;content:none!important}
.chat-design-image{
  position:sticky;
  top:0;
  display:block;
  width:100%;
  height:100%;
  min-height:100%;
  object-fit:cover;
  object-position:center;
  z-index:0;
  pointer-events:none;
  margin-bottom:-100%;
  opacity:.55;
}
.chat-page .messages>.msg{position:relative;z-index:2}
@media(max-width:760px){
  .login-design-image,.chat-design-image{object-position:center center}
}


/* Login-Hintergrund im Aussenbereich und breiter Chat */
body.login-page{
  background-image:
    linear-gradient(rgba(9,5,7,.48),rgba(9,5,7,.72)),
    var(--login-page-bg,none),
    radial-gradient(circle at top,#4a101b 0,#1b0b0f 42%,#090507 100%) !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  background-attachment:fixed !important;
}
body.login-page .shell{
  width:100%;
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:24px;
  overflow:auto;
}
body.login-page .auth{
  width:min(520px,100%);
  min-height:auto;
  margin:0;
  background:rgba(28,10,15,.84) !important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  overflow:visible;
}
body.login-page .auth::before,
body.login-page .auth::after,
body.login-page .login-design-image{
  display:none !important;
  content:none !important;
}

body.chat-page .shell{
  width:min(1800px,96vw);
  max-width:none;
  padding:12px;
}
body.chat-page .chat-layout{
  grid-template-columns:minmax(0,1fr) clamp(250px,18vw,330px);
  gap:12px;
}
body.chat-page .radio-player{
  max-width:620px;
}

@media(max-width:760px){
  body.login-page{background-attachment:scroll !important}
  body.login-page .shell{padding:12px;place-items:center}
  body.login-page .auth{min-height:auto;border-radius:14px}
  body.chat-page .shell{width:100%;padding:0}
  body.chat-page .chat-layout{display:block}
}


/* Smiley-Leiste nach breitem Layout wieder dauerhaft erreichbar */
body.chat-page .chat-main{
  grid-template-rows:auto minmax(0,1fr) auto auto;
}
body.chat-page .smiley-panel{
  display:none;
  position:relative;
  z-index:8;
  flex:0 0 auto;
  width:100%;
  max-height:190px;
  overflow:hidden;
  background:rgba(20,8,12,.98);
  border-top:1px solid rgba(255,255,255,.12);
}
body.chat-page .smiley-panel.open{display:block}
body.chat-page .smiley-tabs,
body.chat-page .smiley-list{position:relative;z-index:9}
body.chat-page .smiley-list{min-height:48px}
body.chat-page .smiley{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  min-height:42px;
}
body.chat-page .composer{position:relative;z-index:10}
body.chat-page #smileyToggle{flex:0 0 auto;min-width:46px;font-size:20px}
@media(max-width:760px){
  body.chat-page .chat-main{grid-template-rows:auto minmax(0,1fr) auto auto}
  body.chat-page .smiley-panel{max-height:175px;padding:8px}
  body.chat-page .smiley-list{max-height:104px;overflow:auto}
  body.chat-page .smiley{min-width:40px;min-height:40px;padding:5px}
}

/* Standard-Smileys serverseitig ausgeben, damit die Leiste nie leer bleibt */
body.chat-page .smiley-lists{position:relative;z-index:9}
body.chat-page .smiley-category[hidden]{display:none!important}
body.chat-page .smiley-category:not([hidden]){display:flex}
body.chat-page .smiley button img,body.chat-page button.smiley img{pointer-events:none}

/* Robuster Smiley-Fix: Standard-Smileys immer sichtbar und anklickbar */
body.chat-page .smiley-panel{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  min-height:112px;
  max-height:210px;
  overflow:hidden;
  flex-shrink:0;
}
body.chat-page .smiley-lists{
  display:block !important;
  min-height:52px;
}
body.chat-page .smiley-category:not([hidden]){
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
}
body.chat-page .smiley-tabs button,
body.chat-page button.smiley{
  pointer-events:auto !important;
  touch-action:manipulation;
}
body.chat-page button.smiley{
  color:#fff;
  font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;
}
body.chat-page .smiley-panel:not(.open){display:none !important}
@media(max-width:760px){
  body.chat-page .smiley-panel{min-height:104px;max-height:178px}
}

/* Schreib- und Sendefunktion robust sichtbar halten */
body.chat-page .composer{align-items:center;position:relative!important;pointer-events:auto!important}
body.chat-page .composer input#message{position:relative;z-index:12;pointer-events:auto!important;user-select:text!important;-webkit-user-select:text!important}
body.chat-page .composer button{position:relative;z-index:12;pointer-events:auto!important}
.send-status{position:absolute;left:12px;right:12px;bottom:2px;font-size:11px;color:#ffd4dc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
body.chat-page .composer{padding-bottom:max(18px,env(safe-area-inset-bottom))}
@media(max-width:760px){.send-status{left:8px;right:8px}.composer input#message{font-size:16px}}


/* Moderator-Status */
.status-control{display:inline-flex;align-items:center;gap:6px;margin-left:8px;color:#e8cbd1;font-size:12px}.status-control select{max-width:130px;padding:7px 28px 7px 9px;border:1px solid #71404a;border-radius:8px;background:#160d10;color:#fff;font-weight:700}.chat-status{display:inline-block;margin-left:7px;padding:3px 7px;border-radius:999px;font-size:11px;font-weight:800;line-height:1.2;background:#3a2027;color:#fff}.status-online{background:#17683a}.status-chatwache{background:#916c00}.status-abwesend{background:#656565}.status-techniker{background:#145f8c}.status-admin{background:#6d288d}.status-onair{background:#c00028;color:#fff;animation:onairBlink 1s steps(2,end) infinite;box-shadow:0 0 10px rgba(255,0,50,.75)}@keyframes onairBlink{0%,48%{opacity:1;transform:scale(1)}49%,100%{opacity:.35;transform:scale(.97)}}@media(max-width:760px){.status-control span{display:none}.status-control{margin-left:0}.status-control select{max-width:112px;padding:7px}}


/* Hochgeladene animierte GIF-Smileys deutlich groesser anzeigen */
body.chat-page button.smiley .custom-smiley-image{
  width:38px;
  height:38px;
  max-width:100%;
  object-fit:contain;
}
body.chat-page button.smiley .gif-smiley-image{
  width:72px;
  height:72px;
  object-fit:contain;
}
body.chat-page button.smiley:has(.gif-smiley-image){
  min-width:82px;
  min-height:82px;
  padding:5px;
}
body.chat-page .chat-smiley.chat-gif{
  width:auto;
  height:auto;
  max-width:min(220px,70vw);
  max-height:220px;
  object-fit:contain;
  vertical-align:middle;
  margin:4px 3px;
  border-radius:8px;
}
body.chat-page .smiley-panel{
  max-height:300px;
}
body.chat-page .smiley-list{
  max-height:205px;
  align-items:center;
}
@media(max-width:760px){
  body.chat-page button.smiley .gif-smiley-image{
    width:60px;
    height:60px;
  }
  body.chat-page button.smiley:has(.gif-smiley-image){
    min-width:68px;
    min-height:68px;
  }
  body.chat-page .chat-smiley.chat-gif{
    max-width:min(160px,62vw);
    max-height:160px;
  }
  body.chat-page .smiley-panel{max-height:250px}
  body.chat-page .smiley-list{max-height:165px}
}

/* Oberen Chatbereich dauerhaft sichtbar halten */
html,body.chat-page{height:100%;overflow:hidden}
body.chat-page{min-height:100dvh;padding:0}
body.chat-page .shell{
  height:100dvh;
  max-height:100dvh;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  align-content:stretch;
  overflow:hidden;
  padding-top:max(12px,env(safe-area-inset-top));
  padding-bottom:max(12px,env(safe-area-inset-bottom));
}
body.chat-page .radio-player{
  position:relative;
  z-index:25;
  flex:none;
  min-height:0;
}
body.chat-page .chat-layout{
  height:100%;
  min-height:0;
  overflow:hidden;
}
body.chat-page .chat-main,
body.chat-page .sidebar{
  height:100%;
  min-height:0;
}
body.chat-page .chat-main{
  overflow:hidden;
}
body.chat-page .topbar{
  position:relative;
  z-index:24;
  flex:0 0 auto;
  min-height:64px;
  background:rgba(28,10,15,.99);
}
body.chat-page .messages{
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
}
@media(max-width:760px){
  body.chat-page .shell{
    height:100dvh;
    max-height:100dvh;
    padding-top:max(6px,env(safe-area-inset-top));
    padding-bottom:0;
  }
  body.chat-page .chat-layout{height:100%;min-height:0}
  body.chat-page .chat-main{height:100%;min-height:0}
  body.chat-page .topbar{min-height:58px;padding-top:10px}
  body.chat-page .radio-player{margin:0 6px 6px}
}


/* Korrekte Darstellung hochgeladener GIFs im Nachrichtenbereich */
body.chat-page .msg .text{
  overflow:visible;
  line-height:1.35;
}
body.chat-page .msg .text .custom-chat-image{
  display:inline-block;
  width:auto !important;
  height:auto !important;
  max-width:96px;
  max-height:96px;
  object-fit:contain;
  vertical-align:middle;
}
body.chat-page .msg .text .chat-gif{
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:min(360px,90%);
  max-height:360px;
  object-fit:contain;
  margin:8px 0 4px;
  border-radius:10px;
  background:transparent;
}
body.chat-page button.smiley.smiley-gif-button{
  min-width:88px;
  min-height:88px;
  display:grid;
  place-items:center;
}
body.chat-page button.smiley.smiley-gif-button .gif-smiley-image{
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:78px;
  max-height:78px;
  object-fit:contain;
}
@media(max-width:760px){
  body.chat-page .msg .text .chat-gif{
    max-width:min(260px,88vw);
    max-height:260px;
  }
  body.chat-page button.smiley.smiley-gif-button{
    min-width:72px;
    min-height:72px;
  }
  body.chat-page button.smiley.smiley-gif-button .gif-smiley-image{
    max-width:64px;
    max-height:64px;
  }
}

/* Nachrichtenbereich eigenstaendig scrollbar; neue GIFs bleiben sichtbar */
body.chat-page .chat-main{
  min-height:0 !important;
  overflow:hidden !important;
}
body.chat-page .messages{
  min-height:0 !important;
  height:100%;
  overflow-y:scroll !important;
  overflow-x:hidden !important;
  scrollbar-gutter:stable;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  scroll-behavior:smooth;
  padding-bottom:28px;
}
body.chat-page .messages .msg:last-of-type{
  margin-bottom:12px;
}
body.chat-page .msg .text .chat-gif{
  width:auto !important;
  height:auto !important;
  max-width:min(520px,100%) !important;
  max-height:none !important;
}
body.chat-page .chat-design-image{
  pointer-events:none;
}
@media(max-width:760px){
  body.chat-page .messages{padding-bottom:22px}
  body.chat-page .msg .text .chat-gif{max-width:100% !important;max-height:none !important}
}

/* Transparente Chatnachrichten: keine roten Nachrichtenboxen */
body.chat-page .messages .msg,
body.chat-page .messages .msg.mine{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:7px 4px!important;
  margin:3px 0!important;
}
body.chat-page .messages .msg .meta{
  color:#f2dce2!important;
  text-shadow:0 1px 3px rgba(0,0,0,.95),0 0 8px rgba(0,0,0,.7);
  font-weight:700;
}
body.chat-page .messages .msg .text{
  /* Farbe kommt aus der pro Nachricht gespeicherten Formatierung. */
  text-shadow:0 1px 3px rgba(0,0,0,.98),0 0 7px rgba(0,0,0,.75);
  line-height:1.45;
}
body.chat-page .messages .msg+.msg{
  border-top:1px solid rgba(255,255,255,.08)!important;
}
body.chat-page .messages .msg img,
body.chat-page .messages .msg .message-smiley,
body.chat-page .messages .msg .message-gif{
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
}

/* Chatnachrichten komplett ohne weisse Linien und Rahmen */
body.chat-page .messages .msg,
body.chat-page .messages .msg.mine,
body.chat-page .messages .msg + .msg,
body.chat-page .messages .msg:first-child,
body.chat-page .messages .msg:last-child {
  border:0 !important;
  border-top:0 !important;
  border-right:0 !important;
  border-bottom:0 !important;
  border-left:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
body.chat-page .messages .msg + .msg {
  margin-top:8px !important;
  padding-top:8px !important;
}
body.chat-page .messages .msg img,
body.chat-page .messages .msg .chat-smiley,
body.chat-page .messages .msg .chat-gif,
body.chat-page .messages .msg .message-smiley,
body.chat-page .messages .msg .message-gif {
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
body.chat-page .messages hr,
body.chat-page .messages table,
body.chat-page .messages tr,
body.chat-page .messages td,
body.chat-page .messages th {
  border:0 !important;
  outline:0 !important;
}


/* Original-Smileys deutlich groesser; eigene Bilder und GIFs bleiben unveraendert */
body.chat-page button.smiley:not(:has(img)) {
  min-width: 58px;
  min-height: 58px;
  padding: 5px;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 3rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.chat-page .builtin-chat-smiley {
  display: inline-block;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 2.75rem;
  line-height: 1;
  vertical-align: -0.22em;
  margin: 0 .1em;
  text-shadow: none;
  max-width: none;
  max-height: none;
}
body.chat-page button.smiley:not(:has(img)):hover {
  transform: scale(1.08);
}
body.chat-page .smiley-list {
  gap: 9px;
  max-height: 220px;
}
body.chat-page .smiley-panel {
  max-height: 310px;
}
@media (max-width: 760px) {
  body.chat-page button.smiley:not(:has(img)) {
    min-width: 50px;
    min-height: 50px;
    font-size: 2.55rem;
  }
  body.chat-page .builtin-chat-smiley {
    font-size: 2.35rem;
  }
  body.chat-page .smiley-list {
    max-height: 175px;
  }
  body.chat-page .smiley-panel {
    max-height: 265px;
  }
}


/* Erweiterter kompakter Player mit Titelanzeige und Modibild */
.enhanced-player{display:grid!important;grid-template-columns:88px minmax(0,1fr);gap:14px;align-items:center;padding:10px 14px!important;max-width:760px;margin-left:auto;margin-right:auto}
.modi-picture-wrap{width:88px;height:88px;border-radius:14px;overflow:hidden;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center}
.modi-picture{width:100%;height:100%;object-fit:cover;display:block}
.modi-placeholder{font-size:2.2rem}
.player-content{min-width:0}
.enhanced-player .player-head{margin-bottom:5px}
.moderator-line{font-size:.84rem;color:var(--muted,#d8cbd0);margin-top:2px}
.now-playing{display:flex;align-items:baseline;gap:8px;min-width:0;margin:3px 0 7px}
.now-playing-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;opacity:.72;flex:0 0 auto}
#nowPlayingTitle{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;color:#fff}
.enhanced-player .stream-audio{width:100%;height:34px}
.enhanced-player .azura-embed{width:100%;height:78px;border:0}
.moderator-admin-preview{display:block;width:160px;height:160px;object-fit:cover;border-radius:16px;margin:10px 0 14px}
@media(max-width:600px){.enhanced-player{grid-template-columns:64px minmax(0,1fr);gap:10px;padding:8px!important}.modi-picture-wrap{width:64px;height:64px;border-radius:11px}.now-playing{display:block}.now-playing-label{display:block;margin-bottom:1px}.enhanced-player .azura-embed{height:72px}}

/* Player vollständig sichtbar: Titel, Modibild und AzuraCast-Bedienelemente */
body.chat-page .radio-player.enhanced-player{
  width:min(980px,100%);
  max-width:980px !important;
  min-height:118px;
  overflow:visible !important;
  flex:0 0 auto;
  grid-template-columns:96px minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding:12px 14px !important;
}
body.chat-page .enhanced-player .modi-picture-wrap{
  width:96px;
  height:96px;
  flex:0 0 96px;
}
body.chat-page .enhanced-player .player-content{
  width:100%;
  min-width:0;
  overflow:visible;
}
body.chat-page .enhanced-player .player-head{
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  align-items:flex-start;
}
body.chat-page .enhanced-player #nowPlayingTitle{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
}
body.chat-page .enhanced-player .stream-audio{
  display:block;
  width:100%;
  min-width:0;
  height:42px;
}
body.chat-page .enhanced-player .azura-embed{
  display:block;
  width:100%;
  min-width:0;
  height:150px !important;
  min-height:150px;
  overflow:visible;
  border:0;
}
@media(max-width:760px){
  body.chat-page .radio-player.enhanced-player{
    width:calc(100% - 12px);
    max-width:none !important;
    grid-template-columns:72px minmax(0,1fr);
    min-height:104px;
    gap:9px;
    margin:0 6px 6px;
    padding:9px !important;
  }
  body.chat-page .enhanced-player .modi-picture-wrap{
    width:72px;
    height:72px;
    flex-basis:72px;
  }
  body.chat-page .enhanced-player .azura-embed{
    height:145px !important;
    min-height:145px;
  }
}
@media(max-width:480px){
  body.chat-page .radio-player.enhanced-player{
    grid-template-columns:58px minmax(0,1fr);
    gap:8px;
  }
  body.chat-page .enhanced-player .modi-picture-wrap{
    width:58px;
    height:58px;
    flex-basis:58px;
  }
  body.chat-page .enhanced-player .player-badge{
    display:none;
  }
  body.chat-page .enhanced-player .azura-embed{
    height:140px !important;
    min-height:140px;
  }
}

/* Player platzsparend ausserhalb des Nachrichtenbereichs */
body.chat-page .shell{grid-template-rows:auto minmax(0,1fr)}
body.chat-page .radio-player.compact-player{
  width:100%;
  max-width:none;
  min-height:62px;
  margin:0 0 8px;
  padding:6px 10px!important;
  grid-template-columns:54px minmax(0,1fr);
  gap:10px;
  border-radius:12px;
}
body.chat-page .compact-player .modi-picture-wrap{width:54px;height:54px;border-radius:10px}
body.chat-page .compact-player .player-content{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head control" "title control" "details details";column-gap:10px;align-items:center;min-width:0}
body.chat-page .compact-player .player-head{grid-area:head;margin:0;min-width:0}
body.chat-page .compact-player .player-ident{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap;overflow:hidden}
body.chat-page .compact-player .player-ident strong{overflow:hidden;text-overflow:ellipsis}
body.chat-page .compact-player .moderator-line{font-size:.76rem;opacity:.78;overflow:hidden;text-overflow:ellipsis}
body.chat-page .compact-player .now-playing{grid-area:title;margin:1px 0 0;display:flex;gap:6px;min-width:0;white-space:nowrap;overflow:hidden}
body.chat-page .compact-player #nowPlayingTitle{font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.chat-page .compact-player .now-playing-label{font-size:.68rem}
body.chat-page .compact-player .player-toggle{grid-area:control;padding:8px 10px;white-space:nowrap;font-size:.78rem}
body.chat-page .compact-player .stream-audio{grid-area:control;width:min(360px,34vw);height:34px}
body.chat-page .compact-player .player-details{grid-area:details;margin-top:7px}
body.chat-page .compact-player .player-details[hidden]{display:none}
body.chat-page .compact-player .azura-embed{display:block;width:100%;height:92px;border:0;border-radius:8px}
body.chat-page .chat-layout{min-height:0}
@media(max-width:760px){
 body.chat-page .radio-player.compact-player{min-height:56px;margin:0;border-radius:0;grid-template-columns:46px minmax(0,1fr);padding:5px 7px!important}
 body.chat-page .compact-player .modi-picture-wrap{width:46px;height:46px;border-radius:8px}
 body.chat-page .compact-player .player-content{grid-template-columns:minmax(0,1fr) auto;column-gap:6px}
 body.chat-page .compact-player .player-ident strong{font-size:.84rem}
 body.chat-page .compact-player .moderator-line,.compact-player .player-badge{display:none}
 body.chat-page .compact-player .now-playing-label{display:none}
 body.chat-page .compact-player #nowPlayingTitle{font-size:.8rem}
 body.chat-page .compact-player .player-toggle{padding:7px 8px;font-size:.72rem}
 body.chat-page .compact-player .stream-audio{width:145px;height:32px}
 body.chat-page .compact-player .azura-embed{height:86px}
}

/* Player kompakt in der Benutzerliste */
body.chat-page .chat-layout{
  grid-template-columns:minmax(0,1fr) 390px;
}
body.chat-page .sidebar{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:10px;
  overflow:auto;
}
body.chat-page .sidebar .radio-player.compact-player{
  flex:0 0 auto;
  width:100%;
  max-width:none;
  min-height:0;
  margin:0;
  padding:8px!important;
  grid-template-columns:58px minmax(0,1fr);
  gap:8px;
  border-radius:10px;
  box-shadow:none;
}
body.chat-page .sidebar .compact-player .modi-picture-wrap{
  width:58px;
  height:58px;
}
body.chat-page .sidebar .compact-player .player-content{
  display:block;
  min-width:0;
}
body.chat-page .sidebar .compact-player .player-head{
  margin:0 0 4px;
}
body.chat-page .sidebar .compact-player .player-ident{
  display:block;
  min-width:0;
  white-space:normal;
}
body.chat-page .sidebar .compact-player .player-ident strong,
body.chat-page .sidebar .compact-player .moderator-line,
body.chat-page .sidebar .compact-player #nowPlayingTitle{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.chat-page .sidebar .compact-player .moderator-line{
  margin-top:2px;
}
body.chat-page .sidebar .compact-player .now-playing{
  display:block;
  margin:4px 0 6px;
  white-space:normal;
}
body.chat-page .sidebar .compact-player .now-playing-label{
  display:block;
  margin-bottom:2px;
}
body.chat-page .sidebar .compact-player .player-toggle{
  width:100%;
  padding:7px 8px;
  font-size:.76rem;
}
body.chat-page .sidebar .compact-player .stream-audio{
  width:100%;
  height:34px;
}
body.chat-page .sidebar .compact-player .player-details{
  margin-top:7px;
}
body.chat-page .sidebar .compact-player .azura-embed{
  width:100%;
  height:92px;
}
body.chat-page .sidebar-head{
  flex:0 0 auto;
}
body.chat-page #users{
  flex:1 1 auto;
  min-height:0;
}
@media(max-width:760px){
  body.chat-page .chat-layout{display:block}
  body.chat-page .sidebar{
    padding:10px;
    gap:10px;
  }
  body.chat-page .sidebar .radio-player.compact-player{
    grid-template-columns:54px minmax(0,1fr);
    border-radius:10px;
  }
  body.chat-page .sidebar .compact-player .modi-picture-wrap{
    width:54px;
    height:54px;
  }
  body.chat-page .sidebar .compact-player .azura-embed{
    height:86px;
  }
}

/* Player in der Benutzerliste dauerhaft sichtbar */
body.chat-page .sidebar .compact-player .player-toggle{display:none!important}
body.chat-page .sidebar .compact-player .player-details,
body.chat-page .sidebar .compact-player .player-details[hidden],
body.chat-page .sidebar .compact-player .player-details-visible{
  display:block!important;
  width:100%;
  margin-top:7px;
}
body.chat-page .sidebar .compact-player .azura-embed{
  display:block;
  width:100%;
  height:92px;
  min-height:92px;
  border:0;
  border-radius:8px;
}
@media(max-width:760px){
  body.chat-page .sidebar .compact-player .azura-embed{height:86px;min-height:86px}
}

/* Finaler Login-Hintergrund-Fix: echtes Vollseitenbild, nicht ueberschreibbar */
body.login-page{
  position:relative;
  isolation:isolate;
  background:#090507 !important;
}
body.login-page .login-fullpage-background{
  position:fixed;
  inset:0;
  z-index:-2;
  display:block !important;
  width:100vw;
  height:100vh;
  height:100dvh;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:center center;
  opacity:1;
  visibility:visible;
  pointer-events:none;
}
body.login-page::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:linear-gradient(rgba(9,5,7,.30),rgba(9,5,7,.58));
  pointer-events:none;
}
body.login-page .shell{
  position:relative;
  z-index:1;
}
body.login-page .auth{
  background:rgba(28,10,15,.78) !important;
}
@media(max-width:760px){
  body.login-page .login-fullpage-background{object-position:center center}
}


/* Smileys und GIFs aus Chatnachrichten erneut in die Schreibleiste uebernehmen */
body.chat-page .clickable-chat-smiley {
  cursor: pointer !important;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .16s ease, filter .16s ease;
}
body.chat-page .clickable-chat-smiley:hover,
body.chat-page .clickable-chat-smiley:focus-visible {
  transform: scale(1.08);
  filter: brightness(1.12);
  outline: 2px solid rgba(255,255,255,.55) !important;
  outline-offset: 3px !important;
}
body.chat-page .clickable-chat-smiley.smiley-reused {
  transform: scale(.92);
  filter: brightness(1.3);
}

/* Mobile Benutzerliste: abschliessende Prioritaetsregeln */
body.chat-page .sidebar-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:89;
  border:0;
  padding:0;
  margin:0;
  background:rgba(0,0,0,.58);
  cursor:pointer;
}
@media(max-width:760px){
  body.chat-page .chat-main{
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto auto;
    width:100%;
    height:100dvh;
  }
  body.chat-page .messages{
    display:block;
    min-height:0;
    width:100%;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  body.chat-page .sidebar{
    display:flex !important;
    position:fixed !important;
    z-index:90 !important;
    top:0 !important;
    right:0 !important;
    bottom:0 !important;
    left:auto !important;
    width:min(86vw,360px) !important;
    max-width:360px !important;
    height:100dvh !important;
    padding-top:max(10px,env(safe-area-inset-top)) !important;
    padding-bottom:max(10px,env(safe-area-inset-bottom)) !important;
    border-radius:14px 0 0 14px !important;
    transform:translateX(105%);
    visibility:hidden;
    pointer-events:none;
    transition:transform .22s ease,visibility 0s linear .22s;
    box-shadow:-16px 0 36px rgba(0,0,0,.55);
    overflow-y:auto !important;
    overscroll-behavior:contain;
  }
  body.chat-page .sidebar.open{
    transform:translateX(0);
    visibility:visible;
    pointer-events:auto;
    transition:transform .22s ease;
  }
  body.chat-page.users-open .sidebar-overlay{
    display:block;
  }
  body.chat-page .sidebar-head{
    position:sticky;
    top:0;
    z-index:3;
    align-items:center;
    padding:4px 0 8px;
    background:rgba(28,10,15,.98);
  }
  body.chat-page #closeUsers{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-width:44px;
    min-height:44px;
  }
}


/* Mobile composer fix */
@media (max-width:760px){
.chat-main{display:flex;flex-direction:column;height:100dvh;}
.messages{flex:1;overflow-y:auto;padding-bottom:90px;}
.composer{
display:flex !important;
position:sticky;
bottom:0;
left:0;
right:0;
z-index:1000;
background:#170b0f;
border-top:1px solid #5d2632;
}
.composer input{min-width:0;}
.sidebar{z-index:900;}
}

/* Mobile Chat 2026: feste Schreibleiste, Tastatur- und Smiley-Anpassung */
@media (max-width:760px){
  html,body.chat-page{height:100%;height:100dvh;overflow:hidden}
  body.chat-page{--mobile-vh:100dvh;--keyboard-offset:0px}
  body.chat-page .shell{
    width:100%;height:var(--mobile-vh);min-height:0;padding:0;overflow:hidden;
  }
  body.chat-page .chat-layout{height:100%;min-height:0;display:block;overflow:hidden}
  body.chat-page .chat-main{
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr) auto auto!important;
    height:100%!important;min-height:0!important;overflow:hidden!important;
    border:0;border-radius:0;
  }
  body.chat-page .topbar{flex:0 0 auto;min-height:56px;overflow:visible}
  body.chat-page .messages{
    min-height:0!important;height:auto!important;overflow-y:auto!important;
    padding:10px 10px 14px!important;scroll-padding-bottom:16px;
    overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;
  }
  body.chat-page .smiley-panel{
    display:none!important;position:relative!important;inset:auto!important;
    width:100%;max-height:min(34vh,220px)!important;overflow:hidden;
    z-index:30;background:#170b0f;border-top:1px solid #5d2632;
    padding:7px 8px!important;
  }
  body.chat-page .smiley-panel.open{display:block!important}
  body.chat-page .smiley-tabs{padding-bottom:5px}
  body.chat-page .smiley-list{max-height:min(24vh,150px)!important;overflow-y:auto}
  body.chat-page .composer{
    display:grid!important;grid-template-columns:minmax(0,1fr) 46px auto!important;
    align-items:center!important;gap:6px!important;
    position:relative!important;bottom:auto!important;left:auto!important;right:auto!important;
    z-index:40!important;width:100%;min-height:60px;margin:0!important;
    padding:7px 8px max(7px,env(safe-area-inset-bottom))!important;
    background:#170b0f!important;border-top:1px solid #5d2632;
    box-shadow:0 -5px 18px rgba(0,0,0,.38);
  }
  body.chat-page .composer input#message{
    width:100%;height:44px;min-width:0!important;font-size:16px!important;
    padding:10px 12px!important;border-radius:22px!important;
  }
  body.chat-page .composer .btn{height:44px;min-width:44px;padding:8px 11px!important;border-radius:22px}
  body.chat-page #smileyToggle{font-size:1.2rem;padding:0!important}
  body.chat-page .send-status{position:absolute;left:10px;bottom:100%;font-size:12px}
  body.chat-page.keyboard-open .smiley-panel{display:none!important}
  body.chat-page.keyboard-open #smileyToggle{opacity:.75}
  body.chat-page.users-open{overflow:hidden}
}

/* Chatregeln und Datenschutz beim Login */
.guest-form{margin-top:12px}.legal-check{display:flex;align-items:flex-start;gap:9px;margin:14px 0;color:#ead3d8;font-size:14px;line-height:1.4}.legal-check input{width:18px;height:18px;margin:1px 0 0;flex:0 0 auto;accent-color:#a51632}.text-link{display:inline;padding:0;border:0;background:none;color:#ff9aaf;text-decoration:underline;cursor:pointer;font:inherit}.text-link:hover{color:#fff}.legal-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.legal-buttons .btn{width:100%}.legal-modal[hidden]{display:none}.legal-modal{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.78)}.legal-dialog{position:relative;width:min(680px,100%);max-height:min(82dvh,760px);overflow:auto;padding:24px 26px;border:1px solid #7b3342;border-radius:14px;background:#1b0c11;box-shadow:0 18px 60px #000;color:#f7f1f2}.legal-dialog h2{margin:0 42px 16px 0}.legal-dialog p,.legal-dialog li{line-height:1.55}.legal-dialog ol{padding-left:22px}.modal-close{position:absolute;top:12px;right:14px;width:38px;height:38px;border:0;border-radius:50%;background:#3a2027;color:#fff;font-size:27px;line-height:1;cursor:pointer}.modal-close:hover{background:#a51632}.modal-open{overflow:hidden!important}@media(max-width:520px){.legal-buttons{grid-template-columns:1fr}.legal-dialog{padding:21px 18px}.legal-modal{padding:10px}}


/* Profile nur fuer registrierte Benutzer */
.profile-page{min-height:100vh;background:#090507;color:#f7f1f2}.profile-card{max-width:900px;margin:28px auto}.profile-grid{display:grid;grid-template-columns:230px minmax(0,1fr);gap:28px;padding-top:20px}.profile-preview{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}.profile-preview img,.profile-placeholder{width:150px;height:150px;border-radius:50%;object-fit:cover;border:3px solid #8e3347;box-shadow:0 10px 28px rgba(0,0,0,.45)}.profile-placeholder{display:grid;place-items:center;background:#3b1620;font-size:64px;font-weight:800}.profile-form small{display:block;margin-top:7px}.notice.success{border-color:#287a4a;background:rgba(28,110,63,.24)}
.message-head{display:flex;align-items:center;gap:8px;margin-bottom:4px}.message-avatar,.user-avatar{display:inline-grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:50%;overflow:hidden;background:#5b2431;color:#fff;font-weight:800;border:1px solid #8d4354}.message-avatar img,.user-avatar{object-fit:cover}.message-avatar img{width:100%;height:100%;object-fit:cover}.user{display:flex!important;align-items:center;gap:9px}.user-avatar{width:40px;height:40px}.user-avatar-placeholder{display:inline-grid}.user-info{min-width:0;flex:1}
@media(max-width:680px){.profile-card{margin:0;min-height:100dvh;border-radius:0}.profile-grid{grid-template-columns:1fr;gap:20px}.profile-preview img,.profile-placeholder{width:120px;height:120px}}


/* Profilbild-Vorschau: klein vor dem Namen, gross bei Hover oder Fingertipp */
body.chat-page .message-head{position:relative;overflow:visible}
body.chat-page .message-avatar{width:28px;height:28px;overflow:visible;position:relative;z-index:8;cursor:zoom-in}
body.chat-page .message-avatar img,
body.chat-page img.user-avatar{
  width:28px;height:28px;border-radius:50%;object-fit:cover;
  border:1px solid #8d4354;background:#5b2431;
  transform-origin:left center;transition:transform .18s ease,box-shadow .18s ease,border-radius .18s ease;
  cursor:zoom-in;position:relative;z-index:8;
}
body.chat-page .user{position:relative;overflow:visible}
body.chat-page img.user-avatar{flex:0 0 28px}
@media (hover:hover) and (pointer:fine){
  body.chat-page .message-avatar:hover img,
  body.chat-page .message-avatar:focus img,
  body.chat-page img.user-avatar:hover,
  body.chat-page img.user-avatar:focus{
    transform:scale(5.7);z-index:200;border-radius:10px;
    box-shadow:0 12px 34px rgba(0,0,0,.72);cursor:zoom-out;
  }
}
body.chat-page .message-avatar img.avatar-expanded,
body.chat-page img.user-avatar.avatar-expanded{
  transform:scale(5.7);z-index:200;border-radius:10px;
  box-shadow:0 12px 34px rgba(0,0,0,.72);cursor:zoom-out;
}
@media(max-width:760px){
  body.chat-page .message-avatar img.avatar-expanded,
  body.chat-page img.user-avatar.avatar-expanded{transform:scale(4.6)}
}

/* Korrektur: Profilbild wirklich klein und direkt vor dem Namen */
body.chat-page .messages .message-head{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  width:auto!important;
  max-width:100%!important;
  margin:0 0 3px 0!important;
  vertical-align:middle!important;
  overflow:visible!important;
}
body.chat-page .messages .message-head .meta{
  display:inline!important;
  width:auto!important;
  margin:0!important;
  line-height:18px!important;
  white-space:nowrap!important;
}
body.chat-page .messages .message-avatar,
body.chat-page .messages .message-avatar img{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  min-height:18px!important;
  max-height:18px!important;
}
body.chat-page .messages .message-avatar{
  display:inline-grid!important;
  flex:0 0 18px!important;
  margin:0!important;
  padding:0!important;
  font-size:10px!important;
  line-height:18px!important;
  border-radius:50%!important;
  vertical-align:middle!important;
}
body.chat-page .sidebar .user{
  gap:6px!important;
}
body.chat-page .sidebar .user-avatar,
body.chat-page .sidebar img.user-avatar{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  min-height:20px!important;
  max-height:20px!important;
  flex:0 0 20px!important;
  font-size:11px!important;
  line-height:20px!important;
}
@media (hover:hover) and (pointer:fine){
  body.chat-page .messages .message-avatar:hover img,
  body.chat-page .messages .message-avatar:focus img{
    transform:scale(7)!important;
  }
  body.chat-page .sidebar img.user-avatar:hover,
  body.chat-page .sidebar img.user-avatar:focus{
    transform:scale(6)!important;
  }
}
body.chat-page .messages .message-avatar img.avatar-expanded{
  transform:scale(7)!important;
}
body.chat-page .sidebar img.user-avatar.avatar-expanded{
  transform:scale(6)!important;
}

/* Bearbeitbare Rechtstexte */
.legal-copy{white-space:normal;line-height:1.6;overflow-wrap:anywhere}.ai-generated-notice{padding:10px 12px;border:1px solid #8b5f21;border-radius:9px;background:rgba(139,95,33,.22);color:#ffe0a3;font-size:13px}.legal-buttons{flex-wrap:wrap}.admin-card textarea[name=privacy_text],.admin-card textarea[name=imprint_text]{min-height:220px;resize:vertical;line-height:1.45}

/* Endgueltige Avatar-Position: direkt in der Namenszeile */
body.chat-page .messages .msg .message-head{
  display:block!important;
  width:100%!important;
  margin:0 0 3px!important;
  padding:0!important;
}
body.chat-page .messages .msg .message-head .meta{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:4px!important;
  width:100%!important;
  min-height:16px!important;
  line-height:16px!important;
  white-space:nowrap!important;
}
body.chat-page .messages .msg .message-username{
  display:inline!important;
  font-weight:700!important;
  line-height:16px!important;
}
body.chat-page .messages .msg .message-time{
  display:inline!important;
  line-height:16px!important;
}
body.chat-page .messages .msg .message-avatar,
body.chat-page .messages .msg .message-avatar img{
  display:inline-grid!important;
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  flex:0 0 16px!important;
  margin:0!important;
  padding:0!important;
  border-radius:50%!important;
  object-fit:cover!important;
  vertical-align:middle!important;
}
body.chat-page .messages .msg .message-avatar{
  place-items:center!important;
  font-size:9px!important;
  line-height:16px!important;
  overflow:visible!important;
}
body.chat-page .sidebar .user{
  display:flex!important;
  align-items:center!important;
}
body.chat-page .sidebar .user-avatar,
body.chat-page .sidebar img.user-avatar{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  flex:0 0 18px!important;
}

/* 2026-08-04: Initialen-Fallback entfernt; nur kleine Profilbilder vor dem Namen */
body.chat-page .user-avatar-placeholder{display:none!important}
body.chat-page .messages .message-avatar,
body.chat-page .messages .message-avatar img{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  min-height:16px!important;
  border-radius:50%!important;
  font-size:0!important;
  line-height:0!important;
}
body.chat-page .sidebar img.user-avatar{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  border-radius:50%!important;
}

/* Vereinfachte Smiley-Verwaltung */
.smiley-admin-grid.compact{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.smiley-admin-item.compact{padding:12px;gap:8px}
.smiley-admin-item.compact .field{margin:0}
.smiley-admin-preview{display:flex;align-items:center;gap:10px;margin-bottom:2px}
.smiley-admin-preview img{width:44px!important;height:44px!important;object-fit:contain}
.smiley-admin-preview strong{font-size:14px;overflow:hidden;text-overflow:ellipsis}
.smiley-active{display:flex;align-items:center;gap:6px;margin:2px 0}
.smiley-admin-actions{display:flex;gap:8px;flex-wrap:wrap}
.smiley-admin-actions .btn{padding:8px 12px}
@media(max-width:600px){.smiley-admin-grid.compact{grid-template-columns:1fr 1fr}.smiley-admin-item.compact{padding:9px}.smiley-admin-preview img{width:36px!important;height:36px!important}}
@media(max-width:420px){.smiley-admin-grid.compact{grid-template-columns:1fr}}


/* Moderationswerkzeuge in der Benutzerliste */
.moderation-tools{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:5px}
.mod-btn,.ban-select{font:inherit;font-size:12px;line-height:1.2;border:1px solid rgba(255,255,255,.22);border-radius:7px;background:rgba(15,15,20,.75);color:inherit;padding:5px 7px}
.mod-btn{cursor:pointer;background:#8b1d27;color:#fff;border-color:#a9323e}
.mod-btn:hover{filter:brightness(1.12)}
.ban-select{max-width:110px}
@media(max-width:760px){.moderation-tools{width:100%}.mod-btn,.ban-select{min-height:34px}}

/* Kompaktes Moderationsmenue direkt neben dem Benutzernamen */
.user{display:flex;align-items:flex-start;gap:7px;position:relative}
.user-info{min-width:0;flex:1}
.user-name-row{display:flex;align-items:center;gap:4px;min-width:0;position:relative}
.moderation-menu-wrap{position:relative;margin-left:auto;flex:0 0 auto}
.moderation-menu-toggle{width:28px;height:28px;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:7px;background:rgba(20,12,15,.78);color:#fff;font-size:20px;line-height:1;cursor:pointer;display:grid;place-items:center}
.moderation-menu-toggle:hover,.moderation-menu-toggle[aria-expanded="true"]{background:#8b1d27;border-color:#b63b49}
.moderation-menu{position:absolute;z-index:60;right:0;top:32px;min-width:190px;padding:5px;border:1px solid #71404a;border-radius:9px;background:#170b0f;box-shadow:0 10px 28px rgba(0,0,0,.55)}
.moderation-menu[hidden]{display:none!important}
.moderation-action{display:block;width:100%;padding:9px 10px;border:0;border-radius:6px;background:transparent;color:#fff;text-align:left;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.moderation-action:hover{background:#4b1722}
.moderation-action.danger{color:#ffb3bd}
@media(max-width:760px){.moderation-menu{position:fixed;right:12px;left:auto;top:auto;min-width:min(250px,calc(100vw - 24px))}.moderation-action{padding:12px 11px;font-size:14px}}

/* Textformatierung: Schriftgröße, Farbe, Fett und Kursiv */
body.chat-page .chat-main{grid-template-rows:auto minmax(0,1fr) auto auto auto}
.text-format-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 10px;background:rgba(20,8,12,.98);border-top:1px solid rgba(255,255,255,.12);position:relative;z-index:11}
.text-format-toolbar label{font-size:12px;color:#d9bdc4}
.format-select{min-height:36px;border:1px solid #71404a;border-radius:8px;background:#160c0f;color:#fff;padding:5px 8px}
.format-color{width:42px;height:36px;padding:2px;border:1px solid #71404a;border-radius:8px;background:#160c0f;cursor:pointer}
.format-button{min-width:38px;min-height:36px;border:1px solid #71404a;border-radius:8px;background:#241116;color:#fff;cursor:pointer;font-size:16px}
.format-button:hover,.format-button.active{background:#8d263d;border-color:#d85a76}
.format-button.active{box-shadow:0 0 0 2px rgba(216,90,118,.25)}
.format-reset{width:auto;padding:0 10px;font-size:12px}
.messages .msg .text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.35}
@media(max-width:760px){body.chat-page .chat-main{grid-template-rows:auto minmax(0,1fr) auto auto auto}.text-format-toolbar{gap:6px;padding:7px 8px}.text-format-toolbar label{display:none}.format-select{max-width:105px}.format-reset{padding:0 8px}.composer input#message{min-width:0}}

/* Würfel- und Glücksradspiele */
.game-top-button{margin-left:7px;padding:8px 11px!important;white-space:nowrap}.chat-game-modal[hidden]{display:none!important}.chat-game-modal{position:fixed;z-index:1500;inset:0;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.82)}.chat-game-dialog{position:relative;width:min(470px,100%);padding:25px;border:1px solid #8a3949;border-radius:18px;background:linear-gradient(160deg,#2a1017,#15090d);box-shadow:0 25px 75px #000;text-align:center}.chat-game-dialog h2{margin:0 42px 7px}.chat-game-close{position:absolute;right:12px;top:11px;width:38px;height:38px;border:0;border-radius:50%;background:#3a2027;color:#fff;font-size:27px;cursor:pointer}.chat-game-close:hover{background:#a51632}.chat-game-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:20px}.dice-result{display:grid;place-items:center;min-height:150px;margin:18px auto;font-size:94px;font-weight:700;filter:drop-shadow(0 7px 12px #000)}.dice-result.rolling{transform:rotate(8deg) scale(1.05)}.wheel-wrap{position:relative;width:270px;height:285px;margin:12px auto 0}.wheel-pointer{position:absolute;z-index:2;top:-3px;left:50%;transform:translateX(-50%);font-size:34px;color:#fff;text-shadow:0 2px 5px #000}.fortune-wheel{position:absolute;left:7px;top:16px;width:256px;height:256px;border:8px solid #eee;border-radius:50%;background:conic-gradient(#a51632 0 45deg,#f0a12a 45deg 90deg,#176fa6 90deg 135deg,#6ca832 135deg 180deg,#8a2c91 180deg 225deg,#d35d24 225deg 270deg,#207c75 270deg 315deg,#b48b18 315deg 360deg);box-shadow:0 10px 26px #000,inset 0 0 0 4px #2a1017;transition:transform 3s cubic-bezier(.12,.62,.08,1)}.fortune-wheel span{position:absolute;left:50%;top:50%;font-size:20px;font-weight:800;text-shadow:0 1px 4px #000;transform-origin:0 0}.fortune-wheel span:nth-child(1){transform:rotate(22.5deg) translate(72px) rotate(-22.5deg)}.fortune-wheel span:nth-child(2){transform:rotate(67.5deg) translate(72px) rotate(-67.5deg)}.fortune-wheel span:nth-child(3){transform:rotate(112.5deg) translate(72px) rotate(-112.5deg)}.fortune-wheel span:nth-child(4){transform:rotate(157.5deg) translate(72px) rotate(-157.5deg)}.fortune-wheel span:nth-child(5){transform:rotate(202.5deg) translate(72px) rotate(-202.5deg)}.fortune-wheel span:nth-child(6){transform:rotate(247.5deg) translate(72px) rotate(-247.5deg)}.fortune-wheel span:nth-child(7){transform:rotate(292.5deg) translate(72px) rotate(-292.5deg)}.fortune-wheel span:nth-child(8){transform:rotate(337.5deg) translate(72px) rotate(-337.5deg)}.wheel-result{min-height:28px;font-size:20px;font-weight:700}.game-modal-open{overflow:hidden!important}@media(max-width:760px){.topbar{align-items:flex-start}.navlinks{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.game-top-button{margin-left:0!important;font-size:0;width:42px;height:42px;padding:0!important}.game-top-button::first-letter{font-size:20px}.chat-game-dialog{padding:21px 14px}.wheel-wrap{transform:scale(.9);margin-top:-2px;margin-bottom:-18px}}

/* Einstellbare Wunschbox- und Homepage-Buttons */
.chat-link-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;white-space:nowrap;margin-left:7px;padding:8px 11px!important}
@media(max-width:760px){.chat-link-button{margin-left:0!important;padding:8px 9px!important;font-size:13px}}


/* Wunschbox als kleines eingebettetes Popup direkt im Chat */
.wunschbox-modal[hidden]{display:none!important}
.wunschbox-modal{position:fixed;z-index:1700;inset:0;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.72)}
.wunschbox-dialog{display:flex;flex-direction:column;width:390px;max-width:calc(100vw - 24px);height:370px;max-height:calc(100vh - 24px);overflow:hidden;border:1px solid #8a3949;border-radius:14px;background:#16090d;box-shadow:0 25px 80px #000}
.wunschbox-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:8px 10px 8px 14px;border-bottom:1px solid #67313b;background:linear-gradient(160deg,#35131c,#1c0b10)}
.wunschbox-dialog-head h2{margin:0;font-size:18px}
.wunschbox-close{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#3a2027;color:#fff;font-size:25px;cursor:pointer}
.wunschbox-close:hover{background:#a51632}
.wunschbox-dialog iframe{display:block;flex:1;width:100%;height:320px;border:0;background:#fff}
.wunschbox-open{overflow:hidden!important}
@media(max-width:430px){.wunschbox-modal{padding:8px}.wunschbox-dialog{width:100%;height:min(370px,calc(100vh - 16px));max-width:none}.wunschbox-dialog iframe{height:auto}}

/* Wunschbox: Moderator-Verwaltung sichtbar und erreichbar */
.wunschbox-head-actions{display:flex;align-items:center;gap:8px}
.wunschbox-modi-link{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 10px;border:1px solid #8a4654;border-radius:8px;background:#4a1d29;color:#fff!important;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}
.wunschbox-modi-link:hover{background:#7d2639}
.wunschbox-dialog.wunschbox-modi-dialog{width:620px;height:520px}
.wunschbox-dialog.wunschbox-modi-dialog iframe{height:470px;overflow:auto}
@media(max-width:680px){.wunschbox-dialog.wunschbox-modi-dialog{width:calc(100vw - 16px);height:calc(100vh - 24px)}.wunschbox-modi-link{font-size:0;width:36px;padding:0}.wunschbox-modi-link::before{content:"⚙";font-size:18px}.wunschbox-dialog.wunschbox-modi-dialog iframe{height:auto}}


/* Breitere Benutzerliste und sichere Darstellung langer Namen */
body.chat-page .user-name-row{
  width:100%;
  flex-wrap:nowrap;
}
body.chat-page .user-name-row .online{
  flex:0 0 9px;
}
body.chat-page .user-display-name{
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.chat-page .user-name-row .chat-status,
body.chat-page .user-name-row .moderation-menu-wrap{
  flex:0 0 auto;
}
@media(max-width:760px){
  body.chat-page .sidebar{
    width:min(94vw,430px)!important;
    max-width:430px!important;
  }
}

/* Benutzerliste: feste Flaeche mit eigener Scrollbar */
body.chat-page .sidebar{
  overflow:hidden!important;
}
body.chat-page .sidebar-head{
  position:sticky;
  top:0;
  z-index:12;
  background:rgba(28,10,15,.99);
  padding:4px 2px 8px;
}
body.chat-page #users{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#a51632 #251117;
  padding-right:4px;
}
body.chat-page #users::-webkit-scrollbar{
  width:9px;
}
body.chat-page #users::-webkit-scrollbar-track{
  background:#251117;
  border-radius:8px;
}
body.chat-page #users::-webkit-scrollbar-thumb{
  background:#a51632;
  border-radius:8px;
  border:2px solid #251117;
}
body.chat-page #users::-webkit-scrollbar-thumb:hover{
  background:#cf294d;
}
body.chat-page #users .user:last-child{
  border-bottom:0;
}
@media(max-width:760px){
  body.chat-page #users{
    -webkit-overflow-scrolling:touch;
    padding-bottom:max(12px,env(safe-area-inset-bottom));
  }
}

/* Adminbereich: ausgeglichene zweispaltige Anordnung */
body.admin-page .admin-dashboard-grid{grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);align-items:start}
body.admin-page .admin-settings-card{grid-column:1;grid-row:1 / span 2}
body.admin-page .admin-smiley-upload-card{grid-column:2;grid-row:1}
body.admin-page .admin-design-card{grid-column:2;grid-row:2}
body.admin-page .admin-design-card .design-upload-grid{grid-template-columns:1fr}
body.admin-page .admin-design-card .design-preview,body.admin-page .admin-design-card .design-empty{height:125px}
body.admin-page .admin-smiley-upload-card h2,body.admin-page .admin-design-card h2{margin-top:0}
@media(max-width:900px){body.admin-page .admin-dashboard-grid{grid-template-columns:1fr}body.admin-page .admin-settings-card,body.admin-page .admin-smiley-upload-card,body.admin-page .admin-design-card{grid-column:1;grid-row:auto}body.admin-page .admin-design-card .design-upload-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){body.admin-page .admin-design-card .design-upload-grid{grid-template-columns:1fr}}

/* Adminbereich: Smiley-Verwaltung und Design-Grafiken fest untereinander rechts */
.admin-dashboard-grid{align-items:start;}
.admin-right-stack{display:flex;flex-direction:column;gap:18px;min-width:0;}
.admin-right-stack .admin-card{width:100%;margin:0;}
.admin-right-stack .design-upload-grid{grid-template-columns:1fr;}
@media (max-width:900px){.admin-right-stack{display:flex;gap:14px;}}


/* Neutraler Verkaufsversion-Design-Override */
/* Neutrales Verkaufsdesign */
:root{
  --neutral-bg:#101318;
  --neutral-panel:rgba(26,30,37,.92);
  --neutral-panel-strong:rgba(22,25,31,.98);
  --neutral-panel-soft:rgba(255,255,255,.055);
  --neutral-border:rgba(255,255,255,.13);
  --neutral-border-strong:rgba(255,255,255,.20);
  --neutral-text:#f4f6f8;
  --neutral-muted:#aeb6c2;
  --neutral-accent:#5e718c;
  --neutral-accent-hover:#7086a4;
  --neutral-success:#4bc78a;
  --neutral-danger:#c85b6a;
}
html,body{background:var(--neutral-bg);color:var(--neutral-text)}
body{
  background:
    radial-gradient(circle at 18% 0%,rgba(103,119,145,.20),transparent 32%),
    radial-gradient(circle at 100% 18%,rgba(255,255,255,.05),transparent 28%),
    linear-gradient(145deg,#171b22 0%,#0f1217 58%,#0b0d11 100%) fixed;
}
.card,.admin-card,.design-upload-box,.smiley-admin-item{
  background:var(--neutral-panel);
  border-color:var(--neutral-border);
  box-shadow:0 18px 46px rgba(0,0,0,.30);
}
.auth{background:var(--neutral-panel)!important}
.brand h1,.navlinks a{color:var(--neutral-text)}
.brand p,.muted,.field label,.msg .meta{color:var(--neutral-muted)}
.btn,.tabs button{
  background:var(--neutral-accent);
  color:#fff;
  box-shadow:none;
}
.btn:hover,.tabs button:hover{background:var(--neutral-accent-hover)}
.tabs button.secondary,.btn.secondary{background:#343b46}
.btn.danger{background:var(--neutral-danger)}
.field input,.field select,.field textarea,.composer input{
  background:#12161c;
  border-color:var(--neutral-border-strong);
  color:var(--neutral-text);
}
.notice{background:rgba(94,113,140,.18);border:1px solid rgba(112,134,164,.32)}
.notice.error{background:rgba(200,91,106,.16);border-color:rgba(200,91,106,.38)}
.topbar,.composer,.smiley-panel{border-color:var(--neutral-border)}
.composer{background:var(--neutral-panel-strong)}
.sidebar{background:rgba(20,24,30,.88)}
.user{border-color:rgba(255,255,255,.08)}
.online{background:var(--neutral-success)}
table th,table td{border-color:rgba(255,255,255,.10)}
.player-badge,.smiley-tabs button,.status-badge{background:rgba(255,255,255,.08);color:var(--neutral-text)}
.smiley-tabs button.active{background:rgba(94,113,140,.55)}
.radio-player{background:rgba(18,22,28,.88);border-color:var(--neutral-border)}
.radio-player .azura-embed{background:#11151a}
.msg,.msg.mine{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.chat-page .messages{background:rgba(12,15,19,.30)}
body.login-page{
  background-image:
    linear-gradient(rgba(10,13,17,.48),rgba(10,13,17,.68)),
    var(--login-page-bg,none),
    linear-gradient(145deg,#171b22 0%,#0f1217 58%,#0b0d11 100%)!important;
}
body.login-page .auth{
  background:rgba(25,29,36,.82)!important;
  border-color:var(--neutral-border)!important;
  box-shadow:0 22px 60px rgba(0,0,0,.34)!important;
}
body.chat-page .chat-main,
body.chat-page .sidebar{
  background:rgba(20,24,30,.78);
  border-color:var(--neutral-border);
}
body.chat-page .smiley-panel{background:rgba(20,24,30,.97)}
.design-preview,.design-empty{background:#12161c;border-color:var(--neutral-border-strong)}
@media(max-width:760px){
  .sidebar{background:rgba(18,22,28,.98)}
  body.login-page .auth{background:rgba(25,29,36,.88)!important}
}


/* Kick- und Bannfunktionen für Moderatoren */
.user-line{display:flex;align-items:center;gap:6px;min-width:0}
.moderation-actions{display:flex;gap:6px;margin-top:7px;flex-wrap:wrap}
.mod-btn{appearance:none;border:1px solid rgba(255,255,255,.18);border-radius:7px;padding:5px 9px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;color:#fff;background:rgba(255,255,255,.08)}
.mod-btn:hover{filter:brightness(1.15)}
.mod-btn:disabled{opacity:.55;cursor:wait}
.mod-btn.kick{background:#9a6700}
.mod-btn.ban{background:#a82020}

/* Finale Funktionskorrekturen der neutralen Verkaufsversion */
body.chat-page .messages .msg .text{color:inherit}
body.chat-page .chat-layout{grid-template-columns:minmax(0,1fr) 390px}
body.chat-page #users{overflow-y:auto;overflow-x:hidden;min-height:0}
@media(max-width:760px){body.chat-page .chat-layout{display:block}body.chat-page .sidebar{width:min(430px,100%);max-width:100%}}

/* Adminpanel: Smiley-Upload direkt unter Benutzer, Smiley-Raster mit eigener Scrollbar */
body.admin-page .admin-dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);
  gap:18px;
  align-items:start;
}
body.admin-page .admin-left-stack,
body.admin-page .admin-right-stack{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
}
body.admin-page .admin-left-stack > .admin-card,
body.admin-page .admin-right-stack > .admin-card{
  width:100%;
  margin:0;
  grid-column:auto;
  grid-row:auto;
}
body.admin-page .admin-left-stack .admin-design-card .design-upload-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  align-items:start;
}
body.admin-page .admin-left-stack .admin-design-card .design-upload-box{min-width:0;height:100%;}
body.admin-page .admin-smiley-management-grid{margin-top:18px;width:100%;}
body.admin-page .admin-smiley-list-card{min-width:0;}
body.admin-page .smiley-admin-toolbar{
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(150px,.65fr);
  gap:10px;
  margin:0 0 10px;
}
body.admin-page .smiley-admin-toolbar input,
body.admin-page .smiley-admin-toolbar select{width:100%;margin:0;}
body.admin-page .admin-smiley-list-card .smiley-admin-grid.compact{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(155px,1fr));
  gap:10px;
  max-height:520px;
  overflow-y:auto;
  overflow-x:hidden;
  padding:4px 8px 4px 2px;
  align-content:start;
  scrollbar-width:thin;
  scrollbar-color:var(--neutral-accent,#5e718c) #12161c;
}
body.admin-page .admin-smiley-list-card .smiley-admin-grid.compact::-webkit-scrollbar{width:9px;}
body.admin-page .admin-smiley-list-card .smiley-admin-grid.compact::-webkit-scrollbar-track{background:#12161c;border-radius:10px;}
body.admin-page .admin-smiley-list-card .smiley-admin-grid.compact::-webkit-scrollbar-thumb{background:var(--neutral-accent,#5e718c);border-radius:10px;border:2px solid #12161c;}
body.admin-page .admin-smiley-list-card .smiley-admin-item.compact{min-width:0;padding:9px;}
@media(max-width:900px){body.admin-page .admin-dashboard-grid{grid-template-columns:1fr;}}
@media(max-width:720px){
  body.admin-page .admin-left-stack .admin-design-card .design-upload-grid{grid-template-columns:1fr;}
  body.admin-page .smiley-admin-toolbar{grid-template-columns:1fr;}
}
.update-card{margin-bottom:18px;border:1px solid rgba(110,150,210,.35)}
.update-card code{background:rgba(0,0,0,.22);padding:2px 6px;border-radius:5px}


/* Verkaufsversion: Smileys immer in einem stabilen 5er-Raster. */
body.chat-page #smileyLists .smiley-category[hidden]{display:none!important}
body.chat-page #smileyLists .smiley-category:not([hidden]){display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:8px!important;width:100%!important;align-items:center!important}
body.chat-page #smileyLists .smiley-category:not([hidden])>button.smiley{display:flex!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;box-sizing:border-box!important;align-items:center!important;justify-content:center!important}
body.chat-page #smileyLists .smiley-category:not([hidden])>button.smiley img{max-width:100%!important}
body.chat-page .messages .msg .text .chat-smiley,body.chat-page .messages .msg .text .chat-gif,body.chat-page .messages .msg .text .builtin-chat-smiley{display:inline-flex!important;vertical-align:middle!important;margin:2px!important;max-width:calc(20% - 6px)!important}
@media(max-width:420px){body.chat-page #smileyLists .smiley-category:not([hidden]){gap:5px!important}}

/* Privatnachrichten: Auswahl und Nachrichten stehen sauber untereinander. */
body.chat-page .private-recipient-row{display:flex;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid rgba(255,255,255,.12);background:rgba(20,24,30,.98)}
body.chat-page .private-recipient-row label{font-size:12px;font-weight:700;color:var(--neutral-muted,#c7cbd1);white-space:nowrap}
body.chat-page #recipientUser{min-width:0;max-width:280px;padding:8px 10px;border:1px solid var(--neutral-border-strong,#56606d);border-radius:8px;background:#161a20;color:#fff}
body.chat-page .private-reset{padding:8px 10px;margin-left:auto}
body.chat-page .private-message{display:block!important;width:100%;margin:8px 0!important;border-left:4px solid var(--neutral-accent,#5e718c);background:linear-gradient(90deg,rgba(49,58,71,.96),rgba(30,35,43,.96))!important}
body.chat-page .private-message.mine{background:linear-gradient(90deg,rgba(61,72,88,.98),rgba(39,46,57,.98))!important}
body.chat-page .private-label{display:inline-flex;align-items:center;margin-left:6px;padding:2px 7px;border-radius:999px;background:var(--neutral-accent,#5e718c);color:#fff;font-size:11px;font-weight:700}
body.chat-page .user-bottom-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:3px}
body.chat-page .private-message-button{border:1px solid var(--neutral-border-strong,#667180);border-radius:7px;padding:4px 8px;background:#2a3039;color:#fff;font-size:12px;font-weight:700;cursor:pointer}
body.chat-page .private-message-button:hover{filter:brightness(1.18)}
body.chat-page.private-compose-active .composer{border-top-color:var(--neutral-accent,#5e718c);background:rgba(36,42,51,.98)}
@media(max-width:760px){body.chat-page .private-recipient-row{padding:7px 8px;flex-wrap:wrap}body.chat-page .private-recipient-row label{width:100%}body.chat-page #recipientUser{flex:1;max-width:none}body.chat-page .private-reset{margin-left:0}}

/* Eingabefeld-Fix 1.0.3: verhindert unsichtbare Ebenen ueber der Schreibleiste */
body.chat-page .composer{
  isolation:isolate;
  pointer-events:auto!important;
}
body.chat-page .composer input#message{
  position:relative!important;
  z-index:2!important;
  pointer-events:auto!important;
  user-select:text!important;
  -webkit-user-select:text!important;
  touch-action:manipulation;
}
body.chat-page .composer button{
  position:relative!important;
  z-index:2!important;
}
body.chat-page .sidebar-overlay{
  display:block;
  visibility:hidden;
  opacity:0;
  pointer-events:none!important;
}
@media(max-width:760px){
  body.chat-page.users-open .sidebar-overlay{
    visibility:visible;
    opacity:1;
    pointer-events:auto!important;
  }
  body.chat-page .chat-main{
    grid-template-rows:auto minmax(0,1fr) auto auto auto!important;
  }
  body.chat-page .smiley-panel.open + .text-format-toolbar{
    position:relative;
  }
}

/* Setup 1.0.5: groesseres, scrollbar erreichbares Setupformular */
html:has(body.setup-page),html:has(body.setup-page) body{height:auto;min-height:100%;overflow:auto}
body.setup-page{min-height:100vh;overflow-y:auto;overflow-x:hidden;background-attachment:fixed}
body.setup-page .shell{width:min(1100px,96vw);height:auto;min-height:100vh;display:block;overflow:visible;padding:24px 16px 48px}
body.setup-page .auth{width:min(820px,100%);max-width:none;margin:18px auto;padding:28px;overflow:visible}
@media(max-width:760px){body.setup-page .shell{width:100%;padding:10px 10px 36px}body.setup-page .auth{margin:0 auto;padding:18px;min-height:auto;border-radius:14px}}

/* Chat-Layout-Fix 1.0.8: volle Browserhoehe nach Verschieben des Players in die Sidebar */
html:has(body.chat-page),
html:has(body.chat-page) body.chat-page{
  width:100%;
  height:100%;
  min-height:100%;
  overflow:hidden;
}
body.chat-page .shell{
  width:min(1800px,96vw);
  height:100vh;
  height:100dvh;
  max-height:100vh;
  max-height:100dvh;
  display:block!important;
  overflow:hidden;
  padding:12px;
}
body.chat-page .chat-layout{
  width:100%;
  height:100%!important;
  min-height:0!important;
  display:grid;
  grid-template-columns:minmax(0,1fr) 390px;
  grid-template-rows:minmax(0,1fr)!important;
  align-items:stretch;
  overflow:hidden;
}
body.chat-page .chat-main,
body.chat-page .sidebar{
  height:100%!important;
  min-height:0!important;
}
body.chat-page .chat-main{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto auto auto!important;
  overflow:hidden!important;
}
body.chat-page .messages{
  min-height:0!important;
  height:auto!important;
  overflow-y:auto!important;
}
body.chat-page .sidebar{
  overflow:hidden!important;
}
body.chat-page #users{
  flex:1 1 auto;
  min-height:0!important;
  overflow-y:auto!important;
}
@media(max-width:760px){
  body.chat-page .shell{
    width:100%;
    height:100vh;
    height:100dvh;
    max-height:100vh;
    max-height:100dvh;
    padding:0;
  }
  body.chat-page .chat-layout{
    display:block;
    height:100%!important;
  }
  body.chat-page .chat-main{
    height:100%!important;
  }
  body.chat-page .sidebar{
    height:100dvh!important;
    overflow-y:auto!important;
  }
}

/* Radiochat 1.0.9: Chat vollstaendig an Browserfenster anpassen */
body.chat-page .shell{
  width:100vw;
  max-width:none;
  margin:0;
  padding:8px;
}
body.chat-page .chat-layout{
  width:100%;
  grid-template-columns:minmax(0,1fr) clamp(260px,20vw,360px);
  gap:8px;
}
body.chat-page .chat-main,
body.chat-page .sidebar{
  border-radius:10px;
}
body.chat-page .topbar{
  gap:8px;
  padding:10px 12px;
}
body.chat-page .navlinks{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
body.chat-page .navlinks a{
  margin-left:0;
}
body.chat-page .messages{
  width:100%;
}
body.chat-page .composer{
  width:100%;
}
body.chat-page .sidebar{
  width:100%;
  overflow-y:auto;
  overflow-x:hidden;
}
@media(max-width:1100px){
  body.chat-page .chat-layout{
    grid-template-columns:minmax(0,1fr) clamp(220px,24vw,300px);
  }
  body.chat-page .topbar{font-size:14px}
  body.chat-page .navlinks .btn,
  body.chat-page .navlinks a{padding:8px 10px}
}
@media(max-width:760px){
  body.chat-page .shell{
    width:100%;
    padding:0;
  }
  body.chat-page .chat-layout{
    display:block;
    width:100%;
    height:100%;
  }
  body.chat-page .chat-main{
    width:100%;
    height:100%;
    border-radius:0;
  }
  body.chat-page .topbar{
    min-height:0;
    flex-wrap:wrap;
    align-items:flex-start;
  }
  body.chat-page .navlinks{
    width:100%;
    justify-content:flex-start;
  }
  body.chat-page .sidebar{
    width:auto;
    height:auto;
    border-radius:0;
  }
}

/* Radiochat 1.0.11: Nachrichten sichtbar ueber dem Chat-Hintergrund */
body.chat-page .messages{position:relative!important;isolation:isolate}
body.chat-page .chat-design-image{position:absolute!important;inset:0!important;top:0!important;left:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;object-fit:cover!important;object-position:center center!important;z-index:0!important;pointer-events:none!important}
body.chat-page .messages>.msg{position:relative!important;z-index:2!important}


/* Radiochat 1.0.12 - modernes Würfelspiel und Glücksrad */
.game-top-button{position:relative;overflow:hidden;border-color:rgba(255,255,255,.12)!important;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.035))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 4px 14px rgba(0,0,0,.22);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.game-top-button:hover{transform:translateY(-1px);border-color:rgba(255,119,148,.45)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 22px rgba(0,0,0,.3),0 0 0 1px rgba(165,22,50,.16)}
.chat-game-modal{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);background:radial-gradient(circle at 50% 40%,rgba(100,23,47,.24),rgba(0,0,0,.86) 62%)!important;animation:gameModalFade .2s ease both}
.game-dialog-modern{isolation:isolate;width:min(520px,calc(100vw - 24px))!important;overflow:hidden;padding:28px 28px 24px!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:26px!important;background:linear-gradient(145deg,rgba(37,14,21,.98),rgba(16,10,14,.98))!important;box-shadow:0 30px 90px rgba(0,0,0,.65),0 0 0 1px rgba(165,22,50,.14),inset 0 1px 0 rgba(255,255,255,.06)!important;animation:gameDialogIn .3s cubic-bezier(.2,.8,.2,1) both}
.game-dialog-modern:before{content:"";position:absolute;z-index:-1;inset:-140px -70px auto;height:260px;background:radial-gradient(circle,rgba(180,30,66,.2),transparent 68%);pointer-events:none}.game-kicker{margin-bottom:5px;color:#c88a99;font-size:10px;font-weight:800;letter-spacing:.18em}.game-dialog-modern h2{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 42px 5px!important;font-size:25px;letter-spacing:-.02em}.game-title-icon{display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}.game-subtitle{margin:0 auto 18px;color:#bca9ae;font-size:13px}.game-dialog-modern .chat-game-close{z-index:5;right:14px;top:14px;width:39px;height:39px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);font-size:24px;line-height:1;transition:.18s ease}.game-dialog-modern .chat-game-close:hover{transform:rotate(5deg);border-color:rgba(255,118,145,.45);background:rgba(165,22,50,.42)}
.dice-stage{position:relative;display:grid;place-items:center;min-height:205px;margin:4px 0 12px}.dice-glow{position:absolute;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,rgba(190,32,73,.28),rgba(115,22,50,.08) 45%,transparent 72%);filter:blur(5px);animation:diceGlow 2.4s ease-in-out infinite}.dice-result{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;width:170px;height:170px;min-height:0!important;margin:0!important;border:1px solid rgba(255,255,255,.18);border-radius:36px;background:linear-gradient(145deg,#fff,#d9d9dc);box-shadow:0 22px 45px rgba(0,0,0,.5),inset 0 2px 2px rgba(255,255,255,.9),inset 0 -10px 24px rgba(80,80,90,.12);filter:none!important;color:#1b1115;transform:rotate(-2deg);transition:transform .18s ease,box-shadow .18s ease}.dice-result .dice-face{font-size:105px;line-height:.88;font-family:"Segoe UI Symbol","Arial Unicode MS",sans-serif;color:#24151b;text-shadow:0 2px 0 rgba(255,255,255,.7)}.dice-result .dice-number{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:5px 10px;border-radius:999px;background:#24151b;color:#fff;font-size:11px;font-weight:800;letter-spacing:.03em}.dice-result.rolling{animation:diceRollModern .15s linear infinite;box-shadow:0 28px 60px rgba(0,0,0,.58),0 0 32px rgba(190,32,73,.28)}.dice-result.landed{animation:diceLand .6s cubic-bezier(.2,.8,.2,1)}.game-status{min-height:39px;display:flex;align-items:center;justify-content:center;margin:0 auto 5px;padding:8px 14px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.035);color:#d5c8cc;font-size:12px}
.wheel-dialog{width:min(560px,calc(100vw - 24px))!important}.wheel-stage{position:relative;display:grid;place-items:center;min-height:330px;margin:-4px 0 0}.wheel-halo{position:absolute;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,rgba(180,30,66,.22),rgba(17,91,158,.12) 38%,transparent 70%);filter:blur(9px)}.wheel-wrap{position:relative!important;width:306px!important;height:315px!important;margin:0 auto!important;transform:none!important}.wheel-pointer{z-index:8!important;top:-1px!important;left:50%!important;width:42px;height:47px;transform:translateX(-50%)!important;font-size:0!important;color:transparent!important;filter:drop-shadow(0 5px 6px rgba(0,0,0,.55))}.wheel-pointer:before{content:"";position:absolute;left:50%;top:0;width:28px;height:28px;transform:translateX(-50%) rotate(45deg);border-radius:7px 7px 13px 7px;background:linear-gradient(145deg,#fff,#d9d9df);box-shadow:inset 0 1px 0 #fff}.wheel-pointer span{position:absolute;z-index:2;left:50%;top:8px;width:8px;height:8px;transform:translateX(-50%);border-radius:50%;background:#a51632}.fortune-wheel{left:8px!important;top:18px!important;width:290px!important;height:290px!important;border:7px solid #e7e7ea!important;background:conic-gradient(#bd2447 0 45deg,#e9a02f 45deg 90deg,#2479b8 90deg 135deg,#67a43d 135deg 180deg,#783f94 180deg 225deg,#d65d32 225deg 270deg,#238c81 270deg 315deg,#c49a27 315deg 360deg)!important;box-shadow:0 20px 50px rgba(0,0,0,.55),0 0 0 5px rgba(255,255,255,.05),inset 0 0 0 2px rgba(0,0,0,.25)!important;transition:transform 3s cubic-bezier(.12,.62,.08,1)!important}.fortune-wheel:after{content:"";position:absolute;inset:11px;border:1px solid rgba(255,255,255,.18);border-radius:50%;pointer-events:none}.fortune-wheel span{left:50%!important;top:50%!important;width:75px;color:#fff;font-size:10px!important;font-weight:900!important;line-height:1.05;text-align:center;text-transform:uppercase;letter-spacing:.025em;text-shadow:0 2px 5px rgba(0,0,0,.7)!important;transform-origin:0 0!important}.fortune-wheel span b{display:block;transform:translate(-50%,-50%);font:inherit}.fortune-wheel span:nth-child(1){transform:rotate(22.5deg) translate(92px) rotate(-22.5deg)!important}.fortune-wheel span:nth-child(2){transform:rotate(67.5deg) translate(92px) rotate(-67.5deg)!important}.fortune-wheel span:nth-child(3){transform:rotate(112.5deg) translate(92px) rotate(-112.5deg)!important}.fortune-wheel span:nth-child(4){transform:rotate(157.5deg) translate(92px) rotate(-157.5deg)!important}.fortune-wheel span:nth-child(5){transform:rotate(202.5deg) translate(92px) rotate(-202.5deg)!important}.fortune-wheel span:nth-child(6){transform:rotate(247.5deg) translate(92px) rotate(-247.5deg)!important}.fortune-wheel span:nth-child(7){transform:rotate(292.5deg) translate(92px) rotate(-292.5deg)!important}.fortune-wheel span:nth-child(8){transform:rotate(337.5deg) translate(92px) rotate(-337.5deg)!important}.wheel-center{position:absolute;z-index:3;left:50%;top:50%;display:grid;place-items:center;width:58px;height:58px;transform:translate(-50%,-50%);border:5px solid #f1f1f3;border-radius:50%;background:radial-gradient(circle at 35% 30%,#8e1b38,#48101f 70%);box-shadow:0 5px 14px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.25);color:#fff;font-style:normal;font-size:24px}.fortune-wheel.spinning{filter:saturate(1.12) brightness(1.06)}.modern-result{display:flex!important;align-items:center;justify-content:space-between;gap:16px;min-height:58px!important;margin:0 auto;padding:10px 14px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.025));font-size:14px!important}.modern-result .result-label{color:#9f8f94;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.modern-result strong{color:#fff;font-size:18px}.modern-result.winner-pop{animation:winnerPop .6s cubic-bezier(.2,.9,.3,1)}
.modern-game-actions{margin-top:15px!important}.modern-game-actions .btn{min-height:44px;padding:10px 16px!important;border-radius:12px!important;font-weight:800}.game-primary{border-color:#b92b4e!important;background:linear-gradient(180deg,#b32347,#861a35)!important;box-shadow:0 8px 20px rgba(139,20,49,.28),inset 0 1px 0 rgba(255,255,255,.15)!important}.game-primary:hover{filter:brightness(1.08);transform:translateY(-1px)}.game-primary:disabled{filter:grayscale(.5);opacity:.55;transform:none}.game-share{background:rgba(255,255,255,.055)!important;border-color:rgba(255,255,255,.1)!important}.game-share:not(:disabled):hover{background:rgba(255,255,255,.09)!important}.game-share:disabled{opacity:.38}.modern-game-actions .btn span{margin-right:5px}
@keyframes gameModalFade{from{opacity:0}to{opacity:1}}@keyframes gameDialogIn{from{opacity:0;transform:translateY(12px) scale(.975)}to{opacity:1;transform:none}}@keyframes diceGlow{0%,100%{transform:scale(.92);opacity:.65}50%{transform:scale(1.08);opacity:1}}@keyframes diceRollModern{0%{transform:rotate(-5deg) translateY(0) scale(.98)}50%{transform:rotate(5deg) translateY(-5px) scale(1.02)}100%{transform:rotate(-5deg) translateY(0) scale(.98)}}@keyframes diceLand{0%{transform:scale(.88) rotate(-8deg)}55%{transform:scale(1.08) rotate(3deg)}100%{transform:rotate(-2deg)}}@keyframes winnerPop{0%{transform:scale(.96);box-shadow:0 0 0 rgba(190,32,73,0)}50%{transform:scale(1.025);box-shadow:0 0 26px rgba(190,32,73,.22)}100%{transform:none;box-shadow:none}}
@media(max-width:560px){.game-dialog-modern{padding:23px 15px 18px!important;border-radius:20px!important}.game-dialog-modern h2{font-size:21px}.game-kicker{font-size:9px}.dice-stage{min-height:178px}.dice-result{width:145px;height:145px;border-radius:30px}.dice-result .dice-face{font-size:88px}.wheel-stage{min-height:282px}.wheel-wrap{width:268px!important;height:276px!important}.fortune-wheel{left:7px!important;width:254px!important;height:254px!important}.fortune-wheel span{font-size:8px!important;width:64px}.fortune-wheel span:nth-child(1){transform:rotate(22.5deg) translate(80px) rotate(-22.5deg)!important}.fortune-wheel span:nth-child(2){transform:rotate(67.5deg) translate(80px) rotate(-67.5deg)!important}.fortune-wheel span:nth-child(3){transform:rotate(112.5deg) translate(80px) rotate(-112.5deg)!important}.fortune-wheel span:nth-child(4){transform:rotate(157.5deg) translate(80px) rotate(-157.5deg)!important}.fortune-wheel span:nth-child(5){transform:rotate(202.5deg) translate(80px) rotate(-202.5deg)!important}.fortune-wheel span:nth-child(6){transform:rotate(247.5deg) translate(80px) rotate(-247.5deg)!important}.fortune-wheel span:nth-child(7){transform:rotate(292.5deg) translate(80px) rotate(-292.5deg)!important}.fortune-wheel span:nth-child(8){transform:rotate(337.5deg) translate(80px) rotate(-337.5deg)!important}.modern-game-actions{display:grid!important;grid-template-columns:1fr!important}.modern-game-actions .btn{width:100%}.modern-result{min-height:52px!important}.modern-result strong{font-size:16px}}

/* FIX V3 2026-08-07: Hintergrund direkt am Scrollcontainer.
   background-attachment:scroll haelt das Bild am Nachrichtenfenster fest,
   waehrend nur der Inhalt von .messages scrollt. Kein Overlay/Wrapper. */
body.chat-page .messages{
  background-color:#11080a;
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  background-attachment:scroll;
}

/* SonicPanel Live-Informationen (Port 8006) */
body.chat-page .sonic-live-card{
  flex:0 0 auto;
  margin:0;
  padding:10px!important;
  border-radius:12px;
  overflow:hidden;
}
body.chat-page .sonic-live-head{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:9px;
}
body.chat-page .sonic-live-head>div{display:flex;flex-direction:column;min-width:0}
body.chat-page .sonic-live-head strong{font-size:.9rem;line-height:1.2}
body.chat-page .sonic-live-head span:not(.sonic-live-dot){font-size:.68rem;color:var(--muted,#d8cbd0);margin-top:1px}
body.chat-page .sonic-live-dot{
  width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#36d57a;
  box-shadow:0 0 0 4px rgba(54,213,122,.13),0 0 12px rgba(54,213,122,.45);
}
body.chat-page .sonic-live-body{
  display:grid;
  grid-template-columns:74px minmax(0,1fr) 50px;
  gap:10px;
  align-items:center;
}
body.chat-page .sonic-cover{
  width:74px;height:74px;border-radius:10px;overflow:hidden;background:rgba(0,0,0,.3);
}
body.chat-page .sonic-cover img{display:block;width:100%!important;height:100%!important;object-fit:cover;border-radius:10px}
body.chat-page .sonic-live-info{min-width:0}
body.chat-page .sonic-meta-label{font-size:.64rem;text-transform:uppercase;letter-spacing:.07em;opacity:.68}
body.chat-page .sonic-title{
  min-height:1.25em;margin:1px 0 5px;font-size:.88rem;font-weight:800;line-height:1.25;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.chat-page .sonic-dj-line{display:flex;align-items:baseline;gap:6px;min-width:0;font-size:.76rem}
body.chat-page .sonic-dj-line strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.chat-page .sonic-stats{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:7px;font-size:.7rem;opacity:.88}
body.chat-page .sonic-dj-profile{
  width:50px;height:50px;align-self:start;border-radius:50%;overflow:hidden;background:rgba(0,0,0,.28);
}
body.chat-page .sonic-dj-profile:empty{display:none}
body.chat-page .sonic-dj-profile img{display:block;width:100%!important;height:100%!important;object-fit:cover;border-radius:50%}
@media(max-width:760px){
  body.chat-page .sonic-live-card{margin:0 0 8px}
  body.chat-page .sonic-live-body{grid-template-columns:62px minmax(0,1fr) 44px;gap:8px}
  body.chat-page .sonic-cover{width:62px;height:62px}
  body.chat-page .sonic-dj-profile{width:44px;height:44px}
  body.chat-page .sonic-title{font-size:.82rem}
  body.chat-page .sonic-stats{font-size:.66rem;gap:3px 8px}
}


/* BENUTZERVERWALTUNG KOMPAKT FINAL */
@media (max-width: 1100px) {
  table.compact-users {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:visible !important;
    table-layout:auto !important;
  }

  table.compact-users thead {
    display:none !important;
  }

  table.compact-users tbody {
    display:block !important;
    width:100% !important;
  }

  table.compact-users tr {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    padding:12px 0 !important;
    border-bottom:1px solid rgba(255,255,255,.12) !important;
  }

  table.compact-users td {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    padding:4px 0 !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }

  table.compact-users td:nth-child(1)::before {
    content:"Name: ";
    font-weight:700;
  }

  table.compact-users td:nth-child(2)::before {
    content:"E-Mail: ";
    font-weight:700;
  }

  table.compact-users td:nth-child(3)::before {
    content:"Rolle: ";
    font-weight:700;
  }

  table.compact-users td:nth-child(4)::before {
    content:"Aktion / Passwort: ";
    font-weight:700;
  }

  table.compact-users form {
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:6px !important;
    width:100% !important;
    max-width:100% !important;
    margin-top:4px !important;
  }

  table.compact-users input,
  table.compact-users select,
  table.compact-users button {
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  table.compact-users input[type="password"] {
    flex:1 1 190px !important;
    width:auto !important;
    min-width:0 !important;
  }
}


/* Radiochat: radio-themed fortune wheel */
.fortune-wheel span{width:88px!important;font-size:9px!important;line-height:1.08!important;letter-spacing:0!important;text-transform:none!important}
.fortune-wheel span b{white-space:normal;overflow-wrap:normal;hyphens:auto}
.wheel-center{font-size:25px!important}
@media(max-width:560px){.fortune-wheel span{width:74px!important;font-size:7.5px!important;line-height:1.05!important}}

/* Radiochat 1.0.13 - Radio-Kniffel */
.kniffel-dialog{width:min(760px,96vw)!important;max-height:min(92vh,860px);overflow:auto;text-align:left!important}.kniffel-dialog h2,.kniffel-dialog .game-kicker,.kniffel-dialog .game-subtitle{text-align:center}.kniffel-topline{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:14px 0 9px;padding:9px 12px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.04);font-size:13px}.kniffel-topline strong{color:#fff;font-size:16px}.kniffel-dice{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:11px 0 12px}.kniffel-die{min-width:0;padding:8px 4px 7px;border:2px solid rgba(255,255,255,.14);border-radius:16px;background:linear-gradient(145deg,#fff,#d8d8dc);box-shadow:0 8px 18px rgba(0,0,0,.32);color:#211218;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}.kniffel-die span{display:block;font-family:"Segoe UI Symbol","Arial Unicode MS",sans-serif;font-size:58px;line-height:1}.kniffel-die small{display:block;margin-top:4px;font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.kniffel-die:hover{transform:translateY(-2px)}.kniffel-die.held{border-color:#efb44b;box-shadow:0 0 0 2px rgba(239,180,75,.2),0 8px 18px rgba(0,0,0,.36);transform:translateY(-4px)}.kniffel-die.held small{color:#8b5d05}.kniffel-die.inactive{opacity:.72;cursor:default}.kniffel-dice.rolling .kniffel-die:not(.held){animation:kniffelShake .14s linear infinite}.kniffel-roll-info{display:flex;justify-content:space-between;gap:10px;margin:-1px 2px 10px;color:#bfaeb4;font-size:11px}.kniffel-scorecard{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin:0 0 13px}.kniffel-score{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;padding:7px 10px;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:rgba(255,255,255,.045);color:#eee;text-align:left;cursor:pointer}.kniffel-score:not(:disabled):hover{border-color:rgba(239,180,75,.65);background:rgba(239,180,75,.08)}.kniffel-score strong{display:grid;place-items:center;min-width:34px;height:25px;padding:0 6px;border-radius:8px;background:#35131d;color:#fff}.kniffel-score.used{opacity:.58;background:rgba(255,255,255,.025);cursor:default}.kniffel-score.used strong{background:#18251c;color:#8fd19f}.kniffel-actions{margin-top:12px!important}.kniffel-actions .btn{flex:1 1 150px}.kniffel-dialog .game-status{margin:2px 0 7px!important;text-align:center}.kniffel-dialog .game-subtitle{margin-bottom:6px}@keyframes kniffelShake{0%{transform:rotate(-4deg) translateY(0)}50%{transform:rotate(5deg) translateY(-3px)}100%{transform:rotate(-4deg) translateY(0)}}
@media(max-width:620px){.kniffel-dialog{width:min(97vw,520px)!important;padding:20px 11px 15px!important}.kniffel-dice{gap:4px}.kniffel-die{padding:5px 1px;border-radius:11px}.kniffel-die span{font-size:41px}.kniffel-die small{font-size:0}.kniffel-die small:after{content:'halten';font-size:7px}.kniffel-die.held small:after{content:'gehalten'}.kniffel-scorecard{grid-template-columns:1fr 1fr;gap:4px}.kniffel-score{min-height:34px;padding:5px 7px;font-size:11px}.kniffel-score strong{min-width:29px;height:23px}.kniffel-roll-info{font-size:9px}.kniffel-actions{grid-template-columns:1fr!important}.kniffel-actions .btn{width:100%}}


/* Radio-Quiz */
.quiz-dialog{width:min(560px,calc(100vw - 24px))!important}.quiz-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 13px;padding:10px 13px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.04);color:#d8c2c8;font-size:13px}.quiz-progress strong{color:#fff}.quiz-card{padding:16px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(0,0,0,.2)}.quiz-question{min-height:52px;display:grid;place-items:center;margin-bottom:14px;font-size:19px;font-weight:800;line-height:1.35}.quiz-answers{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quiz-answer{min-height:52px;padding:10px 12px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.06);color:#fff;font:inherit;font-weight:700;cursor:pointer;transition:.16s ease}.quiz-answer:hover:not(:disabled){transform:translateY(-1px);border-color:rgba(255,119,148,.48);background:rgba(165,22,50,.2)}.quiz-answer.correct{border-color:#4bc47b;background:rgba(34,139,78,.28)}.quiz-answer.wrong{border-color:#e95c6f;background:rgba(166,30,50,.32)}.quiz-answer:disabled{cursor:default;opacity:.88}.quiz-feedback{margin-top:12px!important}.quiz-feedback.quiz-good{color:#91e3ae}.quiz-feedback.quiz-bad{color:#ff9eaa}@media(max-width:560px){.quiz-answers{grid-template-columns:1fr}.quiz-question{font-size:17px}.quiz-card{padding:12px}.quiz-answer{min-height:46px}}

/* Hangman Modern */
.hangman-dialog{width:min(620px,calc(100vw - 24px))!important}.hangman-topline{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:5px 0 12px;padding:10px 13px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.04);color:#d8c2c8;font-size:13px}.hangman-topline strong{color:#fff}.hangman-stage{display:flex;align-items:center;gap:14px;margin:0 auto 15px;max-width:420px;padding:10px 14px;border-radius:16px;background:rgba(0,0,0,.18)}.hangman-figure{font-size:38px;filter:drop-shadow(0 5px 12px rgba(0,0,0,.35))}.hangman-meter{height:10px;flex:1;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.09)}.hangman-meter i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#efb44b,#e9506a);transition:width .25s ease}.hangman-word{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:15px 0 18px}.hangman-word span:not(.space){display:grid;place-items:center;width:34px;height:43px;border-bottom:3px solid rgba(255,255,255,.7);font-size:24px;font-weight:900}.hangman-word .space{width:16px}.hangman-keyboard{display:grid;grid-template-columns:repeat(9,1fr);gap:6px;margin:0 auto 13px}.hangman-keyboard button{min-width:0;height:38px;padding:0;border:1px solid rgba(255,255,255,.12);border-radius:9px;background:rgba(255,255,255,.06);color:#fff;font-weight:900;cursor:pointer}.hangman-keyboard button:hover:not(:disabled){transform:translateY(-1px);background:rgba(165,22,50,.24);border-color:rgba(255,119,148,.5)}.hangman-keyboard button.hit{background:rgba(34,139,78,.28);border-color:#4bc47b}.hangman-keyboard button.miss{background:rgba(166,30,50,.3);border-color:#e95c6f;opacity:.6}.hangman-keyboard button:disabled{cursor:default}.hangman-dialog .game-status{text-align:center;margin:10px 0!important}@media(max-width:560px){.hangman-keyboard{grid-template-columns:repeat(7,1fr);gap:5px}.hangman-keyboard button{height:36px;font-size:12px}.hangman-word{gap:5px}.hangman-word span:not(.space){width:27px;height:37px;font-size:19px}.hangman-stage{padding:8px 10px}.hangman-figure{font-size:32px}}

/* Smileybox Layout-Fix: kompaktere Breite + Kategorien ohne horizontale Scrollbar */
body.chat-page #smileyPanel.smiley-panel{
  box-sizing:border-box;
  width:min(920px, calc(100% - 24px)) !important;
  max-width:920px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
body.chat-page #smileyTabs.smiley-tabs{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:6px !important;
  width:100% !important;
  max-width:100% !important;
  overflow-x:visible !important;
  overflow-y:visible !important;
  white-space:normal !important;
  scrollbar-width:none;
}
body.chat-page #smileyTabs.smiley-tabs::-webkit-scrollbar{
  display:none !important;
  width:0 !important;
  height:0 !important;
}
body.chat-page #smileyTabs.smiley-tabs > button{
  flex:0 0 auto !important;
}
@media(max-width:760px){
  body.chat-page #smileyPanel.smiley-panel{
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
}


/* Sprachnachrichten 1.0.13 */
.voice-record-button.recording{box-shadow:0 0 0 3px rgba(255,255,255,.18);animation:voicePulse 1s infinite}
@keyframes voicePulse{50%{transform:scale(1.06)}}
.voice-message{display:flex;flex-direction:column;gap:6px;max-width:440px}
.voice-message .voice-label{font-size:12px;opacity:.82}
.voice-message audio{width:min(100%,380px);height:38px}
@media(max-width:760px){.voice-message audio{width:100%;min-width:210px}.voice-record-button{min-width:44px;padding-left:10px!important;padding-right:10px!important}}

/* Login-Farben: passend zum blauen Radio-Hintergrund (nur Loginseite) */
body.login-page{
  background-color:#050b14 !important;
  background-image:
    linear-gradient(rgba(2,8,18,.34),rgba(2,7,16,.62)),
    var(--login-page-bg,none),
    radial-gradient(circle at top,#12365d 0,#09182b 45%,#030810 100%) !important;
}
body.login-page .auth{
  background:rgba(10,18,29,.88) !important;
  border-color:#30465f !important;
  box-shadow:0 18px 55px rgba(0,0,0,.58),0 0 0 1px rgba(82,143,205,.06) !important;
}
body.login-page .brand p{color:#aebccc !important}
body.login-page .tabs button,
body.login-page .btn{
  background:#607a9c !important;
  color:#fff !important;
}
body.login-page .tabs button:hover,
body.login-page .btn:hover{background:#708caf !important}
body.login-page .tabs button.secondary,
body.login-page .btn.secondary{
  background:#303b4c !important;
  color:#fff !important;
}
body.login-page .tabs button.secondary:hover,
body.login-page .btn.secondary:hover{background:#3d4b60 !important}
body.login-page .field label,
body.login-page .legal-check{color:#c2ccd8 !important}
body.login-page input[type=text],
body.login-page input[type=email],
body.login-page input[type=password],
body.login-page .field input{
  background:#0d141d !important;
  border-color:#465464 !important;
  color:#f4f7fb !important;
}
body.login-page .field input:focus{
  outline:none !important;
  border-color:#7295bf !important;
  box-shadow:0 0 0 3px rgba(114,149,191,.16) !important;
}
body.login-page .text-link{color:#e48ca2 !important}
body.login-page .text-link:hover{color:#ffb0c2 !important}
body.login-page .notice{background:#20334a !important;border-color:#49698e !important}
body.login-page .legal-dialog{
  background:#101a27 !important;
  border-color:#344b65 !important;
  color:#eef3f8 !important;
}

/* 2026-08-18: Radioplayer in der Sidebar - eingebettete Titelanzeige voll sichtbar */
body.chat-page .sidebar .radio-player.compact-player{
  display:grid !important;
  grid-template-columns:58px minmax(0,1fr) !important;
  grid-template-rows:auto auto auto !important;
  column-gap:8px !important;
  row-gap:0 !important;
  overflow:visible !important;
}
body.chat-page .sidebar .radio-player.compact-player .modi-picture-wrap{
  grid-column:1 !important;
  grid-row:1 / span 2 !important;
  align-self:center !important;
}
body.chat-page .sidebar .radio-player.compact-player .player-content{
  display:contents !important;
}
body.chat-page .sidebar .radio-player.compact-player .player-head{
  grid-column:2 !important;
  grid-row:1 !important;
  min-width:0 !important;
}
body.chat-page .sidebar .radio-player.compact-player .now-playing{
  grid-column:2 !important;
  grid-row:2 !important;
  min-width:0 !important;
  margin:2px 0 4px !important;
}
body.chat-page .sidebar .radio-player.compact-player .player-details,
body.chat-page .sidebar .radio-player.compact-player .player-details[hidden],
body.chat-page .sidebar .radio-player.compact-player .player-details-visible{
  grid-column:1 / -1 !important;
  grid-row:3 !important;
  width:100% !important;
  min-width:0 !important;
  margin-top:6px !important;
  overflow:hidden !important;
  border-radius:8px !important;
}
body.chat-page .sidebar .radio-player.compact-player .azura-embed{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:104px !important;
  min-height:104px !important;
  border:0 !important;
}
@media(max-width:760px){
  body.chat-page .sidebar .radio-player.compact-player{
    grid-template-columns:54px minmax(0,1fr) !important;
  }
  body.chat-page .sidebar .radio-player.compact-player .azura-embed{
    height:104px !important;
    min-height:104px !important;
  }
}

/* 2026-08-18: Loginfarben - klares Radio-Blau, vorhandene Schriftfarben bleiben hell */
body.login-page .auth{
  background:rgba(9,17,29,.92) !important;
  border:1px solid rgba(74,126,183,.55) !important;
  box-shadow:0 20px 60px rgba(0,0,0,.62),0 0 28px rgba(20,100,190,.10) !important;
}
body.login-page .tabs button,
body.login-page .btn{
  background:linear-gradient(180deg,#416d9f,#345a86) !important;
  border-color:#557fab !important;
  color:#fff !important;
}
body.login-page .tabs button:hover,
body.login-page .btn:hover{
  background:linear-gradient(180deg,#4c7caf,#3d6898) !important;
}
body.login-page .tabs button.secondary,
body.login-page .btn.secondary{
  background:#273648 !important;
  border-color:#3d536d !important;
  color:#f4f7fb !important;
}
body.login-page .tabs button.secondary:hover,
body.login-page .btn.secondary:hover{
  background:#31445a !important;
}
body.login-page input[type=text],
body.login-page input[type=email],
body.login-page input[type=password],
body.login-page .field input{
  background:rgba(6,12,20,.88) !important;
  border-color:#3e5975 !important;
  color:#f4f7fb !important;
}
body.login-page .field input:focus{
  border-color:#6699cc !important;
  box-shadow:0 0 0 3px rgba(80,145,210,.18) !important;
}
body.login-page .text-link{
  color:#83b8e8 !important;
}
body.login-page .text-link:hover{
  color:#add6fa !important;
}
