/* ==========================================================================
   AnimeSaturn — home (/home) + front page (/) styles.
   Uses the shared tokens/classes from base.css (--as-*, .as-section, .as-sec-*,
   .as-panel, .as-grid, .as-rail, .as-btn, .as-chip, .as-ad-box, .as-empty …).
   Pixel units on purpose: the legacy theme sets html{font-size:13.5px}.
   ========================================================================== */


/* ---------- base widget rules for #home-discussion and #community-pinned
   (moved here from assets/anikoto/css/notifications-bell.css, which the
   layout no longer loads; the .as-home overrides further down re-theme them) ---------- */
#home-discussion {
  margin: 0 0 18px;
  font-family: var(--font-family-sans-serif);
}

#home-discussion.hd-strip {
  margin: 14px 0 18px;
  padding: 14px 0 10px;
  background: linear-gradient(
    180deg,
    rgba(16, 25, 37, 0) 0%,
    rgba(16, 25, 37, 0.45) 40%,
    rgba(16, 25, 37, 0) 100%
  );
}

#home-discussion .hd-strip-inner {
  position: relative;
  background: rgba(20, 32, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px 4px;
  overflow: hidden;
}

#home-discussion .hd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}

#home-discussion .hd-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

#home-discussion .hd-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  white-space: nowrap;
}

#home-discussion .hd-title i {
  color: var(--primary);
}

#home-discussion .hd-tabs {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#home-discussion .hd-tab {
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--gray2);
  position: relative;
}

#home-discussion .hd-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

#home-discussion .hd-tab.active {
  color: var(--white);
}

#home-discussion .hd-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

#home-discussion .hd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray2);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

#home-discussion .hd-switch {
  width: 40px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  cursor: pointer;
}

#home-discussion .hd-switch span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: left 0.15s ease;
}

#home-discussion.is-on .hd-switch {
  background: rgba(38, 163, 214, 0.25);
  border-color: rgba(38, 163, 214, 0.5);
}

#home-discussion.is-on .hd-switch span {
  left: 21px;
}

#home-discussion .hd-body {
  min-height: 0;
}

#home-discussion .hd-list {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#home-discussion .hd-list-empty {
  padding: 14px 0;
  font-size: 13px;
  color: var(--gray2);
}

#home-discussion a.hd-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

#home-discussion a.hd-row:last-child {
  border-bottom: 0;
}

#home-discussion a.hd-row:hover {
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

#home-discussion .hd-row-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

#home-discussion .hd-row-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#home-discussion .hd-row-main {
  flex: 1;
  min-width: 0;
}

#home-discussion .hd-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 4px;
  font-size: 12px;
}

#home-discussion .hd-row-user {
  font-weight: 700;
  color: var(--white);
}

#home-discussion .hd-row-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray2);
}

#home-discussion .hd-row-time {
  color: var(--gray2);
}

#home-discussion .hd-row-ep {
  color: var(--primary);
  font-weight: 600;
}

#home-discussion .hd-row-text {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

#home-discussion .hd-row-show {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#home-discussion.is-off .hd-body {
  display: none;
}

#home-discussion.is-loading .hd-list {
  opacity: 0.65;
  pointer-events: none;
}

