:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --orange-soft: #fff7ed;
  --red: #ef4444;
  --pink: #ec4899;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  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: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.35);
  font-size: 14px;
}

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

.nav-link,
.nav-drop-btn {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-drop-btn:hover {
  color: var(--orange);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 18px 0;
}

.nav-drop-menu {
  position: absolute;
  top: 48px;
  left: 0;
  width: 180px;
  padding: 8px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-menu a,
.mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #374151;
}

.nav-drop-menu a:hover,
.mobile-menu a:hover {
  color: var(--orange);
  background: var(--orange-soft);
}

.header-search {
  position: relative;
  width: 260px;
}

.header-search input,
.filter-input {
  width: 100%;
  border: 1px solid #d1d5db;
  outline: none;
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--white);
  transition: 0.2s ease;
}

.header-search input:focus,
.filter-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 92vw);
  max-height: 470px;
  overflow: auto;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 10px;
}

.search-panel a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
}

.search-panel a:hover {
  background: var(--orange-soft);
}

.search-panel img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
}

.search-panel strong {
  display: block;
  line-height: 1.35;
}

.search-panel span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu {
  padding: 8px 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #f97316 0%, #ef4444 48%, #ec4899 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
}

.hero::before {
  top: 90px;
  left: 8%;
  background: #fde047;
  animation: floatBlob 11s ease-in-out infinite;
}

.hero::after {
  right: 8%;
  bottom: 60px;
  background: #fb7185;
  animation: floatBlob 13s ease-in-out infinite reverse;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
}

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

.hero-copy h1 span {
  color: #fde047;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions,
.section-head,
.card-meta,
.list-meta,
.tag-row,
.breadcrumb,
.detail-actions,
.pager-row,
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  color: var(--orange);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
  color: var(--orange-dark);
  transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--orange);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 120px));
  gap: 22px;
  margin-top: 44px;
}

.hero-metrics strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.hero-slider {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 520px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
}

.hero-slide-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.hero-slide-content h2 {
  margin: 8px 0;
  font-size: 30px;
  line-height: 1.15;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-dots {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.active {
  width: 26px;
  background: #fde047;
}

section,
.page-section {
  padding: 64px 0;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.section-head p,
.page-title p,
.detail-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.more-link {
  color: var(--orange);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f3f4f6;
}

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

.movie-card:hover img,
.list-card:hover img,
.category-card:hover img {
  transform: scale(1.08);
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(234, 88, 12, 0.92);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-body h3,
.list-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.list-content h3 a:hover {
  color: var(--orange);
}

.card-body p,
.list-content p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta,
.list-meta {
  color: #6b7280;
  font-size: 13px;
  justify-content: space-between;
}

.tag-row {
  margin-top: 12px;
  gap: 7px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
}

.dark-band {
  background: #111827;
  color: var(--white);
}

.dark-band h2,
.dark-band .section-head p {
  color: var(--white);
}

.masonry {
  columns: 3 260px;
  column-gap: 18px;
}

.masonry .movie-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.list-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: 0.2s ease;
}

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

.rank-num {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.list-poster {
  overflow: hidden;
  border-radius: 14px;
  background: #f3f4f6;
}

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

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  color: var(--white);
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.35s ease;
}

.category-card div {
  position: absolute;
  inset: auto 18px 18px;
}

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

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.page-hero {
  padding: 54px 0;
  color: var(--white);
  background: linear-gradient(135deg, #f97316, #ef4444 55%, #ec4899);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.filter-bar {
  margin: 0 0 24px;
  justify-content: space-between;
}

.filter-input {
  max-width: 360px;
}

.breadcrumb {
  padding-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

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

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

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

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 44px rgba(234, 88, 12, 0.42);
  cursor: pointer;
  font-size: 34px;
  padding-left: 6px;
}

.detail-card,
.side-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

.detail-title {
  margin: 24px 0;
}

.detail-title h1 {
  margin-bottom: 12px;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 14px;
  font-weight: 700;
}

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

.article-body p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 16px;
}

.side-card {
  position: sticky;
  top: 92px;
}

.side-poster {
  overflow: hidden;
  border-radius: 18px;
  background: #f3f4f6;
  margin-bottom: 18px;
}

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

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.pager-row {
  justify-content: space-between;
  margin-top: 22px;
}

.pager-row a {
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--orange);
  background: var(--orange-soft);
  font-weight: 800;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 34px;
  padding: 44px 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p {
  margin: 12px 0 0;
  color: #d1d5db;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

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

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

@keyframes floatBlob {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(36px, -28px, 0) scale(1.08);
  }
}

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-inner {
    padding: 60px 0;
  }

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

  .side-card {
    position: static;
  }
}

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

  .brand {
    font-size: 20px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 460px;
  }

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

  .list-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .list-poster img {
    min-height: 136px;
  }
}
