/* AnimeRadar v2.4.194 — route structures matched to the supplied Material 3 references. */

/* -------------------------------------------------------------------------- */
/* Discover / search                                                         */
/* -------------------------------------------------------------------------- */

html body #view-search.active {
  display: block !important;
  transform: none !important;
}

/* Profil V2.4.194 – gemeinsame Golden-Master-Shell für alle fünf Profilbereiche. */
html body #view-profile {
  padding: 0 !important;
  color: #f7f2f3;
}

html body #view-profile .profile-gm-page {
  width: calc(100% - 88px);
  margin: 0 35px 0 53px;
}

html body #view-profile .profile-gm-page-heading {
  display: flex;
  align-items: center;
  height: 38px;
  margin: 0;
}

html body #view-profile .profile-gm-page-heading h1 {
  margin: 0;
  font-size: 30px;
  line-height: 38px;
  letter-spacing: -.035em;
}

html body #view-profile .profile-gm-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 192px;
  margin-top: 0;
  padding: 15px 27px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background:
    radial-gradient(circle at 82% 28%, rgba(255, 58, 76, .25), transparent 31%),
    linear-gradient(110deg, rgba(18, 9, 12, .98) 0 42%, rgba(70, 11, 20, .8) 67%, rgba(14, 7, 9, .96) 100%);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .28);
}

/* ----------------------------------------------------------- Profilbanner */
/* Der Profilkopf ist zugleich der Banner. Ohne eigenes Bild bleibt alles wie
   bisher; mit Bild liegt es als Ausschnitt darunter, die Zierebenen treten
   zurueck und eine Abdunklung haelt Text und Schaltflaechen lesbar. */
html body #view-profile .profile-gm-banner-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

html body #view-profile .profile-gm-banner-scrim {
  display: none;
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(102deg, rgba(10, 5, 7, .88) 0 34%, rgba(10, 5, 7, .62) 62%, rgba(10, 5, 7, .48) 100%);
}

html body #view-profile .profile-gm-hero.has-banner .profile-gm-banner-scrim { display: block; }

/* Die beiden Zierebenen des Standardkopfes wuerden ueber dem Bild liegen. */
html body #view-profile .profile-gm-hero.has-banner::before,
html body #view-profile .profile-gm-hero.has-banner::after { display: none; }

/* Alle echten Inhalte stehen ueber Bild und Abdunklung. */
html body #view-profile .profile-gm-hero > .profile-gm-avatar-block,
html body #view-profile .profile-gm-hero > .profile-gm-identity,
html body #view-profile .profile-gm-hero > .profile-gm-hero-actions {
  position: relative;
  z-index: 1;
}

/* Kamerasymbol oben rechts im Banner - dieselbe Komponentenfamilie wie das
   Kamerasymbol am Profilbild, nur anders platziert. */
html body #view-profile .profile-gm-banner-edit {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  background: rgba(24, 14, 17, .92);
  color: #d9cfd2;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

html body #view-profile .profile-gm-banner-edit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body #view-profile .profile-gm-banner-edit:hover:not(:disabled) {
  border-color: rgba(255, 64, 85, .5);
  background: rgba(40, 18, 23, .96);
  color: #fff;
}

html body #view-profile .profile-gm-banner-edit:disabled { opacity: .45; cursor: not-allowed; }
html body #view-profile .profile-gm-banner-edit.is-busy { opacity: .6; }

html body #view-profile .profile-gm-hero::before,
html body #view-profile .profile-gm-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

html body #view-profile .profile-gm-hero::before {
  inset: 0 0 0 43%;
  opacity: .65;
  background:
    linear-gradient(164deg, transparent 45%, rgba(255, 44, 61, .18) 46% 47%, transparent 48%),
    linear-gradient(178deg, transparent 61%, rgba(255, 72, 83, .17) 62% 64%, transparent 65%),
    radial-gradient(ellipse at 70% 85%, rgba(255, 45, 62, .28), transparent 40%);
}

html body #view-profile .profile-gm-hero::after {
  width: 210px;
  height: 210px;
  right: 88px;
  top: -28px;
  border-radius: 52% 48% 44% 56%;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, .92) 0 24%, rgba(17, 7, 10, .8) 25% 44%, transparent 45%);
  filter: blur(1px);
  opacity: .42;
}

/* Avatar und Kamerasymbol liegen nebeneinander in einer Zeile. Das Symbol
   beruehrt den Avatar nicht: zwischen beiden liegt ein sichtbarer Abstand. */
html body #view-profile .profile-gm-avatar-block {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

html body #view-profile .profile-gm-avatar-edit {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  background: rgba(24, 14, 17, .92);
  color: #d9cfd2;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

html body #view-profile .profile-gm-avatar-edit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body #view-profile .profile-gm-avatar-edit:hover {
  border-color: rgba(255, 61, 82, .6);
  background: rgba(255, 52, 74, .16);
  color: #ff6274;
}

html body #view-profile .profile-gm-avatar-edit:focus-visible {
  outline: 2px solid #ff3d52;
  outline-offset: 2px;
}

/* Waehrend des Uploads bleibt der Knopf sichtbar, ist aber nicht bedienbar.
   Die uebrige Profilseite bleibt benutzbar. */
html body #view-profile .profile-gm-avatar-edit:disabled,
html body #view-profile .profile-gm-avatar-edit.is-busy {
  opacity: .55;
  cursor: progress;
}

/* Das Dateifeld ist unsichtbar, bleibt aber im Layoutfluss ohne Platzbedarf.
   display:none wuerde den programmatischen Klick in einigen Browsern
   verhindern. Es liegt hinter dem Avatar und faengt keine Klicks ab. */
html body #view-profile .visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

html body #view-profile .profile-gm-avatar.avatar-frame {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 148px !important;
  height: 148px !important;
  display: grid !important;
  place-items: center;
  overflow: hidden;
  border: 3px solid #ff344a !important;
  border-radius: 50% !important;
  background: #2b1117 !important;
  color: #fff;
  font-size: 42px;
  box-shadow: 0 0 0 4px rgba(8, 4, 6, .68), 0 0 34px rgba(255, 43, 61, .23) !important;
}

html body #view-profile .profile-gm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html body #view-profile .profile-gm-identity {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 500px;
  padding-left: 18px;
}

html body #view-profile .profile-gm-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

html body #view-profile .profile-main-title {
  margin: 0 !important;
  font-size: 28px !important;
  line-height: 1.1;
  letter-spacing: -.025em;
}

html body #view-profile .profile-gm-meta {
  margin: 0;
  color: #aaa0a3;
}

html body #view-profile .profile-gm-meta {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  font-size: 14px;
}

html body #view-profile .profile-gm-meta span::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border: 1px solid #a5969b;
  border-radius: 2px;
  content: "";
}

html body #view-profile .profile-actions.profile-gm-hero-actions {
  position: relative !important;
  z-index: 2;
  align-self: end;
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  margin: 0 0 0 24px !important;
  padding-bottom: 0;
}

html body #view-profile .profile-gm-hero-actions button {
  width: auto !important;
  min-width: 120px;
  min-height: 40px;
  padding: 9px 18px !important;
  border-radius: 5px;
  font-size: 14px;
}

html body #view-profile .profile-gm-tabs.profile-hub-tabs {
  width: 100% !important;
  height: 46px;
  display: flex !important;
  gap: 0 !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
  background: transparent !important;
}

html body #view-profile .profile-gm-tabs .mobile-section-tab {
  position: relative;
  min-width: 104px !important;
  min-height: 45px !important;
  padding: 0 23px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #b8afb1 !important;
  font-size: 15px !important;
  box-shadow: none !important;
}

html body #view-profile .profile-gm-tabs .mobile-section-tab.active {
  color: #ff3d52 !important;
}

html body #view-profile .profile-gm-tabs .mobile-section-tab.active::after {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #ff3148;
  content: "";
}

html body #view-profile .profile-gm-panels {
  margin-top: 11px;
}

html body #view-profile [data-mobile-profile-pane][hidden] {
  display: none !important;
}

html body #view-profile .profile-gm-card,
html body #view-profile .profile-gm-kpi {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(28, 16, 19, .9), rgba(15, 12, 13, .96));
  box-shadow: inset 0 1px rgba(255, 255, 255, .018);
}

html body #view-profile .profile-gm-card {
  padding: 14px 16px;
}

html body #view-profile .profile-gm-card h2 {
  margin: 0;
  color: #f1ecee;
  font-size: 18px;
  line-height: 1.25;
}

html body #view-profile .profile-gm-card h2 small {
  color: #8f8588;
  font-weight: 500;
}

html body #view-profile .profile-gm-empty {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, .09);
  border-radius: 8px;
  color: #8f8588;
  text-align: center;
}

html body #view-profile .profile-gm-empty strong {
  color: #d8d0d2;
  font-size: 15px;
}

html body #view-profile .profile-gm-empty span {
  max-width: 380px;
  font-size: 13px;
  line-height: 1.5;
}

html body #view-profile .profile-gm-overview-grid {
  display: grid;
  grid-template-columns: 380px 270px minmax(0, 1fr) 308px;
  grid-template-rows: 104px 254px 262px;
  gap: 12px;
}

html body #view-profile .profile-gm-progress-card {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  height: 258px;
}

html body #view-profile .profile-gm-kpi-grid {
  display: grid;
  gap: 12px;
}

html body #view-profile .profile-gm-overview-kpis {
  grid-column: 2 / 5;
  grid-row: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html body #view-profile .profile-gm-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 12px 13px;
}

html body #view-profile .profile-gm-kpi-icon {
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 45, 65, .25);
  border-radius: 8px;
  background: rgba(255, 35, 58, .1);
}

html body #view-profile .profile-gm-kpi-icon::before {
  width: 13px;
  height: 13px;
  border: 2px solid #ff354b;
  border-radius: 50%;
  content: "";
}

html body #view-profile .profile-gm-kpi.is-episodes .profile-gm-kpi-icon::before { border-radius: 2px; }
html body #view-profile .profile-gm-kpi.is-watchlist .profile-gm-kpi-icon::before { border-radius: 1px 1px 5px 5px; }
html body #view-profile .profile-gm-kpi.is-rating .profile-gm-kpi-icon::before,
html body #view-profile .profile-gm-kpi.is-favorites .profile-gm-kpi-icon::before { border-color: #f4b632; transform: rotate(45deg); border-radius: 2px; }

html body #view-profile .profile-gm-kpi > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Ohne Symbol entfaellt der Abstand von selbst - die Kachel hat dann nur ein
   Kind. Der Textblock nimmt die volle Breite ein, es bleibt keine leere
   Flaeche stehen. */
html body #view-profile .profile-gm-kpi.has-no-icon > div { width: 100%; }

html body #view-profile .profile-gm-kpi span,
html body #view-profile .profile-gm-kpi small {
  overflow: hidden;
  color: #aaa0a3;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #view-profile .profile-gm-kpi strong {
  overflow: hidden;
  margin: 4px 0 2px;
  color: #f7f3f4;
  font-size: 26px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #view-profile .profile-gm-kpi small { color: #6fb979; }

html body #view-profile .profile-gm-donut-wrap {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

html body #view-profile .profile-gm-donut {
  width: 126px;
  height: 126px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, #171013 0 53%, transparent 54%), conic-gradient(#ff3449 calc(var(--profile-progress) * 1%), #73303b 0 78%, #30282b 0);
  text-align: center;
}