@media (max-width: 576px) {
  #home-discussion .hd-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.cpin{margin-bottom:1rem;font-family:inherit}
.cpin a{text-decoration:none;color:inherit}
.cpin .cpin-tag{flex:0 0 auto;font-size:11px;font-weight:800}
.cpin .cpin-t-red{color:#ff718c}
.cpin .cpin-t-blue{color:#4da6ff}
.cpin .cpin-t-green{color:#7df796}
.cpin .cpin-t-yellow{color:#ffce71}
.cpin .cpin-t-purple{color:#d4a2f7}
.cpin .cpin-t-orange{color:#ff7e3f}
.cpin .cpin-t-pink{color:#ff9ff3}
.cpin .cpin-t-cyan{color:#67e8f9}
.cpin .cpin-t-lime{color:#bef264}
.cpin .cpin-t-sky{color:#7dd3fc}
.cpin .cpin-t-coral{color:#fda4af}
.cpin .cpin-t-white{color:#c5d0dc}
.cpin .cpin-hide{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  width:24px;height:24px;border:0;border-radius:6px;cursor:pointer;
  background:rgba(255,255,255,.07);color:#8e9bb0;font-size:11px;
  transition:background .15s ease,color .15s ease;
}
.cpin .cpin-hide:hover{background:rgba(255,255,255,.16);color:#fff}

/* Desktop ticker bar */
.cpin .cpin-bar{
  display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:10px;
  background:linear-gradient(90deg,rgba(38,163,214,.14),rgba(21,27,43,.9) 55%);
  border:1px solid rgba(38,163,214,.3);overflow:hidden;
}
.cpin .cpin-badge{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;
  font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#7ec8e8;
}
.cpin .cpin-badge i{font-size:10px;transform:rotate(35deg)}
.cpin .cpin-items{flex:1;display:flex;gap:8px;min-width:0;overflow-x:auto;scrollbar-width:none}
.cpin .cpin-items::-webkit-scrollbar{display:none}
.cpin .cpin-item{
  flex:1 1 0;min-width:0;display:flex;align-items:center;gap:8px;
  padding:5px 12px;border-radius:999px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);
  font-size:12.5px;font-weight:600;color:#e8eef7;
  transition:background .15s ease,border-color .15s ease;
}
.cpin .cpin-item:hover{background:rgba(255,255,255,.12);border-color:rgba(126,200,232,.4);color:#fff}
.cpin .cpin-item .t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cpin .cpin-item .c{flex:0 0 auto;font-size:11px;color:#8e9bb0}
.cpin .cpin-item .c i{font-size:10px;margin-right:3px}

/* Mobile spotlight banner (one pin at a time) - keep short so slider stays the hero */
.cpin .cpin-spot{
  position:relative;display:none;align-items:center;gap:10px;
  padding:8px 12px;border-radius:10px;overflow:hidden;
  background:
    radial-gradient(600px 80px at 0% 0%,rgba(38,163,214,.22),transparent 60%),
    radial-gradient(500px 90px at 100% 100%,rgba(255,159,243,.12),transparent 60%),
    #151b2b;
  border:1px solid rgba(126,200,232,.25);
}
.cpin .cpin-spot-icon{
  flex:0 0 auto;width:28px;height:28px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(38,163,214,.18);color:#7ec8e8;font-size:12px;
}
.cpin .cpin-spot-icon i{transform:rotate(35deg)}
.cpin .cpin-spot-body{flex:1;min-width:0;color:#e8eef7;padding-right:28px}
.cpin .cpin-spot-body:hover{color:#fff}
.cpin .cpin-spot-kicker{
  font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:#7ec8e8;margin-bottom:1px;line-height:1.2;
}
.cpin .cpin-spot-kicker .cpin-tag{margin-left:5px;letter-spacing:0;text-transform:none}
.cpin .cpin-spot-name{
  font-size:13px;font-weight:800;line-height:1.25;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cpin .cpin-spot-sub{display:none}
.cpin .cpin-spot-dots{position:absolute;right:40px;top:8px;display:flex;gap:4px}
.cpin .cpin-spot-dots span{
  width:6px;height:6px;border-radius:50%;cursor:pointer;
  background:rgba(255,255,255,.25);transition:background .15s ease;
}
.cpin .cpin-spot-dots span.on{background:#7ec8e8}

@media (max-width:767.98px){
  .cpin .cpin-bar{display:none}
  .cpin .cpin-spot{display:flex}
}


/* ---------- utilities ---------- */
.as-home__h1,
.as-fp__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.as-home {
  padding-top: 24px;
  padding-bottom: 24px;
}

.as-home > .as-section,
.as-home > section {
  margin-bottom: 40px;
}

.as-home .as-home-ad {
  margin: 0 0 40px;
}

.as-home > .as-announce,
.as-home > #anikoto-bookmark-alert,
.as-home > #site-alert {
  margin-bottom: 20px;
}

/* ---------- section head helpers ---------- */
.as-home .as-home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.as-home .as-home-head__text {
  min-width: 0;
}

.as-home .as-home-head__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.as-home .as-home-head__end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.as-home .as-sec-title i {
  color: var(--as-brand);
  margin-right: 4px;
}

/* ---------- pill tabs (All / Sub / Dub …, Today / Week / Month) ---------- */
.as-home .as-home-tabs,
.as-home .text-tabs.as-home-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.as-home .as-home-tabs > button,
.as-home .text-tabs.as-home-tabs .tab {
  appearance: none;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid var(--as-border);
  border-radius: 999px;
  background: transparent;
  color: var(--as-ink-mute);
  font: 600 12px/1.2 var(--as-font, Inter, sans-serif);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}

.as-home .as-home-tabs > button + button {
  margin-left: 0;
}

.as-home .as-home-tabs,
.as-home .tabs.as-home-tabs {
  padding: 0;
  border-radius: 0;
  background: none;
}

.as-home .as-home-tabs > button:hover {
  color: var(--as-ink);
  border-color: var(--as-border-strong);
  background: var(--as-hover);
}

.as-home .as-home-tabs > button.active {
  background: var(--as-brand);
  border-color: var(--as-brand);
  color: #fff;
}

.as-home .as-home-tabs > button:focus-visible,
.as-home .as-home-paging > span:focus-visible,
.as-home .hd-switch:focus-visible,
.as-cal-tab:focus-visible,
.as-cal__arrow:focus-visible,
.as-cal-entry__link:focus-visible {
  outline: 2px solid var(--as-brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--as-brand-ring);
}

/* ---------- hero (#hotest Swiper) ---------- */
.as-home .as-home-hero {
  margin-bottom: 24px;
}

#hotest.as-hero {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 24 / 9;
  min-height: 320px;
  max-height: 480px;
  overflow: hidden;
  border-radius: var(--as-r-2xl, 28px);
  background: #07060b;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
  z-index: 1;
}

#hotest.as-hero > .swiper-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 1;
  box-sizing: content-box;
  transition-property: transform;
}

#hotest.as-hero > .swiper-wrapper > .swiper-slide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

/* Pagination: short bars, the active one longer and brand coloured. */
#hotest.as-hero .swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: auto;
  margin: 0;
  padding: 0;
  transform: none;
}

#hotest.as-hero .swiper-pagination-bullet {
  display: block;
  width: 22px;
  height: 3px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  opacity: 1;
  cursor: pointer;
  transition: width .28s cubic-bezier(.16, 1, .3, 1), background-color .2s, transform .2s;
}

#hotest.as-hero .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, .7);
  transform: scaleY(1.4);
}

#hotest.as-hero .swiper-pagination-bullet-active {
  width: 36px;
  background: var(--as-brand);
  box-shadow: 0 0 10px rgba(134, 61, 186, .55);
}

@media (max-width: 767.98px) {
  #hotest.as-hero {
    aspect-ratio: 16 / 9;
    min-height: 340px;
    max-height: 380px;
    border-radius: var(--as-r-xl, 20px);
  }

  #hotest.as-hero .swiper-pagination {
    bottom: 14px;
  }
}

/* ---------- community pinned strip (#community-pinned, notifications-bell.js) ---------- */
.as-home .cpin.as-home-pinned:empty {
  display: none;
}

.as-home .cpin.as-home-pinned {
  margin: 0 0 24px;
}

.as-home .cpin .cpin-bar,
.as-home .cpin .cpin-spot {
  border-radius: var(--as-r-lg, 14px);
  border: 1px solid var(--as-border);
  background: linear-gradient(90deg, var(--as-brand-soft), var(--as-soft) 55%);
}

.as-home .cpin .cpin-badge,
.as-home .cpin .cpin-spot-kicker {
  color: var(--as-brand-hover);
}

.as-home .cpin .cpin-spot-icon {
  background: var(--as-brand-soft);
  color: var(--as-brand-hover);
}

.as-home .cpin .cpin-item {
  background: var(--as-elev);
  border-color: var(--as-border);
  color: var(--as-ink);
}

.as-home .cpin .cpin-item:hover {
  background: var(--as-hover);
  border-color: var(--as-brand);
  color: var(--as-ink);
}

.as-home .cpin .cpin-item .c,
.as-home .cpin .cpin-hide {
  color: var(--as-ink-dim);
}

.as-home .cpin .cpin-hide {
  background: var(--as-hover);
}

.as-home .cpin .cpin-hide:hover {
  color: var(--as-ink);
}

.as-home .cpin .cpin-spot-body,
.as-home .cpin .cpin-spot-body:hover {
  color: var(--as-ink);
}

.as-home .cpin .cpin-spot-dots span {
  background: var(--as-border-strong);
}

.as-home .cpin .cpin-spot-dots span.on {
  background: var(--as-brand);
}

/* ---------- latest releases (#recent-update) ---------- */
.as-home .as-home-paging {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.as-home .as-home-paging > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  color: var(--as-ink);
  cursor: pointer;
  user-select: none;
  transition: color .15s, background-color .15s, opacity .15s;
}

.as-home .as-home-paging > span:hover {
  color: var(--as-brand);
}

.as-home .as-home-paging > span.disabled {
  opacity: .3;
  cursor: not-allowed;
}

.as-home .paging.as-home-paging--bottom {
  display: none;
  justify-content: center;
  margin-top: 18px;
}

.as-home .as-home-latest__body {
  transition: opacity .2s;
}

.as-home .as-grid > .as-empty,
.as-home .as-home-latest__grid > .as-empty {
  grid-column: 1 / -1;
}

@media (max-width: 767.98px) {
  .as-home .paging.as-home-paging--bottom {
    display: flex;
  }

  /* Reference: title + sub on the left, prev / next arrows at the top-right of
     the head on phones too; our filter pills get their own row underneath
     (the bottom pager is kept as a convenience after the long grid). */
  .as-home .as-home-latest .as-home-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0 12px;
  }

  .as-home .as-home-latest .as-home-head__text,
  .as-home .as-home-latest .as-home-head__row {
    display: contents;
  }

  .as-home .as-home-latest .as-home-head .as-sec-title { grid-column: 1; grid-row: 1; }
  .as-home .as-home-latest .as-home-head .as-sec-sub { grid-column: 1; grid-row: 2; }

  .as-home .as-home-latest .as-home-head .as-home-paging {
    grid-column: 2;
    grid-row: 1 / span 2;
    gap: 2px;
  }

  .as-home .as-home-latest .as-home-head .as-home-tabs {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 12px;
  }

  .as-home .as-home-latest .as-home-tabs > button {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .as-home .as-home-latest .as-home-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: calc(100vw - 32px);
    scrollbar-width: none;
  }

  .as-home .as-home-latest .as-home-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* ---------- horizontal rails (top 10, upcoming, continue watching) ----------
   Built on base.css .as-rail (grid, --as-rail-cols / --as-rail-gap). */
.as-home .as-home-rail {
  margin: 0;
  padding: 2px 0 6px;
  list-style: none;
}

@media (min-width: 1280px) {
  .as-home .as-home-upcoming .as-home-rail {
    --as-rail-cols: 8;
  }
}

.as-home .as-home-railnav button[disabled] {
  opacity: .3;
  cursor: default;
}

@media (max-width: 639.98px) {
  .as-home .as-home-railnav {
    display: none;
  }
}

/* Most viewed this week: plain poster rail, 8 across on desktop (~160px cards). */
.as-home .as-home-top__rail > .as-home-rank {
  margin: 0;
}

@media (min-width: 1024px) {
  .as-home .as-home-top__rail { --as-rail-cols: 6; }
}

@media (min-width: 1280px) {
  .as-home .as-home-top__rail { --as-rail-cols: 8; }
}

/* Small secondary pill tabs at the right of a section head (Most viewed period,
   Newly added lists). */
.as-home .as-home-tabs--subtle {
  gap: 4px;
}

.as-home .as-home-tabs--subtle > button {
  padding: 4px 10px;
  border-color: transparent;
  background: var(--as-soft);
  color: var(--as-ink-dim);
  font-size: 11.5px;
}

.as-home .as-home-tabs--subtle > button:hover {
  border-color: transparent;
}

.as-home .as-home-tabs--subtle > button.active {
  background: var(--as-brand-soft);
  border-color: transparent;
  color: var(--as-brand-hover);
}

html:not(.dark) .as-home .as-home-tabs--subtle > button.active {
  color: var(--as-brand);
}

/* Phones (reference): title + sub on the left, the "View all →" link on the
   right of the same block; our extra pill tabs drop to their own row below. */
@media (max-width: 639.98px) {
  .as-home .as-home-head {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .as-home .as-home-head__text {
    flex: 1 1 0;
  }

  .as-home .as-home-head__end {
    display: contents;
  }

  .as-home .as-home-head .as-sec-more {
    margin-left: auto;
  }

  .as-home .as-home-head__end > .as-home-tabs {
    order: 3;
    flex: 0 0 100%;
  }
}

/* ---------- release calendar (#schedule-block, partials/schedule*) ---------- */
.as-home .as-home-cal__panel {
  padding: 18px 20px;
  min-height: 220px;
}

.as-home-cal__loading-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 36px 18px;
}

.as-home-cal__loading-days > span {
  height: 54px;
  border-radius: 11px;
}

.as-home-cal__loading-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.as-home-cal__loading-grid > span {
  height: 72px;
  border-radius: 10px;
}

@media (max-width: 767.98px) {
  .as-home-cal__loading-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 6px 0 14px;
  }

  .as-home-cal__loading-days > span:nth-child(n + 5) {
    display: none;
  }

  .as-home-cal__loading-grid {
    grid-template-columns: 1fr;
  }

  .as-home-cal__loading-grid > span:nth-child(n + 5) {
    display: none;
  }
}

.as-cal__days {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.as-cal__arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--as-ink);
  font-size: 14px;
  cursor: pointer;
  transition: color .15s, opacity .15s;
}

.as-cal__arrow:hover {
  color: var(--as-brand);
}

.as-cal__arrow.swiper-button-disabled,
.as-cal__arrow[disabled] {
  opacity: .3;
  cursor: default;
}

.as-cal__strip.swiper-container {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  z-index: 1;
}

.as-cal__strip > .swiper-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 1;
  box-sizing: content-box;
  transition-property: transform;
}

.as-cal__day.swiper-slide {
  flex-shrink: 0;
  box-sizing: border-box;
  width: calc(100% / 7);
  padding: 7px 4px 2px;
}

.as-cal-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  margin: 0;
  padding: 9px 4px;
  border: 0;
  border-radius: 11px;
  background: var(--as-bg);
  box-shadow: inset 0 0 0 1px var(--as-border);
  color: var(--as-ink);
  font-family: var(--as-font, Inter, sans-serif);
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, box-shadow .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}

.as-cal-tab:hover {
  background: var(--as-hover);
}

.as-cal-tab__day {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--as-ink-dim);
  font-size: 11.5px;
  font-weight: 600;
}

.as-cal-tab__date {
  display: flex;
  align-items: baseline;
  gap: 4px;
  max-width: 100%;
}

.as-cal-tab__num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.as-cal-tab__month {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--as-ink-dim);
  font-size: 11px;
}

.as-cal-tab__dot {
  position: absolute;
  top: -6px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--as-soft);
  border-radius: 999px;
  background: var(--as-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.as-cal__day.is-today .as-cal-tab {
  box-shadow: inset 0 0 0 1px var(--as-brand);
}

.as-cal__day.is-today .as-cal-tab__day {
  color: var(--as-brand-hover);
}

.as-cal__day.active .as-cal-tab {
  background: var(--as-brand);
  box-shadow: none;
  color: #fff;
}

.as-cal__day.active .as-cal-tab__day,
.as-cal__day.active .as-cal-tab__month {
  color: rgba(255, 255, 255, .82);
}

.as-cal__day.active .as-cal-tab__dot {
  background: #fff;
  color: var(--as-brand);
  border-color: var(--as-brand);
}

@media (max-width: 767.98px) {
  .as-home .as-home-cal__panel {
    padding: 14px 12px;
  }

  .as-cal__day.swiper-slide {
    width: 20%;
    padding: 7px 3px 2px;
  }

  .as-cal-tab {
    padding: 8px 2px;
  }

  .as-cal-tab__num {
    font-size: 15px;
  }

  .as-cal-tab__day,
  .as-cal-tab__month {
    font-size: 10px;
  }
}

@media (max-width: 479.98px) {
  .as-cal__day.swiper-slide {
    width: calc(100% / 3);
  }

  .as-cal__arrow {
    width: 26px;
  }
}

.as-cal__body {
  transition: opacity .2s;
}

.as-cal__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1279.98px) {
  .as-cal__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023.98px) {
  .as-cal__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .as-cal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 539.98px) {
  .as-cal__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.as-cal__grid > .as-empty {
  grid-column: 1 / -1;
}

.as-cal__body:not(.expand) .as-cal-entry.is-extra {
  display: none;
}

.as-cal-entry {
  min-width: 0;
}

.as-cal-entry__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  color: var(--as-ink);
  text-decoration: none;
  transition: background-color .18s, transform .18s;
}

.as-cal-entry__link:hover {
  background: rgba(134, 61, 186, .1);
  color: var(--as-ink);
  text-decoration: none;
  transform: translateX(2px);
}

.as-cal-entry__poster {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 72px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--as-elev);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .45);
}

.as-cal-entry__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.as-cal-entry__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--as-grad);
  color: #fff;
  font: 800 20px/1 var(--as-font-display, Manrope, sans-serif);
}

