/*
 * AnimeRadar v2.4.194 - Social Media (#view-socials)
 *
 * Desktop layout matched to the Social-Media golden master. Only the visual
 * layer lives here: the external channel links, the route (/community), the
 * view id, the SEO hooks and [data-page-heading] stay exactly as they are.
 *
 * The page uses its own socialhub-* class family so the shared
 * .social-community-* rules (home page block, mobile) keep working untouched.
 *
 * Colors come from the shared --md-* palette. The #view-socials token block in
 * material-redesign-v2-4-194.css resolves to:
 *   primary #ff4d57, action-fill #d73b47, secondary #ff8a8d,
 *   primary-container #3a0d12, background/surface #121212,
 *   surface-variant #1e1e1e, surface-elevated #252225, outline #2b2b2b,
 *   on-surface #ededed, muted #b8adb1, dim #817579.
 * Discord keeps a single brand accent (blurple) as the only non-crimson tone.
 */

#view-socials {
  --socialhub-gap: 13px;
  --socialhub-pad: 16px;
  --socialhub-radius: 12px;
  --socialhub-line: var(--md-outline);
  --socialhub-line-soft: color-mix(in srgb, var(--md-outline) 70%, transparent);
  --socialhub-card: var(--md-surface-variant);
  --socialhub-card-2: color-mix(in srgb, var(--md-surface-elevated) 70%, var(--md-surface-variant));
  --socialhub-discord: #5865f2;
  --socialhub-discord-fill: #5548c8;
  --socialhub-discord-fill-hover: #6154d8;
}

/* -------------------------------------------------------------------------- */
/* Shared primitives                                                          */
/* -------------------------------------------------------------------------- */

#view-socials .socialhub-hero,
#view-socials .socialhub-platform,
#view-socials .socialhub-latest,
#view-socials .socialhub-discord,
#view-socials .socialhub-channel {
  border: 1px solid var(--socialhub-line);
  border-radius: var(--socialhub-radius);
  background: var(--socialhub-card);
  box-shadow: var(--md-elevation-1);
}

#view-socials .socialhub-cta,
#view-socials .socialhub-channel-link,
#view-socials .socialhub-discord-cta {
  text-decoration: none;
}

#view-socials svg {
  display: block;
}

#view-socials .socialhub-point-icon svg,
#view-socials .socialhub-feature-icon svg,
#view-socials .socialhub-cta-icon,
#view-socials .socialhub-channel-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -------------------------------------------------------------------------- */
/* Page header                                                                */
/* -------------------------------------------------------------------------- */

#view-socials .socialhub-header {
  margin: 0 0 19px !important;
}

#view-socials .socialhub-header .page-main-title {
  margin: 0 !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.16 !important;
  letter-spacing: -.016em !important;
}

#view-socials .socialhub-header p {
  max-width: none;
  margin: 7px 0 0;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

#view-socials .socialhub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46%;
  align-items: stretch;
  height: 204px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--md-primary) 26%, var(--md-outline));
  background: linear-gradient(100deg, #1a0c10 0%, #1d0d12 42%, #241016 100%);
  isolation: isolate;
}

/* Das Inkedweeb-Banner ist als durchgehendes Breitbild angelegt: links dunkel
   und frei fuer den Text, Motiv und Schriftzug rechts. Es liegt deshalb ueber
   der ganzen Hero-Breite statt nur im rechten Drittel wie das fruehere
   Key-Visual. Die Lesbarkeit links uebernimmt weiterhin der vorhandene
   Verlauf auf .socialhub-hero::before. */
#view-socials .socialhub-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
}

#view-socials .socialhub-hero-art picture,
#view-socials .socialhub-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
}

#view-socials .socialhub-hero-art img {
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center 45%;
  filter: brightness(.9) contrast(1.02);
}

/* Das fruehere Key-Visual war kuehl und wurde hier auf die Seitenpalette
   umgefaerbt. Das Inkedweeb-Banner ist bereits rot und braucht das nicht -
   eine zweite Einfaerbung wuerde den Schriftzug nur zusetzen. */
#view-socials .socialhub-hero-art::after {
  content: none;
}

/* Vignette so the artwork sits inside the hero instead of hitting its edges. */
#view-socials .socialhub-hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(270deg, rgba(18, 9, 12, .34) 0%, transparent 18%),
    linear-gradient(180deg, rgba(18, 9, 12, .34) 0%, transparent 26%);
}