html body #view-profile .profile-gm-donut strong { font-size: 30px; line-height: 1; }
html body #view-profile .profile-gm-donut > span { margin-top: 4px; color: #a3989b; font-size: 12px; }
html body #view-profile .profile-gm-donut-wrap ul,
html body #view-profile .profile-gm-activity ul,
html body #view-profile .profile-gm-profile-state ul,
html body #view-profile .profile-gm-info-list,
html body #view-profile .profile-gm-channel-list { margin: 0; padding: 0; list-style: none; }
html body #view-profile .profile-gm-donut-wrap li { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; margin: 5px 0; font-size: 13px; }
html body #view-profile .profile-gm-donut-wrap li i { width: 7px; height: 7px; border-radius: 50%; background: #ff3449; }
html body #view-profile .profile-gm-donut-wrap li.is-watching i { background: #fd6578; }
html body #view-profile .profile-gm-donut-wrap li.is-planned i { background: #f0b66a; }
html body #view-profile .profile-gm-donut-wrap li.is-paused i { background: #8d566d; }
html body #view-profile .profile-gm-donut-wrap li.is-dropped i { background: #5f5960; }
html body #view-profile .profile-gm-donut-wrap li span { color: #d6ced0; }
html body #view-profile .profile-gm-donut-wrap li small { display: block; color: #887e81; font-size: 12px; }
html body #view-profile .profile-gm-donut-wrap li b { color: #cabfc2; font-size: 13px; }
html body #view-profile .profile-gm-progress-card > footer { margin-top: 7px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); color: #958b8e; font-size: 13px; }
html body #view-profile .profile-gm-progress-card > footer strong { color: #ff4559; }

html body #view-profile .profile-gm-watching { grid-column: 2; grid-row: 2; }
html body #view-profile .profile-gm-activity { grid-column: 3; grid-row: 2; }
html body #view-profile .profile-gm-overview-rail { grid-column: 4; grid-row: 2; display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
html body #view-profile .profile-gm-media-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 64px; margin-top: 8px; color: inherit; text-decoration: none; }
html body #view-profile .profile-gm-media-row img,
html body #view-profile .profile-gm-media-row .profile-gm-cover-fallback { width: 44px; height: 55px; object-fit: cover; border-radius: 5px; }
html body #view-profile .profile-gm-media-row div { min-width: 0; }
html body #view-profile .profile-gm-media-row strong,
html body #view-profile .profile-gm-media-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #view-profile .profile-gm-media-row strong { font-size: 14px; }
html body #view-profile .profile-gm-media-row small { margin-top: 4px; color: #8f8588; font-size: 12px; }
html body #view-profile .profile-gm-media-row > b { color: #a89da0; font-size: 12px; }
html body #view-profile .profile-gm-progress { display: block; height: 5px; margin-top: 7px; overflow: hidden; border-radius: 8px; background: #30272a; }
html body #view-profile .profile-gm-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#d9253c,#ff5365); }
html body #view-profile .profile-gm-cover-fallback { display: grid; place-items: center; background: #31131a; color: #ff5063; font-weight: 900; }
html body #view-profile .profile-gm-activity li { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 50px; border-bottom: 1px solid rgba(255,255,255,.07); }
html body #view-profile .profile-gm-activity li i { width: 21px; height: 21px; border: 1px solid rgba(255,52,72,.26); border-radius: 6px; background: rgba(255,52,72,.09); }
html body #view-profile .profile-gm-activity li span { min-width: 0; }
html body #view-profile .profile-gm-activity li strong,
html body #view-profile .profile-gm-activity li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #view-profile .profile-gm-activity li strong { font-size: 13px; }
html body #view-profile .profile-gm-activity li small,
html body #view-profile .profile-gm-activity time { color: #8f8588; font-size: 12px; }
html body #view-profile .profile-gm-genres > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
html body #view-profile .profile-gm-genres > div > span { padding: 4px 10px; border: 1px solid rgba(255,51,72,.38); border-radius: 999px; color: #c9bfc2; font-size: 12px; }
html body #view-profile .profile-gm-profile-state li,
html body #view-profile .profile-gm-info-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; border-bottom: 1px solid rgba(255,255,255,.06); color: #968c8f; font-size: 13px; }
html body #view-profile .profile-gm-profile-state li:last-child,
html body #view-profile .profile-gm-info-list li:last-child { border-bottom: 0; }
html body #view-profile .profile-gm-profile-state b,
html body #view-profile .profile-gm-info-list b { color: #e2dadd; font-size: 13px; }

html body #view-profile .profile-gm-recent-ratings { grid-column: 1 / 5; grid-row: 3; padding: 14px 16px; overflow: hidden; }
html body #view-profile .profile-gm-recent-ratings { margin-top:19px; }
html body #view-profile .profile-gm-card > header { display: flex; align-items: center; justify-content: space-between; }
html body #view-profile .profile-gm-card > header button { border: 0; background: transparent; color: #ff4054; font-size: 13px; cursor: pointer; }
html body #view-profile .profile-gm-poster-rail { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 11px; margin-top: 10px; }
html body #view-profile .profile-gm-poster-card { position: relative; height: 158px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; background: #1e1518; color: #fff; text-decoration: none; }
html body #view-profile .profile-gm-poster-card > img,
html body #view-profile .profile-gm-poster-card > .profile-gm-cover-fallback { width: 100%; height: 100%; object-fit: cover; }
html body #view-profile .profile-gm-poster-card::after { position:absolute; inset:45% 0 0; content:""; background:linear-gradient(transparent,rgba(0,0,0,.94)); }
html body #view-profile .profile-gm-poster-card > span { position:absolute; z-index:1; left:8px; right:8px; bottom:7px; display:flex; align-items:flex-end; justify-content:space-between; gap:6px; }
html body #view-profile .profile-gm-poster-card strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
html body #view-profile .profile-gm-poster-card b { color:#ffd16a; font-size:13px; white-space:nowrap; }

/* Statistik */
html body #view-profile .profile-gm-stats-grid { display:grid; grid-template-columns: 29fr 32fr 39fr; grid-template-rows: 104px 252px 258px; gap:12px; }
html body #view-profile .profile-gm-stats-kpis { grid-column:1/4; grid-row:1; grid-template-columns:repeat(5,minmax(0,1fr)); }
html body #view-profile .profile-gm-status-chart { grid-column:1; grid-row:2; }
html body #view-profile .profile-gm-genre-chart { grid-column:2; grid-row:2; }
html body #view-profile .profile-gm-month-chart { grid-column:3; grid-row:2; }
html body #view-profile .profile-gm-heatmap { grid-column:1; grid-row:3; }
html body #view-profile .profile-gm-rating-chart { grid-column:2; grid-row:3; }
html body #view-profile .profile-gm-milestones { grid-column:3; grid-row:3; }
html body #view-profile .profile-gm-status-chart .profile-gm-donut-wrap { grid-template-columns:145px 1fr; }
html body #view-profile .profile-gm-bars { height:178px; display:flex; align-items:flex-end; gap:8px; margin-top:12px; }
html body #view-profile .profile-gm-bars > div { height:100%; min-width:0; flex:1; display:grid; grid-template-rows:22px 1fr 32px; gap:3px; text-align:center; }
html body #view-profile .profile-gm-bars b,
html body #view-profile .profile-gm-bars small { overflow:hidden; color:#978d90; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
html body #view-profile .profile-gm-bars span { position:relative; align-self:stretch; }
html body #view-profile .profile-gm-bars i { position:absolute; left:18%; right:18%; bottom:0; border-radius:4px 4px 0 0; background:linear-gradient(#ff4055,#bb1c32); }
html body #view-profile .profile-gm-month-chart > small { display:block; margin-top:5px; color:#8c8285; font-size:12px; text-align:center; }
html body #view-profile .profile-gm-line-bars { height:160px; display:flex; align-items:flex-end; gap:5px; margin-top:13px; border-bottom:1px solid rgba(255,255,255,.09); }
html body #view-profile .profile-gm-line-bars > div { height:100%; min-width:0; flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; }
html body #view-profile .profile-gm-line-bars i { width:54%; min-height:1px; border-radius:3px 3px 0 0; background:linear-gradient(rgba(255,62,82,.92),rgba(164,17,39,.35)); }
html body #view-profile .profile-gm-line-bars b { margin-top:3px; color:#d6cdd0; font-size:12px; }
html body #view-profile .profile-gm-line-bars span { margin-top:3px; color:#877d80; font-size:12px; }
html body #view-profile .profile-gm-heatmap > p { margin:4px 0 8px; color:#8e8487; font-size:13px; }
html body #view-profile .profile-gm-heat-grid { display:grid; grid-template-columns:repeat(16,minmax(0,1fr)); grid-auto-flow:column; grid-template-rows:repeat(7,12px); gap:3px; }
html body #view-profile .profile-gm-heat-grid i { border-radius:2px; background:#28161a; }
html body #view-profile .profile-gm-heat-grid i.level-1 { background:#64202c; }
html body #view-profile .profile-gm-heat-grid i.level-2 { background:#9b2638; }
html body #view-profile .profile-gm-heat-grid i.level-3 { background:#dd344a; }
html body #view-profile .profile-gm-heat-grid i.level-4 { background:#ff7e8e; }
html body #view-profile .profile-gm-heatmap > small { display:flex; align-items:center; justify-content:flex-end; gap:4px; margin-top:10px; color:#887e81; font-size:12px; }
html body #view-profile .profile-gm-heatmap > small span { width:9px; height:9px; border-radius:2px; background:#64202c; }
html body #view-profile .profile-gm-heatmap > small span:nth-child(3){background:#9b2638}.profile-gm-heatmap > small span:nth-child(4){background:#dd344a}.profile-gm-heatmap > small span:nth-child(5){background:#ff7e8e}
html body #view-profile .profile-gm-distribution { margin-top:9px; }
html body #view-profile .profile-gm-distribution > div { display:grid; grid-template-columns:18px 1fr 28px; align-items:center; gap:6px; min-height:19px; }
html body #view-profile .profile-gm-distribution b,
html body #view-profile .profile-gm-distribution small { color:#a79da0; font-size:12px; }
html body #view-profile .profile-gm-distribution > div > span { height:6px; overflow:hidden; border-radius:5px; background:#2d2527; }
html body #view-profile .profile-gm-distribution i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#b82237,#ed3b51); }
html body #view-profile .profile-gm-milestones > div { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-top:18px; }
html body #view-profile .profile-gm-milestones article { min-width:0; text-align:center; }
html body #view-profile .profile-gm-milestones article strong { width:62px; height:72px; display:grid; place-items:center; margin:0 auto 9px; clip-path:polygon(50% 0,95% 22%,95% 78%,50% 100%,5% 78%,5% 22%); background:linear-gradient(145deg,#3d1820,#a82b3b); color:#fff; font-size:20px; }
html body #view-profile .profile-gm-milestones article span { display:block; overflow:hidden; color:#b4aaad; font-size:12px; text-overflow:ellipsis; }