.as-cal-entry.is-past .as-cal-entry__poster {
  filter: grayscale(.4) brightness(.85);
}

.as-cal-entry__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.as-cal-entry__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  transition: color .15s;
}

.as-cal-entry__link:hover .as-cal-entry__name {
  color: var(--as-brand-hover);
}

.as-cal-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.as-cal-entry__ep {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(134, 61, 186, .3);
  border-radius: 5px;
  background: rgba(134, 61, 186, .14);
  color: #c084fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.as-cal-entry__time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.as-cal-entry__time i {
  color: #c084fc;
}

html:not(.dark) .as-cal-entry__ep,
html:not(.dark) .as-cal-entry__time i {
  color: #6d28d9;
}

.as-cal__more {
  display: flex;
  margin: 12px auto 0;
}

.as-cal__body.expand .as-cal__more-show,
.as-cal__body:not(.expand) .as-cal__more-hide {
  display: none;
}

.as-cal__now {
  margin: 12px 0 0;
  color: var(--as-ink-dim);
  font-size: 12px;
  text-align: right;
}

/* ---------- newly added (poster grid, one list at a time behind .as-home-tabs--subtle) ---------- */
.as-home .as-home-fresh__pane > .as-empty {
  margin: 0;
}

/* ---------- continue watching (#continue-watching, member continue-card) ---------- */
.as-home #continue-watching .item > .inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: none;
  padding: 0;
}

