* {
  box-sizing: border-box;
}

:root {
  --dawn-50: #fff9f0;
  --dawn-100: #fff0d7;
  --dawn-200: #ffe4b8;
  --dawn-400: #ffc46f;
  --dawn-500: #ffb347;
  --dawn-600: #ff9f24;
  --dawn-700: #f58700;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 58%, #fff9f0 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dawn-600);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dawn-500), #f97316);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(255, 159, 36, 0.35);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 650;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--dawn-600);
}

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

.nav-search input,
.mobile-search input,
.big-search input,
.filter-bar input {
  min-width: 240px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 15px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus {
  border-color: var(--dawn-500);
  box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.2);
}

.nav-search button,
.mobile-search button,
.big-search button,
.filter-buttons button,
.primary-btn,
.secondary-btn {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-search button,
.mobile-search button,
.big-search button,
.primary-btn {
  background: var(--dawn-600);
  color: #ffffff;
}

.nav-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.primary-btn:hover {
  background: var(--dawn-700);
  transform: translateY(-1px);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 16px 20px 22px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 14px;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.46) 46%, rgba(0, 0, 0, 0.14) 100%);
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.94);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--dawn-500);
}

.quick-panel,
.content-section,
.page-main,
.detail-layout,
.site-footer .footer-grid,
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 22px;
  padding: 34px 20px 6px;
}

.quick-search-card,
.quick-links,
.detail-card,
.related-box,
.side-poster,
.category-card,
.filter-bar,
.top-rank {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.quick-search-card {
  padding: 28px;
}

.quick-search-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.quick-search-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.big-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

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

.quick-links {
  display: grid;
  padding: 18px;
  gap: 12px;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--dawn-50);
  color: var(--dawn-700);
  font-weight: 800;
}

.quick-links a::after {
  content: "→";
}

.content-section {
  padding: 54px 20px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-title a {
  color: var(--dawn-600);
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
}

.poster-link {
  display: block;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #f3f4f6);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.66) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

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

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.movie-card h3 {
  margin: 12px 0 6px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--dawn-600);
}

.movie-card p {
  margin: 0 0 10px;
  color: #5b6472;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta span,
.year-badge,
.play-badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 5px 9px;
  background: var(--dawn-50);
  color: var(--dawn-700);
}

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  background: var(--dawn-600);
  color: #ffffff;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  width: 32px;
  height: 32px;
  justify-content: center;
  background: rgba(17, 24, 39, 0.82);
  color: #ffffff;
}

.play-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 12px;
  background: rgba(255, 159, 36, 0.94);
  color: #ffffff;
  transform: translateY(55px);
  transition: transform 0.25s ease;
}

.movie-card:hover .play-badge {
  transform: translateY(0);
}

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

.compact-card p {
  font-size: 13px;
}

.dawn-strip {
  max-width: none;
  margin-top: 54px;
  padding: 54px max(20px, calc((100vw - 1200px) / 2 + 20px));
  background: linear-gradient(90deg, var(--dawn-50), #fff7ed);
}

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

.category-tile,
.category-card {
  display: grid;
  gap: 12px;
  border-radius: 22px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.76);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.category-tile strong,
.category-card span {
  color: var(--dawn-700);
  font-size: 20px;
  font-weight: 850;
}

.category-tile span,
.category-card h2 {
  color: #4b5563;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.category-tile em,
.category-samples {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.category-tile em a,
.category-samples a {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

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

.scroll-row .movie-card {
  width: 230px;
  flex: 0 0 230px;
  scroll-snap-align: start;
}

.page-main {
  padding: 0 20px 40px;
}

.page-hero {
  position: relative;
  margin-top: 26px;
  padding: 74px min(6vw, 70px);
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(circle at top right, rgba(255, 179, 71, 0.62), transparent 36%), linear-gradient(135deg, #111827, #4b2600);
  color: #ffffff;
}

.small-hero,
.category-hero,
.ranking-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
}

.filter-section {
  padding-top: 34px;
}

.filter-bar {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: 22px;
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.filter-bar input {
  width: 100%;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  background: var(--dawn-50);
  color: var(--dawn-700);
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
  background: var(--dawn-600);
  color: #ffffff;
}

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

.empty-state.is-visible {
  display: block;
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.top-rank {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: 0;
  color: #ffffff;
}

.top-rank img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-rank::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.86));
}

.top-rank strong,
.top-rank em,
.rank-number {
  position: absolute;
  z-index: 1;
}

.rank-number {
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--dawn-600);
  font-weight: 900;
}

.top-rank strong {
  left: 18px;
  right: 18px;
  bottom: 72px;
  font-size: 20px;
}

.top-rank em {
  left: 18px;
  right: 18px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.detail-main {
  background: #f9fafb;
}

.player-shell {
  background: #050505;
}

.player-frame {
  position: relative;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 6px;
  background: var(--dawn-600);
  color: #ffffff;
  font-size: 40px;
  box-shadow: 0 18px 42px rgba(255, 159, 36, 0.34);
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  padding: 38px 20px 60px;
}

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

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

.detail-content h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--dawn-50);
  color: var(--dawn-700);
  font-weight: 800;
}

.lead-text {
  color: #374151;
  font-size: 19px;
  line-height: 1.8;
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-card h2,
.related-box h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

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

.tag-list span {
  background: var(--dawn-50);
  color: var(--dawn-700);
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.side-poster {
  padding: 18px;
  position: sticky;
  top: 88px;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.full-btn {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.related-box {
  padding: 22px;
}

.related-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.related-item:first-of-type {
  border-top: 0;
}

.related-item img {
  width: 82px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

.related-item span {
  min-width: 0;
}

.related-item strong,
.related-item em {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item strong {
  margin-bottom: 8px;
  -webkit-line-clamp: 2;
  color: #111827;
  line-height: 1.45;
}

.related-item em {
  -webkit-line-clamp: 3;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.site-footer {
  margin-top: 70px;
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 44px 20px;
}

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

.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a:hover {
  color: var(--dawn-400);
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 20px;
  color: #9ca3af;
}

.footer-bottom p {
  margin: 0;
}

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

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

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

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

  .side-poster {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-slider {
    height: 640px;
    min-height: 560px;
  }

  .hero-content {
    bottom: 76px;
  }

  .hero-arrow {
    display: none;
  }

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

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

@media (max-width: 560px) {
  .nav-wrap {
    padding: 0 14px;
  }

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

  .hero-slider {
    height: 590px;
    min-height: 590px;
  }

  .hero-content {
    width: calc(100% - 28px);
  }

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

  .hero-actions,
  .big-search,
  .mobile-search {
    grid-template-columns: 1fr;
    display: grid;
  }

  .content-section,
  .page-main,
  .detail-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .movie-grid,
  .full-grid,
  .rank-grid,
  .category-grid,
  .category-overview,
  .top-rank-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .scroll-row .movie-card {
    width: 205px;
    flex-basis: 205px;
  }

  .page-hero {
    padding: 48px 24px;
    border-radius: 22px;
  }

  .player-cover span {
    width: 68px;
    height: 68px;
    font-size: 32px;
  }
}
