:root {
  --brand: #b45309;
  --brand-dark: #78350f;
  --brand-light: #f59e0b;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
}

.site-logo {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  padding: 7px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #fde68a;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 9px 14px;
  color: #ffffff;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.hero-search button,
.filter-panel button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.header-search button {
  padding: 9px 14px;
  color: var(--brand-dark);
  background: #fde68a;
}

.nav-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 26px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 76px;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 780px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.card-tags,
.detail-tags,
.rank-meta,
.card-meta,
.movie-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span,
.movie-facts span,
.rank-meta span,
.card-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  font-size: 13px;
}

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

.primary-btn {
  padding: 12px 22px;
  color: var(--brand-dark);
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.35);
}

.secondary-btn {
  padding: 12px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-search {
  display: flex;
  width: min(500px, 100%);
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 15px 18px;
  outline: none;
  color: var(--text);
  background: transparent;
}

.hero-search button {
  margin: 5px;
  padding: 0 20px;
  color: #ffffff;
  background: var(--brand);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

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

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--brand-light);
}

.main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-block {
  margin-bottom: 64px;
}

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

.section-head h2,
.page-title h1,
.detail-main h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

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

.section-link {
  color: var(--brand);
  font-weight: 900;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.card-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-year {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.94);
  font-size: 12px;
  font-weight: 900;
}

.card-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  display: -webkit-box;
  min-height: 40px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta span,
.card-tags span,
.movie-facts span,
.detail-tags span,
.rank-meta span {
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
}

.card-tags {
  margin-top: 10px;
}

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

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  border-radius: 22px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #7c2d12);
  box-shadow: 0 18px 35px rgba(120, 53, 15, 0.2);
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #2563eb, #312e81);
}

.category-card:nth-child(3n + 3) {
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  flex: 1;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.category-card span {
  font-weight: 900;
}

.page-hero {
  padding: 76px 20px 36px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.4), transparent 32%), linear-gradient(135deg, #111827, #78350f);
}

.page-title {
  max-width: 1280px;
  margin: 0 auto;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px)) auto;
  gap: 12px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
  background: #ffffff;
}

.filter-panel button {
  padding: 0 18px;
  color: #ffffff;
  background: var(--brand);
}

.empty-state {
  display: none;
  margin: 28px 0;
  border-radius: 18px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 56px 118px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.rank-number {
  color: var(--brand);
  font-size: 26px;
  font-weight: 950;
  text-align: center;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.rank-cover img {
  height: 100%;
  object-fit: cover;
}

.rank-content h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 950;
}

.rank-content p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 800;
}

.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 20px 64px;
}

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

.detail-main,
.detail-side,
.summary-card,
.review-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.detail-main {
  overflow: hidden;
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
}

.play-layer span {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
  font-size: 34px;
}

.player-box.is-playing .play-layer {
  display: none;
}

.detail-content {
  padding: 28px;
}

.detail-main h1 {
  margin-bottom: 14px;
}

.movie-facts {
  margin: 14px 0 20px;
}

.detail-intro {
  margin: 0 0 22px;
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.summary-card,
.review-card,
.detail-side {
  padding: 24px;
}

.summary-card h2,
.review-card h2,
.detail-side h2,
.related-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 950;
}

.summary-card p,
.review-card p,
.detail-side p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.detail-poster {
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 18px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

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

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

.site-footer {
  color: #d1d5db;
  background: #111827;
  padding: 46px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto 28px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p {
  max-width: 520px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

.footer-grid a:hover {
  color: #fbbf24;
}

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1100px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 22px 22px;
    background: var(--brand-dark);
  }

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

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

  .header-search {
    width: 220px;
  }

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

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

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

  .detail-side {
    order: -1;
  }
}

@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .hero-slider {
    height: 78vh;
    min-height: 620px;
  }

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

  .category-cards,
  .rank-list {
    grid-template-columns: 1fr;
  }

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

  .filter-panel button {
    padding: 12px 18px;
  }

  .rank-card {
    grid-template-columns: 44px 92px 1fr;
    gap: 12px;
  }

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

@media (max-width: 520px) {
  .site-logo {
    font-size: 18px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 34px;
  }

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

  .spotlight-section {
    padding: 20px;
  }

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

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