:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --pink: #ec4899;
  --yellow: #fde047;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 10px 25px rgba(17, 24, 39, 0.08);
  --shadow-strong: 0 18px 45px rgba(17, 24, 39, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  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: 100;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

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

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

.brand {
  font-size: 24px;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.32);
  font-size: 15px;
}

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

.desktop-nav a,
.nav-dropdown > button {
  border: 0;
  background: transparent;
  color: var(--gray-700);
  cursor: pointer;
  padding: 22px 0;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown > button:hover {
  color: var(--orange);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 58px;
  left: 0;
  width: 260px;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

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

.dropdown-panel a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--gray-700);
}

.dropdown-panel a:hover {
  background: #fff7ed;
}

.dropdown-panel span {
  color: var(--orange);
  font-size: 13px;
}

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

.header-search input,
.mobile-nav input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

.header-search button,
.mobile-nav button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  cursor: pointer;
  padding: 10px 18px;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: var(--gray-700);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 20px;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-nav a {
  padding: 10px 0;
  color: var(--gray-700);
}

.mobile-nav a.active {
  color: var(--orange);
}

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
}

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

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(234, 88, 12, 0.45), rgba(236, 72, 153, 0.18));
}

.hero-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: max(24px, calc((100vw - 1180px) / 2));
  width: min(720px, calc(100% - 48px));
  transform: translateY(-50%);
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-text {
  width: min(680px, 100%);
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.3vw, 24px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.orange {
  color: var(--orange);
}

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

.hero-tags span,
.detail-tags a,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  padding: 6px 12px;
  font-size: 13px;
}

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

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

.primary-button {
  color: var(--orange);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

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

.ghost-button {
  border: 2px solid rgba(255, 255, 255, 0.78);
  color: var(--white);
}

.ghost-button:hover {
  color: var(--orange);
  background: var(--white);
}

.hero-thumbs {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  width: min(520px, calc(100% - 48px));
}

.hero-thumbs button {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.44);
  color: var(--white);
  padding: 8px;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-thumbs button.is-active {
  border-color: var(--yellow);
  background: rgba(234, 88, 12, 0.7);
}

.hero-thumbs img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-thumbs span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 700;
}

.hero-blob {
  position: absolute;
  z-index: 2;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  mix-blend-mode: screen;
  filter: blur(48px);
  opacity: 0.28;
  animation: blob 9s infinite;
}

.blob-one {
  top: 70px;
  left: 8%;
  background: #facc15;
}

.blob-two {
  top: 150px;
  right: 7%;
  background: #fb7185;
  animation-delay: 2s;
}

.blob-three {
  bottom: 42px;
  left: 38%;
  background: #fdba74;
  animation-delay: 4s;
}

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(24px, -28px) scale(1.08);
  }
  66% {
    transform: translate(-18px, 20px) scale(0.94);
  }
}

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

.white-section {
  background: var(--white);
}

.soft-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #f9fafb, #fff7ed);
}

.gradient-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: var(--white);
}

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

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

.section-heading > a {
  color: var(--orange);
  font-weight: 800;
}

.section-heading.light > a,
.section-heading.light .eyebrow {
  color: var(--white);
}

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

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

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

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

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

.card-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-200);
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.04));
}

.card-badge,
.rank-mark,
.play-dot {
  position: absolute;
  z-index: 2;
}

.card-badge {
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.rank-mark {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  background: var(--yellow);
  font-weight: 900;
}

.play-dot {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(234, 88, 12, 0.88);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: all 0.25s ease;
}

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

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

.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

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

.card-line {
  margin: 0;
  min-height: 46px;
  color: var(--gray-500);
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-line.compact {
  min-height: 0;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.tag-row span {
  background: #fff7ed;
  color: var(--orange-dark);
}

.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: grid;
  gap: 8px;
  min-height: 168px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--gray-900);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-card strong {
  font-size: 24px;
}

.category-card em {
  color: var(--orange-dark);
  font-style: normal;
  font-weight: 800;
}

.category-card p {
  margin: 0;
  color: var(--gray-500);
}

.page-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
}

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

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.08;
}

.page-hero p:last-child {
  width: min(720px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 11px 14px;
}

.filter-panel p {
  margin: 0;
  color: var(--orange);
  font-weight: 800;
  white-space: nowrap;
}

.search-page-box {
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff7ed;
}

.search-page-form {
  display: flex;
  gap: 12px;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
}

.search-page-form button {
  padding-left: 28px;
  padding-right: 28px;
}

.search-status {
  margin: 14px 0 0;
  color: var(--gray-500);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: var(--white);
  background: var(--gray-900);
}

.detail-backdrop,
.detail-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-backdrop {
  object-fit: cover;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.04);
}

.detail-mask {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.54)),
    linear-gradient(0deg, rgba(234, 88, 12, 0.35), rgba(17, 24, 39, 0.1));
}

.detail-container {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--yellow);
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
  margin-top: 46px;
}

.detail-cover {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
}

.detail-line {
  width: min(780px, 100%);
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.detail-tags a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.detail-info .primary-button {
  margin-top: 28px;
}

.player-section {
  scroll-margin-top: 90px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--black);
  box-shadow: var(--shadow-strong);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.cover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.54));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cover-play span {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  font-size: 34px;
}

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

.detail-text {
  color: var(--gray-900);
}

.detail-columns {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-columns article {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-columns h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-columns p {
  margin: 0;
  color: var(--gray-700);
  white-space: pre-line;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 21px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #9ca3af;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

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

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

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

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

@media (max-width: 760px) {
  .nav-shell {
    height: 62px;
  }

  .brand {
    font-size: 20px;
  }

  .hero {
    min-height: 740px;
  }

  .hero-content {
    top: 42%;
  }

  .hero-thumbs {
    left: 16px;
    right: 16px;
    bottom: 20px;
    width: auto;
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .card-body {
    padding: 14px;
  }

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

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

  .detail-cover {
    width: min(280px, 100%);
  }

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

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

@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .ranking-strip,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

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

  .mobile-nav form,
  .search-page-form {
    flex-direction: column;
  }
}
