* {
  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 {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #0f172a, #334155);
}

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: #fff;
  background: linear-gradient(90deg, #0f172a, #1e293b 48%, #0f172a);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.26);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  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-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #a855f7);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.brand-name {
  font-size: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  background: #334155;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 10px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #94a3b8;
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  color: #fff;
  background: #2563eb;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-panel button:hover {
  background: #1d4ed8;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #334155;
  padding: 9px 12px;
  cursor: pointer;
}

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

.mobile-panel nav,
.mobile-cats {
  display: grid;
  gap: 8px;
}

.mobile-panel a {
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.72);
  padding: 10px 12px;
}

.mobile-search {
  display: flex;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #334155;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-track {
  position: relative;
  min-height: 620px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(59, 130, 246, 0.3), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.74) 48%, rgba(15, 23, 42, 0.35)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 46%, rgba(2, 6, 23, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 64px 0;
}

.hero-copy {
  color: #fff;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(147, 197, 253, 0.25);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.hero-copy p,
.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(16px, 2.2vw, 20px);
}

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

.hero-tags {
  margin: 24px 0;
}

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

.hero-actions,
.category-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  padding: 13px 22px;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.3);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(15, 23, 42, 0.38);
  padding: 12px 21px;
}

.ghost-btn.dark {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #fff;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
  aspect-ratio: 2 / 3;
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
  z-index: 2;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(37, 99, 235, 0.8);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

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

.home-search-band {
  background: #020617;
  color: #fff;
  padding: 26px 0 42px;
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 24px;
  align-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 28px;
}

.search-band-inner h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.search-band-inner p {
  margin: 0;
  color: #cbd5e1;
}

.search-band-inner form,
.search-panel {
  display: flex;
  gap: 10px;
}

.search-band-inner input,
.search-panel input,
.search-panel select {
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  padding: 12px 14px;
  outline: 0;
}

.search-band-inner input {
  flex: 1;
}

.search-band-inner button {
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #2563eb;
  padding: 12px 18px;
  cursor: pointer;
}

.content-section {
  padding: 54px 0 0;
}

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

.section-head h2,
.search-result-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-head p,
.search-result-head p {
  margin: 0;
  color: #64748b;
}

.section-link {
  color: #2563eb;
  background: #dbeafe;
  padding: 10px 16px;
  white-space: nowrap;
}

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

.category-tile,
.category-overview-card a {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card a:hover,
.movie-card:hover,
.wide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.category-tile img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.category-tile span,
.category-overview-body h2 {
  display: block;
  color: #0f172a;
  font-size: 19px;
  font-weight: 800;
  padding: 16px 16px 4px;
}

.category-tile p,
.category-overview-body p {
  margin: 0;
  color: #64748b;
  padding: 0 16px 18px;
  font-size: 14px;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 190px;
  background: #0f172a;
}

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

.category-overview-body span {
  display: inline-flex;
  margin: 0 16px 18px;
  color: #2563eb;
  font-weight: 800;
}

.wide-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 420px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x proximity;
}

.wide-card {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: start;
}

.wide-card a {
  display: grid;
  grid-template-columns: 126px 1fr;
  min-height: 190px;
}

.wide-card img {
  width: 126px;
  height: 100%;
  object-fit: cover;
}

.wide-card div:last-child {
  padding: 16px;
}

.wide-card h2 {
  margin: 6px 0 8px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.25;
}

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

.wide-meta,
.movie-meta {
  color: #64748b;
  font-size: 13px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.compact-grid {
  grid-template-columns: repeat(6, 1fr);
}

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

.movie-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

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

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

.card-region,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.card-region {
  left: 10px;
  top: 10px;
}

.card-year {
  right: 10px;
  top: 10px;
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-card h2 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 6px;
  overflow: hidden;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 10px 0;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags span {
  color: #334155;
  background: #f1f5f9;
}

.page-shell {
  padding: 42px 0 68px;
}

.page-hero {
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.34), transparent 32%),
    linear-gradient(135deg, #0f172a, #1e293b 54%, #111827);
  padding: 54px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
  color: #cbd5e1;
}

.search-panel-section {
  padding-top: 28px;
}

.search-panel {
  flex-wrap: wrap;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  padding: 18px;
}

.search-panel input {
  flex: 1 1 320px;
}

.search-panel select {
  flex: 0 1 180px;
}

.search-panel button {
  border-radius: 14px;
  padding: 12px 24px;
}

.search-result-head {
  margin: 36px 0 22px;
}

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

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

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

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.16));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.42);
  cursor: pointer;
}

.player-start span {
  display: inline-block;
  margin-left: 6px;
  font-size: 42px;
  line-height: 1;
}

.detail-card,
.side-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  padding: 26px;
}

.detail-card {
  margin-top: 24px;
}

.detail-card h1 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 10px;
  color: #0f172a;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 16px;
}

.lead-text {
  color: #1e293b !important;
  font-size: 18px !important;
  font-weight: 700;
}

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

.detail-meta span {
  border-radius: 12px;
  color: #1e3a8a;
  background: #dbeafe;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.detail-tags {
  margin: 18px 0 4px;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.18);
  margin-bottom: 18px;
}

.side-card h2 {
  margin-top: 0;
}

.side-card dl {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: #64748b;
}

.side-card dd {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}

.side-card a {
  color: #2563eb;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  margin-top: 64px;
}

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

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

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

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

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

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

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

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr 280px;
  }

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

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

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
  }

  .detail-cover {
    margin: 0;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    height: 62px;
  }

  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

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

  .hero-carousel,
  .hero-track,
  .hero-content {
    min-height: 670px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 0 72px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-poster {
    width: 210px;
    transform: none;
  }

  .hero-arrow {
    display: none;
  }

  .search-band-inner {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .search-band-inner form,
  .search-panel {
    flex-direction: column;
  }

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

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

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

  .page-hero {
    padding: 32px 22px;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 260px;
  }

  .wide-card a {
    grid-template-columns: 108px 1fr;
  }

  .wide-card img {
    width: 108px;
  }
}
