/* Homepage rebuild: MeetUpHack4K-style hero plus richer card hover. */

.showcase {
  --home-hot: #ff2e62;
  --home-violet: #7a35ff;
  --home-blue: #22d3ee;
  --home-green: #35d27f;
  --home-line: rgba(255, 255, 255, 0.13);
  --home-surface: rgba(12, 14, 32, 0.72);
  --home-shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
  --home-card-track: 270px;
  --home-card-gap: 18px;
  position: relative;
  width: min(calc((var(--home-card-track) * 5) + (var(--home-card-gap) * 4)), calc(100% - 56px));
  margin: clamp(18px, 2.5vw, 36px) auto clamp(34px, 4vw, 56px);
  perspective: 1400px;
}

.home-section-grid {
  --home-hot: #ff2e62;
  --home-violet: #7a35ff;
  --home-blue: #22d3ee;
  --home-green: #35d27f;
  --home-line: rgba(255, 255, 255, 0.13);
}

.showcase::before {
  content: "";
  position: absolute;
  inset: -72px -6vw -100px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--home-hot) 16%, transparent), transparent 34%),
    radial-gradient(circle at 70% 10%, color-mix(in srgb, var(--home-violet) 18%, transparent), transparent 32%),
    radial-gradient(circle at 55% 92%, color-mix(in srgb, var(--home-blue) 10%, transparent), transparent 36%);
  filter: blur(8px);
}

.hero-stack {
  position: relative;
  height: clamp(470px, 34vw, 560px);
  overflow: hidden;
}

.hero-slide {
  --depth: 0;
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--home-violet) 56%, var(--home-line));
  border-radius: clamp(18px, 1.7vw, 26px);
  background: var(--home-surface);
  box-shadow:
    var(--home-shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 54px color-mix(in srgb, var(--home-violet) 28%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition: opacity 360ms ease, visibility 360ms ease;
  user-select: text;
  isolation: isolate;
}

.hero-slide:nth-child(2),
.hero-slide:nth-child(3) {
  opacity: 0;
  filter: none;
}

.hero-slide.is-preview {
  visibility: visible;
  pointer-events: none;
  filter: saturate(0.86) brightness(0.70);
}

.hero-slide.is-preview .slide-content,
.hero-slide.is-preview .hero-dots {
  display: none;
}

.hero-slide.is-preview .slide-readable-overlay {
  opacity: 0.35;
}

.hero-slide.is-preview-1 {
  z-index: 3;
  opacity: 0.32;
  transform: translateX(28px) translateY(12px) scale(0.985) rotateY(-4deg);
}

.hero-slide.is-preview-2 {
  z-index: 2;
  opacity: 0.18;
  transform: translateX(56px) translateY(24px) scale(0.965) rotateY(-5deg);
}

.hero-slide.is-active {
  z-index: 5;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  display: none;
}

.slide-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: #070912;
}

.slide-readable-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(3, 5, 14, 0.98) 0%,
      rgba(3, 5, 14, 0.94) 22%,
      rgba(3, 5, 14, 0.82) 38%,
      rgba(3, 5, 14, 0.56) 55%,
      rgba(3, 5, 14, 0.26) 74%,
      rgba(3, 5, 14, 0.08) 100%),
    linear-gradient(180deg, rgba(3, 5, 14, 0.08) 0%, rgba(3, 5, 14, 0) 54%, rgba(3, 5, 14, 0.24) 100%);
}

.slide-bg,
.slide-bg-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 420ms ease;
  user-select: none;
}

.slide-bg-fill {
  z-index: 1;
  object-fit: cover;
  object-position: center;
  filter: blur(22px) saturate(1.18) contrast(1.04) brightness(0.7);
  opacity: 0.72;
  transform: scale(1.08);
}

.slide-bg {
  z-index: 2;
  object-fit: contain;
  object-position: right center;
  filter: saturate(1.15) contrast(1.02) brightness(1.04);
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0);
}

.slide-bg--banner {
  object-fit: contain;
  object-position: right center;
}

.slide-bg-fill--banner {
  opacity: 0.58;
  filter: blur(24px) saturate(1.08) contrast(1.02) brightness(0.68);
}

.slide-bg--poster-fallback {
  object-fit: contain;
}

.slide-bg--fallback {
  background: linear-gradient(135deg, #15182f, #241146 54%, #461323);
}

.slide-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: min(860px, 66%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(18px, 2vw, 26px);
  padding: clamp(34px, 4vw, 70px);
  pointer-events: auto;
  user-select: text;
}

.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row {
  min-height: 30px;
  align-content: flex-start;
  overflow: hidden;
}

.tag-row a,
.tag-row span,
.meta-row a,
.meta-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-row a,
.meta-row span {
  text-transform: none;
}

.meta-row .success {
  color: var(--home-green);
}

.slide-copy {
  align-self: center;
  width: min(760px, 100%);
  max-width: 760px;
  min-height: clamp(250px, 18vw, 310px);
}

.slide-copy h1 {
  max-width: 760px;
  margin: 24px 0 16px;
  color: #fff;
  font-size: clamp(38px, 3.75vw, 68px);
  font-weight: 940;
  line-height: 1.06;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.72);
  overflow-wrap: anywhere;
  display: -webkit-box;
  max-height: 2.18em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-row {
  min-height: 30px;
  align-content: flex-start;
  overflow: hidden;
}

.slide-copy p {
  max-width: 600px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
  display: -webkit-box;
  min-height: 5em;
  max-height: 5em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hero-actions {
  position: relative;
  z-index: 14;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 14px;
  min-height: 56px;
  pointer-events: auto;
}

.watch-button,
.hero-bookmark-button {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  min-height: 56px;
  height: 56px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--home-hot) 38%, var(--home-line));
  border-radius: 13px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  font-family: inherit;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 250ms ease, border-color 250ms ease, background 250ms ease, color 250ms ease;
}

.watch-button {
  min-width: 176px;
  padding: 0 32px;
  border-color: color-mix(in srgb, var(--home-hot) 62%, transparent);
  background: linear-gradient(135deg, var(--home-hot), var(--home-violet));
  box-shadow: 0 18px 54px color-mix(in srgb, var(--home-hot) 22%, transparent), 0 0 30px color-mix(in srgb, var(--home-violet) 22%, transparent);
  font-size: 17px;
}

.watch-button::before {
  position: absolute;
  inset: -2px;
  content: "";
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 50%, rgba(255, 255, 255, 0.46), transparent 18%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.32) 44%, transparent 72%);
  transform: translateX(-110%) skewX(-16deg);
  transition: opacity 180ms ease, transform 420ms ease;
}

.watch-button i,
.watch-button span {
  position: relative;
  z-index: 1;
}

.hero-bookmark-button {
  min-width: 176px;
}

.watch-button:hover,
.hero-bookmark-button:hover {
  border-color: color-mix(in srgb, var(--home-hot) 72%, transparent);
  box-shadow: 0 18px 54px color-mix(in srgb, var(--home-hot) 22%, transparent), 0 0 34px color-mix(in srgb, var(--home-violet) 24%, transparent);
}

.watch-button:hover,
.watch-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.12) saturate(1.08);
  box-shadow:
    0 20px 58px color-mix(in srgb, var(--home-hot) 34%, transparent),
    0 0 42px color-mix(in srgb, var(--home-violet) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.watch-button:hover::before,
.watch-button:focus-visible::before {
  opacity: 1;
  transform: translateX(110%) skewX(-16deg);
}

.watch-button:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(1.22) saturate(1.12);
}

.watch-button:focus-visible,
.hero-bookmark-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--home-blue) 84%, #fff);
  outline-offset: 4px;
}

