:root {
  --color-orange: #ea580c;
  --color-orange-dark: #c2410c;
  --color-amber: #d97706;
  --color-bg: #f9fafb;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-card-hover: 0 22px 45px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, 1280px);
  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 1px 3px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #d97706);
  box-shadow: 0 10px 18px rgba(234, 88, 12, 0.25);
}

.logo-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  color: #111827;
}

.logo-text span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #6b7280;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 600;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-orange);
}

.mobile-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
}

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

.mobile-nav a {
  display: block;
  padding: 13px 0;
  color: #374151;
  font-weight: 600;
}

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

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

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

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

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
  transform: scale(1.03);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 88px;
}

.hero-copy {
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--color-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(243, 244, 246, 0.94);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions,
.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.meta-row {
  color: #d1d5db;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--color-orange);
  box-shadow: 0 14px 24px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
  background: var(--color-orange-dark);
}

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

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.section {
  padding: 64px 0;
}

.section.white {
  background: #fff;
}

.section.gray {
  background: #f9fafb;
}

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

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

.section-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-orange);
  font-weight: 700;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #e5e7eb;
}

.poster.sm {
  height: 190px;
}

.poster.lg {
  height: 330px;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: #fff;
  background: var(--color-orange);
}

.score-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.card-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

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

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: #fff7ed;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #fdba74;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: #111827;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.16);
}

.count-note {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  border-color: #fdba74;
}

.rank-num {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #d97706);
}

.rank-thumb {
  width: 92px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
}

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

.rank-title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.rank-desc {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.rank-score {
  color: #9a3412;
  font-weight: 900;
  white-space: nowrap;
}

.category-card {
  display: grid;
  min-height: 180px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #fff7ed);
  border: 1px solid #fed7aa;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-card p {
  margin: 0 0 18px;
  color: #6b7280;
  line-height: 1.7;
}

.category-stat {
  align-self: end;
  color: #ea580c;
  font-weight: 800;
}

.page-hero {
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 146, 60, 0.35), transparent 32%),
    linear-gradient(135deg, #111827, #431407 60%, #78350f);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #fde68a;
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fed7aa;
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #050505;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

.detail-card {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.detail-card h2,
.detail-card h3 {
  margin: 0 0 14px;
}

.detail-card p {
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.info-list dt {
  color: #6b7280;
}

.info-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

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

.related-mini {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
}

.related-mini img {
  width: 86px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  background: #e5e7eb;
}

.related-mini strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.35;
}

.related-mini span {
  color: #6b7280;
  font-size: 12px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.7;
}

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

.site-footer li + li {
  margin-top: 8px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #1f2937;
  color: #6b7280;
  text-align: center;
  font-size: 13px;
}

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

@media (max-width: 1100px) {
  .grid.cards-5,
  .grid.cards-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .mobile-nav.open {
    display: block;
  }

  .logo-text strong {
    font-size: 17px;
  }

  .logo-text span {
    display: none;
  }

  .hero {
    height: 76vh;
    min-height: 520px;
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .section-head {
    display: block;
  }

  .more-link {
    margin-top: 12px;
  }

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

  .poster,
  .poster.lg {
    height: 240px;
  }

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

  .rank-item {
    grid-template-columns: 44px 74px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

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

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

  .header-inner {
    min-height: 66px;
  }

  .grid.cards-5,
  .grid.cards-4,
  .grid.cards-3 {
    grid-template-columns: 1fr;
  }

  .poster,
  .poster.lg {
    height: 310px;
  }

  .rank-item {
    grid-template-columns: 38px 68px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .rank-num {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}
