:root {
  --bg: #070303;
  --bg-2: #100606;
  --panel: #170909;
  --panel-2: #21100c;
  --ink: #fff4e1;
  --muted: #bfae9a;
  --dim: #806f65;
  --red: #e53725;
  --red-2: #8f120d;
  --gold: #f4b95f;
  --gold-2: #a66a25;
  --line: rgba(255, 224, 177, .16);
  --line-red: rgba(229, 55, 37, .38);
  --shadow: 0 22px 70px rgba(0, 0, 0, .48);
  --sharp: 0px;
  --font-display: "Bahnschrift", "Arial Narrow", "Franklin Gothic Condensed", Impact, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(229, 55, 37, .24), transparent 32rem),
    radial-gradient(circle at 88% 20%, rgba(244, 185, 95, .12), transparent 28rem),
    linear-gradient(135deg, #050202 0%, #100404 48%, #070303 100%);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
a { color: inherit; }
a.brand, a.nav-link, a.mobile-tab, a.solid-action, a.ghost-action, a.text-action, a.small-btn, a[data-detail] { text-decoration: none; cursor: pointer; }
a.solid-action, a.ghost-action, a.small-btn { display: inline-flex; align-items: center; justify-content: center; }
img { max-width: 100%; display: block; }

.app-splash { display: none; }
.native-app .app-splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: radial-gradient(circle at 50% 43%, rgba(173, 20, 13, .28), transparent 34%), #070303;
  transition: opacity .38s ease, visibility .38s ease;
}
.native-app .app-splash.is-leaving { opacity: 0; visibility: hidden; }
.app-splash-radar {
  position: relative;
  width: clamp(174px, 45vw, 212px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
  animation: app-radar-breathe 1.55s cubic-bezier(.45, 0, .2, 1) infinite;
}
.app-splash-radar::before,
.app-splash-radar::after,
.app-splash-pulse {
  content: "";
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(229, 55, 37, .55);
  border-radius: 50%;
  opacity: 0;
  animation: app-radar-pulse 1.35s ease-out infinite;
}
.app-splash-radar::after { animation-delay: .42s; }
.app-splash-pulse { animation-delay: .84s; }
.app-splash-radar img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 9px rgba(0,0,0,.5)) drop-shadow(0 0 9px rgba(229,55,37,.48));
  animation: app-logo-glow 1.55s cubic-bezier(.45, 0, .2, 1) infinite alternate;
}
.app-splash-sweep {
  position: absolute;
  z-index: 3;
  left: 24.5%;
  top: 20%;
  width: 51%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from -34deg, transparent 0 72%, rgba(255,38,18,.08) 82%, rgba(255,58,28,.72) 96%, rgba(255,220,195,.92) 98.5%, transparent 100%);
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 7px rgba(255,35,16,.72));
  animation: app-radar-scan 2.1s linear infinite;
}
.app-splash-ping {
  position: absolute;
  z-index: 4;
  left: 59.5%;
  top: 53.7%;
  width: 4.6%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff1df;
  box-shadow: 0 0 5px 2px #ff3a22, 0 0 15px 7px rgba(255,31,14,.58);
  animation: app-radar-ping 1.05s ease-in-out infinite;
}
.app-splash > strong { font-family: var(--font-display); font-size: clamp(25px, 7vw, 34px); letter-spacing: .15em; text-transform: uppercase; }
.app-splash-caption { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
@keyframes app-radar-pulse { 0% { transform: scale(.68); opacity: .8; } 100% { transform: scale(1.38); opacity: 0; } }
@keyframes app-logo-glow { from { filter: drop-shadow(0 0 3px rgba(229,55,37,.35)); } to { filter: drop-shadow(0 0 22px rgba(255,40,23,.95)) brightness(1.18); } }
@keyframes app-radar-scan { to { transform: rotate(360deg); } }
@keyframes app-radar-ping { 0%, 100% { transform: scale(.7); opacity: .58; } 50% { transform: scale(1.28); opacity: 1; } }
@keyframes app-radar-breathe { 0%, 100% { transform: scale(.985) translateY(1px); } 50% { transform: scale(1.018) translateY(-2px); } }

.native-app body { min-height: 100dvh; overscroll-behavior-y: none; }
.native-app .topbar {
  height: calc(70px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}
.native-app .mobile-tabs {
  min-height: calc(68px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.native-app .site-footer { padding-bottom: max(24px, calc(84px + env(safe-area-inset-bottom, 0px))); }

@media (max-width: 380px) {
  .native-app .topbar { padding-inline: 10px; gap: 7px; }
  .native-app .brand { gap: 7px; min-width: 0; }
  .native-app .brand-mark { width: 40px; height: 40px; flex: 0 0 40px; }
  .native-app .brand-text strong { font-size: 18px; letter-spacing: .09em; }
  .native-app .top-account-button { min-height: 38px; padding-inline: 10px; font-size: 10px; }
  .native-app .hero-actions > * { width: 100%; }
}


/* V2.4.120 – App-Bereich bereinigt und App-Statistik in Profil > Statistik integriert */
.app-profile-statistics-panel { margin-top: 24px; }
.app-profile-statistics-head { align-items: flex-start; gap: 16px; }
.app-profile-statistics-head .small-btn { flex: 0 0 auto; }
.app-profile-statistics-panel > .app-statistics-grid > .content-band { margin: 0; }

@media (max-width: 760px) {
  .app-profile-statistics-head { display: grid; }
  .app-profile-statistics-head .small-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash-radar::before, .app-splash-radar::after, .app-splash-pulse, .app-splash-radar img, .app-splash-sweep, .app-splash-ping, .app-splash-radar { animation: none; }
}

/* Native tablet portrait: give brand, account and navigation their own stable rows. */
@media (min-width: 761px) and (max-width: 1180px) and (orientation: portrait) {
  .native-app .topbar {
    height: auto;
    min-height: calc(124px + env(safe-area-inset-top, 0px));
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "navigation navigation";
    align-content: center;
    align-items: center;
    gap: 10px 18px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) clamp(18px, 3vw, 34px) 12px;
    overflow: visible;
  }
  .native-app .topbar .brand {
    grid-area: brand;
    min-width: 0;
    max-width: 100%;
    align-self: center;
  }
  .native-app .topbar .brand-mark {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
  }
  .native-app .topbar .brand-text {
    min-width: 0;
  }
  .native-app .topbar .brand-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(19px, 2.7vw, 23px);
  }
  .native-app .topbar .top-actions {
    grid-area: actions;
    grid-column: auto;
    justify-self: end;
    min-width: 0;
  }
  .native-app .topbar .top-account-button {
    min-height: 42px;
    max-width: min(190px, 28vw);
    padding-inline: clamp(12px, 2vw, 18px);
    overflow: hidden;
  }
  .native-app .topbar .top-account-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .native-app .topbar .nav-strip {
    grid-area: navigation;
    grid-column: auto;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    justify-content: center;
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .native-app .topbar .nav-link {
    flex: 0 1 auto;
    min-width: max-content;
    padding: 10px clamp(8px, 1.25vw, 13px);
    font-size: clamp(10px, 1.35vw, 12px);
    letter-spacing: .055em;
  }
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  z-index: 0;
  background-image:
    linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.07) 39%, transparent 40% 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 82px;
  padding: 0 clamp(16px, 4vw, 56px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  background: rgba(7, 3, 3, .86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-red);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), transparent);
  opacity: .55;
}

.brand {
  border: 0;
  background: transparent;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--red), #5b0705);
  border: 1px solid rgba(244,185,95,.48);
  box-shadow: 9px 9px 0 rgba(0,0,0,.35), inset 0 0 22px rgba(255,255,255,.08);
  font-size: 28px;
  font-weight: 900;
}

.brand-text strong,
.brand-text small {
  display: block;
  letter-spacing: .14em;
  line-height: 1;
  font-family: var(--font-display);
}
.brand-text strong { font-size: 23px; }
.brand-text small { color: var(--gold); margin-top: 4px; font-size: 10px; }

.nav-strip {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.035);
  padding: 7px;
  border: 1px solid var(--line);
  max-width: 100%;
  overflow: auto;
  scrollbar-width: none;
}
.nav-strip::-webkit-scrollbar { display: none; }

.nav-link {
  position: relative;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.nav-link.active,
.nav-link:hover {
  background: linear-gradient(135deg, var(--red-2), var(--red));
  color: white;
}

.top-actions { display: flex; gap: 10px; align-items: center; }

.solid-action,
.ghost-action,
.text-action,
.small-btn {
  border: 1px solid transparent;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.solid-action {
  background: linear-gradient(135deg, var(--red), #aa160e 70%, #5c0704);
  color: #fff8eb;
  border-color: rgba(244,185,95,.4);
  box-shadow: 7px 7px 0 rgba(0,0,0,.32);
}
.solid-action:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(0,0,0,.34); }
.ghost-action {
  background: rgba(255,255,255,.04);
  border-color: var(--line);
  color: var(--ink);
}
.ghost-action:hover { border-color: var(--gold); background: rgba(244,185,95,.08); }
.text-action {
  border: 0;
  background: transparent;
  color: var(--gold);
  padding: 0;
  min-height: auto;
}
.small-btn {
  min-height: 34px;
  padding: 0 11px;
  background: rgba(255,255,255,.05);
  border-color: var(--line);
}
.small-btn:disabled { opacity: .36; cursor: not-allowed; }
.large { min-height: 52px; padding-inline: 20px; }
.full { width: 100%; }

.shell {
  position: relative;
  z-index: 1;
  width: min(1540px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 110px;
}
.view { display: none; animation: viewIn .24s ease both; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
}
.hero-panel {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(33, 8, 8, .98), rgba(14,4,4,.92));
  border: 1px solid var(--line-red);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(330px, .85fr) minmax(300px, 1fr);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(229,55,37,.12) 0 20%, transparent 20% 100%),
    repeating-linear-gradient(90deg, transparent 0 68px, rgba(255,255,255,.025) 68px 69px);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 5vw, 64px);
  align-self: end;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 950;
}
.section-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--red);
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.02em; text-transform: uppercase; }
.hero-copy .hero-main-title {
  font-size: clamp(48px, 7.3vw, 112px);
  line-height: .87;
  margin: 18px 0;
  max-width: 760px;
}
.hero-copy p,
.page-title-row p,
.watch-box p,
.auth-split p { color: var(--muted); line-height: 1.65; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-art {
  position: relative;
  min-height: 480px;
  isolation: isolate;
}
.hero-art .hero-poster {
  position: absolute;
  width: min(58%, 330px);
  aspect-ratio: 2/3;
  object-fit: cover;
  right: 11%;
  bottom: 40px;
  border: 1px solid rgba(244,185,95,.38);
  box-shadow: -18px 18px 0 rgba(0,0,0,.42), 0 26px 70px rgba(0,0,0,.5);
  transform: rotate(2deg);
}
.hero-art .hero-banner {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .36;
  filter: saturate(1.18) contrast(1.08);
  z-index: -2;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--panel) 0%, transparent 52%), linear-gradient(0deg, #080303 0%, transparent 60%);
  z-index: -1;
}

.pulse-card, .watch-box, .content-band, .search-filter-card, .calendar-filters, .profile-card, .profile-form-card {
  background: linear-gradient(160deg, rgba(32,12,9,.92), rgba(12,5,5,.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pulse-card { padding: 26px; min-height: 520px; }
.pulse-card h2, .band-head h2, .watch-box h2 { font-size: 32px; margin-top: 8px; }
.release-stack { display: grid; gap: 12px; margin-top: 22px; }
.release-stack.compact { max-height: 405px; overflow: auto; padding-right: 4px; }

.release-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 11px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.release-item::before { content: ""; position: absolute; inset-block: 0; left: 0; width: 3px; background: var(--red); }
.release-thumb { width: 58px; aspect-ratio: 2/3; object-fit: cover; background: #250e0d; }
.release-title { font-weight: 950; line-height: 1.2; }
.release-meta { color: var(--muted); font-size: 12px; margin-top: 5px; }
.countdown { color: var(--gold); font-size: 12px; font-weight: 950; margin-top: 8px; letter-spacing: .04em; }

.content-band { margin-top: 20px; padding: 24px; }
.band-head, .page-title-row, .results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.band-head.flush { margin-bottom: 18px; }
.poster-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(178px, 220px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}
.poster-card {
  position: relative;
  min-height: 318px;
  overflow: hidden;
  background: #1a0907;
  border: 1px solid rgba(255,255,255,.08);
  scroll-snap-align: start;
}
.poster-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .25s ease; }
.poster-card:hover img { transform: scale(1.045); }
.poster-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.92) 0 28%, transparent 70%);
}
.poster-info { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; }
.poster-info strong { display: block; line-height: 1.15; }
.poster-info span { color: var(--gold); font-size: 12px; font-weight: 900; }

.split-band { display: grid; grid-template-columns: 1fr 380px; gap: 18px; background: transparent; box-shadow: none; border: 0; padding: 0; }
.split-band.account-promo-hidden { grid-template-columns: minmax(0, 1fr); }
.split-band.account-promo-hidden > .watch-box:not(.accent-box) { width: 100%; }
.watch-box { padding: 24px; }
.accent-box { background: linear-gradient(135deg, rgba(117,14,9,.86), rgba(33,10,7,.96)); border-color: var(--line-red); }
.mini-list { display: grid; gap: 10px; }
.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.025);
  line-height: 1.55;
}

.page-title-row { align-items: center; margin-bottom: 24px; }
.page-title-row .page-main-title { font-size: clamp(42px, 6vw, 84px); line-height: .9; margin-top: 8px; }
.title-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.calendar-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas:
    "days days"
    "results filters";
  gap: 18px;
  align-items: start;
}
.weekday-dock {
  grid-area: days;
  display: grid;
  grid-template-columns: repeat(8, minmax(104px, 1fr));
  gap: 8px;
}
.day-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 14px 8px;
  text-align: left;
  min-height: 72px;
}
.day-chip.active { border-color: var(--red); background: linear-gradient(135deg, rgba(229,55,37,.22), rgba(244,185,95,.08)); }
.day-chip strong { display: block; text-transform: uppercase; font-family: var(--font-display); font-size: 20px; }
.day-chip span { color: var(--muted); font-size: 12px; }

.calendar-filters, .search-filter-card { padding: 20px; position: sticky; top: 104px; }
.calendar-filters { grid-area: filters; }
.calendar-filters h3, .search-filter-card h3 { font-size: 26px; margin-bottom: 18px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--ink);
  min-height: 44px;
  padding: 0 12px;
  outline: none;
}
textarea { min-height: 120px; padding: 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,185,95,.08); }

.calendar-results { grid-area: results; min-width: 0; }
.pager { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 900; }
.release-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.release-card {
  display: grid;
  grid-template-columns: 114px 1fr;
  min-height: 174px;
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.09);
  overflow: hidden;
  position: relative;
}
.release-card:hover { border-color: rgba(244,185,95,.42); }
.release-card img { width: 114px; height: 100%; object-fit: cover; }
.release-card-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.release-card h3 { font-size: 22px; line-height: 1; text-transform: none; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { color: var(--gold); border: 1px solid rgba(244,185,95,.22); background: rgba(244,185,95,.06); padding: 4px 7px; font-size: 11px; font-weight: 900; }
.card-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }

.search-board { display: grid; grid-template-columns: 1fr 310px; gap: 18px; align-items: start; }
.search-main { min-width: 0; }
.search-input-label { margin-bottom: 16px; }
#searchInput { min-height: 62px; font-size: 20px; border-color: var(--line-red); background: rgba(0,0,0,.32); }
.search-results { display: grid; gap: 12px; }
.search-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  padding: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.search-row img { width: 92px; aspect-ratio: 2/3; object-fit: cover; }
.search-row h3 { font-size: 26px; text-transform: none; line-height: 1.05; }
.search-row p { color: var(--muted); line-height: 1.45; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-row-actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; min-width: 146px; }

.library-controls {
  display: grid;
  grid-template-columns: 210px 220px 220px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
  align-items: end;
}
.library-control-field {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.library-control-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.library-control-field select,
.library-control-field input {
  min-height: 46px;
}
.list-tabs { display: flex; gap: 8px; overflow: auto; padding-bottom: 12px; margin-bottom: 8px; }
.list-tab {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}
.list-tab.active { color: white; border-color: var(--red); background: rgba(229,55,37,.2); }
.library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.library-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.library-card .poster-wrap { position: relative; aspect-ratio: 2/3; background: #140807; }
.library-card img { width: 100%; height: 100%; object-fit: cover; }
.library-card .lib-body { padding: 14px; }
.library-card h3 { font-size: 22px; line-height: 1; text-transform: none; }
.progress-track { height: 8px; background: rgba(255,255,255,.08); margin: 12px 0 8px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); width: 0; }
.lib-meta { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }

.library-list { display: block; }
.library-list-shell {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  overflow: hidden;
}
.library-list-head,
.library-list-row {
  display: grid;
  grid-template-columns: minmax(320px, 2.1fr) 1fr 1.15fr .9fr 1.1fr .9fr;
  align-items: center;
}
.library-list-head {
  padding: 14px 18px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.library-list-body { display: grid; }
.library-list-row {
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.library-list-row:last-child { border-bottom: 0; }
.library-list-anime { display: flex; gap: 14px; align-items: center; min-width: 0; }
.library-list-thumb {
  width: 58px;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255,255,255,.1);
  background: #140807;
  overflow: hidden;
  flex: 0 0 auto;
}
.library-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.library-list-main { min-width: 0; display: grid; gap: 6px; }
.library-list-title {
  width: fit-content;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  line-height: .96;
  text-transform: none;
}
.library-list-title:hover { color: var(--gold); }
.library-list-sub { color: var(--muted); font-size: 12px; }
.library-list-cell { min-width: 0; color: var(--ink); }
.library-list-cell strong { font-size: 15px; }
.library-list-cell small { color: var(--muted); }
.status-pill, .list-name-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  font-weight: 800;
}
.list-name-badge { white-space: normal; line-height: 1.25; }
.progress-track.small { margin: 8px 0 4px; height: 6px; }
.tag-row.compact { margin-top: 2px; }
.tag-row.compact .tag { font-size: 10px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 24px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--gold); }
.stat-card span { color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.genre-bars { display: grid; gap: 12px; }
.genre-bar { display: grid; grid-template-columns: 170px 1fr 36px; gap: 12px; align-items: center; color: var(--muted); }
.genre-bar-fill { height: 12px; background: rgba(255,255,255,.08); overflow: hidden; }
.genre-bar-fill i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); }

.profile-shell { display: grid; grid-template-columns: 390px 1fr; gap: 18px; align-items: start; }
.profile-card, .profile-form-card { padding: 28px; }
.avatar-frame {
  width: 132px; height: 132px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), #3b0706);
  border: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: 72px;
  overflow: hidden;
}
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .profile-main-title { margin-top: 20px; font-size: 52px; }
.profile-card p { color: var(--muted); line-height: 1.55; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.detail-dialog, .auth-dialog {
  width: min(1060px, calc(100vw - 28px));
  max-height: min(920px, calc(100vh - 28px));
  border: 1px solid var(--line-red);
  padding: 0;
  background: #090303;
  color: var(--ink);
  box-shadow: 0 36px 100px rgba(0,0,0,.78);
}
dialog::backdrop { background: rgba(0,0,0,.74); backdrop-filter: blur(7px); }
.modal-close {
  position: absolute;
  right: 12px; top: 12px;
  z-index: 6;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.58);
  font-size: 26px;
}
.detail-hero {
  min-height: 390px;
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  padding: 62px 34px 26px;
  overflow: hidden;
}
.detail-hero::before { content:""; position:absolute; inset:0; background: linear-gradient(0deg,#090303 0%,rgba(9,3,3,.74) 42%,rgba(9,3,3,.45)); z-index:0; }
.detail-hero .backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(1.2); }
.detail-hero > *:not(.backdrop) { position: relative; z-index: 1; }
.detail-poster { width: 240px; aspect-ratio: 2/3; object-fit: cover; border: 1px solid rgba(244,185,95,.4); box-shadow: -13px 13px 0 rgba(0,0,0,.45); }
.detail-title h1 { font-size: clamp(42px, 6vw, 88px); line-height: .9; margin-bottom: 16px; }
.detail-meta-grid { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.detail-body { padding: 26px 34px 34px; display: grid; grid-template-columns: 1fr 330px; gap: 24px; }
.detail-copy p { color: var(--muted); line-height: 1.7; }
.episode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; margin-top: 14px; }
.episode-btn { min-height: 42px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-weight: 900; }
.episode-btn.watched { background: linear-gradient(135deg, var(--red), var(--gold)); color: #170504; border-color: transparent; }
.side-editor { display: grid; gap: 12px; align-content: start; }
.auth-split { display: grid; grid-template-columns: .75fr 1fr; gap: 28px; padding: 34px; }
.auth-split h2 { font-size: 54px; line-height: .9; margin: 12px 0; }
.auth-form { display: grid; gap: 4px; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.auth-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.auth-tab.active {
  color: #170504;
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), var(--gold));
  box-shadow: 6px 6px 0 rgba(0,0,0,.36);
}
.auth-status {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.24);
  color: var(--muted);
  padding: 12px 14px;
  line-height: 1.55;
  font-size: 13px;
}
.auth-status.ok { border-color: rgba(244,185,95,.45); color: var(--gold); }
.auth-status.err { border-color: rgba(225,35,35,.55); color: #ffb7a9; }
.is-hidden { display: none !important; }


.mobile-tabs { display: none; }
.toast-host { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 10px; }
.toast { background: #130707; border: 1px solid var(--line-red); color: var(--ink); padding: 13px 15px; box-shadow: var(--shadow); max-width: 360px; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: auto 1fr; height: auto; padding-block: 12px; }
  .top-actions { grid-column: 2; justify-self: end; }
  .nav-strip { grid-column: 1 / -1; justify-self: stretch; }
  .hero-grid, .split-band, .search-board, .profile-shell, .detail-body { grid-template-columns: 1fr; }
  .calendar-stage { grid-template-columns: 1fr; grid-template-areas: "days" "filters" "results"; }
  .calendar-filters, .search-filter-card { position: static; }
  .library-grid { grid-template-columns: repeat(3, 1fr); }
  .release-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 720px); padding-top: 18px; padding-bottom: 92px; }
  .topbar { position: relative; grid-template-columns: 1fr auto; padding: 12px; }
  .brand-text strong { font-size: 18px; }
  .brand-mark { width: 42px; height: 42px; }
  .nav-strip { display: none; }
  .top-actions .ghost-action { display: none; }
  .solid-action, .ghost-action { min-height: 40px; padding-inline: 12px; }
  .hero-panel { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 30px 20px; }
  .hero-copy .hero-main-title { font-size: 52px; }
  .hero-art { min-height: 360px; order: -1; }
  .hero-art .hero-poster { width: 48%; right: 8%; bottom: 22px; }
  .pulse-card { min-height: 0; padding: 20px; }
  .weekday-dock { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .day-chip { min-width: 128px; }
  .library-controls { grid-template-columns: 1fr; }
  .library-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .search-row { grid-template-columns: 74px 1fr; }
  .search-row img { width: 74px; }
  .search-row-actions { grid-column: 1 / -1; flex-direction: row; justify-content: stretch; }
  .search-row-actions button { flex: 1; }
  .detail-hero { grid-template-columns: 120px 1fr; padding: 58px 16px 20px; gap: 14px; min-height: 300px; }
  .detail-poster { width: 120px; }
  .detail-title h1 { font-size: 38px; }
  .detail-body { padding: 18px; }
  .auth-split { grid-template-columns: 1fr; padding: 24px; }
  .mobile-tabs {
    position: fixed;
    left: 10px; right: 10px; bottom: 10px;
    z-index: 40;
    display: flex;
    align-items: stretch;
    background: rgba(7,3,3,.92);
    border: 1px solid var(--line-red);
    backdrop-filter: blur(16px);
    padding: 6px;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-tabs::-webkit-scrollbar { display: none; }
  .mobile-tab { flex: 0 0 auto; min-width: 86px; border: 0; background: transparent; color: var(--muted); min-height: 46px; padding-inline: 10px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
  .mobile-tab.active { background: rgba(229,55,37,.22); color: white; }
}

@media (max-width: 460px) {
  .library-grid, .stats-grid { grid-template-columns: 1fr; }
  .poster-rail { grid-auto-columns: minmax(152px, 190px); }
  .release-card { grid-template-columns: 88px 1fr; }
  .release-card img { width: 88px; }
  .release-card h3 { font-size: 19px; }
  .hero-copy .hero-main-title { font-size: 42px; }
}

/* --- UI repair pass: cleaner hero, release cards, detail modal, scrollbars --- */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(244,185,95,.72) rgba(255,255,255,.06);
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(255,255,255,.055); border-left: 1px solid rgba(244,185,95,.08); }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red), var(--gold));
  border: 2px solid #130605;
  min-height: 44px;
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff4935, #ffd083); }

.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); align-items: stretch; }
.hero-panel { min-height: 420px; grid-template-columns: minmax(310px, .9fr) minmax(280px, .85fr); }
.hero-copy { padding: clamp(28px, 4vw, 48px); align-self: center; }
.hero-copy .hero-main-title { font-size: clamp(46px, 6vw, 82px); line-height: .9; max-width: 620px; }
.hero-actions { margin-top: 22px; }
.hero-art { min-height: 390px; }
.hero-art .hero-poster { width: min(52%, 250px); right: 12%; bottom: 34px; }
.pulse-card { min-height: 420px; padding: 26px 24px; }
.pulse-card h2 { font-size: clamp(28px, 3vw, 40px); line-height: .96; }
.release-stack.compact { max-height: 360px; padding-right: 10px; }

.release-item {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 12px 12px 14px;
  align-items: center;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.release-item:hover {
  transform: translateX(3px);
  border-color: rgba(244,185,95,.34);
  background: linear-gradient(135deg, rgba(229,55,37,.12), rgba(255,255,255,.035));
}
.release-thumb { width: 76px; min-width: 76px; height: 96px; aspect-ratio: auto; border: 1px solid rgba(244,185,95,.16); }
.release-item > span { min-width: 0; display: grid; gap: 6px; align-content: center; }
.release-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.14;
  letter-spacing: -.015em;
}
.release-meta { display: block; margin-top: 0; font-size: 12px; line-height: 1.35; }
.countdown {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 8px;
  margin-top: 0;
  background: rgba(244,185,95,.085);
  border: 1px solid rgba(244,185,95,.22);
  line-height: 1;
  white-space: nowrap;
}
.release-card h3,
.search-row h3,
.library-card h3 { overflow-wrap: anywhere; hyphens: auto; }

.detail-dialog { overflow: auto; }
.detail-dialog[open] { display: grid; }
.detail-hero { min-height: 420px; }
.detail-body .content-band { margin-top: 22px; }
.detail-copy #detailDescription { max-width: 75ch; }

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 0; grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .pulse-card { min-height: 0; }
}
@media (max-width: 640px) {
  .release-stack.compact { max-height: none; overflow: visible; padding-right: 0; }
  .release-item { grid-template-columns: 68px minmax(0, 1fr); }
  .release-thumb { width: 68px; min-width: 68px; height: 90px; }
  .release-title { font-size: 16px; }
  .countdown { white-space: normal; line-height: 1.2; }
  .detail-hero { grid-template-columns: 118px 1fr; padding: 54px 16px 18px; min-height: 0; }
  .detail-poster { width: 118px; }
  .detail-title h1 { font-size: clamp(30px, 9vw, 46px); line-height: .95; }
}

/* --- Global scrollbar system: unified AnimeRadar rail everywhere --- */
:root {
  --scrollbar-size: 12px;
  --scrollbar-track: rgba(9, 3, 3, .82);
  --scrollbar-track-strong: rgba(33, 12, 8, .95);
  --scrollbar-thumb: linear-gradient(180deg, #e53725 0%, #f4b95f 100%);
  --scrollbar-thumb-hover: linear-gradient(180deg, #ff523f 0%, #ffd38a 100%);
}

html,
body,
* {
  scrollbar-width: thin;
  scrollbar-color: #d99444 rgba(20, 6, 5, .92);
}

*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background:
    linear-gradient(90deg, transparent 0 2px, rgba(244, 185, 95, .12) 2px 3px, transparent 3px 100%),
    linear-gradient(180deg, var(--scrollbar-track-strong), var(--scrollbar-track));
  border: 1px solid rgba(244, 185, 95, .12);
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border: 3px solid rgba(12, 4, 4, .96);
  min-height: 48px;
  min-width: 48px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 225, .22),
    0 0 16px rgba(229, 55, 37, .18);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 225, .38),
    0 0 18px rgba(244, 185, 95, .28);
}

*::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #ffd38a 0%, #e53725 100%);
}

*::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Make every internal scroll area use the same gutter and avoid Windows-like overlap. */
.release-stack,
.release-stack.compact,
.poster-rail,
.weekday-dock,
.nav-strip,
.mobile-tabs,
.list-tabs,
.detail-dialog,
textarea,
select,
.modal-body,
.content-band,
.search-results,
.library-grid,
.stats-grid {
  scrollbar-gutter: stable;
}

/* The top nav should still scroll on narrow desktop, but with no ugly default bar. */
.nav-strip {
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.nav-strip::-webkit-scrollbar {
  height: 8px;
}

/* Horizontal rails get a flatter, premium bar. */
.poster-rail::-webkit-scrollbar,
.weekday-dock::-webkit-scrollbar,
.list-tabs::-webkit-scrollbar,
.nav-strip::-webkit-scrollbar {
  height: 8px;
}

.poster-rail::-webkit-scrollbar-thumb,
.weekday-dock::-webkit-scrollbar-thumb,
.list-tabs::-webkit-scrollbar-thumb,
.nav-strip::-webkit-scrollbar-thumb {
  border-width: 2px;
  min-width: 72px;
}

/* Compact release panel: slightly slimmer so it does not steal visual space. */
.release-stack.compact::-webkit-scrollbar,
.release-stack::-webkit-scrollbar {
  width: 9px;
}
.release-stack.compact::-webkit-scrollbar-thumb,
.release-stack::-webkit-scrollbar-thumb {
  border-width: 2px;
}

/* Form controls that open native dropdowns cannot be fully restyled by CSS in every browser,
   but their visible closed state and any scrollable textarea now match the page. */
textarea::-webkit-scrollbar {
  width: 9px;
}

/* Episode release lock state */
.episode-hint {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.episode-btn.future,
.episode-btn:disabled {
  cursor: not-allowed;
  opacity: .42;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.035) 6px, rgba(255,255,255,.015) 6px, rgba(255,255,255,.015) 12px);
  color: rgba(255,244,222,.55);
  border-color: rgba(255,255,255,.08);
}
.episode-btn.future:hover,
.episode-btn:disabled:hover {
  transform: none;
  border-color: rgba(255,255,255,.08);
}

/* --- v8 form chrome: remove native Windows-like arrows and unify dropdowns --- */
:root {
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 9.5L12 14.5L17 9.5' stroke='%23f4b95f' stroke-width='2.4' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image:
    linear-gradient(135deg, rgba(229,55,37,.13), rgba(244,185,95,.055)),
    linear-gradient(90deg, transparent calc(100% - 42px), rgba(244,185,95,.13) calc(100% - 42px), rgba(244,185,95,.13) calc(100% - 41px), transparent calc(100% - 41px)),
    var(--select-arrow);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 0 0, 0 0, right 13px center;
  background-size: 100% 100%, 100% 100%, 18px 18px;
  border-color: rgba(244,185,95,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

select:hover {
  border-color: rgba(244,185,95,.48);
  background-image:
    linear-gradient(135deg, rgba(229,55,37,.2), rgba(244,185,95,.085)),
    linear-gradient(90deg, transparent calc(100% - 42px), rgba(244,185,95,.2) calc(100% - 42px), rgba(244,185,95,.2) calc(100% - 41px), transparent calc(100% - 41px)),
    var(--select-arrow);
}

select:focus {
  background-image:
    linear-gradient(135deg, rgba(229,55,37,.24), rgba(244,185,95,.12)),
    linear-gradient(90deg, transparent calc(100% - 42px), rgba(244,185,95,.26) calc(100% - 42px), rgba(244,185,95,.26) calc(100% - 41px), transparent calc(100% - 41px)),
    var(--select-arrow);
}

select::-ms-expand { display: none; }

select option {
  background: #160706;
  color: #f6efe2;
}

.rating-select {
  min-height: 50px;
  color: var(--gold);
  font-weight: 950;
  letter-spacing: .03em;
  border-color: rgba(244,185,95,.36);
}

.side-editor select,
.search-filter-card select,
.calendar-filters select,
.library-controls select,
.panel select,
.auth-card select {
  min-height: 46px;
}

/* Remove native number steppers in detail fields so no system arrows appear. */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Slightly premium form surface for detail editor controls. */
.side-editor input,
.side-editor select,
.side-editor textarea {
  background-color: rgba(12, 3, 3, .72);
  border-color: rgba(244,185,95,.24);
}


/* AnimeRadar live polish */
.brand-mark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 14px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(145deg, #2b0808 0%, #6d100a 42%, #120404 100%);
  box-shadow: 10px 10px 0 rgba(0,0,0,.35), inset 0 0 26px rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.04);
}
.brand-radar {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255,248,235,.12) 0 10%, transparent 10% 100%),
    repeating-radial-gradient(circle at center, rgba(244,185,95,.23) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent);
  opacity: .92;
}
.brand-radar::before {
  content: '';
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background: conic-gradient(from 230deg, transparent 0 56%, rgba(244,185,95,0) 56% 61%, rgba(244,185,95,.98) 66%, rgba(214,39,24,.72) 72%, transparent 78%);
  opacity: .95;
}
.brand-radar::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  right: 7px;
  top: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244,185,95,.14), 0 0 16px rgba(244,185,95,.48);
}
.brand-initials {
  position: relative;
  z-index: 2;
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #fff8eb;
  text-shadow: 0 2px 10px rgba(0,0,0,.42);
}
.brand-text strong {
  font-size: clamp(20px, 2.2vw, 27px);
  letter-spacing: .035em;
  text-transform: none;
}
.brand-text small {
  letter-spacing: .11em;
  font-size: 9px;
  white-space: nowrap;
}
.brand-mark {
  font-size: 16px;
  letter-spacing: -.04em;
  font-family: var(--font-display);
}
.brand-text strong {
  font-size: clamp(20px, 2.2vw, 27px);
  letter-spacing: .035em;
  text-transform: none;
}
.brand-text small {
  letter-spacing: .11em;
  font-size: 9px;
  white-space: nowrap;
}
.hero-panel {
  min-height: clamp(360px, 36vw, 450px);
}
.hero-copy {
  align-self: center;
}
.hero-copy .hero-main-title {
  font-size: clamp(40px, 5vw, 72px) !important;
  line-height: 1.04 !important;
  max-width: 780px;
  margin: 14px 0 16px;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
}
.hero-copy p {
  max-width: 620px;
}
.watch-box.accent-box h2 {
  max-width: 680px;
  line-height: 1.05;
}
@media (max-width: 720px) {
  .brand-text small { display: none; }
  .hero-copy .hero-main-title { font-size: clamp(34px, 12vw, 48px) !important; line-height: 1.08 !important; }
}

/* --- v15 detail hero readability pass --- */
.detail-title {
  min-width: 0;
  max-width: min(100%, 860px);
  display: grid;
  align-content: start;
  gap: 16px;
}

.detail-title h1 {
  margin-bottom: 0;
  max-width: 12ch;
  text-wrap: balance;
  text-shadow: 0 10px 24px rgba(0,0,0,.38);
}

.detail-facts-panel {
  display: grid;
  gap: 14px;
  width: min(100%, 760px);
  padding: 16px 18px;
  border: 1px solid rgba(229,55,37,.38);
  background: linear-gradient(180deg, rgba(10,4,4,.84), rgba(18,6,5,.92));
  box-shadow: 0 18px 38px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}

