/*
 * AnimeRadar v2.4.194 - Anime News detail popup (golden master).
 *
 * The news detail stays a centred modal over the current page: dimmed
 * backdrop, the page behind remains visible, no separate full page route.
 * Every selector is scoped to #animeNewsDetailDialog so no other dialog,
 * the shell or the sidebar are affected.
 */

html body dialog#animeNewsDetailDialog {
  --md-primary: #e53949;
  --md-action-fill: #d43544;
  --md-secondary: #ff5c6b;
  --md-background: #120f13;
  --md-surface: #241618;
  --md-surface-variant: #1b1013;
  --md-surface-elevated: #2c1a1e;
  --md-outline: #3a262c;
  --md-outline-strong: #55303a;
  --md-on-surface: #ece6e9;
  --md-muted: #b8adb1;
  --md-dim: #817579;
  position: fixed !important;
  inset: 0 !important;
  width: min(740px, calc(100vw - 48px)) !important;
  max-width: none !important;
  height: auto !important;
  max-height: min(736px, calc(100dvh - 96px)) !important;
  margin: auto !important;
  padding: 0 !important;
  border: 1px solid var(--md-outline-strong) !important;
  border-radius: 20px !important;
  background: var(--md-surface) !important;
  color: var(--md-on-surface) !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .62) !important;
  overflow: hidden !important;
}

html body dialog#animeNewsDetailDialog::backdrop {
  background: rgba(6, 3, 5, .78) !important;
  backdrop-filter: blur(3px) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-panel {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-height: inherit !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* -- Close button ---------------------------------------------------------- */

html body dialog#animeNewsDetailDialog .anime-news-detail-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 4 !important;
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 50% !important;
  background: rgba(18, 11, 13, .72) !important;
  color: #f4eef0 !important;
  cursor: pointer !important;
  backdrop-filter: blur(4px) !important;
  transition: background .18s var(--md-motion), border-color .18s var(--md-motion) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-close svg {
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-close:hover,
html body dialog#animeNewsDetailDialog .anime-news-detail-close:focus-visible {
  border-color: var(--md-primary) !important;
  background: var(--md-action-fill) !important;
}

/* -- Scroll container ------------------------------------------------------ */

html body dialog#animeNewsDetailDialog .anime-news-detail-content {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
}

/* -- Hero ------------------------------------------------------------------ */

html body dialog#animeNewsDetailDialog .anime-news-detail-hero {
  position: relative !important;
  height: 215px !important;
  background: var(--md-surface-variant) !important;
  overflow: hidden !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

html body dialog#animeNewsDetailDialog .anime-news-image-fallback {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--md-primary) 26%, transparent), transparent 62%),
    var(--md-surface-variant) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-image-fallback span {
  display: grid !important;
  place-items: center !important;
  width: 54px !important;
  height: 54px !important;
  border: 2px solid color-mix(in srgb, var(--md-primary) 55%, transparent) !important;
  border-radius: 50% !important;
  color: var(--md-secondary) !important;
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-hero-veil {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(18, 12, 14, 0) 0%, rgba(19, 12, 14, .34) 38%, rgba(22, 14, 16, .92) 62%, var(--md-surface) 80%, var(--md-surface) 100%) !important;
  pointer-events: none !important;
}

/* -- Body ------------------------------------------------------------------ */

html body dialog#animeNewsDetailDialog .anime-news-detail-body {
  position: relative !important;
  z-index: 2 !important;
  margin-top: -46px !important;
  padding: 0 28px 28px !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-headline {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

html body dialog#animeNewsDetailDialog .anime-news-badge {
  display: inline-flex !important;
  align-items: center !important;
  height: 21px !important;
  padding: 0 9px !important;
  border-radius: 6px !important;
  background: color-mix(in srgb, var(--news-tone, var(--md-primary)) 24%, rgba(12, 8, 9, .5)) !important;
  color: var(--news-tone, var(--md-secondary)) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body dialog#animeNewsDetailDialog .anime-news-badge[data-tone="1"] { --news-tone: #ff5c6b; }
html body dialog#animeNewsDetailDialog .anime-news-badge[data-tone="2"] { --news-tone: #b07cf0; }
html body dialog#animeNewsDetailDialog .anime-news-badge[data-tone="3"] { --news-tone: #5b9cf6; }
html body dialog#animeNewsDetailDialog .anime-news-badge[data-tone="4"] { --news-tone: #6dc48f; }
html body dialog#animeNewsDetailDialog .anime-news-badge[data-tone="5"] { --news-tone: #e8964a; }
html body dialog#animeNewsDetailDialog .anime-news-badge[data-tone="6"] { --news-tone: #d9be55; }

html body dialog#animeNewsDetailDialog .anime-news-detail-headline h3 {
  margin: 0 !important;
  color: var(--md-on-surface) !important;
  font-family: var(--font-display) !important;
  font-size: 23px !important;
  line-height: 1.3 !important;
  font-weight: 660 !important;
  letter-spacing: -.015em !important;
}

