:root {
  --sakura-50: #fff1f4;
  --sakura-100: #ffe3e9;
  --sakura-300: #ff9db3;
  --sakura-500: #ff446f;
  --sakura-600: #ed1c5a;
  --azuki-500: #dc2626;
  --matcha-500: #5a9c5a;
  --yuzu-500: #ffc300;
  --shiratama-50: #fafafa;
  --shiratama-100: #f5f5f5;
  --shiratama-800: #262626;
  --shiratama-900: #171717;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
  --soft-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, var(--shiratama-50), var(--sakura-50));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-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.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 6px 22px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  box-shadow: 0 12px 28px rgba(237, 28, 90, 0.26);
}

.brand-text {
  font-size: 25px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--sakura-500), var(--azuki-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.top-search,
.wide-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.06);
}

.top-search input,
.wide-search input {
  width: 230px;
  min-width: 0;
  padding: 11px 16px;
  border: 0;
  outline: 0;
  background: transparent;
}

.top-search button,
.wide-search button {
  align-self: stretch;
  padding: 0 18px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--sakura-100);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--sakura-600);
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--shiratama-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: 560px;
  background-color: #111827;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: min(720px, 100%);
  padding: 70px 0;
  color: #fff;
}

.hero-kicker,
.movie-meta-line,
.card-stats,
.detail-meta-grid,
.breadcrumb,
.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker span,
.tag-row span,
.poster-category,
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-kicker span {
  padding: 7px 13px;
  background: rgba(255, 68, 111, 0.92);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 8px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h3 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
}

.hero-copy p {
  width: min(650px, 100%);
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.85;
}

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  box-shadow: 0 18px 30px rgba(237, 28, 90, 0.28);
}

.btn-soft {
  color: var(--sakura-700, #be123c);
  background: #ffe3e9;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

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

.hero-control:hover {
  background: rgba(0, 0, 0, 0.75);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.intro-panel,
.page-hero,
.detail-hero,
.section-block,
.content-section,
.player-section {
  margin-top: 42px;
}

.intro-panel,
.page-hero,
.detail-hero {
  padding: 34px;
  border: 1px solid rgba(255, 157, 179, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.intro-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  align-items: center;
  gap: 28px;
  margin-top: -42px;
  position: relative;
  z-index: 8;
}

.eyebrow {
  width: max-content;
  padding: 6px 12px;
  color: var(--sakura-600);
  background: var(--sakura-100);
}

.intro-panel h2,
.page-hero h1,
.section-heading h2,
.ranking-card-head h2,
.detail-info h1,
.detail-text-card h2 {
  margin: 10px 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.intro-panel h2,
.section-heading h2,
.ranking-card-head h2,
.detail-text-card h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.page-hero h1,
.detail-info h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
}

.intro-panel p,
.page-hero p,
.section-heading p,
.category-card-body p,
.detail-one-line,
.detail-text-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.wide-search input {
  width: 100%;
  padding: 15px 18px;
}

.wide-search button {
  padding: 0 26px;
  white-space: nowrap;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading > span {
  display: block;
  width: 6px;
  height: 38px;
  margin-top: 6px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--sakura-500), var(--azuki-500));
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sakura-100), var(--shiratama-100));
}

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

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

.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 44px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  background: rgba(0, 0, 0, 0.32);
}

.poster-category {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #fff;
  background: var(--azuki-500);
}

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

.movie-meta-line,
.card-stats {
  color: #6b7280;
  font-size: 13px;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #6b7280;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--sakura-600);
  background: var(--sakura-100);
}

.card-stats {
  justify-content: space-between;
  margin-top: 14px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 230px 1fr;
}

.movie-card-horizontal .poster-link {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card-horizontal .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.category-chip-grid.slim {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-chip {
  display: block;
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(255, 157, 179, 0.25);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 227, 233, 0.78));
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-chip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-chip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-card {
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.sticky-rank {
  position: sticky;
  top: 96px;
}

.ranking-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ranking-card-head a {
  color: var(--sakura-600);
  font-weight: 800;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--shiratama-50);
}

.rank-item a:hover {
  background: var(--sakura-100);
}

.rank-num {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--azuki-500);
  font-weight: 900;
}

.page-main {
  padding-bottom: 64px;
}

.page-hero {
  text-align: left;
}

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

.category-card a {
  display: block;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card-posters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 170px;
  background: linear-gradient(135deg, var(--sakura-100), var(--shiratama-100));
}

.category-card-posters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
}

.category-card-body span {
  display: inline-flex;
  margin-top: 12px;
  color: var(--sakura-600);
  font-weight: 900;
}

.filter-panel {
  margin-bottom: 24px;
}

.filter-panel input {
  width: min(520px, 100%);
  padding: 14px 18px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  outline: 0;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.search-status {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--sakura-100), var(--shiratama-100));
  box-shadow: var(--shadow);
}

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

.detail-one-line {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.detail-meta-grid span {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--shiratama-50);
  font-weight: 700;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: radial-gradient(circle at center, rgba(237, 28, 90, 0.35), rgba(0, 0, 0, 0.52));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: inline-flex;
  width: 80px;
  height: 80px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  box-shadow: 0 20px 42px rgba(237, 28, 90, 0.32);
  font-size: 34px;
}

.play-overlay strong {
  font-size: 22px;
}

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

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 12px 14px;
  color: #fff;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.66);
}

.player-message.is-visible {
  display: block;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
}

.detail-text-card {
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.detail-text-card p {
  margin: 0;
  font-size: 17px;
}

.review-card {
  border-left: 6px solid var(--sakura-500);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a,
.footer-grid p {
  color: #d4d4d4;
}

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

.footer-bottom {
  padding: 18px 0;
  color: #a3a3a3;
  border-top: 1px solid #404040;
  text-align: center;
}

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

  .split-section,
  .ranking-layout,
  .content-section {
    grid-template-columns: 1fr;
  }

  .sticky-rank {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-button {
    display: block;
  }

  .nav-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .top-search input {
    width: 100%;
  }

  .hero-carousel,
  .hero-slide {
    min-height: 520px;
  }

  .intro-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .compact-grid,
  .horizontal-grid,
  .category-chip-grid,
  .category-chip-grid.slim,
  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .movie-card-horizontal .poster-link {
    aspect-ratio: 16 / 10;
  }

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

@media (max-width: 600px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 21px;
  }

  .hero-copy {
    padding: 56px 0 76px;
  }

  .hero-control {
    opacity: 1;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .intro-panel,
  .page-hero,
  .detail-hero,
  .detail-text-card {
    padding: 22px;
    border-radius: 22px;
  }

  .movie-grid,
  .compact-grid,
  .horizontal-grid,
  .category-chip-grid,
  .category-chip-grid.slim,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .wide-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .wide-search button {
    min-height: 48px;
  }
}
