:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-red: #ef4444;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --panel: #ffffff;
  --dark: #111827;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #fff7ed 46%, #ffffff 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  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.8);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand);
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.28);
}

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

.nav-link {
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
  padding: 10px 0;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 240px;
  transform: translateX(-50%) translateY(8px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel a,
.mobile-menu a {
  padding: 8px 10px;
  border-radius: 10px;
  color: #4b5563;
  font-weight: 650;
}

.dropdown-panel a:hover,
.mobile-menu a:hover {
  color: var(--brand);
  background: var(--soft);
}

.header-search {
  display: flex;
  align-items: center;
  width: 260px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search input {
  padding: 10px 4px 10px 16px;
}

.header-search button {
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--brand);
  cursor: pointer;
  background: transparent;
}

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

.mobile-menu {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-menu.is-open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-search {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.mobile-search input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mobile-search button,
.search-page-form button,
.hero-search button {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  cursor: pointer;
}

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

.hero-stage,
.hero-slide,
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.08);
}

.hero-overlay {
  background:
    radial-gradient(circle at 18% 28%, rgba(249, 115, 22, 0.72), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.78) 44%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.08));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 106px 20px 160px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 880px;
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.hero-tags span,
.movie-tags span,
.detail-tags a {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  background: #ffedd5;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.3);
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px);
}

.btn-line {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.btn-soft {
  color: var(--brand-dark);
  background: #ffedd5;
}

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

.hero-dot {
  width: 36px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--brand);
}

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  width: min(760px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search input {
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.section-block {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 20px;
}

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

.section-head h2,
.page-hero h1,
.detail-content h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.section-head p,
.page-hero p,
.detail-content p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--brand);
  font-weight: 900;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fed7aa;
  box-shadow: var(--shadow);
}

.movie-card[hidden],
.rank-card[hidden] {
  display: none;
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

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

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

.poster-type,
.poster-score {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
}

.poster-type {
  left: 10px;
}

.poster-score {
  right: 10px;
  background: rgba(249, 115, 22, 0.86);
}

.movie-info {
  padding: 16px;
}

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

.movie-info h3 a:hover,
.rank-body h3 a:hover,
.category-overview-card h2 a:hover {
  color: var(--brand);
}

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

.movie-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span:not(:last-child)::after,
.rank-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

.is-compact .movie-info h3 {
  font-size: 16px;
}

.is-compact .movie-info p,
.is-compact .movie-tags {
  display: none;
}

.feature-strip,
.rank-section {
  position: relative;
}

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

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.16));
}

.category-card span,
.category-card p {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-card span {
  bottom: 60px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  bottom: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.rank-poster span {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
}

.rank-body h3 {
  margin: 4px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

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

.page-hero {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 78px 20px;
  border-radius: 0 0 36px 36px;
}

.slim-hero,
.category-hero {
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #111827 0%, #7c2d12 50%, #f97316 100%);
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.05);
}

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

.category-overview-card h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  background: #ffedd5;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.04);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #fff;
}

.search-page-form {
  display: flex;
  max-width: 720px;
  gap: 10px;
  margin-top: 26px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.search-page-form input {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  background: #fff;
}

.detail-hero {
  padding: 36px 20px 0;
  color: #fff;
  background:
    radial-gradient(circle at 88% 16%, rgba(249, 115, 22, 0.46), transparent 32%),
    linear-gradient(135deg, #111827 0%, #1f2937 56%, #7c2d12 100%);
}

.breadcrumb {
  max-width: 1240px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding-bottom: 46px;
}

.player-column h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  z-index: 3;
}

.player-overlay[hidden] {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 20px 44px rgba(249, 115, 22, 0.34);
}

.player-overlay strong {
  font-size: 18px;
}

.detail-one-line {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-side {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.detail-cover {
  aspect-ratio: 3 / 4.2;
  border-radius: 18px;
  background: #111827;
}

.detail-side-info h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.detail-side-info dl {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}

.detail-side-info dl div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
}

.detail-side-info dt {
  color: rgba(255, 255, 255, 0.54);
}

.detail-side-info dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-content article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.04);
}

.detail-content p {
  font-size: 17px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 16px;
  color: #fff;
}

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 7px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

  .detail-side {
    max-width: 560px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 720px;
  }

  .hero-copy {
    padding-top: 86px;
  }

  .hero-search,
  .search-page-form {
    flex-direction: column;
  }

  .hero-search button,
  .search-page-form button {
    min-height: 46px;
  }

  .section-head,
  .footer-grid,
  .detail-content {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

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

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

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

  .site-logo {
    font-size: 20px;
  }

  .mobile-menu.is-open,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 46px 14px;
  }

  .hero-copy {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .detail-cover {
    max-width: 220px;
  }
}
