
:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --coral-500: #fb7185;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-card: 0 12px 28px rgba(17, 24, 39, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  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(--gray-800);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
  line-height: 1.6;
}

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: 100;
  background: linear-gradient(90deg, var(--orange-500), var(--coral-500), var(--amber-500));
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.25);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-600);
  background: var(--white);
  box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.35);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  transform: translateY(-1px);
}

.menu-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.menu-button span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-link {
  color: var(--white);
  font-weight: 700;
  padding: 10px 0;
}

.hero-section {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: linear-gradient(120deg, #c2410c, var(--orange-500), var(--amber-400));
}

.hero-slider {
  position: relative;
  min-height: 590px;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 237, 213, 0.35), transparent 26%),
    linear-gradient(90deg, rgba(124, 45, 18, 0.88), rgba(234, 88, 12, 0.74) 46%, rgba(17, 24, 39, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  min-height: 590px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 42px;
  align-items: center;
  color: var(--white);
}

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

.hero-title {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 28px rgba(17, 24, 39, 0.28);
}

.hero-copy {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: clamp(18px, 2.4vw, 24px);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 18px rgba(17, 24, 39, 0.2);
}

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

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

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

.btn-primary {
  color: var(--orange-600);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.18);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

.btn-orange {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.hero-panel {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.35);
}

.hero-panel h2,
.hero-panel h3 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 22px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  opacity: 0.6;
}

.hero-dot.is-active {
  width: 30px;
  opacity: 1;
  background: var(--white);
}

.quick-search {
  margin-top: 28px;
  max-width: 640px;
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.quick-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  padding: 0 14px;
  outline: none;
}

.quick-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.section,
.page-section {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 58px 0;
}

.section-header,
.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

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

.section-subtitle,
.page-subtitle {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--gray-500);
}

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange-100), var(--amber-400));
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent);
}

.quality-badge,
.rating-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.quality-badge {
  left: 12px;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
}

.rating-badge {
  right: 12px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-meta {
  margin: 0 0 10px;
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 800;
}

.movie-desc {
  margin: 0 0 14px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.tag-row span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--gray-700);
  background: var(--orange-50);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(135deg, var(--orange-500), var(--amber-500));
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 52px rgba(249, 115, 22, 0.28);
}

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

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

.rank-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: var(--radius-xl);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  background: var(--gray-900);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
}

.feature-card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 34px;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent);
}

.feature-card h3 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 4vw, 42px);
}

.feature-card p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 36px 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
}

.rank-no {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
  font-weight: 900;
}

.rank-row img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--orange-100);
}

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

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.rank-score {
  color: var(--orange-600);
  font-weight: 900;
}

.page-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.45), transparent 28%),
    linear-gradient(120deg, #9a3412, var(--orange-500), var(--amber-500));
  color: var(--white);
}

.page-hero-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 74px 0 58px;
}

.page-hero .page-title,
.page-hero .page-subtitle {
  color: var(--white);
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  margin-bottom: 26px;
}

.filter-box input,
.filter-box select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  background: var(--gray-50);
}

.filter-box input:focus,
.filter-box select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.no-result {
  display: none;
  padding: 34px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--gray-500);
  box-shadow: var(--shadow-card);
}

.no-result.is-visible {
  display: block;
}

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

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

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: blur(2px) saturate(1.1);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(124, 45, 18, 0.78), rgba(249, 115, 22, 0.32));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 58px 0 42px;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

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

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.watch-section {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.player-shell {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #050505;
  box-shadow: var(--shadow-soft);
}

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

.player-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #050505;
  object-fit: contain;
  z-index: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.28), transparent 32%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.58), rgba(5, 5, 5, 0.22));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.play-icon {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
  box-shadow: 0 22px 42px rgba(249, 115, 22, 0.35);
  font-size: 36px;
  padding-left: 6px;
}

.play-text {
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.detail-layout {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 20px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
}

.detail-card,
.side-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-card {
  padding: 30px;
}

.detail-card h2,
.side-card h2,
.side-card h3 {
  margin: 0 0 16px;
  color: var(--gray-900);
}

.detail-card p {
  margin: 0 0 18px;
  color: var(--gray-700);
}

.side-card {
  padding: 18px;
  margin-bottom: 18px;
}

.side-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  background: var(--orange-100);
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}

.info-list dt {
  color: var(--gray-500);
}

.info-list dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
  text-align: right;
}

.related-grid {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 0 0 64px;
}

.search-page .movie-grid,
.category-page .movie-grid,
.rank-page .movie-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .movie-grid,
  .search-page .movie-grid,
  .category-page .movie-grid,
  .rank-page .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .hero-panel {
    display: none;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .hero-section,
  .hero-slider,
  .hero-content {
    min-height: 620px;
  }

  .hero-title {
    font-size: 42px;
  }

  .quick-search,
  .filter-box {
    border-radius: 22px;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .quick-search {
    align-items: stretch;
  }

  .section-header,
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .search-page .movie-grid,
  .category-page .movie-grid,
  .rank-page .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .detail-card {
    padding: 22px;
  }

  .rank-row {
    grid-template-columns: 32px 56px 1fr;
  }

  .rank-score {
    display: none;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .search-page .movie-grid,
  .category-page .movie-grid,
  .rank-page .movie-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, var(--gray-900), #030712);
}

.footer-grid {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 30px;
}

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

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

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

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

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}
