* {
  box-sizing: border-box;
}

:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-900: #7c2d12;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange-600), var(--orange-500));
  box-shadow: 0 10px 25px rgba(124, 45, 18, 0.18);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1280px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
}

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

.brand:hover {
  opacity: 0.86;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--orange-600);
  background: #ffffff;
  font-size: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
}

.main-nav a {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover {
  color: var(--orange-100);
}

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

.nav-search input,
.mobile-search input,
.search-page-form input {
  width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  outline: none;
  border-radius: 999px;
  padding: 9px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.search-page-form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--orange-700);
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.mobile-panel {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1280px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 48px 0 70px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 16px;
  color: #ffffff;
  background: var(--orange-600);
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  max-width: 840px;
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-info p {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
}

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

.btn-primary,
.btn-ghost,
.section-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  padding: 12px 24px;
  color: #ffffff;
  background: var(--orange-600);
  box-shadow: 0 18px 30px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--orange-700);
}

.btn-ghost {
  padding: 11px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.5);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.home-search-band,
.content-section,
.page-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: -34px;
  position: relative;
  z-index: 3;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-strong);
}

.home-search-band h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.home-search-band p {
  margin: 0;
  color: var(--gray-500);
}

.home-search-band form {
  display: flex;
  gap: 8px;
}

.home-search-band input {
  width: min(420px, 42vw);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
}

.home-search-band button {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  color: #ffffff;
  background: var(--orange-600);
  cursor: pointer;
  font-weight: 800;
}

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

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.section-link,
.text-link {
  padding: 9px 15px;
  color: var(--orange-700);
  background: var(--orange-100);
}

.section-link:hover,
.text-link:hover {
  color: #ffffff;
  background: var(--orange-600);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--orange-100), var(--gray-200));
}

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

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

.year-badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.year-badge {
  top: 10px;
  left: 10px;
  padding: 5px 10px;
}

.type-badge {
  right: 10px;
  bottom: 10px;
  padding: 5px 10px;
  background: var(--orange-600);
}

.rank-badge {
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--orange-600), #facc15);
  box-shadow: 0 12px 22px rgba(234, 88, 12, 0.35);
}

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

.movie-card-title {
  display: block;
  margin-bottom: 6px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

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

.movie-meta {
  margin: 0 0 8px;
  color: var(--gray-500);
  font-size: 14px;
}

.movie-line {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-700);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--orange-700);
  background: var(--orange-50);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card,
.category-overview-card,
.feature-panel,
.side-rank,
.detail-copy,
.player-section,
.intro-copy {
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.category-card,
.category-overview-card {
  display: block;
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-name,
.category-overview-title {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-900);
  font-size: 21px;
  font-weight: 900;
}

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

.category-mini-list {
  display: grid;
  gap: 8px;
}

.category-mini-list a,
.category-overview-card li,
.side-rank li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray-700);
}

.category-mini-list span,
.category-overview-card span,
.side-rank span {
  color: var(--orange-600);
  font-weight: 800;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.feature-panel {
  min-height: 360px;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gray-900), var(--orange-900));
}

.feature-panel h2,
.side-rank h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.15;
}

.feature-panel p {
  max-width: 520px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
}

.side-rank {
  padding: 28px;
}

.side-rank ol,
.category-overview-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.page-hero {
  margin-top: 34px;
  overflow: hidden;
  border-radius: 28px;
  padding: 52px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gray-900), var(--orange-900));
  box-shadow: var(--shadow-strong);
}

.page-hero span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 14px;
  color: #ffffff;
  background: var(--orange-600);
  font-weight: 900;
}

.search-page-form {
  max-width: 720px;
}

.search-page-form input {
  width: 100%;
  color: #ffffff;
}

.local-filter-box {
  margin-top: 18px;
}

.local-filter-box input {
  width: min(560px, 100%);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: none;
  padding: 13px 18px;
  background: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  color: var(--gray-500);
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  overflow: hidden;
  border-radius: 28px;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gray-900), var(--orange-900));
  box-shadow: var(--shadow-strong);
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 28px 45px rgba(0, 0, 0, 0.32);
}

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

.detail-info p {
  color: rgba(255, 255, 255, 0.86);
}

.detail-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.detail-meta-list li {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.09);
}

.detail-meta-list span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.detail-meta-list strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
}

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

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.player-section,
.detail-copy,
.intro-copy {
  padding: 28px;
}

.player-section h2,
.detail-copy h2,
.intro-copy h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.25;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.3), rgba(0, 0, 0, 0.68));
  cursor: pointer;
}

.player-box.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: var(--orange-600);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.detail-copy p,
.intro-copy p {
  margin: 0 0 20px;
  color: var(--gray-700);
  font-size: 17px;
  white-space: pre-line;
}

.site-footer {
  margin-top: 60px;
  color: rgba(255, 255, 255, 0.8);
  background: var(--gray-900);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  background: var(--orange-600);
}

.is-hidden-by-filter {
  display: none !important;
}

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

  .nav-toggle {
    display: inline-flex;
  }

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

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

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

  .hero-carousel {
    height: 520px;
  }

  .hero-content {
    padding-bottom: 76px;
  }

  .home-search-band,
  .feature-layout,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .home-search-band form {
    flex-direction: column;
  }

  .home-search-band input {
    width: 100%;
  }

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

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

@media (max-width: 560px) {
  .nav-wrap,
  .mobile-panel,
  .home-search-band,
  .content-section,
  .page-main,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

  .brand span:last-child {
    font-size: 18px;
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-control {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-search-band,
  .page-hero,
  .detail-hero {
    padding: 22px;
    border-radius: 22px;
  }

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

  .movie-grid,
  .movie-grid-small,
  .category-grid,
  .category-overview-grid,
  .detail-meta-list {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .movie-card-compact .poster-link {
    height: 100%;
    min-height: 178px;
  }
}
