* {
  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: #111827;
  background: #fff7ed;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #f97316, #f59e0b, #eab308);
  box-shadow: 0 18px 38px rgba(194, 65, 12, 0.22);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: #f97316;
  box-shadow: 0 12px 22px rgba(255, 255, 255, 0.22);
  transition: transform 0.25s ease;
}

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

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: #ffedd5;
  font-size: 12px;
}

.site-search {
  flex: 1;
  max-width: 430px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-search:focus-within {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 237, 213, 0.45);
}

.site-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 11px 16px 11px 20px;
  background: transparent;
  color: #111827;
}

.site-search button {
  border: 0;
  background: #c2410c;
  color: #ffffff;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.site-search button:hover {
  background: #9a3412;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #ffffff;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff7ed;
  border-color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

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

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

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

.mobile-link {
  color: #ffffff;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-link.active,
.mobile-link:hover {
  background: rgba(255, 255, 255, 0.24);
}

.mobile-search {
  display: flex;
  max-width: none;
}

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #9a3412;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 1.1s ease;
}

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

.hero-slider::before,
.hero-slider::after,
.page-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(42px);
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-slider::before {
  left: 12%;
  top: -120px;
}

.hero-slider::after {
  right: 8%;
  bottom: -140px;
  animation-delay: 1.2s;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 60px;
  padding: 64px 0;
  color: #ffffff;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffedd5;
  font-weight: 800;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

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

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 34px);
  color: #fff7ed;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #fff7ed;
  font-size: 19px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.btn.primary {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 18px 30px rgba(255, 255, 255, 0.18);
}

.btn.primary:hover {
  background: #fff7ed;
}

.btn.secondary {
  background: rgba(124, 45, 18, 0.82);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(124, 45, 18, 0.2);
}

.btn.secondary:hover {
  background: #7c2d12;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(17, 24, 39, 0.38);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

.hero-poster span {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f97316;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

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

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

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

.content-section {
  padding: 72px 0;
}

.white-section {
  background: #ffffff;
}

.warm-section {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.category-section {
  background: linear-gradient(135deg, #faf5ff, #fff1f2, #fff7ed);
}

.rank-preview {
  background: linear-gradient(90deg, #eab308, #f97316, #ef4444);
}

.rank-preview .section-heading h2,
.rank-preview .section-heading p,
.rank-preview .section-more {
  color: #ffffff;
}

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

.section-heading > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  align-items: center;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #ffffff;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-heading p {
  margin: 4px 0 0;
  color: #6b7280;
}

.section-more {
  color: #ea580c;
  font-weight: 800;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

.poster-link {
  display: block;
}

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

.poster-wrap img {
  transition: transform 0.45s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
}

.play-chip {
  right: 12px;
  padding: 6px 10px;
  background: rgba(249, 115, 22, 0.92);
}

.rank-badge {
  left: 12px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #ea580c;
  font-size: 12px;
  font-weight: 800;
}

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

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

.movie-card p {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  background: #ffedd5;
  color: #ea580c;
}

.large-card .movie-card-body {
  padding: 20px;
}

.large-card h2 {
  font-size: 24px;
}

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

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

.category-tile {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  border-radius: 24px;
  overflow: hidden;
  padding: 24px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(154, 52, 18, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(154, 52, 18, 0.26);
}

.category-tile strong {
  font-size: 24px;
}

.category-tile span {
  color: #fff7ed;
  font-size: 14px;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #c2410c, #f59e0b);
  background-size: cover;
  background-position: center;
}

.compact-hero {
  padding: 84px 0;
}

.category-hero {
  padding: 76px 0;
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.filter-panel label {
  display: block;
  margin-bottom: 8px;
  color: #9a3412;
  font-weight: 900;
}

.page-filter {
  width: 100%;
  border: 2px solid #fed7aa;
  outline: 0;
  border-radius: 16px;
  padding: 13px 16px;
  background: #ffffff;
}

.page-filter:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffffff;
  font-weight: 800;
  border: 1px solid #fed7aa;
}

.filter-links a:hover {
  background: #f97316;
  color: #ffffff;
  border-color: #f97316;
}

.no-results {
  display: none;
  text-align: center;
  padding: 40px;
  color: #9a3412;
  font-weight: 900;
}

.detail-hero {
  min-height: 520px;
}

.detail-hero-inner {
  padding: 42px 0 64px;
}

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

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #fed7aa, #f97316);
}

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

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.score-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: #ffffff;
  color: #ea580c;
  font-size: 30px;
  box-shadow: 0 18px 36px rgba(255, 255, 255, 0.18);
}

.score-row span,
.score-row em {
  color: #fff7ed;
  font-style: normal;
  font-weight: 800;
}

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

.player-card,
.movie-article,
.info-card,
.side-rank,
.related-section {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.player-card {
  overflow: hidden;
  margin-bottom: 26px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.62));
  cursor: pointer;
  z-index: 2;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f97316;
  font-size: 34px;
  box-shadow: 0 22px 44px rgba(249, 115, 22, 0.32);
  transition: transform 0.25s ease;
}

.player-overlay:hover .play-circle {
  transform: scale(1.08);
}

.play-action {
  margin: 18px;
}

.movie-article {
  padding: 26px;
  margin-bottom: 26px;
}

.movie-article h2,
.info-card h2,
.side-rank h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.movie-article p {
  color: #374151;
  margin: 0 0 20px;
  font-size: 17px;
}

.related-section {
  padding: 24px;
}

.info-card,
.side-rank {
  padding: 22px;
  margin-bottom: 24px;
}

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

.info-card li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #ffedd5;
}

.info-card li:last-child {
  border-bottom: 0;
}

.info-card span {
  color: #9a3412;
  font-weight: 800;
}

.info-card strong {
  text-align: right;
  color: #111827;
}

.side-rank .movie-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  margin-bottom: 12px;
  border-radius: 16px;
  box-shadow: none;
  background: #fff7ed;
}

.side-rank .poster-wrap {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
}

.side-rank .movie-card-body {
  padding: 10px 10px 10px 0;
}

.side-rank .movie-card p,
.side-rank .tag-row,
.side-rank .play-chip {
  display: none;
}

.side-rank .movie-card h2 {
  font-size: 15px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 430px;
  color: #9ca3af;
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

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

.footer-links a {
  color: #9ca3af;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #f97316;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 34px;
  padding-top: 20px;
  color: #9ca3af;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.68;
    transform: scale(1.08);
  }
}

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

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

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

  .hero-content {
    min-height: 720px;
    gap: 30px;
    padding: 44px 0 80px;
  }

  .hero-poster {
    max-width: 280px;
    margin: 0 auto;
  }

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

  .detail-poster {
    max-width: 260px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 18px;
  }

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .content-section {
    padding: 50px 0;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .all-grid,
  .ranking-list,
  .category-grid,
  .large-category-grid {
    grid-template-columns: 1fr;
  }

  .side-rank .movie-card {
    grid-template-columns: 82px 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}