.detail-meta-grid--hero {
  margin: 0;
  gap: 10px;
}

.detail-meta-grid--hero .tag {
  background: rgba(244,185,95,.08);
  border-color: rgba(244,185,95,.18);
}

.detail-release-box {
  border-top: 1px solid rgba(244,185,95,.12);
  padding-top: 12px;
}

.detail-countdown {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
}

.detail-countdown .countdown-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  background: rgba(244,185,95,.1);
  border: 1px solid rgba(244,185,95,.22);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.detail-countdown strong {
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff4e2;
  text-shadow: 0 4px 14px rgba(0,0,0,.3);
}

@media (max-width: 760px) {
  .detail-title {
    gap: 12px;
  }

  .detail-title h1 {
    max-width: none;
  }

  .detail-facts-panel {
    padding: 14px;
    gap: 12px;
  }

  .detail-countdown {
    gap: 10px;
  }

  .detail-countdown strong {
    font-size: 22px;
  }
}

/* --- v18 detail countdown layout: calmer release block --- */
.detail-release-box {
  border-top: 1px solid rgba(244,185,95,.12);
  padding-top: 14px;
}

.detail-countdown {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: start;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.detail-countdown .countdown-label {
  display: block !important;
  min-height: 0 !important;
  padding: 0 0 0 14px !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--gold);
  font-size: 12px !important;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: .105em;
  text-transform: uppercase;
  position: relative;
}

.detail-countdown .countdown-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 2px;
  transform: translateY(-50%);
  background: var(--red);
}

.detail-countdown strong {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(20px, 2vw, 27px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.025em;
  color: #fff4e2;
  text-shadow: 0 4px 18px rgba(0,0,0,.3);
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .detail-countdown strong {
    font-size: 21px !important;
  }
}

/* --- v19 mobile overflow hardening: no horizontal page drag --- */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body,
.topbar,
.shell,
.view,
.detail-dialog,
.auth-dialog,
.detail-dialog *,
.auth-dialog * {
  min-width: 0;
}

img,
iframe,
video,
canvas,
svg {
  max-width: 100%;
}

.detail-dialog,
.auth-dialog {
  box-sizing: border-box;
  max-width: calc(100vw - 16px) !important;
  width: min(1060px, calc(100vw - 16px)) !important;
  overflow-x: hidden !important;
}

.detail-hero,
.detail-body,
.detail-title,
.detail-facts-panel,
.detail-copy,
.side-editor,
.content-band,
.hero-actions {
  max-width: 100%;
  min-width: 0;
}

.detail-title h1,
.detail-copy p,
.detail-facts-panel,
.detail-countdown strong,
.tag,
.release-meta {
  overflow-wrap: anywhere;
  word-break: normal;
}

.detail-meta-grid,
.detail-meta-grid--hero,
.hero-actions {
  min-width: 0;
  max-width: 100%;
}

.detail-meta-grid .tag,
.detail-meta-grid--hero .tag {
  max-width: 100%;
}

@media (max-width: 760px) {
  .topbar {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .shell {
    width: min(100% - 18px, 720px) !important;
    max-width: calc(100vw - 18px);
  }

  .detail-dialog,
  .auth-dialog {
    width: calc(100vw - 10px) !important;
    max-width: calc(100vw - 10px) !important;
    max-height: calc(100vh - 10px);
  }

  .detail-hero {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 48px 12px 18px !important;
    overflow: hidden;
  }

  .detail-poster {
    width: 96px !important;
    max-width: 96px;
    box-shadow: -6px 6px 0 rgba(0,0,0,.38);
  }

  .detail-title h1 {
    font-size: clamp(28px, 11vw, 44px) !important;
    line-height: .94 !important;
    max-width: 100% !important;
    letter-spacing: -.035em;
  }

  .detail-facts-panel {
    width: 100% !important;
    padding: 12px !important;
  }

  .detail-meta-grid--hero {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .detail-meta-grid--hero .tag {
    font-size: 10px;
    padding: 5px 7px;
  }

  .detail-countdown .countdown-label {
    font-size: 10px !important;
    letter-spacing: .08em;
  }

  .detail-countdown strong {
    font-size: clamp(18px, 6vw, 22px) !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 9px;
    width: 100%;
  }

  .hero-actions .solid-action,
  .hero-actions .ghost-action {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    white-space: normal;
  }

  .detail-body {
    padding: 16px 12px 24px !important;
    gap: 18px;
  }

  .side-editor input,
  .side-editor select,
  .side-editor textarea,
  #watchedUntilInput {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .detail-hero {
    display: block !important;
    padding: 50px 12px 18px !important;
  }

  .detail-poster {
    width: min(42vw, 142px) !important;
    max-width: 142px;
    margin: 0 0 16px 0;
  }

  .detail-title {
    display: grid;
    gap: 12px;
    width: 100%;
  }

  .detail-title h1 {
    font-size: clamp(34px, 13vw, 52px) !important;
    line-height: .92 !important;
  }

  .detail-facts-panel {
    margin-top: 2px;
  }

  .detail-countdown strong {
    width: 100%;
  }

  .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  }
}

@media (max-width: 380px) {
  .detail-dialog,
  .auth-dialog {
    width: calc(100vw - 6px) !important;
    max-width: calc(100vw - 6px) !important;
  }

  .detail-hero {
    padding-inline: 10px !important;
  }

  .detail-body {
    padding-inline: 10px !important;
  }

  .detail-title h1 {
    font-size: clamp(31px, 12.5vw, 45px) !important;
  }

  .modal-close {
    right: 8px;
    top: 8px;
    width: 38px;
    height: 38px;
  }
}

/* --- v20 mobile hard fix: eliminate real horizontal overflow --- */
*,
*::before,
*::after {
  max-inline-size: 100%;
}

html,
body {
  inline-size: 100%;
  max-inline-size: 100%;
  overflow-x: clip !important;
  overscroll-behavior-x: none;
}

body {
  position: relative;
}

#detailContent,
#authContent,
.view,
.shell,
.topbar,
.mobile-tabs {
  max-inline-size: 100%;
  overflow-x: clip;
}

/* Some browsers keep dialog sizing outside the normal page flow. On phones we force it into a real viewport box. */
@media (max-width: 820px) {
  .detail-dialog,
  .auth-dialog {
    position: fixed !important;
    inset: 0 !important;
    inline-size: 100dvw !important;
    block-size: 100dvh !important;
    max-inline-size: 100dvw !important;
    max-block-size: 100dvh !important;
    margin: 0 !important;
    border-inline: 0 !important;
    overflow-y: auto !important;
    overflow-x: clip !important;
  }

  #detailContent,
  #detailContent > *,
  .detail-hero,
  .detail-body,
  .detail-copy,
  .side-editor,
  .content-band,
  .episode-grid,
  .detail-title,
  .detail-facts-panel,
  .detail-release-box {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    min-inline-size: 0 !important;
    overflow-x: clip;
  }

  /* The previous 2-column mobile hero was still too wide on real phones. Stack it earlier. */
  .detail-hero {
    display: block !important;
    padding: 50px 14px 20px !important;
    min-block-size: 0 !important;
  }

  .detail-poster {
    inline-size: min(42vw, 148px) !important;
    max-inline-size: 148px !important;
    margin: 0 0 16px 0 !important;
    box-shadow: -6px 6px 0 rgba(0,0,0,.38) !important;
  }

  .detail-title {
    display: grid !important;
    gap: 12px !important;
  }

  .detail-title h1 {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    font-size: clamp(30px, 12.4vw, 50px) !important;
    line-height: .92 !important;
    letter-spacing: -.04em !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto;
  }

  .detail-facts-panel {
    padding: 12px !important;
    margin: 0 !important;
  }

  .detail-meta-grid--hero,
  .detail-meta-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
  }

  .detail-meta-grid--hero .tag,
  .detail-meta-grid .tag {
    flex: 0 1 auto;
    min-inline-size: 0;
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .detail-countdown,
  .detail-countdown strong,
  .detail-countdown .countdown-label {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    min-inline-size: 0 !important;
  }

  .detail-countdown strong {
    width: 100% !important;
    font-size: clamp(18px, 6vw, 23px) !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    inline-size: 100% !important;
    gap: 9px !important;
  }

  .hero-actions .solid-action,
  .hero-actions .ghost-action,
  .side-editor .solid-action,
  .side-editor .ghost-action {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    min-inline-size: 0 !important;
    white-space: normal !important;
  }

  .detail-body {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 16px 14px 26px !important;
  }

  .side-editor input,
  .side-editor select,
  .side-editor textarea,
  #watchedUntilInput,
  input,
  select,
  textarea {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    min-inline-size: 0 !important;
  }

  .section-kicker {
    min-inline-size: 0;
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding-inline: 10px !important;
  }

  .brand {
    min-inline-size: 0;
    overflow: hidden;
  }

  .brand-text strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-actions {
    min-inline-size: 0;
  }

  .top-actions .solid-action {
    padding-inline: 10px !important;
    min-inline-size: 0 !important;
  }
}

@media (max-width: 420px) {
  .detail-hero {
    padding-inline: 10px !important;
  }

  .detail-body {
    padding-inline: 10px !important;
  }

  .detail-title h1 {
    font-size: clamp(28px, 11.6vw, 43px) !important;
  }

  .detail-poster {
    inline-size: min(46vw, 136px) !important;
  }

  .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)) !important;
  }
}

/* --- v21 live polish: mobile, detail, calendar, forms --- */
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
body { touch-action: pan-y; }
body, .shell, .view, .content-band, .calendar-stage, .search-board, .profile-shell, .detail-dialog, .auth-dialog { min-width: 0; }

.loading-panel,
.empty-state {
  border: 1px solid rgba(244,185,95,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(229,55,37,.055));
  padding: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-mini-action {
  justify-self: start;
  margin: 4px 0 10px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: .02em;
}
.danger-action {
  margin-top: 8px;
  border-color: rgba(255, 97, 70, .36);
  color: #ffc7b9;
}
.danger-action:hover { background: rgba(229,55,37,.12); border-color: rgba(255,97,70,.7); }

.plot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.description-source {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .88;
}
.detail-copy #detailDescription {
  padding: 16px 18px;
  border-left: 3px solid rgba(244,185,95,.5);
  background: rgba(255,255,255,.035);
}
.side-editor {
  padding: 16px;
  border: 1px solid rgba(244,185,95,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(229,55,37,.04));
  height: fit-content;
}
.side-editor label { display: grid; gap: 8px; color: var(--muted); font-weight: 800; }
.side-editor textarea { min-height: 138px; resize: vertical; }
.episode-grid { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }
.episode-btn { transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.episode-btn:not(:disabled):hover { transform: translateY(-2px); border-color: rgba(244,185,95,.45); }

.calendar-results,
.search-main,
.profile-form-card,
.profile-card,
.watch-box {
  min-width: 0;
}
.release-card,
.search-row,
.library-card {
  min-width: 0;
  overflow: hidden;
}
.release-card h3,
.search-row h3,
.library-card h3,
.detail-title h1,
.page-title-row .page-main-title {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 760px) {
  .shell { width: 100%; padding-left: 12px; padding-right: 12px; }
  .topbar { width: 100%; max-width: 100%; overflow: hidden; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .brand { min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-text strong, .brand-text small { overflow: hidden; text-overflow: ellipsis; }
  .top-actions { min-width: 0; }
  .top-actions .solid-action { max-width: 132px; padding-inline: 10px; overflow: hidden; text-overflow: ellipsis; }

  .hero-grid,
  .calendar-stage,
  .search-board,
  .profile-shell,
  .split-band,
  .detail-body,
  .auth-split { grid-template-columns: minmax(0, 1fr) !important; }
  .hero-panel,
  .pulse-card,
  .content-band,
  .watch-box,
  .calendar-filters,
  .calendar-results,
  .search-filter-card,
  .profile-card,
  .profile-form-card { width: 100%; max-width: 100%; }
  .page-title-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .title-actions { justify-content: stretch; display: grid; grid-template-columns: 1fr 1fr; }
  .title-actions button,
  .title-actions a { width: 100%; }

  .detail-dialog,
  .auth-dialog {
    width: 100dvw !important;
    max-width: 100dvw !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-left: 0;
    border-right: 0;
  }
  .detail-hero {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 58px 14px 18px !important;
    gap: 16px !important;
  }
  .detail-poster { width: min(44vw, 150px) !important; }
  .detail-title { width: 100%; max-width: 100%; }
  .detail-facts-panel { width: 100%; max-width: 100%; }
  .detail-meta-grid--hero { display: flex; flex-wrap: wrap; min-width: 0; }
  .detail-meta-grid--hero .tag { max-width: 100%; white-space: normal; }
  .detail-release-line { width: 100%; min-width: 0; }
  .detail-release-value { width: 100%; min-width: 0; display: block; }
  .hero-actions { display: grid; grid-template-columns: minmax(0,1fr); width: 100%; gap: 10px; }
  .hero-actions button,
  .hero-actions a { width: 100%; }
  .detail-body { padding: 16px 12px 22px !important; width: 100%; max-width: 100%; overflow-x: hidden; }
  .detail-copy, .side-editor { width: 100%; max-width: 100%; min-width: 0; }
  .detail-copy #detailDescription { max-width: 100%; }
  .episode-grid { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }

  .release-card { grid-template-columns: 92px minmax(0, 1fr); }
  .release-card img { width: 92px; height: 128px; object-fit: cover; }
  .card-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .search-row { grid-template-columns: 82px minmax(0, 1fr); }
  .search-row-actions { grid-column: 1 / -1; }
  .library-controls { grid-template-columns: minmax(0, 1fr); }
  input, select, textarea, button { max-width: 100%; }
  .mobile-tabs { max-width: calc(100dvw - 20px); overflow-x: auto; overflow-y: hidden; }
}

@media (max-width: 420px) {
  .release-card { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
  .release-card img { width: 78px; height: 112px; }
  .search-row { grid-template-columns: 70px minmax(0, 1fr); }
  .search-row img { width: 70px; }
  .hero-copy .hero-main-title { font-size: clamp(36px, 13vw, 48px) !important; }
  .pulse-card h2, .page-title-row .page-main-title { font-size: clamp(32px, 11vw, 46px); }
  .detail-countdown strong, .detail-release-value { font-size: 21px; }
}

/* --- v22 legal, credits and source attribution --- */
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 96px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  border: 1px solid rgba(244,185,95,.14);
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(229,55,37,.045));
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}

.footer-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  font-size: 14px;
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .04em;
}

.footer-brand small,
.footer-note {
  color: var(--muted);
  line-height: 1.55;
}

.footer-links {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links .text-action {
  white-space: nowrap;
}

.footer-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  border-top: 1px solid rgba(244,185,95,.1);
  padding-top: 14px;
}

.footer-copyright {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  letter-spacing: .02em;
}

.legal-title-row p {
  max-width: 760px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.legal-card,
.legal-doc {
  border: 1px solid rgba(244,185,95,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(229,55,37,.04));
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}

.legal-card {
  min-width: 0;
  padding: 22px;
}

.legal-card-accent {
  border-color: rgba(244,185,95,.34);
  background: linear-gradient(135deg, rgba(229,55,37,.12), rgba(244,185,95,.06));
}

.legal-card h2,
.legal-doc h2 {
  margin: 8px 0 12px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
}

.legal-card p,
.legal-doc p {
  color: var(--muted);
  line-height: 1.7;
}

.legal-doc {
  display: grid;
  gap: 0;
  margin-top: 22px;
  overflow: hidden;
}

.legal-doc section {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(244,185,95,.1);
}

.legal-doc section:last-child {
  border-bottom: 0;
}

.compact-doc {
  max-width: 900px;
}

.placeholder-box {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px dashed rgba(244,185,95,.38);
  background: rgba(244,185,95,.055);
  color: #fff4e2;
  line-height: 1.7;
}

.legal-warning {
  border-left: 3px solid rgba(229,55,37,.72);
  padding: 12px 14px;
  background: rgba(229,55,37,.08);
  color: #ffd0c7 !important;
}

@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 92px;
  }
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-footer {
    width: calc(100% - 24px);
    padding: 18px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .footer-links .text-action {
    justify-self: start;
    white-space: normal;
  }
  .legal-card,
  .legal-doc section {
    padding: 18px;
  }
}

/* --- v36 list management: menu actions + list view --- */
.list-tabs {
  align-items: stretch;
}

.list-tab-item {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  flex: 0 0 auto;
  max-width: 100%;
}

.list-tab-item.active {
  border-color: rgba(229,55,37,.72);
  background: rgba(229,55,37,.16);
}

.list-tab-item .list-tab {
  border: 0;
  background: transparent;
  min-width: 0;
  max-width: min(280px, 58vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-actions-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.list-menu-toggle {
  width: 44px;
  border: 0;
  border-left: 1px solid rgba(244,185,95,.13);
  background: rgba(0,0,0,.16);
  display: grid;
  place-items: center;
}

.list-menu-toggle span {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-1px);
  transition: transform .18s ease;
}

.list-tab-item.menu-open .list-menu-toggle span {
  transform: rotate(-135deg) translateY(-1px);
}

.list-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  padding: 6px;
  border: 1px solid rgba(244,185,95,.16);
  background: #120706;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  display: none;
  z-index: 8;
}

.list-menu.is-open { display: grid; gap: 4px; }

.list-menu-action {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.03);
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.list-menu-action:hover {
  border-color: rgba(244,185,95,.18);
  background: rgba(244,185,95,.08);
  color: var(--gold);
}

.list-menu-action.danger:hover {
  border-color: rgba(229,55,37,.24);
  background: rgba(229,55,37,.16);
  color: #ffd9d3;
}

@media (max-width: 980px) {
  .library-list-head,
  .library-list-row {
    grid-template-columns: minmax(260px, 2fr) 1fr 1fr .9fr 1fr;
  }

  .library-list-head span:last-child,
  .library-list-row .library-list-cell:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  .list-tabs {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
  }

  .list-tab-item {
    width: 100%;
  }

  .list-tab-item .list-tab {
    max-width: none;
    text-align: left;
    flex: 1 1 auto;
  }

  .library-list-shell {
    border: 0;
    background: transparent;
  }

  .library-list-head {
    display: none;
  }

  .library-list-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    margin-bottom: 10px;
  }

  .library-list-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .library-list-cell::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
  }
}

/* --- v24 calendar filters: open on desktop, collapsed on mobile --- */
.filter-toggle {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  margin-bottom: 18px;
  cursor: default;
}

.filter-toggle-state {
  display: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}

.filter-body {
  display: block;
}

@media (max-width: 760px) {
  .calendar-filters {
    padding: 0 !important;
    overflow: hidden;
  }

  .calendar-filters .filter-toggle {
    min-height: 52px;
    padding: 0 16px;
    margin: 0;
    border: 1px solid rgba(244,185,95,.18);
    background: linear-gradient(135deg, rgba(229,55,37,.14), rgba(244,185,95,.055));
    cursor: pointer;
  }

  .calendar-filters .filter-toggle-state {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(244,185,95,.24);
    background: rgba(0,0,0,.24);
  }

  .calendar-filters .filter-body {
    display: none;
    padding: 16px;
    border: 1px solid rgba(244,185,95,.16);
    border-top: 0;
    background: rgba(8,3,3,.58);
  }

  .calendar-filters.is-open .filter-body {
    display: block;
  }
}

/* --- v25 auth modal: signed-in state should not show login/register fields --- */
.auth-signed-panel {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(244,185,95,.22);
  background: linear-gradient(135deg, rgba(244,185,95,.09), rgba(229,55,37,.08));
  box-shadow: 8px 8px 0 rgba(0,0,0,.22);
}

.auth-signed-panel strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: .95;
  overflow-wrap: anywhere;
}

.auth-signed-panel small {
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.auth-form.signed-in {
  align-content: start;
}

.auth-form.signed-in #logoutBtn {
  margin-top: 4px;
}

/* --- v30 anime comments --- */
.comment-band {
  overflow: hidden;
}
.comment-composer {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.comment-composer textarea {
  min-height: 96px;
  resize: vertical;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.comments-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.comment-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(244,185,95,.14);
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(229,55,37,.05));
}
.comment-avatar {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid rgba(244,185,95,.28);
  background: rgba(0,0,0,.35);
}
.comment-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 20px;
}
.comment-main {
  min-width: 0;
}
.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.comment-head strong {
  color: #fff4e2;
  overflow-wrap: anywhere;
}
.comment-head span {
  color: var(--muted);
  font-size: 12px;
}
.comment-main p {
  margin: 8px 0 0;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-foot {
  margin-top: 8px;
}
.comment-foot .text-action {
  font-size: 12px;
  padding: 0;
}
@media (max-width: 640px) {
  .comment-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 12px;
  }
  .comment-avatar {
    width: 36px;
    height: 36px;
  }
  .comment-actions .solid-action {
    width: 100%;
  }
}

/* --- v31 rating separation + locked username --- */
.detail-rating-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.rating-stat {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(244,185,95,.16);
  background: linear-gradient(180deg, rgba(244,185,95,.075), rgba(255,255,255,.025));
}
.rating-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rating-stat strong {
  display: block;
  margin-top: 5px;
  color: #fff4e2;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  overflow-wrap: anywhere;
}
.rating-stat small {
  display: block;
  margin-top: 7px;
  color: rgba(255,244,226,.62);
  line-height: 1.35;
}
.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
input:disabled,
select:disabled,
textarea:disabled {
  opacity: .68;
  cursor: not-allowed;
}
@media (max-width: 760px) {
  .detail-rating-board { grid-template-columns: 1fr; }
  .rating-stat strong { font-size: 24px; }
}

/* --- v32: Kalenderkarten vollständig anklickbar + Detail-Backdrop schließen --- */
.release-card-clickable {
  cursor: pointer;
}
.release-card-clickable img,
.release-card-clickable h3,
.release-card-clickable .release-card-body {
  cursor: pointer;
}
.release-card-clickable .card-actions,
.release-card-clickable .card-actions * {
  cursor: auto;
}
.release-card-clickable .card-actions button {
  cursor: pointer;
}
.detail-dialog::backdrop {
  cursor: pointer;
}
.detail-dialog {
  cursor: default;
}

/* --- v33 UX polish and community additions --- */
.daily-anime-card,
.hidden-treasure-card,
.profile-public-card,
.rank-row {
  border: 1px solid rgba(244,185,95,.16);
  background: linear-gradient(135deg, rgba(229,55,37,.08), rgba(255,255,255,.035));
}
.daily-anime-inner,
.hidden-treasure-inner {
  display: grid;
  grid-template-columns: 128px minmax(0,1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
}
.daily-anime-inner img,
.hidden-treasure-inner img { width: 128px; aspect-ratio: 2/3; object-fit: cover; border: 1px solid rgba(244,185,95,.22); }
.daily-anime-inner h3,
.hidden-treasure-inner h3 { font-size: clamp(28px, 4vw, 54px); line-height: .95; margin: 8px 0; }
.daily-anime-inner p,
.hidden-treasure-inner p { color: var(--muted); line-height: 1.6; max-width: 74ch; }
.season-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.season-controls select,
.season-controls input { min-height: 44px; max-width: 160px; }
.toplists-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.rank-row { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: center; text-align: left; padding: 13px; color: var(--ink); }
.rank-row strong { display: grid; place-items: center; width: 34px; height: 34px; background: rgba(244,185,95,.12); color: var(--gold); }
.rank-row span { min-width: 0; font-weight: 900; }
.rank-row small { display: block; color: var(--muted); font-weight: 700; margin-top: 4px; }

.rated-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 12px;
  border: 1px solid rgba(244,185,95,.16);
  background: linear-gradient(135deg, rgba(229,55,37,.08), rgba(255,255,255,.035));
  color: var(--ink);
}
.rated-row strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(244,185,95,.12);
  color: var(--gold);
}
.rated-row img {
  width: 54px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(244,185,95,.18);
  background: #140807;
}
.rated-row span { min-width: 0; font-weight: 900; }
.rated-row small { display: block; color: var(--muted); font-weight: 700; margin-top: 4px; }
.profile-rated-band { margin-top: 18px; }
.compact-pager {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-weight: 900;
}
.compact-pager .small-btn { min-height: 34px; padding: 0 10px; }
.compact-pager .small-btn:disabled { opacity: .35; cursor: not-allowed; }
.comment-head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.comments-body.is-collapsed { display: none; }
.comment-foot { display: flex; gap: 10px; flex-wrap: wrap; }

.tag-genre {
  color: var(--ink);
  border-color: rgba(244, 185, 95, .28);
  background: rgba(244, 185, 95, .08);
}

@media (max-width: 720px) {
  .release-card .tag-row {
    gap: 5px;
  }
  .release-card .tag-genre {
    font-size: 10px;
    padding-inline: 7px;
  }
}

.tag-live { color: #fff4e2; border-color: rgba(229,55,37,.42); background: linear-gradient(135deg, rgba(229,55,37,.25), rgba(244,185,95,.12)); }
.empty-action { display: grid; gap: 14px; justify-items: start; }
.empty-action p { margin: 0; color: var(--muted); }
.profile-public-card { display: flex; gap: 16px; align-items: center; padding: 18px; margin-bottom: 20px; }
.detail-skeleton { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 62px 34px 34px; min-height: 420px; }
.detail-skeleton > div:first-child,
.detail-skeleton span,
.detail-skeleton strong,
.detail-skeleton p { background: linear-gradient(90deg,#170707,#2b100c,#170707); border: 1px solid rgba(244,185,95,.08); }
.detail-skeleton > div:first-child { aspect-ratio: 2/3; }
.detail-skeleton > div:last-child { display: grid; align-content: center; gap: 14px; }
.detail-skeleton span { width: 110px; height: 24px; }
.detail-skeleton strong { width: min(520px, 80%); height: 74px; }
.detail-skeleton p { width: min(620px, 100%); height: 120px; }
.mobile-tab.active { box-shadow: inset 0 0 0 1px rgba(244,185,95,.28), 0 0 18px rgba(229,55,37,.2); }
@media (max-width: 1180px) {
  .toplists-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .daily-anime-inner,
.hidden-treasure-inner { grid-template-columns: 84px minmax(0,1fr); padding: 12px; gap: 12px; }
  .daily-anime-inner img,
.hidden-treasure-inner img { width: 84px; }
  .daily-anime-inner h3,
.hidden-treasure-inner h3 { font-size: 24px; }
  .season-controls { justify-content: stretch; width: 100%; }
  .season-controls select,
  .season-controls input,
  .season-controls button { max-width: none; width: 100%; }
  .rank-row { grid-template-columns: 34px minmax(0,1fr); }
  .rated-row { grid-template-columns: 34px 46px minmax(0,1fr); padding: 10px; }
  .rated-row img { width: 46px; }
  .compact-pager { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .profile-public-card { align-items: flex-start; }
  .detail-skeleton { grid-template-columns: 100px 1fr; padding: 58px 16px 20px; min-height: 300px; }
}


/* --- v38: Listen-Ansicht als Standard + Aktionsmenü über Karten --- */
.list-tabs {
  position: relative;
  z-index: 60;
  overflow: visible;
  flex-wrap: wrap;
}

.list-tab-item {
  position: relative;
  z-index: 1;
}

.list-tab-item.menu-open {
  z-index: 120;
}

.list-menu {
  z-index: 9999;
}

.library-grid,
.library-list {
  position: relative;
  z-index: 1;
}

.footer-mark .brand-radar { inset: 5px; }
.footer-mark .brand-initials { font-size: 14px; }

/* AnimeRadar selected image logo */
.brand-mark {
  padding: 0;
  border: 1px solid rgba(244,185,95,.34);
  background: #09090b;
  overflow: hidden;
  border-radius: 14px;
  clip-path: none;
  box-shadow: 8px 8px 0 rgba(0,0,0,.32), 0 0 18px rgba(214,39,24,.16);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.footer-mark {
  border-radius: 12px;
}


/* Consent banner */
.consent-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(244,185,95,.34);
  background: linear-gradient(135deg, rgba(19,5,5,.96), rgba(7,3,3,.98));
  box-shadow: 0 18px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
}
.consent-banner.is-hidden { display: none; }
.consent-copy strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: .06em;
  font-size: 18px;
  margin-bottom: 7px;
}
.consent-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 760px;
}
.consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .consent-banner {
    grid-template-columns: 1fr;
    bottom: 78px;
    padding: 16px;
  }
  .consent-actions { justify-content: stretch; }
  .consent-actions button { flex: 1 1 190px; }
}

/* --- v48 mobile navigation: 2 rows, no horizontal scroll --- */
@media (max-width: 760px) {
  .shell {
    padding-bottom: 136px;
  }

  .site-footer {
    margin-bottom: 112px;
  }

  .mobile-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: minmax(34px, auto);
    align-items: stretch;
    gap: 4px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 6px;
    overflow: visible;
    max-width: none;
  }

  .mobile-tab {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
    padding: 0 4px;
    font-size: 9px;
    line-height: 1.05;
    letter-spacing: .035em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    border-radius: 10px;
  }
}

@media (max-width: 380px) {
  .mobile-tabs {
    left: 6px;
    right: 6px;
    bottom: 6px;
    gap: 3px;
    padding: 5px;
  }

  .mobile-tab {
    min-height: 32px;
    padding: 0 3px;
    font-size: 8px;
    letter-spacing: .02em;
  }
}

/* --- v56 mobile feature parity: keep desktop unchanged, improve mobile access --- */
.mobile-library-extra {
  display: none;
}

@media (max-width: 760px) {
  /* 1 + 8: keep global refresh available on mobile without crowding the header. */
  .top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .top-actions .ghost-action#refreshGlobalBtn {
    display: inline-grid !important;
    place-items: center;
    flex: 0 0 40px;
    inline-size: 40px;
    min-inline-size: 40px;
    max-inline-size: 40px;
    min-height: 40px;
    padding: 0 !important;
    font-size: 0;
    border-color: rgba(244,185,95,.34);
    background: rgba(244,185,95,.075);
    box-shadow: none;
  }

  .top-actions .ghost-action#refreshGlobalBtn::before {
    content: '↻';
    font-size: 20px;
    line-height: 1;
    color: var(--gold);
  }

  .top-actions .solid-action#authBtn {
    max-width: 118px;
    min-height: 40px;
    padding-inline: 9px !important;
    font-size: 10px;
    letter-spacing: .035em;
  }

  /* 7: show the brand subline again on mobile in a compact form. */
  .brand-text small {
    display: block !important;
    max-width: 118px;
    margin-top: 3px;
    font-size: 8px !important;
    letter-spacing: .08em;
    white-space: nowrap;
  }

  /* 2: bring back a compact hero visual on mobile. */
  .hero-art {
    display: block !important;
    min-height: 220px !important;
    height: 220px;
    order: -1;
    border-bottom: 1px solid rgba(244,185,95,.12);
  }

  .hero-art .hero-banner {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .52;
    filter: saturate(1.04) contrast(1.08);
  }

  .hero-art .hero-poster {
    width: min(36%, 138px) !important;
    right: 16px !important;
    bottom: 18px !important;
    box-shadow: 12px 12px 0 rgba(0,0,0,.32);
  }

  .hero-art::after {
    background: linear-gradient(90deg, rgba(9,3,3,.94), rgba(9,3,3,.24) 48%, rgba(9,3,3,.12));
  }

  .hero-copy {
    padding-top: 24px !important;
  }

  /* 5: make collapsed calendar filters read like an obvious control. */
  .calendar-filters .filter-toggle {
    min-height: 58px;
    border-color: rgba(244,185,95,.34);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 10px 24px rgba(0,0,0,.18);
  }

  .calendar-filters .filter-toggle span:first-child::after {
    content: ' · Genre, Format, Herkunft, Sortierung';
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
  }

  .calendar-filters .filter-toggle-state {
    white-space: nowrap;
    color: #fff8eb;
    border-color: rgba(244,185,95,.42);
    background: rgba(229,55,37,.22);
  }

  /* 6: show the same important list metadata on mobile cards/rows. */
  .library-list-row .library-list-cell:last-child {
    display: flex !important;
  }

  .mobile-library-extra {
    display: grid;
    gap: 7px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.075);
  }

  .mobile-library-extra span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink);
    font-size: 12px;
  }

  .mobile-library-extra strong {
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
}

@media (max-width: 420px) {
  .brand-text strong {
    font-size: 16px !important;
  }

  .brand-text small {
    max-width: 96px;
    font-size: 7px !important;
  }

  .top-actions .ghost-action#refreshGlobalBtn {
    flex-basis: 36px;
    inline-size: 36px;
    min-inline-size: 36px;
    max-inline-size: 36px;
  }

  .top-actions .solid-action#authBtn {
    max-width: 104px;
    font-size: 9px;
  }

  .hero-art {
    min-height: 190px !important;
    height: 190px;
  }

  .calendar-filters .filter-toggle span:first-child::after {
    content: ' · Genre, Format, Herkunft';
  }
}


/* --- v63: mobile comment section header fix --- */
.comment-band .band-head {
  min-width: 0;
}

.comment-band .band-head > div:first-child {
  min-width: 0;
}

.comment-band .band-head h2 {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .comment-band .band-head.flush {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .comment-band .comment-head-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }

  .comment-band .comment-head-actions .small-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding-inline: 8px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .comment-band .comment-head-actions {
    grid-template-columns: 1fr;
  }
}

/* --- v64: mobile start hero compact banner --- */
@media (max-width: 760px) {
  .hero-panel {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 12px !important;
  }

  .hero-panel::before {
    opacity: .52;
  }

  .hero-art {
    order: 0 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 92px !important;
    height: 104px !important;
    min-height: 104px !important;
    border: 1px solid rgba(244,185,95,.22) !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 8px 8px 0 rgba(0,0,0,.28);
  }

  .hero-art .hero-banner {
    opacity: .86 !important;
    filter: saturate(1.08) contrast(1.08) !important;
  }

  .hero-art .hero-poster {
    display: none !important;
  }

  .hero-art::after {
    background: linear-gradient(0deg, rgba(8,3,3,.58), rgba(8,3,3,.08)) !important;
  }

  .hero-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    padding: 0 !important;
    min-width: 0;
  }

  .hero-panel .hero-copy .section-kicker,
  .hero-panel .hero-copy p,
  .hero-panel .hero-actions {
    display: none !important;
  }

  .hero-copy .hero-main-title {
    margin: 0 !important;
    max-width: 100% !important;
    font-size: clamp(24px, 7.3vw, 32px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.035em !important;
  }

  .hero-copy .hero-main-title::after {
    content: 'Laufende Serien & kommende Folgen';
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.35;
    text-transform: none;
  }
}

@media (max-width: 420px) {
  .hero-panel {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  .hero-art {
    width: 78px !important;
    height: 92px !important;
    min-height: 92px !important;
    border-radius: 14px;
  }

  .hero-copy .hero-main-title {
    font-size: clamp(22px, 7.8vw, 28px) !important;
  }

  .hero-copy .hero-main-title::after {
    margin-top: 7px;
    font-size: 11px;
  }
}


/* --- v65: fixed BLEACH mobile hero image --- */
.hero-mobile-fixed { display: none; }
@media (max-width: 760px) {
  .hero-art .hero-mobile-fixed {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .95;
    filter: saturate(1.08) contrast(1.08);
  }
  .hero-art .hero-banner,
  .hero-art .hero-poster {
    display: none !important;
  }
}


/* --- v66: use the attached BLEACH image as the fixed start hero on desktop and mobile --- */
.hero-art .hero-fixed-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border: 1px solid rgba(244,185,95,.20);
  border-radius: 20px;
  opacity: .96;
  filter: saturate(1.04) contrast(1.03);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
}
.hero-art .hero-banner,
.hero-art .hero-poster,
.hero-mobile-fixed {
  display: none !important;
}
.hero-art::after {
  background: linear-gradient(90deg, rgba(10,4,4,.82) 0%, rgba(10,4,4,.28) 42%, rgba(10,4,4,.08) 72%), linear-gradient(0deg, rgba(8,3,3,.76) 0%, rgba(8,3,3,.18) 58%, rgba(8,3,3,0) 100%);
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero-art .hero-fixed-image {
    border-radius: 16px;
    box-shadow: none;
  }
}
@media (max-width: 420px) {
  .hero-art .hero-fixed-image {
    border-radius: 14px;
  }
}

