* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1e293b;
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 48%, #fffbeb 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.35);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.nav-link {
  color: #cbd5e1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  transform: translateY(-1px);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 10px 14px;
  border-radius: 10px;
  color: #e2e8f0;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-slider {
  position: relative;
  min-height: 75vh;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 56px;
  width: 100%;
  padding: 96px max(24px, calc((100vw - 1180px) / 2)) 84px;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: inherit;
  filter: blur(22px);
  transform: scale(1.08);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55)), linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.38));
}

.hero-content,
.hero-cover {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: #fb923c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content h1 span,
.section-heading h2,
.page-hero h1 {
  background: linear-gradient(90deg, #fb923c, #ef4444, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 720px;
  margin: 24px 0;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.75;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.35);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.hero-cover {
  width: min(100%, 370px);
  justify-self: center;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #0f172a;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

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

.section-white {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: #ffffff;
}

.section-gradient {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #fb923c 0%, #ef4444 52%, #be123c 100%);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p:last-child {
  margin: 0;
  color: #64748b;
  font-size: 17px;
  line-height: 1.7;
}

.section-heading.light h2,
.section-heading.light p,
.section-heading.light .eyebrow {
  color: #ffffff;
  background: none;
}

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

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

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

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

.movie-card {
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e2e8f0;
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
  transition: opacity 0.25s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.hover-line {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  color: #ffffff;
  opacity: 0;
  font-size: 13px;
  line-height: 1.45;
  transition: opacity 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h2 {
  min-height: 45px;
  margin: 0 0 8px;
  color: #1e293b;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
}

.card-body h2 a:hover {
  color: #ea580c;
}

.card-meta {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

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

.category-card,
.category-overview-card a {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 184px;
  border-radius: 22px;
  padding: 22px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.category-card img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card::after,
.category-overview-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.42));
}

.category-card span,
.category-overview-card div {
  position: relative;
  z-index: 2;
}

.category-name,
.category-overview-card h2 {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card:hover img,
.category-overview-card a:hover img {
  opacity: 0.4;
  transform: scale(1.08);
}

.two-column-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-list a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.rank-list span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.rank-list strong {
  color: #1e293b;
  font-size: 15px;
}

.rank-list em {
  color: #f97316;
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}

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

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.35), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b 58%, #111827);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 86px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.75;
}

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

.category-overview-card a {
  min-height: 260px;
}

.category-overview-card p {
  max-width: 480px;
  color: #e2e8f0;
  line-height: 1.7;
}

.category-overview-card span {
  color: #fed7aa;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 30px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.filter-item {
  display: grid;
  gap: 7px;
}

.filter-item label {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-item input,
.filter-item select {
  width: 100%;
  height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0 14px;
  color: #1e293b;
  background: #ffffff;
  outline: none;
}

.filter-item input:focus,
.filter-item select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-reset {
  height: 46px;
  color: #ffffff;
  background: #0f172a;
}

.empty-message {
  display: none;
  margin: 24px 0;
  padding: 20px;
  border-radius: 16px;
  color: #9a3412;
  text-align: center;
  background: #ffedd5;
}

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

.detail-hero {
  position: relative;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: inherit;
  filter: blur(22px);
  transform: scale(1.08);
}

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55)), linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.45));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fb923c;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-cover {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.46);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #0f172a;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.75;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-info .primary-btn {
  margin-top: 26px;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 34px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
  z-index: 3;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.45);
  font-size: 28px;
}

.player-overlay strong {
  max-width: 80%;
  font-size: 20px;
}

.detail-article {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.detail-article h2 {
  margin: 0 0 12px;
  color: #1e293b;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 16px;
  line-height: 1.85;
}

.detail-article p:last-child {
  margin-bottom: 0;
}

.ranking-page {
  width: min(1280px, calc(100% - 32px));
  grid-template-columns: 0.45fr 1fr;
}

.large-rank-list {
  position: sticky;
  top: 90px;
}

.site-footer {
  color: #e2e8f0;
  background: linear-gradient(90deg, #1e293b, #0f172a, #1e293b);
}

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

.footer-logo {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fb923c;
  font-size: 17px;
}

.site-footer p,
.site-footer li {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.75;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.16);
  color: #94a3b8;
  text-align: center;
  font-size: 13px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.3);
}

.back-top.is-visible {
  display: grid;
  place-items: center;
}

@media (max-width: 1120px) {
  .featured-grid,
  .all-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 78vh;
    padding-top: 78px;
    gap: 26px;
  }

  .hero-cover {
    width: 220px;
    justify-self: start;
  }

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

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

  .two-column-section,
  .ranking-page,
  .detail-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(260px, 100%);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .large-rank-list {
    position: static;
  }
}

@media (max-width: 560px) {
  .logo-text {
    font-size: 17px;
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .section {
    padding: 46px 0;
  }

  .section-white,
  .section-gradient {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .movie-grid {
    gap: 16px;
  }

  .card-body {
    padding: 13px;
  }

  .card-body h2 {
    font-size: 15px;
  }

  .rank-list a {
    grid-template-columns: 38px 1fr;
  }

  .rank-list em {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
