:root {
  --autumn-50: #fff7ed;
  --autumn-100: #ffedd5;
  --autumn-200: #fed7aa;
  --autumn-400: #fb923c;
  --autumn-500: #f97316;
  --autumn-600: #ea580c;
  --autumn-700: #c2410c;
  --autumn-800: #9a3412;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 18px 45px rgba(154, 52, 18, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0, #ffffff 420px, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

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

.top-strip {
  color: #ffffff;
  background: linear-gradient(135deg, var(--autumn-500), var(--autumn-600), var(--autumn-400));
  font-size: 14px;
  text-align: center;
  padding: 8px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(154, 52, 18, 0.08);
}

.main-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.24);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(10deg) scale(1.06);
}

.brand-text strong {
  display: block;
  color: var(--autumn-700);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-text em {
  display: block;
  margin-top: 4px;
  color: var(--autumn-500);
  font-size: 12px;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.nav-links a {
  color: #374151;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--autumn-600);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-search input,
.filter-bar input,
.filter-bar select {
  height: 40px;
  border: 2px solid var(--autumn-200);
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 236px;
}

.nav-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--autumn-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.nav-search button,
.btn-primary,
.btn-ghost,
.play-button,
.section-more {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.btn-primary,
.play-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.22);
}

.nav-search button {
  height: 40px;
  padding: 0 18px;
}

.nav-search button:hover,
.btn-primary:hover,
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.3);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--autumn-700);
  background: var(--autumn-100);
  font-size: 24px;
}

.mobile-menu {
  display: none;
  padding: 10px 24px 22px;
  background: #ffffff;
  border-top: 1px solid var(--autumn-100);
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #374151;
  font-weight: 700;
  border-bottom: 1px solid #f3f4f6;
}

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

.hero-slide {
  display: none;
  min-height: 620px;
  position: relative;
}

.hero-slide.is-active {
  display: block;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.06);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(154, 52, 18, 0.66) 48%, rgba(17, 24, 39, 0.3)), linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.05) 45%, rgba(17, 24, 39, 0.4));
}

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

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

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

.hero h1 {
  margin: 18px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: #f3f4f6;
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.card-tags,
.meta-line,
.breadcrumb,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin: 26px 0;
}

.hero-meta span,
.detail-meta span,
.card-tags span,
.quick-links a,
.breadcrumb a,
.breadcrumb span {
  border-radius: 999px;
}

.hero-meta span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

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

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

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

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

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 26px;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dots button.is-active {
  width: 30px;
  background: #ffffff;
}

.page-main {
  padding: 52px 0 72px;
}

.section-block {
  margin: 0 0 64px;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  display: inline-flex;
  padding: 10px 18px;
  color: var(--autumn-700);
  background: var(--autumn-100);
}

.section-more:hover {
  color: #ffffff;
  background: var(--autumn-600);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.85);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(154, 52, 18, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--autumn-400);
  box-shadow: 0 22px 48px rgba(154, 52, 18, 0.17);
}

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

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  background: rgba(234, 88, 12, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 42px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

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

.meta-line {
  color: var(--muted);
  font-size: 13px;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
}

.meta-line span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--autumn-400);
}

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

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

.card-tags {
  margin-top: 12px;
  gap: 6px;
}

.card-tags span {
  padding: 5px 9px;
  color: var(--autumn-700);
  background: var(--autumn-50);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700));
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #f59e0b, #c2410c);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #fb923c, #7c2d12);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -52px;
  bottom: -58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-card span {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 22px;
  padding: 8px 13px;
  color: var(--autumn-700);
  background: #ffffff;
  border-radius: 999px;
  font-weight: 900;
}

.page-title {
  padding: 50px 0 26px;
}

.quick-links {
  margin-top: 22px;
}

.quick-links a {
  padding: 9px 14px;
  color: var(--autumn-700);
  background: #ffffff;
  border: 1px solid var(--autumn-200);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(154, 52, 18, 0.08);
}

.quick-links a:hover {
  color: #ffffff;
  background: var(--autumn-600);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  padding: 18px;
  margin-bottom: 26px;
  background: #ffffff;
  border: 1px solid var(--autumn-100);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(154, 52, 18, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border-radius: 16px;
}

.ranking-list {
  display: grid;
  gap: 18px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 76px 110px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--autumn-100);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.08);
}

.ranking-number {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700));
  border-radius: 18px;
  font-size: 22px;
  font-weight: 900;
}

.ranking-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: var(--autumn-100);
}

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

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-link {
  display: inline-flex;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--autumn-600);
  border-radius: 999px;
  font-weight: 900;
}

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

.breadcrumb a {
  color: var(--autumn-700);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: end;
  padding: 42px 0;
}

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

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

.detail-meta {
  margin: 22px 0 0;
}

.detail-meta span {
  padding: 8px 12px;
  color: var(--autumn-800);
  background: var(--autumn-100);
  font-weight: 800;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
}

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

.player-section {
  margin-bottom: 52px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #111827;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.26));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
}

.player-overlay-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 18px;
  color: #ffffff;
  text-align: center;
}

.play-button {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 34px;
}

.player-overlay strong {
  font-size: 24px;
}

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

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.article-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
}

.content-card,
.side-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--autumn-100);
  border-radius: 26px;
  box-shadow: 0 12px 32px rgba(154, 52, 18, 0.08);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--autumn-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-list a:hover {
  background: var(--autumn-100);
  transform: translateX(3px);
}

.side-list img {
  width: 54px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.side-list strong {
  display: block;
  color: #111827;
  line-height: 1.35;
}

.side-list span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 46px 0;
  color: #fed7aa;
  background: #111827;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: #ffffff;
  font-weight: 800;
}

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

.empty-state {
  display: none;
  padding: 34px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--autumn-100);
  border-radius: 24px;
}

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .mobile-menu.is-open {
    display: block;
  }

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

  .hero-poster,
  .detail-poster {
    width: min(360px, 80vw);
    justify-self: center;
  }

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

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

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

  .top-strip {
    font-size: 12px;
  }

  .main-nav {
    min-height: 66px;
  }

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

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

  .hero-content {
    padding: 48px 0 90px;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .hero-poster {
    display: none;
  }

  .section-heading,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .ranking-item {
    grid-template-columns: 48px 82px minmax(0, 1fr);
  }

  .ranking-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 16px;
  }

  .ranking-link {
    grid-column: 2 / -1;
    justify-content: center;
  }

  .content-card,
  .side-card {
    padding: 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.dense,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}