#view-socials .socialhub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(24, 11, 15, .94) 0%,
      rgba(24, 11, 15, .9) 26%,
      rgba(24, 11, 15, .62) 40%,
      rgba(24, 11, 15, .18) 54%,
      rgba(24, 11, 15, .04) 70%,
      rgba(24, 11, 15, .18) 100%),
    linear-gradient(0deg, rgba(16, 8, 10, .58) 0%, rgba(16, 8, 10, .06) 40%, transparent 62%);
}

#view-socials .socialhub-hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: center;
  display: grid;
  gap: 0;
  padding: 0 38px;
}

#view-socials .socialhub-hero-brands {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0;
  color: var(--md-on-surface);
}

#view-socials .socialhub-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

#view-socials .socialhub-brand-mark,
#view-socials .socialhub-brand-mark picture,
#view-socials .socialhub-brand-mark img {
  display: block;
  width: 34px;
  height: 34px;
}

#view-socials .socialhub-brand b {
  color: #fff;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: .085em;
  text-transform: uppercase;
}

#view-socials .socialhub-brand-cross {
  color: color-mix(in srgb, var(--md-muted) 78%, transparent);
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
}

#view-socials .socialhub-brand-partner {
  color: #fff;
  font-family: var(--font-display);
  font-size: 23px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: .012em;
  text-transform: uppercase;
}

#view-socials .socialhub-hero-lead {
  margin: 15px 0 0;
  color: color-mix(in srgb, #fff 84%, transparent);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.63;
}

#view-socials .socialhub-hero-points {
  display: flex;
  align-items: flex-start;
  gap: 42px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

#view-socials .socialhub-hero-points li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

#view-socials .socialhub-point-icon {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  color: var(--md-primary);
}

#view-socials .socialhub-point-icon svg {
  width: 21px;
  height: 21px;
}

#view-socials .socialhub-point-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#view-socials .socialhub-point-copy b {
  color: #fff;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.2;
}

#view-socials .socialhub-point-copy small {
  color: color-mix(in srgb, var(--md-muted) 92%, transparent);
  font-size: 11.5px;
  line-height: 1.25;
}

/* -------------------------------------------------------------------------- */
/* Platform cards                                                             */
/* -------------------------------------------------------------------------- */

#view-socials .socialhub-platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: var(--socialhub-gap);
}

#view-socials .socialhub-platform {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-width: 0;
  height: 214px;
  padding: var(--socialhub-pad);
  transition:
    transform .18s var(--md-motion),
    border-color .18s var(--md-motion),
    box-shadow .18s var(--md-motion);
}

#view-socials .socialhub-platform:hover,
#view-socials .socialhub-platform:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--md-primary) 42%, var(--md-outline));
  box-shadow: var(--md-elevation-3);
}

#view-socials .socialhub-platform-head {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

#view-socials .socialhub-platform-logo {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

#view-socials .socialhub-platform-logo svg {
  width: 25px;
  height: 25px;
}

#view-socials .socialhub-platform-ident {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#view-socials .socialhub-platform-ident b {
  overflow: hidden;
  color: var(--md-on-surface);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.012em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-socials .socialhub-platform-ident small {
  overflow: hidden;
  color: var(--md-muted);
  font-size: 12.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Two reserved lines keep the chip rows and CTAs of all four cards on the same
   baseline, exactly as the board shows them. */
#view-socials .socialhub-platform-desc {
  min-height: 38px;
  margin: 13px 0 0;
  color: var(--md-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

#view-socials .socialhub-platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

#view-socials .socialhub-platform-tags li {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--socialhub-line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--md-surface-elevated) 55%, transparent);
  color: var(--md-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

#view-socials .socialhub-cta {
  display: flex;
  align-items: center;
  align-self: end;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-height: 36px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--md-action-fill);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  transition: background .16s var(--md-motion);
}

/* One real link per card, stretched over the whole surface: the entire card
   stays clickable without nesting anchors. */
#view-socials .socialhub-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--socialhub-radius);
}

#view-socials .socialhub-cta:hover {
  background: color-mix(in srgb, var(--md-action-fill) 84%, #fff);
}

#view-socials .socialhub-cta:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 2px;
}

#view-socials .socialhub-cta-icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  opacity: .92;
}

#view-socials .socialhub-cta-brand {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

#view-socials .socialhub-cta-discord {
  background: var(--socialhub-discord-fill);
}

#view-socials .socialhub-cta-discord:hover {
  background: var(--socialhub-discord-fill-hover);
}

