/* Hero without Swiper.js */
.hero-swiper .swiper-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}
.hero-swiper .swiper-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
}

.content-ad-stack {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 12px;
  width: 100%;
  max-width: 1800px;
  margin: 16px auto 0;
}
.content-ad-stack a {
  display: block;
  position: relative;
  align-self: stretch;
  width: 100%;
  height: 178px;
  overflow: hidden;
  border-radius: 12px;
}
.content-ad-stack img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Our header is in-flow / site-root padded; don't add a second header offset. */
body.home-page,
body.list-page-body,
body.rank-page-body,
body.is-detail-page,
body.search-layout {
  padding-top: 0 !important;
}
.home-page {
  padding-top: 0 !important;
}

.site-root > .page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}
body:not(.home-page):not(.list-page-body):not(.rank-page-body) .site-root > .page-shell {
  padding: 0;
  gap: 0;
  display: block;
}

.hero-banner,
.hero-swiper {
  overflow: hidden;
}

button.rank-tab {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.lock-screen.has-play .bg {
  opacity: 0;
}
.lock-screen.has-play:not(.has-frame) .bg {
  opacity: 1;
  z-index: 11;
  filter: none;
}
.lock-screen video,
.lock-screen .play-video {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  background: #000;
}

.poster-card-subtitle:empty {
  display: none;
}

.poster-cover-fallback {
  position: absolute;
  inset: 0;
  background: #141414;
}
.poster-cover-fallback span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7rem;
  height: 2.25rem;
  transform: translate(-50%, -50%);
  background: url('/figma/logo.png?v=20261124b') center / contain no-repeat;
  opacity: 0.2;
}

.h5-tabbar { display: none; }

@media (max-width: 767px) {
  body.has-h5-tabbar .h5-tabbar,
  body.home-page .h5-tabbar,
  .home-page .h5-tabbar {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    width: 100%;
    padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #101010;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }
  .h5-tabbar-item {
    flex: 1 1 0;
    padding: 2px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    display: flex;
    text-decoration: none;
    color: #808080;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
  }
  .h5-tabbar-icon {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
  }
  .h5-tabbar-item.is-active,
  .h5-tabbar-item.router-link-active {
    color: #EC237F;
  }
  body.has-h5-tabbar {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  body.has-h5-tabbar .download-fab,
  body.home-page .download-fab,
  body.is-play-page .download-fab,
  body.is-detail-page .download-fab {
    display: none !important;
  }
  .FloatingActions_actions__Lcm6k {
    display: none !important;
  }
  .square-promo--pc-only,
  .content-ad-stack {
    display: none !important;
  }
  body.is-deposit-page header {
    display: none !important;
  }
  body.is-deposit-page .deposit-footer {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    padding-bottom: 10px;
  }
  body.is-deposit-page .deposit-page {
    padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px));
  }

  body.home-page .hero-banner,
  body.home-page .hero-swiper,
  body.home-page .hero-card,
  body.home-page .hero-image,
  body.home-page .hero-overlay {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 343 / 154 !important;
  }
  body.home-page .hero-info,
  body.home-page .hero-thumbs {
    display: none !important;
  }
  body.home-page .hero-swiper .hero-dots {
    display: flex !important;
    position: absolute;
    right: 16px;
    bottom: 10px;
    left: auto;
    gap: 6px;
    z-index: 4;
  }
  .hero-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #fff;
    opacity: 0.3;
    cursor: pointer;
  }
  .hero-dot--active {
    width: 24px;
    opacity: 1;
    background: #EC237F;
  }

  .home-page .card-grid,
  .list-hero .card-grid,
  .rank-hero .card-grid,
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 7px;
  }
  .home-page .poster-card-body,
  .list-hero .poster-card-body,
  .rank-hero .poster-card-body {
    min-height: 72px;
    padding: 8px 0;
    background: transparent;
  }
  .topic-grid {
    grid-template-columns: 1fr !important;
  }

  .lock-screen video,
  .lock-screen .play-video {
    min-height: 0;
    max-height: none;
  }
  .content-ad-stack a {
    height: 72px;
    border-radius: 8px;
  }
}