/* --- v68: robust trailer section --- */
.trailer-content {
  margin-top: 14px;
}
.trailer-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(244,185,95,.22);
  background: rgba(0,0,0,.28);
  box-shadow: 10px 10px 0 rgba(0,0,0,.22);
}
.trailer-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.trailer-source {
  margin-top: 10px;
}
.trailer-fallback {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.trailer-fallback p {
  margin: 0;
  color: var(--muted);
}
.trailer-fallback .ghost-action {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
@media (max-width: 760px) {
  .trailer-frame {
    box-shadow: none;
  }
  .trailer-fallback .ghost-action {
    width: 100%;
  }
}


/* --- v69: 5-star rating editor and detail action cleanup --- */
.rating-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(244,185,95,.18);
  background: rgba(255,255,255,.035);
}
.rating-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}
.rating-stars-wrap {
  display: none;
  gap: 8px;
}
.rating-editor.is-open .rating-stars-wrap {
  display: grid;
}
.star-rating {
  --rating-fill: 0%;
  position: relative;
  display: inline-block;
  width: max-content;
  padding: 4px 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 2px;
}
.star-layer {
  display: block;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.star-layer-back {
  color: rgba(255,244,226,.28);
}
.star-layer-fill {
  position: absolute;
  inset: 4px auto auto 0;
  width: var(--rating-fill);
  max-width: 100%;
  overflow: hidden;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(244,185,95,.28);
  transition: width .12s ease;
}
.star-hit-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(15px, 1fr));
}
.star-hit {
  border: 0;
  background: transparent;
  padding: 0;
  min-width: 15px;
  min-height: 42px;
  cursor: pointer;
}
.star-hit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.star-rating:has(.star-hit:hover),
.star-rating:has(.star-hit:focus-visible) {
  transform: translateY(-1px) scale(1.03);
}
.rating-editor-value {
  color: #fff4e2;
  font-weight: 950;
  letter-spacing: .02em;
}
.rating-clear {
  justify-self: start;
  font-size: 11px;
}
.rating-clear.is-hidden {
  display: none !important;
}
@media (max-width: 760px) {
  .rating-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .star-rating {
    font-size: 32px;
  }
  .star-hit {
    min-height: 44px;
    min-width: 14px;
  }
}


/* --- v71: mobile detail actions, unified library dropdowns, trailer stability --- */
.detail-action-row { align-items: center; }
.detail-list-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.list-plus-icon { position: relative; width: 19px; height: 16px; display: inline-block; flex: 0 0 auto; }
.list-plus-icon::before { content: ''; position: absolute; left: 0; top: 1px; width: 12px; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor; border-radius: 999px; }
.list-plus-icon::after { content: '+'; position: absolute; right: -1px; top: -7px; font-size: 18px; line-height: 1; font-weight: 950; }
.detail-fav-action { width: 48px; min-width: 48px; padding: 0; display: inline-grid; place-items: center; }
.heart-icon { font-size: 24px; line-height: 1; color: var(--gold); filter: drop-shadow(0 6px 14px rgba(0,0,0,.28)); }
.detail-fav-action.is-favorite .heart-icon { color: #ff5a4a; }
.add-list-dialog { width: min(520px, calc(100% - 28px)); }
.add-list-title { font-size: 24px; line-height: 1.05; margin: 0 0 6px; text-transform: none; }
.list-choice-grid { display: grid; gap: 10px; margin: 16px 0; }
.list-choice { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.list-choice:hover, .list-choice.is-selected { border-color: rgba(244,185,95,.36); background: rgba(244,185,95,.08); }
.list-choice strong, .list-choice small { display: block; }
.list-choice small { color: var(--muted); margin-top: 3px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.list-choice-state { width: 32px; height: 32px; border: 1px solid rgba(244,185,95,.22); display: grid; place-items: center; color: var(--gold); font-weight: 950; background: rgba(0,0,0,.18); }
.trailer-frame iframe { background: #000; }
@media (max-width: 760px) {
  .detail-action-row { display: grid !important; grid-template-columns: minmax(0, 1fr) 52px !important; width: 100%; gap: 10px !important; }
  .detail-action-row .detail-list-action, .detail-action-row .detail-fav-action { width: 100%; }
  .detail-fav-action { min-width: 0; min-height: 48px; }
  .trailer-frame { min-height: 190px; }
}
@media (max-width: 420px) {
  .detail-action-row { grid-template-columns: minmax(0, 1fr) 48px !important; }
  .detail-list-action span:last-child { font-size: 11px; }
}


/* --- v72: polished add-to-list dialog in AnimeRadar red/dark style --- */
.app-dialog.add-list-dialog,
.add-list-dialog {
  width: min(560px, calc(100vw - 28px)) !important;
  max-height: min(760px, calc(100vh - 28px));
  padding: 0 !important;
  border: 1px solid rgba(140, 22, 20, .82) !important;
  background: #090303 !important;
  color: var(--ink) !important;
  box-shadow: 0 36px 100px rgba(0,0,0,.82), 0 0 0 1px rgba(244,185,95,.06) inset;
  overflow: hidden;
}
.add-list-dialog::backdrop {
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}
.add-list-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(190,38,30,.24), transparent 34%),
    radial-gradient(circle at 100% 16%, rgba(244,185,95,.09), transparent 30%),
    linear-gradient(145deg, rgba(34,8,7,.96), rgba(9,3,3,.99) 58%, rgba(16,5,5,.98));
}
.add-list-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244,185,95,.08), transparent 22%, transparent 78%, rgba(190,38,30,.10));
  pointer-events: none;
}
.add-list-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(244,185,95,.12);
}
.add-list-head h2 {
  margin: 4px 0 0;
  color: #fff4e2;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 48px);
  line-height: .88;
  letter-spacing: -.04em;
}
.add-list-close {
  position: static !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.18) !important;
  background: rgba(0,0,0,.34) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}
.add-list-close:hover {
  border-color: rgba(244,185,95,.42) !important;
  background: rgba(190,38,30,.22) !important;
  color: var(--gold) !important;
}
.add-list-body {
  position: relative;
  padding: 18px 22px 22px;
}
.add-list-title {
  margin: 0;
  color: #fff4e2;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 36px);
  line-height: .96;
  letter-spacing: -.03em;
  text-transform: none;
}
.add-list-intro {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
.list-choice-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  max-height: min(320px, 42vh);
  overflow: auto;
  padding-right: 4px;
}
.list-choice {
  position: relative;
  width: 100%;
  min-height: 68px;
  border: 1px solid rgba(244,185,95,.14) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.02)) !important;
  color: var(--ink) !important;
  padding: 13px 13px 13px 15px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 0;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  cursor: pointer;
}
.list-choice::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--gold));
  opacity: .55;
}
.list-choice:hover,
.list-choice:focus-visible {
  border-color: rgba(244,185,95,.42) !important;
  background: linear-gradient(135deg, rgba(190,38,30,.18), rgba(244,185,95,.055)) !important;
  transform: translateY(-1px);
}
.list-choice.is-selected {
  border-color: rgba(255,90,74,.56) !important;
  background: linear-gradient(135deg, rgba(190,38,30,.26), rgba(244,185,95,.075)) !important;
}
.list-choice strong,
.list-choice small {
  display: block;
  min-width: 0;
}
.list-choice strong {
  color: #fff4e2;
  font-weight: 950;
  overflow-wrap: anywhere;
}
.list-choice small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.list-choice.is-selected small {
  color: rgba(255,244,226,.74);
}
.list-choice-state {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid rgba(244,185,95,.22) !important;
  display: grid;
  place-items: center;
  color: var(--gold) !important;
  font-weight: 950;
  font-size: 18px;
  background: rgba(0,0,0,.28) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.list-choice.is-selected .list-choice-state {
  color: #fff4e2 !important;
  border-color: rgba(255,90,74,.48) !important;
  background: rgba(190,38,30,.42) !important;
}
.add-list-footer {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 10px;
  padding-top: 2px;
}
.add-list-footer .ghost-action,
.add-list-footer .solid-action {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  text-align: center;
}
.add-list-footer .solid-action {
  background: linear-gradient(135deg, var(--red), #5d0d0b) !important;
  color: #fff4e2 !important;
  border-color: rgba(244,185,95,.20) !important;
}
.add-list-footer .solid-action:hover {
  filter: brightness(1.08);
  border-color: rgba(244,185,95,.42) !important;
}
@media (max-width: 760px) {
  .app-dialog.add-list-dialog,
  .add-list-dialog {
    width: calc(100vw - 18px) !important;
    max-height: calc(100dvh - 18px) !important;
  }
  .add-list-head {
    padding: 18px 16px 14px;
    gap: 12px;
  }
  .add-list-head h2 {
    font-size: clamp(30px, 10vw, 42px);
  }
  .add-list-body {
    padding: 16px;
  }
  .add-list-title {
    font-size: clamp(24px, 8vw, 32px);
  }
  .list-choice-grid {
    max-height: 46dvh;
    margin: 16px 0;
  }
  .list-choice {
    min-height: 64px;
    padding: 12px !important;
    grid-template-columns: minmax(0, 1fr) 36px;
  }
  .add-list-footer {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 380px) {
  .add-list-head,
  .add-list-body {
    padding-left: 12px;
    padding-right: 12px;
  }
  .add-list-close {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
  }
}


/* --- v73: list popup supports add/remove toggles --- */
.list-choice.is-selected .list-choice-state {
  font-size: 22px;
  line-height: 1;
}
.list-choice.is-selected:hover small,
.list-choice.is-selected:focus-visible small {
  color: #ffd6d6;
}
.list-choice.is-selected:hover .list-choice-state,
.list-choice.is-selected:focus-visible .list-choice-state {
  border-color: rgba(255, 96, 96, .48);
  color: #ff9b9b;
}


/* --- v75: remove the duplicate sidebar list controls from anime detail view --- */
.side-editor #detailList,
.side-editor label:has(#detailList),
.side-editor #removeAnimeBtn {
  display: none !important;
}


/* --- v76: mobile-safe trailer playback --- */
.trailer-mobile-open {
  display: none;
}
@media (max-width: 760px) {
  .trailer-frame {
    display: none !important;
  }
  .trailer-mobile-open {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 190px;
    padding: 18px;
    border: 1px solid rgba(244,185,95,.24);
    background-color: #110605;
    background-size: cover;
    background-position: center;
    color: #fff7ec;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
  }
  .trailer-mobile-open::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7,2,2,.82), rgba(7,2,2,.22));
    z-index: -1;
  }
  .trailer-mobile-open span:last-child {
    position: relative;
    z-index: 1;
    padding: 10px 14px;
    border: 1px solid rgba(244,185,95,.34);
    background: rgba(120,18,14,.86);
    box-shadow: 0 12px 28px rgba(0,0,0,.32);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-align: center;
  }
  .trailer-mobile-play {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #e62117;
    box-shadow: 0 12px 34px rgba(0,0,0,.35);
    font-size: 22px;
    line-height: 1;
    text-indent: 3px;
  }
}
@media (max-width: 420px) {
  .trailer-mobile-open {
    min-height: 168px;
  }
  .trailer-mobile-open span:last-child {
    width: 100%;
    padding-inline: 10px;
    font-size: 12px;
  }
}


/* --- v77: embedded trailers on mobile again, with YouTube link only as fallback --- */
.trailer-help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.trailer-help-row .trailer-source {
  margin-top: 0;
}
.trailer-external-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(244,185,95,.22);
  background: rgba(120,18,14,.36);
  color: var(--gold);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}
.trailer-external-fallback:hover {
  background: rgba(177,35,27,.48);
  border-color: rgba(244,185,95,.42);
  color: #fff2dc;
}
@media (max-width: 760px) {
  .trailer-band {
    overflow: visible;
  }
  .trailer-frame {
    display: block !important;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0 !important;
    border-radius: 16px;
    border-color: rgba(244,185,95,.26);
    background: #000;
  }
  .trailer-frame iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    background: #000;
  }
  .trailer-mobile-open {
    display: none !important;
  }
  .trailer-help-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .trailer-external-fallback {
    width: 100%;
    min-height: 40px;
    text-align: center;
  }
}
@media (max-width: 420px) {
  .trailer-frame {
    border-radius: 14px;
  }
  .trailer-external-fallback {
    font-size: 11px;
    padding-inline: 8px;
  }
}


/* --- v79: Season filters as direct buttons + year dropdown --- */
.season-controls {
  width: min(100%, 780px);
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
  gap: 14px;
  justify-content: end;
  align-items: end;
}
.season-control-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.season-control-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.season-button-group,
.season-year-buttons,
.season-year-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
.season-button-group,
.season-year-buttons {
  flex-wrap: nowrap;
}
.season-choice,
.season-year-choice,
.season-year-dropdown summary {
  min-height: 44px;
  border: 1px solid rgba(244,185,95,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(229,55,37,.06));
  color: var(--muted);
  border-radius: 14px;
  padding: 0 14px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.season-choice:hover,
.season-year-choice:hover,
.season-year-dropdown summary:hover {
  color: var(--ink);
  border-color: rgba(244,185,95,.34);
  background: linear-gradient(135deg, rgba(229,55,37,.18), rgba(244,185,95,.09));
}
.season-choice.is-active,
.season-year-choice.is-active,
.season-year-option.is-active {
  color: #fff;
  border-color: rgba(229,55,37,.82);
  background: linear-gradient(135deg, rgba(229,55,37,.34), rgba(117,14,9,.46));
  box-shadow: inset 0 0 0 1px rgba(244,185,95,.16), 0 10px 26px rgba(229,55,37,.12);
}
.season-choice:active,
.season-year-choice:active,
.season-year-dropdown summary:active {
  transform: translateY(1px);
}
.season-year-row {
  position: relative;
}
.season-year-buttons {
  min-width: 0;
}
.season-year-choice {
  min-width: 76px;
  flex: 0 0 auto;
}
.season-year-dropdown {
  position: relative;
  flex: 0 0 auto;
}
.season-year-dropdown summary {
  list-style: none;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  gap: 8px;
  align-items: center;
  min-width: 104px;
}
.season-year-dropdown summary::-webkit-details-marker { display: none; }
.season-year-dropdown summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.season-year-dropdown[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}
.season-year-menu {
  position: absolute;
  z-index: 150;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 82vw);
  max-height: min(420px, 58vh);
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(244,185,95,.18);
  background: linear-gradient(180deg, rgba(20,7,6,.98), rgba(9,3,3,.98));
  box-shadow: 0 26px 70px rgba(0,0,0,.56), 0 0 0 1px rgba(229,55,37,.10);
  border-radius: 18px;
}
.season-year-option {
  min-height: 38px;
  border: 1px solid rgba(244,185,95,.12);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  border-radius: 12px;
  font-weight: 950;
  cursor: pointer;
}
.season-year-option:hover {
  color: var(--ink);
  border-color: rgba(244,185,95,.32);
  background: rgba(229,55,37,.14);
}
@media (max-width: 980px) {
  .season-controls {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .season-button-group,
  .season-year-row {
    width: 100%;
  }
  .season-choice {
    flex: 1 1 0;
    padding-inline: 8px;
  }
}
@media (max-width: 760px) {
  .season-controls {
    gap: 12px;
  }
  .season-control-label {
    font-size: 11px;
  }
  .season-button-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .season-choice {
    min-height: 40px;
    padding-inline: 6px;
    font-size: 12px;
  }
  .season-year-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .season-year-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .season-year-choice {
    min-width: 0;
    min-height: 40px;
    padding-inline: 6px;
    font-size: 12px;
  }
  .season-year-dropdown summary {
    min-width: 46px;
    width: 46px;
    min-height: 40px;
    padding-inline: 0;
    display: grid;
    place-items: center;
    grid-template-columns: 1fr;
  }
  .season-year-dropdown summary span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .season-year-dropdown summary::after {
    margin-top: -2px;
  }
  .season-year-menu {
    right: 0;
    width: min(300px, calc(100vw - 32px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 390px) {
  .season-choice {
    font-size: 11px;
    letter-spacing: -.02em;
  }
  .season-year-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* --- v80: Season layout desktop + mobile dropdown visibility fix --- */
#view-season {
  overflow: visible !important;
}

#view-season .page-title-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 18px !important;
  overflow: visible !important;
}

#view-season .page-title-row > div:first-child {
  min-width: 0;
  max-width: 920px;
}

#view-season .season-controls {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr) !important;
  align-items: end !important;
  justify-content: stretch !important;
  gap: 16px !important;
  overflow: visible !important;
  margin-top: 2px;
}

#view-season .season-control-block,
#view-season .season-year-row,
#view-season .season-button-group,
#view-season .season-year-buttons {
  min-width: 0;
  max-width: 100%;
}

#view-season .season-button-group,
#view-season .season-year-buttons {
  display: grid !important;
  gap: 8px !important;
}

#view-season .season-button-group {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

#view-season .season-year-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: stretch !important;
  position: relative !important;
  overflow: visible !important;
}

#view-season .season-year-buttons {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

#view-season .season-choice,
#view-season .season-year-choice {
  min-width: 0 !important;
  width: 100% !important;
  padding-inline: 10px !important;
  text-align: center;
}

#view-season .season-year-dropdown {
  position: relative !important;
  z-index: 40 !important;
}

#view-season .season-year-dropdown summary {
  min-width: 132px !important;
  width: auto !important;
  height: 44px !important;
  padding-inline: 14px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 12px !important;
  place-items: center stretch !important;
}

#view-season .season-year-dropdown summary span {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: nowrap !important;
  border: 0 !important;
  text-align: left;
}

#view-season .season-year-menu {
  z-index: 10000 !important;
  right: 0 !important;
  left: auto !important;
  top: calc(100% + 10px) !important;
  width: min(360px, calc(100vw - 32px)) !important;
  max-height: min(430px, 62vh) !important;
  border: 1px solid rgba(229,55,37,.48) !important;
  background: linear-gradient(180deg, rgba(24,6,5,.99), rgba(9,3,3,.99)) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.72), 0 0 0 1px rgba(244,185,95,.16), 0 0 36px rgba(229,55,37,.16) !important;
}

@media (max-width: 1120px) {
  #view-season .season-controls {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  #view-season .page-title-row {
    gap: 14px !important;
  }

  #view-season .season-controls {
    gap: 12px !important;
  }

  #view-season .season-year-row {
    grid-template-columns: minmax(0, 1fr) minmax(76px, auto) !important;
    gap: 8px !important;
  }

  #view-season .season-year-dropdown summary {
    min-width: 76px !important;
    width: 76px !important;
    min-height: 40px !important;
    height: 40px !important;
    padding-inline: 10px !important;
    grid-template-columns: minmax(0, 1fr) 10px !important;
    font-size: 12px !important;
    border-color: rgba(229,55,37,.54) !important;
    background: linear-gradient(135deg, rgba(229,55,37,.22), rgba(117,14,9,.40)) !important;
    color: var(--ink) !important;
  }

  #view-season .season-year-dropdown summary span {
    display: block !important;
    max-width: 46px;
    overflow: hidden !important;
    text-overflow: ellipsis;
  }

  #view-season .season-year-menu {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-height: min(430px, 56vh) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding: 12px !important;
    border-radius: 22px !important;
  }

  #view-season .season-year-option {
    min-height: 42px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 390px) {
  #view-season .season-year-row {
    grid-template-columns: minmax(0, 1fr) 70px !important;
  }

  #view-season .season-year-dropdown summary {
    min-width: 70px !important;
    width: 70px !important;
    padding-inline: 8px !important;
  }

  #view-season .season-year-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* --- v81: Season year dropdown clean rebuild for desktop and mobile --- */
#view-season,
#view-season .page-title-row,
#view-season .season-controls,
#view-season .season-control-block,
#view-season .season-year-row,
#view-season .season-year-dropdown {
  overflow: visible !important;
}

#view-season .season-controls {
  isolation: isolate;
}

#view-season .season-year-dropdown {
  position: relative !important;
  z-index: 2000 !important;
}

#view-season .season-year-dropdown summary {
  box-sizing: border-box !important;
  min-width: 132px !important;
  width: 132px !important;
  justify-content: center !important;
}

#view-season .season-year-menu {
  box-sizing: border-box !important;
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 172px !important;
  min-width: 172px !important;
  max-width: 172px !important;
  max-height: 360px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  padding: 10px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 18px !important;
  z-index: 99999 !important;
  scrollbar-width: thin;
}

#view-season .season-year-option {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  text-align: center !important;
}

#view-season .season-year-option.is-active::before {
  content: '✓';
  margin-right: 8px;
  color: var(--gold);
}

@media (min-width: 1121px) {
  #view-season .season-controls {
    grid-template-columns: minmax(430px, 1fr) minmax(560px, 1.15fr) !important;
  }
}

@media (max-width: 760px) {
  #view-season .season-year-dropdown summary {
    min-width: 84px !important;
    width: 84px !important;
  }

  #view-season .season-year-dropdown summary span {
    max-width: 52px !important;
  }

  #view-season .season-year-menu {
    position: fixed !important;
    left: 18px !important;
    right: 18px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: min(520px, 68vh) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 14px !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, rgba(24,6,5,.99), rgba(7,2,2,.99)) !important;
    border-color: rgba(229,55,37,.58) !important;
    box-shadow: 0 30px 90px rgba(0,0,0,.86), 0 0 0 1px rgba(244,185,95,.16), 0 0 42px rgba(229,55,37,.18) !important;
  }

  #view-season .season-year-dropdown[open]::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0,0,0,.52);
    backdrop-filter: blur(3px);
  }

  #view-season .season-year-option {
    min-height: 44px !important;
    font-size: 14px !important;
    border-radius: 13px !important;
  }
}

@media (max-width: 380px) {
  #view-season .season-year-menu {
    left: 12px !important;
    right: 12px !important;
    grid-template-columns: 1fr !important;
  }
}

/* --- v82: season year dropdown layering + mobile visibility fix --- */
#view-season.active,
#view-season.active .page-title-row,
#view-season.active .season-controls,
#view-season.active .season-control-block,
#view-season.active .season-year-row,
#view-season.active .season-year-dropdown {
  overflow: visible !important;
}

#view-season.active .page-title-row {
  position: relative !important;
  z-index: 500000 !important;
}

#view-season.active .season-controls {
  position: relative !important;
  z-index: 500001 !important;
  isolation: auto !important;
}

#view-season.active .season-year-dropdown {
  position: relative !important;
  z-index: 500002 !important;
}

#view-season.active .season-year-dropdown[open] {
  z-index: 2147483000 !important;
}

#view-season.active #seasonGrid,
#view-season.active .release-grid,
#view-season.active .release-card {
  position: relative;
  z-index: 1 !important;
}

#view-season.active .season-year-menu {
  z-index: 2147483002 !important;
  pointer-events: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 761px) {
  #view-season.active .season-year-dropdown[open] .season-year-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    max-height: min(420px, 58vh) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 760px) {
  #view-season.active .season-year-row {
    grid-template-columns: minmax(0, 1fr) 48px !important;
    gap: 7px !important;
  }

  #view-season.active .season-year-dropdown summary {
    min-width: 48px !important;
    width: 48px !important;
    max-width: 48px !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    place-items: center !important;
    border-radius: 13px !important;
  }

  #view-season.active .season-year-dropdown summary span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  #view-season.active .season-year-dropdown summary::after {
    margin: 0 !important;
    width: 10px !important;
    height: 10px !important;
  }

  #view-season.active .season-year-dropdown[open]::before {
    content: '' !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483001 !important;
    background: rgba(0,0,0,.58) !important;
    backdrop-filter: blur(3px) !important;
    pointer-events: none !important;
  }

  #view-season.active .season-year-dropdown[open] .season-year-menu {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: min(520px, 66vh) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 14px !important;
    border-radius: 22px !important;
    z-index: 2147483002 !important;
    background: linear-gradient(180deg, rgba(24,6,5,.995), rgba(7,2,2,.995)) !important;
    border: 1px solid rgba(229,55,37,.62) !important;
    box-shadow: 0 30px 90px rgba(0,0,0,.88), 0 0 0 1px rgba(244,185,95,.16), 0 0 42px rgba(229,55,37,.20) !important;
  }

  #view-season.active .season-year-option {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: var(--ink) !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(244,185,95,.18) !important;
    border-radius: 13px !important;
  }

  #view-season.active .season-year-option.is-active {
    border-color: rgba(229,55,37,.85) !important;
    background: linear-gradient(135deg, rgba(229,55,37,.34), rgba(117,14,9,.46)) !important;
  }
}

@media (max-width: 380px) {
  #view-season.active .season-year-dropdown[open] .season-year-menu {
    left: 10px !important;
    right: 10px !important;
    grid-template-columns: 1fr !important;
  }
}


/* --- v83: mobile season year dropdown is rendered in the current viewport --- */
body.season-year-menu-open {
  overflow: hidden;
}

.season-year-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(3px);
  cursor: default;
}

@media (max-width: 760px) {
  body > .season-year-menu.season-year-menu--portal {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 22px !important;
    background: linear-gradient(180deg, rgba(24,6,5,.995), rgba(7,2,2,.995)) !important;
    border: 1px solid rgba(229,55,37,.62) !important;
    box-shadow: 0 30px 90px rgba(0,0,0,.88), 0 0 0 1px rgba(244,185,95,.16), 0 0 42px rgba(229,55,37,.20) !important;
  }

  body > .season-year-menu.season-year-menu--portal .season-year-option {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: var(--ink) !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(244,185,95,.18) !important;
    border-radius: 13px !important;
  }

  body > .season-year-menu.season-year-menu--portal .season-year-option.is-active {
    border-color: rgba(229,55,37,.85) !important;
    background: linear-gradient(135deg, rgba(229,55,37,.34), rgba(117,14,9,.46)) !important;
  }

  #view-season.active .season-year-dropdown[open]::before {
    display: none !important;
    content: none !important;
  }
}

@media (max-width: 380px) {
  body > .season-year-menu.season-year-menu--portal {
    grid-template-columns: 1fr !important;
  }
}


/* --- v84: align mobile detail favorite button with list button + season order fix support --- */
.detail-action-row .detail-list-action,
.detail-action-row .detail-fav-action {
  min-height: 48px;
}
.detail-fav-action {
  height: 48px;
  align-self: stretch;
}
.detail-fav-action .heart-icon {
  display: block;
  transform: translateY(1px);
}
@media (max-width: 760px) {
  .detail-action-row {
    align-items: stretch !important;
  }
  .detail-action-row .detail-list-action,
  .detail-action-row .detail-fav-action {
    min-height: 50px !important;
    height: 50px !important;
  }
  .detail-fav-action {
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    align-self: stretch !important;
  }
  .detail-fav-action .heart-icon {
    line-height: 1 !important;
    transform: translateY(0);
  }
}
@media (max-width: 420px) {
  .detail-action-row .detail-list-action,
  .detail-action-row .detail-fav-action {
    min-height: 48px !important;
    height: 48px !important;
  }
}


/* --- v87: unified AnimeRadar dropdowns and list export dialog --- */
.ar-native-select,
.library-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
}
.ar-select {
  position: relative;
  min-width: 0;
  width: 100%;
  z-index: 20;
}
label:has(.ar-select.is-open),
.library-control-field:has(.ar-select.is-open),
.side-editor label:has(.ar-select.is-open),
.search-filter-card label:has(.ar-select.is-open),
.calendar-filters label:has(.ar-select.is-open),
.panel label:has(.ar-select.is-open),
.auth-form label:has(.ar-select.is-open) {
  position: relative;
  z-index: 220;
}
.ar-select-btn {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: stretch;
  padding: 0;
  text-align: left;
  border-radius: 0;
}
.ar-select-btn:hover,
.ar-select.is-open .ar-select-btn {
  border-color: rgba(244,185,95,.36);
  background: rgba(244,185,95,.07);
}
.ar-select-text {
  padding: 0 12px;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}
.ar-select-arrow {
  border-left: 1px solid rgba(244,185,95,.13);
  background: rgba(0,0,0,.16);
  display: grid;
  place-items: center;
}
.ar-select-arrow::before {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-1px);
  transition: transform .18s ease;
}
.ar-select.is-open .ar-select-arrow::before { transform: rotate(-135deg) translateY(-1px); }
.ar-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 180px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(244,185,95,.16);
  background: #120706;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  display: none;
  z-index: 9999;
}
.ar-select.is-open .ar-select-menu { display: grid; gap: 2px; }
.ar-select-option {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 11px;
  text-align: left;
  font-weight: 850;
  min-height: 40px;
}
.ar-select-option:hover,
.ar-select-option.is-selected {
  background: rgba(244,185,95,.1);
  color: var(--gold);
}
.side-editor .ar-select-btn { min-height: 48px; }
.list-menu { z-index: 260; }
.list-menu-action[data-export-list]::before { content: '⇩'; margin-right: 8px; color: var(--gold); }
.list-export-dialog {
  width: min(460px, calc(100% - 28px));
}
.list-export-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: .95;
}
.list-export-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.list-export-actions .solid-action,
.list-export-actions .ghost-action {
  min-height: 46px;
  justify-content: center;
}
@media (max-width: 760px) {
  .ar-select-menu {
    max-height: min(280px, 42vh);
  }
  .list-export-actions {
    grid-template-columns: 1fr;
  }
}


/* --- v88: make the list view-mode dropdown label fully visible on desktop --- */
@media (min-width: 761px) {
  .library-controls {
    grid-template-columns: 210px 220px minmax(270px, 300px) minmax(0, 1fr);
  }

  .library-control-field:has(#libraryViewMode) {
    min-width: 270px;
  }

  .library-control-field:has(#libraryViewMode) .ar-select-text {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  .library-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-control-field:has(#libraryViewMode) {
    min-width: 0;
  }
}

/* --- v89: cleaner export/import dialogs and main-list actions --- */
.page-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ar-choice-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 0;
}

.ar-choice-card {
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.ar-choice-card h2 {
  margin: 4px 0 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: .92;
  letter-spacing: -.045em;
}

.list-export-summary,
.import-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.list-export-summary span,
.import-result-summary span {
  min-width: 0;
  border: 1px solid rgba(244,185,95,.14);
  background: linear-gradient(180deg, rgba(244,185,95,.07), rgba(229,55,37,.045));
  padding: 12px;
  display: grid;
  gap: 3px;
}

.list-export-summary strong,
.import-result-summary strong {
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-export-summary small,
.import-result-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ar-choice-actions,
.list-export-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

.export-format-card {
  width: 100%;
  border: 1px solid rgba(244,185,95,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(229,55,37,.055));
  color: var(--ink);
  padding: 14px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  text-align: left;
}

.export-format-card:hover,
.export-format-card:focus-visible {
  border-color: rgba(244,185,95,.42);
  background: linear-gradient(135deg, rgba(244,185,95,.10), rgba(229,55,37,.10));
  transform: translateY(-1px);
}

.export-format-icon,
.import-drop-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.22);
  background: rgba(0,0,0,.22);
  color: var(--gold);
  font-weight: 1000;
  font-size: 14px;
}

.export-format-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}

.export-format-card small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.list-import-dialog {
  width: min(720px, calc(100% - 32px));
}

.import-dropzone {
  cursor: pointer;
  border: 1px dashed rgba(244,185,95,.28);
  background: linear-gradient(135deg, rgba(244,185,95,.075), rgba(229,55,37,.045));
  padding: 18px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.import-dropzone:hover {
  border-color: rgba(244,185,95,.48);
  background: linear-gradient(135deg, rgba(244,185,95,.12), rgba(229,55,37,.075));
}

.import-dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.import-dropzone strong {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}

.import-dropzone small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.import-target-row label {
  display: grid;
  gap: 8px;
}

.import-target-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.import-target-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(244,185,95,.16);
  background: rgba(255,255,255,.045);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 850;
}

.import-target-row input:focus {
  outline: 2px solid rgba(244,185,95,.22);
  border-color: rgba(244,185,95,.38);
}

.list-import-preview {
  display: grid;
  gap: 12px;
}

.import-status {
  border: 1px solid rgba(244,185,95,.14);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  padding: 14px;
  font-weight: 850;
}

.import-preview-list {
  max-height: min(280px, 38vh);
  overflow: auto;
  display: grid;
  gap: 6px;
  padding-right: 4px;
}

.import-preview-row {
  border: 1px solid rgba(244,185,95,.12);
  background: rgba(255,255,255,.035);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
}

.import-preview-row span,
.import-preview-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-preview-row span {
  color: var(--ink);
  font-weight: 900;
}

.import-preview-row small {
  color: var(--muted);
}

.import-preview-row.is-found {
  border-color: rgba(244,185,95,.20);
}

.import-preview-row.is-missing {
  border-color: rgba(229,55,37,.18);
  background: rgba(229,55,37,.055);
}

.import-preview-more {
  color: var(--muted);
  font-weight: 850;
  padding: 8px 2px;
}

.list-import-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.list-import-footer .solid-action,
.list-import-footer .ghost-action {
  justify-content: center;
}

.list-menu-action[data-import-list]::before { content: '⇪'; margin-right: 8px; color: var(--gold); }
.list-menu-action[data-export-list]::before { content: '⇩'; margin-right: 8px; color: var(--gold); }

@media (min-width: 761px) {
  .list-export-dialog {
    width: min(620px, calc(100% - 48px));
  }
}

@media (max-width: 760px) {
  .page-actions-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-actions-row .solid-action,
  .page-actions-row .ghost-action {
    width: 100%;
    justify-content: center;
  }

  .ar-choice-dialog,
  .list-import-dialog,
  .list-export-dialog {
    width: min(94vw, 560px);
  }

  .ar-choice-card {
    padding: 22px 16px 18px;
  }

  .list-export-summary,
  .import-result-summary {
    grid-template-columns: 1fr;
  }

  .export-format-card,
  .import-dropzone {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 12px;
    gap: 12px;
  }

  .export-format-icon,
  .import-drop-icon {
    width: 44px;
    height: 44px;
  }

  .list-import-footer {
    grid-template-columns: 1fr;
  }

  .import-preview-list {
    max-height: min(300px, 42vh);
  }
}


/* --- v90: remove personal status feature from detail/list UI --- */
.library-controls {
  grid-template-columns: 220px minmax(270px, 300px) minmax(0, 1fr);
}
.library-list-head,
.library-list-row {
  grid-template-columns: minmax(320px, 2.2fr) 1.15fr .9fr 1.15fr .9fr;
}
@media (max-width: 980px) {
  .library-list-head,
  .library-list-row {
    grid-template-columns: minmax(260px, 2fr) 1fr .9fr 1fr;
  }
}
@media (min-width: 761px) {
  .library-control-field:has(#libraryViewMode) {
    min-width: 270px;
  }
}
@media (max-width: 760px) {
  .library-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* --- v92: desktop brand subline readability + daily anime fixed day --- */
@media (min-width: 761px) {
  .site-header .brand-text small {
    font-size: 12px !important;
    letter-spacing: .13em !important;
    margin-top: 5px !important;
    line-height: 1.05 !important;
  }
}


/* --- v93: clearer desktop header subline + quiet cached detail fallback --- */
@media (min-width: 761px) {
  .site-header .brand {
    gap: 13px !important;
  }
  .site-header .brand-text small {
    display: block !important;
    font-size: clamp(15px, 1.15vw, 18px) !important;
    letter-spacing: .10em !important;
    margin-top: 7px !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    color: var(--gold) !important;
    text-shadow: 0 2px 14px rgba(0,0,0,.42) !important;
  }
}


/* --- v94: real detail pages and actually larger desktop Release Radar subline --- */
@media (min-width: 761px) {
  .topbar .brand {
    gap: 14px !important;
  }
  .topbar .brand-text small,
  header.topbar .brand .brand-text small {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    letter-spacing: .13em !important;
    margin-top: 7px !important;
    font-weight: 950 !important;
    color: var(--gold) !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.detail-page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}
#view-detail #detailContent {
  border: 1px solid rgba(244,185,95,.16);
  background: linear-gradient(145deg, rgba(36,10,8,.84), rgba(8,3,3,.96));
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
  overflow: hidden;
}
#view-detail .detail-hero {
  min-height: 500px;
}
#view-detail .detail-body {
  background: #090303;
}
#view-detail .detail-skeleton {
  min-height: 520px;
}
@media (max-width: 760px) {
  #view-detail #detailContent {
    border-left: 0;
    border-right: 0;
    margin-left: -14px;
    margin-right: -14px;
  }
  #view-detail .detail-hero {
    min-height: 0;
  }
}


