/* AnimeRadar V2.4.34 - Community-Chat inklusive Teilbereich-Spoiler */

.community-chat-moderation-button,
.community-chat-online-count {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(244,185,95,.24);
  background: rgba(244,185,95,.055);
  color: #ffe2b0;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}
.community-chat-moderation-button:hover {
  border-color: rgba(244,185,95,.58);
  background: rgba(244,185,95,.11);
  color: #fff6e8;
}
.community-chat-online-count {
  color: #bcecb9;
  border-color: rgba(115,220,108,.23);
  background: rgba(115,220,108,.055);
}
.community-chat-online-count i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #73dc6c;
  box-shadow: 0 0 9px rgba(115,220,108,.72);
}
.community-chat-online-count b { color: #eaffe8; font-variant-numeric: tabular-nums; }


.community-chat-spoiler-notice {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 91, 73, .36);
  border-left: 3px solid #ff5b49;
  background: linear-gradient(90deg, rgba(229, 55, 37, .18), rgba(229, 55, 37, .055));
  color: #ffd8d1;
  box-shadow: inset 0 0 20px rgba(229, 55, 37, .045);
}
.community-chat-spoiler-notice > span:first-child {
  color: #ff8a78;
  font-size: 14px;
  line-height: 1;
}
.community-chat-spoiler-notice strong {
  color: #fff0ed;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}
.community-chat-spoiler-notice > span:last-child {
  min-width: 0;
  color: #ffc5bb;
  font-size: 9px;
  line-height: 1.35;
}

.community-chat-mode-notice {
  margin: 8px 12px 0;
  padding: 9px 11px;
  border: 1px solid rgba(255,143,91,.25);
  border-left: 3px solid #ff8f5b;
  background: linear-gradient(90deg, rgba(229,55,37,.12), rgba(255,255,255,.015));
  color: #ffd8c7;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 850;
}
.community-chat-mode-notice[data-mode="closed"] { border-left-color: #ff5544; color: #ffd0cb; }
.community-chat-mode-notice[data-mode="team_only"] { border-left-color: #69adff; color: #cfe4ff; }
.community-chat-mode-notice[data-mode="slow"] { border-left-color: var(--gold); color: #ffe4b7; }

.community-chat-typing {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  z-index: 3;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(244,185,95,.14);
  background: rgba(11,4,4,.92);
  color: var(--muted);
  font-size: 9px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  pointer-events: none;
}
.community-chat-typing > span { display: inline-flex; gap: 3px; }
.community-chat-typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  animation: chatTypingDot 1s infinite ease-in-out;
}
.community-chat-typing i:nth-child(2) { animation-delay: .14s; }
.community-chat-typing i:nth-child(3) { animation-delay: .28s; }
.community-chat-typing b { color: #ffe7c2; font-weight: 800; }
@keyframes chatTypingDot { 0%,70%,100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-3px); opacity: 1; } }

.community-chat-input-wrap { position: relative; }
.community-chat-input-wrap textarea { padding-right: 104px; }
.community-chat-input-actions {
  position: absolute;
  top: 7px;
  right: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.community-chat-input-actions button {
  min-height: 27px;
  height: 27px;
  padding: 0 7px;
  border: 1px solid rgba(255,224,177,.16);
  background: rgba(12,4,4,.88);
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
}
.community-chat-input-actions button:hover { border-color: var(--gold); color: #fff4df; }
.community-chat-spoiler-toggle[aria-pressed="true"] {
  border-color: rgba(255,109,82,.55);
  background: rgba(229,55,37,.22);
  color: #ffd3cb;
  box-shadow: 0 0 13px rgba(229,55,37,.13);
}
.community-chat-emoji-toggle { width: 29px; padding: 0 !important; font-size: 17px !important; }
.community-chat-emoji-picker {
  position: absolute;
  right: 6px;
  bottom: calc(100% + 7px);
  z-index: 12;
  width: 224px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(244,185,95,.32);
  background: linear-gradient(145deg, #240d0b, #0b0404);
  box-shadow: 0 18px 44px rgba(0,0,0,.58);
}
.community-chat-emoji-picker button {
  width: 23px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  background: rgba(255,255,255,.035);
  font-size: 15px;
}
.community-chat-emoji-picker button:hover { border-color: rgba(244,185,95,.48); background: rgba(244,185,95,.1); }

.community-chat-reply-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  padding: 8px 9px 8px 11px;
  border: 1px solid rgba(244,185,95,.18);
  border-left: 3px solid var(--gold);
  background: rgba(244,185,95,.055);
}
.community-chat-reply-preview > div { min-width: 0; display: grid; gap: 1px; }
.community-chat-reply-preview span { color: var(--dim); font-size: 7px; font-weight: 950; text-transform: uppercase; letter-spacing: .09em; }
.community-chat-reply-preview strong { color: #ffe4b5; font-size: 10px; }
.community-chat-reply-preview small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; }
.community-chat-reply-preview button {
  margin-left: auto;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid rgba(255,224,177,.14);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 17px;
}

.community-chat-reply-quote {
  margin: 4px 0 7px;
  padding: 6px 8px;
  border-left: 2px solid rgba(244,185,95,.55);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}
.community-chat-reply-quote strong { display: block; margin-bottom: 2px; color: #ffe0aa; font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.community-chat-reply-quote span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.community-chat-message-body { white-space: normal; overflow-wrap: anywhere; }
.community-chat-mention {
  display: inline;
  color: #ffd166;
  font-weight: 950;
  text-shadow: 0 0 10px rgba(255,209,102,.18);
}
.community-chat-message.is-mentioned {
  border-color: rgba(255,209,102,.36);
  box-shadow: inset 0 0 24px rgba(255,209,102,.035);
}

.community-chat-spoiler-box {
  margin-top: 5px;
  border: 1px solid rgba(255,108,83,.25);
  background: rgba(0,0,0,.24);
}
.community-chat-spoiler-reveal {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 0;
  background: repeating-linear-gradient(135deg, rgba(229,55,37,.15) 0 7px, rgba(88,12,10,.19) 7px 14px);
  color: #ffd2ca;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.community-chat-spoiler-content { display: none; padding: 8px 9px; color: var(--ink); font-size: 11px; line-height: 1.45; }
.community-chat-spoiler-box.is-revealed .community-chat-spoiler-reveal { display: none; }
.community-chat-spoiler-box.is-revealed .community-chat-spoiler-content { display: block; }

.community-chat-avatar-button {
  align-self: start;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
}
.community-chat-avatar-button:hover .community-chat-avatar { border-color: var(--gold); transform: translateY(-1px); }
.community-chat-avatar-button .community-chat-avatar { transition: border-color .15s ease, transform .15s ease; }

.community-chat-message-top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.community-chat-reply-button {
  min-height: 23px;
  padding: 0 6px;
  border: 1px solid rgba(244,185,95,.16);
  background: rgba(244,185,95,.035);
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
}
.community-chat-reply-button:hover { border-color: rgba(244,185,95,.48); color: #fff0d5; }
.community-chat-message-menu { position: relative; }
.community-chat-message-menu summary {
  width: 24px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,224,177,.13);
  background: rgba(255,255,255,.025);
  color: var(--dim);
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  line-height: 1;
}
.community-chat-message-menu summary::-webkit-details-marker { display: none; }
.community-chat-message-menu[open] summary { border-color: rgba(244,185,95,.45); color: var(--gold); }
.community-chat-message-menu-popover {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 14;
  width: 148px;
  display: grid;
  padding: 5px;
  border: 1px solid rgba(244,185,95,.28);
  background: linear-gradient(145deg, #240d0b, #0b0404);
  box-shadow: 0 15px 34px rgba(0,0,0,.58);
}
.community-chat-message-menu-popover button {
  min-height: 29px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 9px;
  font-weight: 850;
}
.community-chat-message-menu-popover button:hover { background: rgba(244,185,95,.08); color: #fff0d4; }
.community-chat-message-menu-popover button.is-danger { color: #ff9d8e; }

.community-chat-moderator-actions button[data-chat-action="moderate-ban"] {
  border-color: rgba(255,84,68,.32);
  color: #ffc1b8;
  background: rgba(229,55,37,.09);
}

.community-chat-unread.is-mention,
.community-chat-minimized-unread.is-mention {
  background: #e0a51f;
  border-color: #fff1b8;
  color: #1b1000;
  box-shadow: 0 0 18px rgba(255,209,102,.72);
}

.community-chat-moderation-dialog { width: min(960px, calc(100% - 24px)); }
.community-chat-moderation-panel { max-height: min(88dvh, 820px); overflow: auto; }
.community-chat-moderation-content { display: grid; gap: 15px; padding-top: 16px; }
.community-chat-mod-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.community-chat-mod-stat {
  padding: 13px;
  border: 1px solid rgba(255,224,177,.12);
  background: rgba(255,255,255,.025);
}
.community-chat-mod-stat span { display: block; color: var(--dim); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.community-chat-mod-stat strong { display: block; margin-top: 6px; color: var(--gold); font-family: var(--font-display); font-size: 27px; }
.community-chat-mod-section {
  padding: 13px;
  border: 1px solid rgba(255,224,177,.12);
  background: rgba(255,255,255,.018);
}
.community-chat-mod-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.community-chat-mod-section-head h3 { margin: 0; color: #ffe6bd; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.community-chat-mod-section-head small { color: var(--dim); font-size: 9px; }
.community-chat-mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
.community-chat-mode-grid button {
  min-height: 46px;
  padding: 8px;
  border: 1px solid rgba(255,224,177,.14);
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}
.community-chat-mode-grid button.is-active { border-color: var(--gold); background: rgba(244,185,95,.11); color: #fff0d4; }
.community-chat-mode-grid button[data-mode="closed"].is-active { border-color: #ff604f; background: rgba(229,55,37,.16); }
.community-chat-mod-list { display: grid; gap: 7px; }
.community-chat-mod-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,224,177,.1);
  background: rgba(0,0,0,.16);
}
.community-chat-mod-row-main { min-width: 0; display: grid; gap: 3px; }
.community-chat-mod-row-main strong { color: #ffe0b0; font-size: 10px; }
.community-chat-mod-row-main p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.community-chat-mod-row-main small { color: var(--dim); font-size: 8px; }
.community-chat-mod-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.community-chat-mod-row-actions button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255,224,177,.14);
  background: rgba(255,255,255,.025);
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
}
.community-chat-mod-row-actions button.is-danger { border-color: rgba(255,84,68,.32); color: #ffad9f; }
.community-chat-mod-empty { padding: 14px; color: var(--dim); font-size: 10px; text-align: center; border: 1px dashed rgba(255,224,177,.12); }
.community-chat-mod-log { max-height: 260px; overflow: auto; }

.community-chat-profile-dialog { width: min(500px, calc(100% - 24px)); }
.community-chat-profile-content { padding-top: 16px; }
.community-chat-profile-hero {
  display: grid;
  grid-template-columns: 66px minmax(0,1fr);
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(244,185,95,.18);
  background: linear-gradient(120deg, rgba(229,55,37,.08), rgba(255,255,255,.02));
}
.community-chat-profile-hero .community-chat-avatar { width: 66px; height: 66px; font-size: 24px; }
.community-chat-profile-hero h3 { margin: 0; font-size: 22px; }
.community-chat-profile-hero p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.community-chat-profile-role { display: inline-flex; margin-top: 7px; padding: 3px 6px; border: 1px solid var(--line); color: var(--gold); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.community-chat-profile-role.is-admin { border-color: rgba(255,91,73,.45); color: #ff9b8d; }
.community-chat-profile-role.is-moderator { border-color: rgba(78,157,255,.45); color: #9cc7ff; }
.community-chat-profile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 10px; }
.community-chat-profile-stats div { padding: 9px; border: 1px solid rgba(255,224,177,.1); background: rgba(255,255,255,.02); text-align: center; }
.community-chat-profile-stats strong { display: block; color: var(--gold); font-size: 16px; }
.community-chat-profile-stats span { color: var(--dim); font-size: 7px; text-transform: uppercase; letter-spacing: .06em; }
.community-chat-profile-actions { display: flex; gap: 8px; margin-top: 12px; }
.community-chat-profile-actions button { flex: 1; }

@media (max-width: 760px) {
  .community-chat-toolbar { flex-wrap: wrap; }
  .community-chat-toolbar > span:last-child { order: 4; width: 100%; margin-left: 0; }
  .community-chat-online-count:not(.is-hidden) {
    display: inline-flex !important;
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }
  .community-chat-spoiler-notice {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px 7px;
  }
  .community-chat-spoiler-notice > span:last-child {
    grid-column: 1 / -1;
  }
  .community-chat-input-wrap textarea { padding-right: 94px; }
  .community-chat-emoji-picker { right: 0; width: 212px; grid-template-columns: repeat(8, 1fr); }
  .community-chat-message-top-actions { gap: 3px; }
  .community-chat-reply-button { padding: 0 5px; }
  .community-chat-moderation-dialog { width: calc(100% - 12px); }
  .community-chat-mod-summary { grid-template-columns: repeat(3, 1fr); }
  .community-chat-mode-grid { grid-template-columns: 1fr 1fr; }
  .community-chat-mod-row { grid-template-columns: 1fr; }
  .community-chat-mod-row-actions { justify-content: flex-start; }
  .community-chat-profile-stats { grid-template-columns: repeat(3,1fr); }
}

/* AnimeRadar V2.4.24 - Realtime-Sicherheit, kompakter Teamkopf und mobile Menues */
.community-chat-message-head {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.community-chat-message-authorline {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.community-chat-message-authorline .community-chat-author {
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
}

.community-chat-message-authorline .community-chat-message-time {
  flex: 0 0 auto;
  margin-left: 0;
}

.community-chat-message-top-actions {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  margin-left: 0;
}

.community-chat-message-menu-popover {
  right: 0;
  left: auto;
  width: min(158px, calc(100vw - 34px));
  max-width: calc(100vw - 34px);
  box-sizing: border-box;
}

.community-chat-profile-stats.is-private strong {
  color: var(--dim);
}

#profileBlockedUsersBtn {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .community-chat-message {
    padding-right: 7px;
  }

  .community-chat-message-head {
    gap: 4px;
  }

  .community-chat-message-authorline {
    gap: 4px;
  }

  .community-chat-message-authorline .community-chat-message-time {
    font-size: 8px;
  }

  .community-chat-message-top-actions {
    gap: 2px;
  }

  .community-chat-reply-button {
    min-width: 0;
    padding-inline: 5px;
  }

  .community-chat-message-menu-popover {
    right: 0;
    left: auto;
    width: min(154px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }
}


/* V2.4.25: Registrierte Standardnutzer erhalten einen neutralen grauen Status. */
.community-chat-moderator-badge,
.community-chat-moderator-badge.is-user {
  border-color: rgba(184, 188, 199, .28);
  background: linear-gradient(135deg, rgba(122, 128, 142, .15), rgba(36, 38, 45, .24));
  color: #c9ccd4;
  box-shadow: inset 0 0 18px rgba(190, 194, 205, .04);
}
.community-chat-moderator-badge.is-user span,
.community-chat-moderator-badge:not(.is-admin):not(.is-moderator) span {
  color: #9fa4b0;
}
.community-chat-moderator-badge.is-admin {
  border-color: rgba(255, 91, 73, .58);
  background: linear-gradient(135deg, rgba(229, 55, 37, .28), rgba(82, 10, 8, .3));
  color: #ffd1ca;
  box-shadow: inset 0 0 18px rgba(229, 55, 37, .1), 0 0 12px rgba(229, 55, 37, .08);
}
.community-chat-moderator-badge.is-admin span { color: #ff6654; }
.community-chat-moderator-badge.is-moderator {
  border-color: rgba(78, 157, 255, .52);
  background: linear-gradient(135deg, rgba(41, 105, 194, .26), rgba(10, 29, 65, .32));
  color: #b9d8ff;
  box-shadow: inset 0 0 18px rgba(78, 157, 255, .09), 0 0 12px rgba(78, 157, 255, .07);
}
.community-chat-moderator-badge.is-moderator span { color: #69adff; }

/* AnimeRadar V2.4.34 - einzelne Spoilerbereiche innerhalb einer Nachricht */
.community-chat-message-body.has-inline-spoilers {
  line-height: 1.65;
}
.community-chat-inline-spoiler {
  display: inline-flex;
  max-width: 100%;
  min-height: 25px;
  align-items: center;
  vertical-align: middle;
  margin: 1px 2px;
  padding: 3px 7px;
  border: 1px solid rgba(255,108,83,.34);
  border-radius: 5px;
  background: repeating-linear-gradient(135deg, rgba(229,55,37,.19) 0 6px, rgba(72,9,8,.34) 6px 12px);
  color: #ffd2ca;
  box-shadow: inset 0 0 14px rgba(229,55,37,.06);
  font: inherit;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}
.community-chat-inline-spoiler:hover,
.community-chat-inline-spoiler:focus-visible {
  border-color: rgba(255,132,106,.7);
  background-color: rgba(229,55,37,.24);
  color: #fff0ed;
}
.community-chat-inline-spoiler-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffd2ca;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .055em;
  white-space: nowrap;
}
.community-chat-inline-spoiler-content {
  display: none;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
}
.community-chat-inline-spoiler.is-revealed {
  border-color: rgba(244,185,95,.28);
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 0 13px rgba(244,185,95,.035);
}
.community-chat-inline-spoiler.is-revealed .community-chat-inline-spoiler-label { display: none; }
.community-chat-inline-spoiler.is-revealed .community-chat-inline-spoiler-content { display: inline; }
.community-chat-count.is-over-limit { color: #ff8270; }
.community-chat-count.is-over-limit b { color: #ff8270; }

@media (max-width: 760px) {
  .community-chat-inline-spoiler {
    min-height: 29px;
    padding: 4px 8px;
  }
  .community-chat-inline-spoiler-label { font-size: 8px; }
}


/* --- V2.4.133: Emoji-Auswahl bleibt auf kleinen Web-Displays vollständig im Chat --- */
@media (max-width: 760px) {
  .community-chat-input-wrap {
    min-width: 0;
  }

  .community-chat-emoji-picker {
    box-sizing: border-box;
    right: 0;
    left: auto;
    width: min(212px, 100%);
    max-width: 100%;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    overflow: hidden;
  }

  .community-chat-emoji-picker button {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 340px) {
  .community-chat-emoji-picker {
    width: min(188px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
