* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7ed;
  --bg-soft: #fffbf6;
  --card: #ffffff;
  --card-strong: #fff3e0;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(31, 41, 55, 0.1);
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --accent: #fb923c;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.14);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 2%, rgba(251, 146, 60, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 14%, rgba(234, 88, 12, 0.12), transparent 22rem),
    var(--bg);
}

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

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

img.image-missing {
  display: none;
}

main {
  min-height: 72vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 237, 213, 0.9);
  background: rgba(255, 251, 246, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-panel nav a {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel nav a:hover,
.mobile-panel nav a.is-active {
  color: var(--primary);
}

.header-search {
  width: 280px;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.header-search input,
.mobile-search input,
.search-page-form input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.header-search input {
  padding: 0 12px;
}

.header-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  cursor: pointer;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button {
  height: 34px;
  padding: 0 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
}

.mobile-panel {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.mobile-search {
  display: flex;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mobile-search button {
  padding: 8px 16px;
}

.hero-slider {
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto 0;
  position: relative;
}

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

.hero-slide {
  min-height: 560px;
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 42px;
  padding: 48px;
  border: 1px solid rgba(255, 237, 213, 0.92);
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 237, 213, 0.76)),
    radial-gradient(circle at 86% 18%, rgba(251, 146, 60, 0.28), transparent 20rem);
  box-shadow: var(--shadow);
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 670px;
  margin: 24px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.hero-tags span {
  padding: 9px 14px;
  font-size: 13px;
}

.mini-tags span {
  padding: 5px 9px;
  font-size: 12px;
}

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

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

.primary-btn {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 15px 28px rgba(234, 88, 12, 0.25);
}

.ghost-btn {
  border: 1px solid rgba(234, 88, 12, 0.22);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
}

.ghost-btn:hover {
  border-color: rgba(234, 88, 12, 0.4);
  background: #ffffff;
  transform: translateY(-1px);
}

.hero-media {
  position: relative;
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(234, 88, 12, 0.2), rgba(251, 146, 60, 0.36)),
    #fed7aa;
  box-shadow: 0 26px 60px rgba(124, 45, 18, 0.22);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-shine,
.poster-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shine {
  background:
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.32), transparent 12rem);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fdba74;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.category-strip,
.content-section,
.rank-preview,
.rank-page,
.sitemap-section,
.detail-layout,
.player-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 56px auto 0;
}

.category-strip {
  padding: 24px;
  border: 1px solid rgba(255, 237, 213, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 38px rgba(124, 45, 18, 0.08);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading.compact {
  display: block;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-heading a {
  align-self: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--primary);
  background: #ffedd5;
  font-weight: 900;
}

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

.category-pill {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-pill span {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.category-pill small {
  margin-top: 8px;
  color: var(--muted);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 237, 213, 0.95);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(234, 88, 12, 0.18), rgba(253, 186, 116, 0.42)),
    #fed7aa;
}

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

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

.poster-glow {
  background: linear-gradient(180deg, transparent 50%, rgba(17, 24, 39, 0.55));
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.74);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

.movie-meta-line {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  min-height: 2.7em;
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.movie-card h3 a:hover {
  color: var(--primary);
}

.movie-card p {
  min-height: 4.8em;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.rank-preview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 16%, rgba(251, 146, 60, 0.22), transparent 20rem),
    #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.rank-copy p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list li + li {
  margin-top: 10px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 6px 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.rank-list span,
.rank-num {
  grid-row: span 2;
  color: #fdba74;
  font-weight: 950;
  font-size: 22px;
}

.rank-list strong {
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-style: normal;
}

.full-rank a {
  grid-template-columns: 74px minmax(0, 1fr);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 10px 26px rgba(124, 45, 18, 0.08);
}

.full-rank em {
  color: var(--muted);
}

.full-rank p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto 0;
  padding: 46px;
  border: 1px solid rgba(255, 237, 213, 0.92);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 16%, rgba(251, 146, 60, 0.24), transparent 22rem),
    linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow);
}

.small-page-hero h1,
.category-hero h1,
.search-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.category-page-links,
.search-categories,
.sitemap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-page-links a,
.search-categories a,
.sitemap-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
  font-size: 13px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  color: #4b5563;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(124, 45, 18, 0.07);
}

.pagination a.is-current,
.pagination a:hover {
  color: #ffffff;
  background: var(--primary);
}

.search-page-form {
  max-width: 720px;
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(124, 45, 18, 0.12);
}

.search-page-form input {
  padding: 0 18px;
  font-size: 18px;
}

.search-page-form button {
  min-width: 110px;
  padding: 13px 22px;
}

.detail-hero {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  min-height: 520px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin: 34px auto 0;
  padding: 42px;
  overflow: hidden;
  border-radius: 36px;
  background: #111827;
  box-shadow: var(--shadow);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.38;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.15);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.6)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 52%);
}

.detail-poster,
.detail-copy {
  position: relative;
  z-index: 1;
}

.detail-poster {
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

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

.detail-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.player-section {
  margin-top: 34px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(234, 88, 12, 0.28), transparent 17rem),
    rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--primary);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

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

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

.detail-content,
.detail-aside {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
}

.detail-content h2,
.detail-aside h2,
.sitemap-section h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.detail-content p {
  color: #4b5563;
  font-size: 17px;
  line-height: 2;
}

.detail-aside dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 0;
}

.detail-aside dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-aside dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.sitemap-section {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.sitemap-section h2 + .sitemap-links {
  margin-bottom: 28px;
}

.movie-index-links {
  max-height: 680px;
  overflow: auto;
  padding-right: 8px;
}

.site-footer {
  margin-top: 72px;
  padding: 44px 0 30px;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.64);
  border-top: 1px solid rgba(255, 237, 213, 0.9);
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 24px;
  margin: 0 auto;
}

.footer-grid p {
  max-width: 520px;
  line-height: 1.8;
}

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

.footer-grid a:not(.brand) {
  display: block;
  margin: 9px 0;
  color: #6b7280;
  font-weight: 700;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide,
  .detail-hero,
  .detail-layout,
  .rank-preview {
    grid-template-columns: 1fr;
  }

  .hero-dots {
    left: 32px;
  }

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

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

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

  .hero-slider,
  .category-strip,
  .content-section,
  .rank-preview,
  .rank-page,
  .sitemap-section,
  .detail-layout,
  .player-section,
  .page-hero,
  .detail-hero {
    width: min(100% - 22px, var(--max));
  }

  .hero-track,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide,
  .page-hero,
  .detail-hero {
    padding: 24px;
    border-radius: 26px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

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

  .hero-media {
    min-height: 320px;
  }

  .hero-media img {
    min-height: 320px;
  }

  .hero-dots {
    position: static;
    margin: 14px 0 0 20px;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .related-grid,
  .category-pills,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-flex;
    margin-top: 12px;
  }

  .detail-poster {
    width: min(72vw, 280px);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .related-grid,
  .category-pills,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .search-page-form button {
    width: 100%;
  }
}
