:root {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #f0fdfa;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --cyan: #06b6d4;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(249, 115, 22, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(6, 182, 212, 0.15), transparent 30rem),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 46%, #ecfeff 100%);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.brand-text {
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 290px;
}

.top-search input,
.mobile-nav input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.top-search button,
.mobile-nav button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--text);
  background: #f3f4f6;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 12px;
}

.mobile-nav a,
.mobile-nav form {
  display: block;
}

.mobile-nav a {
  padding: 10px 0;
  font-weight: 800;
  color: #374151;
}

.mobile-nav form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 44px 0 28px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 247, 237, 0.95), rgba(236, 254, 255, 0.86)),
    radial-gradient(circle at 78% 35%, rgba(249, 115, 22, 0.22), transparent 24rem);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 570px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.99);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 38px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.74)),
    var(--hero-image) center / cover;
  box-shadow: var(--shadow);
}

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

.hero-copy {
  padding: 64px 0 64px 56px;
}

.eyebrow,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-copy p {
  width: min(620px, 100%);
  margin: 24px 0;
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.card-tags,
.card-meta,
.detail-meta,
.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span,
.card-meta span,
.detail-meta span,
.mini-chips span {
  border-radius: 999px;
  padding: 6px 11px;
  color: #7c2d12;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 237, 213, 0.95);
}

.card-meta span,
.detail-meta span {
  color: #155e75;
  background: rgba(207, 250, 254, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  padding: 14px 24px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.26);
}

.ghost-btn {
  padding: 13px 23px;
  border: 2px solid rgba(17, 24, 39, 0.12);
  color: #374151;
  background: rgba(255, 255, 255, 0.72);
}

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

.hero-poster {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 3 / 4.35;
  border: 10px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.hero-poster::after,
.poster-frame::after,
.category-cover::after,
.rank-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.46));
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 48px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--orange);
}

.quick-panel,
.content-section,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-panel,
.content-section {
  padding: 54px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.detail-text h2 {
  margin: 0;
  color: #111827;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p,
.category-card p,
.spotlight-card p,
.detail-text p {
  color: var(--muted);
  line-height: 1.8;
}

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

.section-heading.with-link > a,
.text-link {
  color: var(--orange);
}

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

.category-pills a {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-md);
  padding: 20px;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pills a span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.category-pills a:hover,
.movie-card:hover,
.category-card:hover,
.rank-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.13);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-frame,
.category-cover,
.rank-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(6, 182, 212, 0.2)),
    #f3f4f6;
}

.poster-frame {
  aspect-ratio: 3 / 4;
}

.poster-frame img,
.category-cover img,
.rank-thumb img {
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover img,
.hero-poster:hover img,
.category-card:hover img,
.rank-row:hover img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

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

.movie-card h2 {
  min-height: 2.8em;
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-info h2 a:hover,
.category-card h2 a:hover {
  color: var(--orange);
}

.movie-card p {
  min-height: 4.6em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.movie-card.compact .movie-card-body {
  padding: 13px;
}

.movie-card.compact p {
  display: none;
}

.movie-card.compact h2 {
  min-height: 2.7em;
  font-size: 0.98rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
  display: grid;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
}

.rank-thumb {
  width: 76px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 1.04rem;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.spotlight-card {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-lg);
  padding: 34px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.94), rgba(6, 182, 212, 0.92));
  box-shadow: var(--shadow);
}

.spotlight-card h2 {
  margin: 0 0 16px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.spotlight-card p {
  color: rgba(255, 255, 255, 0.88);
}

.spotlight-card .primary-btn {
  background: #ffffff;
  color: var(--orange);
}

.site-footer {
  margin-top: 42px;
  padding: 54px 0 26px;
  color: #d1d5db;
  background: #111827;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 1.4rem;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.9rem;
}

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

.page-hero {
  margin: 0 0 40px;
  border-radius: var(--radius-lg);
  padding: 56px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}

.page-hero p {
  width: min(760px, 100%);
  font-size: 1.05rem;
}

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

.category-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.large-filter {
  grid-template-columns: minmax(280px, 1fr) 180px 180px;
}

.empty-state {
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
}

.detail-main {
  padding-top: 36px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  border-radius: 34px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.lead {
  width: min(820px, 100%);
  color: #4b5563;
  font-size: 1.12rem;
  line-height: 1.8;
}

.detail-meta,
.detail-tags {
  margin: 14px 0;
}

.player-section {
  padding: 54px 0 28px;
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 26px 76px rgba(15, 23, 42, 0.2);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.7));
}

.play-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  color: var(--orange);
  font-size: 2rem;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.detail-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 32px 0 10px;
}

.detail-text article {
  border-radius: var(--radius-md);
  padding: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.related-section {
  padding-top: 34px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

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

  .hero-slide,
  .detail-hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 48px 36px 0;
  }

  .hero-poster {
    width: min(300px, calc(100% - 72px));
    margin: 0 36px 52px;
  }

  .hero-dots {
    left: 36px;
    bottom: 28px;
  }

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

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

  .spotlight-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    height: 64px;
  }

  .brand-text {
    font-size: 1.25rem;
  }

  .hero {
    min-height: 760px;
    padding-top: 24px;
  }

  .hero-inner {
    min-height: 720px;
  }

  .hero-slide::before {
    inset: 0;
    border-radius: 28px;
  }

  .hero-copy {
    padding: 34px 24px 0;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.05em;
  }

  .hero-poster {
    width: min(240px, calc(100% - 48px));
    margin: 0 24px 60px;
  }

  .movie-grid,
  .movie-grid.compact-grid,
  .category-overview,
  .detail-text,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 46px 62px minmax(0, 1fr);
  }

  .rank-row .text-link {
    grid-column: 3;
    justify-self: start;
  }

  .rank-info p {
    display: none;
  }

  .category-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

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

  .detail-hero,
  .page-hero {
    padding: 24px;
  }

  .detail-poster {
    width: min(260px, 100%);
    margin: 0 auto;
  }
}
