/* ==========================================================================
   AnimeRadar V2.4.319 - Ein Knopf "Alle Filter zurücksetzen"
   --------------------------------------------------------------------------
   Entdecken (#searchFilterReset), Kalender (#calendarToolbarReset) und
   Bibliothek (#libraryFilterReset) tragen dieselbe Klasse ar-filter-reset
   und sehen auf Desktop, Mobil und in der App gleich aus. Die Werte stammen
   aus der Entdecken-Referenz (material-reference-discover-v2-4-194.css,
   Filterzeile): rote Kontur, zartroter Grund, 13,5 px / 550, Symbol 16 px,
   9 px Abstand. Auf dem Desktop sind alle drei 38 px hoch wie die uebrigen
   Bedienelemente der Kalender- und Bibliotheks-Toolbar; der Knopf "Filter"
   von Entdecken zieht mit, damit seine Zeile buendig bleibt.

   Die Breite bleibt Sache der jeweiligen Zeile: Entdecken 186 px wie der
   Knopf "Filter", Kalender Textbreite, Bibliothek ihre Rasterspalte, mobil
   volle Breite.

   Zustaende (setFilterResetState in app-v2-4-153.js):
   - is-idle: kein Filter aktiv. Auf dem Desktop gedimmt wie bisher bei
     Entdecken, mobil unveraendert.
   - has-active-filters: mindestens ein Filter aktiv. Ein kleines rotes "!"
     steht hochgestellt am Symbol, ohne dass sich etwas verschiebt.
   ========================================================================== */

html body :is(#view-search .discover-filter-row, #view-calendar .calendar-controls, #view-lists .lib-reference-controls) .ar-filter-reset {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid rgba(216, 52, 58, .62) !important;
  background: rgba(216, 52, 58, .10) !important;
  box-shadow: none !important;
  color: #e53935 !important;
  font-size: 13.5px !important;
  font-weight: 550 !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transform: none !important;
  cursor: pointer;
}

html body :is(#view-search .discover-filter-row, #view-calendar .calendar-controls, #view-lists .lib-reference-controls) .ar-filter-reset:active {
  transform: none !important;
}

html body :is(#view-search .discover-filter-row, #view-calendar .calendar-controls, #view-lists .lib-reference-controls) .ar-filter-reset:focus-visible {
  outline: 2px solid #ff5252 !important;
  outline-offset: 2px !important;
}

html body :is(#view-search .discover-filter-row, #view-calendar .calendar-controls, #view-lists .lib-reference-controls) .ar-filter-reset .ar-filter-reset-icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

html body :is(#view-search .discover-filter-row, #view-calendar .calendar-controls, #view-lists .lib-reference-controls) .ar-filter-reset svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: miter !important;
}

/* Das rote "!": klein, fett, oben rechts am Symbol. Es liegt ueber dem
   Abstand zwischen Symbol und Text und nimmt keinen Platz im Fluss ein. */
html body :is(#view-search .discover-filter-row, #view-calendar .calendar-controls, #view-lists .lib-reference-controls) .ar-filter-reset .ar-filter-reset-mark {
  position: absolute;
  top: -7px;
  right: -6px;
  display: none;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  color: #ff3b3b;
  text-shadow: 0 0 2px rgba(10, 4, 6, .9);
  pointer-events: none;
}

html body :is(#view-search .discover-filter-row, #view-calendar .calendar-controls, #view-lists .lib-reference-controls) .ar-filter-reset.has-active-filters .ar-filter-reset-mark {
  display: block;
}

@media (min-width: 960px) {
  html body :is(#view-search .discover-filter-row, #view-calendar .calendar-controls, #view-lists .lib-reference-controls) .ar-filter-reset {
    height: 38px !important;
    border-radius: 9px !important;
  }

  html body #view-search .discover-filter-row .discover-filter-button {
    height: 38px !important;
  }

  html body :is(#view-search .discover-filter-row, #view-calendar .calendar-controls, #view-lists .lib-reference-controls) .ar-filter-reset.is-idle {
    border-color: rgba(216, 52, 58, .34) !important;
    color: rgba(216, 52, 58, .74) !important;
  }

  html body :is(#view-search .discover-filter-row, #view-calendar .calendar-controls, #view-lists .lib-reference-controls) .ar-filter-reset:hover {
    border-color: rgba(216, 52, 58, .8) !important;
    background: rgba(216, 52, 58, .10) !important;
  }
}

@media (max-width: 959px) {
  html body :is(#view-search .discover-filter-row, #view-calendar .calendar-controls, #view-lists .lib-reference-controls) .ar-filter-reset {
    width: 100% !important;
    height: 40px !important;
    border-radius: 10px !important;
  }
}
