:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #ea580c;
  --yellow: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: var(--gray-50);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

.brand-name {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--gray-700);
  font-weight: 700;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--red);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 300px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select,
.search-main input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-main input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.header-search button,
.mobile-search button,
.btn,
.search-main button {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gray-900);
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 16px;
  background: var(--white);
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
  color: var(--gray-700);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(180deg, #111827, #1f2937);
}

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

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

.hero-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.32);
  transform: scale(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.48), rgba(17, 24, 39, 0.72));
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.section {
  padding: 72px 0;
}

.section.white {
  background: var(--white);
}

.section.soft {
  background: linear-gradient(180deg, var(--gray-50), var(--white));
}

.section.red-soft {
  background: #fff7ed;
}

.section.dark {
  color: var(--white);
  background: var(--gray-900);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 34px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-title .mark {
  color: var(--red);
}

.section-lead {
  max-width: 780px;
  margin: -18px 0 34px;
  color: var(--gray-500);
  font-size: 18px;
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  border-radius: 24px;
  color: var(--white);
  box-shadow: var(--shadow);
  background: var(--gray-900);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.20);
}

.feature-card img {
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease;
}

.feature-card:hover img {
  transform: scale(1.08);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.88));
}

.feature-card-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 25px;
}

.feature-card p {
  margin: 0;
  color: #e5e7eb;
}

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

.movie-card {
  min-width: 0;
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: var(--gray-200);
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.12);
}

.movie-poster img {
  transition: transform 0.32s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--white);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h3 a:hover,
.wide-info h3 a:hover,
.rank-title:hover {
  color: var(--red);
}

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

.movie-desc {
  margin: 0;
  color: var(--gray-700);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 18px;
  margin-bottom: 20px;
}

.category-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  font-weight: 800;
}

.category-pill:hover {
  color: var(--white);
  background: var(--red);
}

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

.category-card {
  display: block;
  min-height: 170px;
  border-radius: 22px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.20);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #111827, #374151);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.20);
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

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

.wide-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.wide-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 15px;
}

.wide-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.wide-info p {
  margin: 0 0 10px;
  color: var(--gray-600, #4b5563);
}

.mini-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--red-dark);
  background: #fee2e2;
  font-size: 13px;
  font-weight: 800;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-num {
  color: #fbbf24;
  font-size: 22px;
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

.rank-meta {
  color: #d1d5db;
  font-size: 14px;
}

.page-hero {
  padding: 76px 0;
  color: var(--white);
  background: radial-gradient(circle at 15% 10%, rgba(234, 88, 12, 0.55), transparent 35%), linear-gradient(135deg, #111827, #1f2937 55%, #991b1b);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #e5e7eb;
  font-size: 19px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px 170px 170px;
  gap: 14px;
  padding: 20px;
  margin-bottom: 28px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 18px;
  color: var(--gray-700);
  background: var(--white);
  text-align: center;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-size: 15px;
}

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

.detail-shell {
  padding: 46px 0 72px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 38px;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

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

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

.detail-one {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 20px;
}

.content-card {
  padding: 26px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.content-stack {
  display: grid;
  gap: 22px;
}

.player-section {
  margin: 42px 0;
}

.video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 16px 26px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(220, 38, 38, 0.30);
}

.play-overlay.is-hidden {
  display: none;
}

.search-main {
  max-width: 820px;
  margin-bottom: 34px;
}

.search-main form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

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

.site-footer {
  color: var(--white);
  background: var(--gray-900);
}

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

.footer-logo .brand-name {
  color: var(--white);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p,
.footer-keywords,
.site-footer a,
.footer-bottom {
  color: #d1d5db;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px 16px;
  text-align: center;
}

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

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

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

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

  .rank-layout,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .brand-name {
    font-size: 20px;
  }

  .hero {
    height: 640px;
  }

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

  .hero p {
    font-size: 17px;
  }

  .section {
    padding: 48px 0;
  }

  .featured-grid,
  .movie-grid,
  .wide-grid,
  .search-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: 110px 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 1fr;
  }

  .rank-meta {
    grid-column: 2;
  }

  .filter-panel,
  .search-main form {
    grid-template-columns: 1fr;
  }
}

.sample-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--gray-700);
}

.sample-list li + li {
  margin-top: 8px;
}

.sample-list a:hover {
  color: var(--red);
}