.hero-bookmark-button.is-active {
  border-color: color-mix(in srgb, var(--home-blue) 76%, var(--home-hot));
  background: linear-gradient(135deg, color-mix(in srgb, var(--home-blue) 42%, transparent), color-mix(in srgb, var(--home-violet) 38%, transparent));
  box-shadow: 0 14px 44px color-mix(in srgb, var(--home-blue) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-bookmark-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.hero-dots {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: 36px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  transition: width 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.hero-dots .is-active {
  width: 34px;
  border-radius: 999px;
  background: var(--home-hot);
  box-shadow: 0 0 18px var(--home-hot);
}

.home-section-grid {
  --home-card-size: 270px;
  gap: 18px;
}

.home-section-grid .content-card {
  border-radius: 12px;
  overflow: visible;
  transform-origin: center bottom;
}

.home-section-grid .content-card__poster-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.home-section-grid .content-card:hover {
  transform: translateY(-6px);
}

.home-section-grid .content-card:hover .content-card__poster-wrapper img,
.home-section-grid .content-card:focus-within .content-card__poster-wrapper img {
  transform: scale(1.07);
  filter: blur(4px) brightness(0.64) saturate(1.18);
}

.content-card__hover-panel {
  --card-hover-preview-delay: 1100ms;
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 240ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(4, 6, 18, 0.20) 0%, rgba(4, 6, 18, 0.78) 52%, rgba(4, 6, 18, 0.96) 100%),
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--home-hot) 26%, transparent), transparent 36%),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--home-violet) 24%, transparent), transparent 34%);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  --hover-control-bg: rgba(255, 255, 255, 0.16);
  --hover-control-bg-strong: rgba(255, 255, 255, 0.24);
  --hover-control-border: rgba(255, 255, 255, 0.30);
  --hover-control-shadow: 0 10px 24px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.content-card__hover-media {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.home-section-grid .content-card:hover .content-card__hover-panel,
.home-section-grid .content-card:focus-within .content-card__hover-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay:
    var(--card-hover-preview-delay),
    var(--card-hover-preview-delay),
    var(--card-hover-preview-delay);
}

.content-card__hover-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.content-card__hover-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.content-card__hover-rating i {
  color: #ffc94a;
}

.content-card__hover-title {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
  overflow-wrap: anywhere;
}

.content-card__hover-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.52), rgba(255,255,255,.18), transparent);
}

.content-card__hover-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.content-card__hover-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--hover-control-border);
  background: var(--hover-control-bg);
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  box-shadow: var(--hover-control-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

a.content-card__hover-chip:hover {
  background: var(--hover-control-bg-strong);
  transform: translateY(-1px);
}

.content-card__hover-chip--muted {
  color: rgba(255, 255, 255, 0.76) !important;
}

.content-card__hover-resume {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--home-green) 50%, rgba(255,255,255,.24));
  background: linear-gradient(135deg, color-mix(in srgb, var(--home-green) 24%, rgba(255,255,255,.12)), rgba(255,255,255,.08));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255,255,255,.18);
}

.content-card__hover-resume-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.content-card__hover-resume-text span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.70);
}

.content-card__hover-resume-text strong {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  text-align: right;
}

.content-card__hover-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.content-card__hover-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--home-hot), var(--home-violet), var(--home-blue));
  box-shadow: 0 0 16px color-mix(in srgb, var(--home-violet) 52%, transparent);
}

.content-card__hover-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.content-card__hover-action,
.content-card__hover-bookmark {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--hover-control-bg-strong);
  color: #fff !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--hover-control-shadow);
  transition: transform 160ms ease, filter 180ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.content-card__hover-action--primary {
  flex: 0 1 auto;
  min-width: 116px;
  border-color: color-mix(in srgb, var(--home-hot) 56%, rgba(255,255,255,.34));
  background: linear-gradient(135deg, var(--home-hot) 0%, var(--home-violet) 64%, var(--home-blue) 100%) !important;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--home-hot) 30%, rgba(0,0,0,.28)), 0 0 24px color-mix(in srgb, var(--home-violet) 26%, transparent), inset 0 1px 0 rgba(255,255,255,.26);
}

.content-card__hover-bookmark {
  flex: 0 0 42px;
  width: 42px;
  padding: 0;
}

.content-card__hover-bookmark span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.content-card__hover-action::before,
.content-card__hover-bookmark::before {
  content: "";
  position: absolute;
  inset: -2px;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 50%, rgba(255, 255, 255, 0.46), transparent 18%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.32) 44%, transparent 72%);
  transform: translateX(-110%) skewX(-16deg);
  transition: opacity 160ms ease, transform 420ms ease;
}

.content-card__hover-action i,
.content-card__hover-action span,
.content-card__hover-bookmark i {
  position: relative;
  z-index: 1;
}

.content-card__hover-action--primary,
.content-card__hover-action--primary:hover,
.content-card__hover-action--primary:focus-visible,
.content-card__hover-action--primary i,
.content-card__hover-action--primary span,
.content-card__hover-action--primary:hover i,
.content-card__hover-action--primary:hover span,
.content-card__hover-action--primary:focus-visible i,
.content-card__hover-action--primary:focus-visible span {
  color: #ffffff !important;
  text-shadow: none !important;
}

.content-card__hover-action:hover,
.content-card__hover-action:focus-visible,
.content-card__hover-bookmark:hover,
.content-card__hover-bookmark:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04) saturate(1.02);
  border-color: color-mix(in srgb, var(--home-hot) 72%, rgba(255,255,255,.28));
  box-shadow:
    0 16px 34px color-mix(in srgb, var(--home-hot) 32%, rgba(0,0,0,.22)),
    0 0 30px color-mix(in srgb, var(--home-violet) 30%, transparent),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.content-card__hover-action:hover::before,
.content-card__hover-action:focus-visible::before,
.content-card__hover-bookmark:hover::before,
.content-card__hover-bookmark:focus-visible::before {
  opacity: 1;
  transform: translateX(110%) skewX(-16deg);
}

.content-card__hover-action:active,
.content-card__hover-bookmark:active {
  transform: translateY(0) scale(0.97);
  filter: brightness(1.06) saturate(1.03);
}

.content-card__hover-bookmark.is-active {
  border-color: color-mix(in srgb, var(--home-hot) 60%, rgba(255,255,255,.32));
  background: linear-gradient(135deg, var(--home-violet), var(--home-hot));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--home-violet) 26%, rgba(0,0,0,.26)), inset 0 1px 0 rgba(255,255,255,.26);
}

.content-card__hover-bookmark:disabled {
  cursor: wait;
  opacity: 0.72;
}

.home-section-grid .content-card:hover .content-card__play-btn,
.home-section-grid .content-card:focus-within .content-card__play-btn {
  opacity: 0;
  pointer-events: none;
}

html[data-theme="hard_japan"] .showcase,
html[data-theme="hard_japan"] .home-section-grid,
html[data-theme="dark"] .showcase,
html[data-theme="dark"] .home-section-grid {
  --home-hot: #e11d35;
  --home-violet: #7e1822;
  --home-blue: #d4af37;
  --home-green: #37d67a;
  --home-surface: rgba(18, 12, 14, 0.72);
}

html[data-theme="light_japan"] .showcase,
html[data-theme="light_japan"] .home-section-grid,
html[data-theme="light"] .showcase,
html[data-theme="light"] .home-section-grid {
  --home-hot: #4f7334;
  --home-violet: #8a5b38;
  --home-blue: #b88a42;
  --home-green: #bfe7a9;
  --home-line: rgba(48, 60, 44, 0.18);
  --home-surface: rgba(246, 241, 226, 0.70);
  --home-shadow: 0 26px 74px rgba(38, 48, 40, 0.22);
}

html[data-theme="light_japan"] .slide-readable-overlay,
html[data-theme="light"] .slide-readable-overlay {
  background:
    linear-gradient(90deg, rgba(20, 18, 14, 0.96) 0%, rgba(20, 18, 14, 0.94) 28%, rgba(20, 18, 14, 0.80) 48%, rgba(20, 18, 14, 0.52) 66%, rgba(20, 18, 14, 0.24) 82%, rgba(20, 18, 14, 0.06) 100%),
    linear-gradient(180deg, rgba(20, 18, 14, 0.08) 0%, transparent 52%, rgba(20, 18, 14, 0.22) 100%);
}

@media (min-width: 1750px) {
  .showcase {
    width: min(calc((var(--home-card-track) * 6) + (var(--home-card-gap) * 5)), calc(100% - 56px));
  }
}

@media (min-width: 2400px) {
  .showcase {
    width: min(calc((var(--home-card-track) * 8) + (var(--home-card-gap) * 7)), calc(100% - 56px));
  }
}

html[data-theme="light_japan"] .slide-copy h1,
html[data-theme="light_japan"] .slide-copy p,
html[data-theme="light_japan"] .tag-row a,
html[data-theme="light_japan"] .tag-row span,
html[data-theme="light_japan"] .meta-row a,
html[data-theme="light_japan"] .meta-row span,
html[data-theme="light"] .slide-copy h1,
html[data-theme="light"] .slide-copy p,
html[data-theme="light"] .tag-row a,
html[data-theme="light"] .tag-row span,
html[data-theme="light"] .meta-row a,
html[data-theme="light"] .meta-row span {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .slide-bg,
  .watch-button,
  .hero-bookmark-button {
    transition: none;
  }
}

