:root {
  --sakura-50: #fff1f6;
  --sakura-100: #ffe4ef;
  --sakura-300: #f9a8c8;
  --sakura-400: #f472b6;
  --sakura-500: #ec4899;
  --sakura-600: #db2777;
  --azuki-500: #be185d;
  --azuki-600: #9d174d;
  --matcha-500: #22c55e;
  --matcha-700: #15803d;
  --yuzu-400: #fbbf24;
  --yuzu-500: #f59e0b;
  --shiratama-50: #f8fafc;
  --shiratama-100: #f1f5f9;
  --shiratama-300: #cbd5e1;
  --shiratama-700: #334155;
  --shiratama-800: #1e293b;
  --shiratama-900: #0f172a;
  --text-main: #1f2937;
  --text-soft: #64748b;
  --card: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, var(--shiratama-50), var(--sakura-50));
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark,
.footer-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura-400), var(--azuki-500));
  box-shadow: 0 12px 24px rgba(219, 39, 119, 0.24);
}

.brand-name {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--sakura-500), var(--azuki-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #475569;
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sakura-600);
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.toolbar input,
.toolbar select,
.big-search input {
  border: 1px solid #e2e8f0;
  outline: none;
  background: #ffffff;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text-main);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-search input:focus,
.toolbar input:focus,
.toolbar select:focus,
.big-search input:focus {
  border-color: var(--sakura-400);
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.nav-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--text-main);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.hero-carousel {
  width: min(var(--container), calc(100% - 32px));
  margin: 30px auto 70px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 21 / 9;
  min-height: 430px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--shiratama-900), var(--shiratama-800));
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: saturate(1.04);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.45), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 72px);
  color: #ffffff;
}

.hero-kicker,
.detail-facts,
.movie-meta,
.tag-row,
.hero-actions,
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker span,
.tag-row span,
.type-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(190, 24, 93, 0.92);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 28px;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
  box-shadow: 0 14px 26px rgba(219, 39, 119, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-tile:hover,
.compact-card:hover {
  transform: translateY(-3px);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-button.dark {
  color: var(--azuki-600);
  background: #ffffff;
  border-color: #fbcfe8;
}

.primary-button.light {
  color: var(--azuki-600);
  background: #ffffff;
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.54);
  font-size: 36px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

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

.hero-control:hover {
  background: rgba(15, 23, 42, 0.82);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

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

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

.content-section,
.page-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 70px;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.15);
}

.movie-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  margin: 0;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--shiratama-900), var(--shiratama-700));
}

.poster-wrap img,
.detail-side img,
.category-thumbs img,
.compact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.compact-card:hover img {
  transform: scale(1.08);
}

.type-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  background: rgba(190, 24, 93, 0.95);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yuzu-400), var(--sakura-500));
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 44px;
  background: rgba(15, 23, 42, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.34);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

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

.movie-info p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 14px;
}

.movie-meta {
  color: #64748b;
  font-size: 13px;
  justify-content: space-between;
}

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

.movie-card.horizontal .poster-wrap {
  height: 100%;
  min-height: 170px;
}

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

.rank-panel,
.info-panel,
.detail-main,
.player-card,
.detail-side,
.page-hero,
.highlight-band {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

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

.rank-panel-head,
.highlight-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rank-panel-head h2,
.highlight-band h2 {
  margin: 0;
  font-size: 26px;
}

.rank-panel-head a {
  color: var(--sakura-600);
  font-weight: 900;
}

.compact-list,
.rank-list-full {
  display: grid;
  gap: 12px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 34px 82px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, background 0.25s ease;
}

.compact-card:hover {
  background: var(--sakura-50);
}

.compact-card img {
  height: 58px;
  border-radius: 12px;
  background: var(--shiratama-800);
}

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

.compact-body {
  min-width: 0;
}

.compact-body strong,
.compact-body em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-body em {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 13px;
  font-style: normal;
}

.highlight-band {
  padding: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--matcha-500), var(--matcha-700));
}

.highlight-band p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

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

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

.category-tile {
  display: block;
  overflow: hidden;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile h3 {
  margin: 14px 4px 8px;
  font-size: 20px;
}

.category-tile p {
  margin: 0 4px 6px;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 14px;
}

.category-thumbs {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, 82px);
  gap: 8px;
}

