:root {
  --color-asagi: #00A3AF;
  --color-asagi-light: #33B8C2;
  --color-asagi-dark: #008C97;
  --color-asagi-pale: #E6F7F8;
  --ink: #111827;
  --muted: #667085;
  --line: #E5E7EB;
  --paper: #FFFFFF;
  --soft: #F6FBFC;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 163, 175, 0.13), transparent 28rem),
    linear-gradient(180deg, #F8FEFF 0%, #FFFFFF 44%, #F5FAFB 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.6;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-asagi), var(--color-asagi-dark));
  box-shadow: 0 10px 24px rgba(0, 163, 175, 0.30);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: #475467;
  font-size: 15px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-asagi-dark);
  background: var(--color-asagi-pale);
}

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--color-asagi);
  padding: 9px 16px;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #344054;
}

.home-hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #061B22;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) scale(1.08);
  opacity: 0.55;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 20, 25, 0.96), rgba(4, 20, 25, 0.70), rgba(0, 163, 175, 0.20)),
    radial-gradient(circle at 84% 30%, rgba(51, 184, 194, 0.40), transparent 28rem);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
  padding: 74px 0 110px;
}

.hero-copy {
  color: #fff;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--color-asagi-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.hero-copy .section-kicker,
.detail-copy .section-kicker {
  color: #85F4FF;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-meta,
.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta-row span {
  border-radius: 999px;
  background: rgba(0, 163, 175, 0.10);
  color: var(--color-asagi-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.hero-tags span,
.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.ghost-button,
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--color-asagi), var(--color-asagi-dark));
  box-shadow: 0 14px 30px rgba(0, 163, 175, 0.32);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.soft-button {
  color: var(--color-asagi-dark);
  background: var(--color-asagi-pale);
}

.primary-button:hover,
.ghost-button:hover,
.soft-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #fff;
  background: rgba(0, 163, 175, 0.90);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.hero-dots,
.hero-arrow-group {
  display: flex;
  gap: 10px;
}

.hero-dot,
.hero-arrow-group button {
  border: 0;
  cursor: pointer;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.hero-arrow-group button {
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
}

.section-block {
  padding: 66px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2,
.page-hero h1,
.content-card h2,
.detail-copy h1 {
  margin: 0;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.text-link {
  color: var(--color-asagi-dark);
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  display: block;
  min-height: 168px;
  padding: 24px;
  border-radius: var(--radius);
  color: #0B3038;
  background:
    linear-gradient(135deg, rgba(230, 247, 248, 0.95), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(0, 163, 175, 0.28), transparent 9rem);
  border: 1px solid rgba(0, 163, 175, 0.12);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card span {
  display: block;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.category-card p {
  margin: 0;
  color: #475467;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 160px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: #fff;
  padding: 0 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-asagi);
  box-shadow: 0 0 0 4px rgba(0, 163, 175, 0.12);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.featured-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.small-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #D8EEF0;
}

.movie-card.small .poster-link {
  aspect-ratio: 4 / 3;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(0, 163, 175, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-chip {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: 12px;
  color: #fff;
  background: rgba(0, 163, 175, 0.92);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-row {
  color: #667085;
  gap: 6px;
}

.movie-meta-row span {
  color: #667085;
  background: #F2F4F7;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
  margin: 0 0 13px;
  color: #667085;
  font-size: 14px;
}

.rank-strip,
.rank-list {
  display: grid;
  gap: 14px;
}

.rank-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: 52px 94px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--color-asagi), var(--color-asagi-dark));
  font-weight: 900;
}

.rank-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: #D8EEF0;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-info p {
  margin: 0 0 8px;
  color: #667085;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  padding: 92px 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(51, 184, 194, 0.48), transparent 26rem),
    linear-gradient(135deg, #041419 0%, #0B3038 48%, #008C97 100%);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(40px, 7vw, 66px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.overview-stack {
  display: grid;
  gap: 26px;
  padding: 58px 0;
}

.category-overview-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.overview-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.overview-title-row h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.overview-title-row p {
  margin: 0;
  color: #667085;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #061B22;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) scale(1.08);
  opacity: 0.48;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 20, 25, 0.96), rgba(4, 20, 25, 0.78));
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  min-height: 560px;
  padding: 76px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
  aspect-ratio: 3 / 4;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-copy h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 780px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-tags {
  margin-bottom: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #fff;
  border: 0;
  background: radial-gradient(circle at center, rgba(0, 163, 175, 0.20), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-asagi), var(--color-asagi-dark));
  box-shadow: 0 18px 42px rgba(0, 163, 175, 0.36);
}

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

.content-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.content-card h2 {
  font-size: 28px;
}

.content-card p {
  margin: 16px 0 0;
  color: #475467;
  font-size: 17px;
}

.site-footer {
  margin-top: 40px;
  padding: 44px 0 0;
  color: #D7F5F8;
  background: #061B22;
}

.footer-grid {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 34px;
}

.footer-logo {
  color: #fff;
}

.site-footer p {
  max-width: 540px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.70);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #D7F5F8;
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1060px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .mobile-nav.open {
    display: block;
  }

  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 360px;
  }

  .category-grid,
  .featured-grid,
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .home-hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner {
    padding: 50px 0 120px;
    gap: 28px;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-poster,
  .detail-poster {
    max-width: 260px;
  }

  .section-head,
  .overview-title-row,
  .footer-grid {
    align-items: start;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .featured-grid,
  .small-grid,
  .rank-strip,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 82px minmax(0, 1fr);
  }

  .rank-info p {
    -webkit-line-clamp: 1;
  }

  .detail-layout {
    min-height: auto;
    padding: 52px 0;
  }

  .player-shell {
    border-radius: 18px;
  }
}