@media (max-width: 991px) {
  .showcase {
    width: min(100vw - 28px, 760px);
    margin-top: 18px;
  }

  .hero-stack {
    height: clamp(430px, 82vw, 560px);
  }

  .hero-slide {
    transform: none !important;
  }

  .hero-slide:nth-child(2),
  .hero-slide:nth-child(3) {
    opacity: 0;
  }

  .slide-content {
    width: 100%;
    padding: 32px 22px;
  }

  .slide-copy {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .home-section-grid {
    --home-card-size: 220px;
  }

  .content-card__hover-panel {
    display: none;
  }

  .watch-button,
  .hero-bookmark-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
  }
}

/* Compact homepage rails and concept cards */
.showcase {
  margin-bottom: clamp(22px, 2.5vw, 34px);
}

.recent.sec-mar,
.popular.sec-mar,
.recommendations.sec-mar {
  margin-top: clamp(18px, 2.2vw, 30px) !important;
  margin-bottom: clamp(22px, 2.4vw, 34px) !important;
}

.recent.sec-mar + .popular.sec-mar,
.popular.sec-mar + .recommendations.sec-mar {
  margin-top: clamp(10px, 1.4vw, 20px) !important;
}

.home-section-grid {
  --home-card-size: clamp(210px, 13.25vw, 258px);
  position: relative;
  display: block;
  gap: 0;
}

.home-section-grid > .heading {
  display: flex !important;
  align-items: center !important;
  min-height: 44px;
  margin-bottom: 10px !important;
}

.home-section-grid > .heading h2 {
  position: relative;
  margin: 0 !important;
  padding-left: 18px;
  color: var(--text-main, #fff) !important;
  font-size: clamp(22px, 1.55vw, 28px) !important;
  line-height: 1.1;
}

.home-section-grid > .heading h2::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--home-blue), var(--home-violet), var(--home-hot));
  box-shadow: 0 0 14px color-mix(in srgb, var(--home-violet) 42%, transparent);
}

@media (min-width: 768px) {
  .home-section-grid .tv-cards-row {
    display: flex !important;
  }
}

.home-section-grid .tv-cards-row {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  gap: clamp(14px, 1.15vw, 20px);
  padding: 8px 58px 22px 2px;
  scroll-padding-inline: 58px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
}

.home-section-grid .tv-cards-row::-webkit-scrollbar {
  height: 0;
}

.home-section-grid .tv-cards-row.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.home-section-grid .tv-cards-row .content-card {
  flex: 0 0 var(--home-card-size);
  width: var(--home-card-size);
  min-width: var(--home-card-size);
  margin-bottom: 0;
  scroll-snap-align: start;
}

.home-section-grid .content-card {
  border-radius: 16px;
  transition: transform .26s cubic-bezier(.22,1,.36,1), filter .22s ease;
}

.home-section-grid .content-card__poster-wrapper {
  border: 1px solid color-mix(in srgb, var(--home-violet) 42%, rgba(255,255,255,.12));
  border-radius: 16px;
  background: rgba(10, 12, 26, .68);
  box-shadow:
    0 14px 34px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.035) inset,
    0 0 20px color-mix(in srgb, var(--home-violet) 16%, transparent);
}

.home-section-grid .content-card:hover {
  transform: translateY(-4px) scale(1.006);
}

.home-section-grid .content-card:hover .content-card__poster-wrapper,
.home-section-grid .content-card:focus-within .content-card__poster-wrapper {
  border-color: color-mix(in srgb, var(--home-hot) 56%, var(--home-blue) 20%);
  box-shadow:
    0 18px 38px rgba(0,0,0,.36),
    0 0 0 1px color-mix(in srgb, var(--home-hot) 28%, transparent) inset,
    -8px 0 20px color-mix(in srgb, var(--home-hot) 16%, transparent),
    8px 6px 22px color-mix(in srgb, var(--home-violet) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--home-blue) 10%, transparent);
}

.content-card__hover-panel {
  padding: 14px;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(5, 7, 18, 0.12) 0%, rgba(5, 7, 18, 0.70) 46%, rgba(5, 7, 18, 0.96) 100%),
    radial-gradient(circle at 14% 10%, color-mix(in srgb, var(--home-hot) 30%, transparent), transparent 36%),
    radial-gradient(circle at 92% 16%, color-mix(in srgb, var(--home-blue) 20%, transparent), transparent 34%);
}

.content-card__hover-title {
  font-size: clamp(18px, 1.15vw, 22px);
}

.content-card__hover-facts {
  gap: 6px;
}

.content-card__hover-action {
  min-height: 38px;
  border-radius: 11px;
}

.content-card__hover-action--primary {
  background: linear-gradient(135deg, var(--home-hot) 0%, var(--home-violet) 58%, var(--home-blue) 100%) !important;
}

.content-card__hover-bookmark {
  min-height: 38px;
  border-radius: 11px;
}