/* Bewertungen */
html body #view-profile .profile-gm-rating-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
html body #view-profile .profile-gm-rating-kpis .profile-gm-kpi { min-height:112px; }
html body #view-profile .profile-gm-rating-toolbar { min-height:52px; display:flex; align-items:center; gap:10px; }
html body #view-profile .profile-gm-rating-toolbar label { display:flex; align-items:center; }
html body #view-profile .profile-gm-rating-toolbar label > span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
html body #view-profile .profile-gm-rating-toolbar select { min-width:150px; height:38px; border:1px solid rgba(255,255,255,.13); border-radius:18px; background:#161113; color:#d8cfd1; padding:0 13px; font-size:14px; }
html body #view-profile .profile-gm-rating-toolbar .profile-gm-rating-sort { margin-left:auto; }
html body #view-profile .profile-gm-rating-layout { display:grid; grid-template-columns:minmax(0,1fr) 358px; gap:12px; }
html body #view-profile .profile-gm-rating-main { min-width:0; }
html body #view-profile .rated-profile-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid rgba(255,255,255,.1); border-radius:9px; overflow:hidden; background:rgba(21,14,16,.72); }
html body #view-profile .profile-gm-rating-row { min-width:0; min-height:104px; display:grid; grid-template-columns:67px minmax(0,1fr) auto; align-items:center; gap:12px; padding:8px 12px; border-bottom:1px solid rgba(255,255,255,.07); color:#d8d0d2; text-decoration:none; }
html body #view-profile .profile-gm-rating-row:nth-child(odd) { border-right:1px solid rgba(255,255,255,.07); }
html body #view-profile .profile-gm-rating-row img,
html body #view-profile .profile-gm-rating-row > .profile-gm-cover-fallback { width:67px; height:76px; object-fit:cover; border-radius:5px; }
html body #view-profile .profile-gm-rating-row h3 { margin:0; overflow:hidden; color:#f0ebec; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
html body #view-profile .profile-gm-rating-row div > span,
html body #view-profile .profile-gm-rating-row p { margin:4px 0 0; color:#90868a; font-size:12px; }
html body #view-profile .profile-gm-rating-row > strong { align-self:start; color:#ffd16a; font-size:16px; }
/* Die beiden Karten der Seitenspalte hatten feste Zeilenhoehen (252px und
   162px). "Lieblings-Anime nach Score" zeigt bis zu fuenf Eintraege und braucht
   dafuer rund 190px - der Inhalt ragte deshalb etwa 28px unter den Rahmen, weil
   die Karte kein overflow setzt. Beide Zeilen richten sich jetzt nach ihrem
   Inhalt. align-content haelt sie oben, damit ueberschuessiger Platz unten
   bleibt statt die Karten zu strecken. Das entspricht dem Verhalten, das im
   Mobilbereich ohnehin schon galt. */
html body #view-profile .profile-gm-rating-rail { display:grid; grid-template-rows:auto auto; align-content:start; gap:12px; }
html body #view-profile .profile-gm-rating-rail ol { margin:10px 0 0; padding:0; list-style-position:inside; }
html body #view-profile .profile-gm-rating-rail li { display:flex; justify-content:space-between; gap:8px; min-height:26px; color:#c8bec1; font-size:13px; }
html body #view-profile .profile-gm-rating-rail li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Der Score behaelt seine natuerliche Breite. Ohne flex:0 0 auto schrumpft er
   bei langen Titeln mit, bricht um und zieht die Zeile von 26 auf 39 Pixel
   auseinander. Gekuerzt wird stattdessen der Titel - der hat overflow:hidden
   und damit die Ellipse. */
html body #view-profile .profile-gm-rating-rail li b { flex:0 0 auto; color:#ffd16a; white-space:nowrap; }
html body #view-profile .compact-pager { min-height:42px; display:flex; justify-content:center; align-items:center; gap:6px; }
html body #view-profile .compact-pager button { width:34px; height:34px; font-size:13px; padding:0; border:1px solid rgba(255,255,255,.12); border-radius:50%; background:#171113; color:#b8afb1; }
html body #view-profile .compact-pager button.active { border-color:#ff4055; background:#c52b40; color:#fff; }

/* Erinnerungen */
html body #view-profile .profile-gm-reminder-toolbar { min-height:40px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 14px; margin:0 0 12px; }
html body #view-profile .profile-gm-reminder-toolbar .release-reminders-status { color:#8f8588; font-size:13px; }
html body #view-profile .profile-gm-reminder-toolbar .release-reminders-head-actions { flex:0 1 auto; align-items:center; gap:8px; }
html body #view-profile .profile-gm-reminder-toolbar button,
html body #view-profile .profile-gm-reminder-toolbar .release-reminders-head-actions > button { box-sizing:border-box; height:36px; min-height:36px; padding:0 14px; font-size:14px; line-height:1; white-space:nowrap; }
html body #view-profile .profile-gm-reminder-layout { display:grid; grid-template-columns:minmax(0,1.7fr) .82fr .95fr; gap:12px; }
html body #view-profile .profile-gm-reminder-layout { min-height:500px; }
html body #view-profile .release-reminders-list > .ui-state-card { min-height:300px; border:1px solid rgba(255,255,255,.1) !important; border-radius:10px; background:linear-gradient(145deg,rgba(28,16,19,.9),rgba(15,12,13,.96)) !important; }
html body #view-profile .profile-gm-reminder-group > h2 { margin:0 0 8px; color:#ff4055; font-size:16px; }
html body #view-profile .profile-gm-reminder-group + .profile-gm-reminder-group { margin-top:12px; }
html body #view-profile .release-reminder-card { min-height:90px; display:grid; grid-template-columns:68px minmax(0,1fr) auto auto 35px auto; align-items:center; gap:10px; padding:7px 9px; border:1px solid rgba(255,255,255,.1); border-radius:8px; background:linear-gradient(120deg,rgba(31,20,23,.91),rgba(18,14,15,.96)); }
html body #view-profile .release-reminder-card + .release-reminder-card { margin-top:6px; }
html body #view-profile .release-reminder-card.is-paused { opacity:.66; }
html body #view-profile .release-reminder-cover { width:68px; height:64px; padding:0; overflow:hidden; border:0; border-radius:5px; background:#26161a; color:#ff4055; }
html body #view-profile .release-reminder-cover img { width:100%; height:100%; object-fit:cover; }
html body #view-profile .release-reminder-card-copy { min-width:0; }
html body #view-profile .release-reminder-card-copy h3 { margin:0; overflow:hidden; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
html body #view-profile .release-reminder-card-copy p,
html body #view-profile .release-reminder-card-copy time { display:block; margin:4px 0 0; color:#968c8f; font-size:12px; }
html body #view-profile .release-reminder-channel { padding:4px 7px; border:1px solid rgba(255,83,100,.25); border-radius:5px; color:#c0b6b9; font-size:12px; white-space:nowrap; }
html body #view-profile .release-reminder-countdown { color:#ff4c5f; font-size:12px; white-space:nowrap; }
html body #view-profile .profile-gm-switch { width:35px; height:20px; position:relative; padding:0; border:0; border-radius:12px; background:#4b4043; }
html body #view-profile .profile-gm-switch i { position:absolute; width:14px; height:14px; left:3px; top:3px; border-radius:50%; background:#eee; transition:transform .2s ease; }
html body #view-profile .profile-gm-switch[aria-checked="true"] { background:#d73349; }
html body #view-profile .profile-gm-switch[aria-checked="true"] i { transform:translateX(15px); }
html body #view-profile .profile-gm-reminder-actions { display:flex; gap:3px; }
/* V2.4.252: Kebab-Knopf .profile-gm-more entfernt, Regel nur noch fuer Loeschen. */
html body #view-profile .profile-gm-delete { border:0; background:transparent; color:#a69ca0; font-size:16px; }
html body #view-profile .profile-gm-delete { color:#d85a68; opacity:0; }
html body #view-profile .release-reminder-card:hover .profile-gm-delete,
html body #view-profile .profile-gm-delete:focus-visible { opacity:1; }
html body #view-profile .profile-gm-reminder-summary { display:grid; align-content:start; gap:12px; }
html body #view-profile .profile-gm-next-reminder { display:grid; grid-template-columns:70px minmax(0,1fr); gap:10px; margin-top:12px; }
html body #view-profile .profile-gm-next-reminder img,
html body #view-profile .profile-gm-next-reminder > .profile-gm-cover-fallback { width:70px; height:92px; object-fit:cover; border-radius:6px; }
html body #view-profile .profile-gm-next-reminder strong,
html body #view-profile .profile-gm-next-reminder small,
html body #view-profile .profile-gm-next-reminder time,
html body #view-profile .profile-gm-next-reminder b { display:block; margin-bottom:5px; font-size:13px; }
html body #view-profile .profile-gm-next-reminder small,
html body #view-profile .profile-gm-next-reminder time { color:#908689; }
html body #view-profile .profile-gm-next-reminder b { color:#ff465a; }
html body #view-profile #profileReminderSummary > footer { margin-top:10px; padding-top:9px; border-top:1px solid rgba(255,255,255,.07); color:#a59a9e; font-size:13px; }
html body #view-profile .profile-gm-reminder-channels { align-self:start; }
html body #view-profile .profile-gm-channel-list { margin-top:11px; }
html body #view-profile .profile-gm-channel-list li { min-height:62px; display:grid; grid-template-columns:29px minmax(0,1fr) auto; align-items:center; gap:9px; border-bottom:1px solid rgba(255,255,255,.07); }
html body #view-profile .profile-gm-channel-list li i { width:28px; height:28px; border:1px solid rgba(255,52,73,.25); border-radius:50%; background:rgba(255,52,73,.08); }
html body #view-profile .profile-gm-channel-list strong,
html body #view-profile .profile-gm-channel-list small { display:block; }
html body #view-profile .profile-gm-channel-list strong { font-size:14px; }
html body #view-profile .profile-gm-channel-list small,
html body #view-profile .profile-gm-channel-list > li > b { color:#8e8487; font-size:12px; }
html body #view-profile .native-push-settings { margin-top:14px; padding-top:12px; border-top:1px solid rgba(255,255,255,.08); }
html body #view-profile .native-push-settings h3 { margin:5px 0; font-size:15px; }
html body #view-profile .native-push-settings p,
html body #view-profile .native-push-status { color:#91878a; font-size:12px; }
html body #view-profile .profile-gm-reminder-note { min-height:58px; display:flex; align-items:center; margin:14px 0 0; padding:0 18px; border:1px solid rgba(255,55,75,.25); border-radius:8px; background:linear-gradient(90deg,rgba(76,18,29,.36),rgba(40,14,20,.3)); color:#b7adb0; font-size:13px; }
html body #view-profile .profile-gm-state-icon { width:36px; height:36px; flex:0 0 auto; border:2px solid #ff4055; border-radius:50%; }

/* Einstellungen */
html body #view-profile .profile-gm-settings-grid { display:grid; grid-template-columns:1.1fr 1fr 1.05fr; grid-template-rows:auto auto; grid-auto-flow:row dense; gap:12px; }
html body #view-profile .profile-gm-settings-grid > .profile-gm-card { min-height:0; padding:16px; }
html body #view-profile .profile-gm-account-card { grid-row:auto; min-height:0 !important; }
html body #view-profile .profile-gm-settings-grid label { display:flex; flex-direction:column; gap:3px; margin:7px 0 0 !important; color:#aea4a7; font-size:14px; }
html body #view-profile .profile-gm-settings-grid input,
html body #view-profile .profile-gm-settings-grid select { width:100%; min-height:38px; padding:7px 11px; border:1px solid rgba(255,255,255,.12); border-radius:5px; background:#181214; color:#eee7e9; font-size:15px; }
html body #view-profile .profile-gm-settings-grid .field-hint { color:#756c6f; font-size:13px; }
html body #view-profile .profile-gm-settings-grid button { min-height:38px; margin-top:8px; font-size:14px; }
html body #view-profile .profile-gm-account-card label { margin:5px 0 0 !important; }
html body #view-profile .profile-gm-account-card input { min-height:38px; }
html body #view-profile .profile-gm-settings-grid input[readonly],
html body #view-profile .profile-gm-settings-grid input:disabled { border-color:rgba(255,255,255,.09); background:#141011; color:#cdc4c7; cursor:default; opacity:1; }
html body #view-profile .profile-gm-settings-grid .field-hint.is-locked { color:#9a8f92; }
html body #view-profile .profile-gm-account-card button { min-height:38px; margin-top:4px; }
html body #view-profile .profile-gm-notification-card p { color:#91878a; font-size:13px; line-height:1.55; }
/* V2.4.252: Karte "Konto & Aktionen" entfernt. Die Kontoloeschung steht jetzt
   in .profile-gm-settings-footer und holt ihre Farbe aus der Redesign-Ebene. */