.as-home #continue-watching .ani.poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--as-r-lg, 14px);
  background: var(--as-elev);
}

.as-home #continue-watching .ani.poster > a {
  display: block;
  position: relative;
  padding-bottom: 150%;
  z-index: 1;
}

.as-home #continue-watching .ani.poster > a img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.as-home #continue-watching .meta.playing {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 28px 10px 0;
  background: linear-gradient(180deg, rgba(7, 6, 11, 0), rgba(7, 6, 11, .92));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.as-home #continue-watching .meta.playing > .inner {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
}

.as-home #continue-watching .meta.playing .left {
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--as-brand);
}

.as-home #continue-watching .meta.playing .right {
  font-variant-numeric: tabular-nums;
  opacity: .85;
}

.as-home #continue-watching .meta.playing .progress {
  position: relative;
  display: block;
  height: 4px;
  margin: 0 -10px;
  background: rgba(255, 255, 255, .2);
}

.as-home #continue-watching .meta.playing .progress > span {
  display: block;
  height: 100%;
  background: var(--as-brand);
}

.as-home #continue-watching .playing-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(7, 6, 11, .72);
  cursor: pointer;
  opacity: 1;
  transition: background-color .15s;
}

.as-home #continue-watching .playing-remove::before,
.as-home #continue-watching .playing-remove::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: #fff;
  font-size: 0;
  transform: rotate(45deg);
}

