:root {
  --page-bg: #f8fbff;
  --panel-bg: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --purple: #7c3aed;
  --line: rgba(148, 163, 184, 0.28);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 14px 36px rgba(37, 99, 235, 0.13);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 32rem),
    linear-gradient(135deg, #f8fafc 0%, #eef7ff 48%, #e0f2fe 100%);
}

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.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.brand-text {
  font-size: 20px;
  color: var(--blue-dark);
}

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

.nav-link,
.mobile-link,
.quick-category {
  border-radius: 999px;
  color: #475569;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.is-current,
.mobile-link:hover,
.mobile-link.is-current,
.quick-category:hover {
  color: var(--blue-dark);
  background: #eff6ff;
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: #eff6ff;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  margin: 3px 0;
  font-weight: 700;
}

.quick-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-category {
  padding: 8px 12px;
  background: #f8fafc;
  font-size: 14px;
}

main {
  width: 100%;
}

.hero-section {
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 34px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.64), rgba(8, 145, 178, 0.36)),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.82), transparent);
}

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

.hero-copy,
.hero-poster,
.hero-dots {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #dbeafe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.06;
  color: #ffffff;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-lead {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.85;
}

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

.primary-button,
.secondary-button,
.home-search button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.home-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.28);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.home-search button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  align-self: center;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 62px;
  background: #ffffff;
}

.hero-panel {
  padding: 24px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.panel-title {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 900;
}

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

.hero-list-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.16);
}

.hero-list-item img {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

.hero-list-item strong,
.hero-list-item em {
  display: block;
}

.hero-list-item strong {
  font-size: 15px;
  line-height: 1.35;
}

.hero-list-item em {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
}

.panel-link,
.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--blue-dark);
  font-weight: 800;
}

.section-block {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p,
.center-heading p {
  color: var(--text-muted);
  line-height: 1.7;
}

.center-heading {
  max-width: 720px;
  margin: 0 auto 22px;
  display: block;
  text-align: center;
}

.center-heading .eyebrow {
  margin: 0 auto;
}

.home-search {
  display: flex;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 18px;
  color: var(--text-main);
  background: transparent;
}

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

.category-pill-card {
  min-height: 190px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--soft-shadow);
}

.category-pill-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease;
}

.category-pill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.16));
}

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

.category-pill-card span,
.category-pill-card em {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.category-pill-card span {
  font-size: 20px;
  font-weight: 900;
}

.category-pill-card em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.45), transparent 58%);
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.compact-card .card-body p {
  display: none;
}

.tag-row,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.meta-pills span {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.accent-block {
  padding: 34px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--soft-shadow);
}

.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.28), transparent 25rem),
    linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0e7490);
  box-shadow: var(--shadow);
}

.page-hero {
  min-height: 310px;
  padding: 56px;
}

.slim-hero,
.search-hero,
.rank-hero,
.category-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 42px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

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

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

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-copy .meta-pills span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 28px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(29, 78, 216, 0.36));
  cursor: pointer;
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.large-play {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.36);
  font-size: 30px;
}

.video-cover strong {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 40px);
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-text article {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.detail-text h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.detail-text p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
}

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

.category-tile {
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 260px;
  overflow: hidden;
  background: #dbeafe;
}

.category-cover-strip img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.category-tile-body {
  padding: 26px;
}

.category-tile-body h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-tile-body p {
  color: var(--text-muted);
  line-height: 1.75;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sample-links a,
.link-cloud a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #eff6ff;
  font-size: 13px;
  font-weight: 800;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select,
.inline-filter input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  padding: 0 14px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.92);
}

.filter-bar input:focus,
.filter-bar select:focus,
.inline-filter input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.inline-filter {
  width: min(320px, 100%);
}

.empty-state {
  padding: 34px;
  border-radius: 28px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.site-footer {
  margin-top: 84px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  gap: 32px;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-column h2 {
  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: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

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

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

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

  .menu-button {
    display: flex;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .hero-poster {
    display: none;
  }

  .detail-hero,
  .detail-text,
  .category-tile {
    grid-template-columns: 1fr;
  }

  .category-cover-strip {
    min-height: 180px;
  }

  .category-cover-strip img {
    min-height: 180px;
  }

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

@media (max-width: 680px) {
  .site-nav,
  .mobile-panel,
  .hero-section,
  .section-block,
  .page-hero,
  .detail-hero,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-section {
    min-height: 510px;
    margin-top: 18px;
  }

  .hero-carousel {
    min-height: 510px;
    border-radius: 26px;
  }

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

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

  .hero-dots {
    left: 34px;
    bottom: 24px;
  }

  .section-heading {
    display: block;
  }

  .home-search {
    border-radius: 24px;
    flex-direction: column;
    gap: 8px;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .card-body h3 {
    font-size: 16px;
  }

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

  .page-hero,
  .detail-hero,
  .accent-block {
    padding: 26px;
    border-radius: 28px;
  }

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