/*
 * AnimeRadar v2.4.223
 *
 * Teil A: Der Kopfzeilen-Avatar oben rechts wird global entfernt. Bisher galt
 *         das nur fuer die Startseite auf Desktop (V2.4.221).
 * Teil B: Social Media (#view-socials) nach der beigefuegten Referenz
 *         "Social Media Referenz.png" - Desktop links, Mobile rechts.
 *
 * Alle Selektoren in Teil B tragen das Praefix
 * "#view-socials.socialhub-2026", damit sie die aelteren
 * "#view-socials ..."-Regeln aus material-reference-socials-v2-4-194.css
 * ohne !important ueberschreiben und keine andere Seite beruehren.
 *
 * Aus der Referenz gemessene Desktopwerte (Bildkoordinaten; der Browser-
 * Viewport der Vorlage beginnt bei 13/39 und ist rund 1046 px breit):
 *
 *   Hero            x 212-1048, y  89-263  -> Hoehe 174, Radius 12, 1px Rahmen
 *                   Textkante x 229        -> Innenabstand links 16
 *                   Titel 36/800, Unterzeile 19/600, Text 14/400
 *   Panel           y 280-712, Innenabstand 12 (oben 7), Titel 16/700
 *   Kanalkarten     y 316-544 -> Hoehe 228, 4 Spalten, Abstand 12
 *                   Logo 62, Name 19/700, Text 15/400, CTA 39 hoch, 13/600
 *
 * V2.4.233: Die Beschreibungszeilen unter den vier Kanalnamen und die
 * Partnerkarte inkedweeb wurden auf Wunsch entfernt. Die Kartenhoehe faellt
 * dadurch von 228 auf 187; der Abstand Name zu Aktion bleibt bei 14.
 *
 * Mobile stammt aus dem Smartphone-Ausschnitt der Vorlage, umgerechnet auf
 * 390 px Viewport: Hero 197 hoch, vier Kanalkarten nebeneinander. Der
 * Smartphone-Rahmen selbst ist reines Mockup und wird nicht nachgebaut.
 */

/* ========================================================================== */
/* Teil A - Kopfzeilen-Avatar global entfernen                                */
/* ========================================================================== */

/* Der Knopf bleibt im DOM: syncSidebarAccountUi() nutzt ihn auf Mobile als
   Anker, vor den die Glocke einsortiert wird. Nur die Anzeige entfaellt -
   Auth-Zustand, Login, Account-Menue und Profilroute bleiben unveraendert. */
html body #topbarAvatarBtn,
html body .content-topbar-avatar {
  display: none !important;
}

@media (min-width: 960px) {
  /* Ohne Avatar bleibt am rechten Rand der Inhaltskopfzeile keine Luecke. */
  html:not(.native-app) body .content-topbar-actions {
    gap: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 959px) {
  /* Mobile Kopfzeile: der runde Knopf oben rechts ist zugleich der einzige
     Account-Zugang (Profil und Abmelden). Er bleibt bestehen, zeigt aber kein
     Profilbild mehr, sondern die bereits vorhandene Initiale. */
  html body.is-signed-in .topbar .top-account-button .top-account-avatar img {
    display: none !important;
  }

  html body.is-signed-in .topbar .top-account-button .top-account-avatar::after {
    content: attr(data-initial);
    color: var(--md-on-surface);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
  }
}

/* ========================================================================== */
/* Teil B - Social Media                                                      */
/* ========================================================================== */

#view-socials.socialhub-2026 {
  --sh-radius: 12px;
  --sh-card-radius: 10px;
  --sh-pad: 12px;
  --sh-gap: 12px;
  --sh-panel-line: rgba(255, 255, 255, .07);
  --sh-card-line: #33262c;
  --sh-hero-bg: #08080e;
  --sh-panel-bg: linear-gradient(180deg, #131418 0%, #0a0d11 100%);
  --sh-card-bg: linear-gradient(180deg, #1b1119 0%, #1e1216 100%);
  --sh-partner-bg: #0c0e11;
  --sh-cta-line: rgba(255, 77, 87, .55);
  --sh-cta-bg: #2e1216;
  --sh-cta-bg-hover: #3c1720;
}

#view-socials.socialhub-2026 svg {
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

#view-socials.socialhub-2026 .socialhub-hero {
  position: relative;
  display: block;
  height: auto;
  min-height: 174px;
  margin: 0;
  padding: 40px 24px 13px 16px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--sh-panel-line);
  border-radius: var(--sh-radius);
  background: linear-gradient(100deg, #08080e 0%, #0b0810 42%, #16070f 100%);
  box-shadow: none;
}

#view-socials.socialhub-2026 .socialhub-hero::before {
  content: none;
}

