:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --red: #dc2626;
  --red-dark: #991b1b;
  --orange: #f97316;
  --amber: #facc15;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-width: 320px;
}

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.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.24);
}

.logo-text {
  letter-spacing: 0.02em;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--red);
  background: #fef2f2;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  padding: 6px;
  border-radius: 999px;
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px 8px 14px;
}

.header-search button,
.primary-btn,
.search-panel button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.primary-btn:hover,
.search-panel button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.3);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111827;
  margin: 5px auto;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.55s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(90deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.55));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 70px;
  align-items: center;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: var(--red);
  background: #fff1f2;
  border-color: #fecdd3;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 760px;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 28px;
  color: #fee2e2;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag-row span {
  background: #fff7ed;
  color: #c2410c;
}

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

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  transition: 0.2s ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.dark-ghost {
  color: var(--red);
  border-color: #fecdd3;
  background: #fff;
}

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

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

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

.hero-poster span,
.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  color: var(--red);
  background: #fff;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

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

.hero-prev {
  left: 26px;
}

.hero-next {
  right: 26px;
}

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

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

.hero-dot.is-active {
  width: 36px;
  background: #fff;
}

.site-stats {
  width: min(980px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.site-stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.site-stats strong {
  display: block;
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
}

.site-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

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

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

.section-head h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.text-link {
  color: var(--red);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #f97316);
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 58%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .movie-thumb::after {
  opacity: 1;
}

.movie-play {
  width: 48px;
  height: 48px;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover,
.rank-title:hover {
  color: var(--red);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

.movie-card p {
  display: -webkit-box;
  min-height: 66px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #4b5563;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.movie-card-horizontal .movie-thumb {
  height: 100%;
  aspect-ratio: auto;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: stretch;
}

.feature-panel,
.page-hero,
.detail-card,
.side-card,
.player-card,
.search-panel,
.category-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.feature-panel {
  padding: 44px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
}

.feature-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
}

.feature-panel p {
  color: #fee2e2;
  line-height: 1.8;
}

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

.category-pill-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 18px;
  border-radius: 22px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  transition: 0.2s ease;
}

.category-pill-grid a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  transform: translateY(-3px);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

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

.rank-cover {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #f97316);
}

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

.rank-title {
  display: block;
  font-weight: 900;
  line-height: 1.35;
}

.rank-item p {
  display: -webkit-box;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 60px;
  text-align: center;
  background: linear-gradient(135deg, #fff, #fff7ed);
}

.page-hero p {
  max-width: 780px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.centered-actions {
  justify-content: center;
}

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

.category-card {
  overflow: hidden;
}

.category-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #7f1d1d, #f97316);
  overflow: hidden;
}

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

.category-card-body {
  padding: 22px;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

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

.search-shell {
  padding-top: 36px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 150px auto;
  gap: 12px;
  padding: 18px;
}

.search-panel input,
.search-panel select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  outline: 0;
  background: #fff;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-tabs,
.search-sort,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.search-tabs button,
.search-sort button,
.pagination button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 800;
}

.search-tabs button.is-active,
.search-sort button.is-active,
.pagination button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.search-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.search-result-head h2 {
  margin: 0;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  padding: 14px;
  border-radius: 28px;
  background: #111827;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.32), rgba(0, 0, 0, 0.55));
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: var(--red);
  background: #fff;
  font-size: 1.55rem;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  transform: translateX(-50%);
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.85);
}

.detail-card {
  padding: 30px;
}

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

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #c2410c;
  background: #fff7ed;
  font-weight: 800;
}

.lead-text {
  color: #1f2937;
  font-size: 1.12rem;
  line-height: 1.8;
  font-weight: 700;
}

.detail-tags {
  margin: 18px 0 28px;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

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

.detail-side {
  position: sticky;
  top: 96px;
}

.side-card {
  padding: 20px;
}

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

.side-rank-list .rank-item {
  grid-template-columns: 38px 96px minmax(0, 1fr);
  padding: 8px;
  box-shadow: none;
}

.side-rank-list .rank-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 0.82rem;
}

.more-section {
  padding-top: 40px;
}

.site-footer {
  margin-top: 76px;
  background: #111827;
  color: #d1d5db;
}

.footer-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  color: #fff;
}

.footer-brand p {
  max-width: 460px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.05rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: #9ca3af;
}

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

  .hero-content,
  .detail-layout,
  .split-section,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 300px;
    transform: none;
  }

  .hero-poster img {
    min-height: 300px;
  }

  .four-cols,
  .three-cols,
  .rank-list-large,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    border-radius: 14px;
  }

  .hero-carousel {
    min-height: 780px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 76px 0 88px;
  }

  .hero-control {
    display: none;
  }

  .site-stats,
  .four-cols,
  .three-cols,
  .rank-list-large,
  .category-grid,
  .category-pill-grid,
  .horizontal-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .site-stats {
    margin-top: 18px;
  }

  .section-head,
  .search-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-section {
    padding-top: 48px;
  }

  .page-hero {
    padding: 36px 20px;
  }

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 96px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-num {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .detail-card {
    padding: 22px;
  }

  .footer-wrap {
    padding-top: 42px;
  }
}
