:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --paper: #ffffff;
  --paper-warm: #fff8ed;
  --ink: #451a03;
  --muted: #92400e;
  --light: #fbbf24;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --line: rgba(146, 64, 14, 0.16);
  --shadow: 0 20px 45px rgba(120, 53, 15, 0.14);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 44%, #ffedd5 100%);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.brand-name {
  font-size: 26px;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #78350f;
  font-weight: 700;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input {
  width: 220px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.search-form button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #f97316);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.3);
}

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

.btn.text {
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

.btn.small {
  padding: 9px 14px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.13);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #78350f;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: rgba(255, 251, 235, 0.98);
}

.mobile-links,
.mobile-cats {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

.mobile-cats a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #111827;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  background: radial-gradient(circle at top left, #f59e0b, #7c2d12 52%, #111827 100%);
}

.hero-media img {
  object-fit: cover;
  opacity: 0.78;
}

.hero-media.image-missing img {
  display: none;
}

.hero-media.image-missing::after {
  content: attr(data-title);
  position: absolute;
  right: 8%;
  bottom: 18%;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.16);
  font-size: clamp(42px, 8vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  text-align: right;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 10, 2, 0.88) 0%, rgba(24, 10, 2, 0.58) 42%, rgba(24, 10, 2, 0.18) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 64px;
  padding-bottom: 70px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.86);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.eyebrow.dark {
  color: var(--accent-dark);
  background: rgba(245, 158, 11, 0.14);
}

.hero-content h1,
.hero-content h2 {
  max-width: 820px;
  margin: 16px 0 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-content h2 {
  font-size: clamp(30px, 5vw, 58px);
}

.hero-content p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: #ffffff;
}

.section-block {
  padding: 58px 0;
}

.intro-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 28px;
  align-items: center;
}

.intro-search h2,
.section-heading h2,
.simple-hero h1,
.detail-card h1 {
  margin: 10px 0 0;
  color: #78350f;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.intro-search p,
.simple-hero p,
.category-overview-card p,
.category-card p,
.detail-card p,
.text-page p {
  color: var(--muted);
}

.big-search,
.page-search {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.big-search input,
.page-search input {
  flex: 1;
  width: auto;
  border-color: transparent;
  background: transparent;
}

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

.section-heading span {
  color: var(--accent-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-top: 2px;
}

.section-heading a {
  color: var(--accent-dark);
  font-weight: 800;
}

.section-heading.compact {
  align-items: start;
  flex-direction: column;
  gap: 2px;
}

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

.category-card,
.category-overview-card,
.detail-card,
.side-card,
.player-card,
.text-page article,
.sitemap-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 190px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 237, 213, 0.78));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.ranking-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(120, 53, 15, 0.18);
}

.category-card span,
.category-card strong {
  display: block;
}

.category-card span {
  color: #78350f;
  font-size: 20px;
  font-weight: 900;
}

.category-card strong {
  margin-top: 6px;
  color: var(--accent-dark);
  font-size: 24px;
}

.category-card div {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  color: #a16207;
  font-size: 13px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 32px rgba(120, 53, 15, 0.11);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #fed7aa 48%, #78350f);
}

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

.poster-frame:hover img {
  transform: scale(1.06);
}

.poster-frame.image-missing img {
  display: none;
}

.poster-frame.image-missing::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.poster-badge,
.poster-play,
.rank-crown {
  position: absolute;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(245, 158, 11, 0.92);
}

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

.movie-meta-line,
.movie-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #a16207;
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 6px;
  color: #78350f;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover {
  color: var(--accent-dark);
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #92400e;
  background: rgba(245, 158, 11, 0.13);
  font-size: 12px;
  font-weight: 800;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.movie-card.horizontal .poster-frame {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.wide {
  min-width: 310px;
}

.movie-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x proximity;
}

.movie-row .movie-card {
  scroll-snap-align: start;
}

.section-band {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.82), rgba(255, 237, 213, 0.82));
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
}

.rank-list,
.feature-stack,
.compact-stack {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent-dark);
  background: rgba(245, 158, 11, 0.12);
  font-weight: 900;
}

.top-rank .rank-number {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #f97316);
}

.rank-title {
  color: #78350f;
  font-weight: 900;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.masonry-grid {
  columns: 4 240px;
  column-gap: 20px;
}

.masonry-grid .movie-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
}

.page-hero,
.detail-hero {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.36), transparent 32%), linear-gradient(135deg, #fff7ed, #ffedd5);
}

.simple-hero .container {
  padding: 64px 0 58px;
}

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

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

.category-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.category-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.category-pill.is-active,
.category-pill:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #f97316);
}

.overview-list {
  display: grid;
  gap: 26px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 8px 0;
  color: #78350f;
  font-size: 30px;
}

.ranking-list-page {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(120, 53, 15, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-cover {
  border-radius: 16px;
}

.rank-crown {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #f97316);
}

.ranking-card h2 {
  margin: 8px 0;
  color: #78350f;
  font-size: 25px;
}

.ranking-card p {
  color: var(--muted);
}

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

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  padding: 0;
  background: #111827;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.video-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #f97316);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.video-start span {
  margin-left: 5px;
  font-size: 32px;
}

.video-shell.is-playing .video-start,
.video-shell.is-ready .video-message {
  opacity: 0;
  pointer-events: none;
}

.video-message {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.54);
  transform: translateX(-50%);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin-bottom: 12px;
}

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

.detail-tags {
  margin: 18px 0 26px;
}

.detail-card h2,
.side-card h2,
.text-page h2,
.sitemap-group h2 {
  margin: 26px 0 10px;
  color: #78350f;
  font-size: 24px;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.side-card {
  padding: 18px;
}

.compact-stack .movie-card.horizontal {
  grid-template-columns: 112px minmax(0, 1fr);
}

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

.compact-stack .movie-card h3 {
  font-size: 15px;
}

.text-page {
  padding: 58px 0;
}

.text-page article {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px;
}

.text-page h2:first-child {
  margin-top: 0;
}

.sitemap-page {
  display: grid;
  gap: 18px;
}

.sitemap-group {
  padding: 22px;
}

.sitemap-group h2 {
  margin-top: 0;
}

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
}

.sitemap-links a {
  color: var(--muted);
  font-size: 14px;
}

.sitemap-links a:hover {
  color: var(--accent-dark);
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #fff1d6, #fed7aa);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-brand {
  font-size: 26px;
}

.site-footer p {
  color: var(--muted);
}

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

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

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  padding: 16px;
  color: #92400e;
  text-align: center;
  border-top: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

  .detail-layout,
  .two-column,
  .intro-search {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

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

  .header-inner {
    height: 62px;
  }

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

  .nav-menu {
    display: none;
  }

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

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

  .mobile-search input {
    flex: 1;
    width: auto;
  }

  .hero-carousel,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-control {
    display: none;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    text-align: center;
    flex: 1 1 150px;
  }

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

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

  .category-card {
    min-height: 170px;
    padding: 16px;
  }

  .movie-card.horizontal,
  .ranking-card {
    grid-template-columns: 1fr;
  }

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

  .rank-meta {
    grid-column: 2;
  }

  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

@media (max-width: 520px) {
  .category-grid,
  .movie-grid,
  .small-grid,
  .sitemap-links {
    grid-template-columns: 1fr;
  }

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

  .big-search input,
  .page-search input {
    width: 100%;
  }

  .section-block {
    padding: 42px 0;
  }

  .detail-card,
  .text-page article {
    padding: 22px;
  }
}
