:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --amber: #f59e0b;
  --blue: #2563eb;
  --green: #16a34a;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --dark: #111827;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--text);
  background: var(--soft);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 22px;
}

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

.brand-name {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.3);
  font-size: 14px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

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

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

.nav-search {
  display: flex;
  align-items: center;
  min-width: 280px;
}

.nav-search input,
.big-search input,
.filter-form input,
.filter-form select {
  width: 100%;
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  border-radius: 999px 0 0 999px;
  padding: 10px 14px;
}

.nav-search button,
.big-search button {
  border: 0;
  color: #fff;
  background: var(--orange);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button {
  border-radius: 0 999px 999px 0;
  padding: 11px 16px;
}

.nav-search input:focus,
.big-search input:focus,
.filter-form input:focus,
.filter-form select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: #fff;
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: #374151;
  font-weight: 650;
}

.mobile-panel.is-open {
  display: block;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(0deg, var(--soft), rgba(249, 250, 251, 0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 54px;
  min-height: 610px;
  color: #fff;
  padding: 74px 0 120px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 42px);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 30px;
  color: rgba(255, 237, 213, 0.95);
  font-size: 20px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.hero .eyebrow {
  color: #ffedd5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

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

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

.btn.primary {
  color: var(--orange);
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.hero-tags,
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

.tag-pill.active {
  color: #fff;
  background: var(--orange);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
  min-height: 470px;
}

.hero-poster img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(234, 88, 12, 0.92);
  font-weight: 800;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.feature-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -58px;
  margin-bottom: 56px;
}

.compact-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(17, 24, 39, 0.16);
}

.compact-card img {
  width: 88px;
  height: 118px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em,
.movie-card strong,
.movie-card em {
  display: block;
}

.compact-card strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.compact-card em,
.movie-card em {
  color: var(--muted);
  font-style: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card em {
  -webkit-line-clamp: 2;
  font-size: 14px;
}

.section {
  padding: 62px 0;
}

.white-section {
  background: #fff;
}

.soft-section {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.section-block {
  padding: 58px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.section-head a,
.more-link {
  color: var(--orange);
  font-weight: 800;
}

.poster-grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(17, 24, 39, 0.78);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card strong {
  min-height: 48px;
  font-size: 16px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.movie-card:hover strong {
  color: var(--orange);
}

.movie-card em {
  min-height: 42px;
  -webkit-line-clamp: 2;
  margin: 8px 0 12px;
  font-size: 13px;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.category-tile,
.category-overview-card a {
  display: block;
  min-height: 190px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-kicker,
.category-overview-card span:first-child {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--orange);
  font-weight: 900;
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.45;
}

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

.category-samples span,
.category-overview-card li {
  border-radius: 999px;
  padding: 6px 10px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 13px;
}

.category-overview-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-preview {
  padding: 58px 0 70px;
}

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

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

.rank-list.full {
  padding-bottom: 70px;
}

.rank-row {
  display: grid;
  grid-template-columns: 46px 68px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: var(--radius);
  padding: 12px 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-row img {
  width: 68px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.rank-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-extra {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.page-shell {
  min-height: 70vh;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  padding: 72px 0 78px;
}

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

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #ffedd5;
  font-size: 19px;
}

.page-hero .eyebrow {
  color: #ffedd5;
}

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

.detail-shell .breadcrumb {
  color: #6b7280;
  margin: 24px 0;
}

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

.detail-shell .breadcrumb a:hover {
  color: var(--orange);
}

.filter-panel {
  margin-top: -32px;
  margin-bottom: 34px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-form,
.big-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
}

.filter-form input,
.filter-form select,
.big-search input {
  border-radius: 999px;
  padding: 13px 16px;
}

.big-search {
  max-width: 760px;
  margin-top: 28px;
  grid-template-columns: minmax(0, 1fr) 128px;
}

.big-search button {
  border-radius: 999px;
  font-weight: 900;
}

.detail-page {
  background: #f3f4f6;
  min-height: 100vh;
  padding-bottom: 70px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

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

.card-panel,
.player-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.08);
}

.player-card {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 20px 50px rgba(234, 88, 12, 0.35);
  font-size: 34px;
  padding-left: 5px;
}

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

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.detail-content h2,
.related-panel h2 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.detail-content p {
  color: #374151;
  margin: 0 0 14px;
}

.lead-text {
  font-size: 18px;
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.review-box {
  margin-top: 28px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.review-box h2 {
  margin-top: 0;
}

.side-poster {
  padding: 18px;
}

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

.side-poster strong,
.side-poster span {
  display: block;
}

.side-poster strong {
  font-size: 20px;
  margin-bottom: 6px;
}

.side-poster span {
  color: var(--muted);
}

.related-panel {
  padding: 18px;
}

.related-panel h2 {
  margin-top: 0;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-list .compact-card {
  grid-template-columns: 70px minmax(0, 1fr);
  padding: 10px;
  box-shadow: none;
  border: 1px solid var(--line);
}

.related-list .compact-card img {
  width: 70px;
  height: 96px;
}

.more-link {
  display: block;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--orange);
  border-radius: 14px;
  text-align: center;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
  padding: 54px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: #fff;
  margin-bottom: 14px;
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  border-radius: 999px;
  padding: 7px 10px;
  color: #fed7aa;
  background: rgba(234, 88, 12, 0.15);
}

.footer-bottom {
  margin-top: 44px;
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

@media (max-width: 1120px) {
  .primary-nav {
    gap: 10px;
    font-size: 14px;
  }

  .nav-search {
    min-width: 230px;
  }

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 58px 0 96px;
  }

  .hero-poster {
    max-width: 360px;
    min-height: 0;
    transform: none;
  }

  .hero-poster img {
    height: 460px;
  }

  .feature-strip,
  .category-grid,
  .category-overview-grid,
  .rank-list.compact,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-form,
  .big-search {
    grid-template-columns: 1fr;
  }

  .detail-side {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

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

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

  .hero-poster img {
    height: 380px;
  }

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

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

  .rank-row {
    grid-template-columns: 38px 58px minmax(0, 1fr);
  }

  .rank-extra {
    grid-column: 3;
    justify-items: start;
    grid-auto-flow: column;
  }

  .detail-content {
    padding: 20px;
  }

  .page-hero {
    padding: 48px 0 64px;
  }
}
