:root {
  --site-orange: #f97316;
  --site-orange-dark: #ea580c;
  --site-red: #dc2626;
  --site-pink: #db2777;
  --site-ink: #111827;
  --site-muted: #6b7280;
  --site-line: #e5e7eb;
  --site-bg: #f9fafb;
  --site-card: #ffffff;
  --site-shadow: 0 22px 55px rgba(17, 24, 39, 0.14);
  --site-soft-shadow: 0 12px 35px rgba(17, 24, 39, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-shell {
  min-height: 100vh;
  background: #f9fafb;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.site-header.is-scrolled {
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
}

.header-inner {
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 19px;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  box-shadow: 0 13px 30px rgba(249, 115, 22, 0.36);
  transition: transform 0.28s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-3deg);
}

.logo-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--site-orange-dark), var(--site-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--site-orange-dark);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-search {
  position: relative;
  width: min(310px, 28vw);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 46px 12px 18px;
  background: #f3f4f6;
  color: #111827;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.20);
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--site-orange-dark);
  cursor: pointer;
  font-size: 18px;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 30px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid var(--site-line);
  background: rgba(255, 255, 255, 0.97);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel .main-nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-panel .main-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
}

.page-main {
  padding-top: 76px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(120deg, #ea580c 0%, #dc2626 48%, #db2777 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.24), transparent 27%), radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 62px 62px, 62px 62px;
  opacity: 0.95;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
}

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

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

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.1) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 650px;
  margin: 0 auto;
  padding: 74px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 52px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.hero p {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-link-primary,
.hero-link-ghost,
.button-primary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.hero-link-primary,
.button-primary {
  background: #fff;
  color: var(--site-orange-dark);
  padding: 15px 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.hero-link-primary:hover,
.button-primary:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-link-ghost,
.button-ghost {
  padding: 14px 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-link-ghost:hover,
.button-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.hero-tags span,
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 750;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-feature-card {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.hero-poster-frame {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.68));
}

.hero-mini-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.hero-mini-info strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-mini-info span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

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

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

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

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

.section-tight {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 58px;
}

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

.section-heading h2,
.section-heading h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--site-muted);
  line-height: 1.7;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--site-orange-dark);
  font-weight: 850;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--site-soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-card-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f3f4f6;
}

.movie-card.landscape .movie-card-poster {
  aspect-ratio: 16 / 9;
}

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

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

.movie-card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
  opacity: 0.95;
}

.movie-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.movie-rank {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(17, 24, 39, 0.68);
  color: #fff;
  font-weight: 950;
  backdrop-filter: blur(8px);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.movie-card p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.68;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  border-radius: 26px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--site-soft-shadow);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 84% 18%, rgba(249, 115, 22, 0.25), transparent 28%), linear-gradient(135deg, rgba(249, 115, 22, 0.11), rgba(220, 38, 38, 0.06));
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--site-shadow);
}

.category-tile strong,
.category-tile span,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.category-tile span {
  display: block;
  color: var(--site-muted);
  line-height: 1.7;
}

.category-tile em {
  display: inline-flex;
  margin-top: 20px;
  color: var(--site-orange-dark);
  font-weight: 850;
  font-style: normal;
}

.page-hero {
  background: linear-gradient(120deg, var(--site-orange), var(--site-red));
  color: #fff;
  padding: 72px 24px 62px;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.06em;
  line-height: 1;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--site-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--site-soft-shadow);
}

.filter-panel input,
.search-page-input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 15px 18px;
  background: #f3f4f6;
  color: #111827;
  font-size: 16px;
}

.filter-panel select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 15px 18px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 750;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.75fr);
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-card,
.related-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--site-soft-shadow);
  overflow: hidden;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  z-index: 2;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  color: #fff;
  font-size: 38px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  transition: transform 0.22s ease;
}

.player-cover:hover span {
  transform: translate(-50%, -50%) scale(1.08);
}

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

.player-caption {
  padding: 24px;
}

.player-caption h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.player-caption p {
  margin: 0;
  color: #4b5563;
  line-height: 1.85;
  font-size: 17px;
}

.detail-card {
  padding: 24px;
}

.detail-card h2,
.related-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--site-line);
}

.info-list span {
  color: var(--site-muted);
  font-weight: 700;
}

.info-list strong {
  text-align: right;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-cloud span {
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
  font-size: 13px;
}

.article-block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--site-line);
}

.article-block h2 {
  margin-bottom: 12px;
}

.article-block p {
  color: #374151;
  line-height: 1.9;
}

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

.related-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.related-item img {
  width: 86px;
  height: 114px;
  object-fit: cover;
  border-radius: 14px;
}

.related-item strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.related-item span {
  display: block;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.5;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #6b7280;
  font-weight: 700;
}

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

.search-results {
  min-height: 260px;
}

.site-footer {
  margin-top: 42px;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
  color: #d1d5db;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.site-footer .logo-text {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.8;
}

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

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

.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 48;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.28);
  cursor: pointer;
  font-size: 24px;
  display: none;
}

.back-top.show {
  display: block;
}

.empty-state {
  padding: 46px;
  text-align: center;
  border-radius: 26px;
  background: #fff;
  color: var(--site-muted);
  box-shadow: var(--site-soft-shadow);
}

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

  .mobile-toggle {
    display: block;
  }

  .mobile-panel .header-search {
    display: block;
    width: 100%;
    margin-top: 16px;
  }

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

  .hero-feature-card {
    display: none;
  }

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

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

@media (max-width: 680px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .logo-text {
    font-size: 20px;
  }

  .page-main {
    padding-top: 66px;
  }

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

  .hero-content {
    padding: 54px 18px 62px;
  }

  .section,
  .section-tight {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading {
    display: block;
  }

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

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

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

  .player-caption,
  .detail-card {
    padding: 18px;
  }
}