/* -- Meta row -------------------------------------------------------------- */

html body dialog#animeNewsDetailDialog .anime-news-detail-metarow {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px 16px !important;
  margin: 22px 0 0 !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid var(--md-outline) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-byline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

html body dialog#animeNewsDetailDialog .anime-news-avatar {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--md-primary) 30%, var(--md-surface-elevated)) !important;
  color: var(--md-on-surface) !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

html body dialog#animeNewsDetailDialog .anime-news-byline b {
  color: var(--md-on-surface) !important;
  font-size: 12.5px !important;
  font-weight: 620 !important;
}

html body dialog#animeNewsDetailDialog .anime-news-byline time {
  color: var(--md-dim) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body dialog#animeNewsDetailDialog .anime-news-byline em {
  color: var(--md-dim) !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 500 !important;
}

html body dialog#animeNewsDetailDialog .anime-news-byline time::before,
html body dialog#animeNewsDetailDialog .anime-news-byline em::before {
  content: "\00b7" !important;
  display: inline-block !important;
  margin-right: 9px !important;
  color: var(--md-outline-strong) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-tools {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

html body dialog#animeNewsDetailDialog .anime-news-icon-btn {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--md-outline) !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--md-muted) !important;
  cursor: pointer !important;
  transition: border-color .18s var(--md-motion), color .18s var(--md-motion), background .18s var(--md-motion) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-icon-btn svg {
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

html body dialog#animeNewsDetailDialog .anime-news-icon-btn:hover,
html body dialog#animeNewsDetailDialog .anime-news-icon-btn:focus-visible {
  border-color: var(--md-primary) !important;
  color: var(--md-secondary) !important;
  background: color-mix(in srgb, var(--md-primary) 12%, transparent) !important;
}

/* -- Article copy ---------------------------------------------------------- */

html body dialog#animeNewsDetailDialog .anime-news-detail-copy {
  margin: 18px 0 0 !important;
}

