/* CrazyKino Forum — gleiche Glass-Sprache wie der Rest der Seite */

/* Gäste: kein All-Chat / Watch-Party in der Nav (auch Mobile) */
html:not(.ck-session) .nav-global-chat,
html:not(.ck-session) .nav-party-link {
  display: none !important;
}

/* Top-Chrome immer sichtbar (Gast = Registrieren) */
.ck-top-chrome {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 6;
}

.ck-top-chrome[hidden] {
  display: none !important;
}

.ck-top-chrome .ck-top-register,
.ck-top-chrome .nav-auth-cta--solo {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 2.4rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  border: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.nav-account {
  position: relative;
  flex-shrink: 0;
  margin: 0;
}

.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin: 0;
  min-height: 2.35rem;
}

@media (min-width: 769px) {
  .nav .nav-tools {
    margin-left: auto;
    order: 0;
  }

  .nav .nav-tools + .nav-search-wrap {
    margin-left: 0;
  }

  .nav .nav-account,
  .nav-account {
    margin-left: 0;
  }

  .nav .nav-global-chat,
  .nav .nav-party-link {
    margin-left: 0;
  }
}

/* Auth-Flash: mit Session nie Gast-Login-Buttons zeigen (z.B. launch.html Hardcode) */
html.ck-session .nav-account--guest {
  display: none !important;
}

.nav-account-btn.is-pending {
  opacity: 0.85;
  pointer-events: none;
}

.nav-avatar--pending {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: inline-block;
}

.nav-account--guest {
  display: flex;
  align-items: center;
}

.nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-auth-link,
.nav-auth-cta {
  appearance: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  height: 2.35rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-auth-link svg,
.nav-auth-cta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nav-auth-link {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
}

.nav-auth-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.nav-auth-link:focus-visible,
.nav-auth-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--black, #0a0a0a), 0 0 0 4px rgba(139, 148, 255, 0.7);
}

.nav-auth-cta {
  border: 1px solid rgba(88, 101, 242, 0.65);
  background: linear-gradient(180deg, #6d78f6 0%, #5865f2 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(88, 101, 242, 0.28);
}

.nav-auth-cta:hover {
  background: linear-gradient(180deg, #7b85f8 0%, #6370f4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 10px 22px rgba(88, 101, 242, 0.38);
}

.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.35rem 0.15rem 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.nav-account-btn:hover,
.nav-account-btn[aria-expanded='true'] {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav-avatar__ini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  letter-spacing: 0.03em;
  text-indent: 0.03em;
  line-height: 1;
}

.nav-avatar--photo {
  background: #1a1a1a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-avatar--lg {
  width: 76px;
  height: 76px;
  font-size: 1.05rem;
}

.nav-avatar--xl {
  width: 128px;
  height: 128px;
  font-size: 1.7rem;
  border-radius: 28px;
}

.nav-account-caret {
  display: grid;
  place-items: center;
  opacity: 0.65;
  width: 14px;
  height: 14px;
}

.nav-account-caret svg {
  width: 14px;
  height: 14px;
}

.forum-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(19rem, 86vw);
  padding: 0.45rem;
  border-radius: 16px;
  background: rgba(16, 16, 16, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  z-index: 1200;
}

.forum-menu[hidden] {
  display: none;
}

.forum-menu__handle {
  display: none;
}

.forum-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.forum-menu__mobile-only {
  display: none !important;
}

.forum-menu-scrim {
  display: none;
}

.forum-menu-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.35rem;
}

.forum-menu-head > div {
  min-width: 0;
  flex: 1;
}

.forum-menu-head strong {
  display: block;
  font-size: 0.92rem;
}

.forum-menu-head > div span {
  display: block;
  color: var(--grey-muted);
  font-size: 0.75rem;
}

.forum-menu-head .nav-avatar {
  display: flex;
  margin-top: 0.1rem;
}

.forum-menu button,
.forum-menu a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #f4f4f6;
  text-decoration: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.forum-menu button svg,
.forum-menu a svg {
  width: 16px;
  height: 16px;
  opacity: 0.78;
  flex-shrink: 0;
}

.forum-menu button:hover,
.forum-menu a:hover {
  background: rgba(255, 255, 255, 0.07);
}

.forum-menu .is-danger {
  color: #fca5a5;
}

.forum-auth-modal[hidden] {
  display: none;
}

.forum-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.forum-auth-modal--mandatory .forum-auth-close,
.forum-auth-modal--mandatory .forum-auth-modal__back {
  display: none !important;
}

body.forum-auth-locked {
  overflow: hidden;
}

.forum-auth-modal__back {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(88, 101, 242, 0.16), transparent 55%),
    rgba(4, 5, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.forum-auth-card {
  position: relative;
  width: min(420px, 100%);
  padding: 1.15rem 1.35rem 1.35rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(28, 30, 42, 0.92) 0%, rgba(12, 13, 18, 0.96) 100%);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(88, 101, 242, 0.08);
  animation: authCardIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.forum-auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.05rem;
  padding: 0 0 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.forum-auth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.7rem;
  padding: 0 0.48rem;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #e8eaff;
  background: linear-gradient(165deg, rgba(88, 101, 242, 0.38), rgba(124, 58, 237, 0.22));
  border: 1px solid rgba(139, 148, 255, 0.45);
}

.forum-auth-brand__name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
}

.forum-auth-close {
  position: relative;
  top: auto;
  right: auto;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.forum-auth-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.forum-auth-close svg {
  width: 16px;
  height: 16px;
}

.forum-auth-card h2 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 0.35rem;
  color: #fff;
}

.forum-auth-card p.lead {
  color: rgba(255, 255, 255, 0.58);
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.forum-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.22rem;
  padding: 0.22rem;
  margin: 0 0 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-auth-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 0.58rem 0.7rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.forum-auth-tabs button:hover:not(.is-on) {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.forum-auth-tabs button.is-on {
  background: #fff;
  color: #0a0c12;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.forum-auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.25rem 0 0.9rem;
}

.forum-auth-points span {
  display: inline-flex;
  align-items: center;
  height: 1.45rem;
  padding: 0 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.forum-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.forum-field > span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-muted);
}

.forum-field input,
.forum-field textarea,
.forum-field select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #16161c;
  color: #f5f5f5;
  padding: 0.78rem 0.9rem;
  font: inherit;
  color-scheme: dark;
}

.forum-field select option,
.forum-field select optgroup {
  background: #16161c;
  color: #f5f5f5;
}

.forum-field textarea {
  min-height: 120px;
  resize: vertical;
}

