:root {
  --bg: #0f172a;
  --panel: #111827;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #f59e0b;
  --brand-dark: #c2410c;
  --brand-soft: #fff7ed;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #f8fafc;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #92400e, #ea580c, #f59e0b);
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.28);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo,
.footer-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo span,
.footer-logo {
  font-size: 21px;
}

.logo em {
  font-style: normal;
  font-size: 12px;
  color: #fde68a;
  font-weight: 500;
}

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

.main-nav a {
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fef3c7;
  transform: translateY(-1px);
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(360px, 34vw);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.top-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 10px 14px;
}

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

.top-search button,
.large-search button,
.search-page-form button {
  border: 0;
  cursor: pointer;
  color: #7c2d12;
  background: #fde68a;
  font-weight: 800;
  padding: 10px 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button:hover,
.large-search button:hover,
.search-page-form button:hover {
  background: #fff7ed;
}

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

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-logo {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.mobile-links,
.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: saturate(1.15);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.36), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.78) 48%, rgba(15, 23, 42, 0.32) 100%);
}

.hero-content {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 110px;
  max-width: 820px;
  margin-left: max(16px, calc((100% - 1240px) / 2));
}

.hero-kicker,
.eyebrow {
  display: inline-block;
  color: #fde68a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

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

.hero-content p {
  margin: 22px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  color: #78350f;
  background: #fef3c7;
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  padding: 12px 22px;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  padding: 11px 20px;
}

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

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

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

.hero-dots button.active {
  width: 58px;
  background: #fbbf24;
}

.section-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 34px auto;
}

.quick-filter {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: center;
  margin-top: -52px;
  position: relative;
  z-index: 5;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(16px);
}

.quick-filter h2,
.section-title-row h2,
.detail-content h2,
.detail-side h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.quick-filter p {
  margin: 6px 0 0;
  color: var(--muted);
}

.large-search,
.search-page-form {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.large-search input,
.search-page-form input,
.filter-search input,
.filter-search select,
.search-filters select {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  color: #111827;
  background: #fff;
}

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

.section-title-row.compact {
  margin-bottom: 16px;
}

.section-link {
  color: #92400e;
  background: var(--brand-soft);
  padding: 10px 16px;
}

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

.category-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #92400e, #ea580c 55%, #f59e0b);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.18);
  overflow: hidden;
  position: relative;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-card span {
  position: relative;
  font-size: 19px;
  font-weight: 850;
}

.category-card em {
  position: relative;
  font-style: normal;
  font-size: 13px;
  color: #fef3c7;
}

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

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

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  opacity: 0.82;
}

.poster-mask {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(254, 243, 199, 0.92);
  font-weight: 850;
  padding: 8px 10px;
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 850;
  line-height: 1.35;
}

.movie-title:hover {
  color: #c2410c;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: #92400e;
  font-size: 12px;
  font-weight: 750;
}

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

.movie-card .tag-row span {
  min-height: 24px;
  font-size: 12px;
  background: #fff7ed;
}

.rank-and-picks {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

.rank-panel,
.pick-panel,
.search-page-panel,
.ranking-table {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.rank-num {
  color: #c2410c;
  font-size: 18px;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-year {
  color: var(--muted);
  font-size: 13px;
}

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

.page-main {
  padding-bottom: 30px;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(245, 158, 11, 0.42), transparent 28%),
    linear-gradient(135deg, #111827, #7c2d12 62%, #ea580c);
  padding: 76px 0 86px;
}

.page-hero > div {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

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

.breadcrumb em {
  font-style: normal;
  color: #fde68a;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-cover {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #92400e);
}

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

.category-name {
  font-size: 24px;
  font-weight: 900;
}

.category-name:hover {
  color: #c2410c;
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

.list-tools {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.filter-search {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
}

.filter-search input,
.filter-search select,
.search-filters select {
  border: 1px solid var(--line);
  border-radius: 16px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-chips button {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  color: #92400e;
  background: #fff7ed;
  padding: 8px 12px;
  font-weight: 800;
}

.filter-chips button.active {
  color: #fff;
  background: #ea580c;
}

.ranking-table {
  display: grid;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.ranking-row img {
  width: 64px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.ranking-index {
  color: #c2410c;
  font-weight: 950;
  font-size: 24px;
}

.ranking-info {
  display: grid;
  gap: 4px;
}

.ranking-info strong {
  font-size: 18px;
}

.ranking-info em,
.ranking-action {
  color: var(--muted);
  font-style: normal;
}

.ranking-action {
  color: #92400e;
  font-weight: 850;
}

.search-page-panel {
  display: grid;
  gap: 18px;
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
}

.detail-main {
  padding-bottom: 30px;
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
  min-height: 560px;
  padding: 70px max(16px, calc((100% - 1240px) / 2));
  color: #fff;
  background: #111827;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  filter: blur(2px) saturate(1.2);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.36), transparent 26%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.80));
}

.detail-poster,
.detail-info {
  position: relative;
  z-index: 2;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  background: #111827;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  font-size: clamp(36px, 5vw, 68px);
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.11);
}

.player-section {
  margin-top: -64px;
  position: relative;
  z-index: 4;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.34);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
  transition: opacity 0.2s ease;
}

.play-layer span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.34);
  font-size: 34px;
  padding-left: 6px;
}

.player-wrap.is-playing .play-layer {
  opacity: 0;
  pointer-events: none;
}

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

.detail-content article,
.detail-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-content article p {
  color: #374151;
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 12px;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  font-weight: 800;
}

.site-footer {
  color: #e5e7eb;
  background: #111827;
  margin-top: 58px;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  gap: 14px;
}

.footer-inner p {
  max-width: 760px;
  color: #9ca3af;
  margin: 0;
}

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

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

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

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

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

  .rank-and-picks,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .header-inner {
    height: 64px;
  }

  .main-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.open .mobile-panel {
    display: grid;
    gap: 12px;
  }

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

  .hero-content {
    padding: 86px 0 98px;
  }

  .quick-filter,
  .filter-search,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .quick-filter {
    margin-top: -34px;
  }

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

  .movie-grid,
  .horizontal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .ranking-row {
    grid-template-columns: 42px 54px 1fr;
  }

  .ranking-action {
    display: none;
  }

  .detail-hero {
    padding-top: 42px;
  }

  .detail-poster {
    width: min(260px, 70vw);
  }

  .search-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section-shell,
  .header-inner,
  .mobile-panel,
  .page-hero > div,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

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

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .large-search,
  .search-page-form {
    border-radius: 18px;
    flex-direction: column;
  }

  .large-search button,
  .search-page-form button {
    width: 100%;
  }
}
