:root {
  --page: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(120, 53, 15, 0.14);
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --shadow: 0 24px 70px rgba(120, 53, 15, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.25), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 44%, #fffbeb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
  background: rgba(255, 251, 235, 0.88);
  backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  color: var(--amber-dark);
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  font-weight: 700;
  color: #4b5563;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--amber);
}

.header-search {
  width: min(27vw, 320px);
  min-width: 210px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.header-search input,
.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.75rem 0.95rem;
  color: var(--ink);
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 0 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 0.85rem;
  background: #ffffff;
}

.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.27rem auto;
  border-radius: 999px;
  background: var(--amber-dark);
}

.mobile-panel {
  display: none;
  padding: 0 1.25rem 1rem;
  border-top: 1px solid rgba(217, 119, 6, 0.12);
}

.mobile-panel.is-open {
  display: grid;
  gap: 0.75rem;
}

.mobile-search {
  display: flex;
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.16);
}

.hero {
  position: relative;
  max-width: 1220px;
  min-height: clamp(560px, 72vh, 760px);
  margin: 1.25rem auto 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: #fffbeb;
}

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

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease;
}

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

.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  color: var(--amber-dark);
  background: rgba(254, 243, 199, 0.92);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  max-width: 780px;
  margin: 1rem 0;
  color: #7c2d12;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: #4b5563;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.85;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-row span {
  display: inline-flex;
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
  color: #92400e;
  background: rgba(254, 243, 199, 0.9);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.primary-button,
.secondary-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  min-height: 3.1rem;
  padding: 0 1.45rem;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.28);
}

.secondary-button,
.section-more {
  min-height: 3.1rem;
  padding: 0 1.35rem;
  color: #92400e;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(217, 119, 6, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(120, 53, 15, 0.16);
}

.small-actions .primary-button,
.small-actions .secondary-button {
  min-height: 2.75rem;
}

.hero-poster {
  display: block;
  aspect-ratio: 2 / 3;
  max-height: 520px;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.7);
  border-radius: 2rem;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.22);
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.poster-link img,
.rank-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 1.3rem;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  background: transparent;
}

.hero-arrow {
  width: 2.35rem;
  height: 2.35rem;
  color: var(--amber-dark);
  font-size: 1.8rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 0.4rem;
}

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.26);
}

.hero-dot.is-active {
  width: 1.75rem;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 5rem) 1.25rem 0;
}

.section-tight {
  padding-top: 2rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-heading h2,
.detail-text h2 {
  margin: 0.55rem 0 0;
  color: #7c2d12;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.category-card,
.category-overview-card,
.movie-card,
.rank-card,
.rank-list,
.detail-text,
.filter-panel,
.video-frame {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 44px rgba(120, 53, 15, 0.08);
}

.category-card,
.category-overview-card {
  min-height: 8.4rem;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(120, 53, 15, 0.16);
}

.category-card span,
.category-overview-card h2 {
  color: #7c2d12;
  font-size: 1.15rem;
  font-weight: 950;
}

.category-card strong,
.category-overview-card p {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 600;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.poster-link img {
  transition: transform 320ms ease;
}

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

.poster-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.28rem 0.56rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  font-size: 0.78rem;
  font-weight: 950;
}

.movie-card-body {
  padding: 1rem;
}

.movie-meta {
  color: var(--amber-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.large-meta {
  font-size: 1rem;
}

.movie-card h3,
.rank-card h2 {
  margin: 0.35rem 0 0.4rem;
  color: #1f2937;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 950;
}

.movie-one-line,
.rank-card-body p {
  color: var(--muted);
  line-height: 1.65;
}

.rank-list {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
}

.rank-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 251, 235, 0.8);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 950;
}

.rank-title {
  color: #7c2d12;
  font-weight: 950;
}

.rank-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  max-width: 1220px;
  margin: 1.25rem auto 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.9));
  box-shadow: var(--shadow);
}

.page-hero {
  padding: clamp(2.2rem, 6vw, 5rem);
}

.compact-hero h1,
.category-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
}

.category-overview-card {
  min-height: 14rem;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  font-weight: 950;
}

.rank-card-list {
  display: grid;
  gap: 1rem;
}

.rank-card {
  display: grid;
  grid-template-columns: 5rem 8rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.rank-card-number {
  color: #f59e0b;
  font-size: 2rem;
  font-weight: 950;
  text-align: center;
}

.rank-card-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 1rem;
  background: #fef3c7;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 1rem;
  outline: 0;
  padding: 0 1rem;
  color: var(--ink);
  background: #ffffff;
}

.empty-result {
  padding: 2rem;
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
}

.detail-hero {
  min-height: 560px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.detail-inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: #7c2d12;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.75);
  border-radius: 2rem;
  background: #fef3c7;
  box-shadow: 0 22px 60px rgba(120, 53, 15, 0.2);
}

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

.player-section {
  padding-top: 3rem;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.video-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.58));
}

.video-frame.is-playing .video-start {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 5.6rem;
  height: 5.6rem;
  padding-left: 0.3rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 22px 55px rgba(217, 119, 6, 0.45);
  font-size: 2.4rem;
}

.video-start strong {
  font-size: 1.25rem;
}

.detail-text {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
}

.detail-text p {
  margin-top: 0.85rem;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.9;
}

.detail-text h2 + p {
  margin-bottom: 1.7rem;
}

.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 2.5rem 1.25rem 1.25rem;
  background: rgba(255, 251, 235, 0.92);
  border-top: 1px solid rgba(217, 119, 6, 0.14);
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  max-width: 560px;
  margin-top: 0.65rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 999px;
  color: #92400e;
  background: #ffffff;
  font-weight: 800;
}

.footer-bottom {
  max-width: 1220px;
  margin: 1.4rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(217, 119, 6, 0.1);
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

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

@media (max-width: 780px) {
  .header-inner {
    padding: 0.85rem 1rem;
  }

  .nav-links {
    display: none;
  }

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

  .hero {
    margin: 0.75rem 0.75rem 0;
    min-height: 720px;
    border-radius: 1.6rem;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 1.5rem;
  }

  .hero-poster {
    max-width: 240px;
    max-height: none;
    margin: 0 auto;
    order: -1;
    border-radius: 1.5rem;
  }

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

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

  .rank-item,
  .rank-card,
  .detail-layout,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-card-number {
    text-align: left;
  }

  .rank-card-poster {
    max-width: 180px;
  }

  .page-hero,
  .detail-hero {
    margin: 0.75rem 0.75rem 0;
    border-radius: 1.6rem;
  }

  .detail-poster {
    max-width: 240px;
  }
}

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

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

  .hero-controls {
    width: calc(100% - 2rem);
    justify-content: space-between;
  }
}