.as-home #continue-watching .playing-remove::after {
  transform: rotate(-45deg);
}

.as-home #continue-watching .playing-remove:hover,
.as-home #continue-watching .playing-remove:focus-visible {
  background: #dc2626;
  outline: none;
}

.as-home #continue-watching .info .name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--as-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.as-home #continue-watching .info .name:hover {
  color: var(--as-brand-hover);
}

.as-home #continue-watching .info .genre {
  display: none;
}

.as-home #continue-watching .info > .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 3px;
  color: var(--as-ink-dim);
  font-size: 11.5px;
}

.as-home #continue-watching .info > .meta .m-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.as-home #continue-watching .info > .meta label {
  margin: 0;
  font-weight: 500;
}

.as-home #continue-watching .info > .meta label + label {
  display: none;
}

.as-home #continue-watching .info > .meta .rated i {
  color: #f59e0b;
}

/* ---------- discussion (#home-discussion, notifications-bell.js) ---------- */
.as-home #home-discussion.hd-strip {
  margin: 0 0 40px;
  padding: 0;
  background: none;
  font-family: inherit;
}

.as-home #home-discussion .hd-strip-inner {
  padding: 18px 20px 8px;
  border: 1px solid var(--as-border);
  border-radius: var(--as-r-xl, 20px);
  background: var(--as-soft);
}

