:root {
  --orange: #f97316;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%, #fff7ed 100%);
  line-height: 1.6;
}

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;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange) 0%, var(--red) 100%);
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.24);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand {
  font-size: 22px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.desktop-nav a,
.mobile-nav a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #ffedd5;
  transform: translateY(-1px);
}

.nav-search {
  width: 250px;
  position: relative;
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(253, 186, 116, 0.9);
}

.nav-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: transparent;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  font-size: 26px;
  background: transparent;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #000000;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

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

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

.hero-copy {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  color: #ffffff;
}

.hero-copy-inner {
  width: min(680px, 100%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffedd5;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34);
}

.btn-primary:hover {
  background: #ea580c;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--orange-dark);
  background: #fff7ed;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.16);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(249, 115, 22, 0.9);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.main-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 42px 0;
}

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-weight: 800;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

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

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

.movie-poster {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #431407);
}

.movie-card-list .movie-poster {
  height: 220px;
}

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

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.82);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rating-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

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

.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span,
.detail-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 9px;
  background: #f3f4f6;
}

.movie-card h2 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.26;
  font-weight: 900;
}

.movie-card h2 a:hover {
  color: var(--orange-dark);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--orange-dark);
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 168px;
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  box-shadow: 0 18px 44px rgba(234, 88, 12, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #111827 0%, #ea580c 100%);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #7c2d12 0%, #f97316 100%);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

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

.rank-panel {
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--orange);
}

.rank-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

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

.rank-info strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
}

.rank-info em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(255, 237, 213, 0.3), transparent 32%), linear-gradient(90deg, var(--orange) 0%, var(--red) 100%);
}

.page-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px;
  gap: 12px;
  margin: 0 0 26px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--ink);
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(253, 186, 116, 0.3);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background: #000000;
  box-shadow: var(--shadow);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48));
}

.detail-content {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 30px;
  padding: 34px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-info .lead {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.detail-info .tag-row {
  margin-bottom: 24px;
}

.detail-info .tag-row span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  margin-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-gate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  z-index: 2;
}

.player-gate.is-hidden {
  display: none;
}

.player-start {
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: var(--orange);
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover {
  transform: scale(1.06);
  background: #ea580c;
}

.content-card {
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
}

.content-card p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 17px;
}

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

.side-panel {
  position: sticky;
  top: 92px;
  border-radius: 24px;
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.side-panel h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 900;
}

.search-empty {
  display: none;
  padding: 28px;
  border-radius: 20px;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827 0%, #1f2937 45%, #111827 100%);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

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

.footer-logo {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
}

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

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

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #9ca3af;
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  text-align: center;
}

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-search {
    width: min(320px, 34vw);
  }

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 62px;
    gap: 12px;
  }

  .brand {
    font-size: 19px;
  }

  .nav-search {
    display: none;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.44));
  }

  .hero-arrow {
    display: none;
  }

  .section-head {
    display: block;
  }

  .section-actions {
    margin-top: 18px;
  }

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

  .movie-poster {
    height: 220px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .detail-content {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .detail-poster img {
    height: 360px;
  }

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

@media (max-width: 560px) {
  .main-wrap,
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .page-hero-inner,
  .hero-copy {
    width: min(100% - 24px, 1280px);
  }

  .hero-carousel {
    height: 500px;
  }

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

  .movie-poster {
    height: 280px;
  }

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

  .rank-item img {
    width: 58px;
    height: 76px;
  }

  .player-start {
    width: 78px;
    height: 78px;
  }
}
