* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: #f9fafb;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ea580c;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.3);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: #4b5563;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ea580c;
}

.nav-link:hover {
  transform: translateY(-1px);
}

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

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

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg,
.hero-bg img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  background:
    radial-gradient(circle at 16% 18%, rgba(251, 146, 60, 0.64), transparent 34%),
    linear-gradient(100deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.78) 38%, rgba(251, 146, 60, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 72px 0 116px;
}

.eyebrow,
.section-heading span,
.page-hero span,
.category-block-head span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ea580c;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 22px 0 20px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.primary-btn,
.ghost-btn,
.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;
}

.primary-btn {
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.primary-btn.small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.primary-btn.full {
  width: 100%;
}

.ghost-btn {
  min-height: 46px;
  padding: 0 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  aspect-ratio: 2 / 3;
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.44));
}

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

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

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

.hero-dot.active {
  background: #f97316;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  width: min(720px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.28);
  transform: translateX(-50%);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #111827;
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  color: #ffffff;
  background: #ea580c;
  font-weight: 800;
  cursor: pointer;
}

.section {
  padding: 72px 0;
}

.soft-section {
  background: linear-gradient(135deg, #eff6ff, #f0fdfa);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.page-hero h1,
.category-block-head h2,
.detail-copy h1,
.detail-article h2,
.info-card h2 {
  margin: 14px 0 10px;
  color: #111827;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.page-hero p,
.category-block-head p {
  max-width: 760px;
  margin: 0;
  color: #6b7280;
  line-height: 1.8;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  color: #ea580c;
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.14);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
}

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

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

.region-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #f97316;
  font-size: 12px;
  font-weight: 800;
}

.region-pill {
  top: 12px;
  right: 12px;
  padding: 6px 9px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 30px;
  height: 30px;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta strong {
  color: #ea580c;
}

.movie-card h3 {
  min-height: 2.5em;
  margin: 10px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card p {
  flex: 1;
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

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

.compact-card .card-body {
  padding: 14px;
}

.compact-card p {
  display: none;
}

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

.category-card,
.category-block,
.info-card,
.detail-article {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.07);
}

.category-card {
  overflow: hidden;
}

.category-main {
  display: block;
  padding: 26px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.category-main span {
  color: #111827;
  font-size: 22px;
  font-weight: 850;
}

.category-main p {
  margin: 10px 0 0;
  color: #6b7280;
  line-height: 1.75;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 18px 26px 24px;
}

.category-samples a {
  color: #4b5563;
}

.category-samples a:hover {
  color: #ea580c;
}

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

.page-hero {
  padding: 64px 0 28px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.toolbar {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 18px;
  align-items: center;
}

.single-toolbar {
  grid-template-columns: minmax(240px, 520px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
}

.search-box span {
  color: #ea580c;
  font-weight: 850;
  background: transparent;
  padding: 0;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #111827;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active {
  color: #ffffff;
  background: #ea580c;
}

.category-block {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 30px;
  padding: 28px;
}

.category-block-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 68px 1fr minmax(210px, 320px) 90px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.11);
}

.rank-number {
  color: #ea580c;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 68px;
  height: 94px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-copy {
  display: grid;
  gap: 6px;
}

.rank-copy strong {
  color: #111827;
  font-size: 18px;
}

.rank-copy em {
  color: #6b7280;
  font-style: normal;
  line-height: 1.6;
}

.rank-tags {
  color: #4b5563;
  font-size: 14px;
}

.heat-score {
  justify-self: end;
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  font-weight: 850;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 26px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #ea580c;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  align-items: center;
  padding: 36px 0;
}

.detail-copy h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.detail-copy p {
  max-width: 820px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.large-tags span {
  padding: 8px 12px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.18);
  aspect-ratio: 2 / 3;
}

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

.player-section {
  padding-bottom: 48px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), rgba(15, 23, 42, 0.34));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.38);
  font-size: 34px;
}

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

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

.detail-article,
.info-card {
  padding: 28px;
}

.detail-article p {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.info-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.info-card li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.info-card span {
  color: #9ca3af;
}

.info-card strong {
  color: #111827;
  line-height: 1.6;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
  gap: 34px;
}

.footer-brand h2,
.footer-column h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-brand h2 {
  color: #fb923c;
}

.footer-brand p,
.footer-column p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column a {
  color: #d1d5db;
}

.footer-column a:hover {
  color: #fb923c;
}

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

[data-movie-card].is-hidden {
  display: none;
}

@media (max-width: 1060px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-content {
    grid-template-columns: 1fr 300px;
  }

  .rank-row {
    grid-template-columns: 48px 60px 1fr 80px;
  }

  .rank-tags {
    display: none;
  }
}

@media (max-width: 780px) {
  .top-nav {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 12px 0;
  }

  .brand {
    font-size: 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 11px 0;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 56px;
    padding-bottom: 130px;
  }

  .hero-poster {
    display: none;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(36px, 12vw, 56px);
  }

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

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button {
    min-height: 44px;
  }

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

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

  .category-block-head,
  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

  .rank-row {
    grid-template-columns: 42px 54px 1fr;
  }

  .heat-score {
    display: none;
  }
}

@media (max-width: 520px) {
  .container,
  .top-nav,
  .footer-inner,
  .category-block {
    width: min(100% - 20px, 1180px);
  }

  .section {
    padding: 48px 0;
  }

  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    border-radius: 20px;
  }

  .compact-card {
    display: grid;
    grid-template-columns: 112px 1fr;
  }

  .compact-card .poster-wrap {
    aspect-ratio: 2 / 3;
  }

  .compact-card p {
    display: block;
  }

  .page-hero {
    padding-top: 42px;
  }

  .player-frame {
    border-radius: 20px;
  }

  .detail-article,
  .info-card,
  .category-block {
    padding: 20px;
  }
}