@media (min-width: 1024px) and (hover: hover) {
  .home-section-grid .tv-cards-row {
    padding-top: 34px;
    padding-bottom: 64px;
  }

  .home-section-grid .content-card:hover,
  .home-section-grid .content-card:focus-within {
    z-index: 30;
  }

  .home-section-grid .content-card:hover .content-card__poster-wrapper,
  .home-section-grid .content-card:focus-within .content-card__poster-wrapper {
    overflow: visible;
  }

  .content-card__hover-panel {
    inset: auto;
    top: 46%;
    left: 50%;
    width: min(540px, calc(100vw - 44px));
    height: min(318px, calc(100vh - 72px));
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(176px, 38%) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--home-hot) 58%, rgba(255,255,255,.18));
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(8, 10, 24, .98) 0%, rgba(12, 12, 28, .96) 50%, rgba(7, 11, 24, .98) 100%);
    box-shadow:
      0 22px 52px rgba(0,0,0,.52),
      0 0 0 1px rgba(255,255,255,.06) inset,
      0 0 26px color-mix(in srgb, var(--home-hot) 20%, transparent),
      0 0 34px color-mix(in srgb, var(--home-blue) 10%, transparent);
    transform: translate(-50%, -50%) scale(.96);
  }

  .home-section-grid .tv-cards-row .content-card:nth-child(-n+2) .content-card__hover-panel {
    left: 0;
    transform: translate(0, -50%) scale(.96);
  }

  .home-section-grid .tv-cards-row .content-card:nth-last-child(-n+2) .content-card__hover-panel {
    right: 0;
    left: auto;
    transform: translate(0, -50%) scale(.96);
  }

  .home-section-grid .content-card:hover .content-card__hover-panel,
  .home-section-grid .content-card:focus-within .content-card__hover-panel {
    transform: translate(-50%, -50%) scale(1);
  }

  .home-section-grid .tv-cards-row .content-card:nth-child(-n+2):hover .content-card__hover-panel,
  .home-section-grid .tv-cards-row .content-card:nth-child(-n+2):focus-within .content-card__hover-panel,
  .home-section-grid .tv-cards-row .content-card:nth-last-child(-n+2):hover .content-card__hover-panel,
  .home-section-grid .tv-cards-row .content-card:nth-last-child(-n+2):focus-within .content-card__hover-panel {
    transform: translate(0, -50%) scale(1);
  }

  .content-card__hover-media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.32);
  }

  .content-card__hover-media img {
    width: 100%;
    height: 100%;
    min-height: 302px;
    object-fit: cover;
    transform: scale(1.01) !important;
    filter: none !important;
  }

  .content-card__hover-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(4,6,14,.06) 0%, rgba(4,6,14,.24) 48%, rgba(4,6,14,.72) 100%),
      radial-gradient(circle at 16% 14%, color-mix(in srgb, var(--home-hot) 34%, transparent), transparent 38%);
    pointer-events: none;
  }

  .content-card__hover-top {
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 2;
    justify-content: space-between;
  }

  .content-card__hover-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff2f58, #9d1230);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 10px 22px rgba(255,47,88,.28);
  }

  .content-card__hover-main {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 14px;
    overflow: hidden;
  }

  .content-card__hover-panel--resume .content-card__hover-main {
    gap: 10px;
  }

  .content-card__hover-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  .content-card__hover-title {
    font-size: clamp(18px, 1.05vw, 22px);
    line-height: 1.08;
  }

  .content-card__hover-title::after {
    display: none;
  }

  .content-card__hover-original {
    margin-top: 5px;
    color: rgba(255,255,255,.66);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
  }

  .content-card__hover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .content-card__hover-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.88);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
  }

  .content-card__hover-description {
    display: -webkit-box;
    min-height: 19px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.38;
  }

  .content-card__hover-facts {
    gap: 7px;
    padding: 0;
    border-bottom: 0;
  }

  .content-card__hover-chip {
    min-height: 27px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 11px;
    box-shadow: none;
  }

  .content-card__hover-chip i {
    margin-right: 6px;
    color: rgba(255,255,255,.72);
  }

  .content-card__hover-chip--status {
    border-color: color-mix(in srgb, var(--home-hot) 44%, rgba(255,255,255,.18));
    background: color-mix(in srgb, var(--home-hot) 20%, rgba(255,255,255,.10));
  }

  .content-card__hover-watchline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: auto;
    padding-top: 2px;
  }

  .content-card__hover-panel--resume .content-card__hover-watchline {
    margin-top: 4px;
  }

  .content-card__hover-watchline:empty {
    display: none;
  }

  .content-card__hover-resume,
  .content-card__hover-next {
    display: grid;
    gap: 5px;
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  }

  .content-card__hover-resume {
    grid-column: 1 / -1;
    border-color: color-mix(in srgb, var(--home-hot) 40%, rgba(255,255,255,.13));
    background: linear-gradient(135deg, color-mix(in srgb, var(--home-hot) 16%, rgba(255,255,255,.07)), rgba(255,255,255,.055));
  }

  .content-card__hover-next {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    line-height: 1.2;
  }

  .content-card__hover-next .content-card__hover-kicker {
    grid-column: 1 / -1;
  }

  .content-card__hover-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.62);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
  }

  .content-card__hover-kicker i {
    color: color-mix(in srgb, var(--home-hot) 70%, #fff);
  }

  .content-card__hover-resume strong,
  .content-card__hover-next strong {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content-card__hover-next > span {
    overflow: hidden;
    color: rgba(255,255,255,.68);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content-card__hover-progress {
    height: 4px;
    border: 0;
    background: rgba(255,255,255,.13);
  }

  .content-card__hover-actions {
    gap: 8px;
    margin-top: 2px;
  }

  .content-card__hover-panel--resume .content-card__hover-actions {
    margin-top: auto;
  }

  .content-card__hover-action,
  .content-card__hover-bookmark {
    min-height: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .content-card__hover-action--primary {
    flex: 1 1 auto;
  }

  .content-card__hover-bookmark {
    flex: 0 0 42px;
    width: 42px;
  }
}

@media (min-width: 1024px) and (max-width: 1220px) and (hover: hover) {
  .content-card__hover-panel {
    width: min(540px, calc(100vw - 36px));
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .content-card__hover-main {
    padding: 18px;
  }

  .content-card__hover-watchline {
    grid-template-columns: 1fr;
  }

  .content-card__hover-description {
    min-height: 39px;
    -webkit-line-clamp: 2;
  }
}

.home-rail-nav {
  pointer-events: none;
}

.home-rail-btn {
  position: absolute;
  top: calc(50% + 20px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--home-violet) 48%, rgba(255,255,255,.16));
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.14), transparent 40%),
    rgba(11, 13, 28, .70);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.32), 0 0 18px color-mix(in srgb, var(--home-violet) 24%, transparent);
  pointer-events: auto;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* Concept neon rail under hero */
.home-category-rail {
  display: flex !important;
  width: min(1640px, calc(100% - 104px));
  margin: -22px auto 28px;
  position: relative;
  z-index: 8;
  min-height: 58px;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--home-violet) 42%, rgba(255,255,255,.12));
  border-radius: 12px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--home-hot) 22%, rgba(10,12,28,.82)), rgba(12, 15, 32, .84) 42%, color-mix(in srgb, var(--home-violet) 18%, rgba(12,15,32,.84)));
  box-shadow:
    0 18px 46px rgba(0,0,0,.32),
    0 0 26px color-mix(in srgb, var(--home-violet) 18%, transparent),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 991.98px) {
  .home-category-rail {
    display: none !important;
  }
}

.home-category-rail__item {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  color: rgba(255,255,255,.72) !important;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none !important;
  border-right: 1px solid rgba(255,255,255,.09);
  transition: color 180ms ease, background 220ms ease, box-shadow 220ms ease;
}

.home-category-rail__item:last-child {
  border-right: 0;
}

.home-category-rail__item i {
  color: color-mix(in srgb, var(--home-violet) 78%, #fff);
  font-size: 18px;
}

.home-category-rail__item:hover,
.home-category-rail__item.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--home-hot) 38%, transparent), color-mix(in srgb, var(--home-violet) 18%, transparent));
  box-shadow: inset 0 -2px 0 var(--home-hot), 0 0 22px color-mix(in srgb, var(--home-hot) 22%, transparent);
}

.home-rail-btn--prev {
  left: -4px;
}

.home-rail-btn--next {
  right: -4px;
}

.home-rail-btn:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: color-mix(in srgb, var(--home-hot) 58%, var(--home-blue) 20%);
  box-shadow: 0 16px 38px rgba(0,0,0,.38), 0 0 24px color-mix(in srgb, var(--home-hot) 26%, transparent);
}

html[data-theme="neon"] .showcase {
  --home-hot: #ff2f84;
  --home-violet: #8b5cff;
  --home-blue: #26d8ff;
}

html[data-theme="hard_japan"] .showcase,
html[data-theme="dark"] .showcase {
  --home-hot: #ff1738;
  --home-violet: #8e0018;
  --home-blue: #ffb238;
}

/* 2026-05-31: light themes need dark text on light controls */
html[data-theme="light_japan"] .home-category-rail,
html[data-theme="light"] .home-category-rail {
  border-color: rgba(86, 97, 66, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(246, 243, 234, 0.90) 45%, rgba(255, 255, 255, 0.92));
  box-shadow:
    0 18px 42px rgba(67, 76, 54, 0.12),
    inset 0 1px 0 rgba(255,255,255,.88);
}

html[data-theme="light_japan"] .home-category-rail__item,
html[data-theme="light"] .home-category-rail__item {
  color: rgba(23, 24, 20, 0.76) !important;
  border-right-color: rgba(86, 97, 66, 0.16);
  text-shadow: none !important;
}

html[data-theme="light_japan"] .home-category-rail__item i,
html[data-theme="light"] .home-category-rail__item i {
  color: #566142 !important;
}

html[data-theme="light_japan"] .home-category-rail__item:hover,
html[data-theme="light_japan"] .home-category-rail__item.is-active,
html[data-theme="light"] .home-category-rail__item:hover,
html[data-theme="light"] .home-category-rail__item.is-active {
  color: #171814 !important;
  background: linear-gradient(135deg, rgba(86, 97, 66, 0.14), rgba(184, 138, 66, 0.08));
  box-shadow: inset 0 -2px 0 #566142, 0 0 18px rgba(86, 97, 66, 0.12);
}

html[data-theme="light_japan"] .home-category-rail__item:hover i,
html[data-theme="light_japan"] .home-category-rail__item.is-active i,
html[data-theme="light"] .home-category-rail__item:hover i,
html[data-theme="light"] .home-category-rail__item.is-active i {
  color: #171814 !important;
}

/* 2026-05-31: softer animated category rail */
.home-category-rail {
  min-height: 64px;
  align-items: center;
  padding: 7px;
  border-radius: 20px;
  overflow: visible;
  isolation: isolate;
}

.home-category-rail__item {
  position: relative;
  min-height: 48px;
  border: 0 !important;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 180ms ease,
    transform 180ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.home-category-rail__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--home-hot) 44%, transparent), color-mix(in srgb, var(--home-violet) 30%, transparent) 54%, color-mix(in srgb, var(--home-blue) 28%, transparent));
  opacity: 0;
  transition: opacity 220ms ease;
}

.home-category-rail__item::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: calc(16px - 1px);
  background: rgba(8, 12, 27, 0.58);
  opacity: 0;
  transition: opacity 220ms ease;
}

