
:root {
  --sakura-50: #fff5f7;
  --sakura-100: #ffe3e9;
  --sakura-300: #ff9db3;
  --sakura-500: #ff446f;
  --sakura-600: #ed1c5a;
  --azuki-500: #dc2626;
  --azuki-600: #b91c1c;
  --matcha-100: #e6f2e6;
  --matcha-500: #4f8f4f;
  --yuzu-100: #fffacc;
  --yuzu-400: #ffd84d;
  --yuzu-500: #ffc300;
  --shiratama-50: #fafafa;
  --shiratama-100: #f5f5f5;
  --shiratama-300: #d4d4d4;
  --shiratama-700: #404040;
  --shiratama-800: #262626;
  --shiratama-900: #171717;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--shiratama-50), var(--sakura-50));
  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);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
}

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

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

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  box-shadow: 0 12px 24px rgba(255, 68, 111, 0.28);
}

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

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

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

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

.header-search,
.mobile-search,
.intro-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.intro-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input,
.mobile-search input {
  width: 210px;
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.intro-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sakura-500);
  box-shadow: 0 0 0 4px rgba(255, 68, 111, 0.12);
}

.header-search button,
.mobile-search button,
.intro-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--sakura-500), var(--azuki-500));
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.intro-search button:hover,
.search-page-form button:hover,
.primary-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 68, 111, 0.24);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #374151;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
}

.mobile-panel.is-open {
  display: block;
  animation: slideUp 0.28s ease-out;
}

.mobile-panel-inner {
  display: grid;
  gap: 14px;
  padding: 18px 0 22px;
}

.hero-wrap {
  padding-top: 34px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0f172a, #1f2937);
  box-shadow: var(--shadow);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(4%);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  opacity: 0.72;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.14));
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 8vw, 120px);
  bottom: clamp(32px, 7vw, 86px);
  color: #ffffff;
  max-width: 760px;
}

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

.hero-kicker a,
.hero-kicker span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-kicker a {
  background: var(--azuki-500);
}

.hero-content h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.primary-btn {
  padding: 13px 22px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--sakura-500), var(--azuki-500));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ghost-btn {
  padding: 12px 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.38);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

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

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.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.is-active {
  width: 34px;
  background: var(--sakura-500);
}

.intro-block,
.page-hero {
  margin-top: 34px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.intro-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sakura-600);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-block h1,
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.15;
}

.intro-block p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 820px;
}

.intro-search input,
.search-page-form input {
  width: min(430px, 100%);
  padding: 14px 18px;
}

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

.section-heading,
.panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2,
.panel-title h2,
.player-section h2,
.detail-content h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-heading a,
.panel-title a,
.text-link {
  color: var(--sakura-600);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(31, 41, 55, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  height: 270px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #374151);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
  opacity: 0.75;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 48px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: scale(1);
}

.card-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--azuki-500);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #9f1239;
  background: var(--sakura-100);
  font-size: 12px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 18px;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.09);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-tile span {
  bottom: 58px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-style: normal;
}

.rank-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row > strong {
  color: var(--sakura-600);
  font-size: 20px;
}

.compact-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.compact-card img {
  width: 76px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background: #111827;
}

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

.compact-card strong {
  font-size: 14px;
}

.compact-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-preview img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.category-overview-card h2 {
  margin: 0 0 10px;
}

.category-overview-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

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

.detail-hero {
  padding-top: 34px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 18px 35px rgba(31, 41, 55, 0.18);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--shiratama-100);
  color: #374151;
  font-weight: 800;
  font-size: 13px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #050505;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.64), rgba(0, 0, 0, 0.38));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-badge {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura-500), var(--azuki-500));
  box-shadow: 0 18px 40px rgba(255, 68, 111, 0.32);
  font-size: 38px;
}

.detail-content {
  display: grid;
  gap: 22px;
  margin-top: 38px;
}

.detail-content section {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-content p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

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

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: var(--shiratama-50);
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  padding: 14px;
  border-radius: 18px;
}

.ranking-number {
  color: var(--sakura-600);
  font-size: 26px;
}

.rank-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  color: inherit;
}

.rank-card img {
  width: 130px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.rank-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.rank-card span {
  color: var(--sakura-600);
  font-weight: 800;
}

.search-page-form {
  margin-top: 24px;
}

.search-summary {
  min-height: 24px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

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

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

.footer-grid p {
  color: var(--shiratama-300);
}

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

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: var(--shiratama-300);
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--shiratama-700);
  color: var(--shiratama-300);
  text-align: center;
}

.is-filtered-out {
  display: none !important;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .rank-panel {
    position: static;
  }

  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-track,
  .hero-slide img {
    min-height: 430px;
  }

  .intro-block {
    grid-template-columns: 1fr;
  }

  .intro-search,
  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

  .intro-search input,
  .search-page-form input {
    width: 100%;
  }

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

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

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

  .detail-poster {
    max-width: 320px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}

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

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

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

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

  .hero-arrow {
    opacity: 1;
    width: 38px;
    height: 38px;
  }

  .movie-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .poster-link {
    height: 320px;
  }

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

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

  .rank-card img {
    width: 96px;
    height: 72px;
  }

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