/* Die primaere Aktion im Modal fuehrt zur Originalquelle. */
html body dialog#animeNewsDetailDialog .anime-news-detail-tools > :first-child {
  border-color: transparent !important;
  background: var(--md-action-fill) !important;
  color: var(--md-on-primary, #fff) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-tools > :first-child:hover,
html body dialog#animeNewsDetailDialog .anime-news-detail-tools > :first-child:focus-visible {
  background: var(--md-secondary) !important;
  color: #22090d !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-copy p {
  margin: 0 0 15px !important;
  color: var(--md-on-surface) !important;
  font-size: 13.5px !important;
  line-height: 1.72 !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-copy p:last-child {
  margin-bottom: 0 !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-nocopy {
  color: var(--md-muted) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-note {
  margin: 14px 0 0 !important;
  color: var(--md-dim) !important;
  font-size: 11.5px !important;
  line-height: 1.55 !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 38px !important;
  margin: 16px 0 0 !important;
  padding: 0 18px !important;
  border: 1px solid color-mix(in srgb, var(--md-primary) 58%, transparent) !important;
  border-radius: 10px !important;
  background: color-mix(in srgb, var(--md-primary) 14%, transparent) !important;
  color: var(--md-secondary) !important;
  font-size: 13px !important;
  font-weight: 640 !important;
  text-decoration: none !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-cta:hover {
  border-color: var(--md-primary) !important;
  background: color-mix(in srgb, var(--md-primary) 24%, transparent) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-cta i {
  font-style: normal !important;
}

/* -- Tags and related ------------------------------------------------------ */

html body dialog#animeNewsDetailDialog .anime-news-detail-foot {
  display: grid !important;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr) !important;
  gap: 30px !important;
  margin: 20px 0 0 !important;
  padding: 18px 0 0 !important;
  border-top: 1px solid var(--md-outline) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-foot > section:only-child {
  grid-column: 1 / -1 !important;
}

html body dialog#animeNewsDetailDialog .anime-news-detail-foot h4 {
  margin: 0 0 14px !important;
  color: var(--md-on-surface) !important;
  font-family: var(--font-display) !important;
  font-size: 14px !important;
  font-weight: 640 !important;
  letter-spacing: -.01em !important;
}

html body dialog#animeNewsDetailDialog .anime-news-tag-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

html body dialog#animeNewsDetailDialog .anime-news-tag {
  display: inline-flex !important;
  align-items: center !important;
  height: 27px !important;
  margin: 0 !important;
  padding: 0 11px !important;
  border: 1px solid var(--md-outline) !important;
  border-radius: 7px !important;
  background: var(--md-surface-variant) !important;
  color: var(--md-muted) !important;
  font-family: inherit !important;
  font-size: 11.5px !important;
  font-weight: 560 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: border-color .18s var(--md-motion), color .18s var(--md-motion) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-tag:hover,
html body dialog#animeNewsDetailDialog .anime-news-tag:focus-visible {
  border-color: var(--md-primary) !important;
  color: var(--md-secondary) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-list {
  display: grid !important;
  gap: 10px !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-card {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 7px 9px 7px 7px !important;
  border: 1px solid var(--md-outline) !important;
  border-radius: 10px !important;
  background: var(--md-surface-variant) !important;
  cursor: pointer !important;
  transition: border-color .18s var(--md-motion), background .18s var(--md-motion) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-card:hover,
html body dialog#animeNewsDetailDialog .anime-news-related-card:focus-within {
  border-color: var(--md-outline-strong) !important;
  background: var(--md-surface-elevated) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-media {
  position: relative !important;
  display: block !important;
  width: 68px !important;
  height: 44px !important;
  border-radius: 7px !important;
  background: var(--md-surface) !important;
  overflow: hidden !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-media .anime-news-image-fallback span {
  width: 26px !important;
  height: 26px !important;
  font-size: 10px !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 5px !important;
  min-width: 0 !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-copy .anime-news-badge {
  height: 17px !important;
  padding: 0 7px !important;
  font-size: 8.5px !important;
  letter-spacing: .06em !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-title {
  display: -webkit-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--md-on-surface) !important;
  font-family: var(--font-display) !important;
  font-size: 12px !important;
  font-weight: 620 !important;
  line-height: 1.34 !important;
  text-align: left !important;
  cursor: pointer !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-title:hover,
html body dialog#animeNewsDetailDialog .anime-news-related-title:focus-visible {
  color: var(--md-secondary) !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-card .anime-news-byline {
  gap: 7px !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-card .anime-news-avatar {
  width: 16px !important;
  height: 16px !important;
  font-size: 8.5px !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-card .anime-news-byline b,
html body dialog#animeNewsDetailDialog .anime-news-related-card .anime-news-byline time {
  font-size: 10.5px !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-card .anime-news-byline time::before {
  margin-right: 6px !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-card .anime-news-icon-btn {
  width: 30px !important;
  height: 30px !important;
  border-color: transparent !important;
  border-radius: 8px !important;
}

html body dialog#animeNewsDetailDialog .anime-news-related-card .anime-news-icon-btn svg {
  width: 14px !important;
  height: 14px !important;
}

/* -- Responsive ------------------------------------------------------------ */

@media (max-width: 900px) {
  html body dialog#animeNewsDetailDialog .anime-news-detail-foot {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
  }
}

@media (max-width: 760px) {
  html body dialog#animeNewsDetailDialog {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 40px) !important;
    margin: auto !important;
    border-inline: 1px solid var(--md-outline-strong) !important;
    border-radius: 18px !important;
  }

  html body dialog#animeNewsDetailDialog .anime-news-detail-hero {
    height: 176px !important;
  }

  html body dialog#animeNewsDetailDialog .anime-news-detail-body {
    margin-top: -40px !important;
    padding: 0 18px 22px !important;
  }

  html body dialog#animeNewsDetailDialog .anime-news-detail-headline h3 {
    font-size: 19px !important;
  }

  html body dialog#animeNewsDetailDialog .anime-news-detail-metarow {
    align-items: flex-start !important;
    margin-top: 18px !important;
    padding-bottom: 14px !important;
  }

  html body dialog#animeNewsDetailDialog .anime-news-detail-close {
    top: 12px !important;
    right: 12px !important;
    width: 34px !important;
    height: 34px !important;
  }
}

@media (max-width: 420px) {
  html body dialog#animeNewsDetailDialog {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 24px) !important;
  }

  html body dialog#animeNewsDetailDialog .anime-news-related-card {
    grid-template-columns: 62px minmax(0, 1fr) !important;
  }

  html body dialog#animeNewsDetailDialog .anime-news-related-media {
    width: 62px !important;
    height: 42px !important;
  }

  html body dialog#animeNewsDetailDialog .anime-news-related-card .anime-news-icon-btn {
    display: none !important;
  }
}
