* {
  box-sizing: border-box;
}

:root {
  --sakura-50: #fff1f4;
  --sakura-100: #ffe3e9;
  --sakura-300: #ff9db3;
  --sakura-400: #ff6f91;
  --sakura-500: #ff446f;
  --sakura-600: #ed1c5a;
  --azuki-500: #dc2626;
  --azuki-600: #b91c1c;
  --matcha-500: #6aa84f;
  --yuzu-500: #ffc300;
  --shiratama-50: #fafafa;
  --shiratama-100: #f5f5f5;
  --shiratama-300: #d4d4d4;
  --shiratama-500: #737373;
  --shiratama-700: #404040;
  --shiratama-800: #262626;
  --shiratama-900: #171717;
  --text: #262626;
  --muted: #666666;
  --white: #ffffff;
  --shadow-soft: 0 16px 42px rgba(23, 23, 23, 0.08);
  --shadow-strong: 0 24px 70px rgba(23, 23, 23, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 68, 111, 0.12), transparent 34%),
    linear-gradient(135deg, var(--shiratama-50), var(--sakura-50));
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(23, 23, 23, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--shiratama-900);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sakura-400), var(--azuki-500));
  box-shadow: 0 10px 25px rgba(237, 28, 90, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #575757;
  font-weight: 650;
}

.nav a {
  position: relative;
  transition: color 0.22s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--sakura-600);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sakura-500), var(--azuki-500));
}

.global-search {
  position: relative;
  width: min(260px, 28vw);
}

.global-search input,
.filter-box input,
.filter-box select {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 12px 44px 12px 18px;
  font: inherit;
  background: var(--white);
  outline: none;
  transition: border 0.22s ease, box-shadow 0.22s ease;
}

.global-search input:focus,
.filter-box input:focus,
.filter-box select:focus {
  border-color: var(--sakura-300);
  box-shadow: 0 0 0 4px rgba(255, 68, 111, 0.12);
}

.global-search button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--white);
  background: var(--sakura-500);
  cursor: pointer;
}

.hero-section {
  padding: 34px 0 56px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--sakura-700, #ad1747);
  background: rgba(255, 227, 233, 0.9);
  font-weight: 700;
  font-size: 14px;
}

.hero-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.hero-title-row h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-title-row p {
  margin: 12px 0 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 21 / 9;
  min-height: 360px;
  background: linear-gradient(135deg, var(--shiratama-900), var(--shiratama-800));
  box-shadow: var(--shadow-strong);
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s ease;
}

.hero-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--white);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  background: linear-gradient(135deg, var(--shiratama-900), var(--shiratama-700));
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 195, 0, 0.28), transparent 26%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  right: clamp(24px, 5vw, 64px);
  bottom: clamp(28px, 6vw, 60px);
  max-width: 720px;
}

.hero-content h2 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.75;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.badge.hot {
  background: var(--azuki-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  box-shadow: 0 14px 28px rgba(237, 28, 90, 0.26);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 35px rgba(237, 28, 90, 0.34);
}

.btn-light {
  color: var(--sakura-700, #ad1747);
  background: var(--white);
}

.btn-ghost {
  color: var(--sakura-600);
  background: var(--sakura-100);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.74);
}

.carousel-arrow.prev {
  left: 18px;
}

.carousel-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--sakura-500);
}

.section {
  padding: 0 0 56px;
}

.section-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sakura-500), var(--azuki-500));
}

.section-title h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #202020;
  letter-spacing: -0.03em;
}

.section-title h2 {
  font-size: 30px;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(23, 23, 23, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 44px rgba(23, 23, 23, 0.14);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 68, 111, 0.42), transparent 32%),
    linear-gradient(135deg, var(--shiratama-900), var(--shiratama-700));
}

.poster.wide {
  aspect-ratio: 16 / 9;
}

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

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

.poster-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.poster-tag {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-title {
  margin: 0;
  color: #202020;
  font-size: 18px;
  line-height: 1.35;
}

.card-title a:hover {
  color: var(--sakura-600);
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--shiratama-500);
  font-size: 13px;
}

.card-desc {
  margin: 0;
  color: #555555;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--sakura-600);
  background: var(--sakura-100);
  font-size: 12px;
  font-weight: 700;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(23, 23, 23, 0.08);
}

.horizontal-card .poster {
  aspect-ratio: auto;
  min-height: 190px;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.06);
}

.rank-no {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--yuzu-500), var(--azuki-500));
  font-weight: 900;
}

.page-hero {
  padding: 48px 0 32px;
}

.page-title {
  padding: 30px;
  border-radius: var(--radius-xl);
  color: #202020;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.page-title h1 {
  font-size: clamp(30px, 4vw, 48px);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.category-card strong {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 44px;
  opacity: 0.2;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 42px 0;
}

.detail-poster {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--shiratama-900);
  box-shadow: var(--shadow-strong);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.detail-title {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-title h1 {
  font-size: clamp(32px, 5vw, 56px);
}

.detail-title .one-line {
  margin: 16px 0 0;
  color: #555555;
  font-size: 18px;
  line-height: 1.8;
}

.player-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--shiratama-900);
  box-shadow: var(--shadow-strong);
}

.video-shell {
  position: relative;
  background: #050505;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 68, 111, 0.18), transparent 38%),
    rgba(0, 0, 0, 0.24);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-card.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
}

.play-button {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-size: 32px;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  box-shadow: 0 18px 45px rgba(237, 28, 90, 0.42);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.content-box {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.content-box h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-box p {
  margin: 0 0 14px;
  color: #444444;
  font-size: 16px;
  line-height: 1.9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--shiratama-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--sakura-600);
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.pager a {
  flex: 1;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.site-footer {
  margin-top: 30px;
  color: var(--white);
  background: linear-gradient(135deg, var(--shiratama-800), var(--shiratama-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 46px 0;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid li {
  color: var(--shiratama-300);
  line-height: 1.8;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid a:hover {
  color: var(--sakura-300);
}

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

.hidden-card {
  display: none !important;
}

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

  .detail-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
  }

  .global-search {
    width: 100%;
    order: 2;
  }

  .hero-title-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-carousel {
    aspect-ratio: auto;
    min-height: 560px;
  }

  .movie-grid,
  .category-grid,
  .filter-box,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .ranking-item .btn {
    grid-column: 1 / -1;
  }

  .detail-poster {
    position: relative;
    top: 0;
  }
}