.home-category-rail__item:hover,
.home-category-rail__item.is-active {
  transform: translateY(-1px);
  box-shadow:
    0 12px 30px color-mix(in srgb, var(--home-hot) 20%, transparent),
    0 0 22px color-mix(in srgb, var(--home-violet) 18%, transparent) !important;
}

.home-category-rail__item:hover::before,
.home-category-rail__item.is-active::before,
.home-category-rail__item:hover::after,
.home-category-rail__item.is-active::after {
  opacity: 1;
}

.home-category-rail__item:hover i,
.home-category-rail__item.is-active i {
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--home-hot) 44%, transparent));
}

html[data-theme="light_japan"] .home-category-rail__item::after,
html[data-theme="light"] .home-category-rail__item::after {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light_japan"] .home-category-rail__item:hover,
html[data-theme="light_japan"] .home-category-rail__item.is-active,
html[data-theme="light"] .home-category-rail__item:hover,
html[data-theme="light"] .home-category-rail__item.is-active {
  box-shadow:
    0 12px 28px rgba(67, 76, 54, 0.16),
    0 0 0 1px rgba(86, 97, 66, 0.14) !important;
}

/* 2026-05-31: visible dark/neon rail buttons and home status filtering */
.home-category-rail__item {
  border: 1px solid color-mix(in srgb, var(--home-violet) 46%, rgba(255,255,255,.16)) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    rgba(8, 12, 27, 0.54) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 20px rgba(0,0,0,.16) !important;
}

.home-category-rail__item:hover,
.home-category-rail__item.is-active {
  border-color: color-mix(in srgb, var(--home-hot) 76%, var(--home-blue) 18%) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--home-hot) 30%, rgba(8,12,27,.72)), color-mix(in srgb, var(--home-violet) 24%, rgba(8,12,27,.72))) !important;
}

.home-category-rail__item.is-active {
  color: #ffffff !important;
}

.home-category-rail__item.is-active i {
  color: #ffffff !important;
}

.content-card.is-hidden-by-home-filter,
.content-card.is-hidden-by-category-filter,
.home-schedule__item.is-hidden-by-category-filter,
section.is-empty-by-home-filter {
  display: none !important;
}

.home-section-grid .content-card__ongoing-badge {
  top: 10px !important;
  right: 10px !important;
  display: flex !important;
  max-width: calc(100% - 20px) !important;
  pointer-events: none;
}

.home-section-grid .content-card__ongoing-badge .ongoing-next {
  display: none !important;
}

.home-section-grid .content-card__ongoing-badge .ongoing-current {
  display: inline-flex !important;
  min-height: 24px !important;
  align-items: center !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: rgba(255,255,255,.92) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.88), 0 0 10px rgba(0,0,0,.55) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  cursor: default !important;
}

.home-section-grid .content-card__ongoing-badge .ongoing-current::after {
  display: none !important;
}

html[data-theme="light_japan"] .home-category-rail__item,
html[data-theme="light"] .home-category-rail__item {
  border-color: rgba(86, 97, 66, 0.20) !important;
  background: rgba(255,255,255,.66) !important;
  box-shadow: 0 8px 20px rgba(67, 76, 54, 0.08) !important;
}

html[data-theme="light_japan"] .showcase,
html[data-theme="light"] .showcase {
  --home-hot: #d83f73;
  --home-violet: #6b5cff;
  --home-blue: #24b9d6;
}

html[data-theme="light_japan"] .home-rail-btn,
html[data-theme="light"] .home-rail-btn {
  background: rgba(255,255,255,.78);
  color: #151823;
  box-shadow: 0 14px 30px rgba(31,34,48,.12), 0 0 18px color-mix(in srgb, var(--home-violet) 12%, transparent);
}

/* 2026-05-31: stronger thematic outlines for the hero quick filters */
.home-category-rail__item {
  border: 1px solid color-mix(in srgb, var(--home-blue) 34%, var(--home-violet) 42%) !important;
  outline: 1px solid color-mix(in srgb, var(--home-hot) 18%, transparent);
  outline-offset: -3px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--home-blue) 18%, transparent),
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 22px rgba(0,0,0,.18),
    0 0 18px color-mix(in srgb, var(--home-violet) 14%, transparent) !important;
}

.home-category-rail__item::before {
  opacity: .24;
}

.home-category-rail__item:hover,
.home-category-rail__item.is-active {
  border-color: color-mix(in srgb, var(--home-hot) 72%, var(--home-blue) 26%) !important;
  outline-color: color-mix(in srgb, var(--home-blue) 34%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--home-hot) 42%, transparent),
    inset 0 1px 0 rgba(255,255,255,.18),
    0 12px 30px color-mix(in srgb, var(--home-hot) 22%, transparent),
    0 0 28px color-mix(in srgb, var(--home-violet) 24%, transparent),
    0 0 42px color-mix(in srgb, var(--home-blue) 12%, transparent) !important;
}

html[data-theme="hard_japan"] .home-category-rail__item {
  border-color: color-mix(in srgb, #ff1738 42%, #ffb238 16%) !important;
  outline-color: rgba(255, 178, 56, .12);
}

html[data-theme="neon"] .home-category-rail__item {
  border-color: color-mix(in srgb, #8b5cff 54%, #26d8ff 22%) !important;
  outline-color: rgba(38, 216, 255, .16);
}

html[data-theme="light_japan"] .home-category-rail__item,
html[data-theme="light"] .home-category-rail__item {
  border-color: rgba(86, 97, 66, .34) !important;
  outline-color: rgba(184, 138, 66, .16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.64),
    0 8px 20px rgba(67, 76, 54, .10),
    0 0 18px rgba(86, 97, 66, .08) !important;
}

html[data-theme="light_japan"] .home-category-rail__item:hover,
html[data-theme="light_japan"] .home-category-rail__item.is-active,
html[data-theme="light"] .home-category-rail__item:hover,
html[data-theme="light"] .home-category-rail__item.is-active {
  border-color: #566142 !important;
  outline-color: rgba(86, 97, 66, .20);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.78),
    0 12px 28px rgba(67, 76, 54, .18),
    0 0 22px rgba(86, 97, 66, .12) !important;
}

html[data-theme="neon"] .home-category-rail__item {
  box-shadow:
    inset 0 0 0 1px rgba(38, 216, 255, .16),
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 20px rgba(0,0,0,.22),
    0 0 16px rgba(139, 92, 255, .18) !important;
}

html[data-theme="neon"] .home-category-rail__item:hover,
html[data-theme="neon"] .home-category-rail__item.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 12px 30px rgba(255, 47, 132, .24),
    0 0 28px rgba(139, 92, 255, .34),
    0 0 42px rgba(38, 216, 255, .16) !important;
}

html[data-theme="hard_japan"] .home-category-rail__item,
html[data-theme="dark"] .home-category-rail__item {
  box-shadow:
    inset 0 0 0 1px rgba(255, 178, 56, .12),
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 20px rgba(0,0,0,.22),
    0 0 16px rgba(255, 23, 56, .16) !important;
}

html[data-theme="hard_japan"] .home-category-rail__item:hover,
html[data-theme="hard_japan"] .home-category-rail__item.is-active,
html[data-theme="dark"] .home-category-rail__item:hover,
html[data-theme="dark"] .home-category-rail__item.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 12px 30px rgba(255, 23, 56, .26),
    0 0 28px rgba(255, 23, 56, .30),
    0 0 38px rgba(255, 178, 56, .14) !important;
}

