:root {
  --bg: #0b0d12;
  --panel: rgba(20, 23, 32, 0.78);
  --panel-2: rgba(29, 33, 45, 0.88);
  --line: rgba(255,255,255,.09);
  --text: #f6f7fb;
  --muted: #9ba3b4;
  --accent: #8ea1ff;
  --accent-2: #b28cff;
  --good: #73ddb1;
  --warn: #ffc979;
  --danger: #ef8d9a;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body, button, input, select, textarea {
  font-family: "Pretendard Variable", "Pretendard JP", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard Variable", "Pretendard JP", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(119, 91, 255, .16), transparent 30rem),
    radial-gradient(circle at 90% 20%, rgba(77, 160, 255, .10), transparent 34rem),
    linear-gradient(180deg, #090b10 0%, #0d1017 45%, #0a0c11 100%);
}

a { color: inherit; }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 38px 0 80px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(132, 111, 255, .14), rgba(59, 102, 176, .06)),
    rgba(16, 19, 27, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero::after {
  content: none;
  display: none;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: #d8dcff;
  background: rgba(142,161,255,.11);
  border: 1px solid rgba(142,161,255,.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 10px;
  max-width: 860px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero p {
  margin: 0;
  max-width: 850px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 15px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: 26px;
}

.stat {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.stat b {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin: 20px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11,13,18,.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(0,0,0,.22);
}


.mobile-toolbar-head {
  display: none;
}

.toolbar-body {
  display: block;
}

.mobile-toolbar-head button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 850;
}

#mobileToolbarTitle {
  white-space: nowrap;
}

#mobileToolbarIcon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
  opacity: .9;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.search-wrap span { opacity: .7; }

#search {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

#search::placeholder { color: #687184; }

button, .chip {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.035);
  border-radius: 12px;
  padding: 10px 13px;
  font: inherit;
  cursor: pointer;
  transition: .18s ease;
}

button:hover, .chip:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.065);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  font-size: 12px;
  font-weight: 750;
}

.chip.active {
  color: #fff;
  border-color: rgba(142,161,255,.42);
  background: linear-gradient(135deg, rgba(142,161,255,.24), rgba(178,140,255,.18));
}

.month-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 0 10px;
  scrollbar-width: thin;
}

.month-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  font-size: 12px;
  font-weight: 800;
}

.month-nav a:hover { color: #fff; }

.season-divider {
  margin: 34px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.season-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line), transparent);
}

.season-divider h2 {
  margin: 0;
  font-size: 14px;
  color: #d9dded;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.month {
  margin: 16px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 35px rgba(0,0,0,.18);
}

.month-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.month-head h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.03em;
}