/* --- v95: header only logo + AnimeRadar, and full-width detail pages --- */
.topbar .brand-text small {
  display: none !important;
}
@media (min-width: 761px) {
  .topbar .brand {
    gap: 14px !important;
    align-items: center !important;
  }
  .topbar .brand-text strong {
    font-size: clamp(28px, 2.1vw, 36px) !important;
    line-height: 1 !important;
    letter-spacing: -.035em !important;
  }
}

#view-detail {
  width: 100%;
}
.detail-page-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
#view-detail #detailContent {
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
#view-detail .detail-hero {
  min-height: clamp(560px, 48vw, 720px) !important;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) !important;
  align-items: end !important;
  gap: clamp(26px, 4vw, 56px) !important;
  padding: clamp(72px, 8vw, 118px) clamp(32px, 5vw, 72px) clamp(34px, 5vw, 62px) !important;
  border: 1px solid rgba(244,185,95,.16) !important;
  background: linear-gradient(145deg, rgba(36,10,8,.74), rgba(8,3,3,.96)) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.35) !important;
}
#view-detail .detail-hero::before {
  background:
    linear-gradient(90deg, rgba(8,3,3,.96) 0%, rgba(8,3,3,.72) 36%, rgba(8,3,3,.35) 68%, rgba(8,3,3,.74) 100%),
    linear-gradient(0deg, #090303 0%, rgba(9,3,3,.72) 42%, rgba(9,3,3,.24) 100%) !important;
}
#view-detail .detail-hero .backdrop {
  opacity: .46 !important;
  filter: saturate(1.18) contrast(1.05) !important;
}
#view-detail .detail-poster {
  width: min(100%, 340px) !important;
  max-height: 520px !important;
  align-self: end !important;
  box-shadow: -18px 18px 0 rgba(0,0,0,.46), 0 26px 70px rgba(0,0,0,.48) !important;
}
#view-detail .detail-title {
  max-width: 1040px !important;
  align-self: end !important;
}
#view-detail .detail-title h1 {
  max-width: 1050px !important;
  font-size: clamp(58px, 7.2vw, 118px) !important;
  line-height: .86 !important;
}
#view-detail .detail-facts-panel {
  max-width: 1040px !important;
}
#view-detail .detail-rating-board {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
#view-detail .detail-action-row {
  margin-top: 26px !important;
}
#view-detail .detail-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
  gap: clamp(26px, 3vw, 44px) !important;
  padding: clamp(32px, 4vw, 58px) 0 0 !important;
  background: transparent !important;
}
#view-detail .detail-copy {
  min-width: 0 !important;
}
#view-detail .side-editor {
  position: sticky;
  top: 112px;
  min-width: 0 !important;
}
#view-detail .detail-copy #detailDescription {
  max-width: 110ch !important;
  font-size: 16px !important;
  line-height: 1.78 !important;
}
#view-detail .content-band {
  padding: clamp(22px, 3vw, 34px) !important;
}
#view-detail .trailer-frame,
#view-detail .trailer-embed,
#view-detail .trailer-fallback-card {
  max-width: none !important;
}
#view-detail iframe {
  width: 100% !important;
}
@media (max-width: 980px) {
  #view-detail .detail-hero {
    grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) !important;
    min-height: 0 !important;
    padding: 64px 20px 28px !important;
    gap: 20px !important;
  }
  #view-detail .detail-title h1 {
    font-size: clamp(38px, 7vw, 68px) !important;
  }
  #view-detail .detail-body {
    grid-template-columns: 1fr !important;
  }
  #view-detail .side-editor {
    position: static !important;
  }
}
@media (max-width: 760px) {
  .topbar .brand-text strong {
    font-size: 23px !important;
  }
  #view-detail #detailContent {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #view-detail .detail-hero {
    grid-template-columns: 118px minmax(0, 1fr) !important;
    padding: 54px 14px 18px !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  #view-detail .detail-poster {
    width: 118px !important;
    max-height: none !important;
  }
  #view-detail .detail-title h1 {
    font-size: clamp(30px, 9vw, 46px) !important;
    line-height: .95 !important;
  }
  #view-detail .detail-rating-board {
    grid-template-columns: 1fr !important;
  }
  #view-detail .detail-body {
    padding: 16px 0 0 !important;
    gap: 16px !important;
  }
  #view-detail .content-band {
    padding: 16px 12px !important;
  }
}


/* --- v98: detail title typography - cleaner responsive line breaks --- */
.detail-title h1,
#view-detail .detail-title h1 {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  text-wrap: balance;
  max-width: 100% !important;
}

@media (min-width: 981px) {
  #view-detail .detail-title {
    max-width: min(100%, 1180px) !important;
  }

  #view-detail .detail-title h1 {
    font-size: clamp(42px, 4.6vw, 82px) !important;
    line-height: .94 !important;
    letter-spacing: -.035em !important;
    max-width: min(100%, 19ch) !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  #view-detail .detail-title h1 {
    font-size: clamp(34px, 5.6vw, 58px) !important;
    line-height: .98 !important;
    letter-spacing: -.03em !important;
    max-width: 100% !important;
  }
}

@media (max-width: 760px) {
  .detail-title h1,
  #view-detail .detail-title h1 {
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 1.03 !important;
    letter-spacing: -.03em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    text-wrap: balance;
    max-width: 100% !important;
  }
}

@media (max-width: 380px) {
  .detail-title h1,
  #view-detail .detail-title h1 {
    font-size: clamp(25px, 8.5vw, 34px) !important;
    line-height: 1.05 !important;
  }
}

/* --- v100: detail title smaller on desktop and mobile --- */
.detail-title h1,
#view-detail .detail-title h1 {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  text-wrap: balance;
}

@media (min-width: 981px) {
  #view-detail .detail-title h1 {
    font-size: clamp(34px, 3.6vw, 64px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.028em !important;
    max-width: min(100%, 24ch) !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  #view-detail .detail-title h1 {
    font-size: clamp(30px, 4.8vw, 48px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.025em !important;
    max-width: 100% !important;
  }
}

@media (max-width: 760px) {
  .detail-title h1,
  #view-detail .detail-title h1 {
    font-size: clamp(24px, 6.8vw, 34px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.022em !important;
    max-width: 100% !important;
  }
}

@media (max-width: 380px) {
  .detail-title h1,
  #view-detail .detail-title h1 {
    font-size: clamp(22px, 7.2vw, 30px) !important;
    line-height: 1.1 !important;
  }
}

/* --- v101-clean: mobile anime detail layout polish (based on v100, no v96 changes) --- */
@media (max-width: 760px) {
  #view-detail {
    min-width: 0;
  }

  #view-detail .detail-page-shell,
  #view-detail #detailContent,
  #view-detail .detail-body,
  #view-detail .detail-copy,
  #view-detail .side-editor {
    min-width: 0 !important;
  }

  #view-detail .detail-hero {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 46px 12px 16px !important;
    align-items: end !important;
  }

  #view-detail .detail-poster {
    width: 96px !important;
    border-radius: 14px;
    box-shadow: -7px 7px 0 rgba(0,0,0,.42), 0 14px 34px rgba(0,0,0,.38) !important;
  }

  #view-detail .detail-title {
    min-width: 0 !important;
    width: 100% !important;
    align-self: end !important;
  }

  #view-detail .detail-title h1 {
    margin-bottom: 10px !important;
  }

  #view-detail .detail-facts-panel {
    min-width: 0 !important;
  }

  #view-detail .detail-meta-grid,
  #view-detail .detail-meta-grid--hero {
    gap: 6px !important;
    margin: 8px 0 !important;
  }

  #view-detail .detail-meta-grid .tag,
  #view-detail .detail-meta-grid--hero .tag {
    max-width: 100% !important;
    min-height: 30px;
    padding: 6px 9px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  #view-detail .detail-rating-board {
    gap: 8px !important;
    margin-top: 10px !important;
  }

  #view-detail .rating-stat {
    padding: 12px !important;
  }

  #view-detail .rating-stat strong {
    font-size: 22px !important;
  }

  #view-detail .detail-release-box {
    margin-top: 10px !important;
  }

  #view-detail .detail-countdown {
    padding: 11px 12px !important;
  }

  #view-detail .detail-action-row {
    margin-top: 14px !important;
    grid-template-columns: minmax(0, 1fr) 50px !important;
    gap: 8px !important;
  }

  #view-detail .detail-action-row .detail-list-action,
  #view-detail .detail-action-row .detail-fav-action {
    height: 48px !important;
    min-height: 48px !important;
  }

  #view-detail .detail-action-row .detail-list-action span:last-child {
    font-size: 12px !important;
    white-space: normal !important;
    line-height: 1.1 !important;
  }

  #view-detail .detail-body {
    display: flex !important;
    flex-direction: column !important;
    padding: 14px 0 0 !important;
    gap: 14px !important;
  }

  #view-detail .side-editor {
    order: -1 !important;
    display: grid !important;
    gap: 12px !important;
    padding: 14px 12px !important;
    border: 1px solid rgba(244,185,95,.13);
    background: linear-gradient(145deg, rgba(36,10,8,.72), rgba(10,4,4,.92));
    box-shadow: 0 16px 42px rgba(0,0,0,.25);
  }

  #view-detail .side-editor textarea {
    min-height: 96px !important;
  }

  #view-detail .rating-editor {
    margin: 0 !important;
  }

  #view-detail .rating-editor-head {
    gap: 10px !important;
  }

  #view-detail .star-rating {
    --star-size: 32px;
    max-width: 100%;
  }

  #view-detail .detail-copy {
    display: grid !important;
    gap: 14px !important;
  }

  #view-detail .plot-head {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 10px !important;
    align-items: baseline !important;
  }

  #view-detail #detailDescription {
    font-size: 14px !important;
    line-height: 1.72 !important;
    margin: 0 !important;
  }

  #view-detail .trailer-band,
  #view-detail .content-band,
  #view-detail .comment-band {
    padding: 15px 12px !important;
    border-radius: 0 !important;
  }

  #view-detail .trailer-frame {
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  #view-detail .trailer-frame iframe {
    min-height: 0 !important;
  }

  #view-detail .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)) !important;
    gap: 7px !important;
  }

  #view-detail .episode-btn {
    min-height: 38px !important;
    font-size: 13px !important;
  }

  #view-detail .episode-hint {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  #view-detail .comment-composer textarea {
    min-height: 104px !important;
  }

  #view-detail .comment-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  #view-detail .comment-actions .solid-action {
    width: 100% !important;
  }
}

@media (max-width: 380px) {
  #view-detail .detail-hero {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 42px 10px 14px !important;
  }

  #view-detail .detail-poster {
    width: 82px !important;
  }

  #view-detail .detail-action-row {
    grid-template-columns: minmax(0, 1fr) 46px !important;
  }

  #view-detail .star-rating {
    --star-size: 28px;
  }
}

/* --- v109: mobile calendar centering, mobile library-list polish, bilingual search titles --- */
.search-title-romaji {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .weekday-dock {
    scroll-padding-inline: 42vw;
    -webkit-overflow-scrolling: touch;
  }

  .day-chip.active {
    box-shadow: 0 0 0 1px rgba(229,55,37,.42), 0 12px 30px rgba(229,55,37,.16);
  }

  .search-row h3 {
    font-size: 21px !important;
    line-height: 1.08 !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .search-title-romaji {
    font-size: 12px;
    line-height: 1.25;
  }

  .library-list-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
    overflow: hidden;
  }

  .library-list-anime {
    min-width: 0;
    align-items: start;
  }

  .library-list-thumb {
    width: 54px;
  }

  .library-list-main,
  .library-list-title,
  .library-list-sub,
  .library-list-cell,
  .list-name-badge {
    min-width: 0;
    max-width: 100%;
  }

  .library-list-title {
    font-size: 20px !important;
    line-height: 1.05 !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .library-list-cell {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.035);
    border-radius: 14px;
  }

  .library-list-cell.progress-cell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    justify-content: stretch !important;
    gap: 7px !important;
  }

  .library-list-cell.progress-cell::before {
    display: block;
  }

  .library-list-cell.progress-cell strong {
    display: block;
    font-size: 16px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .library-list-cell.progress-cell .progress-track.small {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .library-list-cell.progress-cell small {
    display: block;
    line-height: 1.2;
  }

  .library-list-cell:not(.progress-cell) {
    display: grid !important;
    grid-template-columns: minmax(95px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .library-list-cell:not(.progress-cell)::before {
    min-width: 0;
  }

  .list-name-badge {
    width: 100%;
    justify-content: flex-start;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .library-list-thumb {
    width: 48px;
  }

  .library-list-title {
    font-size: 18px !important;
  }

  .library-list-cell:not(.progress-cell) {
    grid-template-columns: 1fr;
    align-items: start;
  }
}


/* --- v110: mobile detail order - rating between progress and comments --- */
@media (max-width: 760px) {
  #view-detail .detail-copy {
    order: 1 !important;
  }

  #view-detail .side-editor {
    order: 2 !important;
    padding: 0 12px 16px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #view-detail .side-editor:empty {
    display: none !important;
  }

  #view-detail .mobile-rating-slot {
    order: initial !important;
    display: block !important;
    margin-top: 0 !important;
  }

  #view-detail .mobile-rating-slot .rating-editor {
    margin: 0 !important;
  }

  #view-detail .mobile-rating-slot .rating-editor-head {
    align-items: center !important;
  }
}


/* --- V2: safe image rendering hints --- */
img {
  max-width: 100%;
}

/* --- V2.1: UI stability fixes for desktop/mobile --- */
.ar-select-btn:focus-visible,
.ar-select-option:focus-visible {
  outline: 2px solid rgba(244,185,95,.78);
  outline-offset: 2px;
}
.ar-select-option:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .shell {
    padding-bottom: 150px;
  }

  .search-board {
    display: flex;
    flex-direction: column;
  }
  .search-main {
    display: contents;
  }
  .search-input-label {
    order: 0;
  }
  /* V2.1.1: Mobile search UX rollback. Keep results directly below the search field; filters follow after results. */
  .search-results {
    order: 1;
    width: 100%;
  }
  .search-filter-card {
    order: 2;
    width: 100%;
  }

  .mobile-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    padding: 7px;
  }
  .mobile-tab {
    min-width: 0;
    min-height: 42px;
    padding-inline: 4px;
    font-size: 10px;
    line-height: 1.05;
    white-space: normal;
  }

  .consent-banner {
    left: 10px;
    right: 10px;
    bottom: 128px;
    max-height: calc(100vh - 160px);
    overflow: auto;
  }
}

@media (max-width: 420px) {
  .mobile-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shell {
    padding-bottom: 198px;
  }
  .consent-banner {
    bottom: 176px;
  }
}


/* V2.1.4 Import Preview + Franchise/Season Splitter */
.import-help-text {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.45;
}

.import-preview-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  cursor: pointer;
}

.import-preview-row input {
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.import-preview-row input:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.import-preview-row.is-review {
  border-color: rgba(244,185,95,.34);
  background: rgba(244,185,95,.06);
}

.import-result-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .import-result-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import-preview-list {
    max-height: min(360px, 48vh);
  }
}


/* V2.1.6: import preview filter cards */
.import-result-summary .import-summary-card {
  min-width: 0;
  border: 1px solid rgba(244,185,95,.14);
  background: linear-gradient(180deg, rgba(244,185,95,.07), rgba(229,55,37,.045));
  padding: 12px;
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.import-result-summary .import-summary-card:hover,
.import-result-summary .import-summary-card:focus-visible,
.import-result-summary .import-summary-card.is-active {
  border-color: rgba(244,185,95,.50);
  background: linear-gradient(180deg, rgba(244,185,95,.16), rgba(229,55,37,.10));
  outline: none;
}

.import-result-summary .import-summary-card strong {
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-result-summary .import-summary-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.import-filter-title {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --- v2.1.8: styled confirm dialog for list deletion --- */
.ar-confirm-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0 !important;
  border: 1px solid rgba(140, 22, 20, .82) !important;
  background: #090303 !important;
  color: var(--ink) !important;
  box-shadow: 0 36px 100px rgba(0,0,0,.82), 0 0 0 1px rgba(244,185,95,.06) inset;
  overflow: hidden;
}

.ar-confirm-dialog::backdrop {
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}

.ar-confirm-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(190,38,30,.24), transparent 34%),
    radial-gradient(circle at 100% 16%, rgba(244,185,95,.09), transparent 30%),
    linear-gradient(145deg, rgba(34,8,7,.96), rgba(9,3,3,.99) 58%, rgba(16,5,5,.98));
}

.ar-confirm-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244,185,95,.08), transparent 22%, transparent 78%, rgba(190,38,30,.10));
  pointer-events: none;
}

.ar-confirm-head,
.ar-confirm-body,
.ar-confirm-actions {
  position: relative;
}

.ar-confirm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(244,185,95,.12);
}

.ar-confirm-head h2 {
  margin: 4px 0 0;
  color: #fff4e2;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 46px);
  line-height: .88;
  letter-spacing: -.04em;
}

.ar-confirm-x {
  position: static !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.16) !important;
  background: rgba(0,0,0,.22) !important;
  color: var(--ink) !important;
}

.ar-confirm-body {
  padding: 18px 22px 4px;
  display: grid;
  gap: 12px;
}

.ar-confirm-body p {
  margin: 0;
  color: #fff4e2;
  font-weight: 850;
  line-height: 1.45;
}

.ar-confirm-details {
  border: 1px solid rgba(244,185,95,.14);
  background: rgba(0,0,0,.22);
  color: var(--muted);
  padding: 13px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.ar-confirm-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 22px 22px;
}

.ar-confirm-actions .solid-action,
.ar-confirm-actions .ghost-action,
.ar-confirm-actions .danger-action {
  width: 100%;
  min-height: 46px;
  margin-top: 0;
  padding: 0 14px;
}

.ar-confirm-actions .danger-action {
  background: rgba(229,55,37,.08);
  border: 1px solid rgba(255,97,70,.38);
  color: #ffd6cc;
  box-shadow: none;
}

.ar-confirm-actions .danger-action:hover,
.ar-confirm-actions .danger-action:focus-visible {
  background: rgba(229,55,37,.16);
  border-color: rgba(255,97,70,.75);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .ar-confirm-head {
    padding: 20px 18px 14px;
  }

  .ar-confirm-body {
    padding: 16px 18px 2px;
  }

  .ar-confirm-actions {
    grid-template-columns: 1fr;
    padding: 16px 18px 18px;
  }
}

/* --- v2.1.9: public read-only list sharing --- */
.list-public-dot {
  display: inline-flex;
  margin-left: 7px;
  color: var(--gold);
  font-size: 10px;
  vertical-align: middle;
  text-shadow: 0 0 10px rgba(244, 182, 76, .65);
}
.list-menu-action[data-share-list]::before {
  content: '↗';
  margin-right: 8px;
  color: var(--gold);
}
.list-share-dialog .share-summary { margin: 14px 0; }
.share-toggle-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(244, 182, 76, .25);
  border-radius: 16px;
  background: rgba(26, 9, 8, .78);
  color: var(--ink);
}
.share-toggle-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red); }
.share-toggle-row span { display: grid; gap: 4px; }
.share-toggle-row small { color: var(--muted); line-height: 1.45; }
.share-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}
.share-link-box input {
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(244, 182, 76, .28);
  background: rgba(12, 4, 4, .82);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}
.share-link-box.is-disabled { opacity: .6; }
.public-list-content .profile-public-card { margin-bottom: 22px; }
.public-list-grid .public-list-card .poster-wrap { cursor: pointer; }
.public-list-card .lib-meta { gap: 10px; }
@media (max-width: 640px) {
  .share-link-box { grid-template-columns: 1fr; }
  .share-link-box .small-btn { width: 100%; }
}

/* V2.2.0: Statistik-Erklärung für Watch-Streak */
.stat-card .stat-help {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: none;
}

/* V2.2.2: Listenmenü/Export/Bearbeiten-Dialog polish */
.list-tabs {
  overflow: visible;
  padding-bottom: 18px;
}
.list-tab-item.menu-open {
  z-index: 5000;
}
.list-tab-item.menu-open .list-menu-toggle {
  background: rgba(244, 185, 95, .12);
}
.list-menu {
  min-width: 205px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(244, 185, 95, .34);
  background: linear-gradient(180deg, rgba(32, 11, 9, .98), rgba(12, 4, 4, .98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  z-index: 9000;
}
.list-menu.is-open {
  display: grid;
  gap: 6px;
}
.list-menu-action {
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .045);
}
.list-menu-action[data-edit-list]::before {
  content: '✎';
  margin-right: 8px;
  color: var(--gold);
}
.ar-input-dialog .ar-confirm-actions {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}
.ar-input-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.ar-input-field span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ar-input-field input {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(244, 185, 95, .28);
  background: rgba(12, 4, 4, .86);
  color: var(--ink);
  padding: 0 15px;
  font: inherit;
  font-weight: 800;
  outline: none;
}
.ar-input-field input:focus {
  border-color: rgba(244, 185, 95, .72);
  box-shadow: 0 0 0 3px rgba(244, 185, 95, .12);
}
.ar-input-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: #ffb4a8;
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 640px) {
  .ar-input-dialog .ar-confirm-actions {
    grid-template-columns: 1fr;
  }
  .list-menu {
    min-width: 190px;
  }
}


/* V2.2.3: Listenmenue sicher sichtbar + Statistik/Alle-Sync UI polish */
.content-band {
  overflow: visible;
}
#customLists.list-tabs {
  position: relative;
  z-index: 30000;
  overflow: visible;
}
#customLists.list-tabs.has-open-menu {
  padding-bottom: 132px;
  margin-bottom: 8px;
}
#customLists .list-tab-item.menu-open {
  position: relative;
  z-index: 31000;
}
#customLists .list-menu {
  top: calc(100% + 10px);
  right: 0;
  z-index: 32000;
  color: var(--ink);
}
#customLists .list-menu-action {
  color: var(--ink);
  opacity: 1;
}
.library-grid,
.library-list,
.library-list-shell,
.library-list-head,
.library-list-body {
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  #customLists.list-tabs.has-open-menu {
    padding-bottom: 150px;
  }
}


/* V2.2.4: Listenmenue nimmt Layoutplatz ein statt die Tabelle zu ueberdecken */
#customLists.list-tabs.has-open-menu {
  padding-bottom: 0 !important;
  margin-bottom: 18px !important;
  align-items: flex-start;
}
#customLists .list-tab-item.menu-open {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: stretch;
  overflow: visible;
  z-index: 40000;
}
#customLists .list-tab-item.menu-open .list-actions-wrap {
  display: contents;
}
#customLists .list-tab-item.menu-open .list-menu {
  position: static !important;
  grid-column: 1 / -1;
  min-width: 220px;
  width: 100%;
  margin-top: 8px;
  display: grid;
  gap: 4px;
  border-color: rgba(244,185,95,.32);
  background: linear-gradient(180deg, rgba(37,17,14,.98), rgba(18,7,6,.98));
  box-shadow: 0 18px 38px rgba(0,0,0,.44);
}
#customLists .list-tab-item.menu-open .list-menu:not(.is-open) {
  display: none;
}

/* --- V2.3: cloud sync status and library paging --- */
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  max-width: 180px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(12,5,5,.78);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sync-status::before {
  content: '';
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8f827d;
  box-shadow: 0 0 0 3px rgba(143,130,125,.12);
}
.sync-status[data-status="saved"] { color: #d9f6d7; border-color: rgba(112,204,121,.3); }
.sync-status[data-status="saved"]::before { background: #70cc79; box-shadow: 0 0 0 3px rgba(112,204,121,.13); }
.sync-status[data-status="pending"] { color: #ffe5a8; border-color: rgba(244,185,95,.32); }
.sync-status[data-status="pending"]::before { background: var(--gold); animation: syncPulse 1.1s infinite ease-in-out; }
.sync-status[data-status="error"],
.sync-status[data-status="conflict"] { color: #ffd0cb; border-color: rgba(229,55,37,.42); }
.sync-status[data-status="error"]::before,
.sync-status[data-status="conflict"]::before { background: var(--red); box-shadow: 0 0 0 3px rgba(229,55,37,.15); }
@keyframes syncPulse { 50% { opacity: .35; transform: scale(.78); } }
.library-pager {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 18px 0 4px;
}
.library-pager span { color: var(--muted); font-size: 12px; font-weight: 850; }
@media (max-width: 760px) {
  .sync-status {
    max-width: 34px;
    min-width: 34px;
    width: 34px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
  .sync-status::before { flex-basis: 8px; width: 8px; height: 8px; }
  .library-pager { gap: 8px; flex-wrap: wrap; }
}

/* --- V2.3.2: image loading and visitor sync-status polish --- */
.brand-mark picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-fixed-picture {
  display: contents;
}
.sync-status[hidden] {
  display: none !important;
}
.poster-card img,
.release-thumb,
.daily-anime-inner > img,
.hidden-treasure-inner > img,
.release-card > img,
.search-row > img,
.library-card img {
  background-color: #210d0b;
}

/* V2.3.3: schneller, eigener Ladezustand fuer Startseiten-Releases */
.release-item-skeleton {
  pointer-events: none;
  opacity: .72;
}
.release-item-skeleton .release-thumb,
.release-item-skeleton .release-title,
.release-item-skeleton .release-meta,
.release-item-skeleton .countdown {
  color: transparent;
  border-color: transparent;
  background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.09), rgba(255,255,255,.035));
  background-size: 220% 100%;
  animation: ar-release-skeleton 1.25s linear infinite;
}
.release-item-skeleton .release-title,
.release-item-skeleton .release-meta,
.release-item-skeleton .countdown {
  display: block;
  width: min(240px, 70vw);
  min-height: .85em;
  margin-bottom: .35rem;
}
.release-item-skeleton .release-meta { width: min(150px, 48vw); }
.release-item-skeleton .countdown { width: min(115px, 38vw); }
@keyframes ar-release-skeleton {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .release-item-skeleton .release-thumb,
  .release-item-skeleton .release-title,
  .release-item-skeleton .release-meta,
  .release-item-skeleton .countdown { animation: none; }
}


/* V2.3.4: Cloud-Sync-Status fuer alle Nutzer vollstaendig ausblenden. */
.sync-status { display: none !important; }

/* V2.3.5: Suchtreffer-Bild und Titel oeffnen die Detailansicht */
.search-row-image-link,
.search-row-title-link {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.search-row-image-link {
  display: block;
  width: 92px;
  align-self: start;
}
.search-row-image-link img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.search-row-title-link {
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
}
.search-row-title-link h3 {
  margin: 0;
  transition: color .18s ease;
}
.search-row-title-link .search-title-romaji {
  display: block;
}
.search-row-image-link:hover img,
.search-row-image-link:focus-visible img {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 0 0 2px rgba(244,185,95,.62);
}
.search-row-title-link:hover h3,
.search-row-title-link:focus-visible h3 {
  color: var(--gold);
}
.search-row-image-link:focus-visible,
.search-row-title-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .search-row-image-link { width: 74px; }
}
@media (max-width: 520px) {
  .search-row-image-link { width: 70px; }
}

/* --- V2.3.6: mobile detail poster aspect-ratio hotfix --- */
@media (max-width: 760px) {
  #view-detail .detail-poster,
  .detail-dialog .detail-poster {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 2 / 3 !important;
    object-fit: cover !important;
    object-position: center !important;
    flex: 0 0 auto;
  }
}


/* --- v2.3.7: Anime Geheimtipp --- */
.hidden-treasure-reason {
  margin: 10px 0 14px;
  color: var(--gold) !important;
  font-size: 13px;
  font-weight: 800;
}
.hidden-treasure-inner:focus-within {
  outline: 2px solid rgba(244,185,95,.55);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .hidden-treasure-reason { font-size: 12px; }
}

/* --- V2.3.9: verwaiste Bibliothekseintraege sicher entfernen --- */
.library-orphan-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.library-remove-button {
  appearance: none;
  border: 1px solid rgba(255, 103, 78, .55);
  background: rgba(145, 28, 18, .2);
  color: #ffd6cf;
  padding: 5px 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.library-remove-button:hover,
.library-remove-button:focus-visible {
  border-color: #ff765e;
  background: rgba(181, 40, 25, .36);
  color: #fff;
  outline: none;
}
@media (max-width: 760px) {
  .library-orphan-actions {
    align-items: flex-start;
  }
  .library-remove-button {
    min-height: 30px;
    padding: 7px 9px;
  }
}


/* --- V2.4.4: Google und Discord Social Login --- */
.social-auth-block {
  display: grid;
  gap: 10px;
  margin: 2px 0 14px;
}
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,185,95,.28));
}
.auth-divider::after { background: linear-gradient(90deg, rgba(244,185,95,.28), transparent); }
.social-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 178px));
  justify-content: center;
  gap: 8px;
}
.social-auth-btn {
  min-width: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(244,185,95,.24);
  background: rgba(255,255,255,.045);
  color: var(--ink);
  font-weight: 950;
  letter-spacing: .015em;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.social-auth-btn:hover:not(:disabled),
.social-auth-btn:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(244,185,95,.7);
  background: rgba(244,185,95,.09);
}
.social-auth-btn:disabled { opacity: .5; cursor: wait; }
.social-auth-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: #151515;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
}
.social-auth-discord .social-auth-icon { background: #5865f2; color: #fff; font-size: 12px; }
.social-auth-note {
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}
@media (max-width: 760px) {
  .social-auth-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }
  .social-auth-btn { justify-content: flex-start; padding-inline: 16px; }
}


/* --- V2.4.1: verbindlicher OAuth-Benutzername und saubere Auth-Dialoge --- */
.auth-dialog {
  position: relative;
  overflow: auto;
}
.auth-dialog > .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.34);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(35,10,9,.96), rgba(8,3,3,.96));
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.36);
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.auth-dialog > .modal-close:hover,
.auth-dialog > .modal-close:focus-visible {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(92,22,17,.98), rgba(20,5,5,.98));
  color: #fff;
  outline: 2px solid rgba(244,185,95,.22);
  outline-offset: 2px;
}
#authDialog .auth-split {
  padding: 72px 34px 34px;
}
#listDialog > .auth-form {
  padding: 72px 34px 34px;
}
.ar-choice-dialog > .ar-choice-card {
  padding-top: 72px;
}

.username-setup-dialog {
  width: min(880px, calc(100vw - 28px)) !important;
}
.username-setup-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: 30px;
  padding: 38px;
}
.username-setup-copy {
  min-width: 0;
  padding: 8px 4px;
}
.username-setup-copy h2 {
  margin: 12px 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .88;
  overflow-wrap: anywhere;
}
.username-setup-copy > p {
  color: var(--muted);
  line-height: 1.65;
}
.username-lock-note {
  margin-top: 22px;
  padding: 16px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(244,185,95,.32);
  background: linear-gradient(135deg, rgba(244,185,95,.10), rgba(229,55,37,.07));
}
.username-lock-note strong {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}
.username-lock-note span {
  color: var(--ink);
  line-height: 1.45;
  font-weight: 800;
}
.username-setup-form {
  align-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(244,185,95,.18);
  background: rgba(255,255,255,.035);
}
.username-provider-note {
  color: var(--muted);
  font-size: 13px;
}
.username-provider-note strong { color: var(--gold); }
.username-setup-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}
.username-setup-form input {
  width: 100%;
  min-height: 50px;
}
.field-help {
  color: var(--muted);
  line-height: 1.45;
}
.username-setup-form .auth-status {
  margin-top: 2px;
}

@media (max-width: 760px) {
  .auth-dialog > .modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  #authDialog .auth-split {
    padding: 62px 18px 22px;
  }
  #listDialog > .auth-form {
    padding: 62px 18px 22px;
  }
  .ar-choice-dialog > .ar-choice-card {
    padding-top: 62px;
  }
  .username-setup-dialog {
    width: calc(100vw - 10px) !important;
    max-height: calc(100vh - 10px);
  }
  .username-setup-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 16px 18px;
  }
  .username-setup-copy {
    padding: 0;
  }
  .username-setup-copy h2 {
    font-size: clamp(38px, 13vw, 56px);
    margin-bottom: 12px;
  }
  .username-lock-note {
    margin-top: 14px;
  }
  .username-setup-form {
    padding: 16px;
  }
}

/* --- V2.4.6: vereinfachte Mobile-Navigation und mobile Bereichs-Hubs --- */
.mobile-section-tabs,
.mobile-upcoming-panel,
.mobile-account-menu {
  display: none;
}

