:root {
  --brand-red: #dc2626;
  --brand-orange: #ea580c;
  --brand-yellow: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --dark: #111827;
  --dark-soft: #1f2937;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

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: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.header-inner {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-red);
}

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

.header-search input,
.mobile-search input,
.search-input {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 16px;
  min-width: 240px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand-red);
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  background: #374151;
  margin: 6px 0;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 20px 22px;
  background: #ffffff;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-search input {
  min-width: 0;
  width: 100%;
}

.mobile-nav {
  display: grid;
  gap: 10px;
}

.page-main {
  min-height: 60vh;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(234, 88, 12, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 700px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 640px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.75;
  margin: 0 0 22px;
}

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

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 13px;
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-weight: 800;
}

.hero-meta span:first-child {
  color: #111827;
  background: var(--brand-yellow);
}

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

.primary-button,
.ghost-button,
.text-link,
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  padding: 13px 26px;
  background: var(--brand-red);
  box-shadow: 0 16px 30px rgba(220, 38, 38, 0.3);
}

.primary-button:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.soft-button {
  color: var(--brand-red);
  background: #fff1f2;
  padding: 12px 20px;
}

.soft-button:hover {
  color: #ffffff;
  background: var(--brand-red);
}

.text-link {
  color: var(--brand-red);
  font-size: 15px;
}

.text-link:hover {
  color: #991b1b;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
  transform: rotate(2deg);
}

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

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

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

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f9fafb, #ffffff);
}

.section-red {
  background: #fff1f2;
}

.section-dark {
  color: #ffffff;
  background: #111827;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

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

.section-dark .section-desc {
  color: #d1d5db;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  background: #e5e7eb;
  box-shadow: var(--shadow);
}

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

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

.rating {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand-yellow);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  border-radius: 12px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
}

.movie-card-body {
  padding-top: 14px;
}

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

.movie-card h3 a {
  transition: color 0.2s ease;
}

.movie-card h3 a:hover {
  color: var(--brand-red);
}

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

.movie-line {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
}

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

.tag-row span {
  color: #991b1b;
  background: #fee2e2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #000000;
}

.feature-card .poster-link {
  border-radius: 0;
  box-shadow: none;
}

.feature-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 26px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.58), transparent);
}

.feature-overlay h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.feature-overlay p {
  margin: 0 0 14px;
  color: #e5e7eb;
  line-height: 1.7;
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 30px;
}

.category-strip a,
.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  color: #374151;
  background: #ffffff;
  border: 1px solid #fee2e2;
  padding: 11px 18px;
  font-weight: 900;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-strip a:hover,
.category-pill:hover,
.category-pill.active {
  color: #ffffff;
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-1px);
}

.category-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 25px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-card span {
  display: inline-flex;
  color: var(--brand-red);
  font-weight: 900;
  margin-top: 18px;
}

.page-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 80% 0%, rgba(234, 88, 12, 0.18), transparent 32%),
    linear-gradient(180deg, #fff7ed, #ffffff);
}

.page-hero.dark {
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 12%, rgba(234, 88, 12, 0.28), transparent 28%),
    linear-gradient(135deg, #111827, #1f2937);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.page-hero.dark .breadcrumb {
  color: #d1d5db;
}

.breadcrumb a {
  color: var(--brand-red);
  font-weight: 900;
}

.page-title {
  margin: 0;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.page-summary {
  margin: 18px 0 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.page-hero.dark .page-summary {
  color: #e5e7eb;
}

.filter-panel {
  margin: 28px 0 36px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.07);
  display: grid;
  grid-template-columns: 1fr 220px 180px;
  gap: 14px;
}

.filter-panel select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #ffffff;
}

.no-results {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #fca5a5;
  border-radius: 24px;
  background: #fff7ed;
}

.no-results.show {
  display: block;
}

.wide-list {
  display: grid;
  gap: 18px;
}

.wide-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
}

.wide-cover {
  display: block;
  min-height: 210px;
  background: #e5e7eb;
}

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

.wide-info {
  padding: 18px 18px 18px 0;
}

.wide-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.wide-top span {
  color: #991b1b;
  background: #fee2e2;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.wide-top .wide-rank {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.wide-info h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.wide-info p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.2));
  z-index: 2;
}

.player-overlay.hidden {
  display: none;
}

.play-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 32px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.38);
  cursor: pointer;
}

.player-info {
  padding: 24px;
}

.player-info h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.player-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.detail-card {
  padding: 28px;
  margin-top: 24px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
}

.detail-meta {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
}

.detail-meta div {
  display: flex;
  gap: 12px;
  color: #374151;
}

.detail-meta strong {
  width: 72px;
  color: var(--ink);
  flex-shrink: 0;
}

.side-card {
  padding: 20px;
  margin-bottom: 20px;
}

.side-poster {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

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

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

.side-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}

.side-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.side-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.inline-links a {
  color: var(--brand-red);
  font-weight: 900;
}

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

.latest-horizontal .poster-link {
  aspect-ratio: 16 / 10;
}

.section-dark .movie-card h3 a,
.section-dark .movie-meta,
.section-dark .movie-line {
  color: #ffffff;
}

.section-dark .movie-line,
.section-dark .movie-meta {
  color: #d1d5db;
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr 260px;
    gap: 28px;
  }

  .grid-4,
  .grid-5,
  .latest-horizontal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .side-card.related-side {
    display: none;
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

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

  .hero {
    height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }

  .hero-poster {
    width: 210px;
    transform: none;
  }

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

  .section {
    padding: 50px 0;
  }

  .section-head {
    display: block;
  }

  .grid-3,
  .grid-4,
  .grid-5,
  .latest-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    padding: 48px 0 34px;
  }

  .wide-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .wide-cover {
    min-height: 170px;
  }

  .wide-info {
    padding: 14px 14px 14px 0;
  }

  .wide-info h3 {
    font-size: 19px;
  }

  .wide-info p {
    font-size: 14px;
  }

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

@media (max-width: 480px) {
  .container,
  .hero-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .grid-3,
  .grid-4,
  .grid-5,
  .latest-horizontal {
    gap: 16px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-line {
    display: none;
  }

  .tag-row span:nth-child(n + 3) {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