/* Bildplatz des Heros. Das Artwork der Vorlage (Charakter mit dem Schriftzug
   "New Stories New Worlds") liegt nicht im Projekt; hier steht deshalb nur
   der rote Lichtverlauf der Referenz. Kommt das Original dazu, wird in
   diesem Slot lediglich ein <img> ergaenzt. */
#view-socials.socialhub-2026 .socialhub-hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 58%;
  display: block;
  overflow: hidden;
  isolation: auto;
  background:
    radial-gradient(66% 108% at 72% 44%, rgba(255, 48, 66, .52) 0%, rgba(176, 16, 38, .34) 40%, rgba(24, 6, 14, 0) 74%),
    radial-gradient(40% 70% at 40% 22%, rgba(255, 86, 96, .30) 0%, rgba(255, 86, 96, 0) 76%),
    radial-gradient(48% 92% at 90% 78%, rgba(214, 24, 50, .30) 0%, rgba(214, 24, 50, 0) 72%),
    radial-gradient(26% 44% at 58% 62%, rgba(255, 120, 128, .18) 0%, rgba(255, 120, 128, 0) 78%);
}

#view-socials.socialhub-2026 .socialhub-hero-art::before {
  content: none;
}

/* Weicher Uebergang nach links, damit der Text auf dunklem Grund steht. */
#view-socials.socialhub-2026 .socialhub-hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--sh-hero-bg) 0%, rgba(8, 8, 14, .72) 24%, rgba(8, 8, 14, .14) 60%, rgba(8, 8, 14, 0) 84%);
}

#view-socials.socialhub-2026 .socialhub-hero-copy {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0;
  max-width: none;
}

#view-socials.socialhub-2026 .socialhub-hero-title {
  margin: 0 !important;
  color: #fff;
  font-family: var(--font-display);
  font-size: 36px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -.01em !important;
}

#view-socials.socialhub-2026 .socialhub-hero-sub {
  margin: 5px 0 0;
  max-width: none;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.006em;
}

/* 420px erzwingt genau den Umbruch der Vorlage: Zeile 1 endet nach "keine". */
#view-socials.socialhub-2026 .socialhub-hero-lead {
  margin: 10px 0 0;
  max-width: 420px;
  color: var(--md-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/* -------------------------------------------------------------------------- */
/* Panel "Unsere Kanaele"                                                     */
/* -------------------------------------------------------------------------- */

#view-socials.socialhub-2026 .socialhub-channels-panel {
  margin: 16px 0 0;
  padding: 7px var(--sh-pad) var(--sh-pad);
  border: 1px solid var(--sh-panel-line);
  border-radius: var(--sh-radius);
  background: var(--sh-panel-bg);
}

#view-socials.socialhub-2026 .socialhub-panel-title {
  margin: 0 0 9px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

#view-socials.socialhub-2026 .socialhub-platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sh-gap);
  margin: 0;
}

#view-socials.socialhub-2026 .socialhub-platform {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: 187px;
  padding: 23px 12px 9px;
  border: 1px solid var(--sh-card-line);
  border-radius: var(--sh-card-radius);
  background: var(--sh-card-bg);
  box-shadow: none;
}

#view-socials.socialhub-2026 .socialhub-platform-logo {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
}

#view-socials.socialhub-2026 .socialhub-platform-logo svg {
  width: 40px;
  height: 40px;
}

#view-socials.socialhub-2026 .socialhub-platform-name {
  margin: 12px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: -.012em;
  text-align: center;
}

#view-socials.socialhub-2026 .socialhub-cta {
  width: 100%;
  height: auto;
  min-height: 39px;
  margin: auto 0 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 3px 10px;
  border: 1px solid var(--sh-cta-line);
  border-radius: 9px;
  background: var(--sh-cta-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: background .16s var(--md-motion), border-color .16s var(--md-motion);
}

/* Die Karte bleibt wie bisher komplett klickbar. */
#view-socials.socialhub-2026 .socialhub-cta::after {
  border-radius: var(--sh-card-radius);
}