/* ---------------------------------------------- V2.4.206 E-Mail-Aenderung */
html body #view-profile .profile-email-status { margin:6px 0 0; min-height:0; color:#91878a; font-size:13px; line-height:1.5; }
html body #view-profile .profile-email-status:empty { display:none; }
html body #view-profile .profile-email-status.ok { color:#7fd1a3; }
html body #view-profile .profile-email-status.err { color:#ff8a95; }

/* ------------------------------------------ V2.4.206 Bildausschnitt-Dialog */
.avatar-crop-dialog {
  width:min(420px, calc(100vw - 28px));
  max-height:min(760px, calc(100dvh - 28px));
  padding:0;
  border:1px solid rgba(140,22,20,.82);
  border-radius:20px;
  background:#090303;
  color:var(--ink);
  box-shadow:0 36px 100px rgba(0,0,0,.84), 0 0 0 1px rgba(244,185,95,.06) inset;
  overflow:auto;
}
.avatar-crop-panel { display:flex; flex-direction:column; gap:12px; padding:18px 18px 20px; }
.avatar-crop-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.avatar-crop-head h2 { margin:2px 0 0; font-size:19px; letter-spacing:-.01em; }
.avatar-crop-hint { margin:0; color:#91878a; font-size:13px; line-height:1.55; }

.avatar-crop-stage {
  position:relative;
  width:100%;
  max-width:320px;
  aspect-ratio:1 / 1;
  margin:0 auto;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  background:#141011;
  overflow:hidden;
  cursor:grab;
  touch-action:none;
  user-select:none;
}
.avatar-crop-stage:active { cursor:grabbing; }
.avatar-crop-stage canvas { display:block; width:100%; height:100%; }
/* Runde Maske als Orientierung - gespeichert wird trotzdem das Quadrat. */
.avatar-crop-mask {
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:10px;
  box-shadow:0 0 0 9999px rgba(9,3,3,.55) inset;
  clip-path:circle(50% at 50% 50%);
}
.avatar-crop-stage::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border:1px solid rgba(244,185,95,.28);
  border-radius:50%;
}

.avatar-crop-zoom { display:flex; flex-direction:column; gap:5px; color:#aea4a7; font-size:14px; }
.avatar-crop-zoom input[type="range"] { width:100%; accent-color:#8c1614; }
.avatar-crop-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:2px; }
.avatar-crop-actions button { min-height:38px; font-size:14px; }

@media (max-width: 560px) {
  .avatar-crop-panel { padding:15px 14px 17px; gap:10px; }
  .avatar-crop-stage { max-width:min(280px, calc(100vw - 76px)); }
  .avatar-crop-actions { flex-direction:column-reverse; }
  .avatar-crop-actions button { width:100%; }
}

@media (min-width: 1181px) and (min-height: 1050px) {
  html body #view-profile .profile-gm-overview-grid {
    grid-template-rows:
      clamp(104px, calc(11dvh - 11px), 128px)
      clamp(254px, calc(36dvh - 113px), 320px)
      clamp(262px, calc(40dvh - 147px), 350px);
  }

  html body #view-profile .profile-gm-progress-card {
    height: clamp(258px, calc(35dvh - 99px), 356px);
  }

  html body #view-profile .profile-gm-recent-ratings > .profile-gm-empty {
    min-height: calc(100% - 31px);
  }

  html body #view-profile .profile-gm-stats-grid {
    grid-template-rows:
      clamp(104px, calc(11dvh - 11px), 128px)
      clamp(252px, calc(36dvh - 115px), 320px)
      clamp(258px, calc(40dvh - 146px), 350px);
  }

  html body #view-profile .profile-gm-bars {
    height: calc(100% - 41px);
    max-height: 286px;
  }

  html body #view-profile .profile-gm-line-bars {
    height: calc(100% - 56px);
    max-height: 271px;
  }
}

@media (min-width: 1300px) and (max-width: 1599px) {
  html body #view-profile .profile-gm-overview-grid {
    grid-template-columns:
      minmax(300px, 1.25fr)
      minmax(210px, .9fr)
      minmax(230px, 1fr)
      minmax(250px, 1.05fr);
  }
}

@media (max-width: 1299px) {
  html body #view-profile .profile-gm-page { width:calc(100% - 36px); margin-inline:18px; }
  html body #view-profile .profile-gm-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto; }
  html body #view-profile .profile-gm-progress-card,
  html body #view-profile .profile-gm-overview-kpis,
  html body #view-profile .profile-gm-watching,
  html body #view-profile .profile-gm-activity,
  html body #view-profile .profile-gm-overview-rail,
  html body #view-profile .profile-gm-recent-ratings { grid-column:auto; grid-row:auto; height:auto; }
  html body #view-profile .profile-gm-overview-kpis,
  html body #view-profile .profile-gm-recent-ratings { grid-column:1/-1; }
  html body #view-profile .profile-gm-poster-rail { grid-template-columns:repeat(4,minmax(0,1fr)); }
  html body #view-profile .profile-gm-stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto; }
  html body #view-profile .profile-gm-stats-grid > * { grid-column:auto; grid-row:auto; }
  html body #view-profile .profile-gm-stats-kpis { grid-column:1/-1; grid-template-columns:repeat(3,minmax(0,1fr)); }
  html body #view-profile .profile-gm-month-chart,
  html body #view-profile .profile-gm-milestones { grid-column:1/-1; }
  html body #view-profile .profile-gm-reminder-layout { grid-template-columns:minmax(0,1fr) 300px; }
  html body #view-profile .profile-gm-reminder-channels { grid-column:2; }
}

@media (max-width: 760px) {
  html body #view-profile .profile-gm-page { width:auto; margin:0; }
  html body #view-profile .profile-gm-page-heading { height:34px; padding-inline:12px; }
  html body #view-profile .profile-gm-page-heading h1 { font-size:24px; }
  html body #view-profile .profile-gm-hero { grid-template-columns:118px minmax(0,1fr); min-height:162px; margin-inline:12px; padding:14px; }
  html body #view-profile .profile-gm-avatar-block { gap:8px; }
  html body #view-profile .profile-gm-avatar-edit { width:34px; height:34px; }
  html body #view-profile .profile-gm-avatar.avatar-frame { width:76px !important; height:76px !important; font-size:23px; }
  html body #view-profile .profile-gm-identity { padding-left:10px; }
  html body #view-profile .profile-main-title { font-size:23px !important; }
  html body #view-profile .profile-gm-meta { flex-wrap:wrap; gap:5px 10px; margin-top:8px; font-size:12px; }
  html body #view-profile .profile-actions.profile-gm-hero-actions { grid-column:1/-1; width:100%; display:grid !important; grid-template-columns:1fr 1fr; gap:7px; margin:10px 0 0 !important; }
  html body #view-profile .profile-gm-hero-actions button { width:100% !important; min-height:34px; padding:6px 9px !important; font-size:14px; }
  html body #view-profile .profile-gm-tabs.profile-hub-tabs { width:calc(100% - 24px) !important; height:45px; margin:8px 12px 0 !important; overflow-x:auto !important; }
  html body #view-profile .profile-gm-tabs .mobile-section-tab { min-width:max-content !important; min-height:44px !important; padding-inline:15px !important; font-size:14px !important; }
  html body #view-profile .profile-gm-panels { margin:10px 12px 0; }
  html body #view-profile .profile-gm-overview-grid,
  html body #view-profile .profile-gm-stats-grid,
  html body #view-profile .profile-gm-settings-grid { display:flex; flex-direction:column; }
  html body #view-profile .profile-gm-overview-kpis,
  html body #view-profile .profile-gm-stats-kpis,
  html body #view-profile .profile-gm-rating-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html body #view-profile .profile-gm-progress-card,
  html body #view-profile .profile-gm-settings-grid > .profile-gm-card,
  html body #view-profile .profile-gm-account-card { height:auto; min-height:0 !important; }
  html body #view-profile .profile-gm-poster-rail { display:flex; overflow-x:auto; }
  html body #view-profile .profile-gm-poster-card { min-width:126px; }
  html body #view-profile .profile-gm-rating-toolbar { overflow-x:auto; }
  html body #view-profile .profile-gm-rating-toolbar select { min-width:125px; }
  html body #view-profile .profile-gm-rating-layout,
  html body #view-profile .profile-gm-reminder-layout { grid-template-columns:minmax(0,1fr); }
  html body #view-profile .rated-profile-list { grid-template-columns:minmax(0,1fr); }
  html body #view-profile .profile-gm-rating-row:nth-child(odd) { border-right:0; }
  html body #view-profile .profile-gm-rating-rail { grid-template-rows:auto; }
  html body #view-profile .release-reminder-card { grid-template-columns:58px minmax(0,1fr) auto; }
  html body #view-profile .release-reminder-cover { width:58px; }
  html body #view-profile .release-reminder-channel,
  html body #view-profile .release-reminder-countdown { display:none; }
  html body #view-profile .profile-gm-switch { grid-column:3; grid-row:1; }
  html body #view-profile .profile-gm-reminder-actions { grid-column:3; grid-row:2; }
  html body #view-profile .profile-gm-reminder-channels { grid-column:auto; }
}

/* Keep the mandatory consent choice present without covering the reference UI. */
@media (min-width: 960px) {
  html:not(.native-app) body .consent-banner {
    right: auto !important;
    bottom: 16px !important;
    left: calc(var(--reference-sidebar-width) + max(16px, (100vw - var(--reference-sidebar-width) - 720px) / 2)) !important;
    width: min(720px, calc(100vw - var(--reference-sidebar-width) - 32px)) !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    padding: 13px 14px !important;
  }

  html:not(.native-app) body .consent-copy strong {
    margin-bottom: 4px !important;
    font-size: 14px !important;
  }

  html:not(.native-app) body .consent-copy p {
    margin-bottom: 4px !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 10px !important;
    line-height: 1.4 !important;
  }

  html:not(.native-app) body .consent-copy .text-action,
  html:not(.native-app) body .consent-actions button {
    min-height: 32px !important;
    font-size: 9px !important;
  }

  html:not(.native-app) body .consent-actions {
    max-width: 210px;
    gap: 6px !important;
  }
}

/* Discover head, search field, quick filter rows and toolbar - geometry from the
   supplied desktop board (page box 1650x918): content inset 41/31, search field 41
   high with a 51px icon gutter, 32-high genre chips 14 apart, 47-high provider
   buttons 18 apart, season tabs on a full-width divider, 31-high toolbar controls. */

html body {
  --dis-text: #ececec;
  --dis-muted: #9a9698;
  --dis-dim: #8b8688;
  --dis-line: rgba(255, 255, 255, .075);
  --dis-surface: #1e1a1b;
  --dis-surface-soft: #191516;
  --dis-crimson: #e8433f;
  --dis-crimson-soft: rgba(232, 67, 63, .13);
  --dis-crimson-line: rgba(232, 67, 63, .55);
  --dis-card-gap-x: 34px;
  --dis-card-gap-y: 20px;
}

html body #view-search .discover-title-row {
  align-items: flex-start !important;
  margin: 0 0 15px !important;
}

html body #view-search .discover-title-row .page-main-title {
  margin: 0 !important;
  color: var(--dis-text) !important;
  font-size: 30px !important;
  font-weight: 620 !important;
  letter-spacing: -.022em !important;
  line-height: 1.12 !important;
}

html body #view-search .discover-title-row p {
  margin: 3px 0 0 !important;
  color: var(--dis-muted) !important;
  font-size: 14.5px !important;
  line-height: 1.4 !important;
}

html body #view-search .search-board {
  display: block !important;
  margin: 0 !important;
}

html body #view-search .search-main {
  min-width: 0;
  display: block !important;
}

/* Search field ------------------------------------------------------------- */

html body #view-search .search-input-label {
  position: relative;
  display: block !important;
  height: 41px;
  margin: 0 !important;
}

