* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafc;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2563eb;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 9px 13px;
  color: #374151;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

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

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

.header-search input {
  width: 210px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  outline: none;
  background: #fff;
}

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

.header-search button,
.primary-btn,
.secondary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.header-search button {
  height: 40px;
  padding: 0 18px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
}

.secondary-btn {
  color: #2563eb;
  background: #fff;
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.26);
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #2563eb;
  background: #eff6ff;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

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

.mobile-panel nav,
.mobile-cats {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: grid;
  gap: 8px;
}

.mobile-cats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0;
}

.mobile-cats a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.28;
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  right: -80px;
  top: -90px;
  background: #fff;
}

.hero::after {
  width: 460px;
  height: 460px;
  left: -120px;
  bottom: -220px;
  background: #22d3ee;
}

.hero-stage {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  display: none;
  min-height: 520px;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 42px;
  padding: 74px 0;
}

.hero-slide.active {
  display: grid;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 26px;
  max-width: 680px;
  color: #ecfeff;
  font-size: 20px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-poster {
  position: relative;
  z-index: 2;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.34);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.72));
}

.hero-card-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-card-meta span,
.card-meta span,
.tag-row span,
.detail-chip,
.category-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-card-meta span {
  padding: 7px 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.section {
  padding: 64px 0;
}

.section.alt {
  background: #eef2f7;
}

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}

.section-heading p {
  margin: 8px 0 0;
  color: #64748b;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(15, 23, 42, 0.55));
}

.rank-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.25);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.card-meta span,
.detail-chip,
.category-chip {
  padding: 5px 9px;
  color: #2563eb;
  background: #eff6ff;
}

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

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

.movie-card p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 4px 8px;
  color: #0f766e;
  background: #ccfbf1;
}

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

.category-card {
  min-height: 176px;
  padding: 22px;
  color: #fff;
  border-radius: 22px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.18);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hot-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: start;
}

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

.hot-item {
  display: grid;
  grid-template-columns: auto 84px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.hot-item:hover {
  color: #2563eb;
}

.hot-item img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
}

.hot-item strong,
.hot-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-item em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.hot-item b {
  color: #f97316;
}

.list-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #2563eb;
  font-weight: 800;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  outline: none;
  background: #fff;
}

.filter-panel input {
  flex: 1 1 260px;
}

.page-hero {
  padding: 56px 0;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #2563eb;
  font-weight: 700;
}

.detail-hero {
  padding: 44px 0 56px;
  background: linear-gradient(135deg, #f8fafc, #eef6ff);
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #dbeafe;
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
}

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

.detail-content h1 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.detail-content .lead {
  margin: 0 0 20px;
  color: #475569;
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.player-section {
  padding: 48px 0;
  background: #0f172a;
  color: #fff;
}

.player-section h2 {
  margin: 0 0 20px;
  font-size: 30px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.player-wrap video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-wrap video {
  z-index: 1;
  background: #000;
}

.player-cover {
  z-index: 2;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #000;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  color: #2563eb;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  font-size: 34px;
}

.detail-body {
  padding: 56px 0;
}

.article-card {
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.article-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 28px;
}

.article-card p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
}

.article-card p:last-child {
  margin-bottom: 0;
}

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

.site-footer {
  padding: 36px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 6px 0 0;
}

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

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

.copyright {
  color: #94a3b8;
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-slide,
  .detail-layout,
  .hot-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 320px;
  }

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

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

  .header-inner {
    height: 62px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-stage,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 42px 0 68px;
  }

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

  .hero-poster {
    min-height: 260px;
    border-radius: 20px;
  }

  .hero-poster img {
    min-height: 260px;
  }

  .section {
    padding: 42px 0;
  }

  .section-heading {
    display: block;
  }

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

  .hot-item {
    grid-template-columns: auto 72px minmax(0, 1fr);
  }

  .hot-item b {
    display: none;
  }

  .detail-layout {
    gap: 24px;
  }

  .detail-poster {
    max-width: 310px;
  }

  .article-card {
    padding: 22px;
  }

  .footer-inner {
    display: grid;
  }
}
