:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --amber: #f59e0b;
  --blue: #2563eb;
  --green: #16a34a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.22);
  --radius-lg: 18px;
  --radius-xl: 26px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-900);
  background: var(--gray-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.95);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--orange);
  white-space: nowrap;
}
.brand {
  font-size: 24px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
  font-size: 14px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.main-nav a {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--orange);
}
.header-search {
  display: flex;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  min-width: 290px;
}
.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 16px;
  background: transparent;
}
.header-search button,
.search-panel button,
.filter-panel button {
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: var(--orange);
  padding: 10px 18px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}
.header-search button:hover,
.search-panel button:hover,
.filter-panel button:hover {
  background: var(--orange-dark);
}
.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
  color: var(--gray-900);
  font-size: 22px;
}
.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 14px 16px 18px;
  background: var(--white);
}
.mobile-panel.is-open {
  display: block;
}
.mobile-panel form {
  display: flex;
  margin-bottom: 12px;
}
.mobile-panel input {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  padding: 10px 12px;
}
.mobile-panel button {
  border: 0;
  border-radius: 0 12px 12px 0;
  padding: 10px 14px;
  color: var(--white);
  background: var(--orange);
}
.mobile-panel nav {
  display: grid;
  gap: 8px;
}
.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-50);
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(115deg, #ea580c 0%, #dc2626 58%, #7f1d1d 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(to top, var(--gray-50), transparent);
}
.hero-slide {
  display: none;
  min-height: 560px;
  align-items: center;
  padding: 76px 0 110px;
}
.hero-slide.is-active {
  display: flex;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 48px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-weight: 800;
  color: #ffedd5;
}
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero p {
  max-width: 720px;
  margin: 0;
  color: #ffedd5;
  font-size: clamp(18px, 2vw, 24px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button.primary {
  color: var(--orange);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}
.hero-poster-wrap {
  position: relative;
  z-index: 2;
  padding: 18px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  transform: rotate(2deg);
}
.hero-poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
}
.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-tags span,
.detail-tags span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
}
.hero-controls {
  position: absolute;
  z-index: 3;
  bottom: 48px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}