.month-count {
  color: #cbd1df;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  font-size: 12px;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.card {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
  transition: .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(142,161,255,.25);
  background: linear-gradient(180deg, rgba(142,161,255,.06), rgba(255,255,255,.022));
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.title {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}

.date {
  flex: 0 0 auto;
  color: #dce1ff;
  font-size: 11px;
  font-weight: 850;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(142,161,255,.10);
  border: 1px solid rgba(142,161,255,.16);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.badge {
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
}

.badge.major {
  color: #d9e5ff;
  background: rgba(93,143,255,.09);
}

.badge.follow {
  color: #d8f6e9;
  background: rgba(115,221,177,.07);
}


.badge.series {
  color: #d9dcff;
  background: rgba(142,161,255,.08);
}

.badge.comic {
  color: #ffd9c1;
  background: rgba(255,164,108,.075);
}

.badge.ln {
  color: #e6d6ff;
  background: rgba(178,140,255,.075);
}

.badge.webtoon {
  color: #d6f4ff;
  background: rgba(88,196,255,.075);
}

.badge.webnovel {
  color: #f6dfff;
  background: rgba(219,126,255,.075);
}

.badge.game {
  color: #d8e4ff;
  background: rgba(104,143,255,.075);
}

.badge.original {
  color: #cceee5;
  background: rgba(115,221,177,.07);
}

.badge.movie {
  color: #ffe2ad;
  background: rgba(255,201,121,.075);
}

.empty {
  grid-column: 1 / -1;
  padding: 25px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.undated {
  margin-top: 32px;
  border: 1px solid rgba(255,201,121,.18);
  border-radius: var(--radius);
  background: rgba(255,201,121,.035);
  overflow: hidden;
}

#undatedToggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: 18px 20px;
  background: transparent;
  text-align: left;
  font-weight: 900;
}

.undated-item .stream-trigger:not(:disabled) {
  color: #e8ebff;
  border: 1px solid rgba(142,161,255,.26);
  background: linear-gradient(135deg, rgba(142,161,255,.12), rgba(178,140,255,.075));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
}

.undated-item .stream-trigger:not(:disabled):hover {
  border-color: rgba(142,161,255,.48);
  background: linear-gradient(135deg, rgba(142,161,255,.18), rgba(178,140,255,.11));
}

.undated-content {
  padding: 0 20px 20px;
}

.undated-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}

.undated-item {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  color: #d7d9e2;
  font-size: 13px;
}

.source-box, footer {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.source-box {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.source-box strong { color: #e5e8f0; }

.source-box a {
  color: #bdc8ff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(189,200,255,.4);
}


.filter-group {
  margin-top: 12px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px 2px;
  color: #7f899c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.year-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.year-chip {
  min-height: 44px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
}

.year-chip.active {
  border-color: rgba(142,161,255,.48);
  background:
    linear-gradient(135deg, rgba(142,161,255,.28), rgba(178,140,255,.18));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

.month-nav button {
  flex: 0 0 auto;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.month-nav button.active {
  color: #fff;
  border-color: rgba(142,161,255,.42);
  background: rgba(142,161,255,.15);
}

.resource-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.065);
}

.resource-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(142,161,255,.18);
  background: rgba(142,161,255,.075);
  color: #dfe4ff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 850;
  transition: .18s ease;
}

a.resource-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(142,161,255,.4);
  background: rgba(142,161,255,.14);
}

.resource-icon {
  display: block;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .62;
  overflow: visible;
}

.resource-icon-external {
  width: 10px;
  height: 10px;
  opacity: .56;
}

.resource-btn.disabled {
  color: #5e6676;
  border-color: rgba(255,255,255,.045);
  background: rgba(255,255,255,.018);
  cursor: not-allowed;
  user-select: none;
}

.undated-item .resource-actions {
  margin-top: 10px;
}

.undated-title {
  color: #e1e4ec;
  font-weight: 820;
  line-height: 1.45;
}

.year-summary {
  margin: 18px 0 4px;
  color: #8f98aa;
  font-size: 12px;
  font-weight: 750;
}


.stream-trigger {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(142,161,255,.18);
  background: rgba(142,161,255,.075);
  color: #dfe4ff;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  transition: .18s ease;
}

.stream-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(142,161,255,.4);
  background: rgba(142,161,255,.14);
}

.stream-trigger.disabled,
.stream-trigger:disabled {
  color: #5e6676;
  border-color: rgba(255,255,255,.045);
  background: rgba(255,255,255,.018);
  cursor: not-allowed;
  transform: none;
}

body.modal-open {
  overflow: hidden;
}

.stream-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.stream-modal.hidden {
  display: none !important;
}

.stream-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, .74);
  backdrop-filter: blur(8px);
  animation: modalFade .16s ease-out;
}

.stream-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(142,161,255,.12), transparent 18rem),
    #11151e;
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
  animation: modalUp .18s ease-out;
}

.stream-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.stream-dialog-head h4 {
  margin: 0;
  max-width: 430px;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -.025em;
}

.stream-dialog-kicker {
  margin-bottom: 6px;
  color: #8993a7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.stream-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 11px;
  color: #cdd2df;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 19px;
  line-height: 1;
}

.stream-dialog-desc {
  margin: 12px 0 17px;
  color: #8e97a9;
  font-size: 12px;
  line-height: 1.65;
}

.ott-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}

.ott-option {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(142,161,255,.17);
  background: rgba(142,161,255,.06);
  color: #edf0ff;
  text-decoration: none;
  transition: .18s ease;
}

a.ott-option:hover {
  transform: translateY(-1px);
  border-color: rgba(142,161,255,.38);
  background: rgba(142,161,255,.12);
}

.ott-option.disabled {
  color: #596171;
  border-color: rgba(255,255,255,.04);
  background: rgba(255,255,255,.015);
  cursor: not-allowed;
  user-select: none;
}

