:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-400: #38bdf8;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --secondary-50: #f0fdf4;
  --secondary-600: #16a34a;
  --accent-500: #f97316;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 45px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

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

.nav-link,
.mobile-nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
  background: var(--primary-50);
  color: var(--primary-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search,
.mobile-search,
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--gray-500);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header-search:focus-within,
.mobile-search:focus-within,
.filter-search:focus-within {
  background: var(--white);
  border-color: var(--primary-400);
}

.header-search input,
.mobile-search input,
.filter-search input {
  width: 220px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gray-900);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-900);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-100);
  padding: 12px 16px 18px;
  gap: 8px;
  flex-wrap: wrap;
}

.search-panel {
  position: absolute;
  top: 72px;
  left: 50%;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
  display: none;
}

.search-panel.open {
  display: block;
}

.search-panel-inner {
  margin-top: 10px;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}

.search-panel-title {
  font-weight: 800;
  margin-bottom: 12px;
}

.search-results {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
}

.search-result-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: var(--gray-50);
}

.search-result-item img {
  width: 52px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--gray-200);
}

.search-result-item strong {
  display: block;
  margin-bottom: 2px;
}

.search-result-item span {
  color: var(--gray-500);
  font-size: 13px;
}

.home-hero {
  padding: 32px 0 18px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 0.78fr 1.42fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  min-height: 520px;
  padding: 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-600);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  color: var(--gray-700);
  margin: 18px 0 0;
  font-size: 17px;
}

.hero-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-mini-links a,
.btn,
.category-tile,
.filter-select {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-mini-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--primary-700);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.hero-mini-links a:hover,
.category-tile:hover,
.movie-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--gray-200);
  box-shadow: var(--shadow-xl);
}

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

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

.hero-slide img,
.hero-gradient,
.feature-banner > img,
.feature-shade,
.detail-backdrop,
.detail-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide img,
.feature-banner > img,
.detail-backdrop {
  object-fit: cover;
  background: var(--gray-200);
}

.hero-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 680px;
  padding: 44px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  padding: 5px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--primary-600);
  font-size: 14px;
  font-weight: 800;
}

.hero-content h2,
.feature-content h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p,
.feature-content p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  margin: 0 0 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
}

.btn.primary {
  background: var(--primary-600);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.hero-dot.active {
  width: 32px;
  background: var(--white);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 56px;
}

.category-tile {
  display: block;
  min-height: 118px;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-tile span,
.category-card h2 {
  display: block;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 8px;
}

.category-tile em,
.category-card p {
  display: block;
  color: var(--gray-500);
  font-style: normal;
  font-size: 14px;
}

.content-section,
.latest-section,
.category-overview,
.ranking-layout,
.detail-main {
  margin-top: 56px;
  margin-bottom: 56px;
}

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

.section-heading.small {
  align-items: center;
}

.section-heading p {
  margin: 0 0 3px;
  color: var(--gray-500);
  font-size: 14px;
}

.section-heading h2,
.rank-panel h2,
.sticky-rank h2,
.detail-text h2,
.site-footer h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-heading a,
.section-label {
  color: var(--primary-600);
  font-weight: 800;
}

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

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

.card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-200);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent 64%);
  transition: opacity 0.24s ease;
}

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

.score-badge,
.category-badge {
  position: absolute;
  z-index: 2;
  border-radius: 9px;
  color: var(--white);
  font-weight: 800;
  font-size: 12px;
}

.score-badge {
  top: 10px;
  right: 10px;
  padding: 4px 7px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.category-badge {
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  background: var(--primary-600);
}

.card-body {
  padding: 16px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin: 0 0 8px;
  color: var(--gray-500);
  font-size: 13px;
}

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

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

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 700;
}

.movie-card.compact .card-line {
  display: none;
}

.latest-section {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.feature-banner {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--gray-900);
  box-shadow: var(--shadow-xl);
}

.feature-shade {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.58), transparent);
}

.feature-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 64px;
  color: var(--white);
}

.feature-content span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-500);
  font-weight: 800;
}

.two-column,
.ranking-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.browse-panel,
.sticky-rank,
.player-card,
.detail-text,
.filter-panel,
.category-card {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rank-panel,
.browse-panel,
.sticky-rank {
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 36px 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  background: var(--gray-50);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--gray-200);
  color: var(--gray-700);
  font-weight: 900;
}

.rank-number.top {
  background: var(--primary-600);
  color: var(--white);
}

.rank-item img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--gray-200);
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  margin-bottom: 3px;
  font-size: 15px;
}

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

.mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.page-hero {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.compact-hero {
  padding: 52px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary-700);
  font-weight: 700;
}

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

.category-card {
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-mini-list {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.category-mini-list span {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 14px;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  margin-bottom: 26px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-select {
  min-height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-700);
  padding: 0 16px;
  outline: 0;
}

.filter-select:focus {
  border-color: var(--primary-400);
}

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

.sticky-rank {
  position: sticky;
  top: 96px;
}

.sticky-rank h2 {
  margin-bottom: 18px;
}

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

.detail-backdrop {
  filter: blur(2px);
  transform: scale(1.04);
  opacity: 0.72;
}

.detail-overlay {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: center;
  min-height: 620px;
  color: var(--white);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: var(--gray-200);
  box-shadow: var(--shadow-xl);
}

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

.detail-info .breadcrumb {
  color: rgba(255, 255, 255, 0.72);
}

.detail-info .breadcrumb a {
  color: var(--primary-400);
}

.detail-one-line {
  max-width: 840px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

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

.detail-meta span {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-text {
  padding: 22px;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18), rgba(0, 0, 0, 0.45));
  color: var(--white);
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-600);
  color: var(--white);
  font-size: 30px;
  box-shadow: var(--shadow-xl);
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.site-footer {
  margin-top: 72px;
  background: var(--gray-900);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 42px;
  padding: 46px 0;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.66);
}

.site-footer h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

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

.footer-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

.movie-card.is-hidden {
  display: none;
}

.no-results {
  padding: 16px;
  color: var(--gray-500);
}

@media (max-width: 1080px) {
  .hero-wrap,
  .two-column,
  .ranking-layout,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

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

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

  .sticky-rank {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .detail-hero-inner {
    padding: 36px 0;
  }

  .detail-poster {
    max-width: 220px;
  }

  .hero-carousel,
  .hero-copy {
    min-height: 460px;
  }

  .hero-copy,
  .hero-content,
  .feature-content {
    padding: 28px;
  }

  .category-strip,
  .movie-grid,
  .rank-card-grid,
  .category-overview,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-search input {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .brand-text {
    font-size: 15px;
  }

  .hero-carousel,
  .hero-copy {
    min-height: 420px;
    border-radius: 22px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content p,
  .feature-content p {
    font-size: 15px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .category-strip,
  .movie-grid,
  .rank-card-grid,
  .category-overview,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-line,
  .tag-row {
    display: none;
  }

  .feature-banner {
    min-height: 440px;
  }

  .latest-section,
  .player-card,
  .detail-text,
  .rank-panel,
  .browse-panel,
  .sticky-rank {
    padding: 16px;
  }

  .detail-main,
  .content-section,
  .latest-section,
  .category-overview,
  .ranking-layout {
    margin-top: 34px;
    margin-bottom: 34px;
  }

  .detail-hero,
  .detail-hero-inner {
    min-height: auto;
  }
}