html body #view-search .search-input-label #searchInput {
  width: 100% !important;
  height: 41px !important;
  min-height: 0 !important;
  padding: 0 52px 0 51px !important;
  border: 1px solid var(--dis-line) !important;
  border-radius: 11px !important;
  background: var(--dis-surface) !important;
  color: var(--dis-text) !important;
  box-shadow: none !important;
  font-size: 15px !important;
  letter-spacing: -.005em;
}

html body #view-search .search-input-label #searchInput::placeholder {
  color: var(--dis-muted) !important;
}

html body #view-search .search-input-label #searchInput:focus {
  border-color: color-mix(in srgb, var(--dis-crimson) 55%, transparent) !important;
  outline: none !important;
}

html body #view-search .discover-search-icon,
html body #view-search .discover-inline-filter {
  position: absolute;
  top: 50%;
  display: grid !important;
  place-items: center;
  transform: translateY(-50%);
}

html body #view-search .discover-search-icon {
  left: 19px;
  width: 19px;
  height: 19px;
  color: var(--dis-muted);
  pointer-events: none;
}

html body #view-search .discover-inline-filter {
  right: 17px;
  width: 22px;
  height: 22px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #d8d3d4 !important;
  cursor: pointer;
}

html body #view-search .discover-inline-filter:hover {
  color: var(--dis-crimson) !important;
}

html body #view-search :where(.discover-search-icon, .discover-inline-filter) svg,
html body #view-search .discover-filter-button svg,
html body #view-search .discover-view-toggle svg,
html body #view-search .search-card-bookmark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Quick filter sections ---------------------------------------------------- */

html body #view-search .discover-quick-section {
  margin: 19px 0 0 !important;
}

html body #view-search .discover-quick-section h3 {
  margin: 0 0 12px !important;
  color: var(--dis-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -.005em !important;
}

html body #view-search .discover-chip-row,
html body #view-search .discover-provider-row,
html body #view-search .discover-season-tabs,
html body #view-search .discover-filter-toolbar,
html body #view-search .discover-active-filters {
  min-width: 0;
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
}

html body #view-search .discover-chip-row {
  gap: 14px !important;
}

html body #view-search .discover-chip-row button {
  min-height: 0 !important;
  height: 32px;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 0 17px !important;
  border: 1px solid var(--dis-line) !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #c9c4c5 !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: -.005em !important;
  text-transform: none !important;
  cursor: pointer;
}

html body #view-search .discover-chip-row button:hover {
  border-color: var(--dis-crimson-line) !important;
  color: var(--dis-text) !important;
}

html body #view-search .discover-chip-row button.is-active {
  border-color: var(--dis-crimson-line) !important;
  background: var(--dis-crimson-soft) !important;
  color: #ff6b62 !important;
}

html body #view-search .discover-chip-row button.is-extra {
  display: none !important;
}

html body #view-search .discover-chip-row .discover-chip-more {
  gap: 5px;
  padding: 0 14px !important;
  color: var(--dis-muted) !important;
}

html body #view-search .discover-chip-row .discover-chip-more svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body #view-search .discover-chip-row.show-all .discover-chip-more svg {
  transform: rotate(180deg);
}

/* Provider row ------------------------------------------------------------- */

html body #view-search .discover-provider-row {
  min-height: 47px;
  gap: 18px !important;
}

html body #view-search .discover-provider-chip,
html body #view-search .discover-provider-more {
  min-height: 0 !important;
  height: 47px;
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  padding: 0 18px !important;
  border: 1px solid var(--dis-line) !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--dis-text) !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: 14.5px !important;
  font-weight: 550 !important;
  text-transform: none !important;
  cursor: pointer;
}

html body #view-search .discover-provider-chip:hover,
html body #view-search .discover-provider-more:hover {
  border-color: var(--dis-crimson-line) !important;
}

html body #view-search .discover-provider-chip img {
  width: 26px !important;
  height: 26px !important;
  border-radius: 6px !important;
  object-fit: contain !important;
}

html body #view-search .discover-provider-chip.is-active {
  border-color: var(--dis-crimson-line) !important;
  background: var(--dis-crimson-soft) !important;
}

html body #view-search .discover-provider-more {
  gap: 8px;
  color: var(--dis-muted) !important;
}

html body #view-search .discover-provider-more span {
  font-size: 13px;
  letter-spacing: .08em;
}

html body #view-search .discover-provider-more b {
  font-weight: 550;
}

html body #view-search .discover-provider-chip.is-extra {
  display: none !important;
}

html body #view-search .discover-provider-row.show-all .discover-provider-chip.is-extra {
  display: inline-flex !important;
}

html body #view-search .discover-provider-loading {
  color: var(--dis-dim) !important;
  font-size: 13px;
}

/* Season tabs -------------------------------------------------------------- */

html body #view-search .discover-season-tabs {
  /* Die Tabs liegen im Board direkt aneinander, der Abstand kommt aus dem Padding. */
  gap: 0 !important;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: 1px solid var(--dis-line);
  scrollbar-width: none;
}

html body #view-search .discover-season-tabs::-webkit-scrollbar {
  height: 0;
}

html body #view-search .discover-season-tabs button {
  position: relative;
  min-height: 0 !important;
  height: 32px;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 0 25px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--dis-muted) !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -.005em !important;
  text-transform: none !important;
  white-space: nowrap;
  cursor: pointer;
}

html body #view-search .discover-season-tabs button:hover {
  color: var(--dis-text) !important;
}

html body #view-search .discover-season-tabs button.is-active {
  background: transparent !important;
  color: #fff !important;
  font-weight: 620 !important;
}

html body #view-search .discover-season-tabs button.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--dis-crimson);
}

html body #view-search .discover-season-now {
  height: 19px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--dis-crimson) 78%, #000);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}

/* Filter toolbar ----------------------------------------------------------- */

html body #view-search .discover-filter-toolbar {
  gap: 12px !important;
  margin: 20px 0 0 !important;
}

html body #view-search .discover-filter-button {
  min-height: 0 !important;
  height: 31px;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 0 15px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: var(--dis-surface) !important;
  color: var(--dis-text) !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 550 !important;
  text-transform: none !important;
  cursor: pointer;
}

html body #view-search .discover-filter-button:hover {
  border-color: var(--dis-crimson-line) !important;
}

html body #view-search .discover-filter-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

html body #view-search .discover-active-filters {
  min-width: 0;
  gap: 12px !important;
}

html body #view-search .discover-active-filters button {
  min-height: 0 !important;
  height: 31px;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 0 14px !important;
  border: 1px solid var(--dis-crimson-line) !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--dis-text) !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  cursor: pointer;
}

html body #view-search .discover-active-filters button:hover {
  background: var(--dis-crimson-soft) !important;
}

html body #view-search .discover-active-filters button b {
  color: var(--dis-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

html body #view-search .discover-filter-reset {
  min-height: 0 !important;
  height: 31px;
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--dis-crimson) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  cursor: pointer;
}

html body #view-search .discover-filter-reset:hover {
  text-decoration: underline;
}

html body #view-search .discover-toolbar-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

html body #view-search .discover-sort-label {
  color: var(--dis-muted);
  font-size: 14px;
  white-space: nowrap;
}

html body #view-search .discover-toolbar-end .ar-select {
  width: 128px;
}

html body #view-search .discover-toolbar-end .ar-select-text {
  overflow: hidden;
  color: var(--dis-text) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: -.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #view-search .discover-toolbar-end .ar-select-arrow {
  flex: 0 0 auto;
  color: var(--dis-muted) !important;
}

html body #view-search .discover-toolbar-end .ar-select-btn {
  width: 100%;
  min-height: 0 !important;
  height: 31px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: var(--dis-surface) !important;
  color: var(--dis-text) !important;
  box-shadow: none !important;
  font-size: 14px !important;
}

html body #view-search .discover-view-toggle {
  display: flex;
  gap: 6px;
  /* Das Board setzt die Ansichtsumschaltung deutlich abgesetzt an den rechten Rand. */
  margin-left: 85px;
}

html body #view-search .discover-view-toggle button {
  min-height: 0 !important;
  height: 31px;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 0 13px !important;
  border: 1px solid var(--dis-line) !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--dis-muted) !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 550 !important;
  text-transform: none !important;
  cursor: pointer;
}

html body #view-search .discover-view-toggle button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

html body #view-search .discover-view-toggle button.is-active {
  border-color: var(--dis-crimson-line) !important;
  background: var(--dis-crimson-soft) !important;
  color: var(--dis-text) !important;
}

html body #view-search .discover-view-toggle button.is-active svg {
  color: var(--dis-crimson);
}

html body #view-search .discover-view-toggle button svg rect {
  fill: currentColor;
  stroke: none;
}

html body #view-search .discover-view-toggle button svg circle {
  fill: currentColor;
  stroke: none;
}

html body #view-search .discover-result-count {
  margin: 17px 0 13px !important;
  color: var(--dis-dim) !important;
  font-size: 13.5px !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) {
  position: fixed !important;
  top: 22px !important;
  right: 22px !important;
  bottom: 22px !important;
  left: auto !important;
  z-index: 82 !important;
  width: min(348px, calc(100vw - 44px)) !important;
  max-height: none !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: start;
  gap: 10px !important;
  margin: 0 !important;
  padding: 18px !important;
  overflow-y: auto;
  border: 1px solid var(--md-outline-strong) !important;
  border-radius: 12px !important;
  background: var(--md-surface-elevated) !important;
  box-shadow: var(--md-elevation-3) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(100% + 32px));
  transition: opacity .2s var(--md-motion), visibility .2s var(--md-motion), transform .2s var(--md-motion);
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters).is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .search-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .search-filter-head h3 {
  margin: 2px 0 0 !important;
  font-size: 20px !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .search-filter-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--md-surface-variant) !important;
  color: var(--md-on-surface) !important;
  font-size: 24px;
  font-weight: 300;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) > label {
  display: grid !important;
  gap: 5px !important;
  margin: 0 !important;
  color: var(--md-muted) !important;
  font-size: 11px !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) > small {
  margin: -5px 0 1px !important;
  color: var(--md-dim) !important;
  font-size: 9px !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) > .solid-action {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
}

/* Mehrfachauswahl in der Filterlade. Uebernimmt die Chip-Optik der bereits
   vorhandenen "Beliebte Genres"-Reihe, damit kein zweites Bedienmuster
   entsteht, und bleibt innerhalb der bestehenden 348px-Ladengeometrie. */

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-group {
  display: grid !important;
  gap: 7px !important;
  margin: 0 !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-group h4 {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  color: var(--md-muted) !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-count {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: var(--dis-crimson-soft) !important;
  color: #ff6b62 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-count[hidden] {
  display: none !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  align-content: flex-start !important;
  gap: 6px !important;
  min-width: 0 !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-chips.is-scroll {
  max-height: 132px !important;
  padding-right: 2px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-chip {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 0 !important;
  height: 28px !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 11px !important;
  border: 1px solid var(--dis-line) !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #c9c4c5 !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: -.005em !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-chip:hover {
  border-color: var(--dis-crimson-line) !important;
  color: var(--dis-text) !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-chip.is-active {
  border-color: var(--dis-crimson-line) !important;
  background: var(--dis-crimson-soft) !important;
  color: #ff6b62 !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-chip.is-active::before {
  content: "\2713" !important;
  margin-right: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-empty {
  color: var(--md-dim) !important;
  font-size: 11.5px !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-search {
  display: block !important;
  margin: 0 !important;
}

html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) .discover-filter-search input {
  width: 100% !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid var(--md-outline) !important;
  border-radius: 9px !important;
  background: var(--md-surface-variant) !important;
  color: var(--md-on-surface) !important;
  font-size: 12.5px !important;
}

/* "Mehr laden" unter der Ergebnisliste - die Trefferliste wird erst nach der
   vollstaendigen Filterung seitenweise angezeigt. */

/* Ohne diese Regel wuerde das display:flex unten das hidden-Attribut
   ueberstimmen und "Mehr laden" bliebe auch ohne weitere Treffer sichtbar. */
html body #view-search .discover-loadmore-row[hidden] {
  display: none !important;
}

html body #view-search .discover-loadmore-row {
  display: flex !important;
  justify-content: center !important;
  margin: 22px 0 0 !important;
}

html body #view-search .discover-loadmore {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  width: min(242px, 100%) !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 1px solid var(--dis-crimson-line) !important;
  border-radius: 10px !important;
  background: var(--dis-crimson-soft) !important;
  color: #ff6b62 !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 640 !important;
  text-transform: none !important;
  cursor: pointer !important;
}

html body #view-search .discover-loadmore:hover:not(:disabled) {
  background: rgba(232, 67, 63, .22) !important;
}

/* Result grid and anime card - board geometry: six columns, 34px column gap,
   20px row gap, card 194x191 with a full-bleed cover, bottom gradient and the
   copy stack title / year+episodes / rating. */

html body #view-search .search-results {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  column-gap: var(--dis-card-gap-x) !important;
  row-gap: var(--dis-card-gap-y) !important;
}

html body #view-search .search-results > :where(.ui-state-card, .empty-state) {
  grid-column: 1 / -1;
}

