:root {
  --bg: #fff7ed;
  --bg-soft: #fffaf4;
  --text: #171717;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --card: rgba(255, 255, 255, 0.86);
  --card-solid: #ffffff;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #ef4444;
  --pink: #ec4899;
  --yellow: #facc15;
  --shadow: 0 24px 70px rgba(127, 29, 29, 0.16);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(250, 204, 21, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(236, 72, 153, 0.18), transparent 26%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(127, 29, 29, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.32);
  font-size: 15px;
}

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

.desktop-nav a,
.nav-dropdown button {
  border: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown button:hover {
  color: var(--orange);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: -22px;
  width: 210px;
  padding: 12px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.dropdown-panel a,
.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
}

.dropdown-panel a:hover,
.mobile-panel a:hover {
  background: #fff7ed;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #ef4444 52%, #ec4899 100%);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 20%, rgba(250, 204, 21, 0.28), transparent 24%),
    radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.2), transparent 26%),
    rgba(0, 0, 0, 0.2);
}

.hero-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.35;
  animation: blobMove 9s infinite alternate ease-in-out;
}

.hero-blob.one {
  top: 86px;
  left: 7%;
  background: #facc15;
}

.hero-blob.two {
  top: 160px;
  right: 8%;
  background: #f472b6;
  animation-delay: 1.6s;
}

.hero-blob.three {
  bottom: 60px;
  left: 38%;
  background: #fb923c;
  animation-delay: 3s;
}

@keyframes blobMove {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(24px, -18px, 0) scale(1.12);
  }
}

.hero-track {
  position: relative;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(111, 35, 8, 0.9), rgba(127, 29, 29, 0.58), rgba(0, 0, 0, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 390px;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  animation: fadeUp 0.8s ease both;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-copy h1 span,
.hero-copy h2 span {
  color: var(--yellow);
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.btn-primary {
  color: #7c2d12;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.btn-soft {
  color: var(--orange);
  background: #fff7ed;
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  min-height: 510px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.hero-poster img {
  width: 100%;
  height: 410px;
  border-radius: 26px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(250, 204, 21, 0.22));
}

.hero-poster-info {
  padding: 18px 6px 4px;
}

.hero-poster-info strong {
  display: block;
  font-size: 22px;
}

.hero-poster-info span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.hero-arrow-group {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.section {
  padding: 74px 0 0;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--orange);
  font-weight: 900;
}

.section h2,
.section h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.05em;
}

.section-head p,
.category-hero p,
.detail-title p {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.85;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 46px rgba(127, 29, 29, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 88, 12, 0.24);
  box-shadow: 0 28px 70px rgba(127, 29, 29, 0.16);
}

.poster-frame {
  position: relative;
  height: 320px;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(250, 204, 21, 0.45), transparent 36%),
    linear-gradient(135deg, #f97316, #ef4444, #ec4899);
}

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

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

.poster-year,
.poster-type {
  position: absolute;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.44);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.poster-year {
  left: 14px;
}

.poster-type {
  right: 14px;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover {
  color: var(--orange);
}

.card-meta {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta a {
  color: var(--orange);
  font-weight: 800;
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 210px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 0%, rgba(250, 204, 21, 0.26), transparent 34%),
    linear-gradient(145deg, #ffffff, #fff7ed);
  box-shadow: 0 16px 46px rgba(127, 29, 29, 0.08);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card strong {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-card span {
  color: var(--orange);
  font-weight: 900;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 64px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(127, 29, 29, 0.07);
}

.rank-number {
  color: var(--orange);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-poster {
  width: 92px;
  height: 126px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316, #ef4444, #ec4899);
}

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

.rank-main a {
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

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

.rank-main p {
  margin: 8px 0;
  color: #4b5563;
  line-height: 1.7;
}

.rank-main div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.rank-main span,
.rank-main div a {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
}

.filter-panel {
  margin: 0 0 26px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 220px 180px;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 46px rgba(127, 29, 29, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(234, 88, 12, 0.5);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.category-hero,
.detail-hero,
.search-hero {
  margin-top: 36px;
  padding: 46px;
  overflow: hidden;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 0%, rgba(250, 204, 21, 0.28), transparent 32%),
    linear-gradient(135deg, #f97316, #ef4444, #ec4899);
  box-shadow: var(--shadow);
}

.category-hero p,
.search-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.category-hero h1,
.search-hero h1 {
  color: #ffffff;
}

.breadcrumb {
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #f97316, #ef4444, #ec4899);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
}

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

.detail-title h1,
.detail-title p {
  color: #ffffff;
}

.detail-title p {
  color: rgba(255, 255, 255, 0.88);
}

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

.detail-meta span,
.detail-meta a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #09090b;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.22);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #050505;
  cursor: pointer;
}

.play-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.play-trigger.is-hidden {
  display: none;
}

.play-circle {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.18);
  font-size: 30px;
}

.play-trigger strong {
  font-size: 22px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}

.story-card,
.side-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 46px rgba(127, 29, 29, 0.08);
}

.story-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
}

.story-card p,
.side-card p {
  color: #374151;
  line-height: 1.9;
}

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

.side-list a {
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
}

.hidden-card {
  display: none !important;
}

.site-footer {
  margin-top: 86px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
}

.footer-inner p {
  max-width: 420px;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .hero-poster {
    display: none;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-track,
  .hero-content {
    min-height: 620px;
  }

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

  .hero-controls {
    bottom: 18px;
  }

  .hero-arrow-group {
    display: none;
  }

  .section {
    padding-top: 54px;
  }

  .section-head {
    display: block;
  }

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

  .poster-frame {
    height: 430px;
  }

  .rank-row {
    grid-template-columns: 48px 76px 1fr;
    gap: 12px;
  }

  .rank-poster {
    width: 76px;
    height: 106px;
  }

  .category-hero,
  .detail-hero,
  .search-hero {
    padding: 30px 22px;
    border-radius: 28px;
  }

  .detail-poster img {
    height: 430px;
  }

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

@media (max-width: 480px) {
  .header-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .page-shell,
  .hero-content,
  .hero-controls,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .poster-frame,
  .detail-poster img {
    height: 360px;
  }

  .mobile-panel.is-open {
    grid-template-columns: 1fr;
  }
}