@media (max-width: 760px) {
  .shell {
    padding-bottom: 104px !important;
  }
  .site-footer {
    margin-bottom: 82px !important;
  }

  /* Fuenf ruhige Hauptziele in genau einer Reihe. */
  .mobile-tabs {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-rows: 58px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    gap: 4px !important;
    padding: 6px !important;
    overflow: visible !important;
    max-width: none !important;
    border-radius: 16px;
  }
  .mobile-tab {
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 6px 2px !important;
    display: grid;
    grid-template-rows: 24px auto;
    place-items: center;
    gap: 2px;
    border-radius: 11px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden;
  }
  .mobile-tab > span {
    display: block;
    color: var(--gold);
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
  }
  .mobile-tab > small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
    font-size: 8.5px;
    font-weight: 950;
    letter-spacing: .025em;
    text-transform: uppercase;
  }
  .mobile-tab.active {
    background: linear-gradient(145deg, rgba(181,31,20,.52), rgba(87,8,6,.72)) !important;
    box-shadow: inset 0 0 0 1px rgba(244,185,95,.32), 0 8px 20px rgba(0,0,0,.26) !important;
  }
  .mobile-tab.active > span,
  .mobile-tab.active > small {
    color: #fff8eb;
  }

  /* Sekundaere Navigation innerhalb von Kalender, Bibliothek und Profil. */
  .mobile-section-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(max-content, 1fr);
    gap: 5px;
    margin: 0 0 18px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    border: 1px solid rgba(244,185,95,.18);
    border-radius: 14px;
    background: rgba(18,7,6,.88);
    box-shadow: 0 14px 32px rgba(0,0,0,.2);
  }
  .mobile-section-tabs::-webkit-scrollbar { display: none; }
  .mobile-section-tab {
    min-width: 0;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .035em;
    line-height: 1.15;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .mobile-section-tab.active {
    border-color: rgba(244,185,95,.34);
    background: linear-gradient(135deg, rgba(174,28,18,.9), rgba(79,7,5,.94));
    color: #fff8eb;
    box-shadow: 0 7px 18px rgba(0,0,0,.25);
  }

  /* Account sitzt oben rechts statt in der Bottom-Bar. */
  .topbar,
  .top-actions {
    overflow: visible !important;
  }
  .top-actions {
    position: relative;
  }
  #authBtn[aria-expanded="true"] {
    border-color: var(--gold);
    background: linear-gradient(135deg, #8f160f, #4d0705);
  }
  .mobile-account-menu:not(.is-hidden) {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    width: min(82vw, 270px);
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(244,185,95,.38);
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(31,10,8,.99), rgba(8,3,3,.99));
    box-shadow: 0 22px 54px rgba(0,0,0,.58);
  }
  .mobile-account-menu button {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .025em;
    text-align: left;
  }
  .mobile-account-menu button:hover,
  .mobile-account-menu button:focus-visible {
    border-color: rgba(244,185,95,.32);
    background: rgba(244,185,95,.08);
    outline: none;
  }
  .mobile-account-menu button.danger {
    color: #ffb3a7;
  }

  /* Kalender-Hub: mobile Upcoming-Ansicht oder kompletter Wochenkalender. */
  #view-calendar .mobile-upcoming-panel {
    display: none;
  }
  #view-calendar.mobile-calendar-mode-upcoming .mobile-upcoming-panel {
    display: block;
  }
  #view-calendar.mobile-calendar-mode-upcoming .calendar-week-content {
    display: none !important;
  }
  #view-calendar.mobile-calendar-mode-week .mobile-upcoming-panel {
    display: none !important;
  }
  #view-calendar.mobile-calendar-mode-week .calendar-week-content {
    display: grid;
  }
  #view-calendar.mobile-calendar-mode-week .page-title-row.calendar-week-content {
    display: flex;
  }
  .mobile-upcoming-panel .page-title-row {
    margin-bottom: 14px;
  }
  .mobile-upcoming-releases {
    display: grid;
    gap: 9px;
  }
  .mobile-upcoming-releases .release-item {
    min-height: 104px;
    border: 1px solid rgba(244,185,95,.15);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
  }

  /* Bibliothek: Alle, eigene Listen und Favoriten unter einem Ziel. */
  #view-lists.mobile-library-mode-all #customLists {
    display: none !important;
  }
  #view-lists.mobile-library-mode-lists #customLists {
    display: flex !important;
  }
  #view-lists.mobile-library-mode-lists #customLists .list-tab-item:first-child {
    display: none !important;
  }

  /* Profil: persoenliche Statistik und Bewertungen sind Unterbereiche. */
  #view-profile [data-mobile-profile-pane] {
    display: none !important;
  }
  #view-profile.mobile-profile-mode-overview [data-mobile-profile-pane="overview"],
  #view-profile.mobile-profile-mode-settings [data-mobile-profile-pane="settings"],
  #view-profile.mobile-profile-mode-ratings [data-mobile-profile-pane="ratings"] {
    display: block !important;
  }
  #view-profile.mobile-profile-mode-ratings .profile-shell {
    display: none !important;
  }
  #view-profile.mobile-profile-mode-overview .profile-shell,
  #view-profile.mobile-profile-mode-settings .profile-shell {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  #view-profile.mobile-profile-mode-ratings .profile-rated-band {
    margin-top: 0;
  }

  .consent-banner {
    bottom: 86px !important;
  }
}

@media (max-width: 420px) {
  .mobile-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-rows: 56px !important;
  }
  .mobile-tab {
    min-height: 56px !important;
  }
  .mobile-tab > small {
    font-size: 7.7px;
    letter-spacing: 0;
  }
  .mobile-section-tab {
    padding-inline: 9px;
    font-size: 9px;
  }
  .shell {
    padding-bottom: 102px !important;
  }
  .consent-banner {
    bottom: 84px !important;
  }
}
@media (max-width: 760px) {
  #authBtn.mobile-account-active {
    border-color: rgba(244,185,95,.78);
    box-shadow: 0 0 0 2px rgba(244,185,95,.12), 6px 6px 0 rgba(0,0,0,.28);
  }
}
@media (max-width: 760px) {
  /* In „Alle“ bleibt der System-Tab sichtbar, damit Teilen/Exportieren erreichbar bleibt. */
  #view-lists.mobile-library-mode-all #customLists {
    display: flex !important;
  }
  #view-lists.mobile-library-mode-all #customLists .list-tab-item:not(:first-child) {
    display: none !important;
  }
}

/* --- V2.4.7: Mobile Bibliotheks-Dropdowns und kompaktes Account-Menü --- */
@media (max-width: 760px) {
  /* Sortierung und Ansicht muessen beim Aufklappen immer ueber dem Listen-Reiter liegen. */
  #view-lists .library-controls {
    position: relative;
    z-index: 50000;
    overflow: visible;
    isolation: isolate;
  }
  #view-lists .library-control-field {
    position: relative;
    z-index: 1;
  }
  #view-lists .library-control-field:has(.ar-select.is-open) {
    z-index: 52000;
  }
  #view-lists .ar-select.is-open {
    z-index: 53000;
  }
  #view-lists .ar-select.is-open .ar-select-menu {
    z-index: 54000;
  }

  /* Das normale Listen-Tab bleibt unter offenen Sortier-/Ansichtsmenues. */
  #view-lists #customLists.list-tabs {
    z-index: 30;
  }
  #view-lists #customLists.list-tabs.has-open-menu {
    z-index: 55000;
  }

  /* Account-Menue mit Abstand zu allen Bildschirmraendern statt gequetscht am Button. */
  .mobile-account-menu:not(.is-hidden) {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 72px);
    right: 12px;
    left: auto;
    width: min(286px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    gap: 7px;
    padding: 10px;
    border-radius: 18px;
    border-color: rgba(244,185,95,.46);
    background:
      radial-gradient(circle at 82% 0%, rgba(181,31,20,.24), transparent 48%),
      linear-gradient(155deg, rgba(35,12,10,.995), rgba(10,4,4,.995));
    box-shadow: 0 24px 64px rgba(0,0,0,.66), 0 0 0 1px rgba(255,255,255,.035) inset;
    overflow: hidden;
  }
  .mobile-account-menu:not(.is-hidden)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(244,185,95,.72), transparent);
  }
  .mobile-account-menu button {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    font-size: 12px;
    text-align: left;
  }
  .mobile-account-menu button > span:first-child {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(244,185,95,.09);
    color: var(--gold);
    font-size: 17px;
    line-height: 1;
  }
  .mobile-account-menu button > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-account-menu button:hover,
  .mobile-account-menu button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(244,185,95,.38);
    background: rgba(244,185,95,.09);
  }
  .mobile-account-menu button.danger {
    border-color: rgba(255,108,88,.12);
    background: rgba(181,31,20,.08);
  }
  .mobile-account-menu button.danger > span:first-child {
    background: rgba(255,108,88,.1);
    color: #ffb3a7;
  }
}

@media (max-width: 390px) {
  .mobile-account-menu:not(.is-hidden) {
    top: calc(env(safe-area-inset-top, 0px) + 68px);
    right: 8px;
    width: min(280px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
  }
}


/* --- V2.4.8: Desktop-Hubs, Profilbild im Account-Button und Toplisten-Cover --- */
.top-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: min(260px, 28vw);
  min-width: 0;
}
.top-account-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244,185,95,.48);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(181,31,20,.95), rgba(71,7,5,.98));
  color: #fff8eb;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.top-account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.top-account-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row {
  grid-template-columns: 42px 46px minmax(0, 1fr);
}
.rank-cover {
  width: 46px;
  aspect-ratio: 2 / 3;
  display: block;
  object-fit: cover;
  overflow: hidden;
  border: 1px solid rgba(244,185,95,.2);
  border-radius: 4px;
  background: #140807;
  box-shadow: 4px 5px 0 rgba(0,0,0,.22);
}
.rank-cover-placeholder {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
}

@media (min-width: 761px) {
  /* Bibliothek und Profil sind auch auf Desktop als gemeinsame Hubs aufgebaut. */
  .mobile-library-tabs,
  .mobile-profile-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(120px, max-content);
    justify-content: start;
    gap: 7px;
    margin: 0 0 20px;
    padding: 7px;
    border: 1px solid rgba(244,185,95,.18);
    background: rgba(18,7,6,.82);
    box-shadow: 0 14px 32px rgba(0,0,0,.18);
  }
  .mobile-library-tabs .mobile-section-tab,
  .mobile-profile-tabs .mobile-section-tab {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .mobile-library-tabs .mobile-section-tab.active,
  .mobile-profile-tabs .mobile-section-tab.active {
    border-color: rgba(244,185,95,.34);
    background: linear-gradient(135deg, rgba(174,28,18,.9), rgba(79,7,5,.94));
    color: #fff8eb;
  }

  #view-lists.mobile-library-mode-all #customLists {
    display: none !important;
  }
  #view-lists.mobile-library-mode-lists #customLists {
    display: flex !important;
  }
  #view-lists.mobile-library-mode-lists #customLists .list-tab-item:first-child {
    display: none !important;
  }

  #view-profile [data-mobile-profile-pane] {
    display: none !important;
  }
  #view-profile.mobile-profile-mode-overview [data-mobile-profile-pane="overview"],
  #view-profile.mobile-profile-mode-settings [data-mobile-profile-pane="settings"],
  #view-profile.mobile-profile-mode-ratings [data-mobile-profile-pane="ratings"] {
    display: block !important;
  }
  #view-profile.mobile-profile-mode-overview .profile-shell,
  #view-profile.mobile-profile-mode-settings .profile-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #view-profile.mobile-profile-mode-ratings .profile-shell {
    display: none !important;
  }
  #view-profile.mobile-profile-mode-ratings .profile-rated-band {
    margin-top: 0;
  }

  /* Dasselbe Account-Menü funktioniert auf Desktop direkt unter Profilbild und Namen. */
  .mobile-account-menu:not(.is-hidden) {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 250;
    width: 250px;
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid rgba(244,185,95,.42);
    border-radius: 16px;
    background:
      radial-gradient(circle at 82% 0%, rgba(181,31,20,.22), transparent 48%),
      linear-gradient(155deg, rgba(35,12,10,.995), rgba(10,4,4,.995));
    box-shadow: 0 24px 64px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.035) inset;
  }
  .mobile-account-menu button {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    text-align: left;
  }
  .mobile-account-menu button:hover,
  .mobile-account-menu button:focus-visible {
    border-color: rgba(244,185,95,.38);
    background: rgba(244,185,95,.09);
    outline: none;
  }
  .mobile-account-menu button.danger {
    color: #ffb3a7;
  }
}

@media (max-width: 760px) {
  .top-account-button {
    max-width: min(55vw, 190px) !important;
    gap: 7px;
    padding-left: 7px !important;
  }
  .top-account-avatar {
    width: 28px;
    height: 28px;
  }
  .rank-row {
    grid-template-columns: 34px 42px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }
  .rank-cover {
    width: 42px;
  }
}


/* --- V2.4.9: Anime Geheimtipp + Social-Media-Hub --- */
.social-community-panel,
.social-community-shell {
  min-width: 0;
}
.social-community-mobile {
  display: none;
}
.social-community-title p,
.social-community-intro,
.social-community-note {
  color: var(--muted);
  line-height: 1.55;
}
.social-community-intro {
  margin: 8px 0 0;
  font-size: 13px;
}
.social-community-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.social-community-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(0,0,0,.28));
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(0,0,0,.22);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.social-community-card:hover,
.social-community-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(244,185,95,.62);
  box-shadow: 0 22px 44px rgba(0,0,0,.34);
  outline: none;
}
.social-community-preview {
  position: relative;
  min-height: 142px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  isolation: isolate;
  overflow: hidden;
}
.social-community-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 22% 18%, rgba(255,255,255,.28), transparent 38%), linear-gradient(0deg, rgba(0,0,0,.2), transparent);
}
.social-community-preview svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.28));
}
.social-community-preview svg path,
.social-community-preview svg rect:not(.social-icon-cutout) {
  fill: currentColor;
  stroke: none;
}
.social-community-preview svg circle:not(.social-icon-dot) {
  fill: none;
}
.social-community-preview .social-icon-dot {
  fill: #fff;
  stroke: none;
}
.social-community-preview .social-icon-cutout {
  fill: #fff;
  stroke: none;
}
.social-community-preview strong {
  font-size: 17px;
  letter-spacing: .02em;
  text-shadow: 0 3px 14px rgba(0,0,0,.45);
}
.social-instagram .social-community-preview {
  color: #fff;
  background: linear-gradient(135deg, #5429d4 0%, #d62976 48%, #fa7e1e 78%, #feda75 100%);
}
.social-instagram .social-community-preview svg rect,
.social-instagram .social-community-preview svg circle:not(.social-icon-dot) {
  fill: none;
  stroke: #fff;
}
.social-tiktok .social-community-preview {
  color: #fff;
  background: linear-gradient(135deg, #111 0%, #171717 58%, #271014 100%);
}
.social-tiktok .social-community-preview svg {
  filter: drop-shadow(-4px 0 0 #25f4ee) drop-shadow(4px 0 0 #fe2c55);
}
.social-youtube .social-community-preview {
  color: #fff;
  background: linear-gradient(135deg, #ff2727, #a80000);
}
.social-youtube .social-community-preview svg .social-icon-cutout {
  fill: #d80b0b;
}
.social-discord .social-community-preview {
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #3038a8);
}
.social-discord .social-community-preview svg .social-icon-cutout {
  fill: #5865f2;
}
.social-community-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px;
}
.social-community-copy b,
.social-community-copy small,
.social-community-copy span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.social-community-copy b {
  font-size: 15px;
}
.social-community-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.social-community-copy > span {
  margin-top: 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}
.social-community-copy i {
  font-style: normal;
}
.social-community-note {
  margin: 18px 0 0;
  font-size: 12px;
  text-align: center;
}
@media (max-width: 1180px) {
  .social-community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .social-community-mobile {
    display: block;
    grid-column: 1 / -1;
    padding: 20px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.028);
    box-shadow: var(--shadow);
  }
  .social-community-mobile .band-head {
    align-items: flex-start;
  }
  .social-community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .social-community-preview {
    min-height: 100px;
  }
  .social-community-preview svg {
    width: 42px;
    height: 42px;
  }
  .social-community-preview strong {
    font-size: 14px;
  }
  .social-community-copy {
    padding: 12px;
  }
  .social-community-copy b {
    font-size: 13px;
  }
  .social-community-copy small,
  .social-community-copy > span {
    font-size: 11px;
  }
}
@media (max-width: 460px) {
  .social-community-grid {
    grid-template-columns: 1fr;
  }
  .social-community-card {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .social-community-preview {
    min-height: 132px;
    height: 100%;
  }
}

/* ========================================================================== */
/* v2.4.19 Community-Chat                                                     */
/* ========================================================================== */

.community-chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 78;
  background: rgba(4, 1, 1, .74);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.community-chat-rail {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(410px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(244, 185, 95, .15), transparent 19rem),
    radial-gradient(circle at 0% 32%, rgba(229, 55, 37, .18), transparent 22rem),
    linear-gradient(180deg, rgba(29, 10, 9, .985), rgba(9, 3, 4, .995));
  border-left: 1px solid rgba(244, 185, 95, .3);
  box-shadow: -24px 0 80px rgba(0, 0, 0, .6), inset 1px 0 0 rgba(229, 55, 37, .2);
  transform: translateX(105%);
  transition: transform .24s cubic-bezier(.22, .78, .28, 1);
  isolation: isolate;
}

.community-chat-rail::before,
.community-chat-rail::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.community-chat-rail::before {
  inset: 0;
  opacity: .2;
  background:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.03) 4px 5px),
    linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,.035) 42% 43%, transparent 43% 100%);
}
.community-chat-rail::after {
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  box-shadow: 0 0 24px rgba(229, 55, 37, .65);
}

.community-chat-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  top: -95px;
  right: -65px;
  border-radius: 50%;
  background: rgba(229, 55, 37, .2);
  filter: blur(28px);
  pointer-events: none;
}

body.community-chat-open {
  overflow: hidden;
}
body.community-chat-open .community-chat-overlay {
  opacity: 1;
  visibility: visible;
}
body.community-chat-open .community-chat-rail {
  transform: translateX(0);
}

.community-chat-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 82px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 224, 177, .14);
  background: linear-gradient(90deg, rgba(229,55,37,.09), transparent 70%);
}

.community-chat-title-wrap,
.community-chat-head-actions,
.community-chat-toolbar,
.community-chat-composer-foot,
.community-chat-message-head,
.community-chat-message-actions,
.community-chat-blocked-user {
  display: flex;
  align-items: center;
}

