:root {
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-ink: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-sky: #0ea5e9;
  --color-sky-dark: #0369a1;
  --color-orange: #f97316;
  --color-orange-soft: #fff7ed;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-wide,
.page-shell,
.detail-layout,
.related-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-sky), var(--color-orange));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
}

.logo__text {
  font-size: 19px;
}

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

.nav-link,
.mobile-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  color: #374151;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav__link:hover,
.mobile-nav__link.is-active {
  color: var(--color-sky-dark);
  background: #e0f2fe;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: #f3f4f6;
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #111827;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero {
  position: relative;
  height: 680px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide > img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.34), transparent 35%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.66) 42%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.12) 55%, rgba(2, 6, 23, 0.48) 100%);
}

.hero-slide__content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(680px, calc(100% - 64px));
  transform: translateY(-50%);
  color: #ffffff;
}

.hero-kicker,
.detail-kicker,
.rank-card__meta,
.movie-card__meta,
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kicker span,
.detail-kicker span,
.detail-kicker a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-kicker span:first-child {
  background: var(--color-orange);
  border-color: var(--color-orange);
}

.hero h1 {
  margin: 20px 0 16px;
  max-width: 780px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-meta {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 30px;
}

.hero-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.45);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  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, var(--color-sky), var(--color-sky-dark));
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.28);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-block {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  font-size: 32px;
  line-height: 1;
}

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

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 18px;
  height: 5px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  margin-top: -54px;
  position: relative;
  z-index: 5;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.home-search {
  display: flex;
  gap: 12px;
  padding: 8px;
  background: #f3f4f6;
  border-radius: 999px;
}

.home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 16px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--color-orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.section-title h2,
.quick-search h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.text-link {
  color: var(--color-sky-dark);
  font-weight: 700;
}

.category-overview,
.page-sections,
.page-shell {
  padding: 64px 0;
}

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

.category-tile,
.category-panel {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  background: #111827;
  color: #ffffff;
}

.category-tile img,
.category-panel img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile::after,
.category-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.2));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
  display: block;
  padding-left: 18px;
  padding-right: 18px;
}

.category-tile span {
  margin-top: 88px;
  font-size: 20px;
  font-weight: 800;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.76);
}

.category-tile:hover img,
.category-panel:hover img {
  opacity: 0.75;
  transform: scale(1.06);
}

.page-sections {
  display: grid;
  gap: 58px;
}

.section-block {
  padding: 0;
}

.section-block--tint,
.page-hero,
.detail-content,
.detail-poster,
.related-section,
.category-panels,
.filter-panel {
  background: var(--color-surface);
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.section-block--tint {
  padding: 30px;
  background: linear-gradient(135deg, #eff6ff, #fff7ed);
}

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

.movie-card {
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.13);
}

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

.movie-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.movie-card__cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-card__cover img {
  transform: scale(1.05);
}

.movie-card__rating {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 46px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.94);
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
}

.movie-card__body {
  padding: 18px;
}

.movie-card__meta {
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-card__meta a {
  color: var(--color-sky-dark);
  font-weight: 700;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  min-height: 50px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--color-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-card__tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 13px;
}

.page-hero {
  padding: 42px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #ffffff, #eff6ff 62%, #fff7ed);
}

.page-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 17px;
}

.page-hero--dark {
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.42), transparent 32%),
    linear-gradient(135deg, #020617, #111827 52%, #7c2d12);
}

.page-hero--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-top: 26px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  outline: none;
  background: #ffffff;
}

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

.filter-count {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--color-muted);
}

.category-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 24px;
}

.category-panel {
  min-height: 220px;
}

.category-panel div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
}

.category-panel span,
.category-panel strong {
  display: block;
}

.category-panel span {
  font-size: 28px;
  font-weight: 900;
}

.category-panel strong {
  margin: 3px 0 8px;
  color: #bae6fd;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--color-muted);
}

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

.breadcrumb--light,
.breadcrumb--light a {
  color: rgba(255, 255, 255, 0.82);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 64px 144px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.rank-card__num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-sky));
  border-radius: 18px;
  font-size: 20px;
  font-weight: 900;
}

.rank-card__cover {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  background: #111827;
}

.rank-card__cover img {
  height: 100%;
  object-fit: cover;
}

.rank-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-card p {
  margin: 0 0 10px;
  color: var(--color-muted);
}

.rank-card__meta {
  color: #475569;
  font-size: 14px;
}

.rank-card__meta a {
  color: var(--color-sky-dark);
  font-weight: 700;
}

.player-shell {
  padding: 24px max(16px, calc((100vw - 1180px) / 2));
  background:
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.2), transparent 35%),
    linear-gradient(135deg, #020617, #111827);
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: min(1180px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.08));
  font-size: 20px;
  font-weight: 800;
  transition: opacity 0.2s ease;
}

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

.play-overlay__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-left: 6px;
  background: rgba(14, 165, 233, 0.94);
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.35);
}

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

.detail-poster,
.detail-content {
  padding: 22px;
}

.detail-poster img {
  margin-bottom: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: #111827;
}

.detail-content h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: #334155;
  font-size: 19px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.detail-meta div {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.detail-meta dt {
  color: var(--color-muted);
  font-size: 13px;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.article-section {
  margin-top: 26px;
}

.article-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.article-section p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.86;
}

.related-section {
  padding: 30px;
  margin-bottom: 54px;
}

.site-footer {
  padding: 38px 0;
  color: #cbd5e1;
  background: #020617;
}

.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 8px 0 0;
  color: #94a3b8;
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 620px;
  }

  .quick-search,
  .filter-panel,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    height: 64px;
  }

  .logo__text {
    font-size: 16px;
  }

  .hero {
    height: 560px;
  }

  .hero-slide__content {
    left: 18px;
    width: calc(100% - 36px);
  }

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

  .hero-arrow {
    display: none;
  }

  .quick-search,
  .page-hero,
  .section-block--tint,
  .related-section {
    padding: 22px;
    border-radius: 22px;
  }

  .home-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 20px;
  }

  .home-search input {
    min-height: 44px;
  }

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

  .rank-card {
    grid-template-columns: 48px 96px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-card__num {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .rank-card p {
    display: none;
  }

  .video-frame {
    border-radius: 18px;
  }

  .detail-layout {
    padding: 24px 0;
  }

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