:root {
  --bg: #fff7ed;
  --bg-soft: #ecfeff;
  --surface: #ffffff;
  --surface-strong: rgba(255, 255, 255, 0.95);
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #ecfeff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-strong);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
}

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

.brand-name {
  font-size: 24px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: #374151;
  font-weight: 700;
  padding: 8px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

.header-search,
.mobile-search,
.wide-search,
.mini-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.mini-filter input {
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.mini-filter input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}

.header-search input {
  width: 220px;
  padding: 10px 16px;
}

.header-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.22);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 24px 20px;
  background: #ffffff;
}

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

.mobile-link {
  display: block;
  padding: 11px 0;
  color: #374151;
  font-weight: 700;
}

.mobile-search {
  margin-top: 12px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.is-active .hero-bg {
  transform: scale(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  max-width: 760px;
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.eyebrow {
  margin: 0 0 12px;
  color: #fed7aa;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--orange);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc,
.page-hero p,
.detail-line {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  max-width: 760px;
}

.hero-meta,
.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.hero-tags span,
.tag-row span,
.detail-tags span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.tag-row span,
.detail-tags span,
.detail-tags a {
  color: var(--orange-dark);
  background: #fff7ed;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
}

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

.btn-ghost.light {
  color: var(--orange-dark);
  border-color: #fed7aa;
  background: #fff7ed;
}

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

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

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

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

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

.section-heading.compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h2,
.intro-panel h2,
.callout-panel h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-heading p,
.intro-panel p,
.callout-panel p,
.content-card p {
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: var(--orange-dark);
  font-weight: 900;
}

.intro-panel,
.callout-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.intro-panel,
.panel-card,
.content-card,
.callout-panel,
.category-strip {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-panel,
.callout-panel {
  padding: 34px;
}

.callout-panel {
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #06b6d4);
  margin-bottom: 40px;
}

.callout-panel p {
  color: rgba(255, 255, 255, 0.88);
}

.wide-search {
  width: 100%;
}

.wide-search input {
  flex: 1;
  min-height: 54px;
  padding: 0 20px;
}

.wide-search button {
  min-height: 54px;
  padding: 0 24px;
}

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

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

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

.movie-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #cffafe);
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

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

.card-body h2 a:hover {
  color: var(--orange-dark);
}

.card-meta,
.card-desc {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.card-meta {
  font-size: 13px;
  font-weight: 700;
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 50px;
}

.movie-card-small .card-desc {
  display: none;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
}

.category-card span,
.category-card strong {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 20px;
}

.category-card span {
  margin-top: 130px;
  color: #fed7aa;
  font-weight: 900;
}

.category-card strong {
  margin-top: 8px;
  font-size: 22px;
}

.category-card:hover img {
  transform: scale(1.12);
}

.split-layout,
.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.panel-card,
.content-card {
  padding: 26px;
}

.compact-list,
.side-list {
  display: grid;
  gap: 14px;
}

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

.compact-item:hover {
  background: linear-gradient(90deg, #fff7ed, #ecfeff);
  transform: translateX(3px);
}

.compact-item img {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-info strong,
.compact-info em {
  display: block;
}

.compact-info strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.compact-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-num,
.rank-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  font-weight: 900;
}

.page-hero {
  min-height: 380px;
  padding: 90px 24px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.page-hero > div {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.simple-hero {
  background: radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.34), transparent 35%), linear-gradient(135deg, #111827, #1f2937 50%, #164e63);
}

.ranking-hero {
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.38), transparent 36%), linear-gradient(135deg, #111827, #7c2d12);
}

.category-hero {
  background-size: cover;
  background-position: center;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
}

.category-strip a {
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--orange-dark);
  background: #fff7ed;
  font-weight: 900;
}

.mini-filter input {
  min-height: 42px;
  padding: 0 16px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.rank-poster img {
  width: 150px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-body p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.7;
}

.rank-actions {
  display: flex;
  gap: 14px;
}

.rank-actions a {
  color: var(--orange-dark);
  font-weight: 900;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 0;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #fed7aa, #cffafe);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info {
  padding: 38px;
  border-radius: 28px;
  color: #ffffff;
  background: radial-gradient(circle at 90% 0%, rgba(6, 182, 212, 0.35), transparent 36%), linear-gradient(135deg, #111827, #7c2d12);
  box-shadow: var(--shadow);
}

.detail-info .eyebrow.dark {
  color: #fed7aa;
}

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

.detail-meta div {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.detail-meta dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.player-section {
  padding-top: 40px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-layer {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.player-layer span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  font-size: 32px;
}

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

.detail-article p {
  margin: 0 0 18px;
  font-size: 16px;
}

.detail-article h2,
.side-card h2 {
  margin: 0 0 18px;
}

.detail-article h2:not(:first-child) {
  margin-top: 32px;
}

.detail-article a {
  color: var(--orange-dark);
  font-weight: 800;
}

.side-card {
  align-self: start;
  position: sticky;
  top: 100px;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-logo .brand-name {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

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

.footer-links h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 20px;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #d1d5db;
  padding: 7px 0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px;
  text-align: center;
  color: #9ca3af;
}

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

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

  .menu-toggle {
    display: block;
  }

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

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

  .brand-name {
    font-size: 20px;
  }

  .hero-carousel {
    height: 620px;
  }

  .hero-content {
    padding: 0 18px;
    margin-left: 0;
    max-width: none;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 40px;
  }

  .hero-desc,
  .page-hero p,
  .detail-line {
    font-size: 16px;
  }

  .section-wrap {
    padding: 42px 16px 0;
  }

  .intro-panel,
  .callout-panel,
  .split-layout,
  .detail-layout,
  .footer-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .intro-panel,
  .callout-panel,
  .panel-card,
  .content-card {
    padding: 22px;
  }

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

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

  .wide-search {
    flex-direction: column;
    align-items: stretch;
  }

  .rank-row {
    grid-template-columns: 46px 96px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .rank-index {
    width: 40px;
    height: 40px;
  }

  .rank-poster img {
    width: 96px;
    height: 64px;
  }

  .detail-info {
    padding: 26px;
  }

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

  .side-card {
    position: static;
  }
}

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

  .hero-meta span,
  .hero-tags span {
    font-size: 12px;
  }

  .compact-item {
    grid-template-columns: auto 82px 1fr;
  }

  .compact-item img {
    width: 82px;
    height: 56px;
  }

  .rank-row {
    grid-template-columns: 44px 1fr;
  }

  .rank-poster {
    display: none;
  }
}
