* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.nav-container {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-name {
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #2563eb, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

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

.nav-link {
  color: #4b5563;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.header-search button,
.mobile-search button,
.filter-bar button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 24px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(100deg, #0f172a, #1d4ed8, #0891b2);
}

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

.hero-slide.active {
  opacity: 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(2, 6, 23, 0.88), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.12));
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1180px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  color: #fff;
}

.hero-content > * {
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: #2563eb;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(18px, 2vw, 23px);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.hero-meta span,
.detail-meta span,
.detail-meta a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 7px 14px;
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 30px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 650;
}

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

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

.primary-btn,
.ghost-btn,
.card-actions a,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.card-actions a:first-child {
  color: #fff;
  background: #2563eb;
  padding: 13px 24px;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.26);
}

.ghost-btn,
.card-actions a:last-child,
.text-link {
  color: #2563eb;
  background: #eff6ff;
  padding: 13px 22px;
}

.primary-btn:hover,
.ghost-btn:hover,
.card-actions a:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  font-size: 36px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #fff;
}

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

.category-grid-wrap {
  padding-bottom: 28px;
}

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

.category-tile,
.category-overview-card,
.detail-card,
.sidebar-card,
.recommendation-panel,
.player-card,
.text-page {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.category-tile {
  padding: 24px;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.hot-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.13);
}

.category-tile span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-size: 24px;
  font-weight: 900;
}

.category-tile h2,
.category-overview-card h2,
.movie-info h2,
.rank-item h2,
.detail-card h1,
.sidebar-card h2,
.text-page h2 {
  margin: 0;
  color: #111827;
}

.category-tile p,
.category-overview-card p,
.movie-info p,
.rank-item p,
.detail-card p,
.text-page p {
  color: #4b5563;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.section-heading.light h2,
.section-heading.light a {
  color: #fff;
}

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

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

.movie-card:hover .poster img,
.hot-card:hover img,
.rank-thumb:hover img {
  transform: scale(1.08);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #fff;
  background: rgba(37, 99, 235, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 999px;
  font-weight: 900;
}

.movie-info {
  padding: 18px;
}

.movie-meta {
  gap: 8px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
}

.movie-info h2 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-info h2 a:hover,
.rank-item h2 a:hover,
.category-overview-card h2 a:hover {
  color: #2563eb;
}

.movie-info p {
  min-height: 46px;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.movie-card.compact,
.movie-card.side {
  display: grid;
  grid-template-columns: 112px 1fr;
}

.movie-card.compact .poster,
.movie-card.side .poster {
  aspect-ratio: auto;
  min-height: 150px;
}

.movie-card.compact .movie-info,
.movie-card.side .movie-info {
  padding: 16px;
}

.movie-card.compact .card-actions,
.movie-card.side .card-actions {
  display: none;
}

.hot-section {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto;
  padding: 42px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.22);
}

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

.hot-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  min-height: 126px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.22s ease, background 0.22s ease;
  backdrop-filter: blur(12px);
}

.hot-card img {
  grid-row: span 3;
  width: 96px;
  height: 126px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hot-card span {
  color: #dbeafe;
  font-size: 13px;
}

.hot-card strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.28;
}

.hot-card em {
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommendation-panel {
  padding: 42px;
  margin-bottom: 72px;
}

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

.page-hero {
  color: #fff;
  padding: 76px 0;
}

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

.page-hero h1 {
  max-width: 860px;
  margin: 16px 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.blue-hero {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.dark-hero,
.detail-topbar {
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-strip img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}

.filter-shell {
  padding-top: 42px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.filter-bar input {
  min-width: 280px;
  flex: 1;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 999px;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
}

.rank-thumb img {
  width: 92px;
  height: 116px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.detail-topbar {
  color: #fff;
  padding: 24px 0;
}

.breadcrumb {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.detail-primary {
  display: grid;
  gap: 28px;
}

.player-card {
  padding: 14px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), rgba(0, 0, 0, 0.42));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #fff;
  background: rgba(37, 99, 235, 0.92);
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.32);
}

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

.detail-card,
.sidebar-card,
.text-page {
  padding: 32px;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: #2563eb;
  padding: 8px 15px;
  font-weight: 800;
}

.detail-card h1 {
  margin: 18px 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-card .detail-meta {
  margin-bottom: 28px;
}

.detail-card .detail-meta span,
.detail-card .detail-meta a {
  color: #4b5563;
  background: #f3f4f6;
}

.detail-card section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid #e5e7eb;
}

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.lead-text {
  color: #111827;
  font-size: 19px;
  font-weight: 650;
}

.review-box {
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  padding: 22px;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
}

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

.search-results:empty::before,
.filter-target.is-empty::before {
  content: "暂无相关内容";
  display: block;
  grid-column: 1 / -1;
  padding: 48px;
  color: #6b7280;
  text-align: center;
  background: #fff;
  border-radius: 22px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 36px;
  padding: 54px 0;
}

.footer-logo {
  color: #fff;
  font-size: 22px;
}

.footer-brand p {
  max-width: 360px;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
}

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

.site-footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  text-align: center;
  color: #9ca3af;
}

.text-page {
  margin-top: 48px;
  margin-bottom: 72px;
}

.text-page p {
  max-width: 860px;
  font-size: 18px;
}

.is-hidden-card {
  display: none !important;
}

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

  .mobile-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

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

  .detail-layout,
  .footer-inner,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .nav-container {
    height: 64px;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-content {
    top: 54%;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-control {
    display: none;
  }

  .section-wrap,
  .page-hero > div,
  .nav-container,
  .mobile-panel {
    width: min(100% - 24px, 1180px);
  }

  .section-wrap {
    padding: 42px 0;
  }

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

  .hot-section,
  .recommendation-panel {
    width: min(100% - 24px, 1180px);
    padding: 24px;
    border-radius: 24px;
  }

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

  .category-overview-card,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .category-cover-strip {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .movie-card.compact,
  .movie-card.side {
    grid-template-columns: 96px 1fr;
  }

  .footer-inner {
    gap: 24px;
    padding: 40px 0;
  }
}