.as-home #home-discussion .hd-head {
  margin: 0 0 12px;
}

.as-home #home-discussion .hd-left {
  align-items: center;
  gap: 14px;
}

.as-home #home-discussion .hd-title {
  margin: 0;
  color: var(--as-ink);
  font-family: var(--as-font-display, Manrope, sans-serif);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.as-home #home-discussion .hd-title i {
  color: var(--as-brand);
}

.as-home #home-discussion .hd-tabs {
  gap: 6px;
}

.as-home #home-discussion .hd-tab {
  padding: 5px 12px;
  border: 1px solid var(--as-border);
  border-radius: 999px;
  background: transparent;
  color: var(--as-ink-mute);
  font-size: 12px;
}

.as-home #home-discussion .hd-tab:hover {
  color: var(--as-ink);
  background: var(--as-hover);
}

.as-home #home-discussion .hd-tab.active::after {
  display: none;
}

.as-home #home-discussion .hd-tab.active {
  background: var(--as-brand);
  border-color: var(--as-brand);
  color: #fff;
}

.as-home #home-discussion .hd-toggle {
  color: var(--as-ink-mute);
}

.as-home #home-discussion .hd-switch {
  border-color: var(--as-border-strong);
  background: var(--as-hover);
}

.as-home #home-discussion.is-on .hd-switch {
  background: var(--as-brand);
  border-color: var(--as-brand);
}

