:root {
  --bg: #fff8ef;
  --bg-soft: #fff3e0;
  --surface: #ffffff;
  --surface-strong: #fffaf2;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3dcc4;
  --brand: #f59e0b;
  --brand-deep: #ea580c;
  --brand-dark: #9a3412;
  --shadow: 0 18px 45px rgba(154, 52, 18, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(249, 115, 22, 0.14), transparent 30rem),
    var(--bg);
}

body.no-scroll {
  overflow: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(243, 220, 196, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(154, 52, 18, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.32);
}

.brand-text {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(135deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav > a,
.nav-dropdown > a {
  padding: 24px 0;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: -18px;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

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

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--brand-deep);
  background: #fff7ed;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px;
  background: #fff7ed;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-search input {
  width: 190px;
  padding: 9px 10px 9px 16px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search button,
.primary-button,
.secondary-button,
.section-action,
.filter-button,
.play-overlay,
.search-submit {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button,
.search-submit {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.header-search button {
  padding: 9px 16px;
  border-radius: 999px;
}

.primary-button,
.secondary-button,
.section-action,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
}

.secondary-button,
.section-action {
  color: var(--brand-dark);
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.section-action:hover,
.search-submit:hover,
.play-overlay:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 9px;
  background: #fff7ed;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.mobile-menu-button span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 3px auto;
  background: var(--brand-dark);
  border-radius: 999px;
}

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

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

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

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

.hero {
  position: relative;
  padding: 44px 0 32px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: -10% -10% auto;
  height: 460px;
  content: "";
  background:
    radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.38), transparent 22rem),
    radial-gradient(circle at 78% 18%, rgba(234, 88, 12, 0.22), transparent 24rem);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.94), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: 34px;
  align-items: center;
  min-height: 590px;
  padding: 54px;
}

.hero-slide.is-active {
  display: grid;
}

.hero-content {
  position: relative;
  z-index: 2;
}

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

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p,
.page-hero p {
  max-width: 680px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-poster {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12 54%, #f59e0b);
  border: 8px solid #ffffff;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(154, 52, 18, 0.28);
}

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

.hero-poster::after,
.poster-frame::after,
.detail-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(17, 24, 39, 0.65));
  pointer-events: none;
}

.hero-poster-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.hero-poster-badge strong {
  font-size: 22px;
}

.hero-dots {
  position: absolute;
  left: 54px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 30px;
  background: var(--brand-deep);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stats-strip div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 20px;
}

.stats-strip strong {
  display: block;
  color: var(--brand-deep);
  font-size: 28px;
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.main-section {
  padding: 38px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.movie-card-link {
  display: grid;
  height: 100%;
}

.poster-frame,
.detail-cover,
.hero-poster {
  position: relative;
  background: linear-gradient(135deg, #92400e, #ea580c, #fbbf24);
}

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

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

.poster-fallback-title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 26px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  letter-spacing: -0.04em;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.28);
}

.poster-frame img + .poster-fallback-title,
.detail-cover img + .poster-fallback-title,
.hero-poster img + .poster-fallback-title {
  opacity: 0;
}

.poster-frame.is-fallback .poster-fallback-title,
.detail-cover.is-fallback .poster-fallback-title,
.hero-poster.is-fallback .poster-fallback-title {
  opacity: 1;
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-meta span,
.detail-meta span,
.rank-meta span {
  padding: 5px 8px;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 999px;
}

.movie-card h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

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

.tag-row span {
  padding: 5px 8px;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  background: #fffbeb;
  border-radius: 999px;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 26px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.08);
}

.category-card::after {
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 130px;
  height: 130px;
  content: "";
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 70%);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0 0 20px;
  color: #6b7280;
  line-height: 1.75;
}

.category-card strong {
  color: var(--brand-deep);
  font-size: 30px;
}

.page-hero {
  padding: 54px 0 28px;
}

.page-hero-shell {
  display: grid;
  gap: 18px;
  padding: 42px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.9));
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.filter-panel,
.search-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 22px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 12px;
}

.filter-grid input,
.filter-grid select,
.search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.filter-button {
  min-height: 46px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(154, 52, 18, 0.07);
}

.rank-number {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  border-radius: 18px;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-item p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.detail-hero {
  padding: 44px 0 30px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 32px;
  align-items: stretch;
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.88));
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.detail-cover {
  min-height: 450px;
  overflow: hidden;
  border: 8px solid #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(154, 52, 18, 0.18);
}

.detail-content h1 {
  margin: 12px 0 16px;
  color: #111827;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-content .lead {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.player-section {
  padding: 22px 0 42px;
}

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

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

.play-overlay {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

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

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

.article-panel,
.side-panel {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.08);
}

.article-panel + .article-panel {
  margin-top: 20px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.article-panel p {
  color: #374151;
  font-size: 16px;
  line-height: 2;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  font-weight: 700;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fff7ed;
  border-radius: 16px;
}

.side-list .poster-frame {
  border-radius: 12px;
}

.side-list strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
}

.side-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-form-large {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-results-note {
  color: var(--muted);
  font-weight: 800;
}

.sitemap-columns {
  columns: 4 230px;
  column-gap: 24px;
}

.sitemap-columns a {
  display: block;
  break-inside: avoid;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 14px;
}

.site-footer {
  margin-top: 48px;
  padding: 44px 0 22px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 480px;
  color: #92400e;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.footer-links a:hover {
  color: var(--brand-deep);
}

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 20px;
  color: #9a3412;
  border-top: 1px solid rgba(249, 115, 22, 0.18);
  font-weight: 800;
}

.empty-state {
  padding: 40px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 22px;
}

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

  .mobile-menu-button {
    display: grid;
    margin-left: auto;
  }

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

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

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

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

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

  .hero-shell,
  .page-hero-shell,
  .detail-layout {
    border-radius: 22px;
  }

  .hero-slide {
    min-height: auto;
    padding: 28px;
  }

  .hero-poster {
    min-height: 360px;
  }

  .hero-poster img {
    min-height: 360px;
  }

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

  .stats-strip,
  .movie-grid,
  .category-grid,
  .footer-grid,
  .filter-grid,
  .search-form-large {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 52px 72px 1fr;
  }

  .rank-item .primary-button {
    grid-column: 1 / -1;
  }

  .detail-layout,
  .page-hero-shell {
    padding: 22px;
  }

  .detail-cover {
    min-height: 380px;
  }

  .article-panel,
  .side-panel {
    padding: 22px;
  }
}