.community-chat-title-wrap { gap: 11px; min-width: 0; }
.community-chat-emblem {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(244,185,95,.34);
  border-radius: 12px;
  background: #09090b;
  box-shadow: 6px 6px 0 rgba(0,0,0,.3), 0 0 16px rgba(214,39,24,.18);
}
.community-chat-emblem picture,
.community-chat-emblem img {
  width: 100%;
  height: 100%;
  display: block;
}
.community-chat-emblem img { object-fit: cover; }
.community-chat-header .section-kicker {
  font-size: 9px;
  letter-spacing: .18em;
  line-height: 1;
}
.community-chat-header .section-kicker::before { width: 13px; }
.community-chat-header h2 {
  margin-top: 5px;
  font-size: 25px;
  line-height: .9;
}
.community-chat-head-actions { gap: 7px; }
.community-chat-connection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(244,185,95,.18);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.community-chat-connection i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d99b3c;
  box-shadow: 0 0 10px rgba(217,155,60,.65);
}
.community-chat-connection[data-state="live"] { color: #e9ffd9; border-color: rgba(116, 218, 113, .28); }
.community-chat-connection[data-state="live"] i { background: #73dc6c; box-shadow: 0 0 12px rgba(115,220,108,.8); }
.community-chat-connection[data-state="error"] { color: #ffd4cf; border-color: rgba(229,55,37,.3); }
.community-chat-connection[data-state="error"] i { background: var(--red); box-shadow: 0 0 12px rgba(229,55,37,.8); }
.community-chat-icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.community-chat-icon-btn:hover { border-color: var(--gold); color: var(--ink); }
.community-chat-minimize-btn { display: none; }
.community-chat-minimize-btn span { transform: translateY(-1px); }
.community-chat-minimized-unread {
  min-width: 21px;
  width: 21px;
  height: 21px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.68);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 0 16px rgba(229,55,37,.55);
}
.community-chat-minimized-unread.is-alerting,
.community-chat-unread.is-alerting {
  animation: communityChatUnreadPop .42s cubic-bezier(.2, .9, .25, 1.35);
}
@keyframes communityChatUnreadPop {
  0% { transform: scale(.35); opacity: .25; }
  65% { transform: scale(1.22); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.community-chat-toolbar {
  gap: 7px;
  min-height: 42px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255,224,177,.1);
  background: rgba(0,0,0,.2);
}
.community-chat-toolbar > span:last-child {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dim);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.community-chat-moderator-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(255, 112, 91, .42);
  background: linear-gradient(135deg, rgba(229, 55, 37, .18), rgba(82, 10, 8, .2));
  color: #ffb2a5;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: inset 0 0 18px rgba(229, 55, 37, .06);
}
.community-chat-moderator-badge span { color: var(--gold); }
.community-chat-moderator-badge.is-admin {
  border-color: rgba(255, 91, 73, .58);
  background: linear-gradient(135deg, rgba(229, 55, 37, .28), rgba(82, 10, 8, .3));
  color: #ffd1ca;
  box-shadow: inset 0 0 18px rgba(229, 55, 37, .1), 0 0 12px rgba(229, 55, 37, .08);
}
.community-chat-moderator-badge.is-admin span { color: #ff6654; }
.community-chat-moderator-badge.is-moderator {
  border-color: rgba(78, 157, 255, .52);
  background: linear-gradient(135deg, rgba(41, 105, 194, .26), rgba(10, 29, 65, .32));
  color: #b9d8ff;
  box-shadow: inset 0 0 18px rgba(78, 157, 255, .09), 0 0 12px rgba(78, 157, 255, .07);
}
.community-chat-moderator-badge.is-moderator span { color: #69adff; }

.community-chat-notice {
  margin: 10px 12px 0;
  padding: 9px 10px 9px 13px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(244,185,95,.18);
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(244,185,95,.085), rgba(255,255,255,.015));
}
.community-chat-notice strong {
  color: var(--ink);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.community-chat-notice span { color: var(--muted); font-size: 10px; line-height: 1.35; }

.community-chat-messages-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.community-chat-messages {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-2) rgba(255,255,255,.035);
  padding: 12px 10px 18px;
  scroll-behavior: smooth;
}
.community-chat-messages::-webkit-scrollbar { width: 7px; }
.community-chat-messages::-webkit-scrollbar-track { background: rgba(255,255,255,.025); }
.community-chat-messages::-webkit-scrollbar-thumb { background: linear-gradient(var(--red), var(--gold-2)); }

.community-chat-empty {
  min-height: 190px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}
.community-chat-empty strong { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.community-chat-empty small { max-width: 220px; line-height: 1.45; }
.community-chat-loader {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(244,185,95,.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: communityChatSpin .75s linear infinite;
}
@keyframes communityChatSpin { to { transform: rotate(360deg); } }

.community-chat-message {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  padding: 10px 8px;
  margin-bottom: 7px;
  border: 1px solid rgba(255,224,177,.09);
  background: linear-gradient(115deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.community-chat-message::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(229,55,37,.35);
}
.community-chat-message:hover {
  border-color: rgba(244,185,95,.22);
  background: linear-gradient(115deg, rgba(229,55,37,.065), rgba(255,255,255,.018));
}
.community-chat-message.is-own {
  border-color: rgba(244,185,95,.2);
  background: linear-gradient(115deg, rgba(244,185,95,.08), rgba(255,255,255,.014));
}
.community-chat-message.is-own::before { background: var(--gold); }

/* Teamnachrichten: Administrator rot, Moderator blau. */
.community-chat-message.is-admin {
  border-color: rgba(255, 91, 73, .52);
  background: linear-gradient(115deg, rgba(150, 28, 20, .34), rgba(72, 10, 9, .21));
  box-shadow: inset 0 0 24px rgba(229, 55, 37, .07);
}
.community-chat-message.is-admin::before {
  background: #ff5947;
  box-shadow: 0 0 11px rgba(255, 89, 71, .62);
}
.community-chat-message.is-admin:hover {
  border-color: rgba(255, 116, 98, .68);
  background: linear-gradient(115deg, rgba(170, 35, 25, .4), rgba(79, 12, 10, .25));
}
.community-chat-message.is-admin .community-chat-avatar {
  border-color: rgba(255, 104, 86, .62);
  background: linear-gradient(145deg, #851d16, #250706);
  box-shadow: 3px 3px 0 rgba(0,0,0,.25), 0 0 12px rgba(229,55,37,.18);
}
.community-chat-message.is-admin .community-chat-author { color: #ffb8ad; }
.community-chat-message.is-admin .community-chat-author:hover { color: #ffe1dc; }

.community-chat-message.is-moderator {
  border-color: rgba(78, 157, 255, .48);
  background: linear-gradient(115deg, rgba(31, 78, 145, .34), rgba(10, 28, 61, .23));
  box-shadow: inset 0 0 24px rgba(78, 157, 255, .06);
}
.community-chat-message.is-moderator::before {
  background: #4e9dff;
  box-shadow: 0 0 11px rgba(78, 157, 255, .6);
}
.community-chat-message.is-moderator:hover {
  border-color: rgba(104, 176, 255, .66);
  background: linear-gradient(115deg, rgba(37, 91, 166, .4), rgba(12, 34, 72, .27));
}
.community-chat-message.is-moderator .community-chat-avatar {
  border-color: rgba(91, 169, 255, .62);
  background: linear-gradient(145deg, #1f5799, #07162f);
  box-shadow: 3px 3px 0 rgba(0,0,0,.25), 0 0 12px rgba(78,157,255,.17);
}
.community-chat-message.is-moderator .community-chat-author { color: #a9d0ff; }
.community-chat-message.is-moderator .community-chat-author:hover { color: #deedff; }
.community-chat-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244,185,95,.28);
  background: linear-gradient(145deg, #4c120e, #180706);
  color: #fff4e1;
  font-family: var(--font-display);
  font-weight: 950;
  box-shadow: 3px 3px 0 rgba(0,0,0,.25);
  clip-path: polygon(50% 0, 94% 22%, 94% 78%, 50% 100%, 6% 78%, 6% 22%);
}
.community-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-chat-message-main { min-width: 0; }
.community-chat-message-head { gap: 7px; min-width: 0; }
.community-chat-author {
  min-width: 0;
  max-width: 160px;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  text-align: left;
}
.community-chat-author:hover { color: #ffe1a3; text-decoration: underline; }
.community-chat-author-role {
  flex: 0 0 auto;
  min-height: 16px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 1px solid currentColor;
  font-size: 7px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.community-chat-author-role.is-admin {
  color: #ff8f7f;
  background: rgba(115, 18, 13, .42);
}
.community-chat-author-role.is-moderator {
  color: #80bcff;
  background: rgba(15, 53, 102, .45);
}
.community-chat-message-time {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--dim);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.community-chat-message-body {
  margin: 5px 0 0;
  color: #f4e8d7;
  font-size: 12px;
  line-height: 1.48;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.community-chat-message-actions {
  min-height: 18px;
  gap: 8px;
  margin-top: 6px;
  opacity: .3;
  transition: opacity .16s ease;
}
.community-chat-message:hover .community-chat-message-actions,
.community-chat-message:focus-within .community-chat-message-actions { opacity: 1; }
.community-chat-message-actions button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.community-chat-message-actions button:hover { color: var(--gold); }
.community-chat-message-actions button[data-chat-action="moderate"] { color: #ff8e7f; }

.community-chat-moderator-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed rgba(255, 112, 91, .22);
}
.community-chat-mod-label {
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border: 1px solid rgba(244, 185, 95, .35);
  background: rgba(244, 185, 95, .07);
  color: var(--gold);
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .1em;
}
.community-chat-moderator-actions button {
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(255, 112, 91, .25);
  background: rgba(229, 55, 37, .07);
  color: #ffb0a4;
  font-size: 7px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.community-chat-moderator-actions button:hover,
.community-chat-moderator-actions button:focus-visible {
  border-color: rgba(255, 139, 120, .68);
  background: rgba(229, 55, 37, .18);
  color: #fff0ec;
}
.community-chat-moderator-actions button[data-chat-action="moderate-delete"] {
  border-color: rgba(244, 185, 95, .3);
  color: #ffd692;
}

.community-chat-jump {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 2;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(244,185,95,.45);
  background: linear-gradient(135deg, #5b100b, #190707);
  color: #fff2dd;
  box-shadow: 0 8px 28px rgba(0,0,0,.48);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.community-chat-signed-out {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-top: 1px solid rgba(255,224,177,.13);
  background: linear-gradient(90deg, rgba(229,55,37,.11), rgba(0,0,0,.3));
}
.community-chat-lock {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.35);
  color: var(--gold);
  background: rgba(244,185,95,.06);
}
.community-chat-signed-out div:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.community-chat-signed-out strong { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.community-chat-signed-out span { color: var(--muted); font-size: 9px; line-height: 1.3; }
.community-chat-signed-out .solid-action { min-height: 34px; padding: 0 10px; font-size: 9px; box-shadow: 4px 4px 0 rgba(0,0,0,.28); }

.community-chat-composer {
  padding: 10px 11px 12px;
  border-top: 1px solid rgba(255,224,177,.14);
  background: linear-gradient(180deg, rgba(20,6,7,.96), rgba(8,3,3,.99));
}
.community-chat-composer > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.community-chat-composer textarea {
  width: 100%;
  min-height: 64px;
  max-height: 120px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid rgba(244,185,95,.18);
  outline: none;
  background: rgba(255,255,255,.035);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: inset 0 0 24px rgba(0,0,0,.2);
}
.community-chat-composer textarea:focus {
  border-color: rgba(244,185,95,.55);
  box-shadow: 0 0 0 2px rgba(244,185,95,.08), inset 0 0 24px rgba(0,0,0,.2);
}
.community-chat-composer textarea::placeholder { color: #78685f; }
.community-chat-composer-foot { gap: 7px; margin-top: 7px; }
.community-chat-composer-tools {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.community-chat-composer-tools button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255,224,177,.14);
  background: rgba(255,255,255,.028);
  color: var(--gold);
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}
.community-chat-composer-tools button:hover {
  border-color: rgba(244,185,95,.5);
  background: rgba(244,185,95,.08);
  color: #fff2dd;
}
.community-chat-count {
  margin-left: auto;
  color: var(--dim);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.community-chat-count.is-near-limit { color: #ff967f; }
.community-chat-send {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.28);
}
.community-chat-send i { font-style: normal; color: var(--gold); }
.community-chat-send:disabled { opacity: .55; cursor: wait; transform: none; }

.community-chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  min-width: 148px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px 7px 8px;
  border: 1px solid rgba(244,185,95,.48);
  background: linear-gradient(135deg, #5e0c08, #1d0707 68%, #0a0303);
  color: var(--ink);
  box-shadow: 9px 9px 0 rgba(0,0,0,.32), 0 16px 48px rgba(0,0,0,.45);
  transition: transform .18s ease, border-color .18s ease;
}
.community-chat-fab:hover { transform: translate(-2px, -2px); border-color: var(--gold); }
.community-chat-fab-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.45);
  background: linear-gradient(145deg, var(--red), #650b07);
  color: #fff4e1;
  font-size: 22px;
  clip-path: polygon(50% 0, 96% 24%, 96% 76%, 50% 100%, 4% 76%, 4% 24%);
}
.community-chat-fab-glyph { display: inline; }
.community-chat-fab-mobile-label {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  line-height: 1;
}
.community-chat-fab-mobile-label > span { font-size: 17px; }
.community-chat-fab-mobile-label b {
  margin-top: 2px;
  color: #fff4e1;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.community-chat-fab-text { display: grid; text-align: left; line-height: 1.05; }
.community-chat-fab-text strong { font-family: var(--font-display); text-transform: uppercase; font-size: 14px; }
.community-chat-fab-text small { margin-top: 4px; color: var(--gold); text-transform: uppercase; letter-spacing: .09em; font-size: 8px; }
.community-chat-unread {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 4;
  pointer-events: none;
  min-width: 21px;
  width: 21px;
  height: 21px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid #100404;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 0 16px rgba(229,55,37,.65);
}

.community-chat-dialog {
  width: min(650px, calc(100% - 24px));
  padding: 0;
  border: 1px solid rgba(244,185,95,.34);
  background: transparent;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0,0,0,.7);
}
.community-chat-dialog::backdrop { background: rgba(4,1,1,.82); backdrop-filter: blur(8px); }
.community-chat-dialog-panel {
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(229,55,37,.18), transparent 18rem),
    linear-gradient(145deg, #210c0b, #090303);
}
.community-chat-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.community-chat-dialog-head h2 { margin-top: 8px; font-size: 30px; }
.community-chat-rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.community-chat-rules-grid article {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255,224,177,.12);
  background: rgba(255,255,255,.025);
}
.community-chat-rules-grid article > b {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 22px;
}
.community-chat-rules-grid strong { display: block; color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.community-chat-rules-grid p,
.community-chat-rules-note,
.community-chat-dialog-intro { color: var(--muted); line-height: 1.55; font-size: 12px; }
.community-chat-rules-grid p { margin: 5px 0 0; }
.community-chat-rules-note { padding: 11px 12px; border-left: 3px solid var(--red); background: rgba(229,55,37,.07); }
.community-chat-dialog-intro { margin: 14px 0; }
.community-chat-blocked-list { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.community-chat-blocked-user {
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.community-chat-blocked-user .community-chat-avatar { flex: 0 0 34px; }
.community-chat-blocked-user > div:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.community-chat-blocked-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.community-chat-blocked-user small { color: var(--dim); font-size: 9px; }
.community-chat-blocked-user button { margin-left: auto; }

@media (min-width: 2180px) {
  .community-chat-overlay,
  .community-chat-fab { display: none !important; }
  .community-chat-rail {
    top: 98px;
    right: 22px;
    width: clamp(300px, calc((100vw - 1540px) / 2 - 30px), 360px);
    height: calc(100vh - 120px);
    z-index: 24;
    border: 1px solid rgba(244,185,95,.28);
    box-shadow: 18px 22px 70px rgba(0,0,0,.48), inset 0 0 42px rgba(229,55,37,.025);
    transform: none !important;
    transition: width .22s ease, height .22s ease, box-shadow .22s ease, border-color .22s ease;
  }
  .community-chat-close-btn { display: none; }
  .community-chat-minimize-btn { display: grid; }
  body.community-chat-open { overflow: auto; }

  .community-chat-rail.is-minimized {
    width: 286px;
    height: 66px;
    border-color: rgba(244,185,95,.38);
    box-shadow: 12px 14px 44px rgba(0,0,0,.44), inset 0 0 30px rgba(229,55,37,.04);
  }
  .community-chat-rail.is-minimized > :not(.community-chat-glow):not(.community-chat-header) {
    display: none !important;
  }
  .community-chat-rail.is-minimized .community-chat-header {
    min-height: 64px;
    height: 64px;
    padding: 10px 11px;
    border-bottom: 0;
    cursor: pointer;
  }
  .community-chat-rail.is-minimized .community-chat-emblem {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 11px;
  }
  .community-chat-rail.is-minimized .community-chat-header .section-kicker { display: none; }
  .community-chat-rail.is-minimized .community-chat-header h2 {
    margin-top: 0;
    font-size: 20px;
    line-height: 1;
  }
  .community-chat-rail.is-minimized .community-chat-connection { display: none; }
  .community-chat-rail.is-minimized .community-chat-minimize-btn {
    border-color: rgba(244,185,95,.34);
    color: var(--gold);
    background: rgba(244,185,95,.07);
  }
}

@media (max-width: 760px) {
  .community-chat-rail { width: 100vw; }
  .community-chat-header { min-height: 74px; padding: 12px; }
  .community-chat-header h2 { font-size: 22px; }
  .community-chat-emblem { width: 38px; height: 38px; flex-basis: 38px; }
  .community-chat-fab {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    min-width: 54px;
    width: 54px;
    height: 54px;
    padding: 7px;
  }
  .community-chat-fab-text { display: none; }
  .community-chat-fab-icon { width: 38px; height: 38px; font-size: 12px; }
  .community-chat-fab-glyph { display: none; }
  .community-chat-fab-mobile-label { display: flex; }
  .community-chat-moderator-actions { gap: 4px; }
  .community-chat-moderator-actions button { min-height: 25px; padding: 0 7px; }
  .community-chat-rules-grid { grid-template-columns: 1fr; }
  .community-chat-dialog-panel { padding: 16px; }
  .community-chat-dialog-head h2 { font-size: 25px; }
  .community-chat-signed-out { grid-template-columns: 32px minmax(0,1fr); }
  .community-chat-signed-out .solid-action { grid-column: 1 / -1; width: 100%; }
  .community-chat-composer { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .community-chat-composer-foot { gap: 5px; }
  .community-chat-composer-tools { gap: 4px; }
  .community-chat-composer-tools button { min-height: 27px; padding: 0 6px; font-size: 7px; }
  .community-chat-send { padding: 0 9px; }
  .community-chat-message-actions { opacity: .8; }
}

@media (prefers-reduced-motion: reduce) {
  .community-chat-rail,
  .community-chat-overlay,
  .community-chat-fab,
  .community-chat-message { transition: none; }
  .community-chat-loader { animation-duration: 1.5s; }
}

/* --- V2.4.35: automatisch wechselnder Startseiten-Hero --- */
.hero-carousel {
  display: block;
  position: relative;
  isolation: isolate;
  touch-action: pan-y;
}
.hero-carousel::before { display: none; }
.hero-carousel-track {
  display: flex;
  min-height: inherit;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform .72s cubic-bezier(.22, .72, .18, 1);
  will-change: transform;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  min-height: inherit;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(310px, .9fr) minmax(280px, .85fr);
  background: linear-gradient(135deg, rgba(33, 8, 8, .98), rgba(14, 4, 4, .92));
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(229,55,37,.12) 0 20%, transparent 20% 100%),
    repeating-linear-gradient(90deg, transparent 0 68px, rgba(255,255,255,.025) 68px 69px);
  pointer-events: none;
}
.hero-slide:not(.is-active) { pointer-events: none; }
.hero-slide-trending {
  background: linear-gradient(135deg, rgba(37, 8, 8, .99), rgba(12, 4, 4, .95));
}
.hero-slide-discovery {
  background: linear-gradient(135deg, rgba(27, 10, 9, .99), rgba(10, 5, 7, .95));
}
.hero-dynamic-title {
  font-size: clamp(38px, 4.8vw, 68px) !important;
  line-height: .98 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.hero-slide .hero-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.hero-dynamic-image {
  opacity: .16 !important;
  transform: scale(1.035);
  transition: opacity .45s ease, transform 6.8s ease;
}
.hero-dynamic-image.is-loaded { opacity: .96 !important; }
.hero-slide.is-active .hero-dynamic-image.is-loaded { transform: scale(1); }
.hero-slide-trending .hero-art::after {
  background:
    linear-gradient(90deg, rgba(13, 4, 4, .9) 0%, rgba(13, 4, 4, .26) 44%, rgba(13, 4, 4, .08) 74%),
    linear-gradient(0deg, rgba(8, 3, 3, .8) 0%, rgba(8, 3, 3, .16) 62%, transparent 100%);
}
.hero-slide-discovery .hero-art::after {
  background:
    linear-gradient(90deg, rgba(11, 5, 6, .92) 0%, rgba(11, 5, 6, .28) 44%, rgba(11, 5, 6, .08) 74%),
    linear-gradient(0deg, rgba(7, 3, 4, .82) 0%, rgba(7, 3, 4, .17) 60%, transparent 100%);
}
.hero-carousel-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(244,185,95,.38);
  background: rgba(12, 5, 5, .78);
  color: #fff4e5;
  font-family: Arial, sans-serif;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
}
.hero-carousel-arrow:hover:not(:disabled) {
  background: rgba(229,55,37,.92);
  border-color: rgba(255,218,151,.72);
  transform: translateY(-50%) scale(1.06);
}
.hero-carousel-prev { left: 4px; }
.hero-carousel-next { right: 12px; }
.hero-carousel[data-ready="false"] .hero-carousel-arrow,
.hero-carousel[data-ready="false"] .hero-carousel-dots,
.hero-carousel[data-ready="false"] .hero-carousel-progress { opacity: 0; pointer-events: none; }
.hero-carousel-dots {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(244,185,95,.24);
  border-radius: 999px;
  background: rgba(10,4,4,.72);
  box-shadow: 0 8px 24px rgba(0,0,0,.26);
  backdrop-filter: blur(8px);
  transition: opacity .2s ease;
}
.hero-carousel-dots button {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  transition: width .2s ease, background .2s ease, transform .2s ease;
}
.hero-carousel-dots button.is-active {
  width: 25px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.hero-carousel-dots button:focus-visible,
.hero-carousel-arrow:focus-visible {
  outline: 3px solid rgba(244,185,95,.72);
  outline-offset: 3px;
}
.hero-carousel-progress {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  transition: opacity .2s ease;
}
.hero-carousel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.hero-carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .hero-carousel {
    display: block !important;
    min-height: 132px !important;
    padding: 0 !important;
  }
  .hero-carousel-track { min-height: 132px; }
  .hero-slide {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 132px !important;
    padding: 12px 12px 30px !important;
  }
  .hero-slide .hero-art {
    order: 0 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 92px !important;
    height: 104px !important;
    min-height: 104px !important;
  }
  .hero-slide .hero-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    padding: 0 !important;
    min-width: 0;
  }
  .hero-carousel .hero-copy .hero-main-title::after {
    content: attr(data-mobile-subtitle) !important;
  }
  .hero-dynamic-title {
    -webkit-line-clamp: 2;
  }
  .hero-carousel-arrow { display: none; }
  .hero-carousel-dots {
    left: 116px;
    right: 12px;
    bottom: 7px;
    transform: none;
    justify-content: flex-start;
    width: max-content;
    max-width: calc(100% - 128px);
    padding: 5px 8px;
    gap: 6px;
  }
  .hero-carousel-dots button {
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
  }
  .hero-carousel-dots button.is-active { width: 20px; }
}

@media (max-width: 420px) {
  .hero-carousel,
  .hero-carousel-track { min-height: 120px !important; }
  .hero-slide {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 120px !important;
    padding: 10px 10px 27px !important;
  }
  .hero-slide .hero-art {
    width: 78px !important;
    height: 92px !important;
    min-height: 92px !important;
  }
  .hero-carousel-dots {
    left: 98px;
    right: 10px;
    bottom: 6px;
    max-width: calc(100% - 108px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-track,
  .hero-dynamic-image,
  .hero-carousel-arrow,
  .hero-carousel-dots button,
  .hero-carousel-progress span {
    transition: none !important;
    animation: none !important;
  }
}

/* --- V2.4.36: deutscher Hero + Anime-News-Hub --- */
.hero-season-image {
  opacity: .16;
  transform: scale(1.035);
  transition: opacity .45s ease, transform 6.8s ease;
}
.hero-season-image.is-loaded { opacity: .96; }
.hero-slide.is-active .hero-season-image.is-loaded { transform: scale(1); }

.anime-news-band {
  position: relative;
  overflow: hidden;
}
.anime-news-head {
  align-items: center;
}
.anime-news-banner-shell {
  position: relative;
  overflow: hidden;
}
.anime-news-more {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(244,185,95,.24);
  background: rgba(255,255,255,.025);
}
.anime-news-banner {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 78% 18%, rgba(229,55,37,.16), transparent 34%),
    linear-gradient(135deg, rgba(52,15,12,.96), rgba(12,5,5,.98));
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.anime-news-banner.is-dragging {
  cursor: grabbing;
}
.anime-news-banner.is-dragging .anime-news-banner-link {
  pointer-events: none;
}
.anime-news-banner-link {
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(300px, 42%) minmax(0, 1fr);
  color: var(--ink);
  text-decoration: none;
}
.anime-news-banner-media {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background: #1b0908;
}
.anime-news-banner-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 54%, rgba(12,5,5,.92) 100%), linear-gradient(0deg, rgba(8,3,3,.52), transparent 58%);
  pointer-events: none;
}
.anime-news-banner-image,
.anime-news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease, filter .3s ease;
  -webkit-user-drag: none;
  user-select: none;
}
.anime-news-banner-link:hover .anime-news-banner-image,
.anime-news-banner-link:focus-visible .anime-news-banner-image,
.anime-news-card:hover .anime-news-card-image {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}
.anime-news-banner-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 48px);
}
.anime-news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.anime-news-meta span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.anime-news-banner-copy h3 {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 54px);
  line-height: .98;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.anime-news-banner-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.anime-news-read {
  width: max-content;
  color: #fff4e5;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}
.anime-news-read i { font-style: normal; color: var(--gold); }
.anime-news-progress {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.anime-news-progress[hidden] { display: none !important; }
.anime-news-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.anime-news-banner-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.anime-news-banner-controls[hidden] { display: none !important; }
.anime-news-banner-controls > button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(244,185,95,.28);
  background: rgba(255,255,255,.035);
  color: var(--ink);
  font-size: 22px;
}
.anime-news-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.anime-news-dots button {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.3);
  transition: width .18s ease, background .18s ease;
}
.anime-news-dots button.is-active {
  width: 25px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.anime-news-image-fallback {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(229,55,37,.3), transparent 28%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 28px, rgba(244,185,95,.1) 29px 30px),
    linear-gradient(135deg, #2b0b09, #0c0505);
}
.anime-news-image-fallback span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 2px solid rgba(244,185,95,.55);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 27px;
  box-shadow: 0 0 0 10px rgba(229,55,37,.08), 0 20px 50px rgba(0,0,0,.4);
}
.anime-news-banner-skeleton {
  min-height: 270px;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 28px;
  padding: 30px;
}
.anime-news-banner-skeleton span {
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.09), rgba(255,255,255,.035));
  background-size: 220% 100%;
  animation: news-skeleton 1.4s linear infinite;
}
.anime-news-banner-skeleton span:first-child { grid-row: 1 / 4; }
.anime-news-banner-skeleton span:nth-child(2) { height: 54px; align-self: end; }
.anime-news-banner-skeleton span:nth-child(3) { height: 88px; align-self: start; }
@keyframes news-skeleton { to { background-position: -220% 0; } }
.anime-news-unavailable {
  min-height: 270px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
}
.anime-news-unavailable strong { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; }
.anime-news-unavailable span { color: var(--muted); }

.anime-news-page-title { align-items: end; }
.anime-news-page-band { min-width: 0; }
.anime-news-page-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}
.anime-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.anime-news-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(165deg, rgba(46,14,11,.88), rgba(10,4,4,.96));
  box-shadow: 0 16px 38px rgba(0,0,0,.25);
}
.anime-news-card-media {
  display: block;
  min-height: 190px;
  overflow: hidden;
  background: #1b0908;
}
.anime-news-card-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}
.anime-news-card-copy h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.06;
  text-transform: none;
}
.anime-news-card-copy h2 a { color: var(--ink); text-decoration: none; }
.anime-news-card-copy h2 a:hover { color: var(--gold); }
.anime-news-card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.anime-news-card-link {
  justify-self: start;
  margin-top: 4px;
}

/* Nach Entfernen von "Dein Fortschritt" bleibt der untere Startseitenbereich sauber einspaltig. */
#view-home .split-band {
  grid-template-columns: minmax(0, 1fr);
}
#view-home .split-band > .accent-box {
  width: 100%;
}

@media (max-width: 1040px) {
  .anime-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  /* Alte kompakte Hero-Regeln überschreiben: Beschreibung bleibt sichtbar und Titel bleibt kontrolliert. */
  .hero-carousel,
  .hero-carousel-track { min-height: 174px !important; }
  .hero-carousel .hero-slide {
    grid-template-columns: 94px minmax(0, 1fr) !important;
    min-height: 174px !important;
    padding: 12px 12px 31px !important;
    gap: 12px !important;
  }
  .hero-carousel .hero-slide .hero-art {
    width: 94px !important;
    height: 128px !important;
    min-height: 128px !important;
  }
  .hero-carousel .hero-slide .hero-copy .section-kicker {
    display: inline-flex !important;
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: .11em;
  }
  .hero-carousel .hero-slide .hero-copy .section-kicker::before { width: 14px; }
  .hero-carousel .hero-copy .hero-main-title,
  .hero-carousel .hero-dynamic-title {
    margin: 0 !important;
    font-size: clamp(20px, 5.7vw, 27px) !important;
    line-height: 1.02 !important;
    -webkit-line-clamp: 2;
  }
  .hero-carousel .hero-copy .hero-main-title::after {
    content: none !important;
    display: none !important;
  }
  .hero-carousel .hero-slide .hero-copy p {
    display: -webkit-box !important;
    margin: 7px 0 0 !important;
    color: var(--muted) !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .hero-carousel .hero-actions { display: none !important; }
  .hero-carousel-dots { left: 118px; max-width: calc(100% - 130px); }

  .anime-news-band { padding: 18px; }
  .anime-news-head { margin-bottom: 13px; }
  .anime-news-head h2 { font-size: 27px; }
  .anime-news-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .anime-news-banner,
  .anime-news-banner-link { min-height: 310px; }
  .anime-news-banner-link {
    grid-template-columns: 1fr;
    grid-template-rows: 142px minmax(0, 1fr);
  }
  .anime-news-banner-media { min-height: 142px; }
  .anime-news-banner-media::after {
    background: linear-gradient(0deg, rgba(12,5,5,.92) 0%, transparent 65%);
  }
  .anime-news-banner-copy {
    align-content: start;
    gap: 8px;
    padding: 16px;
  }
  .anime-news-meta { font-size: 10px; gap: 6px 10px; }
  .anime-news-banner-copy h3 {
    font-size: clamp(22px, 6.2vw, 30px);
    line-height: 1.02;
    -webkit-line-clamp: 2;
  }
  .anime-news-banner-copy p {
    font-size: 12px;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }
  .anime-news-read { font-size: 10px; }
  .anime-news-banner-controls { margin-top: 9px; }
  .anime-news-banner-controls > button { width: 31px; height: 31px; min-height: 31px; }
  .anime-news-banner-skeleton {
    min-height: 310px;
    grid-template-columns: 1fr;
    grid-template-rows: 142px 45px 70px;
    gap: 14px;
    padding: 16px;
  }
  .anime-news-banner-skeleton span:first-child { grid-row: auto; }

  .anime-news-page-title {
    align-items: stretch;
  }
  .anime-news-page-title .title-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .anime-news-grid { grid-template-columns: 1fr; gap: 13px; }
  .anime-news-card {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: minmax(148px, auto);
  }
  .anime-news-card-media { min-height: 148px; }
  .anime-news-card-copy { padding: 13px; gap: 7px; }
  .anime-news-card-copy h2 {
    font-size: 17px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .anime-news-card-copy p {
    font-size: 11px;
    -webkit-line-clamp: 3;
  }
  .anime-news-card-link { font-size: 10px; }
}

@media (max-width: 420px) {
  .hero-carousel,
  .hero-carousel-track { min-height: 166px !important; }
  .hero-carousel .hero-slide {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    min-height: 166px !important;
    padding: 10px 10px 29px !important;
    gap: 10px !important;
  }
  .hero-carousel .hero-slide .hero-art {
    width: 82px !important;
    height: 119px !important;
    min-height: 119px !important;
  }
  .hero-carousel .hero-copy .hero-main-title,
  .hero-carousel .hero-dynamic-title { font-size: clamp(19px, 5.9vw, 24px) !important; }
  .hero-carousel .hero-slide .hero-copy p { font-size: 10.5px !important; -webkit-line-clamp: 3; }
  .hero-carousel-dots { left: 102px; max-width: calc(100% - 112px); }
  .anime-news-card { grid-template-columns: 96px minmax(0, 1fr); }
  .anime-news-card-copy h2 { font-size: 15px; }
  .anime-news-card-copy p { -webkit-line-clamp: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .anime-news-banner-image,
  .anime-news-card-image,
  .anime-news-banner-skeleton span,
  .anime-news-progress span { transition: none !important; animation: none !important; }
}

/* --- V2.4.37: fester BLEACH-Startbanner + interne News-Details --- */
button.anime-news-banner-link {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
button.anime-news-banner-link:focus-visible {
  outline: 3px solid rgba(244,185,95,.72);
  outline-offset: -4px;
}
button.anime-news-card-media {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.anime-news-card-title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.anime-news-card-title:hover,
.anime-news-card-title:focus-visible { color: var(--gold); }
.anime-news-card-link {
  border: 0;
  background: transparent;
  padding-inline: 0;
  cursor: pointer;
}

.anime-news-detail-dialog {
  width: min(1380px, calc(100vw - 56px));
  max-width: 1380px;
  height: min(900px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid rgba(244,185,95,.3);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  overflow: visible;
  box-shadow: 0 34px 110px rgba(0,0,0,.7);
}
.anime-news-detail-dialog::backdrop {
  background: rgba(4,1,2,.82);
  backdrop-filter: blur(10px);
}
.anime-news-detail-panel {
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(229,55,37,.17), transparent 34%),
    linear-gradient(155deg, rgba(49,13,11,.99), rgba(10,4,4,.995));
}
.anime-news-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 18px 26px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.anime-news-detail-head > div { min-width: 0; }
.anime-news-detail-head h2 {
  margin: 3px 0 0;
  max-width: 1120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.05;
  text-transform: none;
}
.anime-news-detail-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(430px, 46%) minmax(0, 1fr);
  overflow: hidden;
}
.anime-news-detail-media {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #170706;
}
.anime-news-detail-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 56%, rgba(11,4,4,.7) 100%),
    linear-gradient(0deg, rgba(8,3,3,.55), transparent 55%);
  pointer-events: none;
}
.anime-news-detail-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}
.anime-news-detail-body {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: clamp(30px, 4vw, 58px) clamp(28px, 4.2vw, 64px) 56px;
}
.anime-news-detail-article {
  width: min(100%, 760px);
  display: grid;
  align-content: start;
  gap: 22px;
  margin: 0 auto;
}
.anime-news-detail-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 64px);
  line-height: .98;
  letter-spacing: -.025em;
  text-transform: none;
  text-wrap: balance;
}
.anime-news-detail-meta {
  padding-bottom: 4px;
}
.anime-news-detail-summary {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 2.2vw, 30px);
  border-left: 4px solid var(--red);
  background:
    linear-gradient(135deg, rgba(229,55,37,.08), transparent 48%),
    rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045);
}
.anime-news-detail-copy {
  display: grid;
  gap: 15px;
}
.anime-news-detail-copy p,
.anime-news-detail-summary > p {
  margin: 0;
  color: #f0ded3;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.78;
  white-space: pre-line;
}
.anime-news-detail-source-box {
  display: grid;
  gap: 7px;
  padding: 15px 17px;
  border: 1px solid rgba(244,185,95,.18);
  background: rgba(244,185,95,.055);
}
.anime-news-detail-source-box strong {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.anime-news-detail-source-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.anime-news-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}
.anime-news-detail-actions a,
.anime-news-detail-actions button { text-decoration: none; }

@media (min-width: 1500px) {
  .anime-news-detail-dialog {
    width: min(1480px, calc(100vw - 88px));
    max-width: 1480px;
  }
  .anime-news-detail-content {
    grid-template-columns: minmax(500px, 47%) minmax(0, 1fr);
  }
}

@media (max-width: 1040px) and (min-width: 761px) {
  .anime-news-detail-dialog {
    width: calc(100vw - 30px);
    height: calc(100dvh - 30px);
    max-height: calc(100dvh - 30px);
  }
  .anime-news-detail-panel { max-height: calc(100dvh - 30px); }
  .anime-news-detail-content { grid-template-columns: minmax(330px, 42%) minmax(0, 1fr); }
  .anime-news-detail-body { padding: 28px 26px 40px; }
  .anime-news-detail-body h3 { font-size: clamp(32px, 5vw, 48px); }
}

@media (max-width: 760px) {
  .anime-news-detail-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .anime-news-detail-panel {
    height: 100dvh;
    max-height: none;
  }
  .anime-news-detail-head {
    min-height: 0;
    padding: max(14px, env(safe-area-inset-top)) 14px 14px;
  }
  .anime-news-detail-head h2 {
    max-width: calc(100vw - 76px);
    font-size: clamp(20px, 6vw, 28px);
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .anime-news-detail-content {
    grid-template-columns: 1fr;
    grid-template-rows: 210px auto;
    overflow-y: auto;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .anime-news-detail-media {
    position: relative;
    min-height: 210px;
    max-height: none;
  }
  .anime-news-detail-media::after {
    background: linear-gradient(0deg, rgba(10,4,4,.9) 0%, transparent 68%);
  }
  .anime-news-detail-image { min-height: 210px; }
  .anime-news-detail-body {
    overflow: visible;
    padding: 18px 16px 28px;
  }
  .anime-news-detail-article { width: 100%; gap: 14px; }
  .anime-news-detail-body h3 { font-size: clamp(24px, 7vw, 34px); }
  .anime-news-detail-summary { gap: 12px; padding: 14px; }
  .anime-news-detail-copy { gap: 11px; }
  .anime-news-detail-copy p,
  .anime-news-detail-summary > p { font-size: 13px; line-height: 1.65; }
  .anime-news-detail-source-box { padding: 13px 14px; }
  .anime-news-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .anime-news-detail-actions > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anime-news-detail-dialog,
  .anime-news-detail-panel { scroll-behavior: auto; }
}


/* --- V2.4.38: cache-sicherer BLEACH-Hero + interne News-Navigation --- */
.hero-slide[data-hero-slide="0"] .hero-art {
  background-image:
    linear-gradient(90deg, rgba(10,4,4,.08), rgba(10,4,4,.02)),
    url("assets/bleach-hero-460-v232.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-season-image,
.hero-season-image.is-loaded {
  opacity: .96 !important;
  visibility: visible !important;
  display: block !important;
}
.anime-news-detail-trigger {
  touch-action: manipulation;
}

/* --- V2.4.39: großformatige Desktop-News-Detailansicht --- */


/* --- V2.4.40: News-Detailaktionen sauber zentrieren + Mobile-Abstand --- */
.anime-news-detail-actions > a,
.anime-news-detail-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}
.anime-news-detail-actions > .text-action {
  padding-inline: 14px;
}

@media (max-width: 760px) {
  .anime-news-detail-body {
    padding-bottom: max(44px, calc(env(safe-area-inset-bottom) + 30px));
  }
  .anime-news-detail-actions {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    margin-bottom: 8px;
  }
  .anime-news-detail-actions > a,
  .anime-news-detail-actions > button {
    min-height: 48px;
  }
}


/* --- V2.4.43: sichtbarer News-Kartenwechsel + robuste Titeltypografie --- */
@media (min-width: 761px) {
  .anime-news-banner {
    min-height: clamp(315px, 22vw, 350px);
  }
  .anime-news-banner-link,
  .anime-news-banner-media {
    min-height: inherit;
  }
}

.anime-news-banner {
  isolation: isolate;
  contain: paint;
}

.anime-news-banner-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  will-change: transform, opacity;
  transition:
    transform .54s cubic-bezier(.22, .78, .2, 1),
    opacity .38s ease;
  backface-visibility: hidden;
}

.anime-news-banner-slide.is-current { z-index: 2; }
.anime-news-banner-slide.is-preview {
  z-index: 3;
  pointer-events: none;
}
.anime-news-banner-slide.is-leaving {
  z-index: 2;
  pointer-events: none;
}
.anime-news-banner.is-dragging .anime-news-banner-slide {
  cursor: grabbing;
}

.anime-news-banner-copy h3 {
  line-height: 1.08;
  letter-spacing: -.018em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
  padding-block: .12em .08em;
  margin-block: -.12em -.08em;
  -webkit-line-clamp: 4;
}
.anime-news-banner-copy h3.is-long {
  font-size: clamp(29px, 3.15vw, 48px);
}
.anime-news-banner-copy h3.is-very-long {
  font-size: clamp(27px, 2.8vw, 43px);
  letter-spacing: -.012em;
}

@media (max-width: 760px) {
  .anime-news-banner-copy h3 {
    line-height: 1.12;
    padding-block: .1em .06em;
    margin-block: -.1em -.06em;
    -webkit-line-clamp: 3;
  }
  .anime-news-banner-copy h3.is-long,
  .anime-news-banner-copy h3.is-very-long {
    font-size: clamp(20px, 5.7vw, 27px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .anime-news-banner-slide {
    transition: none !important;
  }
}

/* --- V2.4.45: visuelles Ziehen im Startseiten-Highlight auf Desktop und Mobile --- */
.hero-carousel[data-ready="true"] {
  cursor: grab;
}
.hero-carousel.is-dragging {
  cursor: grabbing;
}
.hero-carousel img,
.hero-carousel .hero-slide {
  -webkit-user-drag: none;
  user-select: none;
}
.hero-carousel.has-drag-layer .hero-carousel-track {
  visibility: hidden;
}
.hero-carousel-drag-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}
.hero-carousel-drag-card {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  min-width: 100% !important;
  height: 100%;
  min-height: inherit;
  margin: 0;
  pointer-events: none !important;
  transition:
    transform .68s cubic-bezier(.22, .72, .18, 1),
    opacity .68s ease;
  will-change: transform, opacity;
}
.hero-carousel.is-dragging .hero-carousel-drag-card {
  transition: none;
}
.hero-carousel-drag-card .hero-dynamic-image.is-loaded,
.hero-carousel-drag-card .hero-season-image.is-loaded {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-drag-card {
    transition: none !important;
  }
}

/* --- V2.4.47: robuste News-Klicks, entspannte Mobile-News und Swipe-Sperre --- */
@media (max-width: 760px) {
  .anime-news-page-title {
    gap: 18px;
  }
  .anime-news-page-title .page-main-title {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 50px);
    line-height: .96;
    overflow-wrap: anywhere;
  }
  .anime-news-page-title p {
    max-width: 42rem;
    line-height: 1.55;
  }

  /* News-Seite: Karten untereinander statt gequetschter Bild/Text-Spalten. */
  .anime-news-grid {
    gap: 16px;
  }
  .anime-news-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(178px, 52vw) auto;
  }
  .anime-news-card-media {
    min-height: 178px;
  }
  .anime-news-card-copy {
    gap: 9px;
    padding: 16px;
  }
  .anime-news-card-copy h2 {
    font-size: clamp(19px, 5.7vw, 25px);
    line-height: 1.12;
    -webkit-line-clamp: 4;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .anime-news-card-copy p {
    font-size: 12px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
  }

  /* Startseiten-News: genügend feste Höhe für lange Titel ohne Überlagerung. */
  .anime-news-banner,
  .anime-news-banner-link {
    min-height: 370px;
  }
  .anime-news-banner-link {
    grid-template-rows: 150px minmax(0, 1fr);
  }
  .anime-news-banner-media {
    min-height: 150px;
  }
  .anime-news-banner-copy {
    gap: 7px;
    padding: 15px 16px 17px;
  }
  .anime-news-banner-copy h3,
  .anime-news-banner-copy h3.is-long,
  .anime-news-banner-copy h3.is-very-long {
    font-size: clamp(21px, 6vw, 28px);
    line-height: 1.08;
    -webkit-line-clamp: 2;
    padding-block: .08em .04em;
    margin-block: -.08em -.04em;
  }
  .anime-news-banner-copy p {
    font-size: 11.5px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 420px) {
  .anime-news-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(170px, 54vw) auto;
  }
  .anime-news-card-media {
    min-height: 170px;
  }
  .anime-news-card-copy h2 {
    font-size: clamp(18px, 6vw, 23px);
  }
  .anime-news-banner,
  .anime-news-banner-link {
    min-height: 360px;
  }
  .anime-news-banner-link {
    grid-template-rows: 142px minmax(0, 1fr);
  }
  .anime-news-banner-media {
    min-height: 142px;
  }
}

/* --- V2.4.53 SEO Step 5: breadcrumbs and internal discovery links --- */
.page-breadcrumbs {
  position: relative;
  z-index: 2;
  margin: 0 0 16px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
}
.page-breadcrumbs.is-hidden { display: none; }
.page-breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}
.page-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}
.page-breadcrumbs li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--dim);
}
.page-breadcrumbs a {
  color: var(--gold);
  text-decoration: none;
}
.page-breadcrumbs a:hover,
.page-breadcrumbs a:focus-visible { text-decoration: underline; }
.page-breadcrumbs [aria-current="page"] {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}

.seo-discovery-band { overflow: hidden; }
.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.seo-related-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.seo-related-card:hover,
.seo-related-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-red);
  background: rgba(229, 55, 37, .08);
}
.seo-related-card img {
  width: 72px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}
.seo-related-card span,
.seo-related-card strong,
.seo-related-card small { min-width: 0; }
.seo-related-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.seo-related-card small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seo-context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.seo-context-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.seo-context-links a:hover,
.seo-context-links a:focus-visible {
  border-color: var(--gold-2);
  background: rgba(244, 185, 95, .07);
}

@media (max-width: 980px) {
  .seo-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page-breadcrumbs {
    margin-bottom: 12px;
    padding: 0 2px;
    font-size: 12px;
  }
  .page-breadcrumbs ol { gap: 6px; }
  .page-breadcrumbs li + li::before { margin-right: 6px; }
  .seo-related-grid { gap: 8px; }
  .seo-related-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 9px;
    padding: 8px;
  }
  .seo-related-card img { width: 54px; }
  .seo-related-card strong { font-size: 12px; -webkit-line-clamp: 3; }
  .seo-related-card small { font-size: 10px; }
  .seo-context-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-context-links a { justify-content: center; text-align: center; }
}

@media (max-width: 390px) {
  .seo-related-grid { grid-template-columns: 1fr; }
}

/* --- V2.4.54 SEO Step 6: Search Console readiness; no visual changes --- */

/* --- V2.4.55: exactly one route-specific H1; visual heading styles stay tag-independent --- */

/* --- V2.4.56: mobile-only News button alignment and comment deep-scroll --- */
@media (max-width: 760px) {
  #view-detail .comment-band {
    scroll-margin-top: 88px;
  }
}


/* --- V2.4.57: desktop-only library, sharing, News, comments, profile and contact fixes --- */
@media (min-width: 761px) {
  /* Offene Sortierungs-/Ansichtsmenüs liegen über den Listen-Reitern und deren Aktionsbuttons. */
  #view-lists .library-controls {
    position: relative;
    overflow: visible;
  }
  #view-lists .library-controls:has(.ar-select.is-open) {
    z-index: 60000;
  }
  #view-lists .library-control-field:has(.ar-select.is-open) {
    position: relative;
    z-index: 61000;
  }
  #view-lists .ar-select.is-open,
  #view-lists .ar-select.is-open .ar-select-menu {
    z-index: 62000;
  }

  /* Desktop-Buttontext exakt im Rahmen zentrieren. */
  .anime-news-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Kommentarziel bleibt unter dem sticky Desktop-Header sichtbar. */
  #view-detail .comment-band {
    scroll-margin-top: 96px;
  }

  .share-readonly-info {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(244, 182, 76, .25);
    border-radius: 16px;
    background: rgba(26, 9, 8, .78);
    color: var(--ink);
  }
  .share-readonly-info span {
    color: var(--muted);
    line-height: 1.45;
  }
}

/* ========================================================================== */
/* V2.4.67 Roadmap und Feedback: Desktop-Drawer / Mobile-Startseitenbereich  */
/* ========================================================================== */

.roadmap-mobile-home-slot { display: none; }

.roadmap-overlay {
  position: fixed;
  inset: 0;
  z-index: 78;
  background: rgba(4, 1, 1, .74);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.roadmap-rail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: min(410px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 185, 95, .16), transparent 19rem),
    radial-gradient(circle at 100% 34%, rgba(229, 55, 37, .18), transparent 22rem),
    linear-gradient(180deg, rgba(29, 10, 9, .985), rgba(9, 3, 4, .995));
  border-right: 1px solid rgba(244, 185, 95, .3);
  box-shadow: 24px 0 80px rgba(0, 0, 0, .6), inset -1px 0 0 rgba(229, 55, 37, .2);
  transform: translateX(-105%);
  transition: transform .24s cubic-bezier(.22, .78, .28, 1);
  isolation: isolate;
}

.roadmap-rail::before,
.roadmap-rail::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.roadmap-rail::before {
  inset: 0;
  opacity: .2;
  background:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.03) 4px 5px),
    linear-gradient(60deg, transparent 0 42%, rgba(255,255,255,.035) 42% 43%, transparent 43% 100%);
}
.roadmap-rail::after {
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  box-shadow: 0 0 24px rgba(229, 55, 37, .65);
}

.roadmap-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  top: -95px;
  left: -65px;
  border-radius: 50%;
  background: rgba(229, 55, 37, .2);
  filter: blur(28px);
  pointer-events: none;
}

body.roadmap-open { overflow: hidden; }
body.roadmap-open .roadmap-overlay { opacity: 1; visibility: visible; }
body.roadmap-open .roadmap-rail { transform: translateX(0); }

.roadmap-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 82px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 224, 177, .14);
  background: linear-gradient(270deg, rgba(229,55,37,.09), transparent 70%);
}
.roadmap-title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.roadmap-emblem {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.34);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--red), #650b07);
  color: #fff4e1;
  font-size: 21px;
  box-shadow: -6px 6px 0 rgba(0,0,0,.3), 0 0 16px rgba(214,39,24,.18);
}
.roadmap-header .section-kicker {
  display: block;
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.roadmap-header h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}
.roadmap-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.roadmap-minimize-btn span { transform: translateY(-1px); }
.roadmap-icon-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,224,177,.18);
  background: rgba(255,255,255,.035);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.roadmap-minimize-btn { display: none; }
.roadmap-icon-btn:hover {
  border-color: rgba(244,185,95,.55);
  color: var(--gold);
  background: rgba(244,185,95,.07);
}

.roadmap-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: thin;
  scrollbar-color: rgba(244,185,95,.34) transparent;
}
.roadmap-progress {
  padding: 17px;
  border: 1px solid rgba(244,185,95,.2);
  background: linear-gradient(145deg, rgba(244,185,95,.055), rgba(229,55,37,.035));
  box-shadow: inset 0 0 30px rgba(244,185,95,.025);
}
.roadmap-progress-heading h3 {
  margin: 7px 0 14px;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.08;
}
.roadmap-progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.roadmap-progress-list li {
  min-height: 48px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255,224,177,.11);
  background: rgba(255,255,255,.022);
  color: var(--dim);
}
.roadmap-progress-list li.is-current {
  border-color: rgba(244,185,95,.42);
  background: linear-gradient(90deg, rgba(229,55,37,.14), rgba(244,185,95,.045));
  color: var(--ink);
}
.roadmap-progress-number {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.2);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.roadmap-progress-list strong {
  font-size: 11px;
  line-height: 1.35;
}
.roadmap-progress-list small {
  color: var(--gold);
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.roadmap-priority-note {
  margin: 12px 2px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,224,177,.1);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.roadmap-progress + .roadmap-intro { margin-top: 16px; }

.roadmap-intro {
  padding: 18px;
  border: 1px solid rgba(244,185,95,.19);
  border-left: 3px solid var(--red);
  background: linear-gradient(120deg, rgba(229,55,37,.12), rgba(255,255,255,.02));
  box-shadow: inset 0 0 30px rgba(229,55,37,.035);
}
.roadmap-intro-kicker {
  color: var(--gold);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.roadmap-intro h3 {
  margin: 8px 0 7px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.08;
}
.roadmap-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
}

.roadmap-choice-grid {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}
.roadmap-choice-card {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255,224,177,.14);
  background: rgba(255,255,255,.026);
  color: var(--ink);
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.roadmap-choice-card:hover,
.roadmap-choice-card:focus-visible {
  transform: translateX(3px);
  border-color: rgba(244,185,95,.48);
  background: linear-gradient(90deg, rgba(229,55,37,.1), rgba(255,255,255,.035));
}
.roadmap-choice-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.34);
  background: rgba(229,55,37,.16);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 24px;
}
.roadmap-choice-card > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.roadmap-choice-card strong {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}
.roadmap-choice-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.roadmap-choice-card i {
  color: var(--gold);
  font-style: normal;
  font-size: 28px;
}

