:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --gold: #f59e0b;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.13), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, var(--bg) 28rem, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(229, 231, 235, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 20px;
}

.brand-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #111827;
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}

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

.mobile-nav a {
  border-radius: 14px;
  background: #fff7ed;
  padding: 12px 14px;
  color: #9a3412;
  font-weight: 700;
}

.hero {
  position: relative;
  padding-bottom: 46px;
}

.hero-stage {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.72s ease, transform 0.72s ease;
  transform: scale(1.015);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(5px) saturate(1.16);
  transform: scale(1.06);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(124, 45, 18, 0.74), rgba(17, 24, 39, 0.66)),
    radial-gradient(circle at 72% 40%, rgba(245, 158, 11, 0.38), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 98px 0 120px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.12);
  padding: 7px 12px;
  color: #ea580c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy .eyebrow {
  background: rgba(255, 237, 213, 0.16);
  color: #fed7aa;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 20px 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  border-radius: 999px;
  background: #f3f4f6;
  padding: 6px 10px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.btn-line {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span,
.play-dot {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  font-weight: 900;
}

.hero-poster span {
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: min(6vw, 72px);
  bottom: 70px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

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

.hero-search-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin-top: -44px;
}

.search-card,
.quick-links,
.section-block,
.category-overview-card,
.detail-article,
.detail-side {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-card,
.quick-links {
  padding: 20px;
}

.search-card label {
  display: block;
  margin-bottom: 10px;
  color: #374151;
  font-weight: 800;
}

.search-bar {
  display: flex;
  gap: 10px;
}

.search-bar input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 14px 18px;
  color: var(--ink);
  font-size: 15px;
  outline: 0;
}

.search-bar input:focus {
  border-color: rgba(234, 88, 12, 0.64);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.11);
}

.search-bar button,
.filter-row button {
  border: 0;
  border-radius: 999px;
  background: #fff7ed;
  padding: 0 18px;
  color: #9a3412;
  font-weight: 800;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-links a {
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  padding: 14px;
  color: #9a3412;
  font-weight: 800;
}

.section-block {
  margin-top: 42px;
  padding: 28px;
}

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

.section-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-head > a,
.category-overview-head a {
  display: inline-flex;
  border-radius: 999px;
  background: #111827;
  padding: 12px 18px;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-row button {
  min-height: 38px;
}

.filter-row button.active {
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #ffffff;
}

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

.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(234, 88, 12, 0.34);
  box-shadow: 0 24px 62px rgba(17, 24, 39, 0.16);
  transform: translateY(-6px);
}

.movie-card.is-hidden {
  display: none;
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.card-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

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

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: 24px;
  background: #111827;
  padding: 18px;
  color: #ffffff;
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.88));
}

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

.category-tile span {
  margin-top: 112px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.7;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rank-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
}

.rank-link span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--brand);
  font-weight: 900;
}

.rank-link strong,
.rank-link em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-link strong {
  display: block;
  font-size: 15px;
}

.rank-link em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(124, 45, 18, 0.92)),
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.36), transparent 28rem);
  color: #ffffff;
}

.page-hero .shell {
  padding: 72px 0;
}

.page-hero h1 {
  max-width: 760px;
  margin: 18px 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.8;
}

.page-search {
  max-width: 640px;
  margin-top: 22px;
}

.category-overview-list {
  display: grid;
  gap: 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.category-overview-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-hero {
  padding: 70px 0;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 42px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.detail-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.detail-copy p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.large-tags {
  margin: 22px 0 28px;
}

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

.movie-player {
  width: 100%;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.64));
  color: #ffffff;
  text-align: center;
  cursor: pointer;
}

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

.player-overlay span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 22px 52px rgba(234, 88, 12, 0.32);
  font-size: 28px;
}

.player-overlay strong {
  display: block;
  margin-top: 18px;
  font-size: 22px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 42px;
}

.detail-article,
.detail-side {
  padding: 28px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-article p {
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.detail-side {
  align-self: start;
  display: grid;
  gap: 12px;
}

.detail-side a {
  border-radius: 16px;
  background: #fff7ed;
  padding: 13px 14px;
  color: #9a3412;
  font-weight: 750;
  line-height: 1.45;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: #111827;
  color: #ffffff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0;
}

.footer-grid p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

  .nav-toggle {
    display: block;
  }

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

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

  .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-stage {
    min-height: 760px;
  }

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

  .hero-content {
    gap: 28px;
    padding: 54px 0 116px;
  }

  .hero-poster {
    max-width: 250px;
  }

  .hero-search-panel {
    margin-top: -30px;
  }

  .quick-links,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    display: grid;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .brand-copy em {
    display: none;
  }

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

  .hero-actions,
  .search-bar,
  .section-head,
  .category-overview-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .section-block,
  .category-overview-card,
  .detail-article,
  .detail-side {
    padding: 18px;
  }

  .card-body {
    padding: 13px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .card-body p {
    min-height: auto;
    font-size: 13px;
  }
}