/* 2026-05-31: align section headers, buttons and arrows to the real card track */
.home-section-grid {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

.home-section-grid > .heading {
  width: 100% !important;
}

.home-section-grid .catalog-link-btn {
  margin-left: auto !important;
}

.home-section-grid .tv-cards-row {
  width: 100% !important;
  padding-right: 0 !important;
  scroll-padding-inline: 0 !important;
}

.home-rail-btn--next {
  right: -22px;
}

.home-rail-btn--prev {
  left: -22px;
}

@media (max-width: 767px) {
  .home-section-grid .tv-cards-row {
    padding-right: 18px;
    scroll-padding-inline: 18px;
  }
  .home-rail-nav {
    display: none;
  }
}

/* Stable hero copy layout: title varies, lower copy/actions stay anchored. */
.slide-content {
  grid-template-rows: minmax(30px, auto) minmax(130px, 1fr) auto auto !important;
  gap: clamp(12px, 1.35vw, 20px) !important;
  align-content: stretch !important;
}

.slide-copy {
  align-self: center !important;
  display: flex;
  min-height: 0 !important;
  width: min(700px, 100%) !important;
  max-width: 700px !important;
  align-items: center;
}

.slide-copy h1 {
  margin: 0 !important;
  max-width: 700px !important;
  font-size: clamp(34px, 3.15vw, 56px) !important;
  line-height: 1.04 !important;
  max-height: 3.16em !important;
  -webkit-line-clamp: 3 !important;
}

.slide-lower {
  align-self: end;
  display: grid;
  width: min(610px, 100%);
  gap: 14px;
}

.slide-lower .meta-row {
  min-height: 30px;
  margin: 0 !important;
}

.slide-lower p {
  max-width: 600px;
  min-height: 5em;
  max-height: 5em;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 16px;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hero-actions {
  align-self: end;
}

@media (max-width: 991px) {
  .slide-content {
    grid-template-rows: minmax(30px, auto) minmax(120px, 1fr) auto auto !important;
  }

  .slide-copy h1 {
    font-size: clamp(30px, 7vw, 48px) !important;
  }
}

@media (max-width: 576px) {
  .slide-content {
    grid-template-rows: minmax(28px, auto) minmax(112px, 1fr) auto auto !important;
  }

  .slide-copy h1 {
    font-size: clamp(28px, 8vw, 42px) !important;
  }

  .slide-lower p {
    font-size: 14px;
    line-height: 1.45;
    min-height: 4.35em;
    max-height: 4.35em;
  }
}

html[data-theme="light_japan"] .slide-lower p,
html[data-theme="light"] .slide-lower p {
  color: rgba(255, 255, 255, 0.78) !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

/* Integrated hero quick rail: compact controls attached to the showcase. */
.home-category-rail {
  width: min(1220px, calc(100% - 128px)) !important;
  min-height: 46px !important;
  margin: -58px auto 34px !important;
  padding: 4px !important;
  border: 1px solid color-mix(in srgb, var(--home-blue) 26%, rgba(255,255,255,.13)) !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.018)),
    color-mix(in srgb, rgba(8, 10, 24, .76) 84%, var(--home-violet) 16%) !important;
  box-shadow:
    0 16px 42px rgba(0,0,0,.34),
    0 -8px 30px color-mix(in srgb, var(--home-violet) 16%, transparent),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.home-category-rail::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--home-blue) 62%, #fff 10%), color-mix(in srgb, var(--home-hot) 50%, transparent), transparent);
  opacity: .74;
  pointer-events: none;
}

.home-category-rail__item {
  min-height: 38px !important;
  padding: 0 14px !important;
  gap: 8px !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: rgba(255,255,255,.68) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
  transform: none !important;
}

.home-category-rail__item + .home-category-rail__item {
  box-shadow: -1px 0 0 rgba(255,255,255,.075) !important;
}

.home-category-rail__item::before {
  opacity: 0 !important;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--home-blue) 24%, transparent), transparent 58%),
    linear-gradient(135deg, color-mix(in srgb, var(--home-hot) 22%, transparent), color-mix(in srgb, var(--home-violet) 20%, transparent)) !important;
}

.home-category-rail__item::after {
  inset: auto 12px 4px !important;
  z-index: 1 !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--home-blue), var(--home-violet), var(--home-hot)) !important;
  opacity: 0 !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--home-violet) 44%, transparent) !important;
}

.home-category-rail__item i {
  color: color-mix(in srgb, var(--home-blue) 54%, #fff 26%) !important;
  font-size: 14px !important;
  filter: none !important;
}

.home-category-rail__item:hover,
.home-category-rail__item.is-active {
  color: #fff !important;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--home-blue) 18%, transparent), transparent 62%),
    color-mix(in srgb, var(--home-violet) 18%, transparent) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.home-category-rail__item:hover::before,
.home-category-rail__item.is-active::before,
.home-category-rail__item:hover::after,
.home-category-rail__item.is-active::after {
  opacity: 1 !important;
}

.home-category-rail__item:hover i,
.home-category-rail__item.is-active i {
  color: #fff !important;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--home-blue) 38%, transparent)) !important;
}

html[data-theme="light_japan"] .home-category-rail,
html[data-theme="light"] .home-category-rail {
  border-color: rgba(107, 92, 255, .16) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.64)),
    rgba(255,255,255,.76) !important;
  box-shadow:
    0 16px 36px rgba(31,34,48,.11),
    0 -8px 24px rgba(107,92,255,.09),
    inset 0 1px 0 rgba(255,255,255,.86) !important;
}

html[data-theme="light_japan"] .home-category-rail__item,
html[data-theme="light"] .home-category-rail__item {
  color: rgba(21, 24, 35, .64) !important;
  background: transparent !important;
}

html[data-theme="light_japan"] .home-category-rail__item + .home-category-rail__item,
html[data-theme="light"] .home-category-rail__item + .home-category-rail__item {
  box-shadow: -1px 0 0 rgba(21, 24, 35, .08) !important;
}

html[data-theme="light_japan"] .home-category-rail__item i,
html[data-theme="light"] .home-category-rail__item i {
  color: color-mix(in srgb, var(--home-violet) 64%, #151823 24%) !important;
}

html[data-theme="light_japan"] .home-category-rail__item:hover,
html[data-theme="light_japan"] .home-category-rail__item.is-active,
html[data-theme="light"] .home-category-rail__item:hover,
html[data-theme="light"] .home-category-rail__item.is-active {
  color: #151823 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(36,185,214,.16), transparent 62%),
    rgba(107,92,255,.075) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74) !important;
}

@media (max-width: 1240px) and (min-width: 992px) {
  .home-category-rail {
    width: min(1060px, calc(100% - 72px)) !important;
  }

  .home-category-rail__item {
    padding: 0 10px !important;
    font-size: 12px !important;
  }
}

/* Refined pill-tab treatment: one capsule, lightweight labels inside. */
.home-category-rail {
  width: fit-content !important;
  max-width: calc(100% - 96px) !important;
  min-height: 42px !important;
  gap: 3px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px !important;
  border-radius: 999px !important;
}

.home-category-rail__item {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 16px !important;
  gap: 7px !important;
  border-radius: 999px !important;
  color: rgba(255,255,255,.58) !important;
  font-size: 12px !important;
  letter-spacing: .01em !important;
}

.home-category-rail__item + .home-category-rail__item {
  box-shadow: none !important;
}

.home-category-rail__item::before {
  inset: 0 !important;
  z-index: -1 !important;
  border-radius: inherit !important;
  background:
    radial-gradient(circle at 28% 8%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--home-blue) 28%, transparent), color-mix(in srgb, var(--home-violet) 30%, transparent) 54%, color-mix(in srgb, var(--home-hot) 24%, transparent)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 10px 24px color-mix(in srgb, var(--home-violet) 20%, transparent) !important;
}

.home-category-rail__item::after {
  inset: auto calc(50% - 9px) 3px !important;
  width: 18px !important;
  height: 2px !important;
  background: color-mix(in srgb, var(--home-blue) 62%, #fff 18%) !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--home-blue) 42%, transparent) !important;
}

.home-category-rail__item i {
  width: 14px;
  font-size: 12px !important;
  text-align: center;
  color: color-mix(in srgb, var(--home-blue) 46%, rgba(255,255,255,.72)) !important;
}

.home-category-rail__item:hover,
.home-category-rail__item.is-active {
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
}

.home-category-rail__item.is-active {
  padding-inline: 18px !important;
}

html[data-theme="light_japan"] .home-category-rail__item,
html[data-theme="light"] .home-category-rail__item {
  color: rgba(21, 24, 35, .58) !important;
}

html[data-theme="light_japan"] .home-category-rail__item:hover,
html[data-theme="light_japan"] .home-category-rail__item.is-active,
html[data-theme="light"] .home-category-rail__item:hover,
html[data-theme="light"] .home-category-rail__item.is-active {
  background: transparent !important;
  color: #151823 !important;
}

html[data-theme="light_japan"] .home-category-rail__item::before,
html[data-theme="light"] .home-category-rail__item::before {
  background:
    radial-gradient(circle at 28% 8%, rgba(255,255,255,.72), transparent 34%),
    linear-gradient(135deg, rgba(36,185,214,.14), rgba(107,92,255,.12) 54%, rgba(216,63,115,.10)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    0 10px 22px rgba(31,34,48,.10) !important;
}

@media (max-width: 1240px) and (min-width: 992px) {
  .home-category-rail {
    max-width: calc(100% - 56px) !important;
  }

  .home-category-rail__item {
    padding-inline: 12px !important;
    font-size: 11px !important;
  }
}

/* Rail groups: status filters | catalog pages. Slightly larger final scale. */
.home-category-rail {
  min-height: 50px !important;
  gap: 5px !important;
  padding: 6px !important;
}

.home-category-rail__item {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 19px !important;
  gap: 8px !important;
  font-size: 13px !important;
}

.home-category-rail__item.is-active {
  padding-inline: 21px !important;
}

.home-category-rail__item i {
  width: 15px;
  font-size: 13px !important;
}

.home-category-rail__divider {
  flex: 0 0 auto;
  width: 2px;
  height: 28px;
  margin: 0 9px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--home-blue) 72%, rgba(255,255,255,.36)), color-mix(in srgb, var(--home-hot) 58%, rgba(255,255,255,.24)), transparent);
  box-shadow:
    0 0 10px color-mix(in srgb, var(--home-blue) 30%, transparent),
    0 0 18px color-mix(in srgb, var(--home-violet) 28%, transparent);
}

