* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img,
video {
  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;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 10px 30px rgba(14, 116, 144, 0.22);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover {
  color: #dbeafe;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 16px;
  background: rgba(29, 78, 216, 0.55);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 15%, rgba(125, 211, 252, 0.45), transparent 34%), linear-gradient(135deg, #172554 0%, #1d4ed8 50%, #06b6d4 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.hero-glow {
  position: absolute;
  right: 6%;
  bottom: -16%;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.34);
  filter: blur(35px);
}

.hero-layout {
  position: relative;
  z-index: 1;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 52px;
  padding: 56px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin: 0 0 20px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  font-size: clamp(27px, 4vw, 45px);
  color: #bfdbfe;
}

.hero-copy p.hero-description {
  margin: 0 0 30px;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 24px);
}

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

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

.btn-primary {
  color: #2563eb;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: #eff6ff;
}

.btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  color: #1d4ed8;
  background: #ffffff;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.hero-feature {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(10px);
}

.hero-slides {
  position: relative;
  height: 420px;
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.16) 58%, rgba(0, 0, 0, 0.1));
}

.hero-slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px;
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: 29px;
  line-height: 1.2;
}

.hero-slide-content p {
  margin: 0 0 12px;
  color: #e5e7eb;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-meta {
  display: flex;
  gap: 16px;
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 700;
}

.hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 18px 18px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 64px 0;
}

.section.alt {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
}

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

.section-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 9px 0 0;
  max-width: 680px;
  color: #64748b;
}

.section-link {
  flex: none;
  color: #2563eb;
  font-weight: 900;
}

.search-panel {
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

.search-card {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.search-row input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  outline: 0;
  background: #f8fafc;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-row input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chips button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #1e3a8a;
  background: #eff6ff;
  cursor: pointer;
  font-weight: 800;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  border-color: transparent;
}

.horizontal-scroll {
  overflow-x: auto;
  padding: 4px 4px 18px;
}

.horizontal-list {
  display: flex;
  gap: 22px;
}

.horizontal-list .movie-card {
  min-width: 300px;
  max-width: 300px;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-link:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #0891b2);
}

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

.movie-link:hover img {
  transform: scale(1.07);
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(37, 99, 235, 0.88);
  backdrop-filter: blur(7px);
}

.type-badge {
  left: 12px;
}

.rank-badge {
  right: 12px;
  min-width: 32px;
  background: rgba(6, 182, 212, 0.88);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-card-body h3 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.3;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-meta {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-one-line {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  margin-top: auto;
}

.card-tags span {
  color: #1d4ed8;
  background: #eff6ff;
}

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

.category-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card a {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  min-height: 200px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-content {
  padding: 22px;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

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

.category-card ul,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-card li {
  margin-top: 6px;
  color: #2563eb;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  padding: 62px 0;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.04em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #bfdbfe;
  font-weight: 800;
}

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

.detail-hero {
  padding: 36px 0 52px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 56%, #0e7490 100%);
}

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

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #2563eb;
  background: #ffffff;
  font-size: 36px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  padding-left: 5px;
}

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

.detail-info {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  font-size: 13px;
}

.detail-info p {
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 16px;
}

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

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

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

.article-panel {
  padding: 30px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 27px;
}

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

.side-panel {
  padding: 24px;
}

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

.quick-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.quick-item img {
  width: 74px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
}

.quick-item strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quick-item span {
  color: #64748b;
  font-size: 13px;
}

.no-results {
  display: none;
  padding: 36px;
  text-align: center;
  color: #64748b;
  border-radius: 24px;
  background: #ffffff;
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
  padding-top: 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 36px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 470px;
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

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

.site-footer li {
  margin: 8px 0;
}

.site-footer a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 1024px) {
  .desktop-nav {
    gap: 16px;
    font-size: 14px;
  }

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

  .hero-feature {
    max-width: 640px;
  }

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

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

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

  .menu-button {
    display: inline-flex;
  }

  .hero,
  .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    gap: 30px;
    padding: 42px 0;
  }

  .hero-slides {
    height: 360px;
  }

  .section {
    padding: 46px 0;
  }

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

  .search-row {
    grid-template-columns: 1fr;
  }

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

  .category-card a {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .detail-info {
    padding: 22px;
  }
}

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

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

  .hero h1 {
    font-size: 43px;
  }

  .hero h1 span {
    font-size: 25px;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-slides {
    height: 320px;
  }

  .hero-slide-content {
    padding: 22px;
  }

  .hero-slide-content h2 {
    font-size: 24px;
  }

  .horizontal-list .movie-card {
    min-width: 260px;
    max-width: 260px;
  }

  .category-card a {
    display: block;
  }

  .category-card img {
    height: 210px;
  }

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