:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --surface: #ffffff;
  --surface-strong: #fff3d7;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fde68a;
  --brand: #d97706;
  --brand-dark: #92400e;
  --accent: #ea580c;
  --shadow: 0 20px 50px rgba(146, 64, 14, 0.16);
}

* {
  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(180deg, var(--bg-soft), var(--bg) 42%, #ffffff);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 237, 213, 0.94));
  border-bottom: 1px solid rgba(253, 230, 138, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--brand-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

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

.site-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 28px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

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

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

.hero-slide img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.hero-panel {
  width: min(700px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.22);
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.7;
}

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.detail-tags span {
  background: #fff1cf;
  color: var(--brand-dark);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(234, 88, 12, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.3);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

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

.hero-dot {
  width: 40px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
  background: #fbbf24;
}

.search-band {
  position: relative;
  z-index: 5;
  margin-top: -34px;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf0;
  outline: none;
}

.search-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.section {
  padding: 70px 0;
}

.section.soft {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.4), rgba(255, 237, 213, 0.58));
}

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

.section-title h2,
.section-title h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  color: #111827;
}

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

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

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

.movie-card,
.category-card,
.feature-card {
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.9);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.feature-card:hover {
  transform: translateY(-5px);
  border-color: #f59e0b;
  box-shadow: 0 24px 54px rgba(146, 64, 14, 0.16);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fef3c7;
}

.movie-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.movie-year,
.play-dot {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.movie-year {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.56);
  font-size: 12px;
}

.play-dot {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

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

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

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

.category-card {
  padding: 22px;
  background: linear-gradient(145deg, #ffffff, #fff7df);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  padding: 80px 0;
  color: #fff;
  background: radial-gradient(circle at 10% 10%, rgba(251, 191, 36, 0.34), transparent 34%), linear-gradient(135deg, #78350f, #7c2d12 54%, #111827);
}

.page-hero .crumbs,
.detail-title .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 700;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.filter-tag {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--brand-dark);
  font-weight: 800;
}

.filter-tag.active,
.filter-tag:hover {
  color: #fff;
  background: var(--brand);
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid rgba(253, 230, 138, 0.86);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(146, 64, 14, 0.06);
}

.rank-item strong {
  color: var(--brand);
  font-size: 22px;
}

.rank-item span {
  font-weight: 800;
}

.rank-item em {
  color: var(--muted);
  font-style: normal;
}

.detail-hero {
  padding: 54px 0 40px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #78350f 48%, #7c2d12);
}

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

.detail-title h1 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-title p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

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

.start-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.start-layer.hidden {
  display: none;
}

.start-layer span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.96);
  font-size: 30px;
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.32);
}

.content-card {
  padding: 28px;
  border: 1px solid rgba(253, 230, 138, 0.88);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
}

.content-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.9;
}

.site-footer {
  margin-top: 40px;
  padding: 44px 0;
  color: #fffbeb;
  background: linear-gradient(90deg, #78350f, #7c2d12);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid p {
  max-width: 560px;
  color: rgba(255, 251, 235, 0.74);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
  font-weight: 800;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 980px) {
  .grid,
  .grid.compact,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fffaf0;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

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

  .hero,
  .hero-content {
    min-height: 570px;
  }

  .search-card {
    grid-template-columns: 1fr;
  }

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

  .section-head,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-item a {
    grid-template-columns: 38px 1fr;
  }

  .rank-item em {
    display: none;
  }
}

@media (max-width: 440px) {
  .grid,
  .grid.compact,
  .category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }
}