.forum-field input:focus,
.forum-field textarea:focus,
.forum-field select:focus {
  outline: none;
  border-color: var(--accent, #5865f2);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

.forum-auth-card .forum-field--register,
.forum-auth-card .forum-field[data-forum-display] {
  display: none !important;
}

.forum-auth-card.is-register .forum-field--register,
.forum-auth-card.is-register .forum-field[data-forum-display] {
  display: flex !important;
}

.forum-auth-card .forum-field {
  margin-bottom: 0.75rem;
}

.forum-auth-card .forum-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.forum-auth-card .forum-field__control > svg {
  position: absolute;
  left: 0.9rem;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.forum-auth-card .forum-field__control input {
  padding: 0.82rem 2.7rem 0.82rem 2.55rem;
}

.forum-field__eye {
  position: absolute;
  right: 0.35rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.forum-field__eye:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.forum-field__eye svg {
  width: 16px;
  height: 16px;
}

.forum-auth-error {
  color: #fca5a5;
  font-size: 0.85rem;
  min-height: 1.15em;
  margin: 0.15rem 0 0.75rem;
}

.forum-auth-error.is-ban {
  background: rgba(185, 28, 28, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  min-height: 0;
}

.forum-auth-submit {
  width: 100%;
  height: 2.8rem;
  border: 1px solid rgba(88, 101, 242, 0.65);
  border-radius: 12px;
  background: linear-gradient(180deg, #6d78f6 0%, #5865f2 100%);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 22px rgba(88, 101, 242, 0.28);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.forum-auth-submit:disabled {
  cursor: wait;
  opacity: 0.78;
  filter: saturate(0.9);
}

.forum-auth-submit:hover {
  background: linear-gradient(180deg, #7b85f8 0%, #6370f4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 12px 26px rgba(88, 101, 242, 0.38);
}

.forum-auth-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 4px rgba(139, 148, 255, 0.7);
}

.forum-auth-alt {
  margin: 1.05rem 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

.forum-auth-note {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.74rem;
  text-align: center;
}

.forum-auth-alt button {
  border: 0;
  background: none;
  color: #a5b4fc;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
}

.forum-auth-alt button:hover {
  color: #fff;
}

.forum-auth-card input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  .forum-auth-card {
    animation: none;
  }
}

.forum-ico,
.forum-ico svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 0.58rem;
}

/* ========== PAGE ========== */
body.forum-page {
  padding-top: 0;
}

.forum-shell {
  width: 100%;
  padding: 5.5rem clamp(1rem, 3.5vw, 2.5rem) 4.5rem;
}

.xf-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.xf-top h1 {
  margin: 0 0 0.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.xf-top__meta {
  margin: 0;
  color: var(--grey-muted);
  font-size: 0.88rem;
}

.xf-post-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 1rem;
  border: 0;
  border-radius: 10px;
  background: #5865f2;
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.xf-post-btn:hover,
.xf-post-btn.is-open {
  background: #6b76f5;
}

.forum-spot {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: end;
  min-height: 340px;
  margin-bottom: 1.15rem;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.88) 0%, rgba(8, 10, 16, 0.42) 55%, rgba(8, 10, 16, 0.2) 100%),
    var(--spot-bg) center/cover no-repeat;
}

.forum-spot__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.15), rgba(8, 10, 16, 0.55));
  pointer-events: none;
}

.forum-spot__poster,
.forum-spot__copy {
  position: relative;
  z-index: 1;
}

.forum-spot__poster {
  width: 148px;
  height: 222px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.forum-spot__copy h2 {
  margin: 0.45rem 0 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  max-width: 36rem;
}

.forum-spot__copy p {
  margin: 0 0 1rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.forum-spot__cta {
  display: inline-flex;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  background: #fff;
  color: #0a0c12;
  font-size: 0.84rem;
  font-weight: 800;
}

.forum-rail-wrap {
  margin-bottom: 1.15rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 22, 0.55);
  backdrop-filter: blur(22px);
}

.forum-rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.9rem 1.05rem 1.15rem;
  scrollbar-width: thin;
}

.forum-card {
  flex: 0 0 132px;
  width: 132px;
  text-decoration: none;
  color: inherit;
}

.forum-card__poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  display: block;
}

.forum-card__title {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.forum-card__meta {
  display: block;
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
}

.xf-last__poster {
  width: 38px;
  height: 57px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.forum-thread__poster {
  width: 52px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.forum-thread-hero.has-media {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: end;
  min-height: 240px;
  padding: 1.5rem 1.55rem 1.5rem;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.88) 0%, rgba(8, 10, 16, 0.5) 60%, rgba(8, 10, 16, 0.28) 100%),
    var(--thread-bg) center/cover no-repeat;
}

.forum-thread-hero__poster {
  width: 110px;
  height: 165px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

.forum-thread-hero__poster--empty,
.forum-spot__poster--empty,
.forum-thread__poster--empty,
.xf-last__poster--empty {
  display: none;
}

.forum-media-results {
  display: grid;
  gap: 0.35rem;
  margin: -0.35rem 0 0.85rem;
}

.forum-media-hit {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.forum-media-hit img {
  width: 32px;
  height: 48px;
  object-fit: cover;
  border-radius: 5px;
}

.forum-media-hit:hover {
  background: rgba(88, 101, 242, 0.18);
}

.forum-pick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.28);
}

.forum-pick__poster {
  width: 36px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}

.forum-pick strong {
  display: block;
  font-size: 0.88rem;
}

.forum-pick span {
  color: var(--grey-muted);
  font-size: 0.75rem;
}

.forum-pick__clear {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #c7d2fe;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}

.xf-node {
  margin-bottom: 1.05rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 22, 0.55);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.xf-node__head {
  padding: 0.62rem 1.15rem;
  background: rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.xf-latest__row,
.xf-row {
  text-decoration: none;
  color: inherit;
}

.xf-latest__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 110px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.52rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
}

.xf-latest__row:last-child,
.xf-row:last-child {
  border-bottom: 0;
}

.xf-latest__row:hover,
.xf-row:hover {
  background: rgba(88, 101, 242, 0.1);
}

.xf-latest__title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xf-latest__title svg {
  width: 13px;
  height: 13px;
  color: #a5b4fc;
}

.xf-latest__cat,
.xf-latest__time {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.75rem;
  text-align: right;
}

.xf-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 78px 78px minmax(170px, 230px);
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.xf-row__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(88, 101, 242, 0.18);
  color: #c7d2fe;
  border: 1px solid rgba(88, 101, 242, 0.28);
  text-decoration: none;
}

.xf-row__icon svg {
  width: 18px;
  height: 18px;
}

.xf-row__info a {
  color: inherit;
  text-decoration: none;
}

.xf-row__info strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}

.xf-row__info a:hover strong {
  color: #c7d2fe;
}

.xf-row__info p {
  margin: 0.18rem 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.8rem;
  line-height: 1.35;
}

.xf-row__stat {
  text-align: center;
}

