/*
 * AnimeRadar v2.4.229 - Anime-News Detailansicht nach Referenz.
 *
 * Referenz: Referenzbilder/Seitendesigns/News Detailansicht.png
 * (1448 x 1086; links Desktop, rechts ein Smartphone-Mockup. Der
 * Telefonrahmen gehoert nicht zur Website.)
 *
 * Desktop (Massstab der Vorlage 1:1): Modal 675 x 935 mit Radius 18,
 * Heldenbild 264 hoch ueber die volle Breite, Inhaltsrand 23,
 * Schliessen-Knopf 40 rund oben rechts (17 / 16), Titel 31/36,
 * Fliesstext 16.5/20.5, Vorspann 17.5/22.5 in Weiss, Tag-Pillen 30 hoch,
 * Quellzeile 48 hoch mit rundem Zeichen und roter Pille 181 x 47,
 * Aktionszeile unten mit Trennlinie.
 *
 * Mobil: keine verkleinerte Kopie des Modals, sondern eine eigene
 * Vollflaeche unterhalb der bestehenden Kopfzeile. Die globale Kopfzeile
 * und die untere Navigation bleiben sichtbar und bedienbar, deshalb wird
 * der Dialog dort mit show() statt showModal() geoeffnet
 * (Klasse is-sheet, Body-Klasse nd-sheet-open).
 *
 * Alle Regeln sind auf #animeNewsDetailDialog.nd-2026 bzw. die zwei
 * zugehoerigen Schalter im Shell gescopt. Andere Dialoge, die News-Liste,
 * Sidebar, Kopfzeile und untere Navigation bleiben unberuehrt.
 */

/* ========================================================================== */
/* Grundwerte und Rahmen                                                      */
/* ========================================================================== */

html body dialog#animeNewsDetailDialog.nd-2026 {
  --nd-surface: rgba(8, 12, 17, .97);
  --nd-line: rgba(255, 255, 255, .2);
  --nd-line-soft: rgba(255, 255, 255, .14);
  --nd-text: #ffffff;
  --nd-body: #e4eaef;
  --nd-muted: #a7afb6;
  --nd-red: #ff111d;
  --nd-red-solid: #fc1119;
  --nd-radius: 18px;
  position: fixed !important;
  inset: 0 !important;
  z-index: 60;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 90px 24px 66px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--nd-text) !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Nur der geoeffnete Dialog spannt die Overlay-Flaeche auf. Ohne diese
   Trennung wuerde die geschlossene Flaeche die Seite ueberdecken. */
html body dialog#animeNewsDetailDialog.nd-2026:not([open]) {
  display: none !important;
}

html body dialog#animeNewsDetailDialog.nd-2026[open] {
  /* Die Vorlage setzt das Modal zwischen Kopfzeile und Fusszeile. */
  display: grid !important;
  place-items: center !important;
}

html body dialog#animeNewsDetailDialog.nd-2026::backdrop {
  background: rgba(4, 6, 9, .74) !important;
  backdrop-filter: blur(3px) !important;
}

html body dialog#animeNewsDetailDialog.nd-2026 *,
html body dialog#animeNewsDetailDialog.nd-2026 *::before,
html body dialog#animeNewsDetailDialog.nd-2026 *::after {
  box-sizing: border-box;
}

html body dialog#animeNewsDetailDialog.nd-2026 :where(h3, p, ul, li, small, b) {
  margin: 0;
  padding: 0;
}

html body dialog#animeNewsDetailDialog.nd-2026 ul {
  list-style: none;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-icon {
  display: block;
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========================================================================== */
/* Panel                                                                      */
/* ========================================================================== */

html body dialog#animeNewsDetailDialog.nd-2026 .nd-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(675px, 100%);
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--nd-line);
  border-radius: var(--nd-radius);
  background: var(--nd-surface);
  box-shadow: 0 36px 90px rgba(0, 0, 0, .6);
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

/* Schliessen-Knopf bleibt beim Scrollen erreichbar. */
html body dialog#animeNewsDetailDialog.nd-2026 .nd-close {
  position: absolute;
  top: 17px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: rgba(16, 18, 22, .78);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .18s ease, border-color .18s ease;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-close:hover {
  background: rgba(36, 40, 46, .9);
  border-color: rgba(255, 255, 255, .5);
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-close:focus-visible {
  outline: 2px solid var(--nd-red);
  outline-offset: 2px;
}

/* ========================================================================== */
/* Heldenbild                                                                 */
/* ========================================================================== */

html body dialog#animeNewsDetailDialog.nd-2026 .nd-hero {
  position: relative;
  flex: none;
  height: 264px;
  overflow: hidden;
  background: #0e1116;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-hero-image,
html body dialog#animeNewsDetailDialog.nd-2026 .anime-news-image-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

html body dialog#animeNewsDetailDialog.nd-2026 .anime-news-image-fallback {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .3);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .08em;
}

