:root {
  --sakura-50: #fff1f3;
  --sakura-100: #ffe4ea;
  --sakura-300: #ff9db3;
  --sakura-500: #f45b7a;
  --sakura-600: #e23d64;
  --azuki-500: #dc2626;
  --azuki-600: #b91c1c;
  --matcha-500: #5f9f63;
  --matcha-700: #3c7442;
  --yuzu-400: #ffd94d;
  --yuzu-500: #ffc300;
  --shiratama-50: #fafafa;
  --shiratama-100: #f3f4f6;
  --shiratama-200: #e5e7eb;
  --shiratama-500: #6b7280;
  --shiratama-700: #374151;
  --shiratama-800: #1f2937;
  --shiratama-900: #111827;
  --shadow-soft: 0 18px 40px rgba(220, 38, 38, 0.12);
  --shadow-card: 0 12px 26px rgba(31, 41, 55, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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.92);
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
}

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

.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: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  box-shadow: 0 10px 20px rgba(244, 91, 122, 0.25);
}

.logo-text {
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--sakura-500), var(--azuki-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link {
  color: var(--shiratama-700);
  font-weight: 700;
  transition: color 0.25s ease;
}

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

.nav-search {
  display: flex;
  align-items: center;
  width: min(330px, 100%);
  border: 1px solid var(--shiratama-200);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.nav-search input {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  outline: 0;
  background: transparent;
}

.nav-search button {
  padding: 10px 16px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--sakura-100);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--sakura-600);
}

.main {
  padding: 34px 0 62px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  margin-bottom: 64px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a, #1f2937 42%, #3f1d2b);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.hero-track {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 34px;
  align-items: center;
  padding: 54px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 22%, rgba(255, 157, 179, 0.32), transparent 32%),
    radial-gradient(circle at 82% 15%, rgba(255, 211, 77, 0.22), transparent 24%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.56));
  z-index: 0;
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-kicker span,
.tag-cloud span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-kicker span {
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(244, 91, 122, 0.92);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.btn-primary,
.btn-secondary,
.category-card a,
.rank-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  padding: 12px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  box-shadow: 0 16px 26px rgba(220, 38, 38, 0.24);
}

.btn-secondary {
  padding: 11px 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.btn-primary:hover,
.btn-secondary:hover,
.category-card a:hover,
.rank-cta:hover {
  transform: translateY(-2px);
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-search input {
  width: 100%;
  padding: 13px 16px;
  color: #ffffff;
  border: 0;
  outline: 0;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.hero-search button {
  padding: 0 20px;
  color: #111827;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  background: var(--yuzu-400);
}

.hero-poster {
  justify-self: center;
  width: min(310px, 100%);
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 22px;
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-controls button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.56);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.section {
  margin-bottom: 58px;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: var(--shiratama-800);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.section-head h2::before,
.page-title h1::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 30px;
  margin-right: 12px;
  border-radius: 999px;
  vertical-align: -4px;
  background: linear-gradient(180deg, var(--sakura-500), var(--azuki-500));
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--shiratama-500);
}

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

.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 {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px rgba(31, 41, 55, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #3f1d2b);
}

.movie-card .poster-wrap {
  aspect-ratio: 3 / 4.1;
}

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

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

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

.movie-card:hover .play-hover {
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(220, 38, 38, 0.92);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.card-body strong {
  overflow: hidden;
  color: var(--shiratama-800);
  font-size: 1.02rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.movie-card:hover strong,
.compact-card:hover strong {
  color: var(--sakura-600);
}

.card-body small,
.card-desc,
.card-meta {
  color: var(--shiratama-500);
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
}

.card-meta b {
  color: var(--yuzu-500);
}

.card-meta em,
.card-meta i {
  font-style: normal;
}

.horizontal-card {
  flex-direction: row;
}

.horizontal-card .poster-wrap {
  width: 230px;
  min-width: 230px;
  aspect-ratio: 4 / 3;
}

.horizontal-card .card-body {
  justify-content: space-between;
  padding: 20px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 185px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 157, 179, 0.28), rgba(255, 211, 77, 0.26));
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: var(--shiratama-500);
  font-size: 0.94rem;
}

.category-card a {
  position: relative;
  z-index: 1;
  padding: 9px 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--matcha-500), var(--matcha-700));
}

.rank-panel {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--yuzu-400), #ff9d2e);
}

.rank-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.8rem;
}

.rank-head p {
  margin: 4px 0 0;
  color: rgba(17, 24, 39, 0.74);
  font-weight: 700;
}

.rank-cta {
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.22);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--shiratama-100);
}

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

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

.rank-meta {
  color: var(--shiratama-500);
  font-size: 0.88rem;
}

.page-title {
  margin-bottom: 28px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 150px 160px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--shiratama-200);
  border-radius: 12px;
  outline: 0;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sakura-300);
  box-shadow: 0 0 0 4px rgba(255, 157, 179, 0.22);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--shiratama-500);
  font-size: 0.92rem;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 2.25rem;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.28);
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
  font-size: 0.92rem;
}

.detail-card,
.related-card {
  margin-top: 22px;
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.detail-meta li {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--shiratama-700);
  background: var(--shiratama-100);
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-card h2,
.related-card h2 {
  margin: 24px 0 10px;
  font-size: 1.35rem;
}

.detail-card p {
  margin: 0;
  color: var(--shiratama-700);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-tags span,
.tag-cloud span {
  padding: 6px 10px;
  color: var(--shiratama-700);
  background: var(--sakura-100);
}

.related-card {
  position: sticky;
  top: 98px;
  margin-top: 0;
}

.related-card h2 {
  margin-top: 0;
}

.compact-stack {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--shiratama-50);
  transition: background 0.25s ease;
}

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

.compact-card img {
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #111827;
  transition: transform 0.3s ease;
}

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

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

.compact-info em {
  color: var(--shiratama-500);
  font-size: 0.85rem;
  font-style: normal;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  padding: 42px 0;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
  transition: color 0.25s ease;
}

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

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

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

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

  .related-card {
    position: static;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .hero-poster {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-nav {
    flex-wrap: wrap;
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 0 0 16px;
  }

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

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

  .nav-search {
    width: 100%;
  }

  .main {
    padding-top: 22px;
  }

  .hero,
  .hero-track {
    min-height: 560px;
  }

  .hero-slide {
    padding: 34px 22px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-controls {
    left: 22px;
    right: auto;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .horizontal-card {
    flex-direction: column;
  }

  .horizontal-card .poster-wrap {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
  }

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

  .rank-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 2;
  }
}