#view-socials.socialhub-2026 .socialhub-cta:hover {
  border-color: var(--md-primary);
  background: var(--sh-cta-bg-hover);
}

#view-socials.socialhub-2026 .socialhub-cta-icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  opacity: .92;
}

/* Vier Spalten auf allen Desktopbreiten. Die aelteren Umbrueche bei 1360px
   und 760px gelten fuer diese Referenz nicht. */
@media (max-width: 1360px) {
  #view-socials.socialhub-2026 .socialhub-platforms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #view-socials.socialhub-2026 .socialhub-platform {
    height: auto;
    min-height: 187px;
  }
}

@media (min-width: 1361px) and (min-height: 1050px) {
  #view-socials.socialhub-2026 .socialhub-hero,
  #view-socials.socialhub-2026 .socialhub-platform {
    height: auto;
  }
}

/* -------------------------------------------------------------------------- */
/* Mobile - rechte Seite der Referenz                                         */
/* -------------------------------------------------------------------------- */

@media (max-width: 959px) {
  #view-socials.socialhub-2026 .socialhub-hero {
    min-height: 197px;
    padding: 28px 16px 24px;
    border-radius: var(--sh-radius);
  }

  #view-socials.socialhub-2026 .socialhub-hero-art {
    inset: 0 0 0 auto;
    width: 56%;
    opacity: 1;
  }

  #view-socials.socialhub-2026 .socialhub-hero-art::after {
    background: linear-gradient(90deg, var(--sh-hero-bg) 0%, rgba(8, 8, 14, .70) 20%, rgba(8, 8, 14, .12) 58%, rgba(8, 8, 14, 0) 86%);
  }

  #view-socials.socialhub-2026 .socialhub-hero-title {
    font-size: 26px !important;
    line-height: 1.1 !important;
  }

  #view-socials.socialhub-2026 .socialhub-hero-sub {
    margin-top: 4px;
    max-width: 200px;
    font-size: 17px;
    line-height: 22px;
  }

  #view-socials.socialhub-2026 .socialhub-hero-lead {
    margin-top: 10px;
    max-width: 268px;
    font-size: 13px;
    line-height: 17.5px;
  }

  #view-socials.socialhub-2026 .socialhub-channels-panel {
    margin-top: 12px;
    padding: 11px 14px 12px;
  }

  #view-socials.socialhub-2026 .socialhub-panel-title {
    margin-bottom: 10px;
    font-size: 15px;
  }

  /* Vier Kanaele bleiben nebeneinander sichtbar - keine einspaltige Liste. */
  #view-socials.socialhub-2026 .socialhub-platforms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  #view-socials.socialhub-2026 .socialhub-platform {
    min-height: 158px;
    padding: 14px 4px 6px;
  }

  #view-socials.socialhub-2026 .socialhub-platform-logo {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 11px;
  }

  #view-socials.socialhub-2026 .socialhub-platform-logo svg {
    width: 28px;
    height: 28px;
  }

  #view-socials.socialhub-2026 .socialhub-platform-name {
    margin-top: 14px;
    font-size: clamp(11px, 3.55vw, 14px);
    line-height: 16px;
    letter-spacing: -.014em;
  }

  #view-socials.socialhub-2026 .socialhub-cta {
    min-height: 39px;
    margin-top: auto;
    gap: 0;
    padding: 3px 2px;
    border-radius: 8px;
    font-size: clamp(9px, 2.75vw, 11px);
    line-height: 13px;
  }

  #view-socials.socialhub-2026 .socialhub-cta .socialhub-cta-icon {
    display: none;
  }
}

@media (max-width: 344px) {
  #view-socials.socialhub-2026 .socialhub-platform {
    padding-left: 3px;
    padding-right: 3px;
  }

  #view-socials.socialhub-2026 .socialhub-platform-name {
    font-size: 10px;
    letter-spacing: -.02em;
  }
}

@media (max-width: 760px) {
  #view-socials.socialhub-2026 .socialhub-hero {
    min-height: 197px;
  }

  #view-socials.socialhub-2026 .socialhub-hero-art {
    opacity: 1;
  }

  #view-socials.socialhub-2026 .socialhub-platforms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  #view-socials.socialhub-2026 .socialhub-platform {
    min-height: 158px;
  }
}