html body #view-search .search-row {
  position: relative;
  min-width: 0;
  min-height: 0 !important;
  aspect-ratio: 194 / 191;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--dis-line) !important;
  border-radius: 12px !important;
  background: var(--dis-surface-soft) !important;
  box-shadow: none !important;
}

html body #view-search .search-row:hover {
  border-color: var(--dis-crimson-line) !important;
}

html body #view-search .search-row-image-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

html body #view-search .search-row-image-link::after {
  content: "";
  position: absolute;
  top: auto !important;
  right: 0;
  bottom: 0;
  left: 0;
  height: 62% !important;
  background: linear-gradient(to bottom, rgba(9, 7, 8, 0) 0%, rgba(9, 7, 8, .72) 42%, rgba(9, 7, 8, .95) 74%, #0b0909 100%);
}

html body #view-search .search-row-image-link img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center 22%;
}

html body #view-search .search-row > div.search-card-copy {
  position: absolute !important;
  margin: 0 !important;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 0 12px 11px !important;
  background: none !important;
}

html body #view-search .search-row-title-link {
  min-width: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

html body #view-search .search-row h3 {
  overflow: hidden;
  margin: 0 !important;
  color: #fbfbfb !important;
  font-family: var(--font-body) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis;
  text-transform: none !important;
  white-space: nowrap;
}

html body #view-search .search-card-meta {
  overflow: hidden;
  margin: 0 !important;
  color: #b9b3b4 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #view-search .search-row .release-meta {
  min-height: 18px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 1px 0 0 !important;
  border: 0 !important;
  color: #d6d1d2 !important;
  font-size: 12.5px !important;
}

html body #view-search .search-row .release-meta strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #efeaea !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

html body #view-search .search-row .release-meta strong b {
  color: var(--md-rating) !important;
  font-size: 13px;
  line-height: 1;
}

html body #view-search .search-card-provider-slot {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
}

html body #view-search .search-card-provider-slot img {
  width: 17px !important;
  height: 17px !important;
  border-radius: 5px !important;
  object-fit: cover !important;
}

html body #view-search .search-card-bookmark {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: grid !important;
  place-items: center;
  padding: 6px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(10, 8, 9, .55) !important;
  color: #f4f0f0 !important;
  box-shadow: none !important;
  cursor: pointer;
}

html body #view-search .search-card-bookmark:hover {
  background: rgba(10, 8, 9, .78) !important;
  color: var(--dis-crimson) !important;
}

html body #view-search .search-card-bookmark.is-saved {
  color: var(--dis-crimson) !important;
}

html body #view-search .search-card-bookmark.is-saved svg {
  fill: currentColor;
}

/* Loading skeleton keeps the card box so the grid never jumps. */
html body #view-search .search-row.is-skeleton {
  border-color: rgba(255, 255, 255, .045) !important;
  background: #171314 !important;
}

html body #view-search .search-row.is-skeleton .search-row-image-link {
  background: linear-gradient(160deg, #241b1c, #171314);
}

html body #view-search .search-row.is-skeleton h3,
html body #view-search .search-row.is-skeleton .search-card-meta {
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
  color: transparent !important;
}

html body #view-search .search-row.is-skeleton .search-card-meta {
  width: 62%;
}

/* List view - same cards, one row each, reusing the real markup. */
html body #view-search .search-results.is-list {
  grid-template-columns: minmax(0, 1fr) !important;
  row-gap: 10px !important;
}

html body #view-search .search-results.is-list .search-row {
  aspect-ratio: auto !important;
  height: 92px;
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: stretch;
}

html body #view-search .search-results.is-list .search-row-image-link {
  position: relative !important;
  inset: auto !important;
  width: 132px !important;
  height: 100% !important;
  border-radius: 0 !important;
}

html body #view-search .search-results.is-list .search-row-image-link::after {
  display: none;
}

html body #view-search .search-results.is-list .search-row > div.search-card-copy {
  position: relative !important;
  right: auto;
  bottom: auto;
  left: auto;
  align-content: center;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  padding: 0 16px !important;
}

html body #view-search .search-results.is-list .search-row h3 {
  font-size: 15px !important;
}

html body #view-search .search-results.is-list .search-row .release-meta {
  justify-content: flex-start;
  gap: 16px;
}

html body #view-search .search-results.is-list .search-card-bookmark {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

@media (max-width: 760px) {
  html body #view-search .discover-title-row {
    display: none !important;
  }

  html body #view-search .discover-title-row .page-main-title {
    font-size: 22px !important;
  }

  html body #view-search .discover-title-row p {
    display: none;
  }

  html body #view-search .search-input-label #searchInput {
    height: 44px !important;
    min-height: 44px !important;
    font-size: 12px !important;
  }

  html body #view-search .discover-quick-section {
    margin-bottom: 16px;
  }

  html body #view-search .discover-chip-row,
  html body #view-search .discover-provider-row {
    width: calc(100vw - 24px);
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  html body #view-search :where(.discover-chip-row, .discover-provider-row)::-webkit-scrollbar {
    display: none;
  }

  html body #view-search .discover-chip-row button {
    min-height: 32px;
    flex: 0 0 auto;
    padding-inline: 15px !important;
    font-size: 11px !important;
  }

  html body #view-search .discover-provider-chip,
  html body #view-search .discover-provider-more {
    min-width: 66px;
    min-height: 62px;
    flex: 0 0 66px;
    flex-direction: column;
    gap: 5px;
    padding: 5px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 8px !important;
  }

  html body #view-search .discover-provider-chip img {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px;
    border: 1px solid var(--md-outline);
    border-radius: 50% !important;
    background: var(--md-surface-variant);
  }

  html body #view-search .discover-provider-chip.is-extra {
    display: flex;
  }

  html body #view-search .discover-season-tabs button {
    min-height: 38px;
    padding-inline: 14px !important;
    font-size: 10px !important;
  }

  html body #view-search .discover-filter-toolbar {
    gap: 6px;
    margin-bottom: 12px;
  }

  html body #view-search .discover-active-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  html body #view-search .discover-active-filters button {
    flex: 0 0 auto;
    font-size: 9px !important;
  }

  html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters) {
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-height: min(82dvh, 720px) !important;
    border-width: 1px 0 0 !important;
    border-radius: 16px 16px 0 0 !important;
    transform: translateY(105%);
  }

  html body :is(#searchFilterCard, #libraryFilterCard, #calendarFilters).is-open {
    transform: translateY(0);
  }

  html body #view-search .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html body #view-search .search-row {
    aspect-ratio: .98;
    min-height: 0 !important;
  }

  html body #view-search .search-row > div.search-card-copy {
    padding: 0 10px 9px !important;
  }

  /* Toolbar-Ende bricht auf dem Handy in eine eigene Zeile um. */
  html body #view-search .discover-toolbar-end {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 0;
  }

  html body #view-search .discover-view-toggle {
    margin-left: auto;
  }

  html body #view-search .discover-toolbar-end .ar-select {
    width: 136px;
  }

  html body #view-search .discover-season-tabs button {
    padding: 0 14px !important;
    font-size: 13.5px !important;
  }

  html body #view-search .discover-view-toggle button {
    padding: 0 11px !important;
    font-size: 13px !important;
  }

  html body #view-search .search-row h3 {
    font-size: 11px !important;
  }

  html body #view-search .search-card-bookmark {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
  }

  html body #view-search .search-card-bookmark svg {
    width: 18px;
    height: 18px;
  }
}

/* -------------------------------------------------------------------------- */
/* Calendar / season planner - desktop golden master (viewport 1672x941)      */
/*                                                                            */
/* Geometry comes from the supplied desktop board: sidebar 242, content inset  */
/* 38/28, season row 40 high, weekday header 60 high, time rows 86, release    */
/* card 78 high with a 62px poster, bottom panel 189 high and a 308px filter   */
/* drawer with a 32px gap. Colours are scoped tokens read from that board.     */
/* -------------------------------------------------------------------------- */

html body {
  --cal-row: 86px;
  --cal-card-h: 78px;
  --cal-time-col: 51px;
  --cal-drawer-w: 308px;
  --cal-drawer-gap: 32px;
  --cal-text: #fdfdfd;
  --cal-muted: #969696;
  --cal-dim: #8b8686;
  --cal-line: rgba(255, 255, 255, .055);
  --cal-border: rgba(255, 255, 255, .062);
  --cal-card: #1c1616;
  --cal-panel: #1a1617;
  --cal-drawer-bg: #181415;
  --cal-drawer-line: #221c1e;
  --cal-control: #2a1416;
  --cal-control-soft: #1b1213;
  --cal-toggle: #201615;
  --cal-toggle-active: #551c20;
  --cal-chip: #191314;
  --cal-crimson-fill: #8e2a32;
  --cal-crimson-soft: #75242a;
  --cal-crimson-line: #ed4747;
  --cal-crimson-bright: #f63a40;
}

html body #view-calendar.active {
  transform: none !important;
}

/* Page head ---------------------------------------------------------------- */

html body #view-calendar .calendar-week-content.page-title-row {
  margin: 0 !important;
}

html body #view-calendar .calendar-week-content .page-main-title {
  margin: 0 !important;
  color: var(--cal-text) !important;
  font-size: 31px !important;
  font-weight: 640 !important;
  letter-spacing: -.025em !important;
  line-height: 1.2 !important;
}

html body #view-calendar .calendar-week-content.page-title-row p {
  margin: 6px 0 0 !important;
  color: var(--cal-muted) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

html body #view-calendar .calendar-head-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 !important;
}

html body #view-calendar .calendar-head-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cal-border);
  border-radius: 10px;
  background: transparent;
  color: var(--cal-muted);
  text-decoration: none;
}

html body #view-calendar .calendar-head-icon:hover,
html body #view-calendar .calendar-head-icon:focus-visible {
  border-color: color-mix(in srgb, var(--cal-crimson-line) 40%, transparent);
  color: var(--cal-text);
}

html body #view-calendar .calendar-head-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body #view-calendar .calendar-mobile-filter-button {
  height: 41px;
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 0 17px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--cal-crimson-soft) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

html body #view-calendar .calendar-mobile-filter-button:hover {
  background: color-mix(in srgb, var(--cal-crimson-soft) 82%, #fff) !important;
}

html body #view-calendar .calendar-mobile-filter-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

/* Season / week controls --------------------------------------------------- */

html body #view-calendar .calendar-controls {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 19px 0 0;
}

html body #view-calendar .calendar-week-nav {
  height: 40px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 10px;
  background: var(--cal-control);
}

