* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 28px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  color: #2563eb;
}

.site-logo span:last-child,
.footer-logo span:last-child {
  background: linear-gradient(90deg, #2563eb, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #f97316);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
  font-size: 15px;
}

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

.nav-link {
  padding: 22px 0 18px;
  border-bottom: 3px solid transparent;
  font-size: 17px;
  font-weight: 650;
  color: #374151;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: #1f2937;
  font-size: 30px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.85s ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.65) 46%, rgba(15, 23, 42, 0.15) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.06) 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 48px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f97316;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker.light {
  color: #fed7aa;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #f97316);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.32);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn.ghost.dark {
  color: #1f2937;
  border-color: rgba(31, 41, 55, 0.18);
  background: #ffffff;
}

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

.hero-tags,
.detail-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #2563eb;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1200px) / 2));
  bottom: 110px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-controls > button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: #f97316;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  width: min(900px, calc(100% - 32px));
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 18px 24px;
  color: #1f2937;
  background: transparent;
}

.hero-search button {
  border: 0;
  color: #ffffff;
  background: #2563eb;
  padding: 0 32px;
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

.section-light {
  background: #f9fafb;
}

.section-gradient {
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #111827 52%, #ea580c);
}

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

.section-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-gradient .section-head h2,
.section-gradient h2 {
  color: #ffffff;
}

.section-head p {
  margin: 0;
  color: #6b7280;
}

.section-gradient p {
  color: rgba(255, 255, 255, 0.84);
}

.section-link {
  color: #2563eb;
  font-weight: 800;
}

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

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

.category-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card.tall {
  min-height: 240px;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
}

.category-card img,
.category-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.category-overlay {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.08));
}

.category-card strong,
.category-card small {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.category-card strong {
  font-size: 22px;
  font-weight: 900;
}

.category-card small {
  padding-bottom: 20px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  height: 280px;
  display: block;
  overflow: hidden;
  background: #e5e7eb;
}

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

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

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 54px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.poster-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  background: #f97316;
  font-size: 13px;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.movie-card h2 {
  margin: 8px 0 10px;
  font-size: 20px;
  line-height: 1.3;
  color: #111827;
  font-weight: 900;
}

.movie-card h2 a:hover {
  color: #2563eb;
}

.movie-card p {
  min-height: 50px;
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
}

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

.empty-tip {
  display: none;
  margin: 24px 0 0;
  padding: 26px;
  border-radius: 18px;
  color: #6b7280;
  text-align: center;
  background: #f3f4f6;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-search {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  color: #1f2937;
  background: #ffffff;
  outline: 0;
}

.filter-search input {
  padding: 0 16px;
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.filter-selects select {
  padding: 0 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.split-layout h2 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 70px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

.rank-list.compact .rank-row {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.rank-number {
  color: #f97316;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 70px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

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

.rank-info strong {
  display: block;
  overflow: hidden;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-list.compact .rank-info strong {
  color: #ffffff;
}

.rank-info small {
  display: block;
  color: #6b7280;
}

.rank-list.compact .rank-info small {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero {
  position: relative;
  padding: 112px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 10%, rgba(249, 115, 22, 0.45), transparent 34%),
    linear-gradient(135deg, #0f172a, #1d4ed8 58%, #ea580c);
}

.small-hero,
.search-hero,
.ranking-hero {
  min-height: 360px;
}

.category-hero {
  padding: 86px 0;
  color: #111827;
  background: linear-gradient(135deg, #eff6ff, #fff7ed);
}

.category-hero .page-hero p,
.category-hero p {
  color: #4b5563;
}

.two-column-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}

.hero-poster-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.hero-poster-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-poster-card strong,
.hero-poster-card span {
  display: block;
  padding: 0 20px;
}

.hero-poster-card strong {
  padding-top: 18px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.hero-poster-card span {
  padding-bottom: 20px;
  color: #6b7280;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

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

.detail-bg {
  object-fit: cover;
  filter: blur(6px) brightness(0.66);
  transform: scale(1.04);
}

.detail-bg-mask {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.88)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 45%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 36px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-cover-card {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

.detail-copy h1 {
  max-width: 820px;
}

.player-section {
  padding-top: 48px;
  background: #111827;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1));
  cursor: pointer;
}

.play-button span {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #f97316);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
  font-size: 40px;
}

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

.detail-content-section {
  background: #ffffff;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 34px;
  align-items: start;
}

.detail-article,
.detail-side {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-article {
  padding: 34px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
  font-weight: 900;
}

.detail-article p {
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 17px;
}

.detail-side {
  padding: 26px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.detail-side dt {
  color: #6b7280;
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  color: #111827;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 56px 0;
}

.footer-logo {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 22px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: #9ca3af;
}

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

.footer-grid a:hover {
  color: #f97316;
}

.footer-bottom {
  padding: 20px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  text-align: center;
}

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

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

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

@media (max-width: 820px) {
  .mobile-menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 16px 18px;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 14px 0;
  }

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

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

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 108px;
  }

  .hero-search {
    border-radius: 22px;
  }

  .section-head,
  .split-layout,
  .two-column-hero,
  .detail-grid,
  .detail-content-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

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

  .detail-cover-card {
    max-width: 280px;
  }

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

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

  .site-logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

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

  .hero-content {
    align-items: flex-start;
    padding-top: 92px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-search {
    display: grid;
  }

  .hero-search button {
    min-height: 50px;
  }

  .section {
    padding: 52px 0;
  }

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

  .poster-wrap {
    height: 330px;
  }

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

  .rank-row {
    grid-template-columns: 42px 58px 1fr;
  }

  .rank-row img {
    width: 58px;
    height: 74px;
  }

  .page-hero {
    padding: 78px 0;
  }

  .detail-hero-inner {
    padding-bottom: 50px;
  }

  .play-button span {
    width: 76px;
    height: 76px;
    font-size: 32px;
  }

  .detail-article,
  .detail-side {
    padding: 22px;
  }
}