/* ========================================================================== */
/* Textkoerper                                                                */
/* ========================================================================== */

html body dialog#animeNewsDetailDialog.nd-2026 .nd-body {
  padding: 0 23px 14px;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-kicker {
  margin-top: 17px;
  color: var(--nd-red);
  font-size: 11px;
  font-weight: 800;
  line-height: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-title {
  margin-top: 7px;
  color: var(--nd-text);
  font-family: var(--font-display, inherit);
  font-size: 31px;
  font-weight: 800;
  line-height: 36px;
  letter-spacing: -.01em;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  margin-top: 6px;
  min-height: 29px;
  color: #e3e8ed;
  font-size: 14px;
  line-height: 18px;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-meta-item .nd-icon {
  color: #ffffff;
}

/* Rubrik der Meldung als Pille, Farben nach Vorlage. */
html body dialog#animeNewsDetailDialog.nd-2026 .nd-meta-tag {
  display: inline-flex;
  align-items: center;
  height: 29px;
  padding: 0 20px;
  border: 1px solid #b81c26;
  border-radius: 999px;
  background: #6b191f;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-copy {
  margin-top: 19px;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-p {
  color: var(--nd-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 20.5px;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-p + .nd-p {
  margin-top: 10px;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-lead {
  color: var(--nd-text);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 22.5px;
}

/* "Mehr lesen" gehoert laut Vorlage nur zur mobilen Ansicht. */
html body dialog#animeNewsDetailDialog.nd-2026 .nd-more {
  display: none;
}

/* ========================================================================== */
/* Tags                                                                       */
/* ========================================================================== */

html body dialog#animeNewsDetailDialog.nd-2026 .nd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: #e7ecf1;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-tag:hover {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .1);
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-tag:focus-visible {
  outline: 2px solid var(--nd-red);
  outline-offset: 2px;
}

/* ========================================================================== */
/* Trennlinie und Quelle                                                      */
/* ========================================================================== */

html body dialog#animeNewsDetailDialog.nd-2026 .nd-sep {
  height: 1px;
  margin-top: 16px;
  background: var(--nd-line-soft);
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 13px;
  min-height: 48px;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: #15161b;
  color: #f2202c;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-badge .nd-icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.6;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  margin-right: auto;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-copy small {
  color: var(--nd-muted);
  font-size: 12.5px;
  line-height: 14px;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-copy b {
  color: var(--nd-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 19px;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nd-muted);
  font-size: 13.5px;
  line-height: 15px;
  text-decoration: none;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-link .nd-icon {
  width: 14px;
  height: 14px;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-link:hover {
  color: #ffffff;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  height: 47px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--nd-red-solid);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-cta .nd-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-cta:hover {
  background: #ff3540;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ========================================================================== */
/* Aktionszeile                                                               */
/* ========================================================================== */

html body dialog#animeNewsDetailDialog.nd-2026 .nd-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  padding: 14px 23px;
  border-top: 1px solid var(--nd-line-soft);
  background: var(--nd-surface);
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 20px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color .16s ease;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-back svg {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-back:hover {
  color: var(--nd-red);
}

html body dialog#animeNewsDetailDialog.nd-2026 .nd-back:focus-visible {
  outline: 2px solid var(--nd-red);
  outline-offset: 3px;
}

/* ========================================================================== */
/* Mobil: eigene Vollflaeche statt verkleinertem Modal                        */
/* ========================================================================== */

/* Zurueck-Pfeil in der bestehenden Kopfzeile, nur waehrend der Ansicht. */
.nd-topbar-back {
  display: none;
}

/* Die mobile Kopfzeile bekommt nur waehrend der Detailansicht eine
   zusaetzliche erste Spalte fuer den Zurueck-Pfeil. Ausserhalb der Ansicht
   bleibt sie unveraendert. */
body.nd-sheet-open .topbar {
  grid-template-columns: 40px minmax(0, 1fr) auto minmax(0, auto) !important;
}

body.nd-sheet-open .topbar > .brand { grid-column: 2 !important; }
body.nd-sheet-open .topbar > .mobile-app-link { grid-column: 3 !important; }
body.nd-sheet-open .topbar > .top-actions { grid-column: 4 !important; }

body.nd-sheet-open .topbar > .nd-topbar-back {
  grid-column: 1 !important;
  grid-row: 1;
  display: grid;
  place-items: center;
  justify-self: start;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

body.nd-sheet-open .topbar > .site-menu-mobile-trigger {
  display: none !important;
}

body.nd-sheet-open .topbar .nd-topbar-back svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}



html body dialog#animeNewsDetailDialog.nd-2026.is-sheet[open] {
  place-items: stretch !important;
}

/* UI-Fix 2026-10-03: Die Flaeche beginnt an der zentralen Kopfzeilenhoehe
   (material-reference-shell-v2-4-194.css, inklusive Safe-Area). Vorher wurde
   die Unterkante der Kopfzeile beim Oeffnen gemessen - aus einer gescrollten
   Seite heraus lag sie in diesem Moment ausserhalb des Bildes, der Wert fiel
   auf 0 und der Inhalt begann unter der Kopfzeile. */
html body dialog#animeNewsDetailDialog.nd-2026.is-sheet {
  top: var(--ar-mobile-topbar-height, 0px) !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 24;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  background: #07090d !important;
  overflow: hidden !important;
}

html body dialog#animeNewsDetailDialog.nd-2026.is-sheet .nd-panel {
  display: block;
  width: 100%;
  max-height: none;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html body dialog#animeNewsDetailDialog.nd-2026.is-sheet .nd-scroll {
  overflow: visible;
}

html body dialog#animeNewsDetailDialog.nd-2026.is-sheet .nd-close {
  display: none;
}

@media (max-width: 959px) {
  html body dialog#animeNewsDetailDialog.nd-2026 .nd-hero {
    height: 196px;
    margin: 8px 12px 0;
    border-radius: 14px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-body {
    padding: 0 12px 0;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-kicker {
    margin-top: 18px;
    font-size: 12.5px;
    letter-spacing: .04em;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-title {
    margin-top: 8px;
    font-size: 27px;
    line-height: 31px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-meta {
    gap: 10px 22px;
    margin-top: 12px;
    min-height: 0;
    font-size: 13px;
    line-height: 17px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-meta-item {
    gap: 9px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-meta-item .nd-icon {
    width: 15px;
    height: 15px;
  }

  /* Die Vorlage bricht nach der Quelle um: Pille und Lesedauer in Zeile 2. */
  html body dialog#animeNewsDetailDialog.nd-2026 .nd-meta-tag {
    height: 28px;
    padding: 0 17px;
    font-size: 13px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-meta-tag::before {
    content: '';
    flex-basis: 100%;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-copy {
    margin-top: 16px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-p {
    font-size: 15.5px;
    line-height: 21px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-lead {
    font-size: 16.5px;
    line-height: 22.5px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 2px 0;
    border: 0;
    background: none;
    color: var(--nd-red);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-more .nd-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
    transition: transform .18s ease;
  }

  html body dialog#animeNewsDetailDialog.nd-2026.is-expanded .nd-more .nd-icon {
    transform: rotate(180deg);
  }

  html body dialog#animeNewsDetailDialog.nd-2026:not(.is-expanded) .nd-copy [data-news-extra] {
    display: none;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-tags {
    gap: 8px;
    margin-top: 14px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-tag {
    height: 32px;
    padding: 0 15px;
    font-size: 13px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-sep {
    margin-top: 16px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-source {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-copy {
    padding-right: 28px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-badge {
    width: 44px;
    height: 44px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-badge .nd-icon {
    width: 24px;
    height: 24px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-copy b {
    font-size: 15px;
    line-height: 19px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-link {
    font-size: 13px;
  }

  /* Das Symbol steht in der mobilen Vorlage am rechten Rand der Zeile. */
  html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-link .nd-icon {
    position: absolute;
    right: 0;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-source-cta {
    width: 100%;
    height: 47px;
    font-size: 15px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-actions {
    gap: 10px;
    padding: 12px 12px 84px;
    border-top: 0;
    background: transparent;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-back {
    display: none;
  }
}

@media (max-width: 380px) {
  html body dialog#animeNewsDetailDialog.nd-2026 .nd-title {
    font-size: 24px;
    line-height: 28px;
  }

  html body dialog#animeNewsDetailDialog.nd-2026 .nd-hero {
    height: 172px;
  }
}

/* Kleine Hoehen: das Modal darf nie ueber den Bildschirm hinauslaufen. */
@media (min-width: 761px) and (max-height: 820px) {
  html body dialog#animeNewsDetailDialog.nd-2026 {
    padding: 24px !important;
  }
}