#view-socials .socialhub-cta-discord:focus-visible {
  outline-color: var(--socialhub-discord);
}

/* Platform brand marks. Only the 44px logo tile carries the full brand colour -
   the surrounding card stays AnimeRadar dark/wine. */
#view-socials .socialhub-platform-instagram .socialhub-platform-logo {
  background: linear-gradient(135deg, #feda75 0%, #d62976 52%, #4f5bd5 100%);
}

#view-socials .socialhub-platform-instagram .socialhub-platform-logo svg {
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
}

#view-socials .socialhub-platform-instagram .socialhub-logo-dot {
  fill: #fff;
  stroke: none;
}

#view-socials .socialhub-platform-tiktok .socialhub-platform-logo {
  background: linear-gradient(150deg, #1b1b1f 0%, #0b0b0d 100%);
}

#view-socials .socialhub-platform-tiktok .socialhub-platform-logo svg {
  fill: #fff;
  stroke: none;
}

#view-socials .socialhub-platform-youtube .socialhub-platform-logo {
  background: #f0000f;
}

#view-socials .socialhub-platform-youtube .socialhub-platform-logo svg {
  fill: #fff;
  stroke: none;
}

#view-socials .socialhub-platform-youtube .socialhub-platform-logo .socialhub-logo-cutout {
  fill: #f0000f;
}

#view-socials .socialhub-platform-discord .socialhub-platform-logo {
  background: var(--socialhub-discord);
}

#view-socials .socialhub-platform-discord .socialhub-platform-logo svg {
  fill: #fff;
  stroke: none;
}

/* Channel banners: dark AnimeRadar surface with a restrained brand tint, so the
   lower row keeps the board's dark tone instead of four loud colour blocks. */
#view-socials .socialhub-channel-art {
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--socialhub-tint) 34%, transparent), transparent 68%),
    linear-gradient(160deg, color-mix(in srgb, var(--socialhub-tint) 15%, #17161a) 0%, #100f12 100%);
}

#view-socials .socialhub-channel-instagram {
  --socialhub-tint: #d62976;
}

#view-socials .socialhub-channel-tiktok {
  --socialhub-tint: #6b7280;
}

#view-socials .socialhub-channel-youtube {
  --socialhub-tint: #f0000f;
}

#view-socials .socialhub-channel-instagram .socialhub-channel-art svg {
  fill: none;
  stroke: #f486b4;
  stroke-width: 1.7;
}

#view-socials .socialhub-channel-instagram .socialhub-logo-dot {
  fill: #f486b4;
  stroke: none;
}

#view-socials .socialhub-channel-tiktok .socialhub-channel-art svg {
  fill: #e9e6ea;
  stroke: none;
}

#view-socials .socialhub-channel-youtube .socialhub-channel-art svg {
  fill: #f4444f;
  stroke: none;
}

#view-socials .socialhub-channel-youtube .socialhub-channel-art .socialhub-logo-cutout {
  fill: #150d10;
}

/* -------------------------------------------------------------------------- */
/* Lower grid                                                                 */
/* -------------------------------------------------------------------------- */

#view-socials .socialhub-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: var(--socialhub-gap);
}

#view-socials .socialhub-latest,
#view-socials .socialhub-discord {
  display: grid;
  min-width: 0;
  height: 328px;
  padding: var(--socialhub-pad) 18px 18px;
}

#view-socials .socialhub-latest {
  grid-template-rows: auto minmax(0, 1fr);
}

#view-socials .socialhub-discord {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

#view-socials .socialhub-panel-head h2 {
  margin: 0;
  color: var(--md-on-surface);
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.012em;
}

#view-socials .socialhub-panel-head p {
  margin: 6px 0 0;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* --- Neueste Inhalte: honest channel hub, no invented feed items ---------- */

#view-socials .socialhub-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
  margin-top: 15px;
}

#view-socials .socialhub-channel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  background: var(--socialhub-card-2);
  transition:
    transform .18s var(--md-motion),
    border-color .18s var(--md-motion),
    box-shadow .18s var(--md-motion);
}

#view-socials .socialhub-channel:hover,
#view-socials .socialhub-channel:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--md-primary) 42%, var(--md-outline));
  box-shadow: var(--md-elevation-3);
}

#view-socials .socialhub-channel-art {
  display: grid;
  place-items: center;
  min-height: 96px;
}

#view-socials .socialhub-channel-art svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45));
}

#view-socials .socialhub-channel-body {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px 13px 13px;
}

