* {
  box-sizing: border-box;
}

:root {
  --teal: #0d9488;
  --cyan: #0891b2;
  --blue: #2563eb;
  --orange: #f97316;
  --dark: #111827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --card: #ffffff;
  --bg: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0d9488 0%, #0891b2 50%, #2563eb 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  font-weight: 600;
}

.nav-links a {
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.nav-search input,
.mobile-search input {
  width: 180px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.nav-search button,
.mobile-search button {
  border: 0;
  color: var(--teal);
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  font-size: 28px;
  background: transparent;
  cursor: pointer;
}

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

.mobile-panel a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(20, 184, 166, 0.9), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.95), transparent 32%),
    linear-gradient(120deg, #0f766e 0%, #0891b2 52%, #1d4ed8 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.58), rgba(3, 7, 18, 0.18)),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.25), transparent 38%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 42px;
  padding: 64px 0 104px;
}

.hero-copy h1 {
  margin: 0 0 22px;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 680px;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
}

.hero .hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.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: var(--teal);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: #ecfeff;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.hero-slider {
  position: relative;
  min-height: 470px;
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(14px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.slide-text {
  position: absolute;
  inset: auto 24px 24px 24px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.88));
  backdrop-filter: blur(10px);
}

.slide-text h2 {
  margin: 0 0 8px;
  font-size: 27px;
}

.slide-text p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.slider-dots {
  position: absolute;
  left: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.slider-dots button.active {
  background: #ffffff;
}

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

.section.alt {
  width: min(1180px, calc(100% - 32px));
  margin-top: 24px;
  padding: 42px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

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

.section-head h2,
.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
}

.section-head p,
.lead {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.more-link {
  color: var(--teal);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.poster-link img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.large-card .poster-link img {
  height: 360px;
}

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

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta a {
  color: var(--teal);
}

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

.card-body h3 a:hover {
  color: var(--teal);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  min-height: 168px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488, #2563eb);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(115deg, #0f766e, #0891b2 50%, #1d4ed8);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 86px;
}

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

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

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

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  font: inherit;
}

.filter-bar input {
  flex: 1 1 280px;
}

.rank-list {
  display: grid;
  gap: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 74px 156px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.rank-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #2563eb);
}

.rank-item img {
  width: 156px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 8px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-hero {
  color: #ffffff;
  background: linear-gradient(115deg, rgba(15, 118, 110, 0.98), rgba(8, 145, 178, 0.96), rgba(29, 78, 216, 0.98));
}

.detail-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 38px;
  padding: 56px 0 72px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
  width: 100%;
  height: 465px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.breadcrumb {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-copy .summary-line {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 24px 0;
}

.info-list div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.info-list strong {
  margin-right: 8px;
}

.player-box {
  width: min(980px, calc(100% - 32px));
  margin: -42px auto 42px;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
  cursor: pointer;
}

.player-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.48));
  cursor: pointer;
}

.player-play span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 42px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 16px 42px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.player-box.is-playing .player-play {
  opacity: 0;
  pointer-events: none;
}

.article-content {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
}

.content-card {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
  font-size: 17px;
}

.site-footer {
  margin-top: 40px;
  color: #ffffff;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
}

.footer-inner h2 {
  margin: 0 0 12px;
  color: #2dd4bf;
}

.footer-inner p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: #cbd5e1;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.hidden-by-filter {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

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

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

  .hero-slider {
    min-height: 430px;
  }

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

@media (max-width: 680px) {
  .nav-wrap {
    min-height: 64px;
  }

  .brand {
    font-size: 20px;
  }

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

  .hero-inner {
    padding: 44px 0 80px;
  }

  .section.alt {
    padding: 24px;
  }

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

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

  .rank-item {
    grid-template-columns: 54px 96px 1fr;
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

  .rank-item img {
    width: 96px;
    height: 72px;
  }

  .detail-poster img {
    height: 420px;
  }

  .info-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