.xf-row__stat b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.xf-row__stat span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.xf-last {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.xf-last--empty {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
}

.xf-last div {
  min-width: 0;
}

.xf-last__title {
  display: block;
  color: #c7d2fe;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xf-last__title:hover {
  color: #fff;
}

.xf-last span {
  display: block;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-panel,
.forum-composer,
.forum-locked,
.forum-post,
.profile-hero,
.profile-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.forum-panel {
  border-radius: 20px;
  overflow: hidden;
}

.forum-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.15rem 1.4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-toolbar h2 {
  margin: 0 0 0.2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.forum-toolbar p {
  margin: 0;
  color: var(--grey-muted);
  font-size: 0.84rem;
}

.forum-thread-head,
.forum-thread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 88px;
  gap: 1rem;
  align-items: center;
}

.forum-thread-head {
  padding: 0.55rem 1.4rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-thread {
  padding: 1rem 1.4rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  border-radius: 0;
}

.forum-thread:last-child {
  border-bottom: 0;
}

.forum-thread:hover {
  background: rgba(255, 255, 255, 0.035);
}

.forum-thread.is-pin {
  background: rgba(88, 101, 242, 0.08);
}

.forum-thread__main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.forum-thread__main h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.22rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.forum-thread__main h3 svg {
  width: 14px;
  height: 14px;
  color: #a5b4fc;
}

.forum-thread__main p {
  margin: 0;
  color: var(--grey-muted);
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 650;
  width: fit-content;
}

.forum-pill svg {
  width: 13px;
  height: 13px;
}

.forum-thread__when {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.forum-thread__count {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.forum-thread__count b {
  display: block;
  font-size: 1.05rem;
  font-family: 'Space Grotesk', sans-serif;
}

.forum-thread__count span {
  color: var(--grey-muted);
  font-size: 0.68rem;
}

.forum-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
}

.forum-back svg {
  width: 16px;
  height: 16px;
}

.forum-back:hover {
  color: #fff;
}

.forum-thread-hero {
  padding: 1.4rem 1.55rem 1.5rem;
  border-radius: 20px;
  margin-bottom: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

.forum-thread-hero h1 {
  margin: 0.35rem 0 0.45rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.forum-thread-hero p {
  margin: 0;
  color: var(--grey-muted);
}

.forum-post {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 0;
  margin-bottom: 0.8rem;
  border-radius: 20px;
  overflow: hidden;
}

.forum-post__user {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.35rem 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.025);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-post__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.forum-post__identity strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.forum-post__user a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.forum-post__user .nav-avatar {
  width: 76px;
  height: 76px;
  margin: 0;
  font-size: 1.05rem;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.35);
}

.forum-post__handle {
  color: var(--grey-muted);
  font-size: 0.75rem;
  margin: 0.2rem 0 0.5rem;
}

.forum-role {
  display: inline-block;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.forum-role.is-mod {
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
}

.forum-role.is-support {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.forum-role.is-partner {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.forum-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.35rem;
}

.profile-cover__tags .forum-badges {
  margin: 0;
}

.forum-post__user .forum-badges {
  justify-content: center;
}

.forum-tag {
  display: inline-block;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.forum-tag--owner {
  background: rgba(250, 204, 21, 0.16);
  color: #fde68a;
}

.forum-tag--developer {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.forum-tag--lead {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
}

.forum-tag--design {
  background: rgba(236, 72, 153, 0.16);
  color: #f9a8d4;
}

.forum-tag--community {
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
}

.forum-tag--vip {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.forum-tag--active {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.forum-tag--streak {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
}

.forum-menu-streak {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
  margin: 0.4rem 0 0;
  margin-left: 0;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #fdba74;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.22);
  box-shadow: none;
}

.forum-menu-streak svg {
  width: 0.78rem;
  height: 0.78rem;
  color: #fb923c;
  flex-shrink: 0;
}

.forum-menu-streak span {
  display: inline !important;
  color: inherit !important;
  font-size: inherit !important;
  white-space: nowrap;
}

.forum-menu-streak strong {
  display: inline !important;
  font-weight: 750;
  font-size: inherit;
  color: #fdba74;
}

.profile-metrics__streak b {
  color: #fdba74;
}

.id-head__streak {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.45rem 0 0;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.86rem;
  color: #fdba74;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.id-head__streak svg {
  width: 1rem;
  height: 1rem;
  color: #fb923c;
  flex-shrink: 0;
}

.id-head__streak strong {
  color: #fdba74;
}

.forum-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem;
}

.forum-check input {
  width: 1.05rem;
  height: 1.05rem;
}

.stream-party-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: max-content;
  gap: 0.3rem;
  margin-top: 0.35rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.stream-party-btn svg {
  width: 11px;
  height: 11px;
  stroke-width: 1.5;
  opacity: 0.85;
  flex-shrink: 0;
}

.stream-party-beta {
  margin-left: 0.1rem;
  padding: 0.08rem 0.32rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.stream-party-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.forum-tag--partner {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

.forum-post__meta {
  color: var(--grey-muted);
  font-size: 0.72rem;
  margin-top: 0.55rem;
}

.forum-post__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.4rem 1.55rem 0.95rem;
}

.forum-post__body {
  flex: 1;
  padding: 0;
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

.forum-post__foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-post__foot time,
.forum-post__time {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
}

.forum-composer {
  margin-top: 1.15rem;
  padding: 1.25rem 1.35rem 1.3rem;
  border-radius: 18px;
}

.forum-composer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.forum-composer__head h3 {
  margin: 0;
}

.forum-composer h3 {
  margin: 0 0 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
}

.forum-composer__head h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
}

.forum-composer-cancel {
  border: 0;
  background: transparent;
  color: var(--grey-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
}

.forum-composer-cancel:hover {
  color: #fff;
}

.forum-locked .forum-composer-cancel {
  display: block;
  margin-top: 0.85rem;
  padding: 0;
}

.forum-locked {
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
  margin-top: 1.15rem;
}

.forum-locked p {
  margin: 0.35rem 0 0;
  color: var(--grey-muted);
}

.forum-new {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.7rem;
}

.cat-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cat-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #16161c;
  color: #f5f5f5;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.cat-pick svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.cat-pick:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.cat-pick.is-on {
  background: #fff;
  color: #0a0c12;
  border-color: #fff;
}

.cat-pick.is-on svg {
  opacity: 1;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.profile-hero .nav-avatar {
  width: 108px;
  height: 108px;
  font-size: 1.5rem;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.4);
}

.forum-shell.is-public-profile {
  padding-left: 0;
  padding-right: 0;
  padding-top: 4.35rem;
}

.profile-cover {
  position: relative;
  margin: 0 0 1.15rem;
  background: #0b0c10;
}

.profile-cover__banner {
  position: relative;
  height: clamp(156px, 24vw, 240px);
  background:
    var(--profile-banner, none) center / cover no-repeat,
    linear-gradient(180deg, #151821 0%, #0d0f14 100%);
}

.profile-cover:not(.has-banner) .profile-cover__banner {
  background:
    radial-gradient(ellipse 70% 90% at 18% 20%, rgba(255, 255, 255, 0.05), transparent 55%),
    radial-gradient(ellipse 55% 70% at 88% 30%, rgba(255, 255, 255, 0.035), transparent 50%),
    linear-gradient(165deg, #171a22 0%, #0e1016 52%, #0b0c10 100%);
}

.profile-cover:not(.has-banner) .profile-cover__banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  opacity: 0.45;
  pointer-events: none;
}

.profile-cover__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(11, 12, 16, 0.35) 55%, #0b0c10 100%);
}

.profile-cover.has-banner .profile-cover__banner::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(10, 12, 18, 0.28) 45%, #0b0c10 100%);
}

.forum-back--on-cover {
  position: absolute;
  top: 1rem;
  left: max(0.9rem, calc(50% - 540px + 0.15rem));
  z-index: 3;
  margin: 0;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.55);
  backdrop-filter: blur(12px);
  color: #fff;
}

.profile-banned {
  position: relative;
  z-index: 4;
  background: #b91c1c;
  color: #fff;
  text-align: center;
  padding: 0.72rem 1rem;
  font-weight: 750;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.profile-cover__body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.2rem 1.55rem;
  align-items: end;
  width: min(1080px, calc(100% - 2.4rem));
  margin: -4.4rem auto 0;
  padding: 0 0 1.5rem;
}

.profile-cover .nav-avatar--xl {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  font-size: 1.7rem;
  box-shadow:
    0 0 0 4px #0a0c12,
    0 18px 40px rgba(0, 0, 0, 0.5);
}

.profile-cover__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.profile-cover__tags .genre-chip-badge {
  margin-left: 0;
}

.profile-cover .profile-name {
  margin: 0.28rem 0 0;
  line-height: 1.08;
}

.profile-handle {
  margin: 0.2rem 0 0;
  color: var(--grey-muted);
  font-size: 0.95rem;
}

.profile-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.7rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.profile-metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.profile-metrics b {
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.profile-metrics span {
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-muted);
}

.profile-metrics .is-wide b {
  font-size: 0.98rem;
  font-weight: 650;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  max-width: 100%;
}

.profile-meta__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(250, 250, 250, 0.72);
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.25;
  white-space: nowrap;
}

.profile-meta__chip svg {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.75;
  flex-shrink: 0;
}

.profile-watching {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.95rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(87, 242, 135, 0.22);
  background: linear-gradient(135deg, rgba(87, 242, 135, 0.1), rgba(255, 255, 255, 0.03));
  max-width: min(100%, 28rem);
}

.profile-watching__dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #57f287;
  box-shadow: 0 0 0 4px rgba(87, 242, 135, 0.18);
  flex-shrink: 0;
}

.profile-watching em {
  display: block;
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(198, 250, 214, 0.75);
}

.profile-watching strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.25;
  color: #fff;
  overflow-wrap: anywhere;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 168, 26, 0.35);
  background: rgba(250, 168, 26, 0.12);
  color: #ffe6bc;
  font-size: 0.78rem;
  font-weight: 600;
}

.streak-pill svg {
  width: 0.9rem;
  height: 0.9rem;
}

.streak-pill--start {
  border-color: rgba(88, 101, 242, 0.4);
  background: rgba(88, 101, 242, 0.14);
  color: #dfe2ff;
}

.streak-pill--best {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 250, 250, 0.8);
}

.id-head__streak:has(.streak-pill) {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.45rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.friend-watching {
  color: #9ef0b8;
  font-style: normal;
}

.security-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.security-card {
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.security-card--tip {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(88, 101, 242, 0.2);
  padding: 0.9rem 1.05rem;
}

.security-card__head {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.security-card__icon {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.security-card__icon svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.9;
}

.security-card h2 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.security-card__head p {
  margin: 0.2rem 0 0;
  color: var(--grey-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.security-form {
  display: grid;
  gap: 0.55rem;
}

.security-form .forum-field > span:first-child {
  font-size: 0.72rem;
}

.security-form .forum-field input {
  padding: 0.62rem 0.75rem;
  min-height: 2.4rem;
}

.security-form .btn {
  margin-top: 0.25rem;
  width: fit-content;
}

.security-session {
  margin: 0 0 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.security-session__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.8rem;
  background: rgba(0, 0, 0, 0.2);
}

.security-session__row strong {
  display: block;
  font-size: 0.88rem;
}

.security-session__row span {
  display: block;
  margin-top: 0.12rem;
  color: var(--grey-muted);
  font-size: 0.74rem;
}

.security-session__badge {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ef0b8;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: rgba(87, 242, 135, 0.12);
  border: 1px solid rgba(87, 242, 135, 0.22);
}

.security-actions {
  margin: 0;
  flex-wrap: wrap;
}

.security-actions .btn {
  padding: 0.55rem 0.9rem;
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .security-stack {
    grid-template-columns: 1fr;
  }
}

.profile-public {
  width: min(1080px, calc(100% - 2.4rem));
  margin: 0 auto 2.4rem;
}

.profile-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
}

.profile-toolbar .profile-actions {
  margin: 0;
}

.btn-danger {
  background: #b91c1c;
  color: #fff;
  border: 0;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.banner-edit {
  display: block;
  position: relative;
  height: 152px;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 1.5rem;
  cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.08), rgba(20, 22, 30, 0.9));
  transition: border-color 0.2s ease;
}

.banner-edit:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.banner-edit.has-img {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.1);
}

.banner-edit__preview {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.banner-edit__label {
  position: absolute;
  right: 0.9rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  font-size: 0.8rem;
  font-weight: 650;
}

.banner-edit__label svg {
  width: 14px;
  height: 14px;
}

.ban-overlay,
.ban-pick {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.ban-overlay {
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ban-pick {
  background: rgba(0, 0, 0, 0.64);
}

.ban-overlay__card,
.ban-pick__card {
  width: min(26rem, 100%);
  border-radius: 16px;
  padding: 1.65rem 1.5rem 1.45rem;
}

.ban-overlay__card {
  background: linear-gradient(180deg, #151820 0%, #10131a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d7dbe5;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  text-align: left;
}

.ban-overlay__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin: 0 0 1rem;
  border-radius: 12px;
  color: #f3b4b4;
  background: rgba(185, 48, 48, 0.14);
  border: 1px solid rgba(220, 80, 80, 0.28);
}

.ban-overlay__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.ban-overlay__kicker {
  margin: 0 0 0.45rem;
  color: #e8a0a0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ban-overlay__card h2,
.ban-pick__card h3 {
  margin: 0 0 0.55rem;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 700;
}

.ban-overlay__lead,
.ban-overlay__note,
.ban-overlay__card p,
.ban-pick__card p {
  margin: 0;
  line-height: 1.55;
}

.ban-overlay__lead {
  margin-bottom: 1rem;
  color: #b8bfcc;
  font-size: 0.95rem;
}

.ban-overlay__reason {
  display: grid;
  gap: 0.28rem;
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ban-overlay__reason-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b93a3;
}

.ban-overlay__reason strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
}

.ban-overlay__note {
  margin-bottom: 1.25rem;
  color: #8f97a6;
  font-size: 0.84rem;
}

.ban-overlay__btn {
  appearance: none;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #f4f6fa;
  color: #12151c;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ban-overlay__btn:hover {
  background: #fff;
}

.ban-overlay__btn:focus-visible {
  outline: 2px solid #7aa2ff;
  outline-offset: 2px;
}

.ban-pick__card {
  background: #14161e;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ban-pick select {
  width: 100%;
  height: 2.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #101218;
  color: #fff;
  padding: 0 0.8rem;
  font: inherit;
}

@media (max-width: 700px) {
  .profile-cover__body {
    grid-template-columns: 1fr;
    margin-top: -3.2rem;
  }

  .profile-cover .nav-avatar--xl {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    font-size: 1.3rem;
  }
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.profile-card {
  padding: 1.75rem 1.85rem 1.9rem;
  border-radius: 22px;
}

.profile-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 0.95rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.friends-board {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.35rem 0.35rem 0.5rem;
}

.friends-board section {
  padding: 1.25rem 1.35rem 1.35rem;
}

.friends-board section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.friends-board h2 {
  margin: 0 0 0.35rem;
}

.friends-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .friends-panels {
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas:
      'incoming friends'
      'outgoing friends';
  }

  .friends-panel--incoming { grid-area: incoming; }
  .friends-panel--friends { grid-area: friends; }
  .friends-panel--outgoing { grid-area: outgoing; }
}

.friends-panel {
  padding: 1.15rem 1.2rem 1.25rem;
  min-height: 8.5rem;
}

.friends-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.friends-panel__head h2 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.friends-panel__count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.friends-panel .people-row {
  margin: 0;
  padding: 0.65rem 0;
}

.friends-panel .hub-empty {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.45);
}

.profile-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.profile-fact svg {
  width: 15px;
  height: 15px;
  opacity: 0.75;
}

.color-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.color-picks button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.color-picks button:hover {
  transform: scale(1.12);
}

.color-picks button.is-on {
  border-color: #fff;
  transform: scale(1.15);
}

.profile-activity {
  margin: 0;
  padding: 0;
}

.profile-activity li {
  list-style: none;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-activity li:last-child {
  border-bottom: 0;
}

.profile-activity a {
  color: #c7d2fe;
  text-decoration: none;
  font-weight: 650;
  transition: color 0.15s ease;
}

.profile-activity a:hover {
  color: #e0e7ff;
}

.empty-note {
  padding: 1.4rem;
  color: var(--grey-muted);
}

@media (max-width: 980px) {
  .xf-latest__row {
    grid-template-columns: minmax(0, 1fr) 100px;
  }

  .xf-latest__cat {
    display: none;
  }

  .xf-row {
    grid-template-columns: 40px minmax(0, 1fr) 64px 64px;
  }

  .xf-last {
    display: none;
  }

  .forum-thread-head {
    display: none;
  }

  .forum-thread {
    grid-template-columns: 1fr auto;
  }

  .forum-thread .forum-pill,
  .forum-thread__when {
    display: none;
  }
}

@media (max-width: 900px) {
  .xf-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .forum-new,
  .profile-grid,
  .forum-post {
    grid-template-columns: 1fr;
  }

  .forum-post__user {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: left;
    align-items: center;
    gap: 0.35rem 0.85rem;
    padding: 1rem 1.1rem;
  }

  .forum-post__identity {
    flex-direction: row;
    gap: 0.75rem;
  }

  .forum-post__user .nav-avatar,
  .forum-post__user .nav-avatar--lg {
    width: 48px;
    height: 48px;
    font-size: 0.78rem;
  }

  .forum-post__handle {
    margin: 0;
  }

  .forum-post__meta {
    margin-top: 0;
    margin-left: auto;
  }

  .forum-post__main {
    padding: 1.1rem 1.15rem 0.9rem;
  }
}

@media (max-width: 768px) {
  .ck-top-chrome {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    order: 0;
  }

  .ck-top-chrome[hidden] {
    display: none !important;
  }

  .ck-top-chrome .ck-top-register,
  .ck-top-chrome .nav-auth-cta--solo {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 2.4rem;
    padding: 0 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border: 0 !important;
  }

  .nav-auth {
    gap: 0.28rem;
  }

  .nav-auth-link {
    display: none !important;
  }

  /* Handy: All-Chat + Watch-Party oben rechts wenn angemeldet */
  html.ck-session .nav .nav-tools .nav-global-chat,
  html.ck-session .nav .nav-tools .nav-party-link,
  html.ck-session .nav-global-chat,
  html.ck-session .nav-party-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    min-width: 2.45rem;
    min-height: 2.45rem;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
  }

  html.ck-session .nav-global-chat svg,
  html.ck-session .nav-party-link svg {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
  }

  html:not(.ck-session) .nav .nav-tools .nav-global-chat,
  html:not(.ck-session) .nav .nav-tools .nav-party-link,
  html:not(.ck-session) .nav-global-chat,
  html:not(.ck-session) .nav-party-link {
    display: none !important;
  }

  /* Nur Avatar/Pending oben verstecken — Gast-Chrome bleibt sichtbar */
  html.ck-session .nav .nav-account,
  html.ck-session #forum-account-slot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  html:not(.ck-session) #forum-account-slot {
    display: none !important;
  }

  .nav .nav-tools {
    order: 2;
    margin-left: auto;
    gap: 0.4rem;
    display: inline-flex !important;
    align-items: center;
    visibility: visible !important;
    z-index: 5;
  }

  /* Account-Sheet cleaner */
  .forum-menu {
    position: fixed;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    max-height: min(72dvh, 34rem);
    margin: 0;
    padding: 0.4rem 0.9rem max(1.1rem, env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 1.35rem 1.35rem 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
    background: rgba(12, 12, 14, 0.98);
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.55);
    z-index: 9610;
    animation: forum-menu-sheet-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .forum-menu[hidden] {
    display: none;
  }

  .forum-menu__handle {
    display: flex;
    justify-content: center;
    padding: 0.4rem 0 0.65rem;
  }

  .forum-menu__handle span {
    width: 2.5rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
  }

  .forum-menu-head {
    padding: 0.2rem 0.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.45rem;
    gap: 0.85rem;
  }

  .forum-menu-head strong {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
  }

  .forum-menu-head > div span {
    font-size: 0.8rem;
  }

  .forum-menu-head .nav-avatar {
    width: 3rem;
    height: 3rem;
    font-size: 0.85rem;
  }

  .forum-menu__list {
    gap: 0.2rem;
  }

  .forum-menu button,
  .forum-menu a {
    min-height: 3.05rem;
    padding: 0.85rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.9rem;
  }

  .forum-menu button svg,
  .forum-menu a svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .forum-menu-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9605;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .forum-menu__mobile-only {
    display: none !important;
  }

  @keyframes forum-menu-sheet-in {
    from { transform: translateY(110%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
  }

  body.forum-menu-open {
    overflow: hidden;
    touch-action: none;
  }
}

/* Override older mobile auth rules that hide register text */
@media (max-width: 768px) {
  .nav-auth-cta span {
    display: inline !important;
  }

  .forum-thread-hero.has-media {
    grid-template-columns: 1fr;
  }

  .forum-thread-hero__poster {
    width: 92px;
    height: 138px;
  }

  .forum-auth-modal {
    padding: 0.75rem;
    align-items: flex-start;
    padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
  }

  .forum-auth-card {
    padding: 1rem 1.05rem 1.15rem;
    border-radius: 18px;
    width: min(420px, 100%);
  }

  .forum-auth-card h2 {
    font-size: 1.22rem;
  }
}

.hub {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.hub-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hub-nav {
  position: sticky;
  top: 5.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hub-me {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease;
}

.hub-me:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.hub-me strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.hub-me span {
  color: var(--grey-muted);
  font-size: 0.74rem;
}

.hub-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.hub-tab svg {
  width: 17px;
  height: 17px;
  opacity: 0.7;
  transition: opacity 0.18s ease;
}

.hub-tab b {
  margin-left: auto;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  background: var(--accent, #5865f2);
  color: #fff;
  font-size: 0.66rem;
  display: grid;
  place-items: center;
}

.hub-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.hub-tab:hover svg {
  opacity: 0.9;
}

.hub-tab.is-on {
  background: #fff;
  color: #0a0c12;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.08);
}

.hub-tab.is-on svg {
  opacity: 1;
}

.hub-head {
  margin: 0 0 0.2rem;
}

.hub-head h1 {
  margin: 0 0 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.035em;
  font-size: 1.6rem;
}

.hub-head p,
.hub-muted {
  color: var(--grey-muted);
  margin: 0;
  font-size: 0.88rem;
}

.hub-copy {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0 0 1.2rem;
  max-width: 38rem;
}

.hub-empty {
  margin: 0;
  padding: 1.2rem 0 0.4rem;
  color: var(--grey-muted);
  line-height: 1.55;
}

.hub-stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.hub-form .forum-field {
  margin-bottom: 1.25rem;
  gap: 0.55rem;
}

.hub-form .forum-field textarea {
  min-height: 7.5rem;
}

.profile-stage {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(88, 101, 242, 0.16), transparent 46%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.profile-stage__cover {
  position: relative;
}

.hub--profile .hub-main {
  gap: 0;
}

.hub--profile .banner-edit {
  height: 210px;
  margin: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(80% 120% at 12% 20%, rgba(88, 101, 242, 0.45), transparent 42%),
    radial-gradient(70% 110% at 90% 80%, rgba(235, 69, 158, 0.22), transparent 48%),
    linear-gradient(180deg, #1a1d2e 0%, #10131c 100%);
}

.banner-edit__glow {
  position: absolute;
  inset: auto 0 0;
  height: 88px;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 18, 0.72));
  pointer-events: none;
}

.hub--profile .banner-edit__label {
  right: 1.15rem;
  top: 1rem;
  bottom: auto;
  padding: 0.5rem 0.9rem;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.profile-stage__id {
  display: flex;
  align-items: flex-end;
  gap: 1.35rem;
  padding: 0 1.7rem 1.55rem;
  margin-top: -4.2rem;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hub--profile .avatar-shot,
.hub--profile .avatar-shot .nav-avatar {
  width: 128px;
  height: 128px;
}

.profile-stage__id .avatar-shot {
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.profile-stage__id .id-head__copy,
.profile-stage__id .id-metrics,
.profile-stage__id .id-head__name,
.profile-stage__id .id-head__handle,
.profile-stage__id .id-head__streak {
  pointer-events: none;
}

.banner-edit__label {
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.banner-edit__label:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hub--profile .avatar-shot .nav-avatar {
  font-size: 1.7rem;
  border: 4px solid #12141c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.45);
}

.hub--profile .id-head__name strong {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

.hub--profile .id-head__handle {
  margin-top: 0.28rem;
  font-size: 0.95rem;
}

.hub--profile .id-head__watch {
  margin-top: 0.55rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(88, 101, 242, 0.28);
  width: fit-content;
}

.hub--profile .id-metrics {
  margin: 1.05rem 0 0;
  gap: 0.7rem;
}

.hub--profile .id-metrics div {
  min-width: 6.4rem;
  padding: 0.7rem 0.85rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hub--profile .id-metrics dd {
  font-size: 1.35rem;
}

.profile-stage__edit {
  padding: 0.35rem 1.7rem 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-stage__edit-head {
  margin: 1.15rem 0 1.25rem;
}

.profile-stage__edit-head h2 {
  margin: 0 0 0.3rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.profile-stage__edit-head p {
  margin: 0;
  color: var(--grey-muted);
  font-size: 0.88rem;
}

.profile-stage__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
}

.profile-stage .forum-field {
  margin: 0;
}

.profile-stage .forum-field textarea {
  min-height: 7.2rem;
}

.profile-stage__bio,
.profile-stage__full {
  grid-column: 1 / -1;
}

.profile-stage .profile-actions {
  margin-top: 1.35rem;
}

@media (max-width: 860px) {
  .hub--profile .banner-edit {
    height: 150px;
  }

  .profile-stage__id {
    flex-wrap: wrap;
    margin-top: -3.2rem;
    padding: 0 1.15rem 1.2rem;
  }

  .hub--profile .avatar-shot,
  .hub--profile .avatar-shot .nav-avatar {
    width: 96px;
    height: 96px;
  }

  .profile-stage__fields {
    grid-template-columns: 1fr;
  }

  .profile-stage__edit {
    padding: 0.2rem 1.15rem 1.3rem;
  }
}

.hub-ok {
  color: #86efac;
  min-height: 1.1em;
  margin: 0 0 0.85rem;
}

.hub-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.hub-stats div {
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hub-stats b {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.hub-stats span {
  color: var(--grey-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.now-watching {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 1.05rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(235, 69, 158, 0.12));
  border: 1px solid rgba(88, 101, 242, 0.28);
}

.now-watching svg {
  width: 22px;
  height: 22px;
}

.now-watching span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.now-watching strong {
  font-size: 1rem;
}

.genre-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.genre-pick {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 0.48rem 0.85rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.genre-pick:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.genre-pick.is-on {
  background: #fff;
  color: #0a0c12;
  border-color: #fff;
  font-weight: 700;
}

.genre-chip-badge {
  display: inline-block;
  margin-left: 0;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  border: 0;
  background: rgba(88, 101, 242, 0.22);
  color: #c7d2fe;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
}

.people-row a span {
  display: flex;
  flex-direction: column;
}

.people-row a em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0;
}

.people-row .hub-muted,
.chat-pane__head .hub-muted {
  margin: 0.2rem 0 0;
}

@media (max-width: 700px) {
  .hub-stats {
    grid-template-columns: 1fr 1fr;
  }

  .id-head {
    align-items: flex-start;
  }
}

.profile-name {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0.4rem 0 0.35rem;
  font-family: 'Space Grotesk', Inter, sans-serif;
}

.profile-bio {
  margin: 0.7rem 0 0;
  max-width: 40rem;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  color: #c7d2fe;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.35rem 0 1.3rem;
}

.profile-card .profile-actions {
  margin: 0.2rem 0 0;
}

.avatar-edit {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.avatar-edit__meta {
  min-width: 0;
  flex: 1;
}

.id-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.id-head__copy {
  min-width: 0;
  flex: 1;
}

.id-head__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.id-head__name strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.12;
}

.id-head__handle {
  margin: 0.3rem 0 0;
  color: var(--grey-muted);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.id-head__watch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  color: #c7d2fe;
  font-size: 0.88rem;
}

.id-head__watch svg {
  width: 14px;
  height: 14px;
}

.id-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.2rem;
  margin: 1rem 0 0;
}

.id-metrics div {
  margin: 0;
}

.id-metrics dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.id-metrics dt {
  margin: 0.22rem 0 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey-muted);
}

.id-head__hint {
  margin: 1rem 0 0;
  color: var(--grey-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.id-split {
  height: 1px;
  margin: 1.6rem 0 1.4rem;
  background: rgba(255, 255, 255, 0.06);
}

.id-edit-title {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

.avatar-shot {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.avatar-shot .nav-avatar {
  width: 96px;
  height: 96px;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.avatar-shot__veil {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.avatar-shot__veil svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.avatar-shot:hover .avatar-shot__veil,
.avatar-shot:focus-within .avatar-shot__veil {
  opacity: 1;
}

.hub-stats--inline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.45rem;
}

.hub-stats--inline div {
  padding: 0.55rem 0.6rem 0.6rem;
  border-radius: 12px;
}

.avatar-upload {
  cursor: pointer;
}

.people-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.people-row:last-child {
  border-bottom: 0;
  padding-bottom: 0.2rem;
}

.people-row a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.people-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hub--chat .hub-main {
  padding-top: 0.15rem;
  min-height: 0;
  gap: 0.55rem;
}

.hub--chat .hub-head--chat {
  margin-bottom: 0;
}

.hub--chat .hub-head--chat h1 {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

.hub--chat .hub-head--chat p {
  font-size: 0.8rem;
  opacity: 0.68;
  margin: 0;
}

.hub--chat {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: none;
}

/* Passt in den Viewport: kein Seiten-Scroll nötig */
.forum-shell:has(.hub--chat) {
  padding-top: 5rem;
  padding-bottom: 0.75rem;
  min-height: 100dvh;
  box-sizing: border-box;
}

.hub--chat .chat-app {
  margin-top: 0.2rem;
  flex: 1 1 auto;
  width: 100%;
  height: calc(100dvh - 9.75rem);
  max-height: calc(100dvh - 9.75rem);
  min-height: 18rem;
}

.chat-layout,
.chat-app {
  display: grid;
  grid-template-columns: minmax(15rem, 19.5rem) minmax(0, 1fr);
  min-height: min(70vh, 42rem);
  height: min(70vh, 42rem);
  border-radius: 1.15rem;
  overflow: hidden;
  background: rgba(14, 14, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.chat-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.chat-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.chat-list__title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.chat-list__count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.42rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.chat-list__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.55rem 0.55rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chat-list__scroll::-webkit-scrollbar,
.chat-log::-webkit-scrollbar {
  width: 6px;
}

.chat-list__scroll::-webkit-scrollbar-thumb,
.chat-log::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.chat-list__empty {
  margin: 1.6rem 0.55rem 0;
  padding: 1.2rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0.7rem 0.65rem;
  border-radius: 0.85rem;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease;
}

.chat-item > .nav-avatar {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
}

.chat-item__body {
  min-width: 0;
  flex: 1;
}

.chat-item__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.chat-item__row time {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.38);
}

.chat-item__badge {
  flex-shrink: 0;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.chat-item strong {
  font-size: 0.88rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.94);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item em {
  display: block;
  margin-top: 0.18rem;
  font-style: normal;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item.has-unread strong { color: #fff; }
.chat-item.has-unread em { color: rgba(255, 255, 255, 0.72); }
.chat-item:hover { background: rgba(255, 255, 255, 0.06); }
.chat-item.is-on { background: rgba(255, 255, 255, 0.1); }

.chat-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: rgba(0, 0, 0, 0.18);
}

.chat-empty {
  margin: auto;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 18rem;
}

.chat-empty__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.chat-empty__icon svg { width: 1.25rem; height: 1.25rem; }
.chat-empty strong { display: block; margin-bottom: 0.35rem; font-size: 1.05rem; color: #fff; }
.chat-empty p { margin: 0; font-size: 0.86rem; line-height: 1.45; color: rgba(255, 255, 255, 0.5); }

.chat-pane__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.chat-pane__peer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.chat-pane__peer:hover { color: #fff; }
.chat-pane__peer .nav-avatar { width: 2.35rem; height: 2.35rem; flex-shrink: 0; }
.chat-pane__peer > span { min-width: 0; }
.chat-pane__peer strong { display: block; font-size: 0.95rem; font-weight: 700; color: #fff; }
.chat-pane__peer em {
  display: block;
  margin-top: 0.1rem;
  font-style: normal;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-pane__profile {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.chat-pane__profile:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.chat-pane__profile svg { width: 1.05rem; height: 1.05rem; }

.chat-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.1rem 0.85rem;
  scroll-behavior: smooth;
}

.chat-log__empty {
  margin: auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}

.chat-log__empty svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  margin: 0 auto 0.55rem;
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.65);
}

.chat-log__empty p { margin: 0; }

.chat-bubble {
  max-width: min(78%, 26rem);
  padding: 0.55rem 0.8rem 0.4rem;
  border-radius: 1rem 1rem 1rem 0.35rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-self: flex-start;
  line-height: 1.4;
  font-size: 0.9rem;
  animation: chat-bubble-in 0.2s ease;
}

.chat-bubble__text {
  display: block;
  margin: 0;
  word-break: break-word;
  color: rgba(235, 235, 240, 0.94);
}

.chat-bubble.is-mine {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 1rem 1rem 0.35rem 1rem;
}

.chat-bubble.is-mine .chat-bubble__text { color: #111; }

.chat-bubble time {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.64rem;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.chat-bubble__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.28rem;
  font-size: 0.64rem;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.chat-bubble__meta time {
  margin: 0;
  opacity: 1;
}

.chat-bubble__status {
  font-weight: 650;
  letter-spacing: 0.01em;
}

.chat-bubble__status.is-seen {
  color: rgba(6, 95, 70, 0.95);
  opacity: 1;
}

.chat-bubble.is-mine time {
  opacity: 0.55;
  text-align: right;
  color: #333;
}

.chat-bubble.is-mine .chat-bubble__meta {
  color: #333;
  opacity: 0.7;
}

@keyframes chat-bubble-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-compose {
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.75rem 0.9rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.chat-compose__field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.65rem;
  padding: 0.22rem 0.22rem 0.22rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-compose__field:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.chat-compose input {
  flex: 1;
  min-width: 0;
  height: 2.2rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  outline: none;
  font: inherit;
  font-size: 0.92rem;
}

.chat-compose input:focus { outline: none; box-shadow: none; }
.chat-compose input::placeholder { color: rgba(255, 255, 255, 0.35); }

.chat-compose__send {
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.chat-compose__send svg { width: 1rem; height: 1rem; }
.chat-compose__send:hover { background: #fff; transform: translateY(-1px); }
.chat-compose__send:active { transform: none; }
.chat-compose__send:disabled { opacity: 0.55; cursor: wait; transform: none; }

@media (max-width: 900px) {
  .hub,
  .chat-layout,
  .chat-app {
    grid-template-columns: 1fr;
  }

  .hub--chat .chat-app {
    height: auto;
    min-height: calc(100vh - 12rem);
    max-height: none;
  }

  .hub-nav {
    position: static;
  }

  .hub {
    grid-template-columns: 1fr;
  }

  .hub-tabs {
    flex-direction: column;
    overflow: visible;
    gap: 0.2rem;
  }

  .hub-tab span {
    display: inline;
  }

  .hub-tab {
    width: 100%;
    justify-content: flex-start;
  }

  .chat-list {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 16rem;
  }

  .chat-list__scroll {
    max-height: 12rem;
  }

  .chat-pane {
    min-height: 20rem;
  }

  .chat-app {
    height: auto;
    min-height: 22rem;
  }
}

/* —— Global All-Chat (Glass, rechte Sidebar) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-party-link {
  flex-shrink: 0;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-party-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

.nav-party-link:hover,
.nav-party-link:active,
.nav-party-link[aria-current='page'] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.nav-global-chat {
  flex-shrink: 0;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-global-chat svg {
  width: 1.1rem;
  height: 1.1rem;
}

.nav-global-chat:hover,
.nav-global-chat:active,
.nav-global-chat[aria-expanded='true'] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.global-chat {
  position: fixed;
  inset: 0;
  z-index: 9200;
  pointer-events: none;
}

.global-chat__scrim {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.global-chat.is-open .global-chat__scrim {
  pointer-events: auto;
  opacity: 1;
}

.global-chat__panel {
  pointer-events: auto;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9220;
  width: min(22.5rem, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(18, 18, 22, 0.55) 38%,
    rgba(10, 10, 12, 0.72) 100%
  );
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    -20px 0 50px rgba(0, 0, 0, 0.35),
    inset 1px 0 0 rgba(255, 255, 255, 0.08);
  transform: translateX(104%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.global-chat.is-open .global-chat__panel {
  transform: translateX(0);
}

.global-chat__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.global-chat__kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.global-chat__head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.global-chat__close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  -webkit-tap-highlight-color: transparent;
}

.global-chat__close:hover,
.global-chat__close:active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.global-chat__close svg {
  width: 1.05rem;
  height: 1.05rem;
}

.global-chat__log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.global-chat__empty {
  margin: auto;
  text-align: center;
  padding: 1.5rem 1rem;
  color: rgba(255, 255, 255, 0.55);
}

.global-chat__empty p {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.global-chat__empty span {
  font-size: 0.86rem;
}

.global-chat__msg {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  max-width: 100%;
  padding: 0.1rem 0;
}

.global-chat__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.35rem;
  min-width: 0;
}

.global-chat__badges {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  flex-shrink: 0;
}

.gc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.05rem;
  padding: 0 0.4rem;
  border-radius: 0.28rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  vertical-align: middle;
  white-space: nowrap;
}

.gc-badge--mod { background: #1e90ff; color: #fff; }
.gc-badge--support { background: #38bdf8; color: #0b1220; }
.gc-badge--partner { background: #f59e0b; color: #1a1200; }
.gc-badge--owner { background: #f5f5f5; color: #111; }
.gc-badge--dev { background: #3b82f6; color: #fff; }
.gc-badge--lead { background: #a855f7; color: #fff; }
.gc-badge--design { background: #ec4899; color: #fff; }
.gc-badge--community { background: #14b8a6; color: #042f2e; }
.gc-badge--vip { background: #10b981; color: #042f2e; }
.gc-badge--active { background: #92400e; color: #fef3c7; }

.global-chat__name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.global-chat__name:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.global-chat__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: rgba(220, 220, 228, 0.82);
  word-break: break-word;
  white-space: pre-wrap;
}

.global-chat__compose {
  flex-shrink: 0;
  padding: 0.7rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.global-chat__composer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.7rem;
  padding: 0.28rem 0.28rem 0.28rem 0.7rem;
  border-radius: 0.9rem;
  background: rgba(12, 12, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.global-chat__emoji {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.global-chat__emoji:hover,
.global-chat__emoji[aria-expanded='true'] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.global-chat__emoji svg {
  width: 1.15rem;
  height: 1.15rem;
}

.ck-emoji-picker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.45rem);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.2rem;
  max-height: 11.5rem;
  overflow: auto;
  padding: 0.55rem;
  border-radius: 0.9rem;
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.ck-emoji-picker[hidden] {
  display: none !important;
}

.ck-emoji-picker.is-open {
  display: grid;
}

.ck-emoji-picker__btn {
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
}

.ck-emoji-picker__btn:hover,
.ck-emoji-picker__btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.global-chat__field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.global-chat__lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 0.55rem;
  background: rgba(8, 8, 10, 0.88);
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.global-chat__lock svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.global-chat__lock:hover,
.global-chat__lock:active {
  color: #fff;
  background: rgba(12, 12, 14, 0.94);
}

.global-chat__compose input {
  width: 100%;
  flex: 1;
  min-width: 0;
  height: 2.15rem;
  padding: 0 0.35rem;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 0.92rem;
}

.global-chat__compose input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.global-chat__compose input:focus {
  border: 0;
  box-shadow: none;
}

.global-chat__compose[data-guest='1'] input {
  cursor: default;
  opacity: 0.28;
  pointer-events: none;
}

.global-chat__compose[data-guest='1'] .global-chat__emoji,
.global-chat__compose[data-guest='1'] .global-chat__send {
  opacity: 0.45;
  pointer-events: none;
}

.global-chat__compose[data-guest='0'] .global-chat__lock {
  display: none;
}

.global-chat__send {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  -webkit-tap-highlight-color: transparent;
}

.global-chat__send svg {
  width: 1rem;
  height: 1rem;
}

.global-chat__send:hover,
.global-chat__send:active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

body.global-chat-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 768px) {
  .nav-party-link,
  .nav-global-chat {
    width: 2.65rem;
    height: 2.65rem;
  }

  .nav-party-link svg,
  .nav-global-chat svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .nav-party-link:active,
  .nav-global-chat:active {
    transform: scale(0.94);
  }

  .global-chat {
    z-index: 9600;
  }

  .global-chat__scrim {
    background: rgba(0, 0, 0, 0.55);
  }

  .global-chat__panel {
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(22, 22, 28, 0.98) 0%, rgba(8, 8, 10, 0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(104%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .global-chat.is-open .global-chat__panel {
    transform: translateY(0);
  }

  .global-chat__head {
    padding: max(0.85rem, env(safe-area-inset-top, 0px)) 1rem 0.9rem;
    gap: 0.85rem;
  }

  .global-chat__head h2 {
    font-size: 1.28rem;
  }

  .global-chat__close {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
  }

  .global-chat__log {
    padding: 0.95rem 1rem 1.15rem;
    gap: 0.85rem;
  }

  .global-chat__name {
    font-size: 0.95rem;
  }

  .global-chat__text {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(230, 230, 236, 0.9);
  }

  .global-chat__compose {
    padding: 0.75rem 0.85rem calc(0.95rem + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.35);
  }

  .global-chat__composer {
    min-height: 3rem;
    padding: 0.3rem 0.3rem 0.3rem 0.85rem;
    border-radius: 1.05rem;
  }

  .global-chat__emoji {
    width: 2.45rem;
    height: 2.45rem;
  }

  .global-chat__compose input {
    height: 2.4rem;
    font-size: 16px;
  }

  .global-chat__send {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
  }

  .global-chat__send svg {
    width: 1.15rem;
    height: 1.15rem;
  }
}

@media (max-width: 768px) {
  .forum-shell {
    padding: 5.4rem 0.85rem 3.5rem;
  }

  .xf-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .xf-row__stat {
    display: none;
  }

  .forum-thread__count span {
    display: none;
  }

  .forum-spot {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 7rem;
  }

  .forum-spot__poster {
    width: 108px;
    height: 162px;
  }

  .forum-menu-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .forum-menu-scrim {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  /* Profil-Seite Mobile cleaner */
  .forum-page .forum-shell {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .profile-hero,
  .profil-hero,
  #profile-root > header,
  .forum-profile-head {
    border-radius: 1rem;
  }
}