.category-thumbs img {
  border-radius: 14px;
  background: var(--shiratama-800);
}

.category-thumbs img:first-child {
  grid-row: span 2;
}

.page-shell {
  padding-top: 30px;
}

.page-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  padding: clamp(28px, 5vw, 54px);
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 10%, rgba(244, 114, 182, 0.36), transparent 28%),
    linear-gradient(135deg, var(--shiratama-900), var(--shiratama-800));
}

.page-hero.soft {
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 114, 182, 0.18), transparent 32%),
    linear-gradient(135deg, #ffffff, var(--sakura-50));
  color: var(--text-main);
}

.page-hero h1 {
  margin: 8px 0 14px;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: inherit;
  opacity: 0.84;
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px !important;
  font-weight: 900;
  color: var(--sakura-500) !important;
}

.toolbar {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.toolbar input {
  flex: 1;
}

.toolbar select {
  min-width: 150px;
}

.big-search {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  max-width: 620px;
}

.big-search input {
  flex: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--text-soft);
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 34px;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: cover;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background:
    linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.34)),
    radial-gradient(circle, rgba(236, 72, 153, 0.24), transparent 35%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
  box-shadow: 0 18px 36px rgba(219, 39, 119, 0.34);
  font-size: 34px;
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.25;
}

.detail-side {
  overflow: hidden;
  padding: 14px;
}

.detail-side img {
  height: calc(100% - 78px);
  min-height: 300px;
  border-radius: 18px;
  background: var(--shiratama-800);
}

.detail-facts {
  padding: 14px 2px 0;
}

.detail-facts span {
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
  padding: 7px 11px;
  font-weight: 800;
  font-size: 13px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-bottom: 60px;
}

.detail-main,
.info-panel {
  padding: clamp(22px, 4vw, 34px);
}

.detail-main h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.05em;
}

.detail-main h2,
.info-panel h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-main p,
.info-panel dd,
.info-panel dt {
  line-height: 1.85;
}

.lead-text {
  color: var(--text-soft);
  font-size: 18px;
}

.tag-row {
  margin: 20px 0;
}

.info-panel dl {
  margin: 0;
}

.info-panel dt {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 900;
}

.info-panel dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.info-panel a {
  color: var(--sakura-600);
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, var(--shiratama-800), var(--shiratama-900));
}

.footer-grid {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 54px 0 38px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 18px;
}

.footer-grid h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--shiratama-300);
  line-height: 1.75;
}

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

.footer-grid li {
  margin: 9px 0;
}

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

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(203, 213, 225, 0.22);
  padding: 24px 0 30px;
  text-align: center;
  font-size: 14px;
}

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

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

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

  .rank-panel {
    position: static;
  }

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

@media (max-width: 860px) {
  .nav-shell {
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0;
  }

  .mobile-menu-button {
    display: block;
  }

  .nav-links {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
  }

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

  .nav-search {
    order: 6;
    width: 100%;
  }

  .nav-search input {
    flex: 1;
  }

  .hero-carousel {
    aspect-ratio: auto;
    min-height: 520px;
    margin-top: 18px;
  }

  .hero-content {
    justify-content: flex-end;
  }

  .movie-grid,
  .movie-grid.two-col,
  .category-grid,
  .category-grid.wide,
  .rank-list-full,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .movie-card.horizontal .poster-wrap {
    height: 240px;
  }

  .highlight-band,
  .rank-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 20px;
  }

  .brand-mark,
  .footer-mark {
    width: 36px;
    height: 36px;
  }

  .hero-carousel {
    width: calc(100% - 20px);
    border-radius: 20px;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-actions,
  .toolbar,
  .big-search {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-control {
    opacity: 1;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .content-section,
  .page-shell {
    width: calc(100% - 20px);
    margin-bottom: 44px;
  }

  .movie-grid,
  .movie-grid.two-col,
  .category-grid,
  .category-grid.wide,
  .rank-list-full,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 260px;
  }

  .compact-card {
    grid-template-columns: 32px 72px minmax(0, 1fr);
  }

  .page-hero {
    padding: 24px;
    min-height: 240px;
  }

  .detail-side img {
    min-height: 360px;
  }
}
