* {
  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: #111827;
  background: #f8fafc;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.brand span:last-child {
  background: linear-gradient(90deg, #f87171, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #ea580c);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.32);
}

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

.desktop-nav a,
.mobile-panel a {
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #f87171;
}

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

.site-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: #334155;
  border-radius: 999px;
  padding: 10px 14px;
}

.site-search input::placeholder {
  color: #cbd5e1;
}

.site-search button,
.primary-button,
.secondary-button,
.filter-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #ea580c);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.filter-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.32);
}

.secondary-button {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  color: #ffffff;
  background: transparent;
  border: 0;
  font-size: 26px;
}

.mobile-panel {
  display: none;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: #1e293b;
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  min-height: 650px;
  color: #ffffff;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.26), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(239, 68, 68, 0.24), transparent 28%),
    linear-gradient(135deg, #0f172a, #1e3a8a 48%, #164e63);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 36px 36px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px 58px;
}

.hero-title {
  max-width: 840px;
  margin: 0 auto 34px;
  text-align: center;
}

.hero-title h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #a5f3fc, #bfdbfe, #fecaca);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title p {
  margin: 0 auto;
  max-width: 760px;
  color: #cffafe;
  font-size: clamp(17px, 2.2vw, 24px);
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 26px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.46);
  background: rgba(15, 23, 42, 0.65);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 0.76fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-copy {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.78));
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.hero-copy p {
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: 16px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.22);
}

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

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-image::after,
.movie-poster::after,
.compact-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 54%);
}

.hero-cards {
  display: grid;
  gap: 14px;
}

.hero-card {
  position: relative;
  min-height: 78px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-card.is-active,
.hero-card:hover {
  transform: translateX(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-card img {
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-card h3 {
  margin: 4px 0 4px;
  font-size: 16px;
}

.hero-card p {
  margin: 0;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
}

.section {
  padding: 70px 0;
}

.section-white {
  background: #ffffff;
}

.section-warm {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.section-dark {
  color: #ffffff;
  background: linear-gradient(135deg, #312e81, #86198f);
}

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.section-head p,
.page-hero p,
.detail-title p {
  margin: 8px 0 0;
  color: #64748b;
}

.section-dark .section-head p {
  color: #ddd6fe;
}

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

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

.movie-card-link {
  display: block;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.movie-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

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

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

.movie-duration,
.play-mark {
  position: absolute;
  z-index: 2;
}

.movie-duration {
  top: 10px;
  right: 10px;
  border-radius: 8px;
  padding: 3px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
}

.play-mark {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  padding: 18px;
}

.movie-card-body h3,
.compact-card h3,
.category-tile h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body p,
.compact-card p,
.category-tile p {
  margin: 0 0 12px;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 12px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 180px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.17);
}

.compact-card > div:last-child {
  padding: 18px;
}

.compact-card span {
  color: #64748b;
  font-size: 13px;
}

.compact-poster {
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.compact-poster img {
  height: 100%;
  object-fit: cover;
}

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #f97316, #e11d48);
  font-weight: 800;
}

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

.poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 260px;
  background: #111827;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}

.poster-card:hover {
  transform: scale(1.03);
}

.poster-card img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.12));
}

.poster-card div {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 14px;
}

.poster-card h3 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 16px;
}

.poster-card span {
  color: #fde68a;
  font-size: 13px;
  font-weight: 700;
}

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

.category-tile {
  display: block;
  min-height: 210px;
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

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

.category-strip img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.page-hero {
  padding: 74px 0 50px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 15%, rgba(251, 146, 60, 0.22), transparent 30%),
    linear-gradient(135deg, #0f172a, #312e81);
}

.page-hero p {
  color: #dbeafe;
  max-width: 760px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  outline: 0;
}

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

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

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

.detail-title {
  margin-bottom: 24px;
}

.detail-title h1 {
  color: #0f172a;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  color: #334155;
  background: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.player-section,
.detail-panel,
.side-panel {
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.11);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.video-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #020617;
  overflow: hidden;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.20), rgba(2, 6, 23, 0.55));
}

.video-cover.is-hidden {
  display: none;
}

.play-circle {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.36);
}

.detail-panel {
  padding: 28px;
  margin-top: 24px;
}

.detail-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 24px;
}

.detail-panel p {
  margin: 0 0 18px;
  color: #334155;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 22px;
}

.side-panel {
  padding: 18px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  aspect-ratio: 16 / 10;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.side-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
}

.side-item p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.search-result-hint {
  color: #64748b;
  margin-bottom: 20px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
  padding: 48px 0 22px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 36px;
}

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

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #f87171;
}

.footer-bottom {
  max-width: 1280px;
  margin: 30px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 14px;
}

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

  .mobile-toggle {
    display: block;
  }

  .mobile-search {
    display: flex;
  }

  .mobile-search input {
    width: 100%;
  }

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

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

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

@media (max-width: 760px) {
  .nav-wrap,
  .container,
  .hero-inner,
  .footer-grid,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: auto;
  }

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

  .hero-image {
    min-height: 220px;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-card {
    grid-template-columns: 78px 1fr;
  }

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

  .compact-card {
    grid-template-columns: 132px 1fr;
  }

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

  .section {
    padding: 46px 0;
  }

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