.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.36);
  transition: width 0.2s ease, background 0.2s ease;
}
.hero-dot.is-active {
  width: 58px;
  background: var(--white);
}
.feature-strip {
  position: relative;
  z-index: 4;
  margin-top: -72px;
  margin-bottom: 64px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card,
.movie-card,
.rank-panel,
.detail-card,
.side-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.feature-card,
.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover,
.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
}
.feature-card-img {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.feature-card-img img,
.movie-card img,
.rank-row img,
.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.feature-card:hover img,
.movie-card:hover img,
.related-card:hover img {
  transform: scale(1.08);
}
.feature-card-img::after,
.poster-link::after,
.related-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 62%);
}
.feature-badge,
.card-year {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  background: rgba(234, 88, 12, 0.94);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}
.feature-card-body,
.movie-card-body {
  padding: 18px;
}
.feature-card-body h2,
.movie-card h3,
.related-card h3 {
  margin: 0;
  line-height: 1.35;
}
.feature-card-body p,
.movie-card p {
  color: var(--gray-600);
  margin: 10px 0 14px;
}
.section {
  padding: 26px 0 58px;
}
.section.white {
  background: var(--white);
}
.section.soft-orange {
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
}
.section.soft-green {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}
.section-desc {
  margin: 8px 0 0;
  color: var(--gray-600);
}
.more-link {
  color: var(--orange);
  font-weight: 900;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.movie-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #111827;
}
.movie-card h3 {
  font-size: 16px;
}
.movie-card h3 a:hover {
  color: var(--orange);
}
.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-500);
  font-size: 12px;
}
.wide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.wide-card {
  display: grid;
  grid-template-columns: 132px 1fr;
}
.wide-card .poster-link {
  aspect-ratio: auto;
  min-height: 190px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  min-height: 170px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.category-card:nth-child(4n+1) {
  background: linear-gradient(135deg, #ef4444, #f97316);
}
.category-card:nth-child(4n+2) {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}
.category-card:nth-child(4n+3) {
  background: linear-gradient(135deg, #16a34a, #14b8a6);
}
.category-card:nth-child(4n+4) {
  background: linear-gradient(135deg, #f59e0b, #eab308);
}
.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 26px;
}
.category-card p {
  margin: 0;
  opacity: 0.92;
}
.rank-panel {
  padding: 20px;
}
.rank-list {
  display: grid;
  gap: 12px;
}
.rank-row {
  display: grid;
  grid-template-columns: 50px 72px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.rank-row:hover {
  background: var(--gray-50);
  transform: translateX(4px);
}
.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--gray-600);
  background: var(--gray-100);
  font-weight: 900;
}
.rank-row.top-rank .rank-number {
  color: var(--white);
  background: linear-gradient(135deg, #facc15, #f97316);
}
.rank-row img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
}
.rank-content {
  min-width: 0;
}
.rank-content strong {
  display: block;
  font-size: 17px;
}
.rank-content em {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rank-year {
  color: var(--gray-500);
  font-weight: 700;
}
.page-hero {
  padding: 72px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.20), transparent 26%),
    linear-gradient(115deg, var(--orange), var(--red));
}
.page-hero.blue {
  background: linear-gradient(115deg, #2563eb, #06b6d4);
}
.page-hero.green {
  background: linear-gradient(115deg, #16a34a, #14b8a6);
}
.page-hero h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.12;
}
.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}
.search-panel,
.filter-panel {
  display: flex;
  gap: 12px;
  padding: 18px;
  margin: -34px auto 40px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 3;
}
.search-panel input,
.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 10px 14px;
  outline: 0;
  background: var(--white);
}
.search-panel input,
.filter-panel input {
  flex: 1;
}
.filter-panel select {
  min-width: 150px;
}
.detail-shell {
  padding: 36px 0 64px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--gray-600);
  font-size: 14px;
}
.breadcrumb a:hover {
  color: var(--orange);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(290px, 0.9fr);
  gap: 30px;
}
.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-lg);
}
.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}
.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.player-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 42px rgba(234, 88, 12, 0.44);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}
.detail-card {
  padding: 26px;
  margin-top: 22px;
}
.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
}
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gray-100);
}
.detail-section {
  margin-top: 24px;
}
.detail-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
.detail-section p {
  color: var(--gray-700);
  margin: 0 0 12px;
}
.detail-tags a,
.detail-tags span {
  color: var(--gray-700);
  background: var(--gray-100);
}
.detail-tags a:first-child {
  color: #9a3412;
  background: #ffedd5;
}
.review-box {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
}
.side-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 20px;
}
.side-panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
}
.related-list {
  display: grid;
  gap: 16px;
}
.related-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 13px;
}
.related-card figure {
  position: relative;
  overflow: hidden;
  width: 86px;
  height: 116px;
  margin: 0;
  border-radius: 12px;
  background: #111827;
}
.related-card h3 {
  font-size: 15px;
}
.related-card p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 12px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.search-results-empty {
  padding: 36px;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.site-footer {
  background: #111827;
  color: #d1d5db;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0;
}
.site-footer h2 {
  color: var(--white);
  font-size: 18px;
  margin: 0 0 14px;
}
.site-footer p {
  margin: 14px 0 0;
  color: #9ca3af;
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-links a {
  color: #9ca3af;
}
.footer-links a:hover {
  color: #fb923c;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}
.hidden-card {
  display: none !important;
}
@media (max-width: 1060px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .movie-grid.four,
  .wide-list,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .side-panel {
    position: static;
  }
}
@media (max-width: 860px) {
  .main-nav,
  .header-search {
    display: none;
  }
  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-poster-wrap {
    max-width: 360px;
    transform: none;
  }
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-strip {
    margin-top: -48px;
  }
  .search-panel,
  .filter-panel {
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }
  .brand {
    font-size: 19px;
  }
  .hero,
  .hero-slide {
    min-height: 640px;
  }
  .hero-slide {
    padding: 48px 0 120px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
  .movie-grid,
  .movie-grid.four,
  .wide-list,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .wide-card {
    display: block;
  }
  .wide-card .poster-link {
    aspect-ratio: 2 / 3;
  }
  .rank-row {
    grid-template-columns: 42px 58px 1fr;
  }
  .rank-row img {
    width: 58px;
    height: 78px;
  }
  .rank-year {
    display: none;
  }
  .detail-card {
    padding: 20px;
  }
}
