:root {
  --primary-50: #f4f7fb;
  --primary-100: #e7edf6;
  --primary-600: #506688;
  --primary-700: #42536f;
  --primary-900: #243047;
  --accent-300: #fde047;
  --accent-500: #eab308;
  --accent-600: #ca8a04;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-900: #171717;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 15px 35px rgb(15 23 42 / 0.14);
  --shadow-xl: 0 26px 70px rgb(15 23 42 / 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--neutral-900);
  background: var(--neutral-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.94);
  border-bottom: 1px solid rgb(229 229 229 / 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-logo {
  font-size: clamp(20px, 2.2vw, 26px);
  white-space: nowrap;
}

.logo-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-900));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35), 0 8px 18px rgb(80 102 136 / 0.35);
}

.logo-mark span {
  position: absolute;
  left: 13px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid white;
}

.logo-mark::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-500);
  border: 2px solid white;
}

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

.nav-link {
  color: var(--neutral-700);
  font-weight: 650;
  transition: color 180ms ease;
}

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

.header-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: white;
}

.header-search {
  width: 260px;
}

.header-search input,
.mobile-search input,
.search-page-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  color: var(--neutral-900);
  background: transparent;
}

.header-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  cursor: pointer;
  color: white;
  background: var(--primary-600);
  padding: 11px 16px;
  transition: background 180ms ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
  background: var(--primary-700);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--neutral-100);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--neutral-700);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  padding: 10px 2px;
  color: var(--neutral-700);
  font-weight: 650;
}

.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--neutral-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.08)),
    linear-gradient(0deg, rgb(0 0 0 / 0.48), transparent 42%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
  color: white;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: white;
  background: var(--accent-500);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  padding: 5px 12px;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--accent-600);
  background: #fef9c3;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgb(255 255 255 / 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta {
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: rgb(255 255 255 / 0.88);
  background: rgb(255 255 255 / 0.14);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button {
  color: white;
  background: var(--primary-600);
  box-shadow: 0 18px 34px rgb(80 102 136 / 0.36);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--primary-700);
}

.ghost-button {
  color: white;
  background: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.24);
  backdrop-filter: blur(14px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgb(0 0 0 / 0.46);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.hero-arrow:hover {
  background: rgb(0 0 0 / 0.7);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 22px;
  transform: translateY(-50%);
}

.hero-next {
  right: 22px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.52);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.is-active {
  width: 34px;
  background: white;
}

.content-section,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 58px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  color: var(--neutral-900);
}

.section-heading a {
  color: var(--primary-600);
  font-weight: 750;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--primary-100);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.movie-card:hover .movie-cover img,
.rank-item:hover img,
.category-card:hover img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.6), transparent 62%);
  transition: opacity 180ms ease;
}

.movie-card:hover .cover-shade {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 32px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--primary-600);
  font-size: 13px;
  font-weight: 850;
}

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

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

.movie-card h3 a {
  transition: color 180ms ease;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 14px;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta span {
  color: var(--primary-700);
  background: var(--primary-100);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 999px;
  color: var(--neutral-600);
  background: var(--neutral-100);
  font-size: 12px;
  padding: 4px 9px;
}

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

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  color: white;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgb(253 224 71 / 0.34), transparent 28%),
    linear-gradient(135deg, var(--primary-600), var(--primary-900));
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.category-tile span {
  font-size: 20px;
  font-weight: 850;
}

.category-tile strong {
  color: rgb(255 255 255 / 0.78);
  font-size: 13px;
  font-weight: 500;
}

.ranking-grid,
.rank-page-list {
  display: grid;
  gap: 16px;
}

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

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

.rank-item {
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  background: white;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.rank-thumb {
  position: relative;
  width: 128px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  flex: 0 0 128px;
  background: var(--primary-100);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.rank-thumb span {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: white;
  background: var(--primary-600);
  font-weight: 850;
}

.rank-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--neutral-900);
  font-size: 16px;
}

.rank-item p {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 13px;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-item em {
  color: var(--neutral-500);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  background:
    radial-gradient(circle at 15% 20%, rgb(253 224 71 / 0.26), transparent 28%),
    linear-gradient(135deg, var(--primary-900), var(--primary-600));
  color: white;
  padding: 76px 0;
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgb(255 255 255 / 0.78);
  font-size: 18px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: center;
  border-radius: 22px;
  background: white;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.category-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: var(--primary-100);
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--neutral-600);
}

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

.category-samples a {
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-size: 12px;
  padding: 4px 9px;
}

.catalog-filter {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 12px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: white;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.catalog-filter input,
.catalog-filter select {
  width: 100%;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  outline: 0;
  color: var(--neutral-900);
  background: white;
  padding: 12px 14px;
}

.catalog-filter input:focus,
.catalog-filter select:focus,
.search-page-form input:focus,
.header-search input:focus,
.mobile-search input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgb(80 102 136 / 0.16);
}

.empty-state {
  display: none;
  border-radius: 20px;
  background: white;
  color: var(--neutral-600);
  text-align: center;
  padding: 44px 18px;
  box-shadow: var(--shadow-sm);
}

.empty-state.is-visible {
  display: block;
}

.detail-shell {
  padding: 28px 0 0;
}

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

.breadcrumb a {
  color: var(--primary-600);
  font-weight: 650;
}

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

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.46));
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.player-overlay button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgb(80 102 136 / 0.92);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.36);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.player-overlay button:hover {
  transform: scale(1.08);
  background: var(--primary-700);
}

.player-overlay span {
  display: inline-block;
  margin-left: 5px;
  font-size: 34px;
}

.detail-card,
.side-card {
  margin-top: 22px;
  border-radius: 22px;
  background: white;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-card h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--neutral-600);
  font-size: 17px;
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-meta span {
  color: var(--primary-700);
  background: var(--primary-100);
}

.detail-card h2,
.side-card h2 {
  margin: 24px 0 10px;
  color: var(--neutral-900);
  font-size: 22px;
}

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

.detail-card p {
  color: var(--neutral-700);
}

.detail-side {
  position: sticky;
  top: 92px;
}

.side-card .rank-item {
  align-items: flex-start;
  box-shadow: none;
  border: 1px solid var(--neutral-100);
  margin-bottom: 12px;
}

.side-card .rank-thumb {
  width: 110px;
  flex-basis: 110px;
}

.more-section {
  padding-top: 54px;
}

.search-page-form {
  width: min(560px, 100%);
  margin-top: 24px;
  border: 0;
}

.search-page-form input {
  padding: 15px 18px;
}

.search-page-form button {
  padding: 15px 24px;
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  color: rgb(255 255 255 / 0.78);
  background: var(--primary-900);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  color: white;
  font-size: 22px;
}

.footer-inner p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: rgb(255 255 255 / 0.78);
}

.footer-links a:hover {
  color: white;
}

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

  .site-header-inner {
    gap: 16px;
  }

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .movie-grid,
  .compact-grid,
  .rank-page-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero-slider {
    height: 620px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .compact-grid,
  .ranking-grid,
  .rank-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

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

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

  .footer-inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .site-logo {
    font-size: 19px;
  }

  .hero-slider {
    height: 600px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 38px;
  }

  .hero-meta span:nth-child(4) {
    display: none;
  }

  .movie-grid,
  .compact-grid,
  .ranking-grid,
  .rank-page-list,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    align-items: flex-start;
  }

  .rank-thumb {
    width: 112px;
    flex-basis: 112px;
  }

  .detail-card,
  .side-card {
    padding: 18px;
  }
}