/* Brand lockup */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}
.brand-lockup-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .brand-lockup-img {
    height: 40px;
    max-width: 210px;
  }
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .4px;
}
.brand-en {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  letter-spacing: .8px;
  text-transform: none;
}

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  background: transparent;
  cursor: pointer;
}
.lang-btn:hover { color: #fff; }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 90;
  min-width: 148px;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 12px;
  background: #17131c;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
}
.lang-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  background: transparent;
  cursor: pointer;
}
.lang-item:hover,
.lang-item.is-on {
  background: rgba(255,255,255,.07);
  color: #fff;
}

/* Category mega menu */
.nav-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-28%);
  z-index: 90;
  display: none;
  gap: 32px;
  min-width: 640px;
  padding: 20px 24px 22px;
  border-radius: 16px;
  background: #1a161f;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
}
.relative:hover > .nav-mega,
.nav-mega:hover {
  display: flex;
}
.nav-mega-col { min-width: 140px; }
.nav-mega-h {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin: 0 0 12px;
}
.nav-mega-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 280px;
}
.nav-mega-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #2a2430;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  line-height: 1.4;
}
.nav-mega-chip:hover { background: #3a3340; color: #fff; }
.nav-mega-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.nav-mega-status-item {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
}
.nav-mega-status-item:hover,
.nav-mega-status-item.is-on {
  background-image: var(--brand-cta);
  color: #fff;
}
.nav-mega-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mega-links a {
  display: flex;
  align-items: center;
  min-height: 32px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}
.nav-mega-links a:hover { color: #fff; }
.nav-mega-links a::before {
  content: "☆";
  margin-right: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

/* FeaturedHero copy — layout classes live in hg-b.css */
.FeaturedHero_controls__JM7r5 {
  position: relative;
  height: 100%;
  pointer-events: none;
}
.FeaturedHero_controls__JM7r5 > a,
.FeaturedHero_controls__JM7r5 > div,
.FeaturedHero_preview__RVcCt {
  pointer-events: auto;
}
.FeaturedHero_content__53gA0 .fh-title {
  margin: 0;
}
.fh-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: .5px;
}
@media (min-width: 768px) {
  .fh-title { font-size: 42px; }
}
.fh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fh-tag {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(255,255,255,.85);
}
.fh-meta {
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}
.fh-desc {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fh-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background-image: var(--brand-cta);
  font-weight: 700;
  font-size: 15px;
}

/* PC download / QR strip */
.home-dl {
  display: none;
  background: #0a0a0c;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (min-width: 768px) {
  .home-dl { display: block; }
}
.home-dl-inner {
  width: var(--site-content-width);
  max-width: 100%;
  margin: 0 auto;
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 8px;
}
.home-dl-kicker {
  margin: 0 0 6px;
  font-size: 14px;
  color: rgba(255,255,255,.55);
}
.home-dl-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.home-dl-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.home-dl-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.home-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #1a1a1f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.home-dl-btn.is-store {
  background-image: var(--brand-cta);
}
.home-dl-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.35);
}
.home-dl-qrwrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.home-dl-qrmeta {
  text-align: right;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}
.home-dl-qr {
  width: 108px;
  height: 108px;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
}
.home-dl-qr img {
  width: 100%;
  height: 100%;
  display: block;
}

body.list-page-body .FloatingActions_actions__Lcm6k,
body.rank-page-body .FloatingActions_actions__Lcm6k,
body.search-layout .FloatingActions_actions__Lcm6k,
body.is-detail-page .FloatingActions_actions__Lcm6k,
body.is-play-page .FloatingActions_actions__Lcm6k,
body.is-deposit-page .FloatingActions_actions__Lcm6k {
  display: none !important;
}
html[dir=rtl] .FloatingActions_actions__Lcm6k,
html[dir=rtl] .download-fab {
  right: auto !important;
  left: 16px !important;
}