html body #view-calendar .calendar-week-step {
  width: 40px;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e7e1e1;
  box-shadow: none;
  cursor: pointer;
}

html body #view-calendar .calendar-week-step:hover {
  background: rgba(255, 255, 255, .05);
}

html body #view-calendar .calendar-week-step svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body #view-calendar .calendar-week-label {
  min-width: 139px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 255, .05);
  border-left: 1px solid rgba(255, 255, 255, .05);
  color: #ded9d6;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

html body #view-calendar .calendar-today-button {
  min-width: 63px;
  height: 40px;
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 13px !important;
  border: 1px solid rgba(255, 255, 255, .055) !important;
  border-radius: 10px !important;
  background: var(--cal-control-soft) !important;
  color: #cec8c6 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

html body #view-calendar .calendar-today-button:hover {
  border-color: color-mix(in srgb, var(--cal-crimson-line) 34%, transparent) !important;
  color: var(--cal-text) !important;
}

html body #view-calendar .calendar-mode-toggle {
  height: 40px;
  display: flex;
  gap: 0;
  margin-left: auto;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 10px;
  background: var(--cal-toggle);
}

html body #view-calendar .calendar-mode-toggle button {
  min-width: 109px;
  min-height: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b8b1b0;
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

html body #view-calendar .calendar-mode-toggle button.is-active {
  background: var(--cal-toggle-active);
  color: #fff;
}

/* Weekday header ----------------------------------------------------------- */

html body #view-calendar .weekday-dock {
  flex: 0 0 auto;
  display: grid !important;
  grid-template-columns: var(--cal-time-col) repeat(7, minmax(0, 1fr));
  gap: 0 6px !important;
  height: 60px;
  padding: 14px 0 0 !important;
  border-bottom: 1px solid var(--cal-line) !important;
}

html body #view-calendar .day-chip {
  position: relative;
  min-width: 0;
  min-height: 0 !important;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #8f8a8a !important;
  box-shadow: none !important;
  cursor: pointer;
}

html body #view-calendar .day-chip[data-day="week"] {
  display: none !important;
}

html body #view-calendar .day-chip strong {
  color: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  opacity: .8;
  text-transform: none !important;
}

html body #view-calendar .day-chip span {
  overflow: hidden;
  color: inherit !important;
  font-size: 14px !important;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #view-calendar .day-chip:hover {
  color: #cfc9c9 !important;
}

html body #view-calendar .day-chip.active,
html body #view-calendar .day-chip.is-marked {
  border-color: transparent !important;
  background: transparent !important;
}

html body #view-calendar .day-chip.is-marked {
  color: var(--cal-crimson-line) !important;
}

html body #view-calendar .day-chip.active:not(.is-marked) {
  color: #8f8a8a !important;
}

html body #view-calendar .day-chip.active::after {
  display: none;
}

html body #view-calendar .day-chip.is-marked::after {
  content: "";
  position: absolute;
  display: block;
  right: auto;
  bottom: 0;
  left: 50%;
  width: 100px;
  height: 2px;
  border-radius: 2px;
  background: var(--cal-crimson-line);
  transform: translateX(-50%);
}

/* Timetable ---------------------------------------------------------------- */

html body #view-calendar .calendar-results {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

html body #view-calendar .results-toolbar {
  display: none !important;
}

html body #view-calendar .release-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: block !important;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

html body #view-calendar .release-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html body #view-calendar .calendar-timetable {
  min-width: 0;
  display: grid;
  grid-template-columns: var(--cal-time-col) repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(var(--cal-row), auto);
  gap: 0 6px;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html body #view-calendar .calendar-time-label {
  grid-column: 1;
  align-self: start;
  padding: 16px 16px 0 0;
  color: #8f8a8a;
  font-size: 12.5px;
  text-align: right;
  white-space: nowrap;
}

html body #view-calendar .calendar-time-line {
  grid-column: 2 / -1;
  align-self: start;
  height: 1px;
  margin-left: -8px;
  background: var(--cal-line);
}

html body #view-calendar .calendar-timeline-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 0 0;
}

html body #view-calendar .calendar-timeline-card {
  position: relative;
  min-width: 0;
  height: var(--cal-card-h);
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--cal-border);
  border-radius: 12px;
  background: var(--cal-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  cursor: pointer;
}

html body #view-calendar .calendar-timeline-card:hover {
  border-color: color-mix(in srgb, var(--cal-crimson-line) 34%, var(--cal-border));
}

html body #view-calendar .calendar-timeline-thumb {
  position: relative;
  width: 50px;
  height: 100%;
  display: block;
  overflow: hidden;
  background: #241a1a;
}

html body #view-calendar .calendar-timeline-thumb img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border-radius: 0 !important;
  object-fit: cover !important;
}

html body #view-calendar .calendar-provider-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #b3151b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

html body #view-calendar .calendar-provider-badge img {
  width: 18px !important;
  height: 18px !important;
  border-radius: 5px !important;
  object-fit: cover !important;
}

html body #view-calendar .calendar-timeline-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 8px 8px 9px;
}

html body #view-calendar .calendar-timeline-copy strong {
  overflow: hidden;
  color: var(--cal-text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #view-calendar .calendar-timeline-copy small {
  overflow: hidden;
  color: #a8a2a2;
  font-size: 11.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #view-calendar .calendar-timeline-clock {
  margin-top: auto;
  display: flex !important;
  align-items: center;
  gap: 5px;
  padding-right: 22px;
}

html body #view-calendar .calendar-timeline-clock svg {
  width: 12.5px;
  height: 12.5px;
  flex: 0 0 12.5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body #view-calendar :where(.calendar-timeline-save, .calendar-agenda-save) {
  width: 22px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #6f6767 !important;
  box-shadow: none !important;
}

html body #view-calendar .calendar-timeline-save {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 2;
  width: 20px;
  height: 20px;
}

html body #view-calendar :where(.calendar-timeline-save, .calendar-agenda-save):hover {
  color: var(--cal-crimson-line) !important;
}

html body #view-calendar :where(.calendar-timeline-save, .calendar-agenda-save).is-saved {
  color: var(--cal-crimson-bright) !important;
}

html body #view-calendar :where(.calendar-timeline-save, .calendar-agenda-save) svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body #view-calendar :where(.calendar-timeline-save, .calendar-agenda-save).is-saved svg {
  fill: currentColor;
}

/* Loading skeleton keeps the timetable geometry stable. */
html body #view-calendar .calendar-timetable.is-loading .calendar-time-label {
  color: transparent;
  background: linear-gradient(90deg, transparent 0 8px, rgba(255, 255, 255, .05) 8px 100%);
  background-clip: content-box;
}

html body #view-calendar .calendar-timeline-card.is-skeleton {
  border-color: rgba(255, 255, 255, .04);
  background: #191414;
  box-shadow: none;
  cursor: default;
}

html body #view-calendar .calendar-timeline-card.is-skeleton .calendar-timeline-thumb {
  background: #221919;
}

html body #view-calendar .calendar-timeline-card.is-skeleton .calendar-timeline-copy strong,
html body #view-calendar .calendar-timeline-card.is-skeleton .calendar-timeline-copy small {
  height: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .05);
}

html body #view-calendar .calendar-timeline-card.is-skeleton .calendar-timeline-copy small {
  width: 54%;
}

/* Upcoming panel ----------------------------------------------------------- */

html body #view-calendar .calendar-upcoming-strip {
  flex: 0 0 auto;
  min-width: 0;
  height: 189px;
  margin: 12px 0 0;
  padding: 24px !important;
  border: 1px solid var(--cal-border) !important;
  border-radius: 14px !important;
  background: var(--cal-panel) !important;
  box-shadow: none !important;
}

html body #view-calendar .calendar-upcoming-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 21px;
}

html body #view-calendar .calendar-upcoming-head h3 {
  margin: 0 !important;
  color: var(--cal-text) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em;
}

html body #view-calendar .calendar-upcoming-all {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--cal-crimson-line);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

html body #view-calendar .calendar-upcoming-all:hover {
  text-decoration: underline;
}

html body #view-calendar .calendar-upcoming-rail {
  height: 108px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 212px;
  grid-template-columns: none;
  justify-content: start;
  gap: 28px;
  margin: 12px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

html body #view-calendar .calendar-upcoming-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html body #view-calendar .calendar-upcoming-card {
  min-width: 0;
  height: 108px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--cal-border);
  border-radius: 12px;
  background: var(--cal-card);
  color: var(--cal-text);
  text-decoration: none;
}

html body #view-calendar .calendar-upcoming-card:hover {
  border-color: color-mix(in srgb, var(--cal-crimson-line) 32%, var(--cal-border));
}

html body #view-calendar .calendar-upcoming-thumb {
  width: 68px;
  height: 100%;
  display: block;
  overflow: hidden;
  background: #241a1a;
}

html body #view-calendar .calendar-upcoming-card img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border-radius: 0 !important;
  object-fit: cover !important;
}

html body #view-calendar .calendar-upcoming-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 12px 10px 13px;
}

html body #view-calendar .calendar-upcoming-card strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #view-calendar .calendar-upcoming-card small,
html body #view-calendar .calendar-upcoming-empty {
  overflow: hidden;
  color: #a8a2a2;
  font-size: 12.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #view-calendar .calendar-upcoming-provider {
  height: 22px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin: 5px 0 0;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  color: #cdc7c7;
  font-size: 11.5px;
}

html body #view-calendar .calendar-upcoming-provider img {
  width: 15px !important;
  height: 15px !important;
  border-radius: 4px !important;
  object-fit: cover !important;
}

/* Filter drawer ------------------------------------------------------------ */

html body #calendarFilters[id].calendar-filters {
  display: flex !important;
  flex-direction: column;
  padding: 22px !important;
  overflow: hidden !important;
  border: 1px solid var(--cal-drawer-line) !important;
  border-radius: 14px !important;
  background: var(--cal-drawer-bg) !important;
  box-shadow: none !important;
}

html body #calendarFilters[id].calendar-filters .calendar-drawer-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html body #calendarFilters[id].calendar-filters .calendar-drawer-head h3 {
  margin: 0 !important;
  color: var(--cal-text) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

html body #calendarFilters[id].calendar-filters .filter-toggle {
  width: 30px;
  min-height: 0;
  display: grid !important;
  place-items: center;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #cdc7c7 !important;
  box-shadow: none !important;
}

html body #calendarFilters[id].calendar-filters .filter-toggle:hover {
  color: var(--cal-text) !important;
}

html body #calendarFilters[id].calendar-filters .filter-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

html body #calendarFilters[id].calendar-filters .filter-toggle-state {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html body #calendarFilters[id].calendar-filters .filter-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  gap: 11px;
  margin: 20px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

html body #calendarFilters[id].calendar-filters .filter-body::-webkit-scrollbar {
  width: 0;
}

html body #calendarFilters[id].calendar-filters:has(.ar-select.is-open),
html body #calendarFilters[id].calendar-filters .filter-body:has(.ar-select.is-open) {
  overflow: visible !important;
}

html body #calendarFilters[id].calendar-filters .calendar-filter-section {
  display: grid;
  gap: 7px;
  margin: 0;
}

html body #calendarFilters[id].calendar-filters .calendar-filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html body #calendarFilters[id].calendar-filters .calendar-filter-label {
  display: block;
  margin: 0;
  color: #9a9494;
  font-size: 12px;
  font-weight: 500;
}

html body #calendarFilters[id].calendar-filters label {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  color: #9a9494 !important;
  font-size: 12px !important;
}

html body #calendarFilters[id].calendar-filters small {
  display: block;
  margin: 0;
  color: var(--cal-dim) !important;
  font-size: 10.5px !important;
  line-height: 1.35;
}

