:root {
  --primary-50: #fef7ed;
  --primary-100: #fdecd0;
  --primary-500: #f17925;
  --primary-600: #e2591b;
  --primary-700: #bc3e18;
  --accent-500: #f04f1f;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --shadow-soft: 0 18px 45px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 10px 30px rgba(28, 25, 23, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--neutral-50);
  color: var(--neutral-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.9);
  box-shadow: 0 8px 28px rgba(28, 25, 23, 0.06);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  box-shadow: 0 10px 25px rgba(241, 121, 37, 0.35);
  font-size: 15px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.nav-link,
.mobile-link {
  color: var(--neutral-700);
  font-weight: 650;
  transition: color 0.18s ease, transform 0.18s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.filter-field input,
.filter-field select,
.search-hero input {
  border: 1px solid var(--neutral-300);
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: var(--neutral-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 210px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-field input:focus,
.filter-field select:focus,
.search-hero input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(241, 121, 37, 0.14);
}

.header-search button,
.mobile-search button,
.search-hero button,
.primary-button,
.secondary-button,
.rank-action {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: var(--primary-500);
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 25px rgba(241, 121, 37, 0.25);
}

.header-search button:hover,
.mobile-search button:hover,
.search-hero button:hover,
.primary-button:hover,
.rank-action:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--neutral-800);
  background: var(--primary-50);
  cursor: pointer;
  font-size: 22px;
}

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

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding: 12px 0;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
}

.hero-section {
  position: relative;
  height: min(70vh, 720px);
  min-height: 520px;
  overflow: hidden;
  background: var(--neutral-900);
}

.hero-stage {
  position: absolute;
  inset: 0;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-copy {
  width: min(680px, 100%);
  padding-top: 34px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  line-height: 1;
}

.hero-tags span {
  padding: 9px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.hero-tags span:first-child {
  background: var(--primary-500);
  font-weight: 750;
}

.hero-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.75;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.18s ease, transform 0.18s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 32px;
  background: #fff;
}

.section {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 54px 0 0;
}

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

.section-kicker {
  color: var(--primary-600);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 4px 0 0;
  color: var(--neutral-900);
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--neutral-600);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: var(--primary-600);
  font-weight: 750;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(241, 121, 37, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.card-cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--neutral-200);
  aspect-ratio: 2 / 3;
}

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

.movie-card:hover .card-cover {
  transform: scale(1.05);
}

.card-type,
.rank-badge {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.card-type {
  left: 10px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.rank-badge {
  right: 10px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-500);
  box-shadow: 0 8px 18px rgba(241, 121, 37, 0.32);
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  margin: 8px 0 10px;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--neutral-500);
  font-size: 12px;
}

.card-tags {
  margin-top: 10px;
}

.card-tags span {
  padding: 6px 8px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-xl);
  padding: 24px;
  background: linear-gradient(135deg, #fff, var(--primary-50));
  border: 1px solid rgba(241, 121, 37, 0.18);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 12px 0 18px;
  color: var(--neutral-600);
  line-height: 1.75;
}

.category-card h2 a:hover {
  color: var(--primary-600);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 16px;
}

.category-samples a {
  max-width: 100%;
  overflow: hidden;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--neutral-700);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-samples a:hover,
.category-enter {
  color: var(--primary-600);
}

.category-enter {
  font-weight: 800;
}

.page-hero {
  padding: 64px 0 18px;
  background: linear-gradient(135deg, var(--primary-50), #fff, #fef4ee);
  border-bottom: 1px solid var(--neutral-200);
}

.page-hero-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

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

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

.page-hero h1,
.detail-title h1,
.search-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p,
.search-hero p {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--neutral-600);
  font-size: 18px;
  line-height: 1.85;
}

.filter-panel {
  width: min(100% - 32px, var(--container));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 32px rgba(28, 25, 23, 0.06);
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field label {
  color: var(--neutral-700);
  font-weight: 800;
  font-size: 13px;
}

.filter-field input,
.filter-field select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--neutral-200);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(241, 121, 37, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
  background: var(--neutral-200);
  aspect-ratio: 2 / 3;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  color: var(--neutral-900);
  font-size: 19px;
  font-weight: 900;
}

.rank-title:hover {
  color: var(--primary-600);
}

.rank-content p {
  margin: 8px 0;
  color: var(--neutral-600);
  line-height: 1.65;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--neutral-500);
  font-size: 13px;
}

.rank-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--neutral-100);
}

.detail-layout {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 44px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
}

.player-section {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-soft);
}

.player-shell {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  isolation: isolate;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.78));
}

.player-shell.is-playing .player-cover {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 18px 45px rgba(241, 121, 37, 0.38);
  font-size: 34px;
  text-indent: 5px;
}

.play-text {
  font-size: 20px;
  font-weight: 850;
}

.detail-title {
  padding: 28px 0 10px;
}

.detail-title p {
  margin: 16px 0 0;
  color: var(--neutral-600);
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 18px;
}

.detail-tags span {
  padding: 8px 12px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-weight: 750;
}

.detail-panel {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.04);
}

.detail-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.detail-panel p {
  margin: 0;
  color: var(--neutral-700);
  line-height: 1.9;
}

.detail-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--neutral-200);
  box-shadow: var(--shadow-card);
}

.detail-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.info-list {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  background: #fff;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  color: var(--neutral-700);
  line-height: 1.55;
}

.info-list dt {
  color: var(--neutral-500);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  font-weight: 700;
}

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

.search-hero {
  padding: 66px 0 20px;
  background: linear-gradient(135deg, var(--neutral-900), #3a1d12 58%, var(--primary-700));
  color: #fff;
}

.search-hero-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.search-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.search-box {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 26px;
}

.search-hero input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border-radius: 18px;
}

.search-results-empty {
  padding: 36px;
  border-radius: var(--radius-xl);
  background: #fff;
  color: var(--neutral-600);
  text-align: center;
}

.site-footer {
  margin-top: 70px;
  color: var(--neutral-300);
  background: var(--neutral-900);
}

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

.footer-logo .logo-text {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 480px;
  margin: 16px 0 0;
  color: var(--neutral-400);
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

.footer-link-grid {
  display: grid;
  gap: 10px;
}

.footer-link-grid a {
  color: var(--neutral-300);
  transition: color 0.18s ease;
}

.footer-link-grid a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--neutral-500);
  text-align: center;
}

[data-movie-card].is-hidden {
  display: none;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .detail-side {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .header-search {
    display: none;
  }

  .hero-section {
    min-height: 560px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-control {
    display: none;
  }

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

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

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

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

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

  .rank-action {
    display: none;
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
  }

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

  .hero-section {
    height: 620px;
  }

  .hero-tags span {
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    text-align: center;
  }

  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .card-body {
    padding: 12px;
  }

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

  .info-list div {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .search-box {
    flex-direction: column;
  }
}