.roadmap-feedback-form { margin-top: 14px; }
.roadmap-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.roadmap-category-picker {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(244,185,95,.2);
  background: linear-gradient(135deg, rgba(244,185,95,.055), rgba(229,55,37,.045));
}
.roadmap-category-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .075em;
}
.roadmap-category-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.roadmap-category-switch button {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid rgba(255,224,177,.15);
  background: rgba(4,1,1,.42);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.roadmap-category-switch button span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 14px;
}
.roadmap-category-switch button:hover,
.roadmap-category-switch button:focus-visible {
  border-color: rgba(244,185,95,.48);
  color: var(--ink);
}
.roadmap-category-switch button.is-active {
  border-color: rgba(244,185,95,.58);
  background: linear-gradient(135deg, rgba(229,55,37,.22), rgba(244,185,95,.09));
  color: #fff5e5;
  box-shadow: inset 0 0 22px rgba(229,55,37,.07);
  transform: translateY(-1px);
}
.roadmap-feedback-heading {
  margin: 14px 0 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255,224,177,.12);
}
.roadmap-feedback-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(244,185,95,.28);
  background: rgba(244,185,95,.06);
  color: var(--gold);
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.roadmap-feedback-heading h3 {
  margin: 10px 0 5px;
  font-family: var(--font-display);
  font-size: 25px;
}
.roadmap-feedback-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.roadmap-feedback-label {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.roadmap-feedback-form textarea {
  width: 100%;
  min-height: 205px;
  resize: vertical;
  padding: 13px;
  border: 1px solid rgba(255,224,177,.18);
  background: rgba(4,1,1,.58);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  outline: none;
}
.roadmap-feedback-form textarea:focus {
  border-color: rgba(244,185,95,.55);
  box-shadow: 0 0 0 3px rgba(244,185,95,.06);
}
.roadmap-feedback-form textarea::placeholder { color: var(--dim); }
.roadmap-feedback-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.roadmap-feedback-count {
  color: var(--dim);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.roadmap-feedback-count.is-near-limit { color: #ff967f; }
.roadmap-feedback-foot .solid-action { margin-left: auto; }
.roadmap-feedback-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: #ffb6a5;
  font-size: 10px;
  line-height: 1.45;
}
.roadmap-feedback-status.is-success { color: #aee8a8; }
.roadmap-privacy-note {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.5;
}

.roadmap-success {
  margin-top: 16px;
  padding: 26px 18px;
  border: 1px solid rgba(115,220,108,.24);
  background: linear-gradient(145deg, rgba(115,220,108,.09), rgba(255,255,255,.02));
  text-align: center;
}
.roadmap-success > span {
  width: 54px;
  height: 54px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(115,220,108,.36);
  border-radius: 50%;
  color: #c9f5c5;
  font-size: 25px;
}
.roadmap-success h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
}
.roadmap-success p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.roadmap-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 45;
  min-width: 148px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 11px;
  border: 1px solid rgba(244,185,95,.48);
  background: linear-gradient(225deg, #5e0c08, #1d0707 68%, #0a0303);
  color: var(--ink);
  box-shadow: -9px 9px 0 rgba(0,0,0,.32), 0 16px 48px rgba(0,0,0,.45);
  transition: transform .18s ease, border-color .18s ease;
}
.roadmap-fab:hover { transform: translate(2px, -2px); border-color: var(--gold); }
.roadmap-fab-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.45);
  background: linear-gradient(145deg, var(--red), #650b07);
  color: #fff4e1;
  font-size: 18px;
  clip-path: polygon(50% 0, 96% 24%, 96% 76%, 50% 100%, 4% 76%, 4% 24%);
}
.roadmap-fab-text { display: grid; text-align: left; line-height: 1.05; }
.roadmap-fab-text strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 14px;
}
.roadmap-fab-text small {
  margin-top: 4px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 8px;
}

@media (min-width: 2180px) {
  .roadmap-overlay,
  .roadmap-fab { display: none !important; }
  .roadmap-rail {
    top: 98px;
    left: 22px;
    width: clamp(300px, calc((100vw - 1540px) / 2 - 30px), 360px);
    height: calc(100vh - 120px);
    z-index: 24;
    border: 1px solid rgba(244,185,95,.28);
    box-shadow: -18px 22px 70px rgba(0,0,0,.48), inset 0 0 42px rgba(229,55,37,.025);
    transform: none !important;
    transition: width .22s ease, height .22s ease, box-shadow .22s ease, border-color .22s ease;
  }
  .roadmap-close-btn { display: none; }
  .roadmap-minimize-btn { display: grid; }
  body.roadmap-open { overflow: auto; }

  .roadmap-rail.is-minimized {
    width: 286px;
    height: 66px;
    border-color: rgba(244,185,95,.38);
    box-shadow: -12px 14px 44px rgba(0,0,0,.44), inset 0 0 30px rgba(229,55,37,.04);
  }
  .roadmap-rail.is-minimized > :not(.roadmap-glow):not(.roadmap-header) {
    display: none !important;
  }
  .roadmap-rail.is-minimized .roadmap-header {
    min-height: 64px;
    height: 64px;
    padding: 10px 11px;
    border-bottom: 0;
    cursor: pointer;
  }
  .roadmap-rail.is-minimized .roadmap-emblem {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .roadmap-rail.is-minimized .roadmap-header .section-kicker { display: none; }
  .roadmap-rail.is-minimized .roadmap-header h2 {
    margin-top: 0;
    font-size: 20px;
    line-height: 1;
  }
  .roadmap-rail.is-minimized .roadmap-minimize-btn {
    border-color: rgba(244,185,95,.34);
    color: var(--gold);
    background: rgba(244,185,95,.07);
  }
}

@media (max-width: 760px) {
  .roadmap-overlay,
  .roadmap-fab { display: none !important; }

  .roadmap-mobile-home-slot {
    display: block;
    width: 100%;
    margin-top: 22px;
    padding-bottom: 8px;
  }

  .roadmap-rail.is-mobile-inline {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    border: 1px solid rgba(244,185,95,.28);
    border-right: 1px solid rgba(244,185,95,.28);
    box-shadow: -8px 12px 34px rgba(0,0,0,.34), inset 0 0 38px rgba(229,55,37,.025);
    transform: none !important;
    transition: none;
  }
  .roadmap-rail.is-mobile-inline .roadmap-close-btn,
  .roadmap-rail.is-mobile-inline .roadmap-minimize-btn { display: none !important; }
  .roadmap-rail.is-mobile-inline .roadmap-header {
    min-height: 72px;
    padding: 12px;
  }
  .roadmap-rail.is-mobile-inline .roadmap-header h2 { font-size: 22px; }
  .roadmap-rail.is-mobile-inline .roadmap-emblem { width: 38px; height: 38px; flex-basis: 38px; }
  .roadmap-rail.is-mobile-inline .roadmap-body {
    flex: none;
    min-height: auto;
    overflow: visible;
    padding: 14px 12px 18px;
  }
  .roadmap-intro { padding: 15px; }
  .roadmap-intro h3 { font-size: 22px; }
  .roadmap-choice-card { min-height: 82px; }
  .roadmap-category-switch button {
    min-height: 48px;
    padding-inline: 7px;
    font-size: 9px;
  }
  .roadmap-feedback-form textarea { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .roadmap-rail,
  .roadmap-overlay,
  .roadmap-fab,
  .roadmap-choice-card,
  .roadmap-category-switch button { transition: none; }
}


/* V2.4.67 Performance: Browser darf weit unterhalb des Viewports liegende Bereiche spaeter rendern. */
@supports (content-visibility: auto) {
  #view-home > .content-band,
  .anime-news-card,
  .release-card,
  .library-card,
  .poster-card {
    content-visibility: auto;
  }
  #view-home > .content-band { contain-intrinsic-size: auto 620px; }
  .anime-news-card { contain-intrinsic-size: auto 430px; }
  .release-card { contain-intrinsic-size: auto 170px; }
  .library-card, .poster-card { contain-intrinsic-size: auto 360px; }
}

.anime-news-card-image,
.anime-news-hero-image,
.anime-news-detail-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


/* V2.4.68 – klare Lade-, Leer-, Offline- und Fehlerzustände */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.ui-state-card {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 170px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: left;
  border: 1px solid rgba(244,185,95,.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(36,13,11,.92), rgba(17,7,7,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.ui-state-card.is-compact { min-height: 108px; padding: 20px; }
.ui-state-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: #ffd392;
  background: rgba(244,185,95,.1);
  border: 1px solid rgba(244,185,95,.22);
}
.ui-state-error .ui-state-icon,
.ui-state-offline .ui-state-icon { color: #ffb0a4; background: rgba(218,66,48,.13); border-color: rgba(255,116,91,.28); }
.ui-state-success .ui-state-icon { color: #a9e7b6; background: rgba(54,163,79,.13); border-color: rgba(93,211,120,.25); }
.ui-state-copy { max-width: 650px; min-width: 0; }
.ui-state-copy strong { display: block; margin-bottom: 6px; color: #fff4df; font-size: 1.05rem; }
.ui-state-copy p { margin: 0; color: var(--muted); line-height: 1.55; }
.ui-state-action { margin-top: 14px; }
.ui-state-loading .ui-state-icon i {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: #f4b95f;
  animation: ui-state-spin .8s linear infinite;
}
@keyframes ui-state-spin { to { transform: rotate(360deg); } }
.ui-skeleton {
  position: relative;
  overflow: hidden;
  background: #190a09;
  border: 1px solid rgba(244,185,95,.08);
}
.ui-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent);
  animation: ui-skeleton-sweep 1.25s ease-in-out infinite;
}
@keyframes ui-skeleton-sweep { to { transform: translateX(100%); } }
.network-status-banner {
  position: sticky;
  top: var(--header-height, 70px);
  z-index: 1200;
  margin: 0 auto;
  width: min(1180px, calc(100% - 24px));
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff4df;
  background: rgba(78,20,16,.97);
  border: 1px solid rgba(255,125,97,.38);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.network-status-banner.is-hidden { display: none; }
.network-status-banner div { display: grid; gap: 2px; }
.network-status-banner span { color: #e6c7bd; font-size: .86rem; }
[aria-busy="true"] { cursor: progress; }
button[aria-busy="true"] { opacity: .76; }
@media (max-width: 760px) {
  .ui-state-card { min-height: 135px; padding: 20px 16px; gap: 13px; align-items: flex-start; }
  .ui-state-card.is-compact { min-height: 96px; }
  .ui-state-icon { flex-basis: 38px; width: 38px; height: 38px; font-size: 18px; }
  .ui-state-copy strong { font-size: 1rem; }
  .network-status-banner { top: 61px; width: calc(100% - 16px); align-items: flex-start; }
  .network-status-banner .small-btn { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ui-state-loading .ui-state-icon i,
  .ui-skeleton::after { animation: none; }
}

/* V2.4.75 – Produktanalyse-Dashboard, Footer und Release-Erinnerungen */
.product-analytics-panel {
  margin-top: 26px;
}
.product-analytics-head {
  align-items: flex-start;
  gap: 20px;
}
.product-analytics-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}
.product-analytics-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.product-analytics-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.product-analytics-controls select {
  min-width: 120px;
}
.product-analytics-status {
  min-height: 22px;
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: .88rem;
}
.product-analytics-summary {
  margin-bottom: 18px;
}
.product-analytics-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.product-analytics-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}
.product-analytics-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}
.product-analytics-list {
  display: grid;
  gap: 8px;
}
.product-analytics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}
.product-analytics-row:last-child {
  border-bottom: 0;
}
.product-analytics-row span {
  min-width: 0;
}
.product-analytics-row strong,
.product-analytics-row small {
  display: block;
}
.product-analytics-row strong {
  overflow-wrap: anywhere;
}
.product-analytics-row small {
  margin-top: 3px;
  color: var(--muted);
}
.product-analytics-row > b {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.product-analytics-funnel > b {
  font-size: 1.15rem;
}
@media (max-width: 900px) {
  .product-analytics-columns {
    grid-template-columns: 1fr;
  }
  .product-analytics-head {
    display: grid;
  }
}

/* V2.4.75 – konto-basierte Anime-Release-Erinnerungen */
.detail-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px 50px;
  align-items: stretch;
  gap: 10px;
}
.detail-action-row .detail-list-action,
.detail-action-row .detail-fav-action,
.detail-action-row .detail-reminder-action {
  min-height: 50px;
  height: 50px;
}
.detail-reminder-action {
  width: 50px;
  min-width: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  align-self: stretch;
  border-color: rgba(244,185,95,.22);
  position: relative;
}
.detail-reminder-action .bell-icon {
  display: block;
  font-size: 20px;
  line-height: 1;
  filter: grayscale(.32) drop-shadow(0 6px 14px rgba(0,0,0,.3));
  transition: transform .18s ease, filter .18s ease;
}
.detail-reminder-action:hover .bell-icon,
.detail-reminder-action:focus-visible .bell-icon {
  transform: rotate(-8deg) scale(1.08);
}
.detail-reminder-action.is-active {
  color: #fff8e8;
  border-color: rgba(244,185,95,.72);
  background: linear-gradient(135deg, rgba(191,40,28,.9), rgba(91,10,7,.96));
  box-shadow: 0 10px 24px rgba(91,10,7,.34), 0 0 0 1px rgba(244,185,95,.08) inset;
}
.detail-reminder-action.is-active::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(244,185,95,.12);
}
.detail-reminder-action.is-active .bell-icon {
  filter: none;
}
.detail-reminder-action.is-paused {
  opacity: .72;
  border-style: dashed;
}

.release-reminder-dialog {
  width: min(690px, calc(100vw - 28px));
  max-height: min(820px, 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;
}
.release-reminder-dialog::backdrop {
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
}
.release-reminder-panel {
  min-width: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 92% 4%, rgba(199,45,31,.22), transparent 34%),
    linear-gradient(180deg, rgba(47,8,6,.92), rgba(9,3,3,.98) 34%);
}
.release-reminder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.release-reminder-head h2 {
  margin: 6px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.05;
}
.release-reminder-guest,
.release-reminder-form {
  display: grid;
  gap: 16px;
}
.release-reminder-feature-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.34);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(191,40,28,.34), rgba(64,7,5,.82));
  color: var(--gold);
  font-size: 34px;
  transform: rotate(45deg);
}
.release-reminder-feature-icon::first-letter {
  transform: rotate(-45deg);
}
.release-reminder-guest h3 {
  margin: 0;
  font-size: 1.38rem;
}
.release-reminder-guest > p,
.release-reminder-disclaimer,
.release-reminders-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}
.release-reminder-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.release-reminder-info-grid > span {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(244,185,95,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.release-reminder-info-grid b {
  color: #fff7e9;
  font-size: .88rem;
}
.release-reminder-info-grid small {
  color: var(--muted);
  line-height: 1.45;
}
.release-reminder-anime {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(244,185,95,.2);
  border-radius: 17px;
  background: rgba(255,255,255,.035);
}
.release-reminder-anime img,
.release-reminder-cover-fallback {
  width: 88px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(244,185,95,.18);
  background: #1a0706;
}
.release-reminder-cover-fallback {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 950;
}
.release-reminder-anime h3 {
  margin: 5px 0 7px;
  font-size: 1.2rem;
}
.release-reminder-anime p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.release-reminder-email-note {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 13px 13px 0;
  background: rgba(244,185,95,.07);
}
.release-reminder-email-note > span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.release-reminder-email-note strong {
  overflow-wrap: anywhere;
}
.release-reminder-email-note small {
  color: var(--muted);
  line-height: 1.45;
}
.release-reminder-no-schedule {
  padding: 14px 16px;
  border: 1px solid rgba(233,103,74,.34);
  border-radius: 13px;
  background: rgba(137,24,15,.16);
  color: #ffd4c8;
  line-height: 1.55;
}
.release-reminder-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.release-reminder-fields.is-disabled {
  opacity: .55;
}
.release-reminder-fields > label,
.release-reminder-repeat {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(244,185,95,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  color: #f9ece5;
  font-weight: 800;
}
.release-reminder-repeat legend {
  padding: 0 5px;
  color: #f9ece5;
  font-weight: 800;
}
.release-reminder-repeat label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}
.release-reminder-repeat input {
  width: auto;
  margin-top: 2px;
}
.release-reminder-form-status,
.release-reminders-status {
  min-height: 22px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.release-reminder-form-status.ok,
.release-reminders-status.ok {
  color: #aee4b5;
}
.release-reminder-form-status.err,
.release-reminders-status.err {
  color: #ffafa0;
}
.release-reminder-actions,
.release-reminders-head-actions,
.release-reminder-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.release-reminder-actions > * {
  flex: 1 1 180px;
}
.release-reminder-disclaimer {
  font-size: .78rem;
}

.release-reminders-band {
  margin-top: 24px;
}
.release-reminders-head {
  align-items: flex-start;
  gap: 18px;
}
.release-reminders-head > div:first-child {
  max-width: 760px;
}
.release-reminders-list {
  display: grid;
  gap: 12px;
}
.release-reminder-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(244,185,95,.14);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(83,9,6,.08));
  transition: border-color .18s ease, transform .18s ease, opacity .18s ease;
}
.release-reminder-card:hover {
  border-color: rgba(244,185,95,.32);
  transform: translateY(-1px);
}
.release-reminder-card.is-paused {
  opacity: .7;
}
.release-reminder-cover {
  width: 94px;
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 1px solid rgba(244,185,95,.16);
  border-radius: 12px;
  overflow: hidden;
  background: #160605;
  color: var(--gold);
  font-weight: 950;
  cursor: pointer;
}
.release-reminder-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.release-reminder-card-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 9px;
}
.release-reminder-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.release-reminder-card-title h3 {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}
.release-reminder-state {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(244,185,95,.22);
  border-radius: 999px;
  background: rgba(244,185,95,.07);
  color: var(--gold);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.release-reminder-card.is-paused .release-reminder-state {
  color: var(--muted);
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.035);
}
.release-reminder-card-copy > p {
  margin: 0;
  color: var(--muted);
}
.release-reminder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.release-reminder-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #e7d6cf;
  font-size: .74rem;
  font-weight: 800;
}
.release-reminder-card-actions .ghost-action,
.release-reminder-card-actions .small-btn {
  min-height: 38px;
  padding: 8px 12px;
}

@media (max-width: 760px) {
  .detail-action-row {
    grid-template-columns: minmax(0, 1fr) 50px 50px !important;
    gap: 8px !important;
  }
  .detail-action-row .detail-list-action,
  .detail-action-row .detail-fav-action,
  .detail-action-row .detail-reminder-action {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    height: 50px !important;
  }
  .release-reminder-panel {
    padding: 18px;
  }
  .release-reminder-info-grid,
  .release-reminder-fields {
    grid-template-columns: 1fr;
  }
  .release-reminders-head {
    display: grid;
  }
  .release-reminder-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 11px;
  }
  .release-reminder-cover {
    width: 78px;
  }
  .release-reminder-card-title {
    display: grid;
    gap: 8px;
  }
  .release-reminder-state {
    justify-self: start;
  }
  .release-reminder-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .release-reminder-card-actions > :last-child {
    grid-column: 1 / -1;
  }
  #view-profile.mobile-profile-mode-reminders [data-mobile-profile-pane="reminders"] {
    display: block !important;
  }
  #view-profile.mobile-profile-mode-reminders .profile-shell,
  #view-profile.mobile-profile-mode-reminders .profile-rated-band {
    display: none !important;
  }
  #view-profile.mobile-profile-mode-reminders .release-reminders-band {
    margin-top: 0;
  }
}

@media (max-width: 430px) {
  .detail-action-row {
    grid-template-columns: minmax(0, 1fr) 46px 46px !important;
  }
  .detail-action-row .detail-fav-action,
  .detail-action-row .detail-reminder-action {
    min-height: 48px !important;
    height: 48px !important;
  }
  .release-reminder-anime {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .release-reminder-anime img,
  .release-reminder-cover-fallback {
    width: 70px;
  }
  .release-reminder-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .release-reminder-cover {
    width: 64px;
  }
  .release-reminder-card-actions {
    grid-template-columns: 1fr;
  }
  .release-reminder-card-actions > :last-child {
    grid-column: auto;
  }
  .release-reminder-actions > * {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-reminder-action .bell-icon,
  .release-reminder-card {
    transition: none;
  }
}

/* AnimeRadar: desktop reminder profile pane fix */
@media (min-width: 761px) {
  #view-profile.mobile-profile-mode-reminders [data-mobile-profile-pane="reminders"] {
    display: block !important;
  }

  #view-profile.mobile-profile-mode-reminders .profile-shell,
  #view-profile.mobile-profile-mode-reminders .profile-rated-band {
    display: none !important;
  }

  #view-profile.mobile-profile-mode-reminders .release-reminders-band {
    margin-top: 0;
  }
}

/* AnimeRadar v2.4.76 UI: Reminder-Auswahl und Desktop-FAB-Icons */
.release-reminder-repeat-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}
.release-reminder-repeat-options label {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(244,185,95,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.release-reminder-repeat-options label:hover,
.release-reminder-repeat-options label:focus-within {
  border-color: rgba(244,185,95,.46);
  background: rgba(244,185,95,.065);
  color: #fff7e9;
}
.release-reminder-repeat-options input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--red);
}
.release-reminder-repeat-options span {
  min-width: 0;
}

.community-chat-fab-symbol,
.roadmap-fab-symbol {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.community-chat-fab-symbol path:last-child {
  stroke-width: 2.8;
}
.roadmap-fab-symbol {
  width: 22px;
  height: 22px;
}

@media (max-width: 760px) {
  .community-chat-fab-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
  }
  .community-chat-fab-symbol {
    width: 18px;
    height: 18px;
  }
  .community-chat-fab-mobile-label {
    display: block;
    line-height: 1;
  }
}

/* AnimeRadar v2.4.77 UI: Button-Hoehe, identisches Chat-Icon und mobile Reminder-Auswahl */
.community-chat-fab-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.community-chat-fab-symbol {
  width: 18px;
  height: 18px;
}
.community-chat-fab-mobile-label {
  display: block;
  line-height: 1;
}

@media (min-width: 761px) {
  .release-reminder-actions {
    align-items: stretch;
  }
  .release-reminder-actions > .solid-action,
  .release-reminder-actions > .ghost-action {
    min-width: 0;
    min-height: 46px;
    height: 46px;
    padding-block: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .release-reminder-dialog {
    overflow-x: hidden;
  }
  .release-reminder-panel,
  .release-reminder-form,
  .release-reminder-fields,
  .release-reminder-repeat,
  .release-reminder-repeat-options {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .release-reminder-repeat {
    overflow: hidden;
  }
  .release-reminder-repeat-options label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px;
    gap: 8px;
    overflow: hidden;
  }
  .release-reminder-repeat-options span {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.35;
  }
}

/* AnimeRadar v2.4.78 UI: Desktop-Buttons und kompaktes Chat-FAB-Icon */
@media (min-width: 761px) {
  /* Profil > Erinnerungen: Kopfaktionen exakt auf einer Linie. */
  .release-reminders-head-actions {
    align-items: center;
  }
  .release-reminders-head-actions > #releaseRemindersRefreshBtn,
  .release-reminders-head-actions > #releaseRemindersDeactivateAllBtn {
    box-sizing: border-box;
    min-height: 40px;
    height: 40px;
    margin: 0;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 11px;
    white-space: nowrap;
  }

  /* Glocken-Popup: Speichern und Deaktivieren exakt gleich hoch. */
  .release-reminder-actions {
    align-items: stretch;
  }
  #releaseReminderSaveBtn,
  #releaseReminderDeactivateBtn {
    box-sizing: border-box;
    min-height: 46px;
    height: 46px;
    margin: 0;
    padding-block: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  /* Profilkarten: Löschen sitzt auf derselben Grundlinie wie die anderen Aktionen. */
  .release-reminder-card-actions {
    align-items: center;
  }
  .release-reminder-card-actions > .small-btn,
  .release-reminder-card-actions > .ghost-action {
    box-sizing: border-box;
    min-height: 38px;
    height: 38px;
    margin: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  /* Desktop-Chat-FAB: mobile Iconaufteilung, kompakter zusammengerückt. */
  .community-chat-fab {
    gap: 8px;
    padding-left: 7px;
  }
  .community-chat-fab-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    gap: 0;
  }
  .community-chat-fab-symbol {
    width: 17px;
    height: 17px;
    margin: 0 0 -1px;
  }
  .community-chat-fab-mobile-label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: .8;
  }
  .community-chat-fab-mobile-label b {
    margin-top: 0;
    font-size: 8px;
    line-height: 1;
    letter-spacing: .02em;
  }
}

/* AnimeRadar v2.4.79 UI: Desktop-Roadmap nutzt das bestehende Karten-Icon */
.roadmap-emblem-symbol {
  display: none;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 2180px) {
  .roadmap-emblem {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border: 1px solid rgba(244,185,95,.45);
    border-radius: 0;
    clip-path: polygon(50% 0, 96% 24%, 96% 76%, 50% 100%, 4% 76%, 4% 24%);
    background: linear-gradient(145deg, var(--red), #650b07);
    box-shadow: none;
  }
  .roadmap-emblem-spark { display: none; }
  .roadmap-emblem-symbol { display: block; }

  .roadmap-rail.is-minimized .roadmap-emblem {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}


/* AnimeRadar V2.4.82: Canon-/Filler-/Mixed-Markierungen bei Episoden */
:root {
  --episode-filler: #258cff;
  --episode-filler-deep: #0c4f9c;
  --episode-mixed: #8251bd;
  --episode-mixed-deep: #4d2b82;
}

.episode-progress-head {
  align-items: flex-start;
  gap: 18px;
}

.episode-progress-tools {
  display: grid;
  justify-items: end;
  gap: 9px;
  min-width: min(100%, 330px);
}

.episode-type-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  gap: 8px;
  width: min(100%, 330px);
}

.episode-type-key {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(244,185,95,.2);
  background: rgba(255,255,255,.025);
  color: rgba(255,244,222,.8);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.episode-type-key i {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 0 0 3px rgba(255,255,255,.025);
}

.episode-type-key.is-canon i {
  background: linear-gradient(135deg, var(--red), var(--gold));
}

.episode-type-key.is-filler i {
  background: linear-gradient(135deg, var(--episode-filler-deep), var(--episode-filler));
}

.episode-type-key.is-mixed i {
  background: linear-gradient(135deg, var(--episode-mixed-deep), var(--episode-mixed));
}

.episode-btn.episode-filler:not(.future):not(:disabled) {
  border-color: rgba(37,140,255,.62);
  background: linear-gradient(145deg, rgba(12,79,156,.34), rgba(37,140,255,.13));
  color: #dceeff;
}

.episode-btn.episode-mixed:not(.future):not(:disabled) {
  border-color: rgba(130,81,189,.68);
  background: linear-gradient(145deg, rgba(77,43,130,.38), rgba(130,81,189,.15));
  color: #f0e3ff;
}

.episode-btn.episode-filler.watched:not(.future):not(:disabled) {
  background: linear-gradient(135deg, var(--episode-filler-deep), var(--episode-filler));
  border-color: transparent;
  color: #f4faff;
}

.episode-btn.episode-mixed.watched:not(.future):not(:disabled) {
  background: linear-gradient(135deg, var(--episode-mixed-deep), var(--episode-mixed));
  border-color: transparent;
  color: #fff7ff;
}

.episode-btn.episode-filler:not(.future):not(:disabled):hover {
  border-color: rgba(84,182,255,.95);
  box-shadow: 0 0 0 2px rgba(37,140,255,.11);
}

.episode-btn.episode-mixed:not(.future):not(:disabled):hover {
  border-color: rgba(166,112,225,.96);
  box-shadow: 0 0 0 2px rgba(130,81,189,.12);
}

@media (max-width: 760px) {
  .episode-progress-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .episode-progress-tools {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  .episode-progress-tools > .release-meta {
    justify-self: start;
  }

  .episode-type-legend {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .episode-type-key {
    min-width: 0;
    min-height: 32px;
    gap: 6px;
    padding: 6px 5px;
    font-size: .65rem;
    letter-spacing: .035em;
  }

  .episode-type-key i {
    width: 9px;
    height: 9px;
    flex-basis: 9px;
  }
}


/* AnimeRadar V2.4.83: completed roadmap item */
.roadmap-progress-list li.is-complete {
  border-color: rgba(75, 200, 104, .28);
  background: linear-gradient(90deg, rgba(52, 163, 78, .09), rgba(255, 255, 255, .018));
  color: var(--ink);
}
.roadmap-progress-complete {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(100, 225, 127, .38);
  border-radius: 999px;
  background: rgba(50, 165, 76, .16);
  color: #9ff0ad !important;
  font-size: 14px !important;
  line-height: 1;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 0 16px rgba(64, 190, 91, .12);
}

/* --- V2.4.92: ausgewogenes Posterformat beim Anime-Geheimtipp --- */
.hidden-treasure-inner {
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 18px 20px;
}
.hidden-treasure-inner > img {
  display: block;
  width: 156px;
  height: 208px;
  min-width: 156px;
  max-width: 156px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  align-self: center;
  flex: 0 0 auto;
  border: 1px solid rgba(244, 185, 95, .26);
  border-radius: 3px;
  box-shadow: 0 15px 32px rgba(0, 0, 0, .34);
}
.hidden-treasure-inner > div {
  min-width: 0;
}

@media (max-width: 760px) {
  .hidden-treasure-inner {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 13px;
  }
  .hidden-treasure-inner > img {
    width: 96px;
    height: 128px;
    min-width: 96px;
    max-width: 96px;
    aspect-ratio: 3 / 4;
    object-position: center 18%;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
  }
}

@media (max-width: 420px) {
  .hidden-treasure-inner {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 11px;
  }
  .hidden-treasure-inner > img {
    width: 86px;
    height: 115px;
    min-width: 86px;
    max-width: 86px;
  }
}

/* AnimeRadar V2.4.94 - Vereinfachte Streaminganbieter */
.streaming-provider-band {
  position: relative;
  overflow: hidden;
  border-color: rgba(244, 185, 95, .22);
  background:
    radial-gradient(circle at 92% 0%, rgba(244, 185, 95, .10), transparent 19rem),
    linear-gradient(145deg, rgba(31, 12, 10, .96), rgba(12, 5, 5, .98));
}

.streaming-provider-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background:
    linear-gradient(90deg, transparent 0 49.7%, rgba(244,185,95,.18) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 0 49.7%, rgba(244,185,95,.12) 50%, transparent 50.3%);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 100%);
}

.streaming-provider-band > * { position: relative; z-index: 1; }

.streaming-provider-head {
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.streaming-provider-head h2 { margin-bottom: 0; }

.streaming-country-chip {
  min-width: 42px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(244, 185, 95, .38);
  background: rgba(244, 185, 95, .08);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .13em;
  box-shadow: inset 0 0 18px rgba(244, 185, 95, .05);
}

.streaming-provider-loading,
.streaming-provider-empty {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 224, 177, .12);
  background: rgba(0, 0, 0, .24);
}

.streaming-provider-loading > div,
.streaming-provider-empty > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.streaming-provider-loading strong,
.streaming-provider-empty strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .02em;
}

.streaming-provider-loading span,
.streaming-provider-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.streaming-provider-radar,
.streaming-provider-empty-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(244, 185, 95, .4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: radial-gradient(circle, rgba(244,185,95,.16) 0 3px, transparent 4px), rgba(244,185,95,.04);
  box-shadow: inset 0 0 20px rgba(244,185,95,.08), 0 0 24px rgba(244,185,95,.07);
}

.streaming-provider-radar::before,
.streaming-provider-radar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.streaming-provider-radar { position: relative; }
.streaming-provider-radar::before {
  inset: 8px;
  border: 1px solid rgba(244,185,95,.28);
}
.streaming-provider-radar::after {
  inset: 3px;
  background: conic-gradient(from 0deg, transparent 0 78%, rgba(244,185,95,.65) 92%, transparent 100%);
  animation: streamingRadarSweep 1.6s linear infinite;
}

@keyframes streamingRadarSweep { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .streaming-provider-radar::after { animation: none; opacity: .45; }
}

.streaming-provider-list { display: grid; gap: 16px; }

.streaming-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.streaming-provider-card {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 224, 177, .13);
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  box-shadow: inset 3px 0 0 rgba(244,185,95,.22);
}

.streaming-provider-card img,
.streaming-provider-logo-fallback {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(244,185,95,.2);
  background: #fff;
}

.streaming-provider-logo-fallback {
  display: grid;
  place-items: center;
  background: rgba(244,185,95,.1);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 950;
}

.streaming-provider-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streaming-provider-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(244,185,95,.16);
}

.streaming-provider-foot strong {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .025em;
}

.streaming-provider-link {
  flex: 0 0 auto;
  min-height: 38px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .streaming-provider-band { padding: 18px 14px !important; }
  .streaming-provider-head { align-items: flex-start; margin-bottom: 14px; }
  .streaming-country-chip { min-width: 38px; height: 29px; }
  .streaming-provider-grid { grid-template-columns: 1fr; gap: 8px; }
  .streaming-provider-card { min-height: 62px; grid-template-columns: 42px minmax(0, 1fr); padding: 9px 10px; }
  .streaming-provider-card img,
  .streaming-provider-logo-fallback { width: 42px; height: 42px; border-radius: 9px; }
  .streaming-provider-loading,
  .streaming-provider-empty { align-items: flex-start; min-height: 0; padding: 14px; }
  .streaming-provider-radar,
  .streaming-provider-empty-icon { width: 42px; height: 42px; }
  .streaming-provider-foot { align-items: stretch; flex-direction: column; }
  .streaming-provider-link { width: 100%; }
}

@media (max-width: 420px) {
  .streaming-provider-head h2 { font-size: 24px; }
  .streaming-provider-loading,
  .streaming-provider-empty { gap: 11px; }
  .streaming-provider-loading strong,
  .streaming-provider-empty strong { font-size: 15px; }
}


/* V2.4.99: Streaminganbieter-Filter in der Suche */
.search-provider-note {
  display: block;
  margin: -5px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.search-streaming-match {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(114, 227, 255, 0.2);
  border-radius: 999px;
  background: rgba(41, 164, 196, 0.09);
  color: var(--text);
  font-size: 12px;
}
.search-streaming-match img,
.search-streaming-match > span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
}
.search-streaming-match > span {
  display: grid;
  place-items: center;
  color: #15212c;
  font-weight: 800;
}
.search-streaming-match strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- V2.4.105: filter dropdowns open without moving page content --- */
/* Generic upward placement remains available outside Search and Calendar. */
.ar-select.opens-up .ar-select-menu {
  top: auto;
  bottom: calc(100% + 8px);
}

#view-search,
#view-search .search-board,
#view-search .search-filter-card,
#view-calendar,
#view-calendar .calendar-stage,
#view-calendar .calendar-filters,
#view-calendar .filter-body,
#view-search .search-filter-card label,
#view-calendar .calendar-filters label {
  overflow: visible;
}

#view-search .search-filter-card:has(.ar-select.is-open),
#view-calendar .calendar-filters:has(.ar-select.is-open) {
  z-index: 500;
}

#view-search .search-filter-card label:has(.ar-select.is-open),
#view-calendar .calendar-filters label:has(.ar-select.is-open) {
  position: relative;
  z-index: 700;
}

#view-search .ar-select-filter,
#view-calendar .ar-select-filter {
  z-index: 30;
}

#view-search .ar-select-filter.is-open,
#view-calendar .ar-select-filter.is-open {
  z-index: 900;
}

#view-search .ar-select-filter .ar-select-menu,
#view-calendar .ar-select-filter .ar-select-menu,
#view-search .ar-select-filter.opens-up .ar-select-menu,
#view-calendar .ar-select-filter.opens-up .ar-select-menu {
  top: calc(100% + 8px);
  bottom: auto;
  z-index: 1000;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

#view-search .ar-select-search-filter .ar-select-menu {
  max-height: 180px;
}

#view-search .ar-select-search-filter .ar-select-option,
#view-calendar .ar-select-calendar-filter .ar-select-option {
  min-height: 40px;
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(#view-search .ar-select.is-open) .shell,
body:has(#view-calendar .ar-select.is-open) .shell {
  z-index: 100;
}

body:has(#view-search .ar-select.is-open) .site-footer,
body:has(#view-calendar .ar-select.is-open) .site-footer {
  z-index: 0;
}

@media (max-width: 760px) {
  #view-search .search-filter-card:has(.ar-select.is-open),
  #view-calendar .calendar-filters:has(.ar-select.is-open) {
    z-index: 500;
  }
}

/* --- V2.4.106: Streaminganbieter immer in Suchtreffern anzeigen --- */
.search-streaming-provider-slot:empty {
  display: none;
}

.search-streaming-providers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  max-width: 100%;
}

.search-streaming-providers .search-streaming-match {
  margin-top: 0;
  max-width: min(100%, 230px);
}