html body #calendarFilters[id].calendar-filters .calendar-filter-section.is-chip-driven select,
html body #calendarFilters[id].calendar-filters .calendar-filter-section.is-chip-driven > .ar-select {
  display: none !important;
}

html body #calendarFilters[id].calendar-filters .ar-select {
  width: 100%;
}

html body #calendarFilters[id].calendar-filters .ar-select .ar-select-btn {
  width: 100% !important;
  min-height: 0 !important;
  height: 38px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  border-radius: 9px !important;
  background: #1a1516 !important;
  color: #ded8d8 !important;
  box-shadow: none !important;
  font-size: 13.5px !important;
}

html body #calendarFilters[id].calendar-filters .ar-select-btn:hover {
  border-color: color-mix(in srgb, var(--cal-crimson-line) 30%, transparent);
}

html body #calendarFilters[id].calendar-filters .calendar-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

html body #calendarFilters[id].calendar-filters .calendar-chip {
  min-height: 0;
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: var(--cal-chip);
  color: #c9c3c3;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

html body #calendarFilters[id].calendar-filters .calendar-chip:hover {
  border-color: color-mix(in srgb, var(--cal-crimson-line) 34%, transparent);
  color: var(--cal-text);
}

html body #calendarFilters[id].calendar-filters .calendar-chip.is-active {
  border-color: transparent;
  background: var(--cal-crimson-soft);
  color: #fff;
}

html body #calendarFilters[id].calendar-filters .calendar-chip.is-extra {
  display: none;
}

html body #calendarFilters[id].calendar-filters .calendar-chip-row.show-all .calendar-chip.is-extra {
  display: inline-flex;
}

html body #calendarFilters[id].calendar-filters .calendar-chip img {
  width: 16px !important;
  height: 16px !important;
  border-radius: 4px !important;
  object-fit: cover !important;
}

html body #calendarFilters[id].calendar-filters .calendar-chip-more {
  min-height: 0;
  height: 30px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--cal-crimson-line);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

html body #calendarFilters[id].calendar-filters .calendar-chip-note {
  color: var(--cal-dim);
  font-size: 11.5px;
}

html body #calendarFilters[id].calendar-filters .calendar-apply-filters {
  flex: 0 0 auto;
  height: 45px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 18px 0 0;
  border: 0;
  border-radius: 11px;
  background: var(--cal-crimson-fill);
  color: #fff;
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

html body #calendarFilters[id].calendar-filters .calendar-apply-filters:hover {
  background: color-mix(in srgb, var(--cal-crimson-fill) 84%, #fff);
}

html body #calendarFilters[id].calendar-filters .calendar-apply-filters svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

/* Agenda list (Liste mode on desktop, default on mobile) ------------------- */

html body #view-calendar .calendar-agenda-list {
  display: grid;
  gap: 8px;
  padding: 12px 0 4px;
}

html body #view-calendar .calendar-agenda-list > h3 {
  margin: 8px 0 2px !important;
  color: var(--cal-text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

html body #view-calendar .calendar-agenda-card {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 62px 54px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 4px 0;
  overflow: hidden;
  border: 1px solid var(--cal-border);
  border-radius: 12px;
  background: var(--cal-card);
  cursor: pointer;
}

html body #view-calendar .calendar-agenda-card > time {
  color: #a8a2a2;
  font-size: 12.5px;
  text-align: center;
}

html body #view-calendar .calendar-agenda-card > img {
  width: 54px !important;
  height: 54px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
}

html body #view-calendar .calendar-agenda-card > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

html body #view-calendar .calendar-agenda-card strong {
  overflow: hidden;
  color: var(--cal-text);
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #view-calendar .calendar-agenda-card small {
  color: #a8a2a2;
  font-size: 12px;
}

/* Desktop dashboard shell: the page fills the viewport, the timetable scrolls
   inside it. The document scrollbar is hidden on this view only so the drawer
   keeps the board's 1672px geometry; the footer stays reachable by scrolling. */
@media (min-width: 960px) {
  html:has(body[data-active-view="calendar"]) {
    scrollbar-width: none;
  }

  html:has(body[data-active-view="calendar"])::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  html:not(.native-app) body[data-active-view="calendar"] .content-topbar,
  html:not(.native-app) body[data-active-view="search"] .content-topbar {
    display: none !important;
  }

  /* Discover uses the board insets, but keeps the normal document scroll. */
  html:not(.native-app) body[data-active-view="search"] .shell {
    padding: 20px 28px 20px 38px !important;
  }

  /* Detailansicht: Board-Insets 30/38, Topbar 36 hoch, Hero beginnt bei y=64. */
  html:not(.native-app) body[data-active-view="detail"] .shell {
    padding: 16px 38px 24px 30px !important;
  }

  html:not(.native-app) body[data-active-view="detail"] .content-topbar {
    height: 36px !important;
    margin: 0 0 12px !important;
  }

  html:not(.native-app) body[data-active-view="detail"] .content-topbar-search {
    width: min(595px, 100%);
    margin-left: 0;
  }

  html:not(.native-app) body[data-active-view="detail"] .content-topbar-search input {
    height: 36px;
    min-height: 36px;
    border-radius: 10px !important;
  }

  html:not(.native-app) body[data-active-view="calendar"] .shell {
    height: 100dvh !important;
    min-height: 0 !important;
    padding: 20px 28px 30px 38px !important;
  }

  /* Only the active view may become a flex column - .view stays display:none. */
  html body #view-calendar.active {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  html body #view-calendar .calendar-stage {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
  }

  html body #view-calendar:has(#calendarFilters[id].calendar-filters.is-open) {
    padding-right: calc(var(--cal-drawer-w) + var(--cal-drawer-gap));
  }

  html body #calendarFilters[id].calendar-filters {
    position: absolute !important;
    top: 75px !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 4;
    width: var(--cal-drawer-w) !important;
  }

  html body #calendarFilters[id].calendar-filters:not(.is-open) {
    display: none !important;
  }

  /* The first rendered chip is the mobile-only "Diese Woche" button, so the
     Monday column has to be pinned next to the time axis. */
  html body #view-calendar .weekday-dock .day-chip:nth-child(2) {
    grid-column: 2;
  }
}

@media (max-width: 959px) {
  html body #view-calendar .calendar-mobile-filter-button {
    display: inline-flex !important;
  }

  html body #view-calendar .calendar-week-content.page-title-row {
    min-height: 42px;
    justify-content: flex-end !important;
    margin-bottom: 10px !important;
  }

  html body #view-calendar .calendar-week-content.page-title-row > div:first-child {
    display: none;
  }

  html body #view-calendar .calendar-stage {
    display: block !important;
  }

  html body #view-calendar .weekday-dock {
    width: calc(100vw - 24px);
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px !important;
    overflow: visible;
    padding-bottom: 8px !important;
  }

  html body #view-calendar .day-chip {
    min-width: 0;
    min-height: 48px !important;
    padding: 5px !important;
  }

  html body #view-calendar .day-chip:first-child {
    grid-column: 1 / -1;
    min-width: 0;
    min-height: 38px !important;
    justify-content: center;
  }

  html body #view-calendar .day-chip:first-child span {
    display: none;
  }

  html body #view-calendar .calendar-results {
    margin-top: 10px;
  }

  html body #view-calendar .results-toolbar {
    min-height: 24px !important;
    margin-bottom: 5px !important;
    display: flex !important;
  }

  html body #calendarFilters[id].calendar-filters {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 82 !important;
    width: 100% !important;
    max-height: 82dvh;
    display: block !important;
    padding: 16px !important;
    overflow-y: auto !important;
    border-width: 1px 0 0 !important;
    border-radius: 16px 16px 0 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(105%);
    transition: opacity .2s var(--md-motion), visibility .2s var(--md-motion), transform .2s var(--md-motion);
  }

  html body #calendarFilters[id].calendar-filters.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  html body #calendarFilters[id].calendar-filters .calendar-drawer-head {
    position: sticky;
    top: -16px;
    z-index: 2;
    min-height: 48px;
    margin: -16px -16px 14px;
    padding: 0 16px;
    background: var(--cal-drawer-bg);
  }

  html body #calendarFilters[id].calendar-filters .filter-body {
    overflow: visible;
  }

  html body #view-calendar .calendar-controls {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
  }

  html body #view-calendar .calendar-mode-toggle {
    margin-left: 0;
  }

  html body #view-calendar .weekday-dock {
    height: auto;
    padding: 0 0 8px !important;
  }

  html body #view-calendar .day-chip {
    height: auto;
    min-height: 48px !important;
    flex-direction: column;
    gap: 3px;
    padding: 5px !important;
    border-radius: 8px !important;
  }

  html body #view-calendar .day-chip[data-day="week"] {
    grid-column: 1 / -1;
    min-height: 38px !important;
    display: flex !important;
    flex-direction: row;
  }

  html body #view-calendar .day-chip[data-day="week"] span {
    display: none;
  }

  html body #view-calendar .day-chip[data-day="week"].is-marked::after {
    display: none;
  }

  html body #view-calendar .calendar-head-actions {
    flex-wrap: nowrap !important;
  }

  html body #view-calendar .day-chip strong,
  html body #view-calendar .day-chip span {
    font-size: 12px !important;
  }

  html body #view-calendar .day-chip.is-marked::after {
    width: 70%;
    bottom: -8px;
  }

  html body #view-calendar .release-grid {
    overflow: visible;
  }

  html body #view-calendar .calendar-upcoming-strip {
    height: auto;
    padding: 13px !important;
  }

  html body #view-calendar .calendar-upcoming-rail {
    height: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 150px);
  }

  html body #view-calendar .calendar-upcoming-card {
    height: auto;
    min-height: 74px;
    grid-template-columns: 54px minmax(0, 1fr);
  }

  html body #view-calendar .calendar-upcoming-thumb {
    width: 54px;
  }

  html body #view-calendar .calendar-upcoming-strip {
    margin-top: 12px;
  }

  html body #view-calendar .calendar-upcoming-rail {
    grid-template-columns: repeat(4, 150px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  html body #view-calendar .calendar-upcoming-rail::-webkit-scrollbar {
    display: none;
  }
}


/* Shared-shell flow invariants and select-proxy alignment. */
html body #view-profile .profile-gm-hero > .avatar-frame,
html body #view-profile .profile-gm-hero .profile-main-title,
html body #view-profile .profile-gm-hero #profileSub,
html body #view-profile .profile-gm-hero > .profile-actions {
  grid-area: auto !important;
}

html body #view-profile .profile-gm-hero #profileSub {
  align-self: auto !important;
  margin-top: 11px !important;
  color: #c8bec1 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

html body #view-profile .profile-gm-hero > .profile-actions {
  width: auto !important;
  display: flex !important;
  grid-template-columns: none !important;
  align-self: end !important;
  gap: 10px !important;
  margin-left: 24px !important;
}

html body #view-profile [data-mobile-profile-pane]:not([hidden]) {
  display: block !important;
}

html body #view-profile .profile-gm-panel.profile-rated-band,
html body #view-profile .profile-gm-panel.release-reminders-band {
  margin-top: 0 !important;
}

html body #view-profile .profile-gm-rating-toolbar {
  margin-top: 9px;
}

html body #view-profile .profile-gm-rating-toolbar label {
  margin: 0 !important;
}

html body #view-profile .profile-gm-rating-toolbar .profile-gm-rating-sort {
  margin-left: auto !important;
}

html body #view-profile .profile-gm-rating-toolbar .ar-select,
html body #view-profile .profile-gm-rating-toolbar .ar-select-btn {
  min-height: 34px !important;
  height: 34px !important;
}

html body #view-profile .profile-gm-tabs.profile-hub-tabs {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 0 !important;
}

@media (max-width: 760px) {
  html body #view-profile .profile-gm-hero > .profile-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    margin-left: 0 !important;
  }
}