.as-home #home-discussion .hd-switch span {
  background: #fff;
}

.as-home #home-discussion .hd-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  border-top: 1px solid var(--as-border);
}

.as-home #home-discussion .hd-list > .hd-list-empty {
  grid-column: 1 / -1;
  color: var(--as-ink-dim);
}

.as-home #home-discussion a.hd-row,
.as-home #home-discussion a.hd-row:last-child {
  padding: 12px 6px;
  border-bottom: 1px solid var(--as-border);
  border-radius: 0;
  color: var(--as-ink);
}

.as-home #home-discussion a.hd-row:hover {
  background: var(--as-hover);
}

.as-home #home-discussion .hd-row-avatar {
  width: 40px;
  height: 40px;
  background: var(--as-elev);
}

.as-home #home-discussion .hd-row-user {
  color: var(--as-ink);
}

.as-home #home-discussion .hd-row-badge {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--as-brand-soft);
  color: var(--as-brand-hover);
}

.as-home #home-discussion .hd-row-time {
  color: var(--as-ink-dim);
}

.as-home #home-discussion .hd-row-ep,
.as-home #home-discussion .hd-row-show {
  color: var(--as-brand-hover);
}

.as-home #home-discussion .hd-row-text {
  color: var(--as-ink-mute);
}

html:not(.dark) .as-home #home-discussion .hd-row-ep,
html:not(.dark) .as-home #home-discussion .hd-row-show,
html:not(.dark) .as-home #home-discussion .hd-row-badge {
  color: var(--as-brand);
}

@media (min-width: 1024px) {
  .as-home #home-discussion .hd-list > a.hd-row:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
}

.as-home #home-discussion .hd-list > a.hd-row:last-child {
  border-bottom: 0;
}

