:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --blue: #2563eb;
  --teal: #0d9488;
  --red: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
}

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: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
}

.brand-text {
  letter-spacing: -0.02em;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  font-size: 15px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange-dark);
  background: rgba(249, 115, 22, 0.09);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--gray-800);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid var(--gray-100);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  background: #ffffff;
}

.mobile-link.is-active {
  color: var(--orange-dark);
  background: rgba(249, 115, 22, 0.1);
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #f97316 0%, #f59e0b 48%, #fb923c 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 34%), radial-gradient(circle at bottom right, rgba(17, 24, 39, 0.22), transparent 32%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 520px;
  padding: 76px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 14px;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-copy p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.75;
}

.hero-search {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  max-width: 620px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 45px rgba(120, 53, 15, 0.18);
}

.hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--gray-900);
  background: #ffffff;
}

.hero-search button,
.primary-button,
.secondary-button,
.filter-panel button,
.filter-link {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero-search button,
.primary-button {
  padding: 14px 18px;
  color: #ffffff;
  background: var(--gray-900);
  box-shadow: 0 14px 24px rgba(17, 24, 39, 0.2);
}

.hero-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.filter-panel button:hover,
.filter-link:hover {
  transform: translateY(-1px);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.secondary-button {
  padding: 14px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-stats {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-stat strong {
  display: block;
  font-size: 22px;
}

.hero-stat span:last-child {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.hero-stage {
  position: relative;
}

.hero-carousel {
  position: relative;
  min-height: 440px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 500ms ease, transform 500ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-poster {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 68px rgba(120, 53, 15, 0.32);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 62%);
}

.hero-slide-content {
  position: relative;
  margin: -106px 22px 0;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900);
  box-shadow: var(--shadow);
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: var(--gray-600);
  line-height: 1.7;
}

.hero-slide-content a {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 800;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 28px;
  background: #ffffff;
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px;
}

.content-section.tint {
  max-width: none;
  background: linear-gradient(135deg, #eff6ff, #f0fdfa);
}

.content-section.tint > .section-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-more {
  color: var(--orange-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.poster-link {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fde68a);
}

.is-compact .poster-link {
  height: 190px;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent);
  transition: opacity 220ms ease;
}

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

.region-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.18);
}

.region-badge {
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--orange);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-600);
  font-size: 13px;
}

.movie-meta span:last-child {
  color: var(--orange-dark);
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-list span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: var(--soft-shadow);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #2563eb, #0d9488);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

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

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

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(120deg, #f97316, #f59e0b);
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px;
}

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

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

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

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.search-line {
  display: flex;
  gap: 10px;
}

.search-line input {
  width: 100%;
  border: 1px solid var(--gray-200);
  outline: 0;
  border-radius: 14px;
  padding: 13px 14px;
}

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

.filter-panel button,
.filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  color: #ffffff;
  background: var(--orange);
}

.filter-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.filter-line select {
  min-width: 150px;
  border: 1px solid var(--gray-200);
  outline: 0;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--gray-700);
  background: #ffffff;
}

.no-results {
  display: none;
  padding: 34px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--gray-600);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-info-card,
.story-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.14));
  transition: opacity 220ms ease, visibility 220ms ease;
}

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

.play-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--orange);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.42);
  font-size: 30px;
  cursor: pointer;
}

.play-layer strong {
  font-size: 22px;
}

.detail-info-card {
  padding: 26px;
}

.detail-title .eyebrow {
  color: var(--orange-dark);
  background: rgba(249, 115, 22, 0.12);
}

.detail-title h1 {
  font-size: clamp(30px, 5vw, 46px);
}

.detail-title p {
  margin: 16px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.info-pills span {
  padding: 8px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-weight: 700;
  font-size: 13px;
}

.info-pills span:nth-child(2n) {
  background: var(--blue);
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fed7aa, #fde68a);
}

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

.story-card {
  margin-top: 30px;
  padding: 28px;
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-card p {
  margin: 0 0 18px;
  color: var(--gray-700);
  line-height: 1.9;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.related-section {
  margin-top: 46px;
}

.related-section h2 {
  margin: 0 0 22px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.rank-index {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--orange);
  font-weight: 900;
}

.rank-row img {
  width: 92px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #fed7aa, #fde68a);
}

.rank-row h2,
.rank-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-row p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-weight: 800;
  white-space: nowrap;
}

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

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 34px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
}

.brand-footer {
  color: #ffffff;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
  color: #9ca3af;
}

.footer-brand p {
  max-width: 440px;
  line-height: 1.75;
}

.footer-column h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.footer-column a:hover {
  color: var(--orange);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .hero-inner,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 56px 20px;
  }

  .hero-carousel {
    min-height: 420px;
  }

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

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

  .rank-row img {
    width: 72px;
    height: 96px;
  }

  .rank-link {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 12px 16px;
  }

  .hero-search,
  .search-line {
    flex-direction: column;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

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

  .poster-link,
  .is-compact .poster-link {
    height: 260px;
  }

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

  .filter-line select,
  .filter-link {
    width: 100%;
  }

  .rank-row {
    grid-template-columns: 40px 68px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-index {
    width: 34px;
    height: 34px;
  }

  .rank-row img {
    width: 68px;
    height: 92px;
  }
}
