* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: #f8fafc;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f766e;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #f97316);
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.28);
  font-size: 14px;
}

.brand-name {
  font-size: 22px;
  background: linear-gradient(135deg, #0d9488, #ea580c);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-dark .brand-name {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #0d9488;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: #f3f4f6;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #374151;
}

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.48) 48%, rgba(2, 6, 23, 0.08));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 86px;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-content h1,
.hero-content h2 {
  max-width: 820px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-kicker,
.hero-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-kicker span {
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.92);
  font-size: 14px;
  font-weight: 700;
}

.hero-kicker span:nth-child(2n) {
  background: rgba(249, 115, 22, 0.92);
}

.hero-tags span,
.card-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 700;
}

.hero .hero-tags span {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  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: linear-gradient(135deg, #0d9488, #f97316);
  box-shadow: 0 18px 36px rgba(20, 184, 166, 0.32);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-1px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.section {
  padding: 70px 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  background: #f8fafc;
}

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

.section-shell,
.footer-shell,
.detail-shell,
.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-card h2,
.detail-main h2,
.detail-aside h2 {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: #0d9488;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.text-link {
  color: #0d9488;
  font-weight: 800;
}

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

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

.compact-grid {
  margin-top: 24px;
}

.movie-card,
.movie-list-card,
.category-card,
.content-card {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.movie-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.movie-card-featured .card-cover {
  aspect-ratio: 4 / 5;
}

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

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

.play-mark,
.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 22px;
}

.card-cover::after,
.list-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-mark,
.movie-card:hover .card-cover::after,
.movie-list-card:hover .play-mark,
.movie-list-card:hover .list-cover::after {
  opacity: 1;
}

.movie-card:hover .play-mark {
  transform: translate(-50%, -50%) scale(1.06);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 12px;
  font-weight: 900;
}

.card-body,
.list-body {
  padding: 18px;
}

.card-body h3,
.list-body h3 {
  margin: 12px 0 8px;
  color: #111827;
  font-size: 19px;
  line-height: 1.25;
}

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

.card-body h3 a:hover,
.list-body h3 a:hover {
  color: #0d9488;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.movie-list-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  margin-bottom: 16px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.movie-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.list-cover {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.category-card {
  display: block;
  min-height: 150px;
  padding: 24px;
  color: #0f172a;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  color: #0d9488;
  font-size: 22px;
  font-weight: 900;
}

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

.category-card:hover {
  transform: translateY(-4px);
  border-color: #99f6e4;
  box-shadow: 0 22px 44px rgba(20, 184, 166, 0.14);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.search-box,
.select-box {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.search-box input:focus,
.select-box select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.page-hero {
  padding: 86px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.36), transparent 36%), linear-gradient(135deg, #0f172a, #111827 62%, #134e4a);
}

.page-hero h1 {
  max-width: 780px;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
}

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

.page-hero .section-label {
  color: #5eead4;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.inline-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 800;
  font-size: 14px;
}

.detail-hero {
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.detail-shell {
  padding-top: 36px;
  padding-bottom: 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #5eead4;
}

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

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-info h1 {
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
}

.detail-info .lead {
  max-width: 760px;
  color: #e2e8f0;
  font-size: 20px;
}

.detail-meta {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: #cbd5e1;
}

.detail-meta a {
  color: #5eead4;
}

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

.detail-main h2,
.detail-aside h2,
.content-card h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

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

.player-box video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-box video {
  background: #020617;
}

.player-cover {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
}

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

.player-play {
  width: 82px;
  height: 82px;
  opacity: 1;
  font-size: 30px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.88), rgba(249, 115, 22, 0.88));
}

.content-card {
  margin-top: 28px;
  padding: 28px;
}

.content-card p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 16px;
}

.detail-aside {
  position: sticky;
  top: 96px;
}

.side-list .movie-list-card {
  grid-template-columns: 120px 1fr;
}

.side-list .list-cover {
  min-height: 110px;
}

.side-list .list-body h3 {
  font-size: 16px;
}

.side-list .list-body p {
  display: none;
}

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

.footer-shell {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  padding-top: 54px;
  padding-bottom: 44px;
}

.footer-brand p {
  max-width: 430px;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

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

.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-links a:hover {
  color: #5eead4;
}

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

.is-hidden-card {
  display: none !important;
}

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

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

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

  .detail-aside {
    position: static;
  }
}

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

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

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: #f1f5f9;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    bottom: 74px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

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

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

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

  .movie-list-card {
    grid-template-columns: 128px 1fr;
  }

  .list-cover {
    min-height: 118px;
  }

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

  .detail-poster {
    max-width: 240px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }
}