@media (max-width: 1023.98px) {
  .as-home #home-discussion .hd-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .as-home #home-discussion .hd-strip-inner {
    padding: 14px 14px 6px;
  }

  .as-home #home-discussion .hd-left {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ---------- share buttons (component owns the look) ---------- */
.as-home .as-home-share {
  margin: 0 0 40px;
}

/* ==========================================================================
   Front page (/) — splash with search
   ========================================================================== */
.as-fp-body {
  background: var(--as-bg);
}

.as-fp {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.as-fp__bg {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 720px;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(93, 121, 238, .22), transparent 70%),
    radial-gradient(800px 420px at 85% 10%, rgba(134, 61, 186, .32), transparent 70%);
  background-position: center top;
  background-size: cover;
}

.as-fp__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 12, 21, .55) 0%, var(--as-bg) 100%);
}

html:not(.dark) .as-fp__bg::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, var(--as-bg) 100%);
}

.as-fp__inner {
  padding-top: 56px;
  padding-bottom: 56px;
}

.as-fp__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.as-fp__logo img {
  display: block;
  width: auto;
  height: 80px;
  filter: drop-shadow(0 10px 30px rgba(134, 61, 186, .45));
}

.as-fp__title {
  margin: 18px 0 10px;
  color: var(--as-ink);
  font: 400 46px/1.05 "Righteous", var(--as-font-display, Manrope, sans-serif);
}

.as-fp__lead {
  max-width: 560px;
  margin: 0 0 26px;
  color: var(--as-ink-mute);
  font-size: 16px;
  line-height: 1.5;
}

.as-fp #search.as-fp__search {
  display: block;
  flex-grow: 0;
  width: 100%;
  max-width: 640px;
}

.as-fp #search.as-fp__search form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 6px 6px 6px 46px;
  border: 1px solid var(--as-border-strong);
  border-radius: 999px;
  background: var(--as-elev);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .6);
  line-height: normal;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}

.as-fp #search.as-fp__search form:focus-within {
  border-color: var(--as-brand);
  box-shadow: 0 0 0 4px var(--as-brand-ring);
}

.as-fp__search-ico {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--as-ink-dim);
  transform: translateY(-50%);
}

.as-fp #search.as-fp__search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--as-ink);
  font: 500 15px/1 var(--as-font, Inter, sans-serif);
}

.as-fp #search.as-fp__search input::placeholder {
  color: var(--as-ink-dim);
}

.as-fp #search.as-fp__search button {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  color: #fff;
}

.as-fp__popular {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  margin-top: 18px;
}

.as-fp__popular-label {
  color: var(--as-ink-dim);
  font-size: 13px;
  font-weight: 600;
}

.as-fp__popular .as-chip {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.as-fp__cta {
  margin-top: 26px;
  gap: 10px;
}

.as-fp__content {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 32px;
  color: var(--as-ink-mute);
  font-size: 15px;
  line-height: 1.7;
}

.as-fp__content h2,
.as-fp__content h3,
.as-fp__content .heading {
  margin: 22px 0 10px;
  color: var(--as-ink);
  font-family: var(--as-font-display, Manrope, sans-serif);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.as-fp__content h2 {
  font-size: 22px;
}

.as-fp__content h3 {
  font-size: 17px;
}

.as-fp__content > :first-child {
  margin-top: 0;
}

.as-fp__content p {
  margin: 0 0 10px;
}

.as-fp__content b,
.as-fp__content strong {
  color: var(--as-ink);
}

.as-fp__content a {
  color: var(--as-brand-hover);
}

.as-fp__content img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767.98px) {
  .as-fp__inner {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .as-fp__logo img {
    height: 64px;
  }

  .as-fp__title {
    font-size: 34px;
  }

  .as-fp__lead {
    font-size: 14.5px;
  }

  .as-fp #search.as-fp__search form {
    height: 50px;
    padding-left: 40px;
  }

  .as-fp__search-ico {
    left: 15px;
  }

  .as-fp #search.as-fp__search button {
    height: 38px;
    padding: 0 14px;
  }

  .as-fp__content {
    padding: 20px 16px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .as-home .as-home-rail {
    scroll-behavior: auto;
  }

  #hotest.as-hero .swiper-pagination-bullet,
  .as-cal-entry__link {
    transition: none;
  }
}
