:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f8fafc;
  --deep: #120b08;
  --amber: #f59e0b;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --shadow: 0 16px 45px rgba(17, 24, 39, 0.14);
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #78350f 0%, #92400e 48%, #c2410c 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.nav-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 8px 22px rgba(0, 0, 0, 0.18);
}

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

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

.nav-link,
.nav-drop-button {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-category-drop {
  position: relative;
}

.nav-drop-button {
  border: 0;
  background: transparent;
  padding: 20px 0;
}

.nav-drop-panel {
  position: absolute;
  right: 0;
  top: 56px;
  width: 220px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-category-drop:hover .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #f8fafc;
}

.nav-drop-panel a:hover {
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
}

.nav-search {
  position: relative;
  width: min(260px, 30vw);
}

.nav-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

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

.global-search-results {
  position: absolute;
  right: 0;
  top: 48px;
  width: min(420px, 86vw);
  max-height: 430px;
  overflow: auto;
  display: none;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.global-search-results.is-open {
  display: block;
}

.search-hit {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
}

.search-hit:hover {
  background: #fff7ed;
}

.search-hit img {
  width: 54px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: #1f2937;
}

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

.search-hit span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.mobile-menu-button {
  display: none;
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px 18px;
  background: rgba(120, 53, 15, 0.98);
}

.mobile-link {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  display: none;
  min-height: 640px;
  position: relative;
  isolation: isolate;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.38)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.34), transparent 30%), linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.78) 100%);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 92px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 56px;
  align-items: center;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.26);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.hero-meta span,
.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #78350f;
  background: linear-gradient(135deg, #fbbf24, #fff7ed);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.btn-soft {
  color: #92400e;
  background: #fffbeb;
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

.hero-poster-card {
  border-radius: 30px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.hero-poster-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 22px;
  background: #1f2937;
}

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

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

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

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

.section-heading h2,
.page-title h1,
.detail-copy h1 {
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.15;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-title p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.14);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #78350f);
}

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

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

.poster-year,
.poster-kind {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.poster-kind {
  left: auto;
  right: 10px;
  background: rgba(146, 64, 14, 0.78);
}

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

.movie-card-title {
  display: block;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  color: #111827;
}

.movie-card-title:hover {
  color: #d97706;
}

.movie-card-body p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9ca3af;
  font-size: 13px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #78350f, #c2410c);
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h3 {
  position: relative;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.category-card p {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.page-hero {
  background: radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.28), transparent 28%), linear-gradient(135deg, #111827, #78350f 64%, #c2410c);
  color: #ffffff;
}

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

.page-title h1,
.page-title p {
  color: #ffffff;
}

.page-title p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 16px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.filter-panel input,
.filter-panel select {
  color: #111827;
  background: #f9fafb;
  border-color: #e5e7eb;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 110px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.rank-num {
  font-size: 28px;
  font-weight: 900;
  color: #d97706;
  text-align: center;
}

.rank-item img {
  width: 110px;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  background: #1f2937;
}

.rank-body h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

.rank-body p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-hero {
  padding: 56px 24px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 8%, rgba(245, 158, 11, 0.26), transparent 25%), linear-gradient(135deg, #111827, #7c2d12 70%, #c2410c);
}

.detail-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-cover {
  border-radius: 28px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
  background: #1f2937;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fde68a;
}

.detail-copy h1 {
  color: #ffffff;
}

.detail-copy .lead {
  margin: 18px 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
}

.player-section {
  max-width: 1080px;
  margin: 56px auto;
  padding: 0 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(135deg, #fbbf24, #ffffff);
  font-size: 34px;
  box-shadow: 0 20px 48px rgba(245, 158, 11, 0.3);
}

.player-title {
  font-size: 24px;
  font-weight: 900;
}

.detail-content {
  max-width: 1080px;
  margin: 0 auto 56px;
  padding: 0 24px;
  display: grid;
  gap: 24px;
}

.content-card {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 900;
}

.content-card p {
  color: #374151;
  line-height: 1.95;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-brand p {
  margin-top: 16px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-col h3 {
  margin-bottom: 16px;
  color: #ffffff;
  font-weight: 900;
}

.footer-col li + li {
  margin-top: 10px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  text-align: center;
  color: #9ca3af;
}

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

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

  .hero-poster-card,
  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 860px) {
  .nav-center,
  .nav-search {
    display: none;
  }

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

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

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

  .hero-inner {
    padding: 62px 18px 86px;
    gap: 28px;
  }

  .hero-poster-card img {
    height: 420px;
  }

  .container {
    padding: 42px 18px;
  }

  .section-heading {
    display: block;
  }

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

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

  .rank-item {
    grid-template-columns: 42px 86px 1fr;
  }

  .rank-item .btn-soft {
    grid-column: 2 / 4;
  }

  .rank-item img {
    width: 86px;
    height: 118px;
  }

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

@media (max-width: 520px) {
  .nav-inner {
    padding: 0 16px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-poster-card {
    display: none;
  }

  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 40px 18px;
  }

  .detail-inner {
    gap: 24px;
  }

  .player-section,
  .detail-content {
    padding: 0 18px;
  }
}
