:root {
  --page-bg: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --amber: #d97706;
  --amber-dark: #b45309;
  --orange: #ea580c;
  --slate: #0f172a;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #f8fafc 32rem, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.28);
}

.brand-name,
.footer-brand {
  font-size: 24px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 190px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  color: #4b5563;
  border-radius: 10px;
}

.dropdown-panel a:hover {
  color: var(--amber);
  background: #fffbeb;
}

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

.header-search,
.mobile-search,
.wide-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-input,
.filter-select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  outline: 0;
}

.header-search input {
  width: 210px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(217, 119, 6, 0.2);
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #374151;
}

.mobile-nav {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid #e5e7eb;
}

.hero-wrap,
.section-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px;
}

.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--slate);
}

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

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

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.24), transparent 20rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 14vw, 190px);
  bottom: clamp(28px, 7vw, 72px);
  color: #fff;
  max-width: 800px;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 10px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
}

.hero-content h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 48px);
}

.hero-meta {
  margin: 0 0 12px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 26px;
  color: #d1d5db;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions,
.detail-category-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 750;
  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(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  bottom: 34px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-prev {
  right: 92px;
}

.hero-next {
  right: 36px;
}

.hero-dots {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 24px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

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

.intro-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 32px;
  align-items: center;
}

.intro-copy,
.content-card,
.ranking-panel,
.category-card,
.search-status {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(229, 231, 235, 0.82);
}

.intro-copy {
  padding: 28px;
}

.intro-copy h2,
.section-title-row h2,
.ranking-panel h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.intro-copy p:last-child,
.page-hero p,
.content-card p {
  color: var(--muted);
  line-height: 1.85;
}

.wide-search {
  padding: 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.wide-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
}

.wide-search button {
  min-height: 50px;
  padding: 0 26px;
  white-space: nowrap;
}

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

.section-title-row a,
.panel-link,
.detail-category-links a,
.category-samples a {
  color: var(--amber);
  font-weight: 750;
}

.small-gap {
  margin-bottom: 18px;
}

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

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.card-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-shade {
  opacity: 1;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: var(--amber);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, var(--orange));
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.card-meta,
.card-desc {
  margin: 0;
  color: var(--muted);
}

.card-meta {
  margin-bottom: 8px;
  font-size: 14px;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-compact .card-body {
  padding: 12px;
}

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

.soft-section {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(8px);
}

.amber-soft {
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

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

.list-stack,
.ranking-list {
  display: grid;
  gap: 14px;
}

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

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

.list-poster {
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
  aspect-ratio: 3 / 4;
}

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

.list-info {
  min-width: 0;
}

.list-info h3 {
  margin: 2px 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.list-info p,
.list-info span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.list-info span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  margin-bottom: 6px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  background: var(--amber);
}

.ranking-panel {
  padding: 22px;
}

.ranking-panel .list-card {
  grid-template-columns: 64px minmax(0, 1fr);
  box-shadow: none;
  border: 1px solid #f3f4f6;
}

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

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

.category-card {
  display: block;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 14px;
}

.page-hero,
.detail-hero {
  max-width: 1280px;
  margin: 36px auto 0;
  padding: 0 24px;
}

.page-hero-inner {
  padding: clamp(34px, 7vw, 72px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 12%, rgba(245, 158, 11, 0.32), transparent 22rem),
    linear-gradient(135deg, #111827, #1f2937 52%, #92400e);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 760px;
  color: #e5e7eb;
  font-size: 17px;
}

.category-hero .page-hero-inner {
  background:
    radial-gradient(circle at 84% 20%, rgba(251, 191, 36, 0.26), transparent 20rem),
    linear-gradient(135deg, #78350f, #111827 62%);
}

.filter-bar {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-input,
.filter-select {
  min-height: 48px;
  padding: 0 18px;
}

.filter-input {
  flex: 1;
}

.filter-select {
  width: 180px;
}

.search-status {
  margin-bottom: 22px;
  padding: 18px 22px;
  color: var(--muted);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding-top: 34px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}

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

.detail-intro {
  padding: clamp(24px, 5vw, 46px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 12%, rgba(245, 158, 11, 0.30), transparent 18rem),
    linear-gradient(135deg, #111827, #1f2937 68%, #78350f);
  box-shadow: var(--shadow);
}

.detail-intro h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-line {
  margin: 0 0 20px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.75;
}

.meta-chips,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.meta-chips span,
.tag-cloud span,
.detail-category-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.tag-cloud span {
  color: #fef3c7;
}

.player-section {
  padding-top: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12));
  cursor: pointer;
}

.player-cover-button span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 38px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.player-cover-button.is-hidden {
  display: none;
}

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

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin-bottom: 14px;
}

.site-footer {
  margin-top: 48px;
  padding: 38px 24px;
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-shell p {
  max-width: 620px;
  margin: 12px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

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

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

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

  .split-layout,
  .intro-panel,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    width: 100%;
  }
}

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

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

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

  .hero-slider {
    height: 520px;
    border-radius: 22px;
  }

  .hero-content {
    right: 24px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .detail-poster {
    max-width: 320px;
    margin: 0 auto;
  }

  .filter-bar,
  .footer-shell,
  .section-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .hero-wrap,
  .section-shell,
  .page-hero,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-slider {
    height: 500px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content h2 {
    font-size: 26px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .grid-six,
  .grid-four,
  .category-grid,
  .category-grid-large {
    grid-template-columns: 1fr;
  }

  .wide-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .wide-search input,
  .wide-search button {
    width: 100%;
  }

  .list-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }
}