.ott-option-name {
  font-size: 12px;
  font-weight: 900;
}

.ott-option-state {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 999px;
  color: #9eabd0;
  background: rgba(142,161,255,.09);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
}

.ott-option.disabled .ott-option-state {
  color: #505867;
  background: rgba(255,255,255,.025);
}

.stream-dialog-note {
  margin: 16px 0 0;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 12px;
  background: rgba(255,255,255,.022);
  color: #7e8799;
  font-size: 10px;
  line-height: 1.6;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalUp {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


@media (max-width: 720px) {
  .mobile-toolbar-head {
    display: block;
    margin-bottom: 2px;
  }

  .toolbar-body {
    overflow: hidden;
    max-height: 2400px;
    opacity: 1;
    transition: max-height .26s ease, opacity .2s ease, margin .2s ease;
  }

  .toolbar.is-mobile-collapsed .toolbar-body {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 520px) {
  .stream-dialog {
    padding: 18px;
    border-radius: 20px;
  }

  .ott-grid {
    grid-template-columns: 1fr;
  }
}


.language-row {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.language-btn {
  min-width: 52px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: #737d90;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}

.language-btn.active {
  color: #fff;
  background: rgba(142,161,255,.15);
  box-shadow: inset 0 0 0 1px rgba(142,161,255,.24);
}
@media (max-width: 520px) {
.language-row { width: 100%; }
  .language-btn { flex: 1; }
}


.hero {
  padding: 22px 26px 24px;
  border-radius: 24px;
}

.hero::after {
  width: 220px;
  height: 220px;
  right: -80px;
  top: -120px;
}

.hero-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: none;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -.045em;
}

.hero .language-row {
  flex: 0 0 auto;
  padding: 3px;
  background: rgba(8,10,15,.34);
  border-color: rgba(255,255,255,.08);
}

.hero .language-btn {
  min-width: 48px;
  padding: 7px 10px;
}


.category-group {
  overflow: hidden;
}

.filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 2px 2px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transform: none;
}

.filter-toggle:hover {
  transform: none;
  background: transparent;
}

.filter-toggle .filter-label {
  margin: 0;
  pointer-events: none;
}

.filter-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #8e98aa;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  font-size: 13px;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}

.category-content {
  max-height: 220px;
  opacity: 1;
  overflow: hidden;
  transition: max-height .24s ease, opacity .18s ease, margin .24s ease;
}

.category-group.is-collapsed .category-content {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.category-group.is-collapsed .filter-toggle-icon {
  transform: rotate(180deg);
}


.card-layout,
.undated-layout {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.card-content,
.undated-content-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.poster-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.075);
  background:
    radial-gradient(circle at 50% 30%, rgba(142,161,255,.08), transparent 55%),
    rgba(255,255,255,.022);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #596273;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  user-select: none;
}

.poster-frame.has-image .poster-fallback {
  display: none;
}

.poster-frame.poster-error img {
  display: none;
}

.poster-frame.poster-error .poster-fallback {
  display: grid;
}

.card-content .resource-actions,
.undated-content-main .resource-actions {
  margin-top: auto;
  padding-top: 12px;
}

@media (max-width: 820px) {
  .card-layout,
  .undated-layout {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .card-layout,
  .undated-layout {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 11px;
  }

  .poster-frame {
    border-radius: 10px;
  }

  .poster-fallback {
    font-size: 34px;
  }
}


.poster-frame {
  background:
    linear-gradient(145deg, rgba(142,161,255,.055), rgba(255,255,255,.012)),
    #0b0e14;
}

.poster-frame.has-image {
  border-color: rgba(255,255,255,.095);
}

.undated-item {
  overflow: hidden;
}


.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
}


.poster-frame {
  align-self: start;
  width: 100%;
  aspect-ratio: 2 / 3;
  min-height: 0;
  height: auto;
}



.title-scroll,
.undated-title-scroll {
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  --fade-size: 18px;
}

.title-scroll::before,
.title-scroll::after,
.undated-title-scroll::before,
.undated-title-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: var(--fade-size);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}

.title-scroll::before,
.undated-title-scroll::before {
  left: 0;
  background: linear-gradient(90deg, var(--card, #11151d) 20%, transparent);
}

.title-scroll::after,
.undated-title-scroll::after {
  right: 0;
  background: linear-gradient(270deg, var(--card, #11151d) 20%, transparent);
}

.title-scroll.is-overflowing::after,
.undated-title-scroll.is-overflowing::after {
  opacity: 1;
}

.title-scroll.is-overflowing.has-scrolled::before,
.undated-title-scroll.is-overflowing.has-scrolled::before {
  opacity: 1;
}

.title-scroll-inner,
.undated-title-scroll-inner {
  display: -webkit-box;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.title-scroll-inner.measure-title,
.undated-title-scroll-inner.measure-title {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  animation: none !important;
  transform: none !important;
}

.title-scroll.is-overflowing .title-scroll-inner,
.undated-title-scroll.is-overflowing .undated-title-scroll-inner {
  display: block;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  will-change: transform;
  animation: titleMarquee var(--scroll-duration, 12s) ease-in-out 1s infinite alternate;
}

.title-scroll:hover .title-scroll-inner,
.undated-title-scroll:hover .undated-title-scroll-inner {
  animation-play-state: paused;
}

@keyframes titleMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--scroll-distance, 0px))); }
}

@media (prefers-reduced-motion: reduce) {
  .title-scroll.is-overflowing,
  .undated-title-scroll.is-overflowing {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .title-scroll.is-overflowing::-webkit-scrollbar,
  .undated-title-scroll.is-overflowing::-webkit-scrollbar {
    display: none;
  }

  .title-scroll.is-overflowing .title-scroll-inner,
  .undated-title-scroll.is-overflowing .undated-title-scroll-inner {
    animation: none;
  }
}

@media (max-width: 520px) {
  .title-scroll,
  .undated-title-scroll {
    --fade-size: 14px;
  }
}


.poster-frame {
  align-self: start;
  width: 100%;
  aspect-ratio: 2 / 3;
  min-height: 0;
  height: auto;
}


.resource-btn,
.stream-trigger {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.resource-label-short {
  display: none;
}

@media (max-width: 520px) {
  .resource-actions {
    gap: 6px;
  }

  .resource-btn,
  .stream-trigger {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 11px;
  }

  .resource-label-long {
    display: none;
  }

  .resource-label-short {
    display: inline;
  }

  .resource-icon-chevron {
    width: 8px;
    height: 8px;
  }

  .resource-icon-external {
    width: 9px;
    height: 9px;
  }
}

.hidden { display: none !important; }

@media (max-width: 760px) {
  .shell { width: min(100% - 18px, 1180px); padding-top: 16px; }
  .hero { padding: 24px 20px; border-radius: 24px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cards, .undated-list { grid-template-columns: 1fr; }
  .month { padding: 16px; }
  .month-head { align-items: center; }
  .toolbar { top: 6px; border-radius: 17px; }
  .search-row { grid-template-columns: 1fr; }
  .resource-actions { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .year-filter { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #resetBtn { display: block; width: 100%; }
}
  
@media (max-width: 560px) {
  .hero {
    padding: 18px 18px 20px;
    border-radius: 20px;
  }

  .hero-topline {
    margin-bottom: 13px;
  }

  .hero .eyebrow {
    padding: 6px 9px;
    font-size: 10px;
    letter-spacing: .06em;
  }

  .hero .language-row {
    width: auto;
  }

  .hero .language-btn {
    flex: 0 0 auto;
    min-width: 42px;
    padding: 6px 8px;
  }

  .hero h1 {
    font-size: clamp(28px, 9vw, 40px);
  }
}



/* Top navigation and compact introduction */
.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  margin-bottom: 14px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(14, 17, 24, .86);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(158px, 17vw, 210px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: normal;
  isolation: isolate;
}

.site-header-spacer {
  flex: 1 1 auto;
  min-width: 18px;
}

.site-header .language-row {
  flex: 0 0 auto;
  width: auto;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(8, 10, 15, .46);
  border-color: rgba(255, 255, 255, .09);
}

.site-header .language-btn {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 31px;
  padding: 6px 8px;
  border-radius: 9px;
}

.menu-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border-radius: 11px;
  color: #c7ccda;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  opacity: .82;
  cursor: default;
}

.menu-toggle:hover,
.menu-toggle:disabled {
  transform: none;
  color: #c7ccda;
  background: rgba(255, 255, 255, .035);
  opacity: .82;
}

.menu-toggle-line {
  width: 16px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
}

.hero {
  display: block;
  padding: 25px 30px 27px;
  border-radius: 24px;
}

.hero::after {
  width: 230px;
  height: 230px;
  right: -68px;
  top: -118px;
}

.hero-kicker {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 9px;
  border: 1px solid rgba(142, 161, 255, .2);
  border-radius: 999px;
  color: #bec7ff;
  background: rgba(142, 161, 255, .08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.hero h1 {
  position: relative;
  z-index: 2;
  margin: 10px 0 7px;
  max-width: 900px;
  font-size: clamp(34px, 4vw, 47px);
  line-height: 1.08;
  letter-spacing: -.042em;
}

.hero p {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 56px;
    margin-bottom: 10px;
    padding: 7px 9px 7px 12px;
    border-radius: 17px;
  }

  .brand-logo {
    width: clamp(145px, 27vw, 180px);
  }

  .hero {
    padding: 22px 22px 23px;
    border-radius: 21px;
  }

  .hero h1 {
    font-size: clamp(30px, 6vw, 38px);
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 6px;
    min-height: 50px;
    padding: 6px 7px 6px 9px;
    border-radius: 15px;
  }

  .brand-logo {
    width: clamp(118px, 36vw, 148px);
  }

  .site-header-spacer {
    min-width: 4px;
  }

  .site-header .language-row {
    gap: 1px;
    padding: 2px;
  }

  .site-header .language-btn {
    min-width: 30px;
    min-height: 29px;
    padding: 5px 6px;
    font-size: 10px;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .hero {
    padding: 19px 18px 20px;
    border-radius: 19px;
  }

  .hero::after {
    width: 180px;
    height: 180px;
    right: -62px;
    top: -94px;
  }

  .hero-kicker {
    min-height: 23px;
    padding: 4px 8px;
    font-size: 9px;
  }

  .hero h1 {
    margin-top: 9px;
    font-size: clamp(27px, 8vw, 32px);
  }

  .hero p {
    font-size: 12px;
    line-height: 1.6;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    width: min(118px, 36vw);
  }

  .site-header .language-btn {
    min-width: 29px;
    padding-inline: 5px;
  }

  .hero {
    padding: 17px 15px 18px;
  }

  .hero h1 {
    font-size: 26px;
  }
}



.menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.menu-toggle {
  cursor: pointer;
  opacity: 1;
  transition: background .18s ease, border-color .18s ease;
}

.menu-toggle:not(:disabled):hover,
.menu-toggle[aria-expanded="true"] {
  transform: none;
  color: #eef0ff;
  background: rgba(142, 161, 255, .12);
  border-color: rgba(142, 161, 255, .28);
  opacity: 1;
}

.menu-toggle-line {
  transition: transform .2s ease, opacity .16s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.site-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 178px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(142, 161, 255, .06), transparent 55%),
    rgba(15, 18, 26, .97);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .42);
  backdrop-filter: blur(20px);
}

.site-menu-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  color: #e6e9f2;
  background: transparent;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}

.site-menu-item:hover,
.site-menu-item:focus-visible {
  transform: none;
  outline: none;
  color: #fff;
  background: rgba(142, 161, 255, .12);
}

.site-menu-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(142, 161, 255, .18);
  border-radius: 7px;
  color: #bdc7ff;
  background: rgba(142, 161, 255, .07);
  font-size: 12px;
  letter-spacing: 0;
}

.share-status {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 140;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border: 1px solid rgba(142, 161, 255, .26);
  border-radius: 999px;
  color: #eef0ff;
  background: rgba(17, 21, 30, .96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .4);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 520px) {
  .site-menu {
    top: calc(100% + 7px);
    width: 164px;
    border-radius: 13px;
  }

  .site-menu-item {
    min-height: 40px;
    padding: 8px 10px;
  }

  .share-status {
    bottom: 16px;
  }
}

/* Update history and verification surfaces */
.section-kicker {
  margin-bottom: 4px;
  color: #7f899c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.updates-list {
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  min-height: 98px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
}

.update-item:last-child {
  border-bottom: 0;
}

.update-poster {
  position: relative;
  width: 54px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-self: start;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: #596273;
  background: #0b0e14;
  font-size: 21px;
  font-weight: 850;
}

.update-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-poster.has-image > span,
.update-poster.poster-error img {
  display: none;
}

.update-poster.poster-error > span {
  display: grid;
  place-items: center;
}

.update-content {
  min-width: 0;
  align-self: center;
}

.update-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.update-title-row h3 {
  min-width: 0;
  margin: 0;
  color: #eff1f8;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.update-title-row time {
  flex: 0 0 auto;
  color: #7f899c;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.update-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 7px;
  color: #abb2c2;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.update-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.update-type {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(142, 161, 255, .13);
  border-radius: 999px;
  color: #aeb8d8;
  background: rgba(142, 161, 255, .055);
  font-size: 10px;
  font-weight: 850;
}

.update-anime-added .update-type {
  color: #dce2ff;
  border-color: rgba(142, 161, 255, .27);
  background: rgba(142, 161, 255, .11);
}

.update-release-delay .update-type {
  color: var(--warn);
  border-color: rgba(255, 201, 121, .24);
  background: rgba(255, 201, 121, .07);
}

.update-release-cancelled .update-type {
  color: var(--danger);
  border-color: rgba(239, 141, 154, .25);
  background: rgba(239, 141, 154, .07);
}

.update-source-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 4px 2px;
  color: #9ca9da;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.update-source-link:hover {
  color: #d8deff;
}

.date.precision-month {
  color: #c7cce4;
  border-color: rgba(142, 161, 255, .11);
  background: rgba(142, 161, 255, .06);
}

.date.precision-year,
.date.precision-tba {
  color: #939cad;
  border-color: rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .025);
}

.title-group {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.title-group .title-scroll,
.title-group .undated-title-scroll {
  min-width: 0;
  flex: 1 1 auto;
}

.verification-trigger {
  position: relative;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: color-mix(in srgb, var(--accent) 74%, var(--muted));
  background: transparent;
  cursor: pointer;
  transform: none;
}

.verification-trigger svg {
  width: 15px;
  height: 15px;
  overflow: visible;
  fill: rgba(142, 161, 255, .045);
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.verification-trigger:hover,
.verification-trigger:focus-visible {
  transform: none;
  color: var(--accent);
  background: rgba(142, 161, 255, .08);
}

@media (hover: hover) {
  .verification-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    z-index: 30;
    width: max-content;
    max-width: 210px;
    padding: 6px 8px;
    border: 1px solid rgba(142, 161, 255, .2);
    border-radius: 8px;
    color: #dfe3f2;
    background: rgba(12, 15, 22, .97);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity .14s ease, transform .14s ease;
  }

  .verification-trigger:hover::after,
  .verification-trigger:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
  }
}

.source-box p {
  margin: 4px 0 0;
}

.source-dialog {
  width: min(470px, 100%);
}

.source-checked {
  margin: 16px 0;
}

.source-checked > div {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .022);
}

.source-checked dt {
  color: #7e8799;
  font-size: 10px;
  font-weight: 850;
}

.source-checked dd {
  margin: 4px 0 0;
  color: #d9ddea;
  font-size: 13px;
  font-weight: 800;
}

.source-list {
  display: grid;
  gap: 8px;
}

.source-option {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(142, 161, 255, .17);
  border-radius: 13px;
  color: #e5e8f5;
  background: rgba(142, 161, 255, .055);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  transition: .18s ease;
}

.source-option:hover {
  transform: translateY(-1px);
  border-color: rgba(142, 161, 255, .36);
  background: rgba(142, 161, 255, .1);
}

@media (max-width: 520px) {
  .update-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    min-height: 85px;
    padding: 11px 0;
  }

  .update-poster {
    width: 46px;
    border-radius: 7px;
  }

  .update-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1px 9px;
  }

  .update-title-row h3 {
    flex: 1 1 180px;
    font-size: 13px;
  }

  .update-title-row time {
    font-size: 11px;
  }

  .update-content p {
    margin-top: 3px;
    font-size: 12px;
  }

  .title-group {
    gap: 4px;
  }
}

@media (max-width: 380px) {
  .section-kicker {
    display: none;
  }

  .verification-trigger {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-basis: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Homepage rendering performance v1 */
@supports (content-visibility: auto) {
  #schedule .month {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}
