* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f1f5f9 100%);
  color: #111827;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

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

.site-logo {
  font-size: clamp(20px, 2vw, 28px);
}

.logo-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #0ea5e9;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 650;
}

.nav-links a,
.mobile-menu a {
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

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

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-carousel {
  background: #0f172a;
}

.hero-stage {
  position: relative;
  height: clamp(430px, 58vw, 640px);
  overflow: hidden;
}

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

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

.hero-image,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.28) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: clamp(64px, 9vw, 105px);
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker,
.page-hero span,
.quick-search-box span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #38bdf8;
}

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

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.hero-tags a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.hero-tags a {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.25);
  border: 1px solid rgba(125, 211, 252, 0.36);
  backdrop-filter: blur(10px);
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: #0ea5e9;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.32);
}

.btn-primary:hover {
  background: #0284c7;
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search {
  position: relative;
  z-index: 5;
  margin-top: -34px;
}

.quick-search-box,
.filter-box,
.prose-card,
.player-card,
.detail-info-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.quick-search-box {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  align-items: center;
  gap: 28px;
  padding: 26px;
}

.quick-search-box h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
}

.home-search {
  display: flex;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
}

.home-search input {
  flex: 1;
  min-width: 0;
  padding: 0 22px;
  border: 0;
  outline: 0;
  background: transparent;
}

.home-search button {
  min-width: 104px;
  border: 0;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  cursor: pointer;
}

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

.section-soft {
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 640px;
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.8;
}

.section-heading i {
  flex: 0 0 96px;
  height: 5px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(14, 116, 144, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #eff6ff);
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.68));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.play-mark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 42px;
  opacity: 0;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  transform: scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: scale(1);
}

.meta-year,
.meta-region,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.meta-region {
  left: 10px;
  bottom: 10px;
}

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

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.card-body h3 a {
  transition: color 0.2s ease;
}

.card-body h3 a:hover {
  color: #0284c7;
}

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

.tag-row span {
  color: #0284c7;
  background: #e0f2fe;
}

.section-more {
  margin-top: 30px;
  text-align: center;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  color: #0284c7;
  font-weight: 800;
  background: #e0f2fe;
}

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

.category-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.category-card > a {
  display: block;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.category-card span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #e0f2fe;
}

.category-card h2 {
  margin: 10px 0;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: #eaf6ff;
  line-height: 1.7;
}

.category-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 24px 24px;
  list-style: none;
}

.category-card li a {
  color: #475569;
  font-size: 14px;
}

.category-card li a:hover {
  color: #0284c7;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.category-pills a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #0369a1;
  font-weight: 700;
  background: #e0f2fe;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.compact-hero {
  padding: 88px 0;
  background: radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.42), transparent 34%), linear-gradient(135deg, #0f172a, #2563eb);
}

.compact-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.thin-actions {
  margin-top: 26px;
}

.filter-panel {
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.filter-box {
  padding: 22px;
}

.filter-search {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-search span,
.filter-selects span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 0 14px;
  color: #111827;
  background: #f8fafc;
  outline: 0;
}

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

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

.filter-selects label {
  display: grid;
  gap: 8px;
}

.empty-state {
  margin: 30px 0 0;
  padding: 22px;
  border-radius: 16px;
  color: #64748b;
  text-align: center;
  background: #ffffff;
}

.detail-hero {
  min-height: 520px;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.38)), linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 65%);
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 56px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
  color: #bae6fd;
  font-size: 14px;
}

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

.detail-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
  gap: 36px;
}

.detail-title-row h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
}

.detail-title-row p {
  max-width: 760px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.detail-poster {
  width: 220px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.36);
}

.detail-section {
  padding-top: 48px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.8fr);
  gap: 24px;
}

.player-card,
.detail-info-card,
.prose-card {
  padding: 24px;
}

.player-card h2,
.detail-info-card h2,
.prose-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-frame video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.player-frame video {
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: #020617;
  cursor: pointer;
}

.player-cover img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #0ea5e9;
  background: #ffffff;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
  font-size: 38px;
  transform: translateX(3px);
}

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

.detail-meta {
  display: grid;
  gap: 14px;
  margin: 0;
}

.detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.detail-meta dt {
  color: #64748b;
  font-weight: 700;
}

.detail-meta dd {
  margin: 0;
  color: #111827;
  font-weight: 750;
  text-align: right;
}

.detail-meta a {
  color: #0284c7;
}

.prose-card {
  max-width: 980px;
}

.prose-card p {
  margin: 0 0 26px;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

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

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

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

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

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

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid #1f2937;
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .nav-toggle {
    display: grid;
    place-items: center;
  }

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

  .hero-stage {
    height: 560px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 74px;
  }

  .hero-copy p {
    font-size: 16px;
  }

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

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

  .category-grid,
  .footer-grid,
  .detail-grid,
  .detail-title-row {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    display: none;
  }

  .hero-arrow {
    display: none;
  }
}

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

  .nav-bar {
    min-height: 66px;
  }

  .site-logo {
    font-size: 20px;
  }

  .hero-stage {
    height: 520px;
  }

  .hero-copy h1,
  .detail-title-row h1 {
    font-size: 34px;
  }

  .hero-actions,
  .thin-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading i {
    display: block;
    margin-top: 16px;
  }

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

  .card-body {
    padding: 12px;
  }

  .filter-selects {
    grid-template-columns: 1fr;
  }

  .compact-hero {
    padding: 66px 0;
  }

  .detail-head {
    padding-top: 36px;
  }

  .player-card,
  .detail-info-card,
  .prose-card {
    padding: 16px;
    border-radius: 18px;
  }

  .player-cover span {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