.search-streaming-more {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid rgba(114, 227, 255, 0.22);
  border-radius: 999px;
  background: rgba(41, 164, 196, 0.08);
  color: var(--cyan);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.search-streaming-more:hover,
.search-streaming-more:focus-visible {
  border-color: rgba(114, 227, 255, 0.55);
  background: rgba(41, 164, 196, 0.16);
}

.search-streaming-more:focus-visible {
  outline: 2px solid rgba(114, 227, 255, 0.75);
  outline-offset: 2px;
}

.search-streaming-provider-item.is-desktop-extra,
.search-streaming-more-mobile,
.search-streaming-less {
  display: none;
}

.search-streaming-providers.is-expanded .search-streaming-provider-item,
.search-streaming-providers.is-expanded .search-streaming-less {
  display: inline-flex;
}

.search-streaming-providers.is-expanded .search-streaming-more-desktop,
.search-streaming-providers.is-expanded .search-streaming-more-mobile {
  display: none;
}

@media (max-width: 720px) {
  .search-streaming-provider-item.is-mobile-extra {
    display: none;
  }

  .search-streaming-more-desktop {
    display: none;
  }

  .search-streaming-more-mobile {
    display: inline-flex;
  }

  .search-streaming-providers.is-expanded .search-streaming-provider-item,
  .search-streaming-providers.is-expanded .search-streaming-less {
    display: inline-flex;
  }

  .search-streaming-providers.is-expanded .search-streaming-more-mobile {
    display: none;
  }
}


/* --- V2.4.110: Streaminganbieter-Filter auch im Kalender --- */
#view-calendar .calendar-provider-note {
  margin-top: -5px;
  margin-bottom: 4px;
}

#view-calendar .ar-select-streaming-provider-filter .ar-select-menu {
  max-height: 180px;
}


/* --- V2.4.113: durchsuchbarer Animationsstudio-Filter --- */
#view-search .ar-select-studio-filter .ar-select-menu,
#view-calendar .ar-select-studio-filter .ar-select-menu {
  overflow: hidden;
  max-height: 238px;
}
#view-search .ar-select-studio-filter.is-open .ar-select-menu,
#view-calendar .ar-select-studio-filter.is-open .ar-select-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ar-select-studio-search {
  flex: 0 0 auto;
}
.ar-select-studio-search-input {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(244,185,95,.22);
  border-radius: 0;
  background: rgba(255,255,255,.055);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  outline: none;
}
.ar-select-studio-search-input::placeholder {
  color: var(--muted);
}
.ar-select-studio-search-input:focus {
  border-color: rgba(244,185,95,.62);
  box-shadow: 0 0 0 2px rgba(244,185,95,.09);
}
.ar-select-studio-options {
  display: grid;
  gap: 2px;
  max-height: 166px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.ar-select-studio-empty {
  padding: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.ar-select-option[hidden] {
  display: none !important;
}

/* --- V2.4.115: robustes Season-Hero zwischen Mobile- und Desktoplayout --- */
@media (min-width: 761px) and (max-width: 1180px) {
  .hero-grid,
  .hero-carousel,
  .hero-carousel-track,
  .hero-carousel .hero-slide {
    min-width: 0;
    max-width: 100%;
  }

  .hero-carousel {
    min-height: clamp(400px, 54vw, 520px);
    overflow: hidden;
  }

  .hero-carousel-track,
  .hero-carousel .hero-slide {
    min-height: inherit;
  }

  .hero-carousel .hero-slide {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 42%);
    align-items: stretch;
  }

  .hero-carousel .hero-copy {
    min-width: 0;
    padding: clamp(28px, 4vw, 46px);
  }

  .hero-carousel .hero-copy .hero-main-title {
    max-width: 100%;
    font-size: clamp(38px, 5.2vw, 58px);
    overflow-wrap: anywhere;
  }

  .hero-carousel .hero-art {
    display: block;
    position: relative;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    order: initial;
    overflow: hidden;
  }

  .hero-carousel .hero-art .hero-fixed-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* --- V2.4.116: belastbarer Hero-Normalfluss und sichtbarer Preload-Fallback --- */
/*
 * Laufzeitbefund aus Playwright:
 * - Die Bildknoten und Requests waren vorhanden und erfolgreich.
 * - Dynamische Slides blieben bei langsamer CDN-Antwort jedoch auf opacity .16.
 * - Bei 707 px griff weiterhin das kompakte 94-px-Mobilelayout.
 * Die folgenden Regeln korrigieren deshalb Bild-Painting und echte Maße,
 * statt nur den Container erneut mit display:block einzublenden.
 */
.hero-carousel .hero-dynamic-image.is-image-loading,
.hero-carousel .hero-dynamic-image.is-image-loading.is-loaded {
  opacity: .96 !important;
}

/* Die ältere langsame Zoom-Transition vergrößerte die gemessene Bildbox
 * während der ersten Sekunden über den Hero-Rahmen hinaus. Das Bild bleibt
 * nun in allen Ausrichtungen exakt in seiner Art-Fläche. */
.hero-carousel .hero-slide .hero-art .hero-fixed-image {
  transform: none;
}

@media (min-width: 600px) and (max-width: 1180px) {
  .hero-grid,
  .hero-carousel,
  .hero-carousel-track,
  .hero-carousel .hero-slide {
    min-width: 0;
    max-width: 100%;
  }

  .hero-carousel {
    height: clamp(380px, 54vw, 520px);
    min-height: clamp(380px, 54vw, 520px);
    overflow: hidden;
  }

  .hero-carousel-track,
  .hero-carousel .hero-slide {
    height: 100%;
    min-height: 100%;
  }

  .hero-carousel .hero-slide {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 42%);
    align-items: stretch;
  }

  .hero-carousel .hero-copy {
    min-width: 0;
    align-self: center;
    padding: clamp(24px, 3.8vw, 46px);
  }

  .hero-carousel .hero-copy .hero-main-title,
  .hero-carousel .hero-dynamic-title {
    max-width: 100%;
    font-size: clamp(32px, 5.2vw, 58px);
    overflow-wrap: anywhere;
  }

  .hero-carousel .hero-art {
    display: grid;
    position: relative;
    place-items: stretch;
    align-self: stretch;
    min-width: 0;
    width: auto;
    height: clamp(380px, 54vw, 520px);
    min-height: clamp(380px, 54vw, 520px);
    order: initial;
    overflow: hidden;
  }

  .hero-carousel .hero-art .hero-fixed-image {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
  }

  /* Die linke Desktop-Pfeiltaste lag im Hochformat über Beschreibungstext.
   * Punkte, Tastatur und Swipe bleiben als vollständige Navigation erhalten. */
  .hero-carousel-arrow {
    display: none;
  }
}

/* 600–760 px war zuvor noch durch mehrere ältere !important-Mobilewerte
 * auf eine 94-px-Vorschau gezwungen. Nur diese nachgewiesenen Kaskadenwerte
 * werden hier gezielt in das Tabletlayout überführt. */
@media (min-width: 600px) and (max-width: 760px) {
  .hero-carousel,
  .hero-carousel-track {
    height: clamp(380px, 54vw, 420px) !important;
    min-height: clamp(380px, 54vw, 420px) !important;
    padding: 0 !important;
  }

  .hero-carousel .hero-slide {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 42%) !important;
    align-items: stretch !important;
    gap: 0 !important;
    height: 100% !important;
    min-height: 100% !important;
    padding: 0 !important;
  }

  .hero-carousel .hero-slide .hero-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    padding: clamp(24px, 3.8vw, 34px) !important;
  }

  .hero-carousel .hero-slide .hero-art {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    height: 100% !important;
    min-height: 100% !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-carousel .hero-slide .hero-copy .section-kicker {
    display: inline-flex !important;
  }

  .hero-carousel .hero-slide .hero-copy p {
    display: -webkit-box !important;
  }

  .hero-carousel .hero-actions {
    display: flex !important;
  }
}

/* Auch die geforderte Smartphoneprüfung braucht eine echte Bildfläche von
 * mehr als 100 px, ohne den kompakten Aufbau aufzugeben. */
@media (max-width: 599px) {
  .hero-carousel .hero-slide {
    grid-template-columns: clamp(106px, 28vw, 126px) minmax(0, 1fr) !important;
  }

  .hero-carousel .hero-slide .hero-art {
    width: clamp(106px, 28vw, 126px) !important;
    height: clamp(128px, 36vw, 154px) !important;
    min-height: clamp(128px, 36vw, 154px) !important;
  }

  .hero-carousel .hero-art .hero-fixed-image {
    transform: none;
  }
}

/* --- V2.4.117: Small-Phone Header, Safe Areas und Interaktionsebenen --- */
.toast-host {
  pointer-events: none;
}
.toast-host .toast {
  pointer-events: auto;
}

@media (max-width: 760px) {
  .native-app .mobile-tabs {
    bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .toast-host {
    right: 10px;
    bottom: max(88px, calc(80px + env(safe-area-inset-bottom, 0px)));
    max-width: calc(100vw - 20px);
  }

  .community-chat-fab {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 420px) {
  .topbar,
  .native-app .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding-inline: 8px;
    overflow: visible !important;
  }

  .topbar .brand,
  .native-app .topbar .brand {
    min-width: 0;
    max-width: 100%;
    gap: 6px !important;
    overflow: hidden;
  }

  .topbar .brand-mark,
  .native-app .topbar .brand-mark {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }

  .topbar .brand-text,
  .native-app .topbar .brand-text {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .topbar .brand-text strong,
  .native-app .topbar .brand-text strong {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(15px, 4.8vw, 18px) !important;
    letter-spacing: .035em !important;
    line-height: 1 !important;
  }

  .topbar .top-actions,
  .native-app .topbar .top-actions {
    min-width: 0;
    max-width: min(36vw, 116px);
  }

  .topbar .top-account-button,
  .native-app .topbar .top-account-button {
    min-width: 0;
    max-width: 100% !important;
    padding-inline: 8px !important;
    overflow: hidden;
  }

  .topbar .top-account-label,
  .native-app .topbar .top-account-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .consent-banner {
    left: 8px;
    right: 8px;
    bottom: max(84px, calc(76px + env(safe-area-inset-bottom, 0px))) !important;
    width: auto;
    max-height: min(44dvh, 260px) !important;
    padding: 12px;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .consent-copy strong {
    margin-bottom: 5px;
    font-size: 16px;
  }

  .consent-copy p {
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.42;
  }

  .consent-copy .text-action {
    min-height: 32px;
    padding-inline: 8px;
    font-size: 9px;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .consent-actions button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding-inline: 5px;
    font-size: 8.5px;
    line-height: 1.15;
    white-space: normal;
  }
}

@media (max-width: 340px) {
  .topbar .brand-mark,
  .native-app .topbar .brand-mark {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .topbar .brand-text strong,
  .native-app .topbar .brand-text strong {
    font-size: 15px !important;
    letter-spacing: .02em !important;
  }

  .topbar .top-actions,
  .native-app .topbar .top-actions {
    max-width: 104px;
  }

  .topbar .top-account-avatar,
  .native-app .topbar .top-account-avatar {
    width: 24px;
    height: 24px;
  }
}

/* V2.4.118 – public website app page and strict native boundary */
.mobile-app-link { display: none; }
.native-app .website-app-only { display: none !important; }

.nav-app-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.nav-app-link::before {
  content: "NEU";
  position: absolute;
  z-index: 1;
  inset: 2px auto auto -13px;
  width: 46px;
  padding: 2px 0;
  color: #211104;
  background: #f2b94b;
  box-shadow: 0 1px 5px rgba(242,185,75,.3);
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  text-align: center;
  transform: rotate(-36deg);
  pointer-events: none;
}

.app-page-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  margin-bottom: 24px;
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid rgba(240,170,65,.28);
  background: radial-gradient(circle at 82% 40%, rgba(201,35,20,.28), transparent 38%), linear-gradient(135deg, rgba(45,10,7,.95), rgba(9,4,4,.98));
  overflow: hidden;
}
.app-page-hero img { width: clamp(88px, 13vw, 150px); height: auto; filter: drop-shadow(0 0 24px rgba(227,48,29,.48)); }
.app-page-hero p { max-width: 680px; }
.app-platform-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; }
.app-platform-card { min-width: 0; }
.app-platform-card h2 { margin: 12px 0 8px; }
.app-platform-card h3 { margin: 24px 0 9px; }
.app-platform-card li { margin-block: 7px; }
.app-platform-badge { display: inline-flex; min-height: 28px; align-items: center; padding: 4px 9px; border: 1px solid rgba(242,185,75,.5); color: #f2b94b; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.app-release-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.app-release-facts div { min-width: 0; padding: 12px; border: 1px solid rgba(240,170,65,.2); background: rgba(0,0,0,.18); }
.app-release-facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.app-release-facts dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 800; }
.app-release-status { padding: 12px 14px; border-left: 3px solid #f2b94b; background: rgba(242,185,75,.08); }
.app-download-button { width: 100%; min-height: 50px; justify-content: center; text-align: center; white-space: normal; }
.app-download-button.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: auto; }
.app-checksum { display: grid; gap: 7px; min-width: 0; }
.app-checksum code { display: block; padding: 10px; background: #080404; overflow-wrap: anywhere; user-select: all; }
.app-coming-soon { color: #f2b94b; font-size: clamp(24px, 4vw, 38px); font-weight: 900; }
.app-statistics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.app-stat-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.app-stat-summary span { display: grid; gap: 4px; padding: 12px 6px; border: 1px solid rgba(240,170,65,.2); text-align: center; }
.app-stat-summary b { font-size: clamp(19px, 3vw, 30px); }
.app-stat-summary small { color: var(--muted); }
.app-statistics-grid ul, .app-stat-daily { padding: 0; list-style: none; }
.app-statistics-grid li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(240,170,65,.12); }
.app-stat-daily { max-height: 340px; overflow: auto; }
.app-statistics-disclaimer { margin-top: 18px; color: var(--muted); }

/* V2.4.119 – desktop-only app navigation and /app content refinement */
@media (min-width: 1181px) {
  .nav-app-link::before {
    inset: 7px auto auto 4px;
    width: 30px;
    padding-block: 2px;
    transform: rotate(-25deg);
    transform-origin: center;
  }

  .app-desktop-optional {
    display: none !important;
  }
}

/* StatusBar overlaysWebView is false: Android already places the WebView below
   the system bar. Safe-area padding therefore belongs to the WebView only once. */
.native-app.platform-android .topbar {
  box-sizing: border-box;
  height: auto;
  min-height: 64px;
  padding-block: 10px;
  align-items: center;
}
.native-app.platform-android .topbar .brand,
.native-app.platform-android .topbar .top-actions,
.native-app.platform-android .topbar .top-account-button {
  align-self: center;
  margin-block: 0;
}
.native-app.platform-android .topbar .brand { align-items: center; }
.native-app.platform-android .topbar .brand-mark { align-self: center; line-height: 0; }
.native-app.platform-android .topbar .brand-text,
.native-app.platform-android .topbar .brand-text strong { line-height: 1; }

@media (max-width: 900px) {
  .app-platform-grid, .app-statistics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, auto) !important;
    gap: clamp(4px, 1.6vw, 10px) !important;
  }
  .topbar > .brand { grid-column: 1 !important; }
  .topbar > .mobile-app-link { grid-column: 2 !important; justify-self: center; }
  .topbar > .top-actions { grid-column: 3 !important; justify-self: end; }
  .mobile-app-link {
    display: inline-grid;
    place-content: center;
    min-width: 48px;
    min-height: 44px;
    padding: 5px 8px;
    border: 1px solid rgba(242,185,75,.48);
    color: var(--cream);
    text-align: center;
    text-decoration: none;
    line-height: 1;
  }
  .mobile-app-link span { font-weight: 900; }
  .mobile-app-link small { margin-top: 3px; color: #f2b94b; font-size: 8px; font-weight: 900; text-transform: uppercase; }
  .mobile-app-link.active, .mobile-app-link:focus-visible { outline: 2px solid #f2b94b; outline-offset: 2px; background: rgba(198,34,21,.22); }
  .topbar .brand-text strong { font-size: clamp(13px, 4vw, 18px) !important; }
  .topbar .top-actions { max-width: min(29vw, 116px) !important; }
  .app-page-hero { padding: 20px; }
  .app-release-facts { grid-template-columns: 1fr; }
  .app-stat-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 340px) {
  .topbar { padding-inline: 6px !important; }
  .topbar .brand { gap: 4px !important; }
  .topbar .brand-mark { flex-basis: 32px !important; width: 32px !important; height: 32px !important; }
  .mobile-app-link { min-width: 44px; padding-inline: 5px; }
  .topbar .top-actions { max-width: 92px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-app-link::before, .mobile-app-link { transition: none; }
}

/* V2.4.121 – keine visuelle Aenderung; Mehrtab-Cloud-Synchronisierung stabilisiert */


/* ========================================================================== */
/* V2.4.122 Roadmap: animierter Website-Button und bekannte Bugs              */
/* ========================================================================== */

.roadmap-title-wrap { flex: 1 1 auto; }

.roadmap-known-bugs-toggle {
  position: relative;
  min-width: 86px;
  min-height: 44px;
  flex: 0 0 auto;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 6px 24px 6px 9px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(244,185,95,.42);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(229,55,37,.24), rgba(244,185,95,.09)),
    rgba(12,4,4,.72);
  color: #fff4e1;
  text-align: left;
  box-shadow: inset 0 0 18px rgba(229,55,37,.06), 0 0 0 rgba(244,185,95,0);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.roadmap-known-bugs-toggle::before {
  content: "";
  position: absolute;
  inset: -35% auto -35% -52%;
  z-index: -1;
  width: 40%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,242,210,.24), transparent);
  animation: roadmap-known-bugs-shimmer 3.8s ease-in-out infinite;
  pointer-events: none;
}
.roadmap-known-bugs-toggle::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(244,185,95,.48);
  animation: roadmap-known-bugs-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
.roadmap-known-bugs-toggle:hover,
.roadmap-known-bugs-toggle:focus-visible,
.roadmap-known-bugs-toggle[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(244,185,95,.76);
  background:
    linear-gradient(135deg, rgba(229,55,37,.36), rgba(244,185,95,.14)),
    rgba(12,4,4,.82);
  box-shadow: inset 0 0 22px rgba(229,55,37,.09), 0 7px 18px rgba(0,0,0,.22), 0 0 18px rgba(244,185,95,.08);
}
.roadmap-known-bugs-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.roadmap-known-bugs-label {
  display: block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.roadmap-known-bugs-action {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.roadmap-known-bugs-action i {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.roadmap-known-bugs-toggle[aria-expanded="true"] .roadmap-known-bugs-action i {
  transform: translateY(2px) rotate(225deg);
}

.roadmap-known-bugs-panel {
  display: grid;
  grid-template-rows: 0fr;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: linear-gradient(180deg, rgba(244,185,95,.035), rgba(229,55,37,.02));
  border-bottom: 0 solid rgba(255,224,177,.12);
  transition:
    grid-template-rows .28s cubic-bezier(.22,.78,.28,1),
    opacity .2s ease,
    border-bottom-width .2s ease,
    visibility 0s linear .28s;
}
.roadmap-known-bugs-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  border-bottom-width: 1px;
  transition-delay: 0s;
}
.roadmap-known-bugs-panel-inner {
  min-height: 0;
  overflow: hidden;
}
.roadmap-known-bugs-card {
  margin: 0 16px 14px;
  padding: 13px;
  border: 1px solid rgba(244,185,95,.28);
  border-left: 3px solid var(--red);
  background:
    radial-gradient(circle at 100% 0%, rgba(244,185,95,.09), transparent 11rem),
    linear-gradient(135deg, rgba(229,55,37,.12), rgba(255,255,255,.025));
  box-shadow: inset 0 0 24px rgba(229,55,37,.035);
}
.roadmap-known-bugs-panel.is-open .roadmap-known-bugs-card {
  animation: roadmap-known-bugs-card-in .3s .06s both;
}
.roadmap-known-bugs-heading {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
}
.roadmap-known-bugs-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.45);
  border-radius: 50%;
  background: rgba(229,55,37,.18);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 17px;
}
.roadmap-known-bugs-heading h3 {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}
.roadmap-known-bugs-count {
  padding: 4px 6px;
  border: 1px solid rgba(244,185,95,.2);
  color: var(--gold);
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.roadmap-known-bugs-list {
  list-style: none;
  margin: 11px 0 0;
  padding: 0;
}
.roadmap-known-bugs-list li {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  align-items: start;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255,224,177,.12);
  background: rgba(4,1,1,.34);
}
.roadmap-known-bugs-list li > span {
  min-height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244,185,95,.22);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 10px;
}
.roadmap-known-bugs-list p {
  margin: 1px 0 0;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.5;
}

.roadmap-rail.is-minimized .roadmap-known-bugs-toggle,
.roadmap-rail.is-minimized .roadmap-known-bugs-panel {
  display: none !important;
}

.native-app .roadmap-known-bugs-toggle,
.native-app .roadmap-known-bugs-panel {
  display: none !important;
}

@media (max-width: 760px) {
  .roadmap-rail.is-mobile-inline .roadmap-header {
    gap: 8px;
  }
  .roadmap-rail.is-mobile-inline .roadmap-title-wrap {
    gap: 8px;
  }
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-toggle {
    min-width: 84px;
    min-height: 42px;
    padding: 5px 22px 5px 8px;
  }
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-label { font-size: 9px; }
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-action { font-size: 7px; }
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-card {
    margin: 0 12px 12px;
    padding: 12px;
  }
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-heading {
    grid-template-columns: 28px minmax(0,1fr);
  }
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-count {
    grid-column: 2;
    justify-self: start;
    margin-top: -3px;
  }
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-list p {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .roadmap-rail.is-mobile-inline .roadmap-emblem {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .roadmap-rail.is-mobile-inline .roadmap-header h2 { font-size: 19px; }
  .roadmap-rail.is-mobile-inline .roadmap-header .section-kicker { font-size: 8px; }
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-toggle {
    min-width: 78px;
    padding-inline: 7px 19px;
  }
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-label { font-size: 8px; }
}

@keyframes roadmap-known-bugs-shimmer {
  0%, 58% { left: -52%; opacity: 0; }
  66% { opacity: 1; }
  82%, 100% { left: 118%; opacity: 0; }
}
@keyframes roadmap-known-bugs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(244,185,95,.42); }
  68%, 100% { box-shadow: 0 0 0 7px rgba(244,185,95,0); }
}
@keyframes roadmap-known-bugs-card-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .roadmap-known-bugs-toggle,
  .roadmap-known-bugs-toggle::before,
  .roadmap-known-bugs-toggle::after,
  .roadmap-known-bugs-action i,
  .roadmap-known-bugs-panel,
  .roadmap-known-bugs-panel.is-open .roadmap-known-bugs-card {
    animation: none !important;
    transition: none !important;
  }
}


/* ========================================================================== */
/* V2.4.123 App-Uebersicht & Roadmap-Feinschliff                              */
/* ========================================================================== */

.app-platform-badge-icon {
  justify-content: center;
  width: 54px;
  min-width: 54px;
  padding: 0;
  border-radius: 999px;
}
.app-platform-badge-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-release-facts-compact {
  grid-template-columns: minmax(0, 220px);
  margin: 18px 0 20px;
}
.app-release-facts-compact div {
  padding: 12px 14px;
}
.app-platform-ios .app-coming-soon {
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1.05;
}

.roadmap-known-bugs-heading {
  grid-template-columns: 30px minmax(0,1fr);
}
.roadmap-known-bugs-toggle {
  min-width: 122px;
  min-height: 50px;
  padding: 8px 28px 8px 12px;
  gap: 4px;
}
.roadmap-known-bugs-label {
  font-size: 11px;
}
.roadmap-known-bugs-action {
  font-size: 9px;
  gap: 6px;
}
.roadmap-known-bugs-action i {
  width: 7px;
  height: 7px;
}

@media (max-width: 760px) {
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-toggle {
    min-width: 84px;
    min-height: 42px;
    padding: 5px 22px 5px 8px;
    gap: 2px;
  }
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-label { font-size: 9px; }
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-action { font-size: 7px; }
}


/* ========================================================================== */
/* V2.4.124 Desktop-App-Karten und kompakter Roadmap-Bug-Reiter               */
/* ========================================================================== */

.app-platform-android-logo-desktop {
  display: none;
}

@media (min-width: 1181px) {
  #view-app .app-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
  }

  #view-app .app-desktop-hide {
    display: none !important;
  }

  #view-app .app-platform-badge-icon {
    width: 58px;
    min-width: 58px;
    min-height: 42px;
    padding: 0;
    border-color: rgba(61, 220, 132, .5);
    background: rgba(61, 220, 132, .07);
    color: #3ddc84;
  }

  #view-app .app-platform-android-logo-mobile {
    display: none;
  }

  #view-app .app-platform-android-logo-desktop {
    display: block;
    width: 38px;
    height: 38px;
    overflow: visible;
    fill: none;
    stroke: none;
  }

  #view-app .android-logo-fill { fill: #3ddc84; }
  #view-app .android-logo-line {
    fill: none;
    stroke: #3ddc84;
    stroke-width: 2.4;
    stroke-linecap: round;
  }
  #view-app .android-logo-eye { fill: #092315; }

  .roadmap-known-bugs-toggle {
    min-width: 96px;
    min-height: 40px;
    gap: 2px;
    padding: 5px 20px 5px 8px;
    border-radius: 8px;
  }
  .roadmap-known-bugs-label { font-size: 8px; }
  .roadmap-known-bugs-action { gap: 4px; font-size: 7px; }
  .roadmap-known-bugs-action i { width: 6px; height: 6px; }
}


/* ========================================================================== */
/* V2.4.125 Roadmap-Bugs verschoben & Mobile-App-Ansicht                     */
/* ========================================================================== */

/* Das bekannte-Bugs-Element sitzt nun als vollwertige Karte ueber Bug melden. */
.roadmap-known-bugs-block {
  display: grid;
  min-width: 0;
}
.roadmap-known-bugs-block .roadmap-known-bugs-toggle {
  min-width: 0;
  min-height: 88px;
  padding: 13px;
  border-radius: 0;
  overflow: visible;
  isolation: auto;
  background: rgba(255,255,255,.026);
  box-shadow: none;
  text-transform: none;
}
.roadmap-known-bugs-block .roadmap-known-bugs-toggle::before,
.roadmap-known-bugs-block .roadmap-known-bugs-toggle::after {
  display: none;
}
.roadmap-known-bugs-block .roadmap-known-bugs-toggle:hover,
.roadmap-known-bugs-block .roadmap-known-bugs-toggle:focus-visible,
.roadmap-known-bugs-block .roadmap-known-bugs-toggle[aria-expanded="true"] {
  transform: translateX(3px);
  border-color: rgba(244,185,95,.48);
  background: linear-gradient(90deg, rgba(229,55,37,.1), rgba(255,255,255,.035));
  box-shadow: none;
}
.roadmap-known-bugs-block .roadmap-known-bugs-toggle > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.roadmap-known-bugs-block .roadmap-known-bugs-toggle strong {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}
.roadmap-known-bugs-block .roadmap-known-bugs-toggle small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.roadmap-known-bugs-chevron {
  color: var(--gold);
  font-style: normal;
  font-size: 28px;
  transition: transform .2s ease;
}
.roadmap-known-bugs-toggle[aria-expanded="true"] .roadmap-known-bugs-chevron {
  transform: rotate(90deg);
}
.roadmap-known-bugs-block .roadmap-known-bugs-panel {
  margin-top: 0;
  border-bottom: 0;
}
.roadmap-known-bugs-block .roadmap-known-bugs-panel.is-open {
  border-bottom-width: 0;
}
.roadmap-known-bugs-block .roadmap-known-bugs-card {
  margin: 11px 0 0;
}

/* Abgebrochener Roadmap-Punkt bleibt lesbar, ist aber klar entpriorisiert. */
.roadmap-progress-list .is-cancelled strong {
  opacity: .58;
  text-decoration-line: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255,224,177,.5);
}
.roadmap-progress-cancelled {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(229,55,37,.35);
  background: rgba(229,55,37,.08);
  color: #ef9d8f;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Gleiches gefuelltes Android-Logo auf Desktop und im mobilen Browser. */
#view-app .app-platform-android-logo {
  display: block;
  width: 38px;
  height: 38px;
  overflow: visible;
  fill: none;
  stroke: none;
}
#view-app .android-logo-fill { fill: #3ddc84; }
#view-app .android-logo-line {
  fill: none;
  stroke: #3ddc84;
  stroke-width: 2.4;
  stroke-linecap: round;
}
#view-app .android-logo-eye { fill: #092315; }
#view-app .app-platform-badge-icon {
  width: 58px;
  min-width: 58px;
  min-height: 42px;
  padding: 0;
  border-color: rgba(61,220,132,.5);
  background: rgba(61,220,132,.07);
  color: #3ddc84;
}

@media (max-width: 760px) {
  .roadmap-known-bugs-block .roadmap-known-bugs-toggle { min-height: 82px; }
  .roadmap-known-bugs-block .roadmap-known-bugs-card { margin: 11px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .roadmap-known-bugs-chevron { transition: none; }
}

/* Mobile-spezifische Altregeln der vorherigen Bug-Schaltflaeche gezielt uebersteuern. */
.roadmap-known-bugs-block .roadmap-known-bugs-toggle {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  align-content: normal;
  gap: 12px;
  width: 100%;
}

@media (max-width: 760px) {
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-block .roadmap-known-bugs-toggle {
    min-width: 0;
    min-height: 82px;
    padding: 13px;
    gap: 12px;
  }
  .roadmap-rail.is-mobile-inline .roadmap-known-bugs-block .roadmap-known-bugs-card {
    margin: 11px 0 0;
  }
}


/* ========================================================================== */
/* V2.4.127 Bugmeldung & Feature-Wunsch als eigene Akkordeons                 */
/* ========================================================================== */

.roadmap-feedback-accordion-block {
  display: grid;
  min-width: 0;
}
.roadmap-feedback-accordion-block .roadmap-choice-card {
  width: 100%;
}
.roadmap-feedback-toggle[aria-expanded="true"] {
  transform: translateX(3px);
  border-color: rgba(244,185,95,.48);
  background: linear-gradient(90deg, rgba(229,55,37,.1), rgba(255,255,255,.035));
}
.roadmap-feedback-chevron {
  transition: transform .2s ease;
}
.roadmap-feedback-toggle[aria-expanded="true"] .roadmap-feedback-chevron {
  transform: rotate(90deg);
}
.roadmap-feedback-panel {
  min-width: 0;
  margin-top: 11px;
  padding: 13px;
  border: 1px solid rgba(244,185,95,.24);
  border-left: 3px solid var(--red);
  background:
    radial-gradient(circle at 100% 0%, rgba(244,185,95,.08), transparent 11rem),
    linear-gradient(135deg, rgba(229,55,37,.09), rgba(255,255,255,.02));
  box-shadow: inset 0 0 24px rgba(229,55,37,.025);
}
.roadmap-feedback-panel .roadmap-feedback-form {
  margin-top: 0;
}
.roadmap-feedback-panel .roadmap-success {
  margin-top: 0;
}

@media (max-width: 760px) {
  .roadmap-feedback-panel {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roadmap-feedback-chevron { transition: none; }
}


/* ========================================================================== */
/* V2.4.128 Browser-Roadmap und Android-Updatehinweis                         */
/* ========================================================================== */

.native-app-roadmap-only {
  display: none !important;
}
.native-app .native-app-roadmap-only {
  display: grid !important;
}

.app-update-cadence-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(244,185,95,.22);
  border-left: 3px solid var(--gold);
  background: linear-gradient(135deg, rgba(244,185,95,.075), rgba(229,55,37,.035));
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.app-update-cadence-note strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .app-update-cadence-note {
    padding: 11px 12px;
    font-size: 11px;
    line-height: 1.55;
  }
}

/* V2.4.130 - vorbereitete deutsche Beschreibungen und Dub-Hinweise */
.german-dub-badge,
.detail-dub-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: .35rem;
  border: 1px solid rgba(255, 208, 74, .46);
  background: rgba(255, 208, 74, .1);
  color: #ffe39a;
  font-weight: 700;
}
.german-dub-badge::before,
.detail-dub-badge::before {
  content: 'DE';
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.1rem;
  padding: 0 .25rem;
  border-radius: .25rem;
  background: linear-gradient(to bottom, #171717 0 33%, #b6162e 33% 66%, #d7a512 66% 100%);
  color: transparent;
  font-size: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13);
}
.german-dub-badge.is-partial,
.detail-dub-badge.is-partial {
  border-style: dashed;
  opacity: .9;
}
.detail-dub-badge {
  margin-top: .15rem;
  padding: .4rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .01em;
}
.search-row .tag-row {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .detail-dub-badge {
    margin-bottom: .2rem;
  }
}


/* V2.4.131 - Dub-Filter und Badges in Kalender und Season */
#view-season .season-control-block--dub select,
#view-season .season-control-block--dub .ar-select {
  width: 100%;
  max-width: none;
  min-height: 44px;
}
#view-calendar .release-card .tag-row,
#view-season .release-card .tag-row {
  flex-wrap: wrap;
}
@media (min-width: 1121px) {
  #view-season .season-controls {
    grid-template-columns: minmax(390px, 1fr) minmax(500px, 1.15fr) minmax(220px, .52fr) !important;
  }
}
@media (min-width: 761px) and (max-width: 1120px) {
  #view-season .season-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #view-season .season-control-block--dub {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  #view-season .season-controls {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #view-season .season-control-block--dub {
    grid-column: auto;
  }
}


/* --- V2.4.133: kompakte Favoritenkarten ausschließlich in der mobilen Webansicht --- */
.library-card-description {
  display: none;
}

@media (max-width: 760px) {
  #favoritesGrid.library-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  #favoritesGrid .library-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    min-height: 146px;
  }

  #favoritesGrid .library-card .poster-wrap {
    width: 96px;
    min-width: 96px;
    aspect-ratio: 2 / 3;
    align-self: start;
  }

  #favoritesGrid .library-card .lib-body {
    min-width: 0;
    padding: 11px 12px 12px;
  }

  #favoritesGrid .library-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
  }

  #favoritesGrid .library-card-description {
    display: -webkit-box;
    margin: 7px 0 9px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  #favoritesGrid .progress-track {
    margin: 8px 0 6px;
  }

  #favoritesGrid .lib-meta,
  #favoritesGrid .mobile-library-extra span {
    font-size: 10px;
  }

  #favoritesGrid .mobile-library-extra {
    gap: 5px;
    margin-top: 7px;
    padding-top: 7px;
  }

  #favoritesGrid .tag-row {
    gap: 5px;
    margin-top: 7px !important;
  }

  #favoritesGrid .tag {
    padding: 4px 6px;
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  #favoritesGrid .library-card {
    grid-template-columns: 84px minmax(0, 1fr);
    min-height: 128px;
  }

  #favoritesGrid .library-card .poster-wrap {
    width: 84px;
    min-width: 84px;
  }

  #favoritesGrid .library-card-description {
    -webkit-line-clamp: 3;
  }
}

/* --- V2.4.135: Web-Roadmap, leere Bugliste und kompakte Desktop-Favoriten --- */
.roadmap-known-bugs-empty {
  margin: 11px 0 0;
  padding: 12px;
  border: 1px solid rgba(255,224,177,.12);
  background: rgba(4,1,1,.34);
  color: var(--ink);
  font-size: 10px;
  line-height: 1.5;
}

/* Ausschließlich Desktop: mobile und Tablet-Ansichten bleiben unverändert. */
@media (min-width: 1121px) {
  #favoritesGrid.library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #favoritesGrid .library-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    min-height: 146px;
  }

  #favoritesGrid .library-card .poster-wrap {
    width: 96px;
    min-width: 96px;
    aspect-ratio: 2 / 3;
    align-self: start;
  }

  #favoritesGrid .library-card .lib-body {
    min-width: 0;
    padding: 11px 12px 12px;
  }

  #favoritesGrid .library-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
  }

  #favoritesGrid .library-card-description {
    display: -webkit-box;
    margin: 7px 0 9px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  #favoritesGrid .progress-track {
    margin: 8px 0 6px;
  }

  #favoritesGrid .lib-meta {
    font-size: 10px;
  }

  #favoritesGrid .tag-row {
    gap: 5px;
    margin-top: 7px !important;
  }

  #favoritesGrid .tag {
    padding: 4px 6px;
    font-size: 8px;
  }
}