#view-socials .socialhub-channel-body b {
  color: var(--md-on-surface);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
}

#view-socials .socialhub-channel-body small {
  color: var(--md-dim);
  font-size: 11px;
  line-height: 1.2;
}

#view-socials .socialhub-channel-body p {
  margin: 0;
  color: var(--md-muted);
  font-size: 11.5px;
  line-height: 1.42;
}

#view-socials .socialhub-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--md-secondary);
  font-size: 11.5px;
  font-weight: 650;
}

#view-socials .socialhub-channel-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--socialhub-radius);
}

#view-socials .socialhub-channel-link svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  transition: transform .18s var(--md-motion);
}

#view-socials .socialhub-channel:hover .socialhub-channel-link svg {
  transform: translate(2px, -2px);
}

#view-socials .socialhub-channel-link:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 3px;
}

/* --- Discord panel -------------------------------------------------------- */

#view-socials .socialhub-discord-features {
  display: grid;
  align-content: start;
  gap: 15px;
  min-height: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

#view-socials .socialhub-discord-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

#view-socials .socialhub-feature-icon {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  color: var(--md-primary);
}

#view-socials .socialhub-feature-icon svg {
  width: 21px;
  height: 21px;
}

#view-socials .socialhub-feature-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#view-socials .socialhub-feature-copy b {
  color: var(--md-on-surface);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.2;
}

#view-socials .socialhub-feature-copy small {
  color: var(--md-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

#view-socials .socialhub-discord-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 38px;
  min-height: 38px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--socialhub-discord-fill);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  transition: background .16s var(--md-motion);
}

#view-socials .socialhub-discord-cta:hover {
  background: var(--socialhub-discord-fill-hover);
}

#view-socials .socialhub-discord-cta:focus-visible {
  outline: 2px solid var(--socialhub-discord);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Tablet / mobile: the desktop golden master only covers >=1200px.           */
/* Below that the same blocks reflow; nothing is hidden, no link is lost.     */
/* -------------------------------------------------------------------------- */

@media (min-width: 1361px) and (min-height: 1050px) {
  #view-socials .socialhub-hero {
    height: clamp(204px, calc(14dvh + 72px), 280px);
  }

  #view-socials .socialhub-platform {
    height: clamp(214px, calc(20dvh + 18px), 340px);
  }

  #view-socials .socialhub-latest,
  #view-socials .socialhub-discord {
    height: clamp(328px, calc(50dvh - 142px), 650px);
  }
}

@media (max-width: 1360px) {
  #view-socials .socialhub-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-socials .socialhub-platform {
    height: auto;
    min-height: 214px;
  }

  #view-socials .socialhub-lower {
    grid-template-columns: minmax(0, 1fr);
  }

  #view-socials .socialhub-latest,
  #view-socials .socialhub-discord {
    height: auto;
  }
}

@media (max-width: 959px) {
  #view-socials .socialhub-hero {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 210px;
  }

  #view-socials .socialhub-hero-copy {
    padding: 22px 20px;
  }

  #view-socials .socialhub-hero-points {
    flex-wrap: wrap;
    gap: 14px 26px;
  }
}

@media (max-width: 760px) {
  #view-socials .socialhub-header .page-main-title {
    font-size: 24px !important;
  }

  #view-socials .socialhub-hero {
    min-height: 0;
  }

  #view-socials .socialhub-hero-art {
    inset: 0;
    opacity: .62;
  }

  /* Schmal wird seitlich beschnitten - der Schriftzug sitzt rechts der Mitte
     und bleibt so im Bild. */
  #view-socials .socialhub-hero-art img {
    object-position: 68% 45%;
  }

  #view-socials .socialhub-brand b {
    font-size: 15px;
  }

  #view-socials .socialhub-brand-partner {
    font-size: 19px;
  }

  #view-socials .socialhub-hero-lead {
    font-size: 13.5px;
  }

  #view-socials .socialhub-hero-points {
    gap: 12px;
  }

  #view-socials .socialhub-hero-points li {
    flex: 1 1 100%;
  }

  #view-socials .socialhub-platforms {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #view-socials .socialhub-platform {
    min-height: 0;
  }

  #view-socials .socialhub-lower {
    gap: 12px;
  }

  #view-socials .socialhub-channels {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #view-socials .socialhub-channel {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  #view-socials .socialhub-channel-art {
    min-height: 0;
  }

  #view-socials .socialhub-channel-art svg {
    width: 32px;
    height: 32px;
  }
}
