:root {
  --color-bg: #f9fafb;
  --color-card: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-soft: #f3f4f6;
  --color-line: #e5e7eb;
  --color-accent: #d97706;
  --color-accent-dark: #b45309;
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 18px 48px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  color: #111827;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.03em;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 650;
  transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--color-accent);
  background: #fffbeb;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(360px, 34vw);
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px;
}

.header-search input,
.search-large input,
.filter-input,
.filter-year {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font: inherit;
}

.header-search input {
  padding: 8px 12px;
}

.header-search button,
.search-large button {
  border: 0;
  border-radius: 999px;
  background: var(--color-accent);
  color: #ffffff;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s ease;
}

.header-search button:hover,
.search-large button:hover,
.primary-btn:hover {
  background: var(--color-accent-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: #f3f4f6;
  color: #374151;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
}

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

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

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

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.active > img {
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.10) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, calc(100% - 32px));
  margin-left: max(16px, calc((100vw - 1280px) / 2));
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fffbeb;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy .eyebrow,
.page-hero .eyebrow {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  backdrop-filter: blur(8px);
}

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

.hero-copy p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta,
.hero-tags,
.detail-tags,
.tag-row,
.side-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.side-meta span {
  color: #ffffff;
  font-weight: 750;
}

.hero-meta span:first-child,
.side-meta span:first-child {
  color: #fbbf24;
}

.hero-tags {
  margin-bottom: 28px;
}

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

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: all 0.22s ease;
}

.primary-btn {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.22s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.62);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: all 0.22s ease;
}

.hero-dot.active {
  width: 36px;
  background: #f59e0b;
}

.search-band,
.content-section,
.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.search-band {
  margin-top: -52px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.search-band h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
}

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

.search-large {
  display: flex;
  gap: 8px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #f9fafb;
  padding: 6px;
}

.search-large input {
  padding: 12px 16px;
}

.search-large button {
  padding: 0 22px;
}

.content-section {
  padding: 56px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

.section-more {
  background: #fffbeb;
  color: var(--color-accent);
}

.section-more:hover {
  background: #fef3c7;
}

.movie-grid {
  display: grid;
  gap: 18px;
}

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

.movie-card {
  display: block;
  min-width: 0;
  background: var(--color-card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.poster-wrap img,
.movie-side img,
.compact-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-accent);
  color: #ffffff;
  opacity: 0;
  transition: all 0.25s ease;
}

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

.type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.68);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.card-body {
  display: block;
  padding: 14px;
}

.card-body strong {
  display: -webkit-box;
  min-height: 44px;
  margin-bottom: 7px;
  overflow: hidden;
  color: #111827;
  font-weight: 850;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body em {
  display: block;
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 12px;
  font-style: normal;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 7px;
}

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

.movie-card-wide {
  position: relative;
  min-height: 260px;
  border-radius: 24px;
  background: #111827;
}

.movie-card-wide .poster-wrap {
  aspect-ratio: 16 / 9;
  height: 100%;
}

.movie-card-wide .poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.10));
}

.movie-card-wide .card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #ffffff;
  padding: 24px;
}

.movie-card-wide .card-body strong {
  color: #ffffff;
  font-size: 24px;
  min-height: 0;
}

.movie-card-wide .card-body em {
  color: rgba(255, 255, 255, 0.76);
}

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

.category-tile {
  display: block;
  padding: 22px;
  border: 1px solid #fde68a;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.08);
  transition: all 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.14);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.category-tile span {
  color: var(--color-muted);
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.rank-list,
.compact-list,
.ranking-page-list {
  display: grid;
  gap: 12px;
}

.rank-item,
.movie-card-compact {
  display: grid;
  grid-template-columns: auto 62px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: all 0.22s ease;
}

.rank-item:hover,
.movie-card-compact:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-card);
}

.rank-num {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fffbeb;
  color: var(--color-accent);
  font-weight: 900;
}

.rank-item img {
  width: 62px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item strong,
.compact-info strong {
  display: block;
  color: #111827;
  font-weight: 850;
  line-height: 1.4;
}

.rank-item em,
.compact-info em,
.compact-info small {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.movie-card-compact {
  grid-template-columns: 72px 1fr;
}

.compact-cover {
  width: 72px;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.page-main {
  padding-top: 0;
}

.page-hero {
  margin-top: 28px;
  padding: 46px;
  border-radius: 28px;
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.32), transparent 34%), linear-gradient(135deg, #111827, #1f2937 52%, #111827);
  color: #ffffff;
  overflow: hidden;
}

.small-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.small-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

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

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

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.filter-input {
  flex: 1 1 260px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: #f9fafb;
}

.filter-types {
  display: flex;
  gap: 8px;
}

.filter-button,
.filter-year {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  color: #374151;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  background: #fffbeb;
  color: var(--color-accent);
}

.filter-year {
  width: auto;
  border: 1px solid var(--color-line);
}

.empty-state {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 750;
}

.movie-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #111827, #1f2937);
  box-shadow: var(--shadow-card);
}

.movie-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.player-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.16));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 40px;
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.34);
  transform: scale(1);
  transition: transform 0.22s ease, background 0.22s ease;
}

.player-layer:hover .play-button {
  transform: scale(1.07);
  background: var(--color-accent-dark);
}

.movie-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
}

.movie-side img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 22px;
  background: #111827;
}

.side-meta {
  justify-content: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.movie-detail h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.lead-text {
  max-width: 880px;
  color: #374151;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 750;
}

.detail-tags {
  margin-bottom: 24px;
}

.story-block {
  margin-top: 26px;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.story-block h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.story-block p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

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

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
  max-width: 520px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .grid-six {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-section {
    height: 66vh;
    min-height: 560px;
  }

  .hero-copy {
    margin: 0 auto;
    padding: 0 16px;
  }

  .hero-arrow {
    display: none;
  }

  .search-band,
  .split-section,
  .movie-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .movie-side {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .search-band,
  .content-section,
  .page-hero,
  .movie-hero,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

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

  .hero-section {
    height: 72vh;
    min-height: 560px;
  }

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

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

  .search-band,
  .page-hero,
  .movie-hero {
    padding: 22px;
    border-radius: 22px;
  }

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

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

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

  .card-body {
    padding: 12px;
  }

  .filter-types {
    width: 100%;
  }

  .filter-button {
    flex: 1;
  }

  .play-button {
    width: 68px;
    height: 68px;
    font-size: 32px;
  }

  .story-block {
    padding: 20px;
  }
}