html[data-theme="light_japan"] .home-category-rail__divider,
html[data-theme="light"] .home-category-rail__divider {
  background:
    linear-gradient(180deg, transparent, rgba(107,92,255,.30), rgba(216,63,115,.22), transparent);
  box-shadow: 0 0 12px rgba(107,92,255,.12);
}

@media (max-width: 1240px) and (min-width: 992px) {
  .home-category-rail__item {
    padding-inline: 14px !important;
    font-size: 12px !important;
  }

  .home-category-rail__item.is-active {
    padding-inline: 16px !important;
  }

  .home-category-rail__divider {
    margin-inline: 4px;
  }
}

/* Tablet/compact desktop guard: keep hero actions clear of the filter rail. */
@media (max-width: 1500px) and (min-width: 992px) {
  .showcase {
    margin-bottom: 18px !important;
  }

  .hero-stack {
    height: clamp(500px, 38vw, 580px) !important;
  }

  .slide-content {
    padding-bottom: clamp(84px, 7vw, 112px) !important;
  }

  .hero-actions {
    transform: translateY(-18px) !important;
  }

  .hero-dots {
    bottom: 52px !important;
  }

  .home-category-rail {
    margin: 8px auto 30px !important;
  }
}

/* Hero banner final: a single banner layer with a smooth readable fade over it. */
.hero-slide .slide-bg--banner {
  object-fit: cover !important;
  object-position: right center !important;
  left: auto !important;
  right: 0 !important;
  width: min(78%, 1260px) !important;
  filter: saturate(1.12) contrast(1.04) brightness(1.02) !important;
  -webkit-mask-image:
    linear-gradient(90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 10%,
      rgba(0, 0, 0, 0.72) 24%,
      #000 38%,
      #000 100%) !important;
  mask-image:
    linear-gradient(90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 10%,
      rgba(0, 0, 0, 0.72) 24%,
      #000 38%,
      #000 100%) !important;
}

.hero-slide .slide-bg-fill--banner {
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 0.74 !important;
  filter: blur(28px) saturate(1.16) contrast(1.02) brightness(0.58) !important;
  transform: scale(1.12) !important;
}

.hero-slide .slide-readable-overlay,
html[data-theme="light"] .hero-slide .slide-readable-overlay,
html[data-theme="light_japan"] .hero-slide .slide-readable-overlay {
  background:
    linear-gradient(90deg,
      rgba(3, 5, 14, 0.96) 0%,
      rgba(3, 5, 14, 0.92) 20%,
      rgba(3, 5, 14, 0.78) 34%,
      rgba(3, 5, 14, 0.50) 49%,
      rgba(3, 5, 14, 0.20) 66%,
      rgba(3, 5, 14, 0.05) 84%,
      rgba(3, 5, 14, 0.00) 100%),
    linear-gradient(180deg, rgba(3, 5, 14, 0.02) 0%, rgba(3, 5, 14, 0) 60%, rgba(3, 5, 14, 0.12) 100%) !important;
}

@media (max-width: 900px) {
  .hero-slide .slide-bg--banner {
    right: 0 !important;
    width: 100% !important;
    object-position: center center !important;
  }
}

/* Home blog: compact editorial cards, theme-aware. */
.home-blog {
  margin-top: 28px !important;
  padding-bottom: 6px;
}

.showcase,
.hero-stack,
.hero-slide {
  border-radius: clamp(18px, 1.7vw, 28px) !important;
  overflow: hidden !important;
}

.slide-background,
.slide-bg,
.slide-bg-fill {
  border-radius: inherit !important;
}

.home-blog__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px !important;
}

.home-blog__title {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--home-heading, rgba(255,255,255,.96));
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-blog__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--home-hot, #e31b4d), var(--home-gold, #d6b25e));
  box-shadow: 0 0 16px color-mix(in srgb, var(--home-hot, #e31b4d) 42%, transparent);
}

.home-blog__grid {
  row-gap: 20px;
}

.home-blog__col {
  margin-bottom: 0 !important;
}

.home-blog.blog.style-1 a.home-blog-card {
  height: 100%;
  min-height: 312px;
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--home-panel, #121827) 70%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--home-line, rgba(255,255,255,.12)) 80%, transparent) !important;
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
  transform: translateZ(0);
}

.home-blog.blog.style-1 a.home-blog-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--home-hot, #e31b4d) 44%, var(--home-line, rgba(255,255,255,.18))) !important;
  box-shadow: 0 24px 50px rgba(0,0,0,.34), 0 0 24px color-mix(in srgb, var(--home-hot, #e31b4d) 16%, transparent);
}

.home-blog.blog.style-1 a.home-blog-card .img-block {
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 0;
  background: rgba(255,255,255,.04);
}

.home-blog.blog.style-1 a.home-blog-card .img-block img {
  height: 100%;
  object-fit: cover;
}

.home-blog.blog.style-1 a.home-blog-card .action-overlay {
  background:
    linear-gradient(180deg, rgba(2,4,12,0) 36%, rgba(2,4,12,.76) 100%),
    linear-gradient(90deg, rgba(2,4,12,.10), rgba(2,4,12,0));
}

.home-blog.blog.style-1 a.home-blog-card .action-overlay-link {
  left: 12px;
  right: auto;
  bottom: 12px;
  top: auto;
}

.home-blog.blog.style-1 a.home-blog-card .btn-tag {
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--home-hot, #e31b4d) 82%, rgba(0,0,0,.18));
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-blog.blog.style-1 a.home-blog-card .detail {
  min-height: 132px;
  padding: 15px 16px 17px;
  background: transparent !important;
}

.home-blog-card__body {
  width: 100%;
}

.home-blog-card__meta,
.home-blog-card__date {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--home-muted, rgba(255,255,255,.62)) !important;
  font-size: 12px;
  font-weight: 700;
}

.home-blog-card__date i {
  color: color-mix(in srgb, var(--home-gold, #d6b25e) 76%, var(--home-hot, #e31b4d));
}

.home-blog.blog.style-1 a.home-blog-card h4 {
  margin: 9px 0 0;
  color: var(--home-heading, rgba(255,255,255,.95)) !important;
  font-size: 17px;
  line-height: 1.32;
  font-weight: 900;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-blog.blog.style-1 a.home-blog-card:hover h4 {
  color: color-mix(in srgb, var(--home-gold, #d6b25e) 72%, #fff) !important;
}

html[data-theme="neon"] .home-blog.blog.style-1 a.home-blog-card:hover h4 {
  color: color-mix(in srgb, var(--home-blue, #24b9d6) 70%, #fff) !important;
}

html[data-theme="light_japan"] .home-blog.blog.style-1 a.home-blog-card,
html[data-theme="light"] .home-blog.blog.style-1 a.home-blog-card {
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(26,34,48,.12) !important;
  box-shadow: 0 14px 32px rgba(28,34,48,.10);
}

html[data-theme="light_japan"] .home-blog.blog.style-1 a.home-blog-card:hover,
html[data-theme="light"] .home-blog.blog.style-1 a.home-blog-card:hover {
  box-shadow: 0 20px 44px rgba(28,34,48,.16);
}

html[data-theme="light_japan"] .home-blog-card__meta,
html[data-theme="light_japan"] .home-blog-card__date,
html[data-theme="light"] .home-blog-card__meta,
html[data-theme="light"] .home-blog-card__date {
  color: rgba(39,50,68,.62) !important;
}

@media (max-width: 767px) {
  .home-blog__heading {
    align-items: flex-start;
  }

  .home-blog__title {
    font-size: 22px;
  }

  .home-blog.blog.style-1 a.home-blog-card {
    min-height: 286px;
  }
}

/* Continue watching drawer: desktop hero companion. */
.home-continue {
  position: absolute;
  z-index: 28;
  top: 50%;
  right: 16px;
  width: min(440px, calc(100% - 40px));
  transform: translate(calc(100% + 16px), -50%);
  transition: transform 260ms ease;
  pointer-events: none;
}

.home-continue.is-open {
  transform: translate(0, -50%);
}

.home-continue__tab {
  position: absolute;
  left: 0;
  top: 50%;
  width: 52px;
  min-height: 232px;
  transform: translate(-100%, -50%);
  display: grid;
  grid-template-rows: 26px 1fr 26px;
  align-items: center;
  justify-items: center;
  gap: 12px;
  padding: 16px 8px;
  border: 1px solid color-mix(in srgb, var(--home-hot, #e31b4d) 54%, rgba(255,255,255,.18));
  border-right: 0;
  border-radius: 20px 0 0 20px;
  background:
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--home-hot, #e31b4d) 24%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
    color-mix(in srgb, var(--home-panel, #101827) 92%, #0b0710);
  color: #fff;
  box-shadow:
    -12px 18px 40px rgba(0,0,0,.30),
    0 0 24px color-mix(in srgb, var(--home-hot, #e31b4d) 24%, transparent),
    inset 0 1px 0 rgba(255,255,255,.10);
  pointer-events: auto;
}

.home-continue__tab span {
  display: block;
  min-width: 0;
  overflow: hidden;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0;
}

.home-continue__tab i:first-child {
  display: inline-block;
  color: color-mix(in srgb, var(--home-hot, #e31b4d) 72%, #fff);
}

.home-continue__tab i:last-child {
  color: color-mix(in srgb, var(--home-hot, #e31b4d) 72%, #fff);
  transition: transform 200ms ease;
}

.home-continue.is-open .home-continue__tab i:last-child {
  transform: rotate(180deg);
}

.home-continue__panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  max-height: min(68vh, 620px);
  border: 1px solid color-mix(in srgb, var(--home-hot, #e31b4d) 34%, rgba(255,255,255,.15));
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--home-hot, #e31b4d) 18%, transparent), transparent 34%),
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--home-violet, #6b5cff) 12%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.018)),
    color-mix(in srgb, var(--home-panel, #101827) 94%, #07040a);
  box-shadow: 0 30px 80px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  pointer-events: auto;
}

.home-continue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
}

.home-continue__head span {
  display: block;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--home-hot, #e31b4d) 58%, #fff);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-continue__head strong {
  display: block;
  color: var(--home-heading, #fff);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.home-continue__close,
.home-continue__controls button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--home-line, rgba(255,255,255,.14)) 88%, transparent);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: var(--home-heading, #fff);
}

.home-continue__viewport {
  height: 430px;
  margin: 0 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--home-blue, #24b9d6) 58%, transparent) transparent;
  cursor: grab;
}

.home-continue__viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.home-continue__list {
  display: grid;
  gap: 12px;
  padding: 0 4px 10px;
}

.home-continue__card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  min-height: 112px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--home-hot, #e31b4d) 18%, rgba(255,255,255,.13));
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.026)),
    color-mix(in srgb, var(--home-panel, #101827) 82%, #06050a);
  color: var(--home-heading, #fff);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 14px 32px rgba(0,0,0,.18);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.home-continue__card:hover {
  transform: translateX(-4px);
  border-color: color-mix(in srgb, var(--home-hot, #e31b4d) 62%, var(--home-violet, #6b5cff));
  background:
    linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.035)),
    color-mix(in srgb, var(--home-panel, #101827) 78%, #09060d);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 38px rgba(0,0,0,.26), 0 0 22px color-mix(in srgb, var(--home-hot, #e31b4d) 20%, transparent);
}

.home-continue__poster {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.home-continue__meta {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
}

.home-continue__title {
  overflow: hidden;
  color: inherit;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-continue__episode {
  overflow: hidden;
  color: color-mix(in srgb, var(--home-muted, rgba(255,255,255,.62)) 78%, #fff);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-continue__bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
}

.home-continue__bar span {
  display: block;
  width: var(--continue-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--home-hot, #e31b4d), var(--home-violet, #6b5cff));
  box-shadow: 0 0 14px color-mix(in srgb, var(--home-hot, #e31b4d) 42%, transparent);
}

.home-continue__state {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--home-muted, rgba(255,255,255,.62));
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.home-continue__controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px 16px;
}

html[data-theme="light"] .home-continue__panel,
html[data-theme="light_japan"] .home-continue__panel,
html[data-theme="light"] .home-continue__tab,
html[data-theme="light_japan"] .home-continue__tab {
  background: rgba(255,255,255,.88);
  color: #151823;
  box-shadow: 0 22px 54px rgba(28,34,48,.16), inset 0 1px 0 rgba(255,255,255,.72);
}

html[data-theme="light"] .home-continue__card,
html[data-theme="light_japan"] .home-continue__card,
html[data-theme="light"] .home-continue__close,
html[data-theme="light_japan"] .home-continue__close,
html[data-theme="light"] .home-continue__controls button,
html[data-theme="light_japan"] .home-continue__controls button {
  background: rgba(255,255,255,.62);
  color: #151823;
  border-color: rgba(28,34,48,.12);
}

html[data-theme="light"] .home-continue__head strong,
html[data-theme="light_japan"] .home-continue__head strong,
html[data-theme="light"] .home-continue__title,
html[data-theme="light_japan"] .home-continue__title {
  color: #151823;
}

html[data-theme="light"] .home-continue__head span,
html[data-theme="light_japan"] .home-continue__head span,
html[data-theme="light"] .home-continue__episode,
html[data-theme="light_japan"] .home-continue__episode,
html[data-theme="light"] .home-continue__state,
html[data-theme="light_japan"] .home-continue__state {
  color: rgba(21,24,35,.62);
}

.home-section-grid .content-card__ongoing-badge .ongoing-current {
  border: 1px solid rgba(255,255,255,.20) !important;
  background: linear-gradient(135deg, rgba(11,15,28,.82), rgba(27,33,52,.68)) !important;
  color: rgba(255,255,255,.96) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.72) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

html[data-theme="hard_japan"] .home-section-grid .content-card__ongoing-badge .ongoing-current {
  border-color: rgba(255,36,72,.48) !important;
  background: linear-gradient(135deg, rgba(255,36,72,.92), rgba(70,10,24,.74)) !important;
  box-shadow: 0 8px 22px rgba(255,36,72,.24), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

html[data-theme="neon"] .home-section-grid .content-card__ongoing-badge .ongoing-current {
  border-color: rgba(155,92,255,.58) !important;
  background: linear-gradient(135deg, rgba(155,92,255,.92), rgba(0,212,255,.42)) !important;
  box-shadow: 0 8px 24px rgba(155,92,255,.28), 0 0 18px rgba(0,212,255,.16), inset 0 1px 0 rgba(255,255,255,.20) !important;
}

html[data-theme="light"] .home-section-grid .content-card__ongoing-badge .ongoing-current,
html[data-theme="light_japan"] .home-section-grid .content-card__ongoing-badge .ongoing-current {
  border-color: rgba(86,97,66,.30) !important;
  background: rgba(255,255,255,.86) !important;
  color: #303827 !important;
  text-shadow: none !important;
  box-shadow: 0 8px 18px rgba(67,76,54,.14), inset 0 1px 0 rgba(255,255,255,.70) !important;
}

@media (max-width: 991px) {
  .home-continue {
    display: none;
  }
}

@media (max-width: 767px) {
  .home-section-grid {
    --home-card-size: 140px;
  }

  .home-section-grid .tv-cards-row {
    gap: 12px;
    padding: 8px 16px 22px !important;
    scroll-padding-inline: 16px !important;
  }

  html[data-theme] .home-section-grid .content-card__ongoing-badge {
    top: auto !important;
    bottom: 4px !important;
    left: 4px !important;
    right: 4px !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 374px) {
  .home-section-grid {
    --home-card-size: 120px;
  }
}
