:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 45px rgba(15, 23, 42, 0.16);
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--sky-100);
  background: var(--sky-600);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  margin-top: 2px;
  color: #7dd3fc;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-link {
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 16px;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--sky-600);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(226, 232, 240, 0.16);
  background: rgba(30, 41, 59, 0.96);
}

.mobile-link {
  display: block;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 8px;
  color: #e5e7eb;
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--white);
  background: rgba(2, 132, 199, 0.82);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.04));
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  max-width: 680px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #38bdf8;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 30px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  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: var(--white);
  background: var(--sky-600);
  box-shadow: 0 16px 30px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: var(--sky-700);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: var(--sky-500);
}

.main-section {
  padding: 72px 0;
}

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

.section-blue {
  background: linear-gradient(135deg, #f8fafc, #e0f2fe);
}

.section-slate {
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
}

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

.heading-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--sky-600);
  font-size: 28px;
}

.section-heading h2,
.page-hero h1,
.detail-title {
  margin: 0;
  color: var(--gray-900);
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

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

.scroller-actions {
  display: flex;
  gap: 10px;
}

.round-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--gray-100);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.round-button:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
}

.movie-scroller {
  display: grid;
  grid-auto-columns: 320px;
  grid-auto-flow: column;
  gap: 24px;
  overflow-x: auto;
  padding: 4px 0 24px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.movie-scroller::-webkit-scrollbar {
  display: none;
}

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

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

.feature-grid .movie-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: var(--slate-800);
}

.movie-card-large .poster-wrap,
.feature-grid .movie-card:first-child .poster-wrap {
  height: 420px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.70));
  transition: opacity 0.3s ease;
}

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

.region-pill,
.score-pill {
  position: absolute;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.28);
}

.region-pill {
  left: 14px;
  background: var(--sky-600);
}

.score-pill {
  right: 14px;
  background: rgba(15, 23, 42, 0.78);
}

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

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card:hover .card-title {
  color: var(--sky-600);
}

.card-meta {
  margin-top: 8px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
}

.card-desc {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.category-chip {
  padding: 12px 20px;
  color: var(--white);
  background: linear-gradient(90deg, var(--sky-500), var(--sky-600));
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.recommend-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.recommend-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.recommend-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.recommend-copy {
  padding: 26px;
}

.recommend-copy span {
  display: inline-flex;
  padding: 6px 12px;
  color: var(--sky-700);
  background: var(--sky-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.recommend-copy h3 {
  margin: 14px 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

.recommend-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  color: var(--gray-600);
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.text-link {
  color: var(--sky-600);
  font-weight: 900;
}

.page-hero {
  padding: 76px 0 54px;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.45), transparent 34%), linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-tile {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(15, 23, 42, 0.88));
}

.category-copy {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: var(--white);
}

.category-copy strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.category-copy em {
  display: block;
  margin-top: 8px;
  color: #dbeafe;
  font-style: normal;
  line-height: 1.5;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 0 0 32px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.search-input,
.select-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.select-input:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 54px 110px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-xl);
}

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

.rank-gold {
  color: #78350f;
  background: #fef3c7;
}

.rank-silver {
  color: #334155;
  background: #e2e8f0;
}

.rank-bronze {
  color: #7c2d12;
  background: #ffedd5;
}

.ranking-item img {
  width: 110px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

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

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

.rank-info em {
  display: block;
  margin-top: 5px;
  color: var(--gray-500);
  font-style: normal;
  font-weight: 700;
}

.rank-info span {
  display: block;
  margin-top: 7px;
  color: var(--gray-600);
  line-height: 1.5;
}

.rank-score {
  color: var(--sky-600);
  font-size: 22px;
  font-weight: 900;
}

.player-shell {
  background: #000000;
}

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

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.video-cover-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-cover-button:hover {
  background: rgba(0, 0, 0, 0.36);
}

.video-cover-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  padding-left: 6px;
  border-radius: 999px;
  background: var(--sky-600);
  box-shadow: 0 22px 44px rgba(2, 132, 199, 0.36);
  font-size: 34px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-cover-button:hover span {
  background: var(--sky-700);
  transform: scale(1.05);
}

.video-cover-button.is-hidden {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 42px;
  padding: 56px 0;
}

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

.detail-card {
  padding: 34px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--sky-600);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  color: var(--sky-700);
  background: var(--sky-100);
  border-radius: 999px;
  font-weight: 800;
}

.detail-title {
  margin-bottom: 28px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.15;
}

.detail-section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.detail-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.side-card {
  position: sticky;
  top: 88px;
  padding: 24px;
}

.side-card h2 {
  margin: 0 0 20px;
  font-size: 22px;
}

.related-list {
  display: grid;
  gap: 18px;
}

.related-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 13px;
  align-items: center;
}

.related-item img {
  width: 110px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-item span {
  display: block;
  margin-top: 6px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 52px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding: 22px 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  text-align: center;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 50px 20px;
  color: var(--gray-500);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.is-filtered-out {
  display: none !important;
}

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .site-nav.nav-open .mobile-menu {
    display: block;
  }

  .hero {
    height: 540px;
  }

  .hero-mask {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.58));
  }

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

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

  .feature-grid .movie-card:first-child {
    grid-column: span 2;
  }

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

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

@media (max-width: 560px) {
  .container,
  .nav-inner,
  .mobile-link {
    width: min(100% - 24px, 1180px);
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    height: 520px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .feature-grid,
  .category-tiles,
  .recommend-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid .movie-card:first-child {
    grid-column: auto;
  }

  .movie-scroller {
    grid-auto-columns: 82vw;
  }

  .recommend-card {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 42px 86px 1fr;
  }

  .ranking-item img {
    width: 86px;
    height: 62px;
  }

  .rank-score {
    display: none;
  }

  .detail-card {
    padding: 24px;
  }

  .related-item {
    grid-template-columns: 96px 1fr;
  }

  .related-item img {
    width: 96px;
  }
}
