:root {
  --sakura-50: #fff5f7;
  --sakura-100: #ffe3e9;
  --sakura-400: #ff6b8f;
  --sakura-500: #ff446f;
  --sakura-600: #ed1c5a;
  --azuki-500: #dc2626;
  --azuki-600: #b91c1c;
  --shiratama-50: #fafafa;
  --shiratama-100: #f5f5f5;
  --shiratama-800: #262626;
  --shiratama-900: #171717;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.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);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

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

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

.logo-text {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--sakura-500), var(--azuki-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

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

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

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(280px, 28vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.header-search input,
.big-search input,
.hero-search-panel input,
.filter-grid input,
.filter-grid select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: #ffffff;
  font: inherit;
}

.header-search input {
  padding: 10px 14px;
}

.header-search button,
.big-search button,
.hero-search-panel button {
  border: 0;
  color: #ffffff;
  background: var(--sakura-500);
  padding: 10px 16px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--sakura-600);
  font-size: 28px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: #ffffff;
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--sakura-50);
  font-weight: 700;
}

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

.hero-section {
  padding-top: 28px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  aspect-ratio: 21 / 9;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
  box-shadow: var(--shadow);
}

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

.hero-slide {
  display: none;
  overflow: hidden;
}

.hero-slide.is-active {
  display: block;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  opacity: 0.74;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.16)), linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 55%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 28vw, 420px);
  bottom: clamp(24px, 6vw, 72px);
  z-index: 2;
  color: #ffffff;
}

.hero-tags,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags a,
.hero-tags span,
.card-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--azuki-500);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
}

.hero-content h1 {
  margin: 16px 0 12px;
  font-size: clamp(32px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

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

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.btn.small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  font-size: 36px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%);
  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.72);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  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);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-search-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 157, 179, 0.5);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-search-panel h2,
.section-head h2,
.page-hero h1,
.rank-head h2,
.detail-copy h1,
.content-card h2 {
  margin: 0;
  color: var(--text);
}

.hero-search-panel p,
.section-head p,
.page-hero p,
.category-tile p,
.category-overview-copy p,
.content-card p,
.ranking-info p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-search-panel form,
.big-search {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.hero-search-panel input,
.big-search input {
  padding: 15px 18px;
}

.hero-search-panel button,
.big-search button {
  padding: 0 24px;
}

.section-block {
  margin-top: 64px;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--sakura-600);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-link {
  color: var(--sakura-600);
  font-weight: 800;
}

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

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

.card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  height: 260px;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

.card:hover .card-cover img,
.mini-card:hover img {
  transform: scale(1.08);
}

.card-category {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 12px;
}

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0);
  font-size: 48px;
  opacity: 0;
  transition: opacity 0.24s ease, background 0.24s ease;
}

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

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  justify-content: space-between;
  color: #6b7280;
  font-size: 13px;
}

.card-horizontal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.card-horizontal .card-cover {
  height: 100%;
  min-height: 156px;
}

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

.category-tile,
.category-overview-card,
.content-card,
.filter-panel,
.rank-panel,
.page-hero,
.detail-hero {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.category-tile {
  display: block;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
}

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

.category-tile div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tile span,
.tag-list span {
  display: inline-flex;
  border-radius: 999px;
  color: var(--sakura-700);
  background: var(--sakura-100);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.list-cards {
  display: grid;
  gap: 16px;
}

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

.rank-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rank-head span,
.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
  font-weight: 900;
}

.rank-head span {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.rank-head a {
  margin-left: auto;
  color: var(--sakura-600);
  font-weight: 800;
}

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

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

.rank-row img {
  width: 58px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-no {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

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

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #ff9db3;
}

.page-hero.slim {
  margin-top: 28px;
  padding: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.category-overview-list {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  padding: 24px;
  transition: transform 0.2s ease;
}

.category-overview-copy span {
  color: var(--sakura-600);
  font-weight: 900;
}

.category-overview-copy h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

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

.mini-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: 16px;
  background: #111827;
}

.mini-card img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.5s ease;
}

.mini-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.filter-panel {
  margin-top: 22px;
  padding: 20px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.8fr;
  gap: 16px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
}

.movie-card.is-hidden,
.ranking-card.is-hidden {
  display: none;
}

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

.ranking-list-page {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  height: 140px;
  border-radius: 16px;
}

.ranking-poster span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  color: #ffffff;
  border-radius: 999px;
  background: var(--azuki-500);
  padding: 5px 9px;
  font-weight: 900;
}

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

.ranking-info {
  display: grid;
  gap: 8px;
  align-content: center;
}

.ranking-info a {
  font-size: 21px;
  font-weight: 900;
}

.ranking-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.search-hero {
  text-align: center;
}

.big-search {
  max-width: 720px;
  margin: 22px auto 0;
}

.search-results {
  margin-top: 34px;
}

.detail-layout {
  padding-top: 28px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
}

.poster-panel {
  overflow: hidden;
  border-radius: 20px;
  background: #111827;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.poster-panel img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.detail-copy {
  align-self: center;
}

.detail-copy h1 {
  margin: 8px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta span {
  border-radius: 999px;
  background: var(--shiratama-100);
  padding: 7px 12px;
  color: #4b5563;
  font-weight: 800;
}

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

.player-section {
  margin-top: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(237, 28, 90, 0.18), rgba(0, 0, 0, 0.36));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
  box-shadow: 0 20px 45px rgba(237, 28, 90, 0.35);
  font-size: 34px;
  text-indent: 4px;
}

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

.detail-content {
  margin-top: 28px;
}

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

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

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

.facts-card dl {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 0;
}

.facts-card dt {
  color: var(--muted);
  font-weight: 800;
}

.facts-card dd {
  margin: 0;
  font-weight: 700;
}

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

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

  .header-search {
    display: none;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .header-inner {
    min-height: 64px;
  }

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

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

  .hero-content {
    right: 24px;
  }

  .hero-search-panel,
  .two-columns,
  .category-overview-card,
  .detail-hero,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .grid-cards,
  .grid-cards.compact,
  .category-page-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-panel {
    position: static;
  }

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

  .poster-panel img {
    height: auto;
    max-height: 520px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hero-carousel {
    border-radius: 18px;
    min-height: 480px;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 48px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-control {
    display: none;
  }

  .hero-search-panel,
  .page-hero.slim,
  .detail-hero,
  .content-card,
  .filter-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .grid-cards,
  .grid-cards.compact,
  .category-page-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

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

  .card-cover,
  .card-horizontal .card-cover {
    height: 230px;
  }

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

  .ranking-poster {
    height: 120px